/* Deep Dish: warm retro pixel UI over the live world canvas. */
:root {
  --ink: #eef0e6; --ink-soft: #b4bec0; --ink-dim: #7f8b90;
  --panel: rgba(12, 22, 30, 0.84); --panel-solid: #0f1a22; --line: rgba(230, 240, 240, 0.18);
  --cream: #ead9b4; --cream-edge: #a89068; --ink-dark: #16222a; --paper: #f3ead6; --paper-ink: #22303a; --paper-line: #cdbf9e;
  --mustard: #ead9b4; --mustard-edge: #a89068; --plum: #24405c; --plum-edge: #142a3e; --paprika: #c4664e; --paprika-edge: #843e2e; --basil: #2a7466; --basil-edge: #164a40;
  --chalk: #1f2d2a; --wood: #7a5236; --wood-dark: #4a2e1f;
  --focus: #f0d878; --gold: #f6c445; --purple: #bc64e4; --blue: #f0a04a; --green: #8cc26a; --red: #d9604c; --grey: #8a8f96;
  --pixel: 'Galmuri11', 'Pixelify Sans', ui-monospace, monospace; --mono: 'Departure Mono', 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --kb: 0px;
  color-scheme: dark;
}
@font-face { font-family: 'Galmuri11'; src: url('/fonts/Galmuri11.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Galmuri11'; src: url('/fonts/Galmuri11-Bold.woff2') format('woff2'); font-weight: 600 800; font-display: swap; }
@font-face { font-family: 'Departure Mono'; src: url('/fonts/DepartureMono.woff2') format('woff2'); font-display: swap; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
/* Type grid: Galmuri11 is pixel-exact at 12/24/36/48/60px, Departure Mono at 11/22px. Only those
   sizes, whole-pixel letter-spacing, Bold for small Galmuri labels. */
body { -webkit-font-smoothing: none; -moz-osx-font-smoothing: grayscale; font-smooth: never; background: #20343a; color: var(--ink); font: 11px/16px var(--mono); overflow: hidden; -webkit-tap-highlight-color: transparent; }
/* Grayscale text: each UI root gets its own transparent compositing layer, so Chrome on Windows
   drops ClearType's coloured sub-pixel fringes on the pixel fonts. */
.topbar, .logo, .tagline, .panel-stack, .corner, .game, .res, .peekbar, .sheet, .modal, .locker, .toast { will-change: transform; }
button { font: inherit; color: inherit; cursor: pointer; }
/* Departure Mono has one weight: no synthetic bold (it smears). Pixel-font labels set 700 themselves. */
b, strong, th { font-weight: 400; }
button:disabled { cursor: default; opacity: 0.45; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- world + CRT ---------- */
.world { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; image-rendering: pixelated; z-index: 0; animation: world-in 0.8s ease-out; }
@keyframes world-in { from { opacity: 0; } }
.crt { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.crt--lines { background: repeating-linear-gradient(to bottom, #0000 0 1px, #06101a17 1px 2px); mix-blend-mode: multiply; }
.crt--vignette { background: radial-gradient(90% 75% at 50% 45%, #0000 60%, #06101a40 88%, #06101a7a 100%); }
.crt--glass { background: linear-gradient(160deg, #fffaf009, #fffaf000 40%); }

/* ---------- top bar ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 14px 18px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; background: var(--panel); border: 1px solid var(--line); font: 700 12px var(--pixel); letter-spacing: 0; }
.chip:hover { border-color: var(--ink-soft); }
.chip__pug, .corner__pug { width: 16px; height: 16px; background: url('/assets/pug.png') center / contain no-repeat; image-rendering: pixelated; }
/* The depth readout is a HUD chip with its own backing, so no band is needed behind the top bar. */
.depth { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; background: var(--panel); border: 1px solid var(--line); font: 700 12px var(--pixel); letter-spacing: 2px; text-transform: uppercase; color: var(--ink); }
.depth__m { color: var(--ink-soft); margin-left: 8px; letter-spacing: 1px; transition: color 0.3s; }
.depth.is-moving .depth__m { color: var(--focus); }
.topbar__right { margin-left: auto; display: flex; gap: 8px; }
.icon-btn { width: 32px; height: 30px; background: var(--panel); border: 1px solid var(--line); font: 700 12px var(--pixel); display: grid; place-items: center; }
.icon-btn:hover { border-color: var(--ink-soft); }
[data-act="sound"] .uicon--speaker-off, [data-act="sound"][aria-pressed="true"] .uicon--speaker { display: none; }
[data-act="sound"][aria-pressed="true"] .uicon--speaker-off { display: block; }

/* ---------- buttons ---------- */
.btn { border: 0; padding: 10px 16px; font: 700 12px var(--pixel); letter-spacing: 1px; text-transform: uppercase; box-shadow: inset 0 -3px 0 #0003; transition: transform 0.06s, translate 0.06s, filter 0.15s; }
.btn:hover:not(:disabled) { filter: brightness(1.07); }
.btn:active:not(:disabled) { translate: 0 2px; box-shadow: inset 0 -1px 0 #0003; }
.btn--cream { background: var(--cream); color: var(--ink-dark); outline: 2px solid var(--ink-dark); outline-offset: -4px; }
.btn--dark { background: #1a2a34; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--sm { padding: 6px 10px; font-size: 12px; }
.btn--wide { width: 100%; }

/* ---------- home ---------- */
.home { position: fixed; inset: 0; z-index: 10; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; align-items: center; padding: 70px 16px 120px; scrollbar-width: none; }
.home.is-leaving .panel-stack, .home.is-leaving .logo, .home.is-leaving .tagline, .home.is-leaving .corner { opacity: 0; transform: translateY(14px); transition: opacity 0.35s, transform 0.35s; }
.logo { display: flex; justify-content: center; margin: 10px 0 0; line-height: 0; animation: logo-in 0.9s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes logo-in { from { opacity: 0; transform: translateY(-24px); } }
/* The logo is pixel art drawn on a canvas by public/brand-logo.mjs (the pizza mark and the wordmark, with
   its own letter bob), 1 art px per canvas px, enlarged by a whole number --logo-s that layoutHome picks.
   Its box is the cap line down to the drop shadow; the steam rows above rise into the margin. */
.logo__art { display: block; position: relative; left: var(--logo-sx, 0px); width: calc(var(--logo-w, 142) * var(--logo-s, 2) * 1px); height: calc(var(--logo-h, 34) * var(--logo-s, 2) * 1px); margin-top: calc(var(--logo-head, 10) * var(--logo-s, 2) * -1px); image-rendering: crisp-edges; image-rendering: pixelated; pointer-events: none; }
.tagline { display: inline-block; margin: 30px 0 0; padding: 4px 16px; font: 700 12px var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: var(--paper-ink); background: var(--paper); box-shadow: 0 3px 0 #4a1f1466; background-image: linear-gradient(90deg, #c4664e 0 6px, transparent 6px calc(100% - 6px), #c4664e calc(100% - 6px)); }
.tagline { max-width: 100%; text-align: center; text-wrap: balance; }
.panel-stack { width: min(582px, 100%); margin-top: max(18vh, 120px); display: grid; gap: 10px; animation: rise-in 0.6s 0.15s ease-out both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(20px); } }
.bar { display: flex; gap: 8px; }
.bar__btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; background: #2a3a44d9; border: 0; box-shadow: inset 0 -3px 0 #0004; font: 700 12px var(--pixel); color: #d8cfbf; }
.bar__btn b { font-size: 24px; font-weight: 700; color: var(--ink); }
.bar__btn--icon { margin-left: auto; width: 38px; justify-content: center; font-size: 24px; }
.bar__btn:hover { filter: brightness(1.12); }
.bar__sep { width: 1px; height: 22px; background: #ffffff22; margin: 0 4px; }
.flame { display: inline-flex; }
.flame .uicon--flame, .flame.is-lit .uicon--flame-off { display: none; }
.flame.is-lit .uicon--flame { display: block; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 132px; padding: 16px 10px 14px; border: 2px solid var(--ink-dark); text-align: center; box-shadow: inset 0 -6px 0 var(--edge), inset 0 0 0 2px #ffffff14; transition: transform 0.08s, filter 0.15s; }
.tile:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-2px); }
.tile:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 -2px 0 var(--edge); }
.tile__arrow { display: grid; place-items: center; min-height: 40px; }
.tile__arrow .gicon { filter: drop-shadow(0 2px 0 #0003); }
.tile:hover .tile__arrow .gicon { animation: icon-bob 0.6s steps(3) infinite alternate; }
@keyframes icon-bob { to { transform: translateY(-2px); } }
/* Small game logos are 16x13 art: always shown at 1:1. */
.gicon--sm { width: auto; height: auto; vertical-align: -2px; image-rendering: pixelated; }
.uicon { width: 16px; height: 16px; image-rendering: pixelated; flex: none; }
.mini-tiles .tile__arrow { min-height: 26px; }
.tile__name { font: 700 24px/28px var(--pixel); letter-spacing: 2px; text-transform: uppercase; }
.tile__goal { font-size: 11px; opacity: 0.85; }
.tile__state { min-height: 16px; font: 700 12px var(--pixel); letter-spacing: 1px; text-transform: uppercase; }
.tile__state:empty { display: none; }
.tile--crowd { background: var(--mustard); color: var(--ink-dark); --edge: var(--mustard-edge); }
.tile--secret { background: var(--plum); color: var(--ink); --edge: var(--plum-edge); }
.tile--course { background: var(--paprika); color: #fff5ec; --edge: var(--paprika-edge); }
.tile--fast { background: var(--basil); color: var(--ink); --edge: var(--basil-edge); }
.tile.is-done::after { content: ''; position: absolute; top: 8px; right: 8px; width: 12px; height: 9px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg); opacity: 0.8; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); background: #122029e6; border: 1px solid #0006; }
.strip--two { grid-template-columns: 1.4fr 1fr; gap: 10px; background: none; border: 0; }
.strip button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px; border: 0; border-right: 1px solid #ffffff12; background: none; font: 700 12px var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: var(--ink); }
.strip button:last-child { border-right: 0; }
.strip button:hover:not(:disabled) { background: #ffffff0d; }
.strip--two button { background: #122029e6; border: 1px solid #0006; }
.strip--two .strip__main { outline: 2px solid var(--ink); outline-offset: -4px; }
.strip--live { grid-template-columns: 1fr 1fr; }
.strip--live a { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; min-height: 48px; padding: 8px; text-decoration: none; font: 700 12px var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: #1d1a12; background: var(--gold); border: 1px solid #0006; box-shadow: inset 0 -3px 0 #c8902a, inset 0 2px 0 #fff3c4; }
.strip--live a + a { color: var(--ink); background: var(--basil); box-shadow: inset 0 -3px 0 #1c544a, inset 0 2px 0 #4f9a8a; }
.strip--live a:hover { filter: brightness(1.08); }
.strip--live a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.strip--live .strip__main { outline: 0; }
.strip__note { flex-basis: 100%; text-align: center; font: 11px/1 var(--mono); letter-spacing: 0; text-transform: none; opacity: .8; }
.strip__note:empty { display: none; }
.corner { position: fixed; z-index: 11; background: var(--panel); border: 1px solid var(--line); animation: rise-in 0.6s 0.3s ease-out both; }
.corner--left { left: 18px; bottom: 18px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-left: 4px solid var(--cream); }
.corner__pug { width: 20px; height: 20px; }
.corner__who { display: grid; line-height: 16px; } .corner__who small { color: var(--ink-soft); font-size: 11px; } .corner__who b { font: 700 12px var(--pixel); letter-spacing: 1px; }
.corner--right { right: 18px; bottom: 18px; width: 290px; padding: 12px 16px 14px; }
.card-day__title { margin: 14px 0 0; font: 700 12px/16px var(--pixel); letter-spacing: 2px; text-transform: uppercase; color: var(--ink-dim); }
.card-day__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.card-day__cell { display: grid; grid-template-rows: 16px 26px; align-items: center; }
.card-day__cell small { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); }
.card-day__cell b { font: 700 24px/26px var(--pixel); } .card-day__cell b small { display: inline; margin-left: 3px; font: 400 11px var(--mono); letter-spacing: 0; color: var(--ink-soft); text-transform: none; }
.card-day__cell.is-empty b { color: var(--ink-dim); }
.card-day__foot { margin: 6px 0 0; font-size: 11px; color: var(--ink-soft); }
.card-day__foot b { color: var(--ink); font-family: var(--pixel); font-size: 12px; }

/* ---------- game ---------- */
.game { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.game > * { pointer-events: auto; }
/* The goal line floats in the water just under the waterline (top is set from the world in app.mjs). */
.intro { position: absolute; left: 0; right: 0; top: var(--intro-top, 60%); width: min(640px, 92vw); margin: 0 auto; text-align: center; font: 700 36px/44px var(--pixel); color: #fbf4e4; text-shadow: 0 2px 0 #16222a, 0 -1px 0 #16222a99, 1px 0 0 #16222a99, -1px 0 0 #16222a99; pointer-events: none; }
.intro.is-on { animation: intro 2.6s ease both; }
@keyframes intro { 0% { opacity: 0; transform: translateY(12px); } 15%, 80% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-8px); } }
.sign { position: absolute; left: 50%; top: 56px; width: min(540px, calc(100vw - 32px)); transform: translateX(-50%) rotate(var(--tilt, 0.6deg)); background: radial-gradient(120% 90% at 30% 20%, #2c3d34, var(--chalk) 70%); border: 6px solid var(--wood); outline: 2px solid var(--wood-dark); box-shadow: 0 8px 0 #0005, inset 0 0 0 2px #00000033, inset 0 0 24px #0004; padding: 12px 18px 14px; text-align: center; transform-origin: 50% -40px; }
.sign.is-in { animation: sign-drop 0.7s cubic-bezier(.3,1.5,.5,1) both; }
.sign.is-swing { animation: sign-swing 3.6s ease-in-out infinite; }
.sign.is-out { animation: sign-lift 0.26s cubic-bezier(.5,0,.9,.5) both; pointer-events: none; }
@keyframes sign-lift { to { transform: translate(-50%, -150%) rotate(2deg); } }
@keyframes sign-drop { from { transform: translate(-50%, -140%) rotate(-3deg); } }
@keyframes sign-swing { 0%, 100% { transform: translateX(-50%) rotate(0.8deg); } 50% { transform: translateX(-50%) rotate(-0.6deg); } }
.sign__chain { position: absolute; left: calc(50% - 3px); top: -62px; width: 6px; height: 56px; background: repeating-linear-gradient(#8a6a4a 0 4px, #5a3a24 4px 6px); }
.sign__top { display: flex; justify-content: center; align-items: center; gap: 10px; }
.pips { display: inline-flex; gap: 3px; }
.pip { width: 20px; height: 18px; background: #2c3a40; border: 1px solid #f6f3e855; display: grid; place-items: center; font: 700 12px/1 var(--pixel); color: var(--ink-dark); }
.pip[data-tier] { border-color: #16222a; }
.pip.is-now { background: #3a4c56; border-color: #f6f3e8aa; box-shadow: inset 0 -2px 0 var(--focus); }
.pip[data-tier] { animation: pip 0.4s ease-out; }
@keyframes pip { from { transform: scale(1.7); filter: brightness(1.8); } }
.sign__pts b { font: 700 24px var(--pixel); } .sign__pts small { font-size: 11px; color: var(--ink-soft); margin-left: 2px; }
.sign__pts b.is-bump { animation: bump 0.5s ease-out; color: var(--focus); }
@keyframes bump { from { transform: scale(1.5); } }
.sign__meta { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 6px 0 2px; font: 400 11px/16px var(--mono); letter-spacing: 1px; text-transform: uppercase; color: #93a69a; }
.sign__tag { position: absolute; top: 6px; left: 6px; padding: 0 5px; background: #f6f3e8; color: var(--chalk); font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; }
.sign__prompt { margin: 6px 0 8px; font: 700 36px/44px var(--pixel); color: #f6f3e8; text-wrap: balance; }
.sign__prompt.is-long { font-size: 24px; line-height: 30px; }
.sign__prompt.is-hidden { visibility: hidden; }
.sign.is-paused .sign__prompt { filter: blur(9px); opacity: 0.5; }
.sign__say { margin: 0 0 10px; font: 11px/16px var(--mono); color: var(--focus); }
.timer { height: 4px; background: #ffffff1f; }
.timer__fill { height: 100%; width: 100%; background: #f6f3e8; transform-origin: left; }
.timer__fill.is-ready { background: var(--ink-dim); }
.timer__fill.is-late { background: var(--red); animation: late 0.5s steps(2) infinite; }
@keyframes late { 50% { opacity: 0.4; } }
.answer { position: absolute; left: 50%; bottom: calc(26px + var(--kb)); transform: translateX(-50%); width: min(540px, calc(100vw - 24px)); display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 14px 12px 12px; background: var(--paper); border: 0; box-shadow: 0 5px 0 #0005; transition: bottom 0.15s; background-image: repeating-linear-gradient(90deg, #b8402e 0 8px, transparent 8px 14px); background-size: 100% 4px; background-repeat: no-repeat; }
.answer.is-in { animation: rise-in 0.35s ease-out; }
.answer__input { min-width: 0; height: 46px; padding: 0 14px; background: #fffaf0; border: 2px solid var(--paper-ink); color: var(--paper-ink); font: 22px var(--mono); }
.answer__input:focus { outline: none; box-shadow: 0 0 0 3px #f2c14e; }
.answer__input::placeholder { color: #9a8670; }
.answer__input:disabled { opacity: 0.6; }
.answer.is-late .answer__input { border-color: var(--red); }
.answer__go { height: 46px; }
.answer__msg { grid-column: 1 / -1; margin: 0; min-height: 0; font-size: 11px; color: #b8402e; }
.answer__msg:empty { display: none; }
.answer.is-shake { animation: shake 0.35s; }
.answer.is-sending .answer__input { animation: sent 0.3s steps(3) both; }
.answer.is-sending .answer__go { translate: 0 2px; box-shadow: inset 0 3px 0 #0003; }
@keyframes sent { from { background: #ffe9a8; } to { background: #f4ecdc; } }
@keyframes shake { 20% { transform: translateX(calc(-50% - 7px)); } 45% { transform: translateX(calc(-50% + 6px)); } 70% { transform: translateX(calc(-50% - 3px)); } }

/* result card after each answer */
.verdict { position: absolute; left: 50%; bottom: calc(26px + var(--kb)); transform: translateX(-50%); width: min(540px, calc(100vw - 24px)); max-height: calc(100dvh - 300px); overflow: auto; background: var(--paper); color: var(--paper-ink); border: 0; box-shadow: 0 6px 0 #0006; }
.verdict.is-in { animation: verdict-in 0.45s cubic-bezier(.2,1.3,.4,1); }
@keyframes verdict-in { from { transform: translate(-50%, 40px); opacity: 0; } }
.verdict__head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--tc); color: var(--ink-dark); font: 700 24px var(--pixel); letter-spacing: 1px; text-transform: uppercase; }
.verdict__head .pts { margin-left: auto; font-size: 36px; letter-spacing: 0; } .verdict__head .pts small { margin-left: 2px; font: 700 12px var(--pixel); text-transform: none; }
/* Chef's Kiss and Delicious heads shine: see "Tier shine" at the end of this file. */
.verdict__head.is-pop { animation: pop 0.5s cubic-bezier(.2,1.6,.4,1); }
/* Tier stamp: Tasty and Fine land with a small stamp of the word and a late hop of the points (the rare tiers'
   slam in verdictfx.mjs stays far bigger). Timed from the card showing; reduced motion drops it (global rule). */
.verdict__head .vstamp { display: inline-block; animation: vstamp 0.3s 0.12s steps(4) both; transform-origin: 30% 60%; }
.verdict__head .vstamp--tasty { --st: 1.45; --sr: -5deg; } .verdict__head .vstamp--fine { --st: 1.25; --sr: -3deg; }
@keyframes vstamp { 0% { opacity: 0; transform: scale(var(--st, 1.3)) rotate(var(--sr, -4deg)); } 60% { opacity: 1; transform: scale(0.94); } 100% { transform: none; } }
.verdict__head.is-stamp .pts { animation: pts-in 0.3s 0.38s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pop { from { transform: scale(1.12); filter: brightness(1.8); } }
.verdict__icon { font-size: 24px; }
.verdict__body { padding: 12px 16px 14px; }
.verdict__line { margin: 0 0 4px; color: var(--paper-ink); }
.verdict__quip { margin: 0 0 8px; color: #8f2a1c; }
.verdict__fact { margin: 0 0 8px; padding: 6px 8px; border-left: 3px solid #f6c445; background: #f6c4451f; font-size: 13px; line-height: 1.35; }
.verdict__fact b { margin-right: 4px; color: #a87a12; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
.verdict__you { margin: 0 0 8px; color: #7a6450; font-size: 11px; }
.ex__title { margin: 10px 0 6px; padding-top: 8px; border-top: 2px dashed var(--paper-line); font: 700 12px var(--pixel); letter-spacing: 2px; text-transform: uppercase; color: #7a6450; }
.ex { width: 100%; border-collapse: collapse; font-size: 11px; }
.ex td { padding: 3px 0; }
.ex .t { width: 118px; padding-right: 10px; white-space: nowrap; }
.ex .a { padding-right: 10px; } .ex tr.is-you .a { color: #0f1a22; text-decoration: underline; text-underline-offset: 3px; } .ex .a em { font-style: normal; color: #3f7a2c; font-weight: 400; } .res .ex .a em { color: var(--green); }
.ex .b { width: 26%; } .ex .b span { display: block; height: 5px; background: #0000001a; } .ex .b i { display: block; height: 100%; background: #b99a68; }
.ex tr.is-you .b i { background: var(--tc, var(--green)); }
.ex .s { width: 56px; text-align: right; color: #7a6450; }
/* Your answer and its points, then the other answers with the points each scores (Krillion-style; shares live in
   Review my game). Points take the tier colour, darkened to read on paper. */
.vyou { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 0; padding: 6px 10px; background: #00000010; border-left: 4px solid var(--tc); font-size: 13px; line-height: 18px; color: #0f1a22; }
.vyou__tag { flex: none; font: 700 12px var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: #7a6450; }
.vyou__a { min-width: 0; overflow-wrap: anywhere; }
.vyou__a i { font-style: normal; color: var(--tc); filter: brightness(0.72) saturate(1.3); }
.vyou__dot { flex: none; color: #a08c74; }
.vyou__p { flex: none; font-variant-numeric: tabular-nums; color: var(--tc); filter: brightness(0.72) saturate(1.3); }
.vlist { list-style: none; margin: 0; padding: 0; font-size: 12px; line-height: 16px; }
.vlist li { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: baseline; padding: 3px 0; }
.vlist__p { padding-right: 12px; text-align: right; font-variant-numeric: tabular-nums; color: var(--tc); filter: brightness(0.72) saturate(1.3); }
.vlist__a { min-width: 0; overflow-wrap: anywhere; }
.vlist--plain li { grid-template-columns: minmax(0, 1fr); } .vlist--plain .vlist__p { display: none; }
.verdict .btn--wide { margin-top: 12px; }
/* Next stays locked a moment after the card comes up (an Enter meant for the answer box can't skip it):
   a thin fill runs along the button, then it wakes. */
.verdict [data-act="next"].is-locked { position: relative; overflow: hidden; opacity: 0.7; }
.verdict [data-act="next"].is-locked::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--tc, var(--cream)); transform-origin: 0 50%; animation: next-lock var(--lock, 1.2s) linear both; }
@keyframes next-lock { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .verdict [data-act="next"].is-locked::after { animation: none !important; transform: scaleX(1); } }
/* Over the world during a game: the "Next up" beat, the zone banner on a trip, "Tap to skip". */
.travel { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none !important; text-align: center; }
.travel > p { margin: 0; }
.travel__next, .travel__zone { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 18px 8px; background: #0a131ad9; border-top: 3px solid var(--cream); border-bottom: 3px solid var(--cream); box-shadow: 0 4px 0 #0005; }
.travel__next small, .travel__zone small { font: 700 12px/16px var(--pixel); letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); }
.travel__next b, .travel__zone b { font: 700 24px/28px var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: var(--gold); text-shadow: 0 2px 0 #6a4a10; }
.travel__next b { color: #fbf4e4; text-shadow: 0 2px 0 #16222a; }
.travel__zone.is-on { animation: zone-in 1.9s steps(24) both; }
@keyframes zone-in { 0% { opacity: 0; clip-path: inset(50% 0 50% 0); } 12% { opacity: 1; clip-path: inset(0 0 0 0); } 82% { opacity: 1; } 100% { opacity: 0; } }
.travel__next.is-on { animation: next-in 0.3s steps(5) both; }
@keyframes next-in { from { opacity: 0; clip-path: inset(50% 0 50% 0); } to { clip-path: inset(0 0 0 0); } }
.travel__skip { padding: 2px 8px; background: #0a131acc; font: 700 12px/16px var(--pixel); letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); }
.travel__skip.is-on { animation: fade 0.3s 0.5s both, reveal-blink 1s 0.8s steps(2) infinite; }
.travel [hidden] { display: none; }
@media (max-width: 700px) { .travel__next b, .travel__zone b { font-size: 18px; line-height: 24px; } .vyou { font-size: 12px; } }
.verdict .btn--cream, .answer .btn--cream { background: var(--paper-ink); color: var(--paper); outline-color: var(--paper); }
.verdict__body .ex .t { filter: brightness(0.72) saturate(1.3); }
.res .ex__title { border-top-color: #ffffff1f; color: var(--ink-soft); } .res .ex .s { color: var(--ink-soft); } .res .ex .b i { background: #e8d6b4; }

/* ---------- results ---------- */
.results { position: fixed; inset: 0; z-index: 12; overflow-y: auto; display: grid; justify-items: center; align-content: start; padding: 64px 12px 40px; }
.res { width: min(560px, 100%); background: #0f1a22f2; border: 1px solid #000; box-shadow: 0 6px 0 #0006; animation: rise-in 0.5s ease-out; }
.res__band { padding: 16px 18px 12px; text-align: center; background: var(--band, var(--cream)); color: var(--ink-dark); }
.res__mode { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 0; font: 700 12px var(--pixel); letter-spacing: 2px; text-transform: uppercase; }
.res__score { margin: 4px 0 0; font: 700 60px/1 var(--pixel); }
.res__score small { font-size: 24px; }
.res__verdict { margin: 6px 0 0; font: 700 24px var(--pixel); letter-spacing: 2px; text-transform: uppercase; }
.res__sub { margin: 2px 0 0; font-size: 11px; }
.res__body { padding: 14px 18px 18px; }
.res__row { display: flex; gap: 8px; flex-wrap: wrap; }
.res__row .btn { flex: 1 1 auto; white-space: nowrap; }
.res__row + .res__row { margin-top: 8px; }
/* Results card: every button the same height and frame; only the first is cream. */
.res .btn { min-height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.res .btn--dark, .res .btn--ghost { background: #1a2a34; color: var(--ink); border: 1px solid #ffffff2a; outline: 0; }
.res .btn--dark:hover { background: #22343f; }
.res__pips { display: flex; justify-content: center; gap: 4px; margin: 4px 0 12px; }
.res__pips .pip { width: 26px; height: 22px; font-size: 12px; }
/* Results deal: after the reveal's bars leave, the pips land one by one (a drop and a flash), then the rank counts in. */
.res__pip { display: block; animation: pip-deal 0.24s calc(0.2s + var(--i, 0) * 90ms) steps(3) both; }
@keyframes pip-deal { 0% { opacity: 0; transform: translateY(-8px) scale(1.35); filter: brightness(2); } 70% { opacity: 1; transform: translateY(1px) scale(0.95); } 100% { transform: none; filter: none; } }
.res__count { font-variant-numeric: tabular-nums; } /* no reserved width: a gap was left after "#" once the count landed */
.res__stat { margin: 0 0 12px; text-align: center; color: var(--ink-soft); }
.res__stat b { color: var(--ink); }
.review-wrap > summary { list-style: none; cursor: pointer; } .review-wrap > summary::-webkit-details-marker { display: none; }
.review { margin-top: 12px; display: grid; gap: 10px; }
.review__q { padding: 10px 12px; background: #0a1218; border: 1px solid #ffffff12; }
.review__q h3 { margin: 0 0 4px; font: 700 12px/16px var(--pixel); }
.review__q p { margin: 0 0 6px; font-size: 11px; color: var(--ink-soft); }
.res__peek { flex: 1; }
.results.is-peek .res { display: none; }
.peekbar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 13; }

/* ---------- sheets (leaderboard, menus) & modals ---------- */
/* Overlays: a ~70% scrim over the world, and the home menu is hidden while one is open. */
.sheet { position: fixed; inset: 0; z-index: 30; display: grid; justify-items: center; align-items: start; padding: 20px 12px; background: #060c12b3; overflow-y: auto; animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } }
.sheet__panel { min-width: 0; width: min(660px, 100%); background: #14222bf7; border: 2px solid #000; box-shadow: 0 8px 0 #0005; animation: rise-in 0.3s ease-out; }
body.has-sheet .home, body.has-sheet .results, body.has-modal .home { visibility: hidden; }
/* One panel header for the leaderboard, themed menus, locker and pass: dark bar, back chip, spaced title. */
.sheet__head, .locker__head { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 12px; background: #0a131a; border-bottom: 2px solid #000; box-shadow: inset 0 1px 0 #ffffff14; }
.sheet__head h2, .locker__head h2 { margin: 0; font: 700 24px/28px var(--pixel); letter-spacing: 3px; text-transform: uppercase; color: var(--gold); text-shadow: 0 2px 0 #6a4a10; }
.sheet__head [data-act="close"], .locker__head .x { order: -1; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: auto; min-width: 30px; height: 30px; margin: 0; padding: 0 10px; background: #1a2a34; color: var(--ink); border: 1px solid #ffffff2a; box-shadow: inset 0 -2px 0 #0006; font: 700 12px var(--pixel); letter-spacing: 1px; text-transform: uppercase; outline: 0; }
.sheet__head [data-act="close"]:hover, .locker__head .x:hover { background: #22343f; border-color: var(--ink-soft); }
.sheet__body { padding: 14px 16px 18px; background: #101c24; }
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: #060c12b3; animation: fade 0.15s; }
.modal__panel { width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: #0f1a22; border: 1px solid #ffffff2a; box-shadow: 0 8px 0 #0007; animation: rise-in 0.25s ease-out; }
/* My stats: pinned to the top, so switching tabs (each a different height) never moves the tabs under the pointer. */
.modal--top { place-items: start center; padding-top: max(16px, 6dvh); }
.skel { display: grid; gap: 10px; padding: 8px 0 12px; }
.skel i { display: block; height: 16px; width: var(--w, 100%); background: #ffffff0f; animation: skel 1.2s steps(4) infinite; }
.skel .skel__head { height: 30px; width: 100%; background: #ffffff16; }
.skel i:nth-child(odd) { animation-delay: 0.15s; }
@keyframes skel { 50% { background-color: #ffffff1f; } }
.modal__head { display: flex; align-items: center; padding: 14px 16px 6px; }
.modal__head h2 { margin: 0; font: 700 24px var(--pixel); letter-spacing: 2px; text-transform: uppercase; }
.x { margin-left: auto; width: 30px; height: 30px; background: none; border: 0; font-size: 12px; color: var(--ink-soft); }
.x:hover { color: var(--ink); }
.modal__body { padding: 6px 16px 16px; }
.modal__body p { margin: 0 0 10px; }
.field { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #ffffff2a; margin: 0 0 12px; }
.field small { display: block; color: var(--ink-soft); font-size: 11px; }
.field b { font: 700 12px var(--pixel); letter-spacing: 1px; }
.field input { flex: 1; min-width: 0; height: 38px; padding: 0 10px; background: #0a1218; border: 2px solid var(--focus); color: var(--ink); font: 22px var(--mono); }
.field .btn { margin-left: auto; }
.note { color: var(--ink-soft); font-size: 11px; }
.note b, .board__meta b, .goldnote b, .howto b { color: var(--ink); }
.err { color: #f0b3a8; font-size: 11px; min-height: 1em; margin: 0; }
.mini-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 4px; }
.mini-tiles .tile { min-height: 76px; padding: 10px 6px; }
.mini-tiles .tile__name { font-size: 12px; line-height: 16px; letter-spacing: 2px; } .mini-tiles .tile__goal { font-size: 11px; }

/* leaderboard */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: 0 0 8px; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; background: #122029; border: 1px solid #ffffff14; font: 700 12px var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); }
.seg button[aria-pressed="true"] { background: var(--cream); color: var(--ink-dark); box-shadow: inset 0 -3px 0 var(--cream-edge); }
.seg button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.datenav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; margin: 4px 0 10px; }
.datenav button { height: 40px; background: #122029; border: 1px solid #ffffff14; font: 700 24px var(--pixel); }
.datenav span { text-align: center; font: 700 12px var(--pixel); letter-spacing: 2px; text-transform: uppercase; }
.board__meta { margin: 0 0 4px; color: var(--ink-soft); }
.board__meta b { color: var(--ink); }
/* Histogram canvas is 140x45 art, drawn at exactly 4x. */
.hist { position: relative; margin: 8px 0 2px; display: grid; justify-items: center; }
.hist canvas { width: 560px; max-width: 100%; height: auto; aspect-ratio: 140 / 45; image-rendering: pixelated; display: block; }
.hist__axis { display: flex; justify-content: space-between; width: min(560px, 100%); margin: 0 auto; font-size: 11px; color: var(--ink-soft); }
.board__few { margin: 10px 0 0; padding: 10px 12px; border: 1px dashed #ffffff22; color: var(--ink-soft); text-align: center; }
.board__list { margin: 14px 0 0; padding: 0; list-style: none; }
.board__list h3 { font: 700 12px var(--pixel); letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 6px; }
.board__list li { display: grid; grid-template-columns: 44px 72px 1fr auto; align-items: center; padding: 6px 4px; border-bottom: 1px solid #ffffff10; }
.board__list li.is-you { background: #f0d87814; }
.board__list .rk { color: var(--gold); font: 700 12px var(--pixel); }
.board__list .sc { font: 700 24px var(--pixel); } .board__list .sc small { font: 400 11px var(--mono); color: var(--ink-soft); margin-left: 3px; }
.empty { padding: 26px 0; text-align: center; color: var(--ink-soft); }

/* themed menus */
/* Themed menus: one panel, four cards a row, each 96x120 scene at a whole 2x (3x on big screens). */
.sheet--wide .sheet__panel { width: auto; max-width: 100%; }
.packs { --pw: 192px; display: grid; grid-template-columns: repeat(4, var(--pw)); justify-content: center; gap: 12px; }
@media (min-width: 1360px) and (min-height: 900px) { .packs { --pw: 288px; } }
@media (max-width: 860px) { .packs { grid-template-columns: repeat(2, var(--pw)); } }
@media (max-width: 420px) { .packs { --pw: calc(50vw - 24px); } }
.pack { position: relative; width: var(--pw); height: calc(var(--pw) * 1.25); padding: 0; border: 0; outline: 2px solid var(--wood-dark); outline-offset: 0; box-shadow: 0 0 0 4px var(--wood), 0 0 0 6px var(--wood-dark), 0 8px 0 4px #0006; background: #0f1a22; overflow: hidden; margin: 6px; transition: transform 0.12s; }
.pack:hover { transform: translateY(-4px); box-shadow: 0 0 0 4px var(--mustard), 0 0 0 6px var(--wood-dark), 0 8px 0 4px #0006; }
.pack canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.pack__name { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; text-align: left; font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: #fbf4e4; background: #0a131ad9; border-top: 2px solid #000; }
@media (min-width: 1360px) and (min-height: 900px) { .pack__name { font-size: 24px; line-height: 28px; letter-spacing: 0; text-transform: none; padding: 10px 12px; } }
.pack__count { position: absolute; top: 6px; right: 6px; padding: 0 5px; background: #000b; font: 400 11px/16px var(--mono); }

/* Whole-pixel text: app.mjs measures these labels and nudges them onto the pixel grid. */
.tile__name, .tile__goal, .tile__state, .strip button > span, .card-day__title, .res__mode, .res__score, .res__verdict, .res__sub, .verdict__head, .seg button, .datenav span, .modal__head h2, .sheet__head h2, .ex__title { position: relative; left: var(--sx, 0px); top: var(--sy, 0px); }
.tagline, .res .btn, .verdict .btn { position: relative; left: var(--sx, 0px); top: var(--sy, 0px); }
.pack__name { transform: translate(var(--sx, 0px), var(--sy, 0px)); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.stats div { padding: 10px; background: #0a1218; border: 1px solid #ffffff14; text-align: center; }
.stats b { display: block; font: 700 24px var(--pixel); } .stats small { color: var(--ink-soft); font-size: 11px; }
.best { width: 100%; border-collapse: collapse; } .best td { height: 34px; padding: 0 2px; border-bottom: 1px solid #ffffff10; white-space: nowrap; } .best td:first-child { font: 700 12px var(--pixel); letter-spacing: 1px; text-transform: uppercase; } .best td:first-child .gicon { margin-right: 6px; } .best td:last-child { text-align: right; font: 700 24px var(--pixel); } .best td:last-child small { margin-left: 3px; font: 400 11px var(--mono); color: var(--ink-soft); }
.best tr.is-empty td:last-child { color: var(--ink-dim); }

/* customize */
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; }
.swatch { width: 58px; padding: 6px 4px; background: #0a1218; border: 2px solid #ffffff1a; display: grid; justify-items: center; gap: 4px; font-size: 11px; }
.swatch[aria-pressed="true"] { border-color: var(--focus); }
.swatch:disabled { opacity: 0.35; }
.swatch canvas { width: 36px; height: 40px; image-rendering: pixelated; }
.tierkey { display: grid; gap: 4px; margin: 6px 0 0; }
.tierkey div { display: flex; gap: 10px; } .tierkey b { width: 110px; }

#home ~ .toast { top: auto; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
body[data-view="game"] #home ~ .toast { bottom: calc(104px + var(--kb, 0px)); }
.toast { position: fixed; left: 50%; top: 60px; transform: translateX(-50%); z-index: 50; padding: 8px 14px; background: var(--cream); color: var(--ink-dark); font: 700 12px var(--pixel); letter-spacing: 1px; text-transform: uppercase; box-shadow: 0 4px 0 #0005; animation: toast-in 0.25s; }
/* (rise-in's translateY replaced the toast's translateX(-50%), so it slid in half its width off centre, then jumped.) */
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }
.info { overflow: auto; background: #0f1a22; font-size: 11px; } .info__main { max-width: 640px; margin: 40px auto; padding: 0 16px; } .info a { color: var(--focus); }
.info h1 { font: 700 24px var(--pixel); letter-spacing: 2px; }
.noscript { position: fixed; inset: auto 0 40% 0; text-align: center; z-index: 50; }

/* ---------- small screens ---------- */
@media (max-width: 1100px) {
  .corner--right { display: none; }
  /* The "You're playing as" card sits at the end of the home column here: fixed, it covered the buttons under it. */
  .home { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .corner--left { position: static; flex: none; width: min(582px, 100%); margin-top: 12px; }
}
@media (max-width: 700px) {
  .topbar { padding: 10px 10px; gap: 8px; }
  .depth { letter-spacing: 1px; padding: 0 8px; }
  .chip span:last-child { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .home { padding: 50px 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .logo { margin-top: 4px; }
  .tagline { margin-top: 16px; }
  .panel-stack { margin-top: max(calc(30dvh - 118px), 56px); gap: 8px; }
  .tile { min-height: 104px; padding: 12px 6px; }
  .tile__name { font-size: 18px; line-height: 22px; letter-spacing: 1px; }
  .strip button { letter-spacing: 0; gap: 6px; }
  .sign { top: 52px; padding: 10px 12px 12px; }
  .sign__chain { top: -56px; height: 56px; }
  .sign__prompt, .sign__prompt.is-long { font-size: 24px; line-height: 30px; }
  .intro { font-size: 24px; line-height: 30px; }
  .answer, .verdict { bottom: calc(10px + var(--kb)); }
  .verdict { max-height: calc(100dvh - 250px); }
  .verdict__head .pts { font-size: 24px; }
  .ex .t { width: 96px; padding-right: 6px; } .ex .s { width: 48px; }
  .res__score { font-size: 48px; }
  .sheet { padding: 0; } .sheet__panel { min-height: 100dvh; }
  .seg button { letter-spacing: 0; gap: 4px; white-space: nowrap; padding: 0 2px; }
  .strip button { padding: 8px 4px; }
  .depth { min-width: 0; flex: 0 1 auto; white-space: nowrap; overflow: hidden; }
  .depth > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .depth.is-surface .depth__m { display: none; }
  .depth { letter-spacing: 0; padding: 0 6px; }
  /* In a game the zone chip gets the bar: no name chip or Dash Pass star mid-game (results keep the pug), so long
     zone names ("La Lune de Fromage +6 000 m") read in full. */
  body[data-view="game"] .topbar .chip [data-bind="name"], body[data-view="results"] .topbar .chip [data-bind="name"], body[data-view="reveal"] .topbar .chip [data-bind="name"] { display: none; }
  body[data-view="game"] .topbar .passbtn, body[data-view="reveal"] .topbar .passbtn, body[data-view="game"] .topbar .chip, body[data-view="reveal"] .topbar .chip { display: none; }
  /* Themed menus: a locked card's "played · prompts" count goes under the DASH PASS badge, not beneath it. */
  .pack.is-locked .pack__count { top: 34px; left: 6px; right: auto; max-width: calc(100% - 12px); }
  /* Leaderboard games: names only, each tab as wide as its name, so five fit in every language. */
  .seg--games { grid-auto-columns: auto; gap: 4px; }
  .seg--games .gicon { display: none; }
}
@media (max-height: 820px) and (min-width: 701px) { .tile { min-height: 96px; padding: 8px 10px 10px; gap: 2px; } .tile__arrow .gicon { width: 32px; height: auto; } .strip button, .strip--live a { min-height: 40px; padding: 6px 8px; } .strip__note { display: none; } }
@media (max-height: 640px) and (min-width: 701px) { .panel-stack { margin-top: 40px; } .tile { min-height: 100px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; } }

/* ---------- Chef's Locker ----------
   One dark modal: a gold pixel title with its line after it, a square close button; two columns (the stage, the selected
   item's card and the worn list on the left; the category cards, the filters and the tile grid on the right). 8 px rhythm.
   Phones: one column (stage, card, a collapsible worn list, the categories as a scroller, the grid). */
.locker { --lk-bg: #101622; --lk-panel: #0b111b; --lk-inset: #0a0f18; --lk-line: #ffffff1a; --lk-line2: #ffffff2e; --lk-soft: #8f9aa6; --lk-gold: var(--gold); --lk-fast: 0.12s;
  position: fixed; inset: 0; z-index: 35; display: grid; place-items: center; padding: 24px; background: #05090fcc; animation: fade 0.2s; }
.locker__panel { width: min(1240px, 100%); height: min(900px, calc(100dvh - 48px)); display: flex; flex-direction: column; background: var(--lk-bg); border: 1px solid var(--lk-line2); box-shadow: 0 0 0 1px #000, 0 18px 48px #000a; animation: rise-in 0.25s ease-out; }
.locker .locker__head { display: flex; align-items: baseline; gap: 16px; min-height: 0; padding: 20px 24px 16px; background: none; border: 0; box-shadow: none; }
.locker .locker__head h2 { flex: none; margin: 0; font: 700 32px/32px var(--pixel); letter-spacing: 3px; text-transform: uppercase; color: var(--lk-gold); text-shadow: 0 3px 0 #6a4a10; }
.locker__head p { flex: 1; min-width: 0; margin: 0; font: 400 12px/16px var(--mono); color: var(--lk-soft); }
.locker__x { align-self: center; flex: none; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; background: var(--lk-panel); color: var(--ink); border: 1px solid var(--lk-line2); font: 700 16px var(--pixel); cursor: pointer; transition: background var(--lk-fast), border-color var(--lk-fast); }
.locker__x:hover { background: #1a2433; border-color: var(--ink-soft); }
.locker button:focus-visible, .locker .linkbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.locker__body { display: grid; grid-template-columns: var(--lw, 38%) minmax(0, 1fr); gap: 24px; padding: 0 24px 24px; min-height: 0; flex: 1; overflow: hidden; }
.locker__left { display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 0; }
.locker__right { display: flex; flex-direction: column; gap: 16px; min-height: 0; min-width: 0; }
.locker ::-webkit-scrollbar { width: 6px; height: 6px; } .locker ::-webkit-scrollbar-thumb { background: #2a3444; } .locker ::-webkit-scrollbar-track { background: transparent; }
.locker * { scrollbar-width: thin; scrollbar-color: #2a3444 transparent; }

/* The stage: the canvas at a whole-number scale (locker.mjs fitStage) on a dark panel, a soft floor shadow under it. */
.lstage { position: relative; flex: none; display: grid; justify-items: center; padding: 0; background: var(--lk-inset); border: 1px solid var(--lk-line); box-shadow: inset 0 -24px 32px -16px #000c; }
.lstage canvas { display: block; image-rendering: pixelated; }
.lstage__badge { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; background: var(--lk-gold); color: #3a2a08; font: 700 12px/12px var(--pixel); letter-spacing: 1px; text-transform: uppercase; box-shadow: 0 2px 0 #0006; }
.lstage__badge svg { width: 14px; height: 11px; }

/* The selected item's card: a gold accent bar, the name, rarity, the rule in gold, a cream callout with the action. */
.linfo { flex: none; padding: 16px 16px 16px 20px; background: var(--lk-panel); border: 1px solid var(--lk-line); border-left: 4px solid var(--lk-gold); }
.linfo h3 { margin: 0; font: 700 24px/28px var(--pixel); color: var(--ink); overflow-wrap: anywhere; }
.linfo__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 0; font: 700 12px/16px var(--pixel); }
.linfo__meta i { width: 8px; height: 8px; display: inline-block; }
.linfo__tag { padding: 0 6px; background: #3a2c10; color: var(--lk-gold); border: 1px solid #8a6a20; font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; }
.linfo__tag--dash { background: #2c2440; color: #d8c4ff; border-color: #6a5a9a; }
.linfo__rule { margin: 8px 0 0; font: 400 12px/16px var(--mono); color: var(--lk-gold); }
.linfo__call { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 12px 0 0; padding: 12px; background: var(--cream); color: var(--ink-dark); }
.linfo__call .linfo__icon { width: 32px; height: 32px; }
.linfo__call p { display: grid; gap: 4px; margin: 0; min-width: 0; }
.linfo__call p b { font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; }
.linfo__call p small { font: 400 11px/14px var(--mono); color: #4a4234; }
.linfo__call .lbar { height: 4px; background: #00000026; } .linfo__call .lbar b { background: #b8862a; }
.linfo__btn { min-height: 40px; padding: 0 16px; white-space: nowrap; }
.linfo__btn:not(:disabled):hover { filter: brightness(1.06); }
.linfo__call .btn--ghost { background: transparent; color: var(--ink-dark); border: 1px solid #00000040; box-shadow: none; }
.linfo__call .btn--ghost:not(:disabled):hover { background: #0000000f; }
.linfo__btn:disabled { background: transparent; color: #5a5040; outline: 1px solid #00000030; box-shadow: none; cursor: default; }
.linfo__found { color: #8a5a12; }
.linfo.is-reveal { animation: lk-reveal 0.9s ease-out 1; }
@keyframes lk-reveal { 0% { box-shadow: 0 0 0 0 #f6c44500; } 25% { box-shadow: 0 0 0 6px #f6c44566; } 100% { box-shadow: 0 0 0 0 #f6c44500; } }
.lbar { display: block; height: 4px; background: #ffffff1a; overflow: hidden; }
.lbar b { display: block; height: 100%; background: var(--focus); }

/* The worn list: every slot as a row (muted name, the worn item in white); scrolls inside the column. */
.lworn { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lworn__toggle { display: none; }
.lslots { flex: 1; min-height: 0; list-style: none; margin: 0; padding: 0; overflow-y: auto; background: var(--lk-panel); border: 1px solid var(--lk-line); }
.lslots button { width: 100%; display: grid; grid-template-columns: 16px minmax(88px, max-content) minmax(0, 1fr); align-items: center; gap: 12px; min-height: 32px; padding: 4px 12px; background: none; border: 0; border-bottom: 1px solid #ffffff0a; text-align: left; cursor: pointer; transition: background var(--lk-fast); }
.lslots li:last-child button { border-bottom: 0; }
.lslots .uicon { filter: grayscale(1) brightness(0.85); opacity: 0.8; }
.lslots span { font: 400 11px/16px var(--mono); color: var(--lk-soft); }
.lslots b { font: 700 12px/16px var(--pixel); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lslots button:hover { background: #ffffff08; }
.lslots button.is-on { background: #1c2636; box-shadow: inset 3px 0 0 var(--lk-gold); }
.lslots button.is-on .uicon { filter: none; opacity: 1; }

/* Category cards: twelve equal cards in two rows (icon above the name and the owned / total count). */
.ltabs { flex: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ltabs button { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 72px; padding: 8px 4px; background: var(--lk-panel); border: 1px solid var(--lk-line); color: var(--ink); cursor: pointer; transition: background var(--lk-fast), border-color var(--lk-fast); }
.ltabs button .uicon { width: 24px; height: 24px; filter: grayscale(1) brightness(1.1); opacity: 0.75; transition: filter var(--lk-fast), opacity var(--lk-fast); }
.ltabs button span { max-width: 100%; font: 700 12px/14px var(--pixel); text-align: center; overflow-wrap: break-word; } /* a long name wraps at a space, never cut */
.ltabs button span.is-long { font-size: 11px; letter-spacing: -0.5px; } /* one long word (Comemoração, Personagem): a size down so it fits whole */
.ltabs button small { font: 400 11px/14px var(--mono); color: var(--lk-soft); }
.ltabs button:hover:not([aria-pressed="true"]) { background: #161f2e; border-color: var(--lk-line2); }
.ltabs button:hover .uicon { opacity: 1; }
.ltabs button[aria-pressed="true"] { background: #1f2a3c; border-color: var(--lk-gold); box-shadow: inset 0 -2px 0 var(--lk-gold); }
.ltabs button[aria-pressed="true"] .uicon { filter: none; opacity: 1; }
.ltabs button[aria-pressed="true"] small { color: var(--lk-gold); }

/* Filters: pills. */
.lfilters { flex: none; display: flex; gap: 8px; margin: 0; }
.lfilters button { height: 32px; padding: 0 16px; background: var(--lk-panel); border: 1px solid var(--lk-line); border-radius: 16px; font: 700 12px var(--pixel); color: var(--lk-soft); cursor: pointer; transition: background var(--lk-fast), color var(--lk-fast); }
.lfilters button:hover { color: var(--ink); border-color: var(--lk-line2); }
.lfilters button[aria-pressed="true"] { background: var(--cream); color: var(--ink-dark); border-color: var(--cream); }

/* The grid: square tiles in a dark inset panel. */
.lgrids { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; background: var(--lk-inset); border: 1px solid var(--lk-line); }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.ltile { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 8px; background: #121a28; border: 1px solid var(--lk-line); color: var(--ink); cursor: pointer; overflow: hidden; transition: border-color var(--lk-fast), background var(--lk-fast), transform var(--lk-fast); }
.ltile:hover { border-color: #ffffff4d; background: #172133; transform: translateY(-1px); }
.ltile.is-sel { border: 2px solid var(--lk-gold); background: #1a2334; }
.ltile.is-locked { background: #0e1520; }
.ltile.is-gold { border-color: #8a6a20; background: #1c1a12; }
.ltile.is-dash { border-color: #b8862a; }
.ltile.is-dash.is-sel, .ltile.is-gold.is-sel { border: 2px solid var(--lk-gold); }
.ltile canvas.ltile__pic { width: 82%; height: auto; image-rendering: pixelated; }
.ltile .ltile__pic--plate { width: 92%; } .ltile .ltile__pic--cheer { width: 92%; } .ltile .ltile__pic--emote { width: 80%; }
.ltile__fx { position: absolute; left: -1px; top: -1px; width: calc(100% + 2px); height: calc(100% + 2px); pointer-events: none; image-rendering: pixelated; }
.ltile__dot { position: absolute; top: 6px; left: 6px; width: 6px; height: 6px; }
.ltile__lock { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; background: var(--lk-soft); clip-path: polygon(20% 40%, 20% 20%, 35% 5%, 65% 5%, 80% 20%, 80% 40%, 100% 40%, 100% 100%, 0 100%, 0 40%, 32% 40%, 32% 24%, 40% 16%, 60% 16%, 68% 24%, 68% 40%); }
.ltile__on { position: absolute; top: 4px; right: 6px; font: 700 12px/12px var(--pixel); color: var(--green); font-style: normal; }
.ltile__prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #ffffff14; }
.ltile__prog b { display: block; height: 100%; background: var(--focus); }
.ltile__pass { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font: 700 12px/16px var(--pixel); font-style: normal; letter-spacing: 1px; text-transform: uppercase; background: #b8862a; color: #241a06; }
.ltile.is-sel .ltile__pass { background: var(--lk-gold); }
.ltile.is-reveal { animation: lk-reveal 1.2s ease-out 2; }
.ltile.is-mystery { background: #0e1520; border-color: #4a3c1c; } /* a secret not found yet: the "?" tile (locker.mjs mysteryTile) */
.ltile.is-mystery:hover, .ltile.is-mystery.is-sel { border-color: var(--lk-gold); }
.lgrid .empty { grid-column: 1 / -1; padding: 24px 0; }
.lsection { display: flex; align-items: center; gap: 12px; margin: 24px 0 4px; font: 700 12px/16px var(--pixel); letter-spacing: 3px; text-transform: uppercase; font-variant: small-caps; color: var(--lk-gold); }
.lsection::before, .lsection::after { content: ''; flex: 1; height: 1px; background: #8a6a20; }
.lsection--dash { color: var(--lk-gold); }
/* The Developer section (developers only: public/locker.mjs): a doubled gold rule */
.lsection--dev { color: #f6c445; }
.lsection--dev::before, .lsection--dev::after { height: 3px; background: linear-gradient(#fff3c0 0 1px, #f6c445 1px 2px, #a8701a 2px 3px); }
.lsection__note { margin: 0 0 12px; text-align: center; font: 400 11px/16px var(--mono); color: var(--lk-soft); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--focus); text-decoration: underline; font: inherit; cursor: pointer; }
[data-act="customize"].has-new::after { content: ''; width: 7px; height: 7px; background: var(--red); margin-left: 2px; box-shadow: 0 0 0 2px #122029; }

/* The Emotes tab's hotbar: the saved list every page plays from (3 slots open, 4-6 earned). */
.lhotbar { flex: none; margin: 0; padding: 12px; background: var(--lk-panel); border: 1px solid var(--lk-line); }
.lhotbar__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 8px; font: 700 12px var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: var(--lk-gold); }
.lhotbar__head small { font: 400 11px var(--mono); letter-spacing: 0; text-transform: none; color: var(--lk-soft); }
.lhotbar__row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.lhot { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1; padding: 0; background: #121a28; border: 1px solid var(--lk-line); color: var(--ink); cursor: pointer; transition: border-color var(--lk-fast); }
.lhot b { position: absolute; top: 4px; left: 6px; font: 700 11px var(--pixel); color: var(--lk-soft); }
.lhot canvas { width: 70%; image-rendering: pixelated; pointer-events: none; }
.lhot:hover { border-color: #ffffff4d; }
.lhot.is-sel { border: 2px solid var(--lk-gold); }
.lhot.is-over { border-color: var(--lk-gold); background: #1f2a3c; }
.lhot.is-locked { background: #0e1520; cursor: help; }
.lhot.is-locked .ltile__lock { position: static; }
.lhot__plus { font: 700 18px var(--pixel); color: var(--lk-soft); }
.lhotbar__note { margin: 8px 0 0; font: 400 11px/15px var(--mono); color: var(--lk-soft); }

@media (max-width: 1100px) and (min-width: 861px) { .ltabs { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .locker { padding: 0; display: block; }
  .locker__panel { height: 100dvh; width: 100%; border: 0; box-shadow: none; }
  .locker .locker__head { flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 16px 8px; }
  .locker .locker__head h2 { font-size: 24px; line-height: 28px; }
  .locker__head p { order: 3; flex-basis: 100%; font-size: 11px; }
  .locker__x { margin-left: auto; width: 36px; height: 36px; }
  .locker__body { display: flex; flex-direction: column; gap: 12px; padding: 0 16px 16px; overflow-y: auto; overflow-x: hidden; }
  .locker__left, .locker__right { flex: none; min-width: 0; gap: 12px; }
  .locker__right { overflow: visible; }
  .lstage { padding: 0; }
  .linfo { padding: 12px 12px 12px 16px; }
  .linfo h3 { font-size: 20px; line-height: 24px; }
  .linfo__call { grid-template-columns: auto minmax(0, 1fr); }
  .linfo__call .linfo__btn { grid-column: 1 / -1; width: 100%; }
  .lworn { flex: none; }
  .lworn__toggle { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 0 12px; background: var(--lk-panel); border: 1px solid var(--lk-line); color: var(--ink); font: 700 12px var(--pixel); letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
  .lworn__toggle b { margin-left: auto; transition: transform var(--lk-fast); }
  .lworn.is-open .lworn__toggle b { transform: rotate(180deg); }
  .lslots { display: none; max-height: none; border-top: 0; }
  .lworn.is-open .lslots { display: block; }
  /* the categories: one sticky scrolling row of cards */
  .ltabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 8px; position: sticky; top: 0; z-index: 2; background: var(--lk-bg); scroll-snap-type: x proximity; }
  .ltabs::-webkit-scrollbar { display: none; }
  .ltabs button { flex: 0 0 auto; min-width: 84px; min-height: 64px; scroll-snap-align: start; }
  .lfilters button { flex: 1; min-height: 36px; }
  .lgrids { overflow: visible; padding: 12px; }
  .lgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .ltile { padding: 6px; }
  .lhotbar__row { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .locker *, .locker { animation: none !important; transition: none !important; } .ltile:hover { transform: none; } }

/* Name plates (Chef's Locker): your name chip and corner card */
body[data-plate="wood"] .chip, body[data-plate="wood"] .corner--left { background: #9c6c45; border-color: #5a3a24; color: #fff3e2; }
body[data-plate="menu"] .chip, body[data-plate="menu"] .corner--left { background: #f7ecd4; border-color: #b8402e; color: #3a2418; }
body[data-plate="menu"] .corner__who small { color: #7a6450; }
body[data-plate="chalk"] .chip, body[data-plate="chalk"] .corner--left { background: #22302a; border: 3px solid #7a5236; color: #f6f3e8; }
body[data-plate="gingham"] .chip, body[data-plate="gingham"] .corner--left { background: #f6efe0 repeating-linear-gradient(90deg, #d3443a33 0 4px, transparent 4px 8px), repeating-linear-gradient(0deg, #d3443a33 0 4px, transparent 4px 8px); color: #3a2418; border-color: #d3443a; }
body[data-plate="gingham"] .corner__who small { color: #7a6450; }
body[data-plate="neon"] .chip, body[data-plate="neon"] .corner--left { background: #1a1030; border-color: #ff6f8e; color: #ff9ab4; box-shadow: 0 0 10px #ff6f8e66, inset 0 0 6px #6ec6e055; }
body[data-plate="marble"] .chip, body[data-plate="marble"] .corner--left { background: linear-gradient(135deg, #e8e4de, #f6f3ee 40%, #ddd8d0); color: #3a3634; border-color: #b8b2a8; }
body[data-plate="marble"] .corner__who small { color: #6a6460; }
body[data-plate="royal"] .chip, body[data-plate="royal"] .corner--left { background: #5a1a3a; border: 2px solid #d99a26; color: #ffe48a; }
body[data-plate="gold"] .chip, body[data-plate="gold"] .corner--left { background: linear-gradient(#ffe48a 0 3px, #f6c445 3px calc(100% - 3px), #d99a26 calc(100% - 3px)); color: #4a2e08; border-color: #8a5a12; }
body[data-plate="gold"] .corner__who small { color: #6a4a10; }
body[data-plate="pastel"] .chip, body[data-plate="pastel"] .corner--left { background: linear-gradient(90deg, #f6d8e2, #d8eee8); color: #4a3040; border-color: #9ad0c8; }
body[data-plate="pastel"] .corner__who small { color: #7a6070; }
body[data-plate="velvet"] .chip, body[data-plate="velvet"] .corner--left { background: #4a0e1e; border: 2px solid #c8a040; color: #f6e6c6; box-shadow: inset 0 0 0 1px #7a2a3a; }

.foot { display: flex; gap: 8px; align-items: center; }
.foot__btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #122029e6; border: 1px solid #0006; font: 700 12px var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: var(--ink); }
.foot__btn b { color: var(--focus); font-weight: 700; }
.foot__btn:hover { background: #1a2a34; }
.foot__lang select { height: 34px; padding: 0 28px 0 10px; background: #122029e6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0h8L4 5z' fill='%23f6ead2'/%3E%3C/svg%3E") no-repeat right 10px center; border: 1px solid #0006; color: var(--ink); font: 700 12px var(--pixel); appearance: none; -webkit-appearance: none; cursor: pointer; }
.foot__lang select:focus-visible { outline: 2px solid var(--focus); }
.foot__lang option { background: #0f1a22; color: var(--ink); }
/* How to play */
.howto { padding-left: 20px; margin: 0 0 14px; } .howto li { margin: 0 0 8px; }
.ptable { border-top: 1px solid #ffffff14; margin: 4px 0 10px; }
.ptable div { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid #ffffff10; border-left: 3px solid var(--c); }
.ptable span { font: 700 12px var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: var(--c); }
.ptable b { margin-left: auto; font: 700 24px/1 var(--pixel); color: var(--ink); } .ptable b small { font: 400 11px var(--mono); color: var(--ink-soft); margin-left: 3px; }
.goldnote { margin: 0 0 14px; padding: 8px 10px; border-left: 3px solid var(--gold); background: #f6c44514; color: var(--gold); font-size: 11px; }
.faq details { border-bottom: 1px solid #ffffff12; }
.faq summary { cursor: pointer; padding: 9px 2px; font-size: 11px; list-style: none; }
.faq summary::before { content: '▶ '; color: var(--ink-soft); }
.faq details[open] summary::before { content: '▼ '; }
.faq details p { margin: 0 0 10px 14px; color: var(--ink-soft); font-size: 11px; }
.faq textarea { width: 100%; min-height: 70px; margin: 0 0 6px; background: #0a1218; border: 1px solid #ffffff2a; color: var(--ink); font: 11px/16px var(--mono); padding: 8px; }
.modal--wide .modal__panel { width: min(560px, 100%); }

.answer__go.is-ready { opacity: 0.55; }
.nowrap { white-space: nowrap; }
@media (max-height: 860px) and (min-width: 701px) { .tile { min-height: 104px; padding: 12px 10px 12px; } .tile__arrow { min-height: 30px; } .panel-stack { gap: 8px; } }
.answer { position: absolute; }
.answer__msg { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); margin: 0; padding: 6px 10px; background: var(--paper); color: #b8402e; box-shadow: 0 3px 0 #0004; }
/* Wide screens: results sit to the right so the place you reached stays in view. */
@media (min-width: 1100px) { .results { justify-items: end; padding-right: max(28px, 4vw); } .res { width: min(500px, 38vw); } }
@media (max-width: 420px) { .tagline { letter-spacing: 0; padding: 4px 10px; font-size: 12px; } }

/* Dash Pass button. Gold is flat with stepped pixel bands, never a smooth gloss. */
.passbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: #f6c445; color: #3a2a08; border: 2px solid #8a5a12; box-shadow: inset 0 2px 0 #ffe48a, inset 0 -3px 0 #d99a26, 0 2px 0 #0005; font: 700 12px var(--pixel); letter-spacing: 1px; text-transform: uppercase; }
.passbtn:hover { background: #f8d25c; }
.passbtn__star { color: #fff6d0; text-shadow: 0 1px 0 #8a5a12; }
body[data-view="game"] .passbtn { display: none; }
.btn--gold { background: #f6c445; color: #3a2a08; outline: 2px solid #8a5a12; outline-offset: -4px; box-shadow: inset 0 3px 0 #ffe48a, inset 0 -3px 0 #d99a26; }
.btn--gold:active:not(:disabled) { box-shadow: inset 0 1px 0 #ffe48a, inset 0 -1px 0 #d99a26; }
.acct { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #ffffff22; display: grid; gap: 8px; justify-items: start; }
.gbtn { min-height: 44px; }
@media (max-width: 700px) { .passbtn span:last-child { display: none; } .passbtn { padding: 0 9px; } }

/* ---------- the Dash Pass (sheet, locks, archive) ---------- */
.dicon { flex: none; image-rendering: pixelated; vertical-align: -3px; }
.passbtn.is-owned { background: #2a7466; color: #fff6d0; border-color: #164a40; box-shadow: inset 0 2px 0 #4a9a5a, inset 0 -3px 0 #164a40, 0 2px 0 #0005; }
.passbtn.is-owned:hover { background: #318474; }
.bar__btn--archive { margin-left: auto; }
.bar__btn--archive + .bar__btn--icon { margin-left: 0; }
.dash-lock { display: inline-grid; place-items: center; font-style: normal; } .dash-lock .dicon { vertical-align: 0; }
body.is-dash .dash-lock { display: none; }
/* ---------- the Dash Pass: a golden menu that runs into a receipt, centred like a modal (#sheet[data-kind="pass"]) ---------- */
.sheet[data-kind="pass"] { align-items: safe center; padding: 24px 12px; }
.sheet[data-kind="pass"] .sheet__panel { width: min(500px, 100%); background: none; border: 0; box-shadow: none; }
.sheet[data-kind="pass"] .sheet__head { display: none; } /* the title lives on the card; #sheet-title still names the dialog */
.sheet[data-kind="pass"] .sheet__body { padding: 0; background: none; }
.dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.dash__card { position: relative; display: flex; flex-direction: column; color: #3a2a08; }
.dash__card :focus-visible { outline-color: #3a2a08; }
/* The menu: parchment in a gold frame (ink outline, gold band, dark-gold rule), a golden header band. */
.dash__menu { position: relative; z-index: 1; padding: 6px; background: #f3ead6; border: 2px solid #3a2a08; box-shadow: inset 0 0 0 4px #f6c445, inset 0 0 0 6px #b8841c, 0 6px 0 #0007; }
.dash__band { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 2px solid #3a2a08;
  background:
    linear-gradient(112deg, transparent 0 62%, #fff6d033 62% 68%, transparent 68% 71%, #fff6d01f 71% 73%, transparent 73%),
    linear-gradient(180deg, #ffe48a 0 8px, #fbd462 8px 40%, #f6c445 40% 80%, #efb93c 80%);
  box-shadow: inset 0 3px 0 #fff6d0, inset 0 -4px 0 #d99a26; }
.dash__mark { flex: none; width: 52px; height: 68px; } .dash__mark svg { display: block; }
.dash__name { margin: 0; font: 700 48px/48px var(--pixel); letter-spacing: 2px; text-transform: uppercase; color: #3a2a08; text-shadow: 0 3px 0 #ffeea8; }
.dash__est { margin: 4px 0 0; font: 700 12px/16px var(--pixel); letter-spacing: 2px; text-transform: uppercase; color: #6a4a10; }
.dash__loading { margin: 0; padding: 24px 20px 200px; font: 400 11px/16px var(--mono); color: #6a5a48; }
.dash__paper { position: relative; padding: 12px 20px 14px; }
.dash__corner { position: absolute; width: 24px; height: 24px; } .dash__corner svg { display: block; }
.dash__corner--tl { top: 4px; left: 4px; } .dash__corner--tr { top: 4px; right: 4px; transform: scaleX(-1); }
.dash__corner--bl { bottom: 4px; left: 4px; transform: scaleY(-1); } .dash__corner--br { bottom: 4px; right: 4px; transform: scale(-1); }
.dash__section { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 8px; font: 700 12px/16px var(--pixel); letter-spacing: 2px; text-transform: uppercase; color: #8a5a12; }
.dash__section::before, .dash__section::after { content: ''; width: 40px; height: 2px; background: #b8841c; box-shadow: 0 4px 0 #e8ae34; }
/* Each perk is a dish: icon, name, a dotted leader to "included", a line of description under it. */
.dash__dishes { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dash__dish { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; align-items: center; width: 100%; padding: 3px 6px; background: none; border: 0; color: #3a2a08; text-align: left; }
.dash__dish > .uicon, .dash__dish > .dicon { grid-row: 1 / 3; width: 32px; height: 32px; }
button.dash__dish:hover { background: #ead9b4; }
.dash__dline { display: flex; align-items: flex-end; gap: 6px; min-width: 0; }
.dash__dline b { min-width: 0; font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; }
.dash__dline i { flex: 1 1 12px; min-width: 12px; height: 2px; margin-bottom: 4px; background: repeating-linear-gradient(90deg, #a89068 0 2px, transparent 2px 6px); }
.dash__dline em { flex: none; font: 700 12px/16px var(--pixel); font-style: normal; letter-spacing: 1px; text-transform: uppercase; color: #2a7466; }
.dash__dish small { grid-column: 2; font: 400 11px/16px var(--mono); color: #6a5a48; }
/* The receipt: thermal paper hanging out of the menu, torn pixel teeth top and bottom (8x4 art at 2x), Departure Mono. */
.dash__receipt { position: relative; display: grid; gap: 10px; width: calc(100% - 24px); margin: 8px auto 8px; padding: 14px 18px 12px; background: #fbfaf3; color: #2a2620; font: 400 11px/16px var(--mono); filter: drop-shadow(0 6px 0 #0006); }
.dash__receipt::before, .dash__receipt::after { content: ''; position: absolute; left: 0; right: 0; height: 8px; background-repeat: repeat-x; background-position: center; background-size: 16px 8px; image-rendering: pixelated; }
.dash__receipt::before { top: -8px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 4' shape-rendering='crispEdges' fill='%23fbfaf3'%3E%3Crect x='3' width='2' height='1'/%3E%3Crect x='2' y='1' width='4' height='1'/%3E%3Crect x='1' y='2' width='6' height='1'/%3E%3Crect y='3' width='8' height='1'/%3E%3C/svg%3E"); }
.dash__receipt::after { bottom: -8px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 4' shape-rendering='crispEdges' fill='%23fbfaf3'%3E%3Crect width='8' height='1'/%3E%3Crect x='1' y='1' width='6' height='1'/%3E%3Crect x='2' y='2' width='4' height='1'/%3E%3Crect x='3' y='3' width='2' height='1'/%3E%3C/svg%3E"); }
.dash__rhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; font: 400 22px/24px var(--mono); letter-spacing: 2px; text-transform: uppercase; }
.dash__rhead small { font: 400 11px/16px var(--mono); letter-spacing: 0; color: #6a645a; }
.dash__lines { position: relative; display: grid; gap: 2px; padding: 10px 0;
  background: repeating-linear-gradient(90deg, #2a2620 0 4px, transparent 4px 8px) top / 100% 2px no-repeat, repeating-linear-gradient(90deg, #2a2620 0 4px, transparent 4px 8px) bottom / 100% 2px no-repeat; }
.dash__rl { display: flex; align-items: flex-end; gap: 6px; margin: 0; letter-spacing: 1px; text-transform: uppercase; }
.dash__rl i { flex: 1 1 8px; min-width: 8px; height: 2px; margin-bottom: 4px; background: repeating-linear-gradient(90deg, #b0a898 0 2px, transparent 2px 4px); }
.dash__rl strong { flex: none; font-weight: 400; white-space: nowrap; }
.dash__rl.is-total { margin-top: 6px; font-size: 22px; line-height: 24px; } .dash__rl.is-total i { margin-bottom: 6px; background: repeating-linear-gradient(90deg, #2a2620 0 2px, transparent 2px 4px); }
/* Owners: a red rubber stamp over the lines. */
.dash__stamp { justify-self: center; display: grid; justify-items: center; margin: 2px 0 8px; padding: 4px 12px 6px; color: #c4383a; border: 2px solid #c4383a; box-shadow: inset 0 0 0 2px #fbfaf3, inset 0 0 0 4px #c4383a; transform: rotate(-6deg); }
.dash__stamp b { font: 700 36px/36px var(--pixel); letter-spacing: 4px; text-transform: uppercase; }
.dash__stamp span { font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; }
.dash__owned { display: grid; gap: 2px; text-align: center; }
.dash__owned > b { font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; }
.dash__owned > span { color: #6a645a; }
/* PAY: a dark stamp-like button with a gold inner rule. */
.dash__buy { display: grid; justify-items: center; gap: 2px; width: 100%; min-height: 64px; padding: 8px 12px 10px; background: #3a2a08; color: #f6c445; border: 2px solid #20170a; box-shadow: inset 0 0 0 3px #3a2a08, inset 0 0 0 5px #b8841c, 0 3px 0 #0005; transition: transform 0.06s; }
.dash__buy small { font: 700 12px/16px var(--pixel); letter-spacing: 3px; text-transform: uppercase; color: #ffe48a; }
.dash__buy span { font: 700 24px/28px var(--pixel); letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 2px 0 #20170a; }
.dash__buy:hover:not(:disabled) { background: #4a3610; }
/* A free chef tapped a perk on the menu: the Pay button pulses gold twice. */
.dash__buy.is-flash { animation: dash-buy-flash 1.1s steps(2) 2; }
@keyframes dash-buy-flash { 50% { background: #f6c445; color: #3a2a08; } }
.dash__buy:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 0 0 3px #3a2a08, inset 0 0 0 5px #b8841c, 0 1px 0 #0005; }
.dash__buy:disabled, .dash__gift-btn:disabled { opacity: 1; cursor: not-allowed; }
.dash__buy:disabled { background: #cfc8b8; color: #7a7466; border-color: #a8a090; box-shadow: inset 0 0 0 3px #cfc8b8, inset 0 0 0 5px #b4ac9c; }
.dash__buy:disabled small { color: #7a7466; } .dash__buy:disabled span { text-shadow: none; }
.dash__gift-btn { justify-self: center; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; background: #fff; color: #2a2620; border: 2px solid #2a2620; box-shadow: inset 0 -3px 0 #e2ddd0; font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; }
.dash__gift-btn:hover:not(:disabled) { background: #f3efe4; }
.dash__gift-btn .dicon { width: 32px; height: 32px; }
.dash__gift-btn:disabled { color: #8a8478; border-color: #b0a898; box-shadow: none; } .dash__gift-btn:disabled .dicon { opacity: 0.5; }
.dash__secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; letter-spacing: 1px; text-transform: uppercase; text-align: center; }
.dash__copy { margin: -8px 0 0; text-align: center; color: #6a645a; }
.dash__gifts { display: grid; padding-top: 10px; background: repeating-linear-gradient(90deg, #2a2620 0 4px, transparent 4px 8px) top / 100% 2px no-repeat; }
.dash__giftstitle { margin: 0 0 2px; letter-spacing: 1px; text-transform: uppercase; }
.dash__gift { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 4px 0; }
.dash__gift code { font: 22px/24px var(--mono); letter-spacing: 1px; }
.dash__gift span { color: #6a645a; }
.dash__gift .dash__copybtn { grid-column: 2; grid-row: 1 / 3; height: 32px; padding: 0 12px; background: #2a2620; color: #fbfaf3; border: 0; box-shadow: inset 0 -3px 0 #000; font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; }
.dash__gift .dash__copybtn:hover { background: #3a3630; }
.dash__gift.is-used code { color: #9a948a; text-decoration: line-through; }
.dash__foot { display: grid; justify-items: center; gap: 4px; padding-top: 12px; background: repeating-linear-gradient(90deg, #2a2620 0 4px, transparent 4px 8px) top / 100% 2px no-repeat; }
.dash__foot p { margin: 0; letter-spacing: 1px; text-transform: uppercase; text-align: center; }
.dash__barcode { display: block; image-rendering: pixelated; }
@media (min-width: 701px) { .dash__foot { grid-template-columns: auto auto; justify-content: center; align-items: center; column-gap: 16px; } .dash__barcode { grid-row: 1 / 3; } .dash__foot p { text-align: left; } }
.dash__thanks { font: 700 12px/16px var(--pixel); letter-spacing: 2px; }
/* Under the card: "I already have a code" as a link, Close, the redeem form, then what's included. */
.dash__after { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 28px; }
.dash__have { padding: 8px 2px; background: none; border: 0; color: #f3ead6; font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; text-decoration: underline 2px; text-underline-offset: 4px; }
.dash__have:hover { color: #f6c445; }
.dash__close { min-width: 96px; height: 40px; padding: 0 16px; background: #0d171d; color: #f3ead6; border: 2px solid #f3ead699; box-shadow: inset 0 -3px 0 #000; font: 700 12px/16px var(--pixel); letter-spacing: 2px; text-transform: uppercase; }
.dash__close:hover { background: #16242c; border-color: #f3ead6; }
.dash__redeem { display: grid; gap: 6px; padding: 10px 12px; background: #0a1218; border: 2px solid #000; }
.dash__redeem label { font: 700 12px var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); }
.dash__redeemrow { display: flex; gap: 8px; }
.dash__redeemrow input { flex: 1; min-width: 0; width: 100%; height: 38px; padding: 0 10px; background: #060c12; border: 2px solid var(--focus); color: var(--ink); font: 22px var(--mono); text-transform: uppercase; letter-spacing: 1px; }
.dash__incl { background: #101c24f2; border: 2px solid #000; }
.dash__incl summary { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; min-height: 44px; padding: 8px 12px; cursor: pointer; list-style: none; font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.dash__incl summary::-webkit-details-marker { display: none; }
.dash__incl summary::before { content: '▸'; } .dash__incl[open] summary::before { content: '▾'; }
.dash__incl summary small { font: 400 11px/16px var(--mono); letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.dash__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; padding: 0 10px 10px; }
.dash__item { position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; padding: 4px 2px 6px; background: #1e1830; border: 2px solid #5a4a8a; box-shadow: inset 0 3px 0 #2c2446; }
.dash__item canvas { display: block; width: 96px; height: 108px; image-rendering: pixelated; } /* 48x54 art at 2x */
.dash__item small { font-size: 11px; line-height: 12px; text-align: center; color: #d8c4ff; }
.dash__item.is-got { border-color: var(--green); }
.dash__itemtick { position: absolute; top: 2px; right: 4px; color: var(--green); font: 700 12px var(--pixel); }
.giftcode { display: grid; justify-items: center; gap: 10px; margin: 4px 0 12px; padding: 14px; background: #f6c445; border: 2px solid #3a2a08; box-shadow: inset 0 4px 0 #ffe48a, inset 0 -5px 0 #d99a26; }
.giftcode code { font: 22px var(--mono); color: #3a2a08; letter-spacing: 2px; user-select: all; }
.lockcard { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.lockcard p { margin: 0; }
.lockcard b, .dash-teaser b { color: var(--ink); }
.dash-teaser { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 10px 12px; background: #2a2214; border: 2px solid #8a6a20; box-shadow: inset 0 3px 0 #3a2e14; }
.dash-teaser p { margin: 0; flex: 1; font-size: 11px; color: #e8d8b4; }
.dash-teaser .btn { flex: none; }
.practice-left { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.archive-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; }
.pack.is-locked canvas { filter: none; }
.pack__lock { position: absolute; top: 6px; left: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px 2px 4px; background: #f6c445; color: #3a2a08; border: 2px solid #3a2a08; font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; }
.aday { margin: 0 0 12px; }
.aday__head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); }
.aday__head b { font-size: 24px; line-height: 28px; font-weight: 700; color: var(--ink); }
.aday__games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.aday__g { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border: 2px solid var(--ink-dark); box-shadow: inset 0 -4px 0 var(--edge); font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; transition: transform 0.08s, filter 0.15s; }
.aday__g:hover { filter: brightness(1.08); transform: translateY(-2px); }
.aday__g b { display: grid; place-items: center; min-height: 28px; font: 700 24px/28px var(--pixel); }
.aday__g small { min-height: 14px; font: 400 11px/14px var(--mono); text-transform: none; letter-spacing: 0; opacity: 0.85; }
.aday.is-locked .aday__g { filter: none; }
.aday.is-locked .aday__g:hover { filter: brightness(1.08); }
@media (max-width: 700px) {
  .bar__btn--archive span { display: none; }
  /* Phones: the card fills the screen height; menu and receipt keep their full width. */
  .sheet[data-kind="pass"] { padding: 12px 12px 16px; }
  .sheet[data-kind="pass"] .sheet__panel { display: flex; flex-direction: column; min-height: calc(100dvh - 28px); }
  .sheet[data-kind="pass"] .sheet__body { flex: 1; display: flex; flex-direction: column; }
  .dash { flex: 1; grid-template-rows: 1fr; grid-auto-rows: auto; }
  .dash__menu { flex: 1; }
  .dash__name { font-size: 36px; line-height: 36px; }
  .dash__band { gap: 10px; padding: 8px 10px; }
  .dash__paper { padding: 14px 10px 16px; }
  .dash__dish { column-gap: 10px; padding: 6px 4px; }
  .dash__dline b, .dash__dline em { letter-spacing: 0; }
  .dash__receipt { width: calc(100% - 16px); padding: 12px 14px; }
  .dash__buy span { letter-spacing: 0; }
  .dash-teaser { flex-wrap: wrap; } .dash-teaser p { flex-basis: calc(100% - 56px); } .dash-teaser .btn { margin-left: 44px; }
  .aday__g { padding: 6px 2px; letter-spacing: 0; }
}
.board__name { all: unset; cursor: pointer; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board__name:hover, .board__name:focus-visible { text-decoration: underline; outline: none; }
.board__face { width: 64px; height: 64px; flex: none; image-rendering: pixelated; margin-right: 6px; vertical-align: middle; }

/* ---------- friend leagues (public/leagues.mjs): League / World tabs, invite panel, forms, results slot ---------- */
.seg--tabs { gap: 0; margin: 0 0 12px; border-bottom: 2px solid #000; }
.seg--tabs button { height: 44px; font-size: 24px; letter-spacing: 3px; background: #0c1820; border: 1px solid #ffffff14; border-bottom: 0; color: var(--ink-dim); }
.seg--tabs button[aria-pressed="true"] { background: var(--gold); color: #3a2a08; box-shadow: inset 0 3px 0 #ffe48a, inset 0 -3px 0 #d99a26; }
.lghead { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 10px; }
.lghead__name { margin: 0; font: 700 24px/28px var(--pixel); color: var(--ink); overflow-wrap: anywhere; }
.lghead__n { color: var(--ink-soft); font-size: 11px; }
.lgpick { flex: 1 1 220px; min-width: 0; }
.lgpick select { width: 100%; height: 40px; padding: 0 30px 0 10px; background: #122029 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0h8L4 5z' fill='%23f6ead2'/%3E%3C/svg%3E") no-repeat right 12px center; border: 2px solid var(--cream-edge); color: var(--ink); font: 700 12px var(--pixel); letter-spacing: 1px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.lgpick option { background: #0f1a22; color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.board__list li.is-waiting { opacity: 0.62; }
.board__list li.is-waiting .sc small { margin: 0; font-size: 11px; }
.lgempty { margin: 12px 0 0; padding: 14px 12px; border: 1px dashed #f6c44566; color: var(--ink); text-align: center; }
.lginvite { display: grid; gap: 8px; margin: 14px 0 0; padding: 12px; background: #0a131a; border: 2px solid #000; box-shadow: inset 0 1px 0 #ffffff14; }
.lginvite .btn--gold { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-size: 12px; }
.lginvite__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lginvite__code { display: grid; margin-right: auto; }
.lginvite__code small { font-size: 11px; color: var(--ink-soft); }
.lginvite__code code { font: 22px var(--mono); letter-spacing: 2px; color: var(--gold); user-select: all; }
.lgfoot { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.lgfoot__leave { margin-left: auto; color: var(--ink-soft); }
.lgstart { display: grid; gap: 10px; padding: 4px 0 6px; }
.lgstart__title { margin: 0; font: 700 24px/28px var(--pixel); letter-spacing: 2px; text-transform: uppercase; color: var(--gold); text-shadow: 0 2px 0 #6a4a10; }
.lgstart .note { margin: 0; }
.lgstart__or { display: flex; align-items: center; gap: 10px; margin: 2px 0; color: var(--ink-dim); font: 700 12px var(--pixel); text-transform: uppercase; }
.lgstart__or::before, .lgstart__or::after { content: ''; flex: 1; border-top: 1px solid #ffffff1f; }
.lgform { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; margin: 0; }
.lgform label { display: grid; gap: 4px; min-width: 0; }
.lgform small { font-size: 11px; color: var(--ink-soft); }
.lgform input { min-width: 0; height: 40px; padding: 0 10px; background: #0a1218; border: 2px solid var(--focus); color: var(--ink); font: 22px var(--mono); }
.lgform input::placeholder { color: #ffffff4d; }
.lgform .btn { min-height: 40px; }
.lgform__err { grid-column: 1 / -1; margin: 0; min-height: 0; color: var(--red); font-size: 11px; }
.lgform__err:empty { display: none; }
.modal .lgform { margin-top: 10px; }
.lgcard { margin: 0 0 12px; padding: 14px; text-align: center; background: #0a131a; border: 2px solid #000; box-shadow: inset 0 -4px 0 #00000055, inset 0 1px 0 #ffffff14; }
.lgcard__kicker { margin: 0; font: 700 12px var(--pixel); letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); }
.lgcard__name { margin: 6px 0; font: 700 24px/28px var(--pixel); color: var(--gold); text-shadow: 0 2px 0 #6a4a10; overflow-wrap: anywhere; }
.lgcard__n { margin: 0; color: var(--ink-soft); }
.lgcard__n code { font: 11px var(--mono); letter-spacing: 1px; color: var(--ink); }
.lgready { margin: 0 0 4px; }
.lgslot { margin: 10px 0 0; }
.lgslot:empty { display: none; }
.lgslot__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.lgslot__head b { font: 700 12px var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.lgslot__head span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-soft); }
.lgslot__list { margin-top: 6px; }
.lgslot__list li { padding: 3px 4px; }
.lgslot__note { margin: 8px 0; color: var(--ink-soft); font-size: 11px; }
.lgslot__row { display: flex; flex-wrap: wrap; gap: 8px; }
.lgslot__row .btn, .lgslot__start { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
@media (max-width: 700px) {
  .seg--tabs button { font-size: 12px; letter-spacing: 2px; }
  .lginvite__code { flex: 1 1 100%; }
  .lginvite__row .btn { flex: 1 1 0; }
  .lgfoot .btn { flex: 1 1 auto; }
  .lgfoot__leave { margin-left: 0; }
  .lgform[data-act="lg-create-form"] { grid-template-columns: 1fr; }
}

/* ---------- score reveal (after the last question) ---------- */
/* A full-screen button: a dark band across the middle over the live world, TAP TO SKIP under it. */
.reveal { position: fixed; inset: 0; z-index: 25; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 16px; width: 100%; padding: 0; border: 0; background: #06101a59; color: var(--ink); text-align: center; cursor: pointer; animation: fade 0.2s; will-change: transform; }
.reveal:focus-visible { outline: 0; }
.reveal__card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 16px 22px; background: #0a131ae6; border-top: 4px solid var(--band, var(--cream)); border-bottom: 4px solid var(--band, var(--cream)); box-shadow: 0 6px 0 #0006; animation: reveal-band 0.35s steps(5) both; }
@keyframes reveal-band { from { clip-path: inset(50% 0 50% 0); } to { clip-path: inset(0 0 0 0); } }
.reveal__kicker { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/16px var(--pixel); letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); }
.reveal__zone { margin-top: 4px; font: 700 48px/56px var(--pixel); letter-spacing: 2px; text-transform: uppercase; color: var(--gold); text-shadow: 0 4px 0 #6a4a10, 4px 0 0 #16222a, -4px 0 0 #16222a; text-wrap: balance; animation: reveal-stamp 0.5s 0.15s steps(4) both; }
@keyframes reveal-stamp { from { opacity: 0; transform: scale(var(--stamp, 1.5)); } }
.reveal__m { font: 700 24px/28px var(--pixel); letter-spacing: 1px; color: var(--ink); }
.reveal__score { margin-top: 8px; font: 700 60px/60px var(--pixel); font-variant-numeric: tabular-nums; color: #fbf4e4; text-shadow: 0 4px 0 #16222a; }
.reveal__score small { margin-left: 4px; font-size: 24px; color: var(--ink-soft); text-shadow: none; }
.reveal.is-done .reveal__score b { display: inline-block; color: var(--focus); animation: bump 0.4s steps(4); }
.reveal__skip { align-self: center; padding: 4px 10px; background: #0a131acc; font: 700 12px/16px var(--pixel); letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); animation: reveal-blink 1s steps(2) infinite; }
@keyframes reveal-blink { 50% { color: var(--ink-dim); } }
.reveal.is-out { opacity: 0; transition: opacity 0.15s; }
.reveal__kicker, .reveal__zone, .reveal__m, .reveal__score, .reveal__skip { position: relative; left: var(--sx, 0px); top: var(--sy, 0px); }
/* Cinematic bars (Wonderhop-style): as the 7th answer settles into the score reveal, letterbox bars in the site's
   soft slate (--panel-solid) glide in
   from the top and bottom edges, so the moment reads as a cut scene; "Tap to skip" sits in the bottom bar. */
.reveal { --bar: clamp(44px, 13vh, 124px); }
.reveal::before, .reveal::after { content: ''; position: absolute; left: 0; right: 0; height: var(--bar); background: var(--panel-solid); pointer-events: none; z-index: 0; animation: cine-in 0.75s cubic-bezier(.22, .8, .2, 1) both; }
.reveal::before { top: 0; --cine-from: -100%; box-shadow: 0 2px 0 var(--ink-dark); } /* the site's soft slate, not pure black */
.reveal::after { bottom: 0; --cine-from: 100%; box-shadow: 0 -2px 0 var(--ink-dark); }
@keyframes cine-in { from { transform: translateY(var(--cine-from)); } }
.reveal__card { position: relative; z-index: 1; }
.reveal .reveal__skip { position: absolute; z-index: 1; left: calc(50% + var(--sx, 0px)); bottom: calc(var(--bar) / 2 - 12px); top: auto; transform: translateX(-50%); background: none; animation: cine-skip 0.4s 0.6s both, reveal-blink 1s 1s steps(2) infinite; }
@keyframes cine-skip { from { opacity: 0; } }
.reveal.is-out::before { transform: translateY(-100%); transition: transform 0.15s ease-in; }
.reveal.is-out::after { transform: translateY(100%); transition: transform 0.15s ease-in; }
@media (prefers-reduced-motion: reduce) { .reveal::before, .reveal::after, .reveal .reveal__skip { animation: none; } }
@media (max-width: 700px) { .reveal__zone { font-size: 36px; line-height: 44px; letter-spacing: 1px; --stamp: 1.1; } /* a 1.5x stamp ran a long zone name off both edges */ .reveal__score { font-size: 48px; line-height: 48px; } }

/* ---------- results: card, place, score chart, next game, today's top 10 ---------- */
.res-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 12px; width: min(560px, 100%); }
.res-wrap .res { width: 100%; }
.results.is-peek .res-wrap { display: none; }
@media (min-width: 1100px) {
  .res-wrap { flex-direction: row-reverse; align-items: flex-start; width: auto; }
  .res-wrap .res { width: min(500px, 38vw); }
  .res-top { width: 272px; flex: none; }
}
.res__place { color: var(--ink-soft); position: relative; left: var(--sx, 0px); top: var(--sy, 0px); }
.res__place b { font: 700 12px/16px var(--pixel); letter-spacing: 1px; color: var(--ink); }
.res-hist { position: relative; margin: 0 auto 12px; padding-top: 24px; }
.res-hist canvas { display: block; image-rendering: pixelated; }
.res-hist__you { position: absolute; top: 0; left: 0; padding: 0 4px; background: #ffcf5a; color: var(--ink-dark); font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.res-hist__axis { position: relative; display: flex; justify-content: space-between; height: 16px; margin-top: 4px; font-size: 11px; line-height: 16px; color: var(--ink-soft); }
.res-hist__avg { position: absolute; top: 0; white-space: nowrap; color: var(--ink); }
.res .res__next { width: 100%; min-height: 48px; gap: 8px; margin: 0 0 8px; font-size: 24px; letter-spacing: 1px; }
.res__next span { position: relative; left: var(--sx, 0px); top: var(--sy, 0px); }
.res__cleared { margin: 0 0 8px; padding: 8px; border: 1px dashed #ffffff2a; text-align: center; font: 700 12px/16px var(--pixel); letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.res__modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0 0 12px; }
.res__pill { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 4px; border: 1px solid #0008; box-shadow: inset 0 -3px 0 var(--edge); font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; opacity: 0.72; }
.res__pill.is-done, .res__pill[aria-current="true"] { opacity: 1; }
.res__pill[aria-current="true"] { outline: 2px solid currentColor; outline-offset: -5px; }
.res__pill b { font: 700 12px/16px var(--pixel); }
.res__pill b:empty { display: none; }
.res__pill:hover { filter: brightness(1.08); }
.res__pill span { position: relative; left: var(--sx, 0px); top: var(--sy, 0px); }
.res-top { background: #0f1a22f2; border: 1px solid #000; box-shadow: 0 6px 0 #0006; padding: 12px 12px 14px; animation: rise-in 0.5s 0.1s ease-out both; }
.res-top h3 { position: relative; left: var(--sx, 0px); top: var(--sy, 0px); display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; font: 700 12px/16px var(--pixel); letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.res-top h3 small { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/16px var(--pixel); letter-spacing: 1px; color: var(--ink-soft); }
.res-top__list { margin: 0 0 10px; padding: 0; list-style: none; }
.res-top__list li { display: grid; grid-template-columns: 40px 32px 1fr auto; align-items: center; gap: 0 8px; height: 34px; padding: 0 4px; border-bottom: 1px solid #ffffff10; }
.res-top__list li.is-you { background: #f0d87814; }
.res-top__list .rk { font: 700 12px/16px var(--pixel); color: var(--gold); text-align: right; }
.res-top__face { width: 32px; height: 32px; image-rendering: pixelated; }
.res-top__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; border: 0; background: none; text-align: left; font: 11px/16px var(--mono); color: var(--ink); }
.res-top__name:hover { color: var(--focus); }
.res-top__list .sc { font: 700 12px/16px var(--pixel); }
.res-top__list li.res-top__gap { display: block; height: 16px; border: 0; text-align: center; color: var(--ink-dim); line-height: 16px; }
.res-top__empty { margin: 0 0 10px; padding: 12px 0; text-align: center; color: var(--ink-soft); }
.res-top .btn { min-height: 36px; }

/* ---------- Review my game (#sheet[data-kind="review"]) ---------- */
.rvw__pager { display: grid; grid-template-columns: 36px repeat(7, 1fr) 36px; gap: 4px; margin: 0 0 14px; }
.rvw__pager button { height: 36px; padding: 0; border: 1px solid #0008; font: 700 12px/16px var(--pixel); }
.rvw__pager .rvw__arrow { background: #1a2a34; color: var(--ink); font-size: 24px; box-shadow: inset 0 -3px 0 #0006; }
.rvw__num { background: var(--tc); color: var(--ink-dark); box-shadow: inset 0 -3px 0 #0004; }
.rvw__num[aria-current="step"] { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: inset 0 -3px 0 #0004, inset 0 0 0 2px var(--ink-dark); }
.rvw__num:hover, .rvw__arrow:hover:not(:disabled) { filter: brightness(1.1); }
.rvw__qof { position: relative; left: var(--sx, 0px); top: var(--sy, 0px); margin: 0; font: 700 12px/16px var(--pixel); letter-spacing: 2px; text-transform: uppercase; color: var(--ink-dim); }
.rvw__prompt { position: relative; left: var(--sx, 0px); top: var(--sy, 0px); margin: 4px 0 10px; font: 700 24px/28px var(--pixel); color: var(--ink); text-wrap: balance; }
.rvw__you { margin: 0 0 12px; padding: 10px 12px; background: #0a1218; border: 1px solid #ffffff14; border-left: 4px solid var(--tc); }
.rvw__you p { margin: 0; }
.rvw__you .rvw__tier { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: var(--tc); }
.rvw__tier span { position: relative; left: var(--sx, 0px); top: var(--sy, 0px); }
.rvw__tier b { font: 700 24px/28px var(--pixel); color: var(--ink); } .rvw__tier small { margin-left: 2px; font: 400 11px var(--mono); color: var(--ink-soft); text-transform: none; }
.rvw__said b { color: var(--ink); }
.rvw__line { color: var(--ink-soft); }
/* answers the answer judge added (docs/ANSWER_JUDGE.md) and the should-count report link */
.rvt__judged { display: inline-block; margin-left: 4px; padding: 0 4px; border: 1px solid #ffffff33; font: 10px/14px var(--mono); letter-spacing: .02em; color: var(--ink-soft); vertical-align: 1px; text-transform: lowercase; }
.rvw__report { margin: 4px 0 0; font-size: 12px; color: var(--ink-soft); }
.rvt__hid { color: var(--ink-soft); font-style: normal; opacity: .8; }
.rvw__hidden { padding: 14px 12px; border: 1px dashed #ffffff2a; color: var(--ink-soft); text-align: center; }
.rvw__search { margin: 0 0 8px; }
.rvw__search input { width: 100%; height: 38px; padding: 0 10px; background: #0a1218; border: 2px solid #ffffff2a; color: var(--ink); font: 22px var(--mono); }
.rvw__search input::placeholder { font-size: 11px; color: var(--ink-dim); }
.rvw__search input:focus { outline: none; border-color: var(--focus); }
.rvw__found { display: grid; gap: 2px; margin-top: 4px; }
.rvw__found:empty { display: none; }
.rvw__hit { display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 8px; min-height: 28px; padding: 0 8px; background: #14222b; border: 1px solid #ffffff14; text-align: left; font: 11px/16px var(--mono); }
.rvw__hit:hover { border-color: var(--ink-soft); }
.rvw__hit .rk { font: 700 12px/16px var(--pixel); color: var(--gold); }
.rvw__hit .s { color: var(--ink-soft); } .rvw__hit .t { font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.rvw__miss { margin: 0; padding: 4px 0; color: var(--ink-soft); }
.rvw__note { margin: 0 0 10px; font-size: 11px; color: var(--ink-soft); }
.rvt { width: 100%; border-collapse: collapse; font: 11px/16px var(--mono); }
.rvt caption { text-align: left; }
.rvt td { height: 24px; padding: 0 6px 0 0; border-bottom: 1px solid #ffffff0d; vertical-align: middle; }
.rvt .rk { width: 48px; font: 700 12px/16px var(--pixel); color: var(--ink-dim); }
.rvt .a { overflow-wrap: anywhere; } .rvt .a em { font-style: normal; color: var(--green); }
.rvt .l { width: 28px; text-align: right; color: var(--ink-soft); }
.rvt .s { width: 60px; text-align: right; color: var(--ink-soft); }
.rvt .p { width: 40px; padding-right: 0; text-align: right; font: 700 12px/16px var(--pixel); color: var(--tc, var(--ink)); }
.rvt tr.is-you td { background: #f0d8781f; color: var(--ink); }
.rvt tr.is-you .a { text-decoration: underline; text-underline-offset: 3px; }
.rvt tr.is-flash td { animation: rvt-flash 1.2s steps(6); }
@keyframes rvt-flash { from { background: #f0d87866; } }
.rvt__head th { padding: 12px 0 0; border-bottom: 2px solid var(--tc); text-align: left; font-weight: 400; white-space: nowrap; }
.rvt__band:first-of-type .rvt__head th { padding-top: 0; }
.rvt__head th > span { position: relative; left: var(--sx, 0px); top: var(--sy, 0px); display: inline-block; vertical-align: top; height: 28px; padding: 6px 8px; font: 700 12px/16px var(--pixel); letter-spacing: 1px; }
.rvt__head .rvt__name { background: var(--tc); color: var(--ink-dark); text-transform: uppercase; }
.rvt__head .rvt__cut { color: var(--tc); }
.rvt__head .rvt__n { font: 11px/16px var(--mono); letter-spacing: 0; color: var(--ink-soft); }
.rvt__head .rvt__pts { float: right; color: var(--tc); }
.rvt__none td { color: var(--ink-dim); }
.rvt--speed { margin-bottom: 12px; }
.rvt--speed td { height: 28px; }
.rvt--speed .rvt__name { width: 50%; font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: var(--tc); }
.rvt--speed .rvt__name em { font: 11px/16px var(--mono); font-style: normal; color: var(--green); text-transform: none; letter-spacing: 0; }
.rvt--speed .rvt__cut { color: var(--ink-soft); }
@media (max-width: 700px) {
  .rvw__pager { grid-template-columns: 32px repeat(7, 1fr) 32px; gap: 3px; }
  .rvt .rk { width: 40px; } .rvt .s { width: 52px; }
  .rvt__head th { white-space: normal; }
  .rvt__head th > span { padding: 6px 6px; letter-spacing: 0; }
  .res__modes { gap: 3px; } .res__pill { letter-spacing: 0; gap: 4px; }
  .res .res__next { font-size: 12px; }
}

/* ---------- polish: pixel numerals, played tiles, Skip, the loading splash, footer links, guide pages ---------- */
/* Pixel numerals (public/pixel-digits.mjs): SVG glyphs in the text colour with a one-art-px drop shadow. */
.pxnum { display: inline-flex; align-items: flex-end; line-height: 0; vertical-align: baseline; }
.pxnum__art { display: block; overflow: visible; }
.pxnum__fg { fill: currentColor; }
.pxnum__sh { fill: var(--pxd-shadow, #00000047); }
.pxnum--text { line-height: inherit; }
.card-day__cell b { display: flex; align-items: flex-end; gap: 4px; }
.card-day__cell b small { margin-left: 0; }
.res__score { display: flex; justify-content: center; align-items: flex-end; gap: 8px; --pxd-shadow: #16222a38; }
.res__score small { display: inline-flex; padding-bottom: 3px; }
.board__list .sc, .res-top__list .sc { display: inline-flex; align-items: flex-end; justify-content: flex-end; gap: 3px; }
.dash__rl.is-total strong { display: inline-flex; align-items: flex-end; }
@media (max-width: 700px) { .res__score > .pxnum:first-child .pxnum__art { width: auto; height: 48px; } }

/* Played daily games: compact cards under the games still to play (renderDoneTiles in app.mjs). Two to a row
   (an odd last card takes the whole row), each laid out by its own width: narrow (phones) stacks the buttons
   under a small logo and the score; mid-width shows the 2x logo and the name, the buttons in a row under them;
   a full-row card is one line. */
.tile.is-wide { grid-column: 1 / -1; }
.tiles-done { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.donecard { container-type: inline-size; position: relative; min-width: 0; border: 2px solid var(--ink-dark); box-shadow: inset 0 -4px 0 var(--edge), inset 0 0 0 2px #ffffff14; animation: done-in 0.35s ease-out both; }
.donecard:last-child:nth-child(odd) { grid-column: 1 / -1; }
@keyframes done-in { from { opacity: 0; transform: scale(0.96); } }
.donecard__in { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "logo info" "btns btns"; align-items: center; gap: 8px 8px; padding: 8px 8px 12px; }
.donecard__logo { grid-area: logo; display: grid; place-items: center; }
.donecard__logo .gicon { width: 32px; height: 26px; filter: drop-shadow(0 2px 0 #0003); }
.donecard__info { grid-area: info; display: grid; gap: 4px; min-width: 0; }
.donecard__name { display: none; font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.donecard__score { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px 6px; }
.donecard__max { display: inline-flex; align-items: flex-end; gap: 4px; padding-bottom: 3px; opacity: 0.72; white-space: nowrap; }
.donecard__max small { font: 11px/11px var(--mono); }
.donecard__btns { grid-area: btns; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.donecard__btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; height: 30px; padding: 0 4px; background: #0000002b; color: inherit; border: 1px solid #00000030; box-shadow: inset 0 -2px 0 #00000030; font: 700 12px var(--pixel); letter-spacing: 0; text-transform: uppercase; }
.donecard__btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donecard__btn:hover { background: #0000003d; }
.donecard__btn:active { transform: translateY(1px); box-shadow: none; }
.tile--crowd.donecard .donecard__btn { background: #16222a14; border-color: #16222a40; }
.tile--crowd.donecard .donecard__btn:hover { background: #16222a26; }
@container (max-width: 199px) { .donecard__btn .uicon { display: none; } }
@container (min-width: 250px) {
  .donecard__in { gap: 8px 12px; padding: 10px 12px 12px; }
  .donecard__logo { align-self: center; }
  .donecard__logo .gicon { width: 64px; height: 52px; }
  .donecard__name { display: block; }
  .donecard__btn { gap: 5px; padding: 0 6px; }
}
@container (min-width: 460px) {
  .donecard__in { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo info btns"; }
  .donecard__btns { grid-template-columns: auto auto; }
  .donecard__btn { height: 34px; gap: 6px; padding: 0 12px; letter-spacing: 1px; }
}
@media (max-width: 700px) { .tiles-done { gap: 8px; } }

/* Skip on the answer bar: a quiet outline button after Submit. */
.answer { grid-template-columns: 1fr auto auto; }
.answer .answer__skip { height: 46px; padding: 0 12px; background: transparent; color: var(--paper-ink); border: 2px solid var(--paper-ink); box-shadow: none; outline: 0; }
.answer .answer__skip:hover:not(:disabled) { background: #22303a14; }
.answer .answer__skip:disabled { opacity: 0.35; }
@media (max-width: 700px) { .answer { gap: 6px; } .answer .answer__skip { padding: 0 8px; letter-spacing: 0; } .answer__go { padding: 10px 12px; } }

/* Loading splash (#splash): sky and sea bands split at the home waterline (the world's anchor: 40%, 30% on tall
   screens), the logo, your chef in the bowl and a stepped progress bar. It fades in after 150 ms so quick loads
   never show it, and hides itself after 12 s whatever happens. */
.splash { --wl: 40%; position: fixed; inset: 0; z-index: 70; opacity: 0; overflow: hidden;
  background: linear-gradient(to bottom, #c6946c 0 calc(var(--wl) - 780px), #d8a77c 0 calc(var(--wl) - 450px), #e8bf8e 0 calc(var(--wl) - 210px), #f2d3a2 0 calc(var(--wl) - 36px), #f7e2b8 0 var(--wl), #62a99f 0 calc(var(--wl) + 120px), #519a91 0 calc(var(--wl) + 420px), #428a82 0 calc(var(--wl) + 780px), #357872 0);
  animation: splash-in 0.2s 0.15s steps(4) forwards, splash-safety 0.4s 12s forwards; }
@media (max-aspect-ratio: 5 / 6) { .splash { --wl: 30%; } }
.splash.is-out { transition: opacity 0.4s steps(5); pointer-events: none; }
@keyframes splash-in { to { opacity: 1; } }
@keyframes splash-safety { to { opacity: 0; visibility: hidden; } }
.splash__stage { position: absolute; left: 0; right: 0; top: var(--wl); height: 0; }
.splash__logo { position: absolute; left: calc(50% - 213px); bottom: 150px; width: 426px; height: 90px; image-rendering: pixelated; }
/* The chef at the world's pixel scale (--k, as World.resize picks it), the bowl 6 art px into the water: the
   default chef (assets/chef-bowl.png, tools/splashart.mjs) until app.mjs draws yours on the canvas. */
.splash { --k: 2; }
@media (min-width: 1600px) and (min-height: 900px) { .splash { --k: 3; } }
@media (min-width: 2240px) and (min-height: 1260px) { .splash { --k: 4; } }
.splash__chef { position: absolute; left: calc(50% - 24px * var(--k)); top: calc(-46px * var(--k)); width: calc(48px * var(--k)); height: calc(54px * var(--k)); image-rendering: pixelated; background: url('/assets/chef-bowl.png') 0 0 / 100% 100% no-repeat; }
.splash__chef.is-drawn { background: none; }
.splash__bar { position: absolute; left: calc(50% - 84px); top: 64px; width: 168px; height: 12px; padding: 2px; background: #16222a; box-shadow: 0 0 0 2px #f3ead6, 0 4px 0 2px #0003; }
.splash__bar i { display: block; width: 0; height: 100%; background: #f6c445; box-shadow: inset 0 2px 0 #ffe48a, inset 0 -2px 0 #d99a26; }
@media (max-width: 700px) {
  .splash__logo { left: calc(50% - 142px); bottom: 104px; width: 284px; height: 60px; }
  .splash__bar { top: 48px; }
}

/* Footer links under the home menu (the guide pages, about, privacy). */
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; padding: 6px 10px; background: #12202999; }
.foot__links a { font: 11px/16px var(--mono); color: var(--ink-soft); text-decoration: none; }
.foot__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- guide pages (src/seo.mjs) and about / privacy ---------- */
.info { height: auto; min-height: 100%; overflow: auto; background: #0f1a22 linear-gradient(#1a2c36, #0f1a22 420px) no-repeat; color: var(--ink); font-size: 11px; line-height: 18px; }
.guide__top { position: relative; overflow: hidden; background: #f2d3a2; border-bottom: 4px solid #16222a; box-shadow: 0 4px 0 #0005; }
/* The cove banner (1920 x 480 pixel art): the whole width scaled on small screens, at 1:1 (cropped to the sky,
   the logo and the sea) from 1200px up so its pixels stay square. */
.guide__banner { display: block; width: 100%; height: clamp(140px, 22vw, 312px); object-fit: cover; object-position: 50% 0; image-rendering: pixelated; }
@media (min-width: 1200px) { .guide__banner { width: 1920px; max-width: none; height: 312px; margin-left: calc(50% - 960px); object-fit: none; } }
.guide__home { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: #0f1a22e6; color: var(--ink); border: 1px solid #ffffff2a; font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; text-decoration: none; }
.guide__home:hover { border-color: var(--ink-soft); }
.info__main { max-width: 760px; margin: 0 auto; padding: 28px 16px 56px; }
.info h1 { margin: 0 0 12px; font: 700 36px/44px var(--pixel); letter-spacing: 1px; color: var(--paper); text-shadow: 0 3px 0 #000; text-wrap: balance; }
.info h2 { display: flex; align-items: center; gap: 10px; margin: 34px 0 12px; font: 700 24px/28px var(--pixel); letter-spacing: 2px; text-transform: uppercase; color: var(--gold); text-shadow: 0 2px 0 #6a4a10; }
.info h2::after { content: ''; flex: 1; height: 4px; background: repeating-linear-gradient(90deg, #f6c44566 0 4px, transparent 4px 8px); }
.info h3 { margin: 18px 0 6px; font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: var(--paper); }
.info p, .info li { color: #d6dcd6; }
.info a { color: var(--focus); }
.info .lede { font-size: 11px; color: var(--ink); }
.guide__cta { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 4px; padding: 12px 20px; background: var(--cream); color: var(--ink-dark); outline: 2px solid var(--ink-dark); outline-offset: -5px; box-shadow: inset 0 -4px 0 var(--cream-edge), 0 4px 0 #0006; font: 700 12px/16px var(--pixel); letter-spacing: 2px; text-transform: uppercase; text-decoration: none; }
.info a.guide__cta { color: var(--ink-dark); }
.guide__cta:hover { filter: brightness(1.06); }
.guide__cta:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 var(--cream-edge); }
.guide__cta--end { margin-top: 28px; }
.guide__games { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; padding: 0; list-style: none; }
.guide__game { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; padding: 12px 14px 14px; border: 2px solid var(--ink-dark); box-shadow: inset 0 -5px 0 var(--edge), inset 0 0 0 2px #ffffff14; }
.guide__game .gicon { grid-row: 1 / 3; }
.guide__game h3 { margin: 0; color: inherit; }
.guide__game p { margin: 0; color: inherit; opacity: 0.9; }
.info .guide__game { color: var(--ink); } .info .guide__game.tile--crowd { color: var(--ink-dark); } .info .guide__game.tile--course { color: #fff5ec; }
.guide__game a { color: inherit; }
.guide__tiers { margin: 10px 0; border-top: 1px solid #ffffff14; }
.guide__tiers div { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-bottom: 1px solid #ffffff10; border-left: 3px solid var(--c); }
.guide__tiers span { font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: var(--c); }
.guide__tiers b { margin-left: auto; font: 700 24px/1 var(--pixel); color: var(--ink); }
.guide__faq details { border-bottom: 1px solid #ffffff14; }
.guide__faq summary { cursor: pointer; padding: 10px 2px; font: 700 12px/16px var(--pixel); letter-spacing: 1px; list-style: none; color: var(--paper); }
.guide__faq summary::-webkit-details-marker { display: none; }
.guide__faq summary::before { content: '+ '; color: var(--gold); }
.guide__faq details[open] summary::before { content: '- '; }
.guide__faq details p { margin: 0 0 12px 18px; }
.guide__qs { margin: 10px 0; padding: 0; list-style: none; counter-reset: q; display: grid; gap: 6px; }
.guide__qs li { counter-increment: q; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 8px 12px; background: #f3ead6; color: var(--paper-ink); box-shadow: 0 3px 0 #0004; }
.guide__qs li::before { content: counter(q); font: 700 24px/24px var(--pixel); color: #b8402e; text-align: right; }
.guide__qs li b { display: block; margin-bottom: 2px; font: 700 12px/16px var(--pixel); letter-spacing: 0; color: var(--paper-ink); }
.guide__qs li small { display: block; color: #7a6450; font-size: 11px; }
.guide__note { padding: 10px 12px; border-left: 4px solid var(--gold); background: #f6c44514; color: var(--gold); }
.guide__more { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.guide__more a { display: inline-block; padding: 6px 10px; background: #1a2a34; border: 1px solid #ffffff2a; color: var(--ink); font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-decoration: none; }
.guide__more a:hover { border-color: var(--ink-soft); }
.guide__foot { margin-top: 40px; padding-top: 14px; border-top: 2px dashed #ffffff1f; color: var(--ink-soft); }
@media (max-width: 700px) {
  .info h1 { font-size: 24px; line-height: 30px; }
  .info h2 { font-size: 12px; line-height: 16px; }
  .guide__games { grid-template-columns: 1fr; }
  .guide__qs li { grid-template-columns: 30px 1fr; padding: 8px 10px; }
  .guide__qs li::before { font-size: 12px; }
}
.guide__tiers small { color: var(--ink-soft); font-size: 11px; }

/* ---------- Tier shine (Wonderhop-style): Chef's Kiss shines gold, Delicious purple; lower tiers stay flat ----------
   Surfaces (.shine): stepped bands in whole pixels (light top, base, deep lip), a stair-stepped light sweep that
   crosses in steps (gold every 2.2 s; purple softer, every 2.8 s) and 4-point twinkles on ::before/::after
   (gold two, purple one), drawn behind the text. Text (.shine-text): the same bands and sweep clipped to the letters.
   .shine--sm: 1x sprites for small chips (pips, pager, tier chips). Sprites: tools/shine_svg.mjs.
   Reduced motion: the sweep parks as a still highlight and one sparkle stays lit. */
:root {
  --sh-sweep-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 96' width='58' height='96' shape-rendering='crispEdges'%3E%3Crect x='46' y='0' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='56' y='0' width='2' height='4' fill='%23ffeaa0'/%3E%3Crect x='44' y='4' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='54' y='4' width='2' height='4' fill='%23ffeaa0'/%3E%3Crect x='42' y='8' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='52' y='8' width='2' height='4' fill='%23ffeaa0'/%3E%3Crect x='40' y='12' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='50' y='12' width='2' height='4' fill='%23ffeaa0'/%3E%3Crect x='38' y='16' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='48' y='16' width='2' height='4' fill='%23ffeaa0'/%3E%3Crect x='36' y='20' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='46' y='20' width='2' height='4' fill='%23ffeaa0'/%3E%3Crect x='34' y='24' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='44' y='24' width='2' height='4' fill='%23ffeaa0'/%3E%3Crect x='32' y='28' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='42' y='28' width='2' height='4' fill='%23ffeaa0'/%3E%3Crect x='30' y='32' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='40' y='32' width='2' height='4' fill='%23ffeaa0'/%3E%3Crect x='28' y='36' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='38' y='36' width='2' height='4' fill='%23ffeaa0'/%3E%3Crect x='26' y='40' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='36' y='40' width='2' height='4' fill='%23ffeaa0'/%3E%3Crect x='24' y='44' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='34' y='44' width='2' height='4' fill='%23ffeaa0'/%3E%3Crect x='22' y='48' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='32' y='48' width='2' height='4' fill='%23ffeaa0'/%3E%3Crect x='20' y='52' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='30' y='52' width='2' height='4' fill='%23ffeaa0'/%3E%3Crect x='18' y='56' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='28' y='56' width='2' height='4' fill='%23ffeaa0'/%3E%3Crect x='16' y='60' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='26' y='60' width='2' height='4' fill='%23ffeaa0'/%3E%3Crect x='14' y='64' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='24' y='64' width='2' height='4' fill='%23ffeaa0'/%3E%3Crect x='12' y='68' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='22' y='68' width='2' height='4' fill='%23ffeaa0'/%3E%3Crect x='10' y='72' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='20' y='72' width='2' height='4' fill='%23ffeaa0'/%3E%3Crect x='8' y='76' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='18' y='76' width='2' height='4' fill='%23ffeaa0'/%3E%3Crect x='6' y='80' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='16' y='80' width='2' height='4' fill='%23ffeaa0'/%3E%3Crect x='4' y='84' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='14' y='84' width='2' height='4' fill='%23ffeaa0'/%3E%3Crect x='2' y='88' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='12' y='88' width='2' height='4' fill='%23ffeaa0'/%3E%3Crect x='0' y='92' width='8' height='4' fill='%23fff6d0'/%3E%3Crect x='10' y='92' width='2' height='4' fill='%23ffeaa0'/%3E%3C/svg%3E"); --sh-sweep-gold-w: 58px;
  --sh-sweep-gold-sm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 32' width='21' height='32' shape-rendering='crispEdges'%3E%3Crect x='15' y='0' width='4' height='2' fill='%23fff6d0'/%3E%3Crect x='20' y='0' width='1' height='2' fill='%23ffeaa0'/%3E%3Crect x='14' y='2' width='4' height='2' fill='%23fff6d0'/%3E%3Crect x='19' y='2' width='1' height='2' fill='%23ffeaa0'/%3E%3Crect x='13' y='4' width='4' height='2' fill='%23fff6d0'/%3E%3Crect x='18' y='4' width='1' height='2' fill='%23ffeaa0'/%3E%3Crect x='12' y='6' width='4' height='2' fill='%23fff6d0'/%3E%3Crect x='17' y='6' width='1' height='2' fill='%23ffeaa0'/%3E%3Crect x='11' y='8' width='4' height='2' fill='%23fff6d0'/%3E%3Crect x='16' y='8' width='1' height='2' fill='%23ffeaa0'/%3E%3Crect x='10' y='10' width='4' height='2' fill='%23fff6d0'/%3E%3Crect x='15' y='10' width='1' height='2' fill='%23ffeaa0'/%3E%3Crect x='9' y='12' width='4' height='2' fill='%23fff6d0'/%3E%3Crect x='14' y='12' width='1' height='2' fill='%23ffeaa0'/%3E%3Crect x='8' y='14' width='4' height='2' fill='%23fff6d0'/%3E%3Crect x='13' y='14' width='1' height='2' fill='%23ffeaa0'/%3E%3Crect x='7' y='16' width='4' height='2' fill='%23fff6d0'/%3E%3Crect x='12' y='16' width='1' height='2' fill='%23ffeaa0'/%3E%3Crect x='6' y='18' width='4' height='2' fill='%23fff6d0'/%3E%3Crect x='11' y='18' width='1' height='2' fill='%23ffeaa0'/%3E%3Crect x='5' y='20' width='4' height='2' fill='%23fff6d0'/%3E%3Crect x='10' y='20' width='1' height='2' fill='%23ffeaa0'/%3E%3Crect x='4' y='22' width='4' height='2' fill='%23fff6d0'/%3E%3Crect x='9' y='22' width='1' height='2' fill='%23ffeaa0'/%3E%3Crect x='3' y='24' width='4' height='2' fill='%23fff6d0'/%3E%3Crect x='8' y='24' width='1' height='2' fill='%23ffeaa0'/%3E%3Crect x='2' y='26' width='4' height='2' fill='%23fff6d0'/%3E%3Crect x='7' y='26' width='1' height='2' fill='%23ffeaa0'/%3E%3Crect x='1' y='28' width='4' height='2' fill='%23fff6d0'/%3E%3Crect x='6' y='28' width='1' height='2' fill='%23ffeaa0'/%3E%3Crect x='0' y='30' width='4' height='2' fill='%23fff6d0'/%3E%3Crect x='5' y='30' width='1' height='2' fill='%23ffeaa0'/%3E%3C/svg%3E"); --sh-sweep-gold-sm-w: 21px;
  --sh-sweep-purple: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 96' width='56' height='96' shape-rendering='crispEdges'%3E%3Crect x='46' y='0' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='54' y='0' width='2' height='4' fill='%23cf86f0'/%3E%3Crect x='44' y='4' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='52' y='4' width='2' height='4' fill='%23cf86f0'/%3E%3Crect x='42' y='8' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='50' y='8' width='2' height='4' fill='%23cf86f0'/%3E%3Crect x='40' y='12' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='48' y='12' width='2' height='4' fill='%23cf86f0'/%3E%3Crect x='38' y='16' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='46' y='16' width='2' height='4' fill='%23cf86f0'/%3E%3Crect x='36' y='20' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='44' y='20' width='2' height='4' fill='%23cf86f0'/%3E%3Crect x='34' y='24' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='42' y='24' width='2' height='4' fill='%23cf86f0'/%3E%3Crect x='32' y='28' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='40' y='28' width='2' height='4' fill='%23cf86f0'/%3E%3Crect x='30' y='32' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='38' y='32' width='2' height='4' fill='%23cf86f0'/%3E%3Crect x='28' y='36' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='36' y='36' width='2' height='4' fill='%23cf86f0'/%3E%3Crect x='26' y='40' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='34' y='40' width='2' height='4' fill='%23cf86f0'/%3E%3Crect x='24' y='44' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='32' y='44' width='2' height='4' fill='%23cf86f0'/%3E%3Crect x='22' y='48' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='30' y='48' width='2' height='4' fill='%23cf86f0'/%3E%3Crect x='20' y='52' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='28' y='52' width='2' height='4' fill='%23cf86f0'/%3E%3Crect x='18' y='56' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='26' y='56' width='2' height='4' fill='%23cf86f0'/%3E%3Crect x='16' y='60' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='24' y='60' width='2' height='4' fill='%23cf86f0'/%3E%3Crect x='14' y='64' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='22' y='64' width='2' height='4' fill='%23cf86f0'/%3E%3Crect x='12' y='68' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='20' y='68' width='2' height='4' fill='%23cf86f0'/%3E%3Crect x='10' y='72' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='18' y='72' width='2' height='4' fill='%23cf86f0'/%3E%3Crect x='8' y='76' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='16' y='76' width='2' height='4' fill='%23cf86f0'/%3E%3Crect x='6' y='80' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='14' y='80' width='2' height='4' fill='%23cf86f0'/%3E%3Crect x='4' y='84' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='12' y='84' width='2' height='4' fill='%23cf86f0'/%3E%3Crect x='2' y='88' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='10' y='88' width='2' height='4' fill='%23cf86f0'/%3E%3Crect x='0' y='92' width='6' height='4' fill='%23e2b0f8'/%3E%3Crect x='8' y='92' width='2' height='4' fill='%23cf86f0'/%3E%3C/svg%3E"); --sh-sweep-purple-w: 56px;
  --sh-sweep-purple-sm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 32' width='20' height='32' shape-rendering='crispEdges'%3E%3Crect x='15' y='0' width='3' height='2' fill='%23e2b0f8'/%3E%3Crect x='19' y='0' width='1' height='2' fill='%23cf86f0'/%3E%3Crect x='14' y='2' width='3' height='2' fill='%23e2b0f8'/%3E%3Crect x='18' y='2' width='1' height='2' fill='%23cf86f0'/%3E%3Crect x='13' y='4' width='3' height='2' fill='%23e2b0f8'/%3E%3Crect x='17' y='4' width='1' height='2' fill='%23cf86f0'/%3E%3Crect x='12' y='6' width='3' height='2' fill='%23e2b0f8'/%3E%3Crect x='16' y='6' width='1' height='2' fill='%23cf86f0'/%3E%3Crect x='11' y='8' width='3' height='2' fill='%23e2b0f8'/%3E%3Crect x='15' y='8' width='1' height='2' fill='%23cf86f0'/%3E%3Crect x='10' y='10' width='3' height='2' fill='%23e2b0f8'/%3E%3Crect x='14' y='10' width='1' height='2' fill='%23cf86f0'/%3E%3Crect x='9' y='12' width='3' height='2' fill='%23e2b0f8'/%3E%3Crect x='13' y='12' width='1' height='2' fill='%23cf86f0'/%3E%3Crect x='8' y='14' width='3' height='2' fill='%23e2b0f8'/%3E%3Crect x='12' y='14' width='1' height='2' fill='%23cf86f0'/%3E%3Crect x='7' y='16' width='3' height='2' fill='%23e2b0f8'/%3E%3Crect x='11' y='16' width='1' height='2' fill='%23cf86f0'/%3E%3Crect x='6' y='18' width='3' height='2' fill='%23e2b0f8'/%3E%3Crect x='10' y='18' width='1' height='2' fill='%23cf86f0'/%3E%3Crect x='5' y='20' width='3' height='2' fill='%23e2b0f8'/%3E%3Crect x='9' y='20' width='1' height='2' fill='%23cf86f0'/%3E%3Crect x='4' y='22' width='3' height='2' fill='%23e2b0f8'/%3E%3Crect x='8' y='22' width='1' height='2' fill='%23cf86f0'/%3E%3Crect x='3' y='24' width='3' height='2' fill='%23e2b0f8'/%3E%3Crect x='7' y='24' width='1' height='2' fill='%23cf86f0'/%3E%3Crect x='2' y='26' width='3' height='2' fill='%23e2b0f8'/%3E%3Crect x='6' y='26' width='1' height='2' fill='%23cf86f0'/%3E%3Crect x='1' y='28' width='3' height='2' fill='%23e2b0f8'/%3E%3Crect x='5' y='28' width='1' height='2' fill='%23cf86f0'/%3E%3Crect x='0' y='30' width='3' height='2' fill='%23e2b0f8'/%3E%3Crect x='4' y='30' width='1' height='2' fill='%23cf86f0'/%3E%3C/svg%3E"); --sh-sweep-purple-sm-w: 20px;
  --sh-spark-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 7' width='28' height='7' shape-rendering='crispEdges'%3E%3Crect x='10' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='17' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='16' y='3' width='1' height='1' fill='%23fffbe8'/%3E%3Crect x='18' y='3' width='1' height='1' fill='%23fffbe8'/%3E%3Crect x='17' y='2' width='1' height='1' fill='%23fffbe8'/%3E%3Crect x='17' y='4' width='1' height='1' fill='%23fffbe8'/%3E%3Crect x='24' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='23' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='25' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='24' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='24' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='22' y='3' width='1' height='1' fill='%23fffbe8'/%3E%3Crect x='26' y='3' width='1' height='1' fill='%23fffbe8'/%3E%3Crect x='24' y='1' width='1' height='1' fill='%23fffbe8'/%3E%3Crect x='24' y='5' width='1' height='1' fill='%23fffbe8'/%3E%3Crect x='21' y='3' width='1' height='1' fill='%23fff3b0'/%3E%3Crect x='27' y='3' width='1' height='1' fill='%23fff3b0'/%3E%3Crect x='24' y='0' width='1' height='1' fill='%23fff3b0'/%3E%3Crect x='24' y='6' width='1' height='1' fill='%23fff3b0'/%3E%3C/svg%3E");
  --sh-spark-purple: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 7' width='28' height='7' shape-rendering='crispEdges'%3E%3Crect x='10' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='17' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='16' y='3' width='1' height='1' fill='%23fbefff'/%3E%3Crect x='18' y='3' width='1' height='1' fill='%23fbefff'/%3E%3Crect x='17' y='2' width='1' height='1' fill='%23fbefff'/%3E%3Crect x='17' y='4' width='1' height='1' fill='%23fbefff'/%3E%3Crect x='24' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='23' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='25' y='3' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='24' y='2' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='24' y='4' width='1' height='1' fill='%23ffffff'/%3E%3Crect x='22' y='3' width='1' height='1' fill='%23fbefff'/%3E%3Crect x='26' y='3' width='1' height='1' fill='%23fbefff'/%3E%3Crect x='24' y='1' width='1' height='1' fill='%23fbefff'/%3E%3Crect x='24' y='5' width='1' height='1' fill='%23fbefff'/%3E%3Crect x='21' y='3' width='1' height='1' fill='%23ecc8fb'/%3E%3Crect x='27' y='3' width='1' height='1' fill='%23ecc8fb'/%3E%3Crect x='24' y='0' width='1' height='1' fill='%23ecc8fb'/%3E%3Crect x='24' y='6' width='1' height='1' fill='%23ecc8fb'/%3E%3C/svg%3E");
}
.shine, .shine-text { --sh-hi: #ffe48a; --sh-base: #f6c445; --sh-lo: #d99a26; --sh-img: var(--sh-sweep-gold); --sh-w: var(--sh-sweep-gold-w); --sh-spk: var(--sh-spark-gold); --sh-dur: 2.2s; --sh-top: 3px; --sh-bot: 4px; --sh-sz: 14px; --sh-kf: sh-sweep; }
.shine--sm, .shine-text { --sh-kf: sh-sweep-sm; }
.shine--sm { --sh-img: var(--sh-sweep-gold-sm); --sh-w: var(--sh-sweep-gold-sm-w); --sh-top: 2px; --sh-bot: 3px; --sh-sz: 7px; }
.shine--purple { --sh-hi: #d690f4; --sh-base: #bc64e4; --sh-lo: #8e44c4; --sh-img: var(--sh-sweep-purple); --sh-w: var(--sh-sweep-purple-w); --sh-spk: var(--sh-spark-purple); --sh-dur: 2.8s; }
.shine--purple.shine--sm, .shine-text.shine--purple { --sh-img: var(--sh-sweep-purple-sm); --sh-w: var(--sh-sweep-purple-sm-w); }
.shine { position: relative; isolation: isolate; overflow: hidden; color: var(--ink-dark);
  /* Longhands: !important beats the inline tier colour but must leave background-position to the sweep animation. */
  background-image: var(--sh-img), linear-gradient(var(--sh-hi) 0 var(--sh-top), var(--sh-base) 0 calc(100% - var(--sh-bot)), var(--sh-lo) 0) !important;
  background-size: var(--sh-w) auto, auto !important; background-repeat: no-repeat !important; background-color: var(--sh-base) !important;
  background-position: 30% 0, 0 0; animation: var(--sh-kf) var(--sh-dur) var(--sh-delay, 0s) infinite backwards; }
.shine::before, .shine::after { content: ''; position: absolute; z-index: -1; width: var(--sh-sz); height: var(--sh-sz); background: var(--sh-spk) 0 0 / calc(var(--sh-sz) * 4) var(--sh-sz) no-repeat; pointer-events: none; animation: sh-twinkle 2.2s step-end infinite; }
.shine::before { left: var(--sh-x1, 4px); top: var(--sh-y1, 1px); animation-delay: calc(var(--sh-delay, 0s) - 1.45s); }
.shine::after { right: var(--sh-x2, 6px); bottom: var(--sh-y2, 2px); animation-delay: calc(var(--sh-delay, 0s) - 0.35s); }
.shine--purple::after { content: none; }
.shine--sm::before { left: var(--sh-x1, 1px); top: var(--sh-y1, 0px); } .shine--sm::after { right: var(--sh-x2, 1px); bottom: var(--sh-y2, 1px); }
/* Text: light upper rows, base, a slightly deeper foot; the sweep runs through the letters. Kept light enough on dark panels. */
.shine-text { --sh-tlo: #e2a432; --sh-img: var(--sh-sweep-gold-sm); --sh-w: var(--sh-sweep-gold-sm-w); --sh-sz: 7px; position: relative; isolation: isolate; color: transparent !important;
  background: var(--sh-img) 30% 0 / var(--sh-w) auto no-repeat, linear-gradient(var(--sh-hi) 0 var(--sh-t1, 7px), var(--sh-base) 0 var(--sh-t2, 11px), var(--sh-tlo) 0);
  -webkit-background-clip: text; background-clip: text; animation: var(--sh-kf) var(--sh-dur) var(--sh-delay, 0s) infinite; }
.shine-text.shine--purple { --sh-hi: #e0a8f8; --sh-base: #c674ea; --sh-tlo: #ae58dc; }
.shine-text::after { content: ''; position: absolute; right: -9px; top: -4px; width: 7px; height: 7px; background: var(--sh-spk) 0 0 / 28px 7px no-repeat; pointer-events: none; z-index: 1; animation: sh-twinkle 2.2s step-end infinite; animation-delay: calc(var(--sh-delay, 0s) - 0.3s); }
@keyframes sh-sweep {
  0% { background-position: calc(var(--sh-w) * -1) 0, 0 0; animation-timing-function: steps(24, end); }
  26%, 100% { background-position: calc(100% + var(--sh-w)) 0, 0 0; }
}
@keyframes sh-sweep-sm {
  0% { background-position: calc(var(--sh-w) * -1) 0, 0 0; animation-timing-function: steps(10, end); }
  26%, 100% { background-position: calc(100% + var(--sh-w)) 0, 0 0; }
}
/* The shared twinkle's shape (public/world/fx.mjs twinkle): dot, plus, long plus (held), plus, dot, then dark;
   about 0.55 s lit in every 2.2 s. */
@keyframes sh-twinkle {
  0% { background-position: calc(var(--sh-sz, 7px) * -1) 0; }
  4% { background-position: calc(var(--sh-sz, 7px) * -2) 0; }
  8% { background-position: calc(var(--sh-sz, 7px) * -3) 0; }
  17% { background-position: calc(var(--sh-sz, 7px) * -2) 0; }
  21% { background-position: calc(var(--sh-sz, 7px) * -1) 0; }
  25%, 100% { background-position: 0 0; }
}
/* Verdict card: the head is the gold or purple surface; the tier word pops in letter by letter ("E X C E L L E N T"),
   then the points land. Sparkles: two in the head (gold) plus one on the points. */
.verdict__head.shine.is-pop { animation: pop 0.5s cubic-bezier(.2,1.6,.4,1), var(--sh-kf) var(--sh-dur) 0.6s infinite backwards; }
.verdict__head.shine { --sh-x1: 8px; --sh-y1: 2px; --sh-x2: 96px; --sh-y2: 3px; }
.verdict__head.shine .pts { position: relative; animation: pts-in 0.4s var(--pts-at, 0.5s) cubic-bezier(.2,1.6,.4,1) both; }
.verdict__head.shine--gold .pts::after { content: ''; position: absolute; z-index: -1; right: -10px; top: 2px; width: 14px; height: 14px; background: var(--sh-spk) 0 0 / 56px 14px no-repeat; animation: sh-twinkle 2.2s step-end infinite; animation-delay: -0.95s; }
@keyframes pts-in { from { opacity: 0; transform: translateY(10px) scale(0.6); } }
.vword { white-space: nowrap; }
.vl { display: inline-block; animation: vl-pop 0.34s calc(0.1s + var(--i) * 0.055s) cubic-bezier(.2,1.7,.4,1) both; }
@keyframes vl-pop { 0% { opacity: 0; transform: translateY(10px) scale(0.4); } 60% { opacity: 1; transform: translateY(-4px) scale(1.1); } 100% { transform: none; } }
/* Round pips (sign + results strip): small surfaces, each a little later so the light runs along the row. */
.pip.shine { border-color: #16222a; }
.pip.shine[data-tier] { animation: pip 0.4s ease-out, var(--sh-kf) var(--sh-dur) var(--sh-delay, 0s) infinite backwards; }
/* Review my game: pager buttons, band header chips, your-answer panel and row. */
.rvw__num.shine { box-shadow: none; }
.rvw__num.shine[aria-current="step"] { box-shadow: inset 0 0 0 2px var(--ink-dark); }
.rvt__head .rvt__name.shine { position: relative; left: var(--sx, 0px); top: var(--sy, 0px); }
.rvw__you.is-gold { background: linear-gradient(#f6c4452a 0 2px, #f6c44512 0), #0a1218; }
.rvw__you.is-purple { background: linear-gradient(#bc64e430 0 2px, #bc64e414 0), #0a1218; }
.rvt__band.is-gold { --sh-row: #f6c4452a; } .rvt__band.is-purple { --sh-row: #bc64e42e; }
/* The row tint is an inset shadow, so the points cell keeps its text-clipped shine background. */
.rvt__band.is-gold tr.is-you td, .rvt__band.is-purple tr.is-you td { background: none; box-shadow: inset 0 0 0 99px var(--sh-row); }
.rvt tr.is-you td.p.shine-text { background: var(--sh-img) 30% 0 / var(--sh-w) auto no-repeat, linear-gradient(var(--sh-hi) 0 var(--sh-t1, 7px), var(--sh-base) 0 var(--sh-t2, 11px), var(--sh-tlo) 0); -webkit-background-clip: text; background-clip: text; }
.rvt .p.shine-text { --sh-t1: 11px; --sh-t2: 15px; } .rvt .p.shine-text::after { content: none; }
.rvt--speed .rvt__name.shine-text { --sh-t1: 13px; --sh-t2: 17px; } .rvt--speed .rvt__name.shine-text::after { content: none; }
.rvw__tier b.shine-text { --sh-t1: 12px; --sh-t2: 20px; } .rvw__tier b.shine-text::after { content: none; }
@media (prefers-reduced-motion: reduce) {
  .shine, .shine-text, .pip.shine[data-tier], .verdict__head.shine.is-pop, .verdict__head.shine .pts, .vl { animation: none !important; }
  .shine, .shine-text { background-position: 30% 0, 0 0 !important; }
  .shine::before, .shine-text::after, .verdict__head.shine--gold .pts::after { animation: none !important; background-position: calc(var(--sh-sz, 7px) * -2) 0; }
  .shine::after { content: none; }
}

/* ---------- themed-menu games and cuisine tours (numbered fixed games) ---------- */
.strip--four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 560px) { .strip--four { grid-template-columns: repeat(2, 1fr); } .strip--four button:nth-child(2n) { border-right: 0; } .strip--four button:nth-child(-n+2) { border-bottom: 1px solid #ffffff12; } }
.menu-head { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 12px; }
.menu-head__art { flex: none; width: 77px; height: 96px; outline: 2px solid var(--wood-dark); box-shadow: 0 0 0 3px var(--wood), 0 0 0 5px var(--wood-dark); margin: 5px; background: #0f1a22; }
.menu-head__art canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.menu-head__text { flex: 1; min-width: 0; }
.menu-head__text p { margin: 0 0 6px; }
.menu-head__text .res__row { justify-content: flex-start; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.tours-note { margin: 0 0 12px; }
.lvl-row { margin: 0 0 14px; padding: 10px 12px 12px; background: #122029e6; border: 1px solid #0006; }
.lvl-row h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 700 12px/16px var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: var(--ink); }
.lvl-row .note { margin: -4px 0 8px; font-size: 11px; }
.lvl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.lvl { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 4px 2px; border: 2px solid #000; background: #1d3340; color: var(--ink); box-shadow: inset 0 -3px 0 #0f1e27, inset 0 2px 0 #2f4d5e; cursor: pointer; }
.lvl b { font: 700 16px/18px var(--pixel); }
.lvl small { font: 400 10px/12px var(--mono); color: #b9c6c9; min-height: 12px; display: inline-flex; align-items: center; }
.lvl:hover:not(.is-locked) { background: #25414f; }
.lvl.is-done { background: #2c4a2a; box-shadow: inset 0 -3px 0 #1a3018, inset 0 2px 0 #4a7a44; }
.lvl.is-done small { color: #cfeec5; }
.lvl.is-locked { opacity: 0.72; background: #1a242b; }
.lvl.is-locked small img { opacity: 0.9; }
.lvl:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.lvl-row--hard { border-color: #5a2a2a; }
.lvl-row--chef { border-color: #6a5420; }
.pack__lock--free { background: #9fd38a; color: #12300c; border-color: #12300c; }

/* ---------- Verdict fx (public/verdictfx.mjs): the rare card for Delicious (purple) and Chef's Kiss (gold) ----------
   --vp is one art pixel (2 or 3 CSS px, set by the module). The frame is hard-edged: a 1 art px light line inside the
   paper, the tier ring and a dark outline outside it; the glow, twinkles, pixel lettering and the burst are on the
   card's one canvas (.vfx__cv, pointer-events none). The sweep: one generated band (--vfx-sweep-head on the head,
   --vfx-sweep-body behind the text, both --vfx-sw wide) with the head's sh-sweep keyframes and timing, so a single
   light crosses the whole card; the paper band is lighter than the paper, so text contrast only goes up.
   .vfx--open: the card fits, so the canvas may reach past its edges. .vfx--still (reduced motion, fx level lite /
   off): sweeps park as a still highlight. */
.verdict.vfx { --vp: 2px; isolation: isolate; box-shadow: inset 0 0 0 var(--vp) var(--vfx-in), 0 0 0 var(--vp) var(--vfx-ring), 0 0 0 calc(var(--vp) * 2) var(--vfx-out), 0 calc(var(--vp) * 2 + 6px) 0 calc(var(--vp) * 2) #0006; }
.verdict.vfx--gold { --vfx-in: #ffe48a; --vfx-ring: #f6c445; --vfx-out: #5a3608; }
.verdict.vfx--purple { --vfx-in: #e2b0f8; --vfx-ring: #bc64e4; --vfx-out: #2e0f48; }
.verdict.vfx--open { overflow: visible; }
.verdict.vfx > :not(.vfx__cv) { position: relative; z-index: 1; }
.vfx__cv { position: absolute; z-index: 3; pointer-events: none; image-rendering: pixelated; }
.verdict.vfx::before { --sh-w: var(--vfx-sw); content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--vfx-sweep-body) no-repeat; background-size: var(--vfx-sw) auto; background-position: calc(var(--vfx-sw) * -1) 0; animation: sh-sweep var(--vfx-dur, 2.2s) var(--vfx-sweep-at, 0.8s) infinite backwards; }
.verdict.vfx .verdict__head.shine { --sh-img: var(--vfx-sweep-head); --sh-w: var(--vfx-sw); }
.verdict.vfx .verdict__head.shine.is-pop { animation: sh-sweep var(--vfx-dur, 2.2s) var(--vfx-sweep-at, 0.8s) infinite backwards; }
.vword.is-art { display: inline-block; flex: none; width: var(--vw); height: var(--vh); }
.vword.is-art .vl { display: none; }
.verdict.vfx--still::before, .verdict.vfx--still .verdict__head.shine.is-pop { animation: none; }
.verdict.vfx--still::before { background-position: 30% 0; }
.verdict.vfx--still .verdict__head.shine { background-position: 30% 0, 0 0 !important; }
@media (prefers-reduced-motion: reduce) { .verdict.vfx::before { animation: none !important; background-position: 30% 0; } }
/* Tournament (Survey says): rare chips land with their row in a few held frames (squash, overshoot, settle) and
   carry a 1 px light ring; your own row's chip also throws sparks (verdictfx.mjs chipFx). Reduced motion: no slam. */
.tv__tier.shine { box-shadow: 0 0 0 1px var(--sh-hi); }
.tv__rows.is-reveal .tv__tier.shine { animation: vfx-chip 0.36s calc(var(--d, 0s) + 0.12s) steps(1, end) both, var(--sh-kf) var(--sh-dur) calc(var(--d, 0s) + 0.5s) infinite backwards; }
@keyframes vfx-chip { 0% { transform: translateY(-8px) scale(1.7); opacity: 0; } 25% { transform: translateY(-3px) scale(1.3); opacity: 1; } 45% { transform: scale(1.3, 0.7); } 65% { transform: translateY(-1px) scale(0.88, 1.15); } 85% { transform: scale(1.05, 0.95); } 100% { transform: none; } }
.vfx__chip { position: absolute; left: 0; z-index: 2; pointer-events: none; image-rendering: pixelated; }
@media (prefers-reduced-motion: reduce) { .tv__rows.is-reveal .tv__tier.shine { animation: none !important; } }
/* Results and Review my game: the rare chips keep their small shine (sweep + twinkle) and get the card's light ring
   at 1 px, scaled down (no slam, no shake). */
.pip.shine, .rvt__head .rvt__name.shine, .rvw__num.shine { box-shadow: 0 0 0 1px color-mix(in srgb, var(--sh-hi) 70%, transparent); }
.rvw__num.shine[aria-current="step"] { box-shadow: inset 0 0 0 2px var(--ink-dark), 0 0 0 1px color-mix(in srgb, var(--sh-hi) 70%, transparent); }
