.adventure .trail-map {
  --trail-lane: clamp(29px, 5vw, 41px);
  position: relative;
  isolation: isolate;
}
/* The stepping stones and Moka share opposite shoulders of the same path. */
.adventure .trail-step .trail-stop {
  left: clamp(calc(var(--node-size) / 2 + 7px), calc(var(--terrain-x, 50%) - var(--trail-lane)), calc(100% - var(--node-size) / 2 - 7px));
}
.trail-walker {
  position: absolute;
  inset: 0 auto auto 0;
  width: 0;
  height: 0;
  /* At sharp bends Moka passes behind the stepping stones. */
  z-index: 1;
  pointer-events: none;
}
.walker-body {
  position: absolute;
  top: 0;
  left: var(--trail-lane);
  display: block;
  width: clamp(52px, 6.2vw, 81px);
  translate: -50% -50%;
  transform-origin: 50% 94%;
}
.walker-body::before {
  position: absolute;
  content: "";
  inset: auto 17% 1%;
  height: 12%;
  border-radius: 50%;
  background: #19332263;
  filter: blur(2px);
}
.cast-image { position: relative; display: block; width: 100%; height: auto; }
.moka-portrait { position: relative; display: inline-block; vertical-align: middle; }
.walker-body .moka-portrait { display: block; }
.walker-body[data-direction="left"] .moka-portrait { scale: -1 1; }
.moka-portrait[data-stage="forest"]::after {
  content: ""; position: absolute; width: 31%; aspect-ratio: .74;
  right: 0; top: 46%; background: url("assets/token-lantern.webp") center / contain no-repeat;
  filter: drop-shadow(0 1px 3px #ffe487);
}
.rehearsal-note { margin: 0 0 .45rem; color: #553d73; font-size: .85rem; font-weight: 730; }
.adventure .trail-icon { object-fit: contain; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .walking .walker-body { animation: cast-stride 240ms ease-in-out infinite alternate; }
}
@keyframes cast-stride { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-4px) rotate(3deg); } }

.topbar {
  background: #19362f;
  border-bottom: 2px solid #d5ab62;
  color: #fff3d4;
}
.brand-dot { color: #f2bf69; }
.brand-mark {
  border-radius: 0;
  background: url("assets/token-paw.webp") center / contain no-repeat;
  color: transparent;
  box-shadow: none;
}
.brand-mark::after { display: none; }
.topbar .navigation a { color: #f8efdb; }
.topbar .navigation a:hover { background: #34554b; }
.topbar .navigation a[aria-current] { background: #355449; color: #fff4d8; }
.topbar .navigation a[aria-current]::after { background: #f6c465; }
.topbar .xp { color: #f2e5ff; background: #3c3657; }
.topbar .star-count { color: #fff1c6; background: #51442e; }
.topbar .star-count span:first-child { color: #ffcd75; }
.topbar :focus-visible { outline-color: #ffe193; }
.adventure .trail-step[data-state="available"] .trail-node {
  border-color: #166053;
  background: radial-gradient(ellipse at 36% 24%, #fff8cc, #96d9b3 78%);
  box-shadow: inset 0 2px 0 #ffffdb, 0 4px 0 #356246, 1px 7px 5px #48351c60;
}
.adventure .trail-step[data-state="available"] .trail-node::after {
  content: "✧";
  position: absolute;
  top: -4px; right: -7px;
  padding: 1px 4px;
  border: 1px solid #fffbd4; border-radius: 50%;
  color: #fffce5; background: #27563f;
  font-size: .79rem; line-height: 1;
}
