html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #d9ede8;
}
#game-root {
  height: 100%;
  height: 100dvh;
  width: 100%;
}
.trail-adventure {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.trail-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: none;
  height: 92px;
  pointer-events: none;
}
.trail-heading .trail-actor {
  height: 100%;
  width: 90px;
  object-fit: contain;
  filter: drop-shadow(0 6px 5px #133b4538);
}
.trail-instruction {
  margin: 0;
  padding: 12px 24px;
  border-radius: 48% 44% 40% 46% / 35% 42% 39% 41%;
  background: #fff9e9;
  color: #243d40;
  font-size: clamp(19px, 2.4vw, 28px);
  line-height: 1.15;
  box-shadow: 0 4px 8px #173d4220;
  text-align: center;
  max-width: 470px;
}
.trail-field {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  background: url("art/water.webp") center/cover;
  border-radius: 44% 38% 41% 35% / 12% 14% 11% 15%;
  box-shadow: 0 8px 18px #1d626532;
  overflow: hidden;
}
.trail-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}
.trail-water-shadow {
  fill: none;
  stroke: #174e58;
  stroke-opacity: 0.23;
  stroke-width: 83;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trail-corridor {
  fill: none;
  stroke: #eaf9f4;
  stroke-opacity: 0.91;
  stroke-width: 66;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trail-center {
  fill: none;
  stroke: #447c85;
  stroke-width: 3;
  stroke-dasharray: 3 16;
  stroke-linecap: round;
  opacity: 0.55;
}
.trail-done {
  fill: none;
  stroke: #edba58;
  stroke-width: 35;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.trail-highlight {
  fill: none;
  stroke: #fff4c8;
  stroke-width: 7;
  stroke-linecap: round;
  opacity: 0.75;
  pointer-events: none;
}
.trail-next {
  cursor: pointer;
  outline: none;
}
.trail-next .target-disc {
  fill: #ffdb86;
  stroke: #775735;
  stroke-width: 3;
  filter: drop-shadow(0 4px 3px #103d4d38);
}
.trail-next:focus-visible .target-disc {
  stroke: #213e52;
  stroke-width: 7;
}
.trail-next .target-arrow {
  fill: none;
  stroke: #59432a;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trail-foot {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  margin: 0;
  color: #254950;
  font-size: 15px;
  text-align: center;
  background: #fff9e9e8;
  padding: 5px 15px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
}
.trail-demo-hand {
  pointer-events: none;
  filter: drop-shadow(0 3px 3px #173d4230);
}
.trail-marker {
  fill: #fff4d6;
  stroke: #625035;
  stroke-width: 3;
}
.trail-resume {
  font-size: 14px;
  color: #2b5960;
}
@media (orientation: portrait) {
  .trail-heading {
    height: 85px;
    gap: 6px;
  }
  .trail-heading .trail-actor {
    width: 65px;
  }
  .trail-instruction {
    padding: 10px 14px;
    font-size: 19px;
  }
  .trail-foot {
    font-size: 13px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .trail-heading {
    height: 47px;
  }
  .trail-heading .trail-actor {
    width: 48px;
  }
  .trail-instruction {
    padding: 6px 20px;
    font-size: 18px;
  }
  .trail-foot {
    font-size: 12px;
    padding: 2px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .trail-adventure * {
    animation: none !important;
    transition: none !important;
  }
}
