/* Find my stop (js/findstop.js): a dark full-screen finder. Only transform and opacity move (the arc's fill is a stroke
   offset, stepped once a GPS fix); reduced motion: no warming background, no arc or arrow easing, no pulsing. */
.find-chip { box-shadow: none; background: var(--accent); color: var(--on-accent); min-height: 40px; font-size: var(--fs-sub); margin: -6px 8px 12px 0; }
.fs { --fs-bg: #0f0d0c; --fs-dim: rgba(255, 255, 255, .5); position: fixed; inset: 0; z-index: 70; color: #fff; background: radial-gradient(120% 80% at 50% 38%, #26211f 0%, #141110 55%, #0b0909 100%);
  display: flex; flex-direction: column; padding: calc(var(--safe-top) + 14px) 22px calc(var(--safe-bot) + 18px); overflow: hidden; animation: cs-in .24s var(--ease) both; }
.fs.closing { animation: cs-out .2s var(--ease) both; }
/* facing the stop: the screen slowly warms to the accent (a layer fading in: opacity only) */
.fs-warm { position: absolute; inset: 0; background: radial-gradient(110% 75% at 50% 40%, color-mix(in srgb, var(--accent) 70%, #000) 0%, color-mix(in srgb, var(--accent) 38%, #000) 60%, #120a07 100%); opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.fs.on .fs-warm { opacity: 1; }
.fs > :not(.fs-warm) { position: relative; }
.fs-kicker { display: block; font-size: var(--fs-foot); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--fs-dim); }
.fs-title { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: var(--fs-title); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; outline: none; }
.fs-chip { flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; padding: 5px 9px 7px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-weight: 900; font-size: var(--fs-title); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.fs-chip small { font-size: 10px; font-weight: 800; letter-spacing: .12em; margin-bottom: 3px; }
.fs-stage { flex: 1; min-height: 0; position: relative; display: grid; place-items: center; }
.fs-arc { position: absolute; top: 4%; left: 50%; width: min(78vw, 330px); translate: -50% 0; overflow: visible; }
.fs-track { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 7; stroke-linecap: round; stroke-dasharray: .1 3.2; }
.fs-fill { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .6s var(--ease); }
.fs-dot { transform-box: view-box; transform-origin: 100px 104px; transition: transform .6s var(--ease); }
.fs-dot circle { fill: #fff; }
.fs-dial { position: relative; width: min(45vw, 200px); aspect-ratio: 1; display: grid; place-items: center; transition: opacity .25s; }
.fs-arrow { width: 100%; height: 100%; display: grid; place-items: center; transition: transform .2s linear; will-change: transform; }
.fs-arrow svg { width: 88%; height: 88%; fill: none; stroke: #fff; stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }
/* no trusted compass: the arrow is north-up, so the N shows (and a faint dial for it to sit on) */
.fs-n { position: absolute; top: -26px; left: 0; right: 0; text-align: center; font-size: var(--fs-sub); font-weight: 800; color: var(--fs-dim); opacity: 0; transition: opacity .2s; }
.fs[data-compass="off"] .fs-n { opacity: 1; }
.fs[data-compass="off"] .fs-dial::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .12); }
/* rough GPS, or here: a pulsing ring instead of an arrow */
.fs-ring { position: absolute; width: min(56vw, 240px); aspect-ratio: 1; display: grid; place-items: center; opacity: 0; transition: opacity .3s; pointer-events: none; }
.fs-ring i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .55); animation: fs-pulse 2s ease-out infinite; }
.fs-ring i + i { animation-delay: 1s; }
@keyframes fs-pulse { from { transform: scale(.45); opacity: .9; } to { transform: scale(1); opacity: 0; } }
.fs-ring .fs-chip { opacity: 0; transition: opacity .3s; }
.fs[data-mode="rough"] .fs-ring, .fs[data-mode="wait"] .fs-ring, .fs[data-mode="here"] .fs-ring, .fs[data-mode="around"] .fs-ring { opacity: 1; }
.fs[data-mode="rough"] .fs-dial, .fs[data-mode="wait"] .fs-dial, .fs[data-mode="here"] .fs-dial, .fs[data-mode="around"] .fs-dial { opacity: 0; }
.fs[data-mode="rough"] .fs-arc, .fs[data-mode="wait"] .fs-arc { opacity: .35; }
.fs[data-mode="here"] .fs-arc, .fs[data-mode="around"] .fs-arc { opacity: 0; }
.fs[data-mode="here"] .fs-ring i { border-color: var(--accent); border-width: 5px; }
.fs[data-mode="here"] .fs-ring .fs-chip, .fs[data-mode="around"] .fs-ring .fs-chip { opacity: 1; font-size: 40px; min-width: 84px; padding: 8px 12px 10px; }
.fs-foot { flex: none; text-align: left; }
.fs-dist { outline: none; font-size: 76px; line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fs[data-mode="rough"] .fs-dist, .fs[data-mode="wait"] .fs-dist { font-size: 36px; letter-spacing: -.01em; }
.fs[data-mode="here"] .fs-dist, .fs[data-mode="around"] .fs-dist { font-size: 52px; }
.fs-words { margin: 6px 0 0; font-size: var(--fs-title); line-height: 1.15; font-weight: 700; color: var(--fs-dim); }
.fs-words b { color: #fff; font-weight: 800; }
.fs[data-mode="rough"] .fs-words, .fs[data-mode="here"] .fs-words, .fs[data-mode="around"] .fs-words, .fs[data-mode="near"] .fs-words { font-size: var(--fs-title3); }
.fs-hint { margin: 10px 0 0; min-height: 20px; font-size: var(--fs-sub); color: var(--fs-dim); }
.fs-hint:empty { min-height: 0; margin: 0; }
/* turn by turn: the route's next turn as the hero (relative to the way you walk: it doesn't turn with the compass) */
.fs-then { display: block; margin-top: 6px; font-size: var(--fs-row); font-weight: 600; color: var(--fs-dim); }
.fs-chip.s { min-width: 40px; padding: 2px 6px 4px; font-size: var(--fs-body); border-radius: 6px; vertical-align: middle; margin: 0 2px; }
.fs-chip.s small { font-size: 7px; margin-bottom: 1px; }
.fs-dist .roll { display: inline-block; animation: roll .42s var(--spring); }
.fs-link { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.fs-here-actions:not(:empty) { margin-top: 16px; }
.fs-check { min-height: 56px; font-size: var(--fs-row); }
.fs-buttons { display: flex; justify-content: space-between; margin-top: 20px; }
.fs-round { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; }
.fs-round.off { color: var(--fs-dim); background: rgba(255, 255, 255, .07); }
.fs-round.off .i { opacity: .55; }
@media (prefers-reduced-motion: reduce) {
  .fs, .fs.closing { animation-name: cs-fade; } .fs.closing { animation-name: cs-fadeout; }
  .fs-warm { display: none; }
  .fs-fill, .fs-dot, .fs-arrow, .fs-turn { transition: none; } .fs-dist .roll { animation: none; }
  .fs-ring i { animation: none; transform: scale(.8); opacity: .8; } .fs-ring i + i { display: none; }
}

/* Turn-by-turn banner at the top (the live arrow below keeps pointing at the stop) */
.fs-banner { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; margin: 14px 20px 0; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #fff; }
.fs-banner[hidden] { display: none; }
.fs-banner .fs-turn { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); }
.fs-banner .fs-turn .turn { width: 34px; height: 34px; fill: none; stroke: var(--on-accent, #1b1b1b); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fs-bt { min-width: 0; font-size: var(--fs-row); line-height: 1.25; }
.fs-bm { font-size: var(--fs-title3); font-weight: 800; margin-right: 2px; }
.fs-bt small { display: block; margin-top: 3px; font-size: var(--fs-sub); color: var(--fs-dim); }
.fs-bt small:empty { display: none; }
