:root { --ink:#252c27; --plum:#203e36; --wine:#345844; --soft:#e2e9df; --paper:#f9f5eb; --white:#fffdf7; --muted:#556056; --line:#c8c9b9; }
.top {border-color:#bd9c61;}
.top .map-open:hover {background:#345844;}
.directions {background:#e8eddf; border-color:#b3bca9;}
#map {aspect-ratio:5/4;}
.stop-art img {max-height:25rem; margin-inline:auto;}
.story details.extra {padding:.45rem .9rem;background:var(--soft);margin:1rem 0;}
.story .extra p {margin:.4rem 0;}
@media(max-width:650px) {
  .hero .stats {order:2;margin:.6rem 0 .2rem}
  .hero .actions {order:3}
  .hero .cover-art {order:4}
  .hero .deck {order:5}
}

#map-sheet .map-note, #map-sheet .map-credit, #map-sheet .map-preview p {color:var(--ink);}
@media (prefers-reduced-motion:no-preference) and (max-width:650px) {
  #map-sheet[open] {animation:slide-map 160ms ease-out}
  @keyframes slide-map {from {transform:translateY(2.5rem)}}
}

@media(max-width:650px){
  #map {width:min(100%,46dvh)}
  .sheet-body {min-height:0}
}

@media (max-width: 360px), (max-height: 600px) {
  #map-sheet[open] { display:block; overflow-y:auto; overscroll-behavior:contain; }
  #map-sheet .sheet-body { overflow:visible; }
}

.stop-art { max-width:38rem; margin:1rem 0; }
.stop-art img { display:block; width:100%; height:100%; object-fit:contain; }
.scene-frame { display:block; aspect-ratio:16/9; background:var(--soft); }
.scene-frame.has-preview img { object-fit:cover; }
.stop-art figcaption { line-height:1.4; }
.stop-art figcaption span { display:block; }
.scene-link { display:inline-block; margin-right:.85rem; padding:.28rem 0; }
.arrive .stop-art, .quiz .stop-art { max-width:23rem; }
.arrive .stop-art > img, .quiz .stop-art > img { height:clamp(8.5rem,24svh,13rem); }
.story .stop-art > img { height:auto; }

@media (max-width:650px) {
  body:has(.arrive, .quiz) .next { position:static; }
  body:has(.arrive, .quiz) .stop { padding-bottom:1rem; }
  body:has(.arrive) .next { padding-bottom:calc(4.7rem + env(safe-area-inset-bottom)); }
  .arrive .actions {
    position:fixed; z-index:2; left:0; right:0; bottom:0; justify-content:center;
    background:var(--white); border-top:1px solid var(--line);
    margin:0; padding:.5rem .4rem max(.5rem, env(safe-area-inset-bottom));
  }
  .quiz .stop-art { margin:.5rem 0 .75rem; }
  .quiz .scene-frame { width:min(100%, 34svh); }
  .quiz .stop-art > img { width:auto; max-width:100%; height:clamp(5.5rem,17svh,9.5rem); margin:0; }
  .quiz .stop-art figcaption { margin-top:.25rem; }
}
