:root {
  --bg: #141210;
  --panel: #1f1c18;
  --ink: #f1ebe0;
  --muted: #cfc6b6;   /* (lighter since 30 Oct, design review 1: read in sunlight) */
  --stone: #d8c69f;
  --accent: #ffd23f;
  --line: #3a352e;
  --danger: #ff8a7a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

/* ---------- home ---------- */
#home { max-width: 640px; margin: 0 auto; padding: 24px 16px 48px; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: 44px; line-height: 1.05; margin: 4px 0 12px; color: var(--stone); }
.kicker { margin: 0; color: var(--accent); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.lede { color: var(--ink); margin: 0 0 8px; }
h2 { font-size: 18px; margin: 32px 0 8px; }
.hint { color: var(--muted); font-size: 15px; margin: 4px 0 12px; }
.hint.saved { color: #7fffd4; }
.hint.saved.not-yet { color: var(--accent); }
.bar-label { align-self: center; font-size: 14px; color: var(--muted); }
.spots { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.spot { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.spot h3 { margin: 0 0 4px; font-size: 17px; }
.spot p { margin: 4px 0; font-size: 15px; color: var(--muted); }
.spot p.where { color: var(--ink); }   /* where to stand, read in the field (design review 2) */
.spot .row { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.spot .dist { font-size: 13px; color: var(--accent); }
.ways { display: grid; gap: 12px; margin-top: 20px; }
.way { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.way h2 { margin: 0 0 4px; font-size: 17px; }
.way p { margin: 4px 0; font-size: 15px; color: var(--muted); }
.way .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.evidence dl { margin: 0; }
.evidence dt { font-weight: 600; margin-top: 12px; color: var(--stone); }
.evidence dd { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
footer { margin-top: 40px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
footer a { color: var(--accent); }

.button { display: inline-block; border: 0; border-radius: 999px; padding: 12px 22px; font: 600 16px system-ui, sans-serif;
  background: var(--accent); color: #1b1600; text-decoration: none; cursor: pointer; }
.button.small { padding: 10px 16px; font-size: 15px; }
.button.ghost { background: rgba(255,255,255,.08); color: var(--ink); border: 1px solid rgba(255,255,255,.25); }
.button.on { background: #7fffd4; color: #002a1e; }
a.link { color: var(--accent); font-size: 14px; }

/* ---------- full-screen views ---------- */
.stage { position: fixed; inset: 0; overflow: hidden; background: linear-gradient(#8fb3d9, #dfe8ef 60%, #c9d4c0); touch-action: none; }
#ar.live { background: #000; }
.stage video, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage video { object-fit: cover; }
.topbar { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top) + 8px) 12px 8px; background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); }
.topbar .title { flex: 1; display: flex; gap: 8px; align-items: center; font-weight: 600; text-shadow: 0 1px 3px #000; min-width: 0; }
.topbar .title span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .title.stacked { flex-direction: column; align-items: flex-start; gap: 0; }
.topbar .title.stacked #spot-name { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.title-kicker { font-size: 12px; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
/* after the spire, which way the castle is (Ben, 30 Oct: "they may need a prompt to turn towards the mound/castle") */
.castle-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; pointer-events: none; padding: 9px 14px;
  border-radius: 999px; background: var(--accent); color: #1b1600; font: 700 15px system-ui, sans-serif; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.castle-arrow.left { left: 12px; } .castle-arrow.right { right: 12px; }
.castle-arrow[hidden] { display: none; }
.spire-ask { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.spire-ask[hidden] { display: none; }
.reticle { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.6), inset 0 0 0 1px rgba(0,0,0,.6); }
.reticle::before, .reticle::after { content: ''; position: absolute; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.5); }
.reticle::before { left: 50%; top: -14px; bottom: -14px; width: 2px; margin-left: -1px; }
.reticle::after { top: 50%; left: -14px; right: -14px; height: 2px; margin-top: -1px; }
.spire-card { position: absolute; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 84px); max-width: 520px;
  margin: 0 auto; pointer-events: auto; background: var(--panel); border-radius: 16px; padding: 12px 14px; font-size: 15px; line-height: 1.4; }
.spire-card p { margin: 0 0 8px; } .spire-card .row { margin: 0; display: flex; gap: 8px; }
.icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.45); color: #fff; font: 600 20px system-ui; text-decoration: none; }
span.icon { background: none; }
#gps { cursor: pointer; font-size: 14px; padding: 6px 10px; }   /* a tap target: it switches "from you" (Fable review 2) */
.stage .button.ghost, #ar .button.ghost { background: rgba(0,0,0,.5); }   /* readable over a bright sky */
.badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: var(--accent); white-space: nowrap; }
.bottombar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 10px;
  padding: 12px 12px calc(env(safe-area-inset-bottom) + 14px); background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.5)); }
.bottombar.wrap { flex-wrap: wrap; }
.sheet { position: absolute; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 12px); max-width: 520px; margin: 0 auto;
  background: rgba(20,18,16,.92); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px 18px; }
.sheet h2 { margin: 0 0 6px; }
.sheet p { margin: 6px 0; font-size: 15px; }
.error { color: var(--danger); }
.toast { position: absolute; left: 16px; right: 16px; top: calc(env(safe-area-inset-top) + 64px); max-width: 520px; margin: 0 auto;
  background: rgba(0,40,30,.85); color: #dffff4; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.debug { position: absolute; left: 8px; bottom: calc(env(safe-area-inset-bottom) + 74px); margin: 0; padding: 8px 10px; font: 11px/1.35 ui-monospace, monospace;
  color: #cfe; background: rgba(0,0,0,.6); border-radius: 8px; pointer-events: none; white-space: pre; }

/* ---------- the castle trail (js/trail.js) ---------- */
.trail-map { position: relative; height: max(260px, calc(100svh - 470px)); border-radius: 16px; overflow: hidden; background: #d8e3c4;
  border: 1px solid var(--line); touch-action: none; user-select: none; -webkit-user-select: none; }
.trail-svg { display: block; width: 100%; height: 100%; }
.trail-route-under { fill: none; stroke: rgba(40, 30, 0, .55); stroke-width: 7px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.trail-route { fill: none; stroke: var(--accent); stroke-width: 4px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.map-label { font-family: Georgia, serif; fill: #322c24; stroke: #faf8f0; paint-order: stroke; stroke-linejoin: round; pointer-events: none; }
.map-label.town, .map-label.major { font-weight: 700; }
.map-label.town { letter-spacing: .06em; }
.map-label.water { font-style: italic; fill: #28506e; }
.map-label.note { font-style: italic; }
.trail-stop, .trail-start { cursor: pointer; }
/* the marks (js/trail.js placeMarks sets their sizes; the text's size is its font-size attribute, so no CSS font
   size here: a 'font: 12px' shorthand had overridden it and drawn the numbers about 7 px high) */
.trail-disc { fill: var(--accent); stroke: #2b2300; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.trail-hit { fill: transparent; }
.trail-stop:focus:not(:focus-visible), .trail-start:focus:not(:focus-visible) { outline: none; }   /* a tap left a square round the stop */
.trail-leader { stroke: #2b2300; stroke-linecap: round; }
.trail-stop text, .trail-start text { fill: #1b1600; font-family: system-ui, sans-serif; font-weight: 800; text-anchor: middle;
  dominant-baseline: central; pointer-events: none; }
.trail-stop.visited .trail-disc { fill: #7fffd4; stroke: #003b2a; }
.trail-start .trail-disc { fill: #f1ebe0; }
/* a point on the way (the Round House, the George): pale, a note, not a number */
.trail-extra .trail-disc { fill: #fbf8f1; stroke: #3a3326; }
.trail-icon { fill: #2b2620; pointer-events: none; }
.trail-extra.visited .trail-disc { fill: #c8f5e4; }
.sheet-mark.extra svg { width: 22px; height: 22px; fill: #2b2620; }
.map-key { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin: -4px 0 0; font-size: 15px; color: var(--ink); }
.map-key span { display: inline-flex; align-items: center; gap: 6px; }
.map-key svg { width: 18px; height: 18px; flex: none; }
body.walking .map-key { display: none; }
.trail-extra.off-route { display: none; }
.trail-dot { fill: #2f7bff; stroke: #fff; stroke-width: 2.5px; vector-effect: non-scaling-stroke; }
.trail-acc { fill: rgba(47, 123, 255, .16); stroke: rgba(47, 123, 255, .5); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.trail-stop.off-route { opacity: .35; }
.trail-arrow { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); display: grid;
  place-items: center; transition: transform .25s linear; }
.trail-arrow[hidden] { display: none; }
.trail-arrow svg { width: 26px; height: 26px; fill: #1b1600; }

/* ---------- the simpler home (Ben, 28 Oct: "the ux and ui of the phone page can be much simpler and clearer"): one
   screen, the map, the choice of walk, one button; walking, the map fills the screen; a stop, a sheet up from the foot */
#home .hero h1 { font-size: 40px; margin: 2px 0 6px; }
#home .lede { font-size: 16px; line-height: 1.45; margin-bottom: 14px; }
#home { padding-top: calc(env(safe-area-inset-top) + 20px); padding-bottom: 20px; }
.trail { display: flex; flex-direction: column; gap: 12px; }
.map-fit { position: absolute; right: 10px; top: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 10px; border: 0;
  background: rgba(20, 18, 16, .75); display: grid; place-items: center; cursor: pointer; }
.map-fit svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trail-routes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trail-routes button { min-height: 56px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  font: inherit; text-align: left; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.trail-routes button b { font-size: 15px; }
.trail-routes button span { font-size: 15px; color: var(--muted); }
.trail-routes button[aria-checked="true"] { border: 2px solid var(--accent); background: #2a2412; padding: 7px 11px; }
.button.big { display: block; width: 100%; min-height: 56px; font-size: 18px; font-weight: 700; text-align: center; padding: 16px 22px; }
.home-note { margin: -4px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink); text-align: center; }
.home-note.saved { color: #7fffd4; margin-top: -8px; }
.home-note.saved.not-yet { color: var(--accent); }
.home-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 22px; margin-top: 18px; font-size: 15px; }
.home-links a { color: var(--accent); padding: 10px 0; white-space: nowrap; }
.trail-next, .walk-bar { display: none; }

/* walking: the map fills the screen, the next stop across the top, progress and sound along the foot */
body.walking #home .hero, body.walking .home-links, body.walking .trail-routes, body.walking #trail-start,
  body.walking .home-note { display: none; }
body.walking .trail { position: fixed; inset: 0; z-index: 10; }
body.walking .trail-map { position: absolute; inset: 0; height: auto; border-radius: 0; border: 0; }
body.walking .map-fit { top: auto; bottom: calc(env(safe-area-inset-bottom) + 92px); }
body.walking .trail-next { display: flex; position: absolute; z-index: 3; left: 12px; right: 12px; top: calc(env(safe-area-inset-top) + 12px);
  gap: 14px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.trail-next p { flex: 1; margin: 0; font-size: 16px; line-height: 1.35; }
body.walking .walk-bar { display: flex; position: absolute; z-index: 3; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 14px);
  align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px; }
.walk-bar #trail-count { font-size: 15px; color: var(--muted); white-space: nowrap; }
/* one line each, the same width either way, so the bar keeps its height and the button its place (design review 2) */
.walk-bar #trail-end { margin-left: 0; white-space: nowrap; min-width: 104px; }
@media (max-width: 399px) { .walk-bar .trail-dots { display: none; } }   /* the count says it */
.trail-dots { display: flex; gap: 6px; }
.trail-dots i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted); box-sizing: border-box; }
.trail-dots i.done { background: #7fffd4; border-color: #7fffd4; }
.round { margin-left: auto; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--panel);
  display: grid; place-items: center; cursor: pointer; }
.round svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.round .mute { display: none; }
.round[aria-pressed="false"] .wave { display: none; }
.round[aria-pressed="false"] .mute { display: inline; }

/* a stop: a sheet up from the foot */
.trail-sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto; z-index: 20; background: var(--panel);
  border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 10px 20px calc(env(safe-area-inset-bottom) + 18px);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: 12px; max-height: 85svh; overflow: auto; }
.trail-sheet[hidden] { display: none; }
.sheet-head { display: flex; align-items: center; gap: 12px; }
/* the stop card's head, with its ✕, stays at the top while the card scrolls (Ben, 2 Nov: "when you scroll down you lose
   the x button"): it scrolled away with the rest */
.trail-sheet .sheet-head { position: sticky; top: -10px; z-index: 2; margin: -10px -20px 0; padding: 10px 20px 8px;
  background: inherit; border-radius: 22px 22px 0 0; }
.sheet-mark { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #1b1600; font-weight: 800;
  display: grid; place-items: center; }
.sheet-mark.start { background: #fff6d6; }
.sheet-mark.extra { background: #fbf8f1; border: 2px solid #3a3326; box-sizing: border-box; }
.sheet-kicker { margin: 0; font-size: 15px; color: var(--muted); }
/* close, top right (Ben, 30 Oct: "we need a button to close the walk stop when it pops up"; the other is at the foot) */
.sheet-x { margin-left: auto; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg); color: inherit; font-size: 17px; line-height: 1; cursor: pointer; }
/* the stop's view drawn in 3D (tools/make-stop-pictures.mjs), a tap opens it */
.sheet-pic { display: block; flex: none; border-radius: 14px; overflow: hidden; background: var(--bg); }
.sheet-pic[hidden] { display: none; }
/* a point's own animation in the picture's place (the dry-stone wall: js/drystone.js) */
.sheet-anim { flex: none; margin: 0; }
.sheet-anim[hidden] { display: none; }
.sheet-anim canvas { display: block; width: 100%; height: 30svh; max-height: 260px; border-radius: 14px; touch-action: pan-y;
  background: radial-gradient(circle at 50% 40%, #e9e4d8, #b9b3a2); }
.sheet-anim figcaption { margin: 6px 2px 0; font-size: 14px; color: var(--muted, #555); min-height: 1.4em; }
.sheet-pic img { display: block; width: 100%; height: auto; max-height: 32svh; object-fit: cover; }
.trail-sheet h3 { margin: 0; font-size: 21px; line-height: 1.2; }
.trail-sheet p { margin: 0; font-size: 16px; line-height: 1.5; }
#trail-sheet-text { white-space: pre-line; }   /* the start card's second paragraph */
.trail-sheet .hint { font-size: 15px; }
.player { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 14px; padding: 10px 12px; }
.player[hidden] { display: none; }
.player .play { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); display: grid; place-items: center; cursor: pointer; }
.player .play svg { width: 20px; height: 20px; fill: var(--bg); }
.player .i-pause, .player.playing .i-play { display: none; }
.player.playing .i-pause { display: inline; }
.player .seek { flex: 1; min-width: 0; margin: 0; height: 28px; background: none; -webkit-appearance: none; appearance: none; cursor: pointer;
  --at: 0%; }   /* the narration's place, draggable (design review 1); --at the played part */
.seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--at), var(--line) var(--at)); }
.seek::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--at), var(--line) var(--at)); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--accent); border: 0; }
.seek::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 0; }
.player .time { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sheet-row { display: flex; justify-content: center; gap: 18px; }
.text-btn { min-height: 44px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; }   /* (real actions: not muted, design review 1) */
#trail-sheet-tick[hidden], #trail-sheet-open[hidden], #trail-sheet-noview[hidden] { display: none; }

/* the story: the history, the walk's details, the stops, what's known and guessed */
#story { max-width: 640px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 12px) 16px 48px; }
.back-row { margin: 0 0 4px; }
#story .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.spot h3 .tick { color: #7fffd4; margin-left: 6px; }
.spot h3 .num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent);
  color: #1b1600; font-size: 13px; margin-right: 8px; vertical-align: 2px; }
.spot.visited h3 .num { background: #7fffd4; color: #003b2a; }

/* ---------- inside the keep, anywhere (js/inside.js) ---------- */
.inside-stage, .inside-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.inside-hint { width: 100%; margin: 0 0 4px; font-size: 14px; color: var(--ink); text-shadow: 0 1px 3px #000; text-align: center; }
#inside .button.on { background: var(--accent); color: #1b1600; border-color: transparent; }
.inside-overlay { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 12px calc(env(safe-area-inset-bottom) + 12px);
  background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.inside-overlay .row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
#inside-ql::after { content: 'Stand inside it'; }          /* Quick Look wants the link's only child to be an image */
#inside-ql img { display: none; }
.button.ghost[aria-pressed="true"] { background: var(--accent); color: #1b1600; border-color: var(--accent); }   /* Evening light on */
/* (the 3D view's title stays on a phone since 30 Oct: its two buttons are short words now) */
/* the room's caption under the title, and its four buttons as a 2 x 2 grid (copy review 5: stacked one a line,
   the buttons took the bottom third of the screen) */
.inside-caption { position: absolute; left: 16px; right: 16px; top: calc(env(safe-area-inset-top, 0px) + 58px); margin: 0;
  font-size: 14px; line-height: 1.35; color: var(--ink); text-shadow: 0 1px 3px #000; pointer-events: none; }
.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 420px; }
.room-grid .button { width: 100%; }
/* the 3D view's spot buttons in one row that scrolls sideways (copy review 5: stacked, they covered a third of a phone) */
.bottombar.scroll-row { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; }
.bottombar.scroll-row > * { flex: none; }

/* ---------- design review 1 (30 Oct) ---------- */
/* the start sheet's buttons apart, wrapping */
.sheet .row { display: flex; flex-wrap: wrap; gap: 10px; }
/* a dimmed page behind an open stop card */
/* (only with the home page showing: a card left open dimmed the story page too, Ben, 31 Oct: "the story looks darker") */
body:has(#home:not([hidden]) #trail-sheet:not([hidden]))::after { content: ''; position: fixed; inset: 0; z-index: 19; background: rgba(0, 0, 0, .45); }
/* the narration, its card closed: a small bar along the foot */
.now-playing { position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 12px); max-width: 520px; margin: 0 auto;
  z-index: 15; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, .5); }
body.walking .now-playing { bottom: calc(env(safe-area-inset-bottom) + 86px); }   /* above the walk bar */
.now-playing .play { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); display: grid; place-items: center; cursor: pointer; }
.now-playing .play svg { width: 18px; height: 18px; fill: var(--bg); }
.now-playing .i-pause, .now-playing.playing .i-play { display: none; }
.now-playing.playing .i-pause { display: inline; }
.now-name { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: 600 15px system-ui, sans-serif; text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; padding: 8px 0; }
.now-stop { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font-size: 15px; cursor: pointer; }
/* the spire prompt: one strip where the buttons were (they're hidden while it shows), the view above it clear */
.spire-card { bottom: calc(env(safe-area-inset-bottom) + 12px); display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.spire-card p { margin: 0; }
.spire-card > p:first-child { flex: 1; font-size: 15px; }
.spire-card .row { flex: none; flex-direction: column; gap: 6px; }
/* "End walk": a second tap to be sure */
#trail-end.sure { background: var(--danger); color: #2a0b06; border-color: var(--danger); }
/* less movement, for those who ask for it */
@media (prefers-reduced-motion: reduce) {
  .trail-arrow { transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- design review 2 (31 Oct) ---------- */
/* the walk's details on the story page in full ink: they're read in the field */
#trail-about, #trail-order { color: var(--ink); }
/* the camera's start sheet: the top bar names the spot; what to do in full ink */
#start-title { display: none; }
#start .hint { color: var(--ink); }
/* "Clear the ticks", a second tap to be sure */
#trail-reset.sure { color: var(--danger); }
/* the 3D view's row of spots fades at its right edge, so it reads as one that scrolls */
.bottombar.scroll-row { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); padding-right: 40px; }
/* the fit button above the narration's bar while it shows (design review 2: the bar covered it) */
body.walking:has(#trail-now:not([hidden])) .map-fit { bottom: calc(env(safe-area-inset-bottom) + 150px); }
