/* ============================================================================
   Find the Stroller — a full-bleed 3D stroller lot with the HUD drawn over it.
   Loads after arcade.css (its .rd-modal / .rd-sheet / .rd-stats / .rd-share*
   shells are reused for help + results). Everything here is fs- scoped.
   ========================================================================== */

.fs-app { max-width: 1120px; margin: 0 auto; }
.fs-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 6px 4px 4px; }
.fs-back { justify-self: start; font-family: var(--label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 700; color: var(--ink-soft); text-decoration: none; }
.fs-back:hover { color: var(--gold); }
.fs-title { font-family: var(--pixel); font-size: clamp(11px, 2.6vw, 17px); color: var(--gold); text-align: center; text-shadow: 0 0 12px oklch(84% 0.13 86 / 0.4); white-space: nowrap; margin: 0; }
.fs-actions { justify-self: end; display: flex; gap: 6px; }
.fs-actions button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--rd-edge); background: var(--paper-2); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 15px; cursor: pointer; display: grid; place-items: center; }
.fs-actions button svg { width: 18px; height: 18px; }
.fs-actions button:hover { border-color: var(--gold); color: var(--gold); }

/* ---- Stage ------------------------------------------------------------------ */
.fs-stage {
  --glass: oklch(16% 0.03 280 / 0.58);
  --glass-edge: oklch(100% 0 0 / 0.14);
  position: relative; isolation: isolate; overflow: hidden;
  height: clamp(460px, 74svh, 700px); margin-top: 10px; border-radius: 20px;
  border: 1px solid var(--rd-edge);
  box-shadow: 0 28px 70px oklch(6% 0.03 280 / 0.5), inset 0 0 0 1px oklch(100% 0 0 / 0.04);
  background: linear-gradient(180deg, #8cc4ee 0%, #d6ebf6 55%, #e8dcc3 100%);
  transition: background 1.2s ease;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.fs-stage[data-mood="golden"] { background: linear-gradient(180deg, #3f5c9c 0%, #f09a62 58%, #6e4c42 100%); }
.fs-stage[data-mood="night"] { background: linear-gradient(180deg, #060a22 0%, #1b2256 60%, #0c0f22 100%); }
.fs-canvas { position: absolute; inset: 0; }
.fs-canvas canvas { display: block; width: 100%; height: 100%; touch-action: none; }

.fs-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: oklch(98% 0.01 90); font-family: var(--label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 12px; background: oklch(14% 0.03 280 / 0.5); transition: opacity 0.5s ease; z-index: 6; }
.fs-loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid oklch(100% 0 0 / 0.25); border-top-color: var(--gold); animation: fs-spin 0.8s linear infinite; }
.fs-loading.is-done { opacity: 0; pointer-events: none; }
@keyframes fs-spin { to { transform: rotate(360deg); } }

/* ---- HUD -------------------------------------------------------------------- */
.fs-hud { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.fs-hud[hidden] { display: none; }
.fs-hud > * { pointer-events: auto; }
.fs-glass { background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); }

/* Your stroller, as a polaroid tucked in the corner */
.fs-photo { position: absolute; top: 14px; left: 14px; width: clamp(104px, 15vw, 150px); padding: 7px 7px 0; background: #fbf8f1; border-radius: 4px; transform: rotate(-3.5deg); box-shadow: 0 14px 30px oklch(8% 0.03 280 / 0.45), 0 2px 4px oklch(8% 0.03 280 / 0.3); transition: transform 0.35s cubic-bezier(.2,.8,.2,1.2); }
.fs-photo-img { position: relative; aspect-ratio: 1; border-radius: 2px; overflow: hidden; background: linear-gradient(180deg, #cfe6f7, #efe4cc); }
.fs-photo-img img, .fs-photo-img svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: filter 0.3s ease, opacity 0.3s ease; }
.fs-photo-cap { display: block; text-align: center; padding: 5px 0 7px; font-family: var(--label); font-weight: 800; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #3b3446; }
.fs-peek { display: none; position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); align-items: center; gap: 5px; white-space: nowrap; padding: 7px 12px; border-radius: 999px; border: 0; cursor: pointer; background: var(--gold); color: oklch(24% 0.045 78); font-family: var(--label); font-weight: 800; font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; box-shadow: 0 6px 16px oklch(8% 0.03 280 / 0.45); }
.fs-peek svg { width: 15px; height: 15px; }
.fs-peek b { font-weight: 800; opacity: 0.75; }
.fs-peek:hover { filter: brightness(1.06); }
.fs-peek:active { transform: translateX(-50%) scale(0.96); }
.fs-photo[data-state="hidden"] .fs-photo-img img, .fs-photo[data-state="hidden"] .fs-photo-img svg { filter: blur(14px) grayscale(0.6) brightness(0.55); }
.fs-photo[data-state="hidden"] .fs-photo-img::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--pixel); font-size: 26px; color: oklch(100% 0 0 / 0.85); }
.fs-photo[data-state="hidden"] .fs-peek { display: inline-flex; }
.fs-photo[data-state="peeking"] { transform: rotate(0deg) scale(1.55); transform-origin: top left; z-index: 5; }
.fs-photo[data-state="peeking"] .fs-photo-img::before { content: ""; position: absolute; inset: 0; z-index: 2; background: #fff; animation: fs-flash 0.45s ease-out forwards; }
@keyframes fs-flash { from { opacity: 0.95; } to { opacity: 0; } }

.fs-roundpill { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; color: oklch(97% 0.01 90); font-family: var(--label); font-weight: 800; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.fs-clock { position: absolute; top: 14px; right: 14px; min-width: 104px; padding: 8px 14px 9px; border-radius: 14px; text-align: right; color: oklch(97% 0.01 90); background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.fs-clock b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.4vw, 34px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.fs-clock span { display: block; margin-top: 4px; font-family: var(--label); font-weight: 700; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.fs-clock i { font-style: normal; font-variant-numeric: tabular-nums; }
.fs-clock.is-hit b { animation: fs-hit 0.5s ease; }
@keyframes fs-hit { 0% { color: #ff6b6b; transform: scale(1.14); } 100% { color: inherit; transform: none; } }
.fs-mute { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: oklch(97% 0.01 90); background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.fs-mute svg { width: 19px; height: 19px; }
.fs-mute .off, .fs-mute[aria-pressed="true"] .on { display: none; }
.fs-mute[aria-pressed="true"] .off { display: block; }
.fs-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); max-width: calc(100% - 120px); padding: 8px 14px; border-radius: 999px; text-align: center; color: oklch(97% 0.01 90); font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: 0.03em; background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: opacity 0.6s ease; }
.fs-hint.is-gone { opacity: 0; pointer-events: none; }

/* ---- Cards (title, round intro, memorize, found) --------------------------- */
.fs-card { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 22px; text-align: center; color: oklch(98% 0.01 90);
  background: radial-gradient(ellipse at 50% 45%, oklch(12% 0.03 280 / 0.35), oklch(10% 0.03 280 / 0.82)); }
.fs-card[hidden] { display: none; }
.fs-card-in { width: min(560px, 100%); animation: fs-in 0.45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fs-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } }
.fs-kicker { margin: 0 0 10px; font-family: var(--label); font-weight: 800; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.fs-big { margin: 0; font-family: var(--pixel); font-weight: 400; font-size: clamp(20px, 4.4vw, 38px); line-height: 1.3; color: #fff; text-shadow: 0 0 22px oklch(84% 0.13 86 / 0.55), 0 3px 0 oklch(30% 0.06 280); }
.fs-line { margin: 14px auto 0; max-width: 42ch; font-size: clamp(14.5px, 1.6vw, 16.5px); line-height: 1.5; color: oklch(94% 0.015 90 / 0.92); }
.fs-line:empty, .fs-kicker:empty { display: none; }
.fs-card-art:empty { display: none; }
.fs-card-art { width: min(220px, 50%); margin: 16px auto 0; }
.fs-card-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 18px oklch(8% 0.03 280 / 0.5)); }
.fs-card-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.fs-card-btns:empty { display: none; }
.fs-btn { min-width: 170px; padding: 15px 26px; border-radius: 14px; border: 0; cursor: pointer; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: 0.01em; background: var(--gold); color: oklch(24% 0.045 78); box-shadow: 0 6px 0 oklch(55% 0.11 70), 0 16px 34px oklch(8% 0.03 280 / 0.5); transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s; }
.fs-btn:hover { filter: brightness(1.06); }
.fs-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 oklch(55% 0.11 70), 0 8px 18px oklch(8% 0.03 280 / 0.5); }
.fs-btn-ghost { background: oklch(100% 0 0 / 0.1); color: #fff; border: 1px solid oklch(100% 0 0 / 0.3); box-shadow: none; }
.fs-btn-ghost:active { box-shadow: none; }

/* Memorize: the 3D showcase is the art, so the card frames it instead of covering it */
.fs-card[data-kind="memorize"] { background: radial-gradient(ellipse at 50% 55%, transparent 38%, oklch(10% 0.03 280 / 0.72) 100%); place-items: stretch; }
.fs-card[data-kind="memorize"] .fs-card-in { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; animation: none; }
.fs-card[data-kind="memorize"] .fs-card-btns { margin-top: 0; }
.fs-card[data-kind="memorize"] .fs-big { font-size: clamp(16px, 3vw, 26px); }
.fs-card[data-kind="cine"] { background: linear-gradient(180deg, oklch(10% 0.03 280 / 0.55), transparent 30%, transparent 75%, oklch(10% 0.03 280 / 0.5)); place-items: start center; pointer-events: none; }
.fs-card[data-kind="cine"] .fs-big { font-size: clamp(15px, 2.6vw, 22px); }
.fs-card[data-kind="found"] { background: radial-gradient(ellipse at 50% 50%, oklch(84% 0.13 86 / 0.18), transparent 60%); pointer-events: none; }
.fs-card[data-kind="found"] .fs-card-in { animation: fs-stamp 0.55s cubic-bezier(.2,1.6,.4,1) both; }
.fs-card[data-kind="found"] .fs-big { font-size: clamp(30px, 7vw, 64px); color: var(--gold); transform: rotate(-4deg); text-shadow: 0 4px 0 oklch(40% 0.09 70), 0 0 40px oklch(84% 0.13 86 / 0.8); }
@keyframes fs-stamp { from { opacity: 0; transform: scale(2.2); } }

.fs-ring { position: relative; width: 66px; height: 66px; margin: 0 auto; }
.fs-ring[hidden] { display: none; }
.fs-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fs-ring circle { fill: oklch(12% 0.03 280 / 0.55); stroke: oklch(100% 0 0 / 0.2); stroke-width: 3.5; }
.fs-ring .fs-ring-fg { fill: none; stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 0; }
.fs-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 24px; color: #fff; font-variant-numeric: tabular-nums; }

/* ---- Toast ------------------------------------------------------------------ */
.fs-toast { position: absolute; left: 50%; top: 66px; z-index: 5; transform: translateX(-50%); padding: 10px 16px; border-radius: 12px; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; color: #fff; font-family: var(--label); font-weight: 800; font-size: 13px; letter-spacing: 0.03em; background: oklch(16% 0.03 280 / 0.8); border: 1px solid oklch(100% 0 0 / 0.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fs-toast 0.3s cubic-bezier(.2,1.4,.4,1) both; }
.fs-toast.is-bad { background: oklch(48% 0.19 25 / 0.9); }
.fs-toast[hidden] { display: none; }
@keyframes fs-toast { from { opacity: 0; transform: translate(-50%, -8px) scale(0.9); } }

/* ---- 2D fallback lot (no WebGL or reduced motion) --------------------------- */
.fs-lot { position: absolute; inset: 0; overflow: auto; padding: 84px 14px 70px; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); align-content: start; gap: 2px 4px;
  background-color: #b9ab93; background-image: repeating-linear-gradient(90deg, transparent 0 100px, oklch(100% 0 0 / 0.35) 100px 103px); }
.fs-stage[data-mood="golden"] .fs-lot { background-color: #a37c5e; }
.fs-stage[data-mood="night"] .fs-lot { background-color: #2c3050; }
.fs-cell { border: 0; background: transparent; padding: 0; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; transition: transform 0.14s ease; }
.fs-cell svg { width: 100%; height: auto; display: block; overflow: visible; }
.fs-cell:hover, .fs-cell:focus-visible { transform: scale(1.14) rotate(0deg) !important; position: relative; z-index: 5; }
.fs-cell.fs-wrong svg { filter: drop-shadow(0 0 8px #ff4d4d); }
.fs-lot.fs-dim .fs-cell:not(.fs-found) { opacity: 0.35; }
.fs-cell.fs-found { transform: scale(1.25) rotate(0deg) !important; z-index: 6; }
.fs-cell.fs-found svg { filter: drop-shadow(0 0 14px oklch(84% 0.13 86 / 0.95)); }

/* ---- Results ---------------------------------------------------------------- */
.fs-res-kicker { margin: 0 0 4px; font-family: var(--label); font-weight: 800; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.fs-finalwrap { text-align: center; margin: 10px 0 6px; }
.fs-final { font-family: var(--display); font-weight: 800; font-size: 68px; line-height: 0.95; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.fs-final-label { font-family: var(--label); text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; font-weight: 800; color: var(--gold); margin-top: 6px; }
.fs-splits { list-style: none; margin: 14px 0 12px; padding: 0; display: grid; gap: 6px; }
.fs-splits li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--hair); font-size: 13.5px; color: var(--ink-soft); }
.fs-splits li b { font-family: var(--display); font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.fs-splits li span:first-child { font-family: var(--label); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11.5px; }
.fs-replay { width: 100%; margin-top: 12px; padding: 12px; border-radius: 10px; border: 1px solid var(--rd-edge); background: var(--paper); color: var(--ink); font-family: var(--label); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; }
.fs-replay:hover { border-color: var(--gold); color: var(--gold); }

/* ---- About (crawlable copy under the game) ---------------------------------- */
.fs-about { max-width: 68ch; margin: 44px auto 12px; padding: 0 4px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; }
.fs-about h2 { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 10px; }
.fs-about h3 { font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--ink); margin: 22px 0 6px; }
.fs-about p { margin: 0 0 10px; }
.fs-about a { color: var(--gold); }

/* ---- Small screens ---------------------------------------------------------- */
@media (max-width: 620px) {
  .fs-stage { height: 76svh; min-height: 460px; border-radius: 16px; margin-left: -4px; margin-right: -4px; }
  .fs-photo { top: 10px; left: 10px; width: 92px; padding: 5px 5px 0; }
  .fs-photo-cap { font-size: 9px; padding: 4px 0 5px; }
  .fs-roundpill { top: auto; bottom: 12px; left: 12px; transform: none; font-size: 10.5px; padding: 7px 12px; }
  .fs-clock { top: 10px; right: 10px; min-width: 0; padding: 7px 11px 8px; }
  .fs-mute { right: 10px; bottom: 10px; width: 36px; height: 36px; }
  .fs-hint { bottom: 56px; font-size: 11px; max-width: calc(100% - 28px); }
  .fs-toast { top: 64px; }
  .fs-btn { min-width: 150px; padding: 14px 20px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .fs-card-in, .fs-toast, .fs-card[data-kind="found"] .fs-card-in { animation: none; }
  .fs-photo { transition: none; }
}

/* ---- Cinematics: iris wipe, staged card text, HUD entrance ------------------ */
.fs-iris { position: absolute; inset: 0; z-index: 7; pointer-events: none; --r: 150%;
  background: radial-gradient(circle at 50% 50%, transparent var(--r), #0a0d1f calc(var(--r) + 0.5%)); }
.fs-iris[hidden] { display: none; }
.fs-card-in > .fs-kicker { animation: fs-rise 0.5s 0.05s cubic-bezier(.2,.8,.2,1) both; }
.fs-card-in > .fs-big { animation: fs-focus 0.6s 0.12s cubic-bezier(.2,.8,.2,1) both; }
.fs-card-in > .fs-line { animation: fs-rise 0.5s 0.32s cubic-bezier(.2,.8,.2,1) both; }
.fs-card-in > .fs-card-btns { animation: fs-rise 0.5s 0.45s cubic-bezier(.2,.8,.2,1) both; }
.fs-card[data-kind="found"] .fs-card-in > * { animation: none; }
@keyframes fs-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fs-focus { from { opacity: 0; transform: scale(1.12); filter: blur(8px); letter-spacing: 0.08em; } }
.fs-kicker { display: inline-flex; align-items: center; gap: 10px; }
.fs-kicker::before, .fs-kicker::after { content: ""; width: 26px; height: 2px; background: currentColor; opacity: 0.6; }
.fs-btn { position: relative; overflow: hidden; }
.fs-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, oklch(100% 0 0 / 0.45) 50%, transparent 65%); transform: translateX(-120%); animation: fs-sheen 2.8s 1s ease-in-out infinite; }
.fs-btn-ghost::after { display: none; }
@keyframes fs-sheen { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.fs-hud.is-live .fs-photo { animation: fs-in-left 0.55s cubic-bezier(.2,1.3,.4,1) both; }
.fs-hud.is-live .fs-clock { animation: fs-in-right 0.55s 0.08s cubic-bezier(.2,1.3,.4,1) both; }
.fs-hud.is-live .fs-roundpill { animation: fs-in-top 0.5s 0.14s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes fs-in-left { from { opacity: 0; transform: translateX(-40px) rotate(-12deg); } }
@keyframes fs-in-right { from { opacity: 0; transform: translateX(40px); } }
@keyframes fs-in-top { from { opacity: 0; translate: 0 -24px; } }
.fs-clock.is-found b { animation: fs-found 0.7s ease; }
@keyframes fs-found { 30% { color: var(--gold); transform: scale(1.18); } }
.fs-stage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 8; box-shadow: inset 0 0 0 1px oklch(100% 0 0 / 0.07), inset 0 1px 0 oklch(100% 0 0 / 0.12); }
@media (prefers-reduced-motion: reduce) {
  .fs-card-in > *, .fs-hud.is-live > *, .fs-btn::after { animation: none !important; }
}
