/* Hallmark · shape: play counter, one lit stage then the shelves · genre: playful · theme: custom · redesign: full · job: try · idea: "today's five puzzles are the page, played on the one lit stage" · vibe: "a dark room with one lit stage"
 * paper: oklch(17% 0.03 275) · accent: oklch(89% 0.18 95) · display: Unbounded · body: Figtree · hero: the stage beside a short head, today's five drawn live inside it · nav: edge-aligned, the lockup and two text links · footer: colophon, one line and the links · imagery: the product, puzzles drawn live by their own engines · signature: the first of today's five drawn live by its own engine on the glass stage
 * axes: night/unbounded/flash · posture: restrained · surface: absolute · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V3 · weakest: V, the stage beside a head is the locked DESIGN.md grid; varied it by drawing a live puzzle inside the stage and setting the shelves in big numerals */
/* Hallmark · waive 7b · ink and the primary pill are #FFFFFF on Night, contrast passes · DESIGN.md locks Blinked ink as pure white, the white pill is the brand's play button */
/* Hallmark · waive 78 · section heads at 20px under a 43px page head · DESIGN.md locks the headline role at 1.25rem so the puzzle stage stays the biggest thing on every screen */
/* Hallmark · waive 77 · the method band is one statement line and its two links, once on the page · a Blinked home is play first and short, the shelves above carry the mass */
/* Hallmark · waive 79 · the hero ends with the stage at y 497 at 1440, then the 120px section gap · the text column is centred on the stage, so the measured foot is the stage and not dead space */
/* Hallmark · waive 58 · /how-it-works/ and /brain/ run about 210 to 260 words a screen · Read pages carry full explanations and sourced claims, DESIGN.md Overview exempts them (owner rule 29 Nov 2026) */
/* Hallmark · dismissed 29 · the timer glow, the reveal ring and the winner glow are DESIGN.md's glow vocabulary, one glow idea per screen while a puzzle runs */
/* Hallmark · answered F20 · the shelf shows every puzzle in the chosen kind, so an odd count such as 37 leaves one on the last row */
/* Hallmark · dismissed 25 · the end screen lines are one sentence each, set under the puzzle score */
/* Hallmark · answered F6 · the example puzzle names under each kind are words, only the count beside them is a figure and it is tabular */
/* Hallmark · dropped sciH, What puzzles do for your brain and how sure anyone is, https://news-archive.exeter.ac.uk/2019/may/title_716265_en.html, https://www.hopkinsmedicine.org/news/newsroom/news-releases/2026/02/cognitive-speed-training-linked-to-lower-dementia-incidence-up-to-20-years-later, https://www.bath.ac.uk/announcements/digital-games-may-beat-mindfulness-apps-at-relieving-stress/, https://ftc.gov/news-events/press-releases/2016/01/lumosity-pay-2-million-settle-ftc-deceptive-advertising-charges · the brain claims, their sources and figures move whole to the /brain/ page in a later wave and stay in git until then */
/* Hallmark · dropped btnA, btnB ·DESIGN.md retires the console under the One Pane Rule; the A and B keys and the arrow keys still play */
/* Hallmark · dropped privacy/, terms/ · the same pages are now linked as /privacy/ and /terms/ from the shared footer */
/* Hallmark · reworded "113 quick puzzles in one console." to "Five puzzles. The same five for everyone." · the console is retired and the hero's job is today's Daily Five */

/* One token block for the whole site. It matches DESIGN.md; change that file first. */
@font-face{font-family:"Unbounded";font-weight:800;font-display:swap;src:url(fonts/unbounded-latin-800-normal.woff2) format("woff2")}
@font-face{font-family:"Figtree";font-weight:500;font-display:swap;src:url(fonts/figtree-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Figtree";font-weight:700;font-display:swap;src:url(fonts/figtree-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Figtree";font-weight:800;font-display:swap;src:url(fonts/figtree-latin-800-normal.woff2) format("woff2")}
:root{
  color-scheme:dark;
  --night:#0E1020; --night-glow-top:#23285A; --night-glow-bottom:#1A1D40; --panel:#2B2F55;
  --glass-top:rgba(255,255,255,.07); --glass-bottom:rgba(255,255,255,.02); --rule:rgba(255,255,255,.08);
  --ink:#FFFFFF; --ink-soft:#DDE0F0; --muted:#A9AECB;
  --flash:#FFD60A; --flash-light:#FFE766;
  --side-a:#FF5A4E; --side-a-light:#FFB0A8; --side-a-deep:#B52A20;
  --side-b:#3FA9FF; --side-b-light:#B9E1FF; --side-b-deep:#1460A8;
  --correct:#2EE6A6;
  --font-display:"Unbounded","Arial Black",system-ui,sans-serif;
  --font-body:"Figtree",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-mono:ui-monospace,Menlo,Consolas,monospace;
  --space-xs:4px; --space-sm:8px; --space-md:12px; --space-lg:16px; --space-xl:28px; --space-xxl:52px;
  --section-gap:clamp(64px,10vw,120px);
  --container:1060px;
  --radius-tile:10px; --radius-control:12px; --radius-card:14px; --radius-panel:24px; --radius-pill:999px;
  --shadow-panel:0 20px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
  --shadow-ball:0 9px 15px rgba(0,0,0,.45), inset -5px -7px 11px rgba(0,0,0,.35);
  --shadow-pill:0 10px 25px rgba(0,0,0,.4);
  --glow-timer:0 0 12px rgba(255,214,10,.7);
  --glow-reveal:0 0 0 5px rgba(255,214,10,.9), 0 0 30px rgba(255,214,10,.6);
  --glow-chip:0 0 30px rgba(255,214,10,.45);
  --glow-winner:0 0 0 3px rgba(46,230,166,.55), 0 0 40px rgba(46,230,166,.35);
  --glow-logo:0 0 20px rgba(255,214,10,.35);
  --grain:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --ease-out:cubic-bezier(.2,.7,.2,1); --ease-in-out:cubic-bezier(.65,0,.35,1);
  --dur-micro:150ms;
}

/* base */
*,*::before,*::after{box-sizing:border-box}
html,body{overflow-x:clip}
html{background:radial-gradient(120% 70% at 50% 0%,var(--night-glow-top) 0%,transparent 60%),radial-gradient(90% 60% at 50% 100%,var(--night-glow-bottom) 0%,transparent 70%),var(--night);background-attachment:fixed;scrollbar-color:var(--panel) var(--night)}
body{margin:0;min-height:100dvh;color:var(--ink);font-family:var(--font-body);font-weight:500;font-size:1rem;line-height:1.5;-webkit-font-smoothing:antialiased}
body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:var(--grain);background-size:220px;mix-blend-mode:overlay;opacity:.08}
[hidden]{display:none!important}
img,svg{display:block;max-width:100%}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-family:var(--font-display);font-weight:800;font-synthesis:none;overflow-wrap:break-word;min-width:0;text-wrap:balance}
h1{font-size:clamp(1.9rem,5vw,2.7rem);line-height:1.05;letter-spacing:-.03em}
h2{font-size:1.25rem;line-height:1.15;letter-spacing:-.02em}
p{text-wrap:pretty}
a{color:var(--ink);text-underline-offset:3px}
button{font-family:inherit}
::selection{background:var(--panel);color:var(--ink)}
:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
/* Script moves focus to the question and the end screen so keyboard play keeps its place; they are not controls, so no ring. */
#prompt:focus,#v-end:focus{outline:none}
.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;box-shadow:none}
.skip{position:absolute;top:var(--space-sm);left:max(var(--space-lg),env(safe-area-inset-left,0px));z-index:10}
.wrap{width:100%;max-width:var(--container);margin-inline:auto;padding-inline:max(var(--space-lg),env(safe-area-inset-left,0px)) max(var(--space-lg),env(safe-area-inset-right,0px))}
.num{font-variant-numeric:tabular-nums}

/* chrome */
.nav{display:flex;align-items:center;justify-content:space-between;gap:var(--space-lg);min-height:72px}
.nav nav{display:flex;gap:var(--space-xs)}
.nav nav a{display:inline-flex;align-items:center;min-height:44px;padding-inline:var(--space-sm);font-weight:700;font-size:.95rem;color:var(--ink-soft);text-decoration:none;white-space:nowrap;border-radius:var(--radius-pill);transition:background-color var(--dur-micro) var(--ease-out)}
.nav nav a:hover{background:var(--panel);color:var(--ink)}
.nav nav a[aria-current="page"]{color:var(--ink);text-decoration:underline}
.lockup{flex-shrink:0;display:inline-flex;align-items:center;gap:var(--space-sm);min-height:44px;font-family:var(--font-display);font-weight:800;font-size:1.125rem;letter-spacing:-.02em;color:var(--ink);text-decoration:none}
.logo{width:32px;height:32px;flex-shrink:0}
.logo-face{fill:var(--flash)} .logo-eye{fill:var(--night)}
.foot{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-sm) var(--space-lg);padding-block:var(--space-xl) var(--space-xxl);border-top:1px solid var(--rule);color:var(--muted);font-size:.85rem}
.foot span{margin-right:auto}
.foot a{color:var(--muted);white-space:nowrap;display:inline-flex;align-items:center;min-height:44px}
.foot a:hover{color:var(--ink)}

/* controls */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:var(--space-md) var(--space-xl);border:0;border-radius:var(--radius-pill);background:var(--ink);color:var(--night);font-family:var(--font-body);font-weight:800;font-size:.95rem;line-height:1.2;text-decoration:none;white-space:nowrap;cursor:pointer;box-shadow:var(--shadow-pill);transition:background-color var(--dur-micro) var(--ease-out),transform var(--dur-micro) var(--ease-out),filter var(--dur-micro) var(--ease-out)}
.btn:hover{background:var(--ink-soft)}
.btn:active{transform:translateY(1px)}
.btn:disabled{opacity:.55;cursor:not-allowed}
.btn.alt{background:var(--panel);color:var(--ink);box-shadow:none}
.btn.alt:hover{filter:brightness(1.15)}
.chip{display:inline-flex;align-items:center;padding:var(--space-xs) var(--space-md);border-radius:var(--radius-pill);background:var(--panel);color:var(--ink);font-weight:700;font-size:.8rem;line-height:1.3;white-space:nowrap;font-variant-numeric:tabular-nums}
.glass{background:linear-gradient(180deg,var(--glass-top),var(--glass-bottom)) var(--night);border:1.5px solid var(--rule);border-radius:var(--radius-panel);box-shadow:var(--shadow-panel)}

/* hero: the stage and its head (home, /play/, /arcade/) */
.hero{display:grid;grid-template-columns:minmax(0,460px) minmax(0,1fr);grid-template-areas:"stage text";gap:var(--space-xl) var(--space-xxl);align-items:center;padding-block:var(--space-lg) var(--space-xxl)}
:is([data-page="arcade"],[data-page="play"]) .hero{align-items:start}
@media (min-width:881px){:is([data-page="arcade"],[data-page="play"]) .hero-text{position:sticky;top:var(--space-xl)}}
[data-page="play"]:has(#v-game:not([hidden])) #start{visibility:hidden}
.hero-text{grid-area:text;display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-lg)}
.lede{color:var(--ink-soft);font-size:1.0625rem;max-width:40ch}
.hero-text .more{color:var(--ink-soft);font-weight:700}
.hero-text .more:hover{color:var(--ink)}

/* home: the shelves and the method */
.home .hero{padding-bottom:var(--section-gap)}
.kinds{display:flex;flex-direction:column;gap:var(--space-xl);padding-bottom:var(--section-gap)}
.kinds-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-lg)}
.kinds-grid a{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:var(--space-xs) var(--space-md);height:100%;padding:var(--space-xl);color:var(--ink);text-decoration:none;transition:border-color var(--dur-micro) var(--ease-out),transform var(--dur-micro) var(--ease-out)}
.kinds-grid a:hover{border-color:var(--muted)}
.kinds-grid a:active{transform:translateY(1px)}
.kinds-grid .num{grid-row:span 2;font-variant-numeric:tabular-nums;font-family:var(--font-display);font-weight:800;font-size:3.4rem;line-height:1;letter-spacing:-.04em}
.kinds-grid b{font-family:var(--font-display);font-weight:800;font-size:1.25rem;letter-spacing:-.02em}
.kinds-grid span:not(.num){color:var(--muted);font-size:.9rem}
.how{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:var(--space-xl) var(--space-xxl);padding-block:var(--space-xxl) var(--section-gap);border-top:1px solid var(--rule)}
.statement{font-family:var(--font-display);font-weight:800;font-size:clamp(1.35rem,2.6vw,1.75rem);line-height:1.15;letter-spacing:-.02em;max-width:26ch;text-wrap:balance}
.how .btns{display:flex;flex-wrap:wrap;gap:var(--space-sm)}

/* read pages: policies, 404, sign-in (a bare <main>) */
main:not([class]){max-width:calc(54ch + 2 * var(--space-lg));margin-inline:auto;padding:var(--space-xl) var(--space-lg) var(--space-xxl);font-size:1.0625rem;line-height:1.6}
main:not([class]) h1{margin-bottom:var(--space-sm)}
main:not([class]) h2{margin:var(--space-xl) 0 var(--space-sm)}
main:not([class]) p,main:not([class]) li{color:var(--ink-soft)}
main:not([class]) p + p{margin-top:var(--space-md)}
main:not([class]) ul{padding-left:1.2em;display:grid;gap:var(--space-sm)}
main:not([class]) footer{display:flex;flex-wrap:wrap;gap:var(--space-lg);margin-top:var(--space-xxl);padding-top:var(--space-lg);border-top:1px solid var(--rule);font-size:.85rem}
main:not([class]) footer a{color:var(--muted);min-height:24px;display:inline-flex;align-items:center}
main:not([class]) button{display:inline-flex;align-items:center;min-height:44px;padding:var(--space-md) var(--space-xl);border:0;border-radius:var(--radius-pill);background:var(--ink);color:var(--night);font-weight:800;font-size:.95rem;cursor:pointer;box-shadow:var(--shadow-pill);transition:background-color var(--dur-micro) var(--ease-out)}
main:not([class]) button:hover{background:var(--ink-soft)}
main:not([class]) button:active{transform:translateY(1px)}
main:not([class]) button:disabled{opacity:.55;cursor:not-allowed}
.top{display:inline-flex;align-items:center;gap:var(--space-sm);min-height:44px;margin-bottom:var(--space-xl);font-family:var(--font-display);font-weight:800;font-size:1.125rem;letter-spacing:-.02em;color:var(--ink);text-decoration:none}
.top img{width:32px;height:32px;border-radius:50%;box-shadow:var(--glow-logo)}
.meta{color:var(--muted);margin-bottom:var(--space-xl)}
.box{margin-block:var(--space-lg);padding:var(--space-lg);background:linear-gradient(180deg,var(--glass-top),var(--glass-bottom)) var(--night);border:1.5px solid var(--rule);border-radius:var(--radius-panel);box-shadow:var(--shadow-panel)}
.fill{color:var(--muted);outline:1.5px dashed var(--muted);outline-offset:2px;border-radius:var(--space-xs)}
code,.url{font-family:var(--font-mono);font-size:.92em;word-break:break-all}

/* the puzzle stage and every piece the engines draw */

/* the stage: one glass panel, never a frame around it */
.stage-panel{grid-area:stage;width:100%;max-width:480px;justify-self:center;display:flex;flex-direction:column;min-width:0}
.view{display:flex;flex-direction:column;gap:var(--space-md);padding:var(--space-lg);min-width:0}
#v-game{min-height:540px}
.row{display:flex;justify-content:space-between;align-items:center;gap:var(--space-sm);min-width:0}
.label{font-weight:700;font-size:.8rem;line-height:1.3;color:var(--muted)}

/* today's five (home), the daily row (arcade); the /play/ pages show only the shelf */
.today{display:flex;flex-direction:column;gap:var(--space-md)}
[data-page="home"] .browse,[data-page="play"] .today,[data-page="arcade"] .preview,[data-page="arcade"] .five{display:none}
.preview{display:flex;flex-direction:column;gap:var(--space-sm);max-height:270px;overflow:clip;cursor:pointer}
.preview .prompt{font-size:1.05rem}
.preview .stage{zoom:.82}
.preview .opts,.preview .diffs svg + svg{display:none}
.today .btn{width:100%}
.five{list-style:none;margin:0;padding:0;counter-reset:n;display:grid}
.five li{counter-increment:n;display:flex;align-items:baseline;gap:var(--space-sm);padding-block:var(--space-xs);border-top:1px solid var(--rule);font-size:.9rem;min-width:0}
.five li::before{content:counter(n);width:1.4em;flex-shrink:0;font-family:var(--font-display);font-weight:800;font-size:.8rem;color:var(--muted)}
.five a{flex:1;min-width:0;min-height:24px;font-weight:800;text-decoration:none}
.five a:hover{text-decoration:underline}
.five span{color:var(--muted);font-size:.8rem}
.note{color:var(--ink-soft)}

/* the shelf: categories and every puzzle (arcade, /play/) */
.browse{display:flex;flex-direction:column;gap:var(--space-md)}
.count{font-variant-numeric:tabular-nums;font-family:var(--font-display);font-weight:800;font-size:.95rem;letter-spacing:-.02em}
/* 6px of padding keeps the 5px focus ring inside the scroller, which would otherwise clip it. */
.cats{display:flex;gap:var(--space-sm);overflow-x:auto;padding:6px;margin-inline:-6px;scrollbar-width:thin}
.cat{flex:none;min-height:44px;padding:var(--space-sm) var(--space-lg);border:0;border-radius:var(--radius-pill);background:var(--panel);color:var(--ink);font-family:var(--font-body);font-weight:700;font-size:.8rem;cursor:pointer;transition:filter var(--dur-micro) var(--ease-out)}
.cat:hover{filter:brightness(1.15)}
.cat[aria-pressed="true"]{background:var(--ink);color:var(--night)}
.lib{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-sm);padding:var(--space-xs);align-content:start}
.cart{display:flex;flex-direction:column;gap:2px;min-width:0;min-height:54px;padding:var(--space-sm) var(--space-md);border:0;border-radius:var(--radius-control);background:var(--panel);color:var(--ink);text-align:left;cursor:pointer;transition:filter var(--dur-micro) var(--ease-out)}
.cart:hover{filter:brightness(1.15)}
.cart b{font-weight:800;font-size:.9rem;line-height:1.2}
.cart em{font-style:normal;font-weight:700;font-size:.78rem;color:var(--muted)}
.cart em.has{color:var(--ink)}

/* playing: HUD, timer, question, the puzzle */
.hud{display:flex;justify-content:space-between;gap:var(--space-sm);font-weight:700;font-size:.8rem;color:var(--muted);font-variant-numeric:tabular-nums}
.hud b{color:var(--ink)}
.bar{height:8px;border-radius:4px;background:var(--rule);overflow:hidden}
.bar i{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,var(--flash-light),var(--flash));box-shadow:var(--glow-timer);transform-origin:left}
.prompt{font-weight:800;font-size:1.15rem;line-height:1.2;min-height:1.5em;text-wrap:balance}
.prompt.good{color:var(--correct)}
.prompt.bad{color:var(--muted)}
.stage{flex:1;display:flex;align-items:center;justify-content:center;min-width:0}
.quiet{align-self:center}

.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-sm);width:100%;max-width:300px}
.grid.tight{gap:2px;max-width:330px}
.grid.two{max-width:230px}
.tile{aspect-ratio:1;border:0;padding:0;border-radius:var(--radius-tile);cursor:pointer;background:var(--panel);color:var(--ink);display:grid;place-items:center;min-width:0}
.tile.round{border-radius:50%}
.tile.leaf{border-radius:42% 12%}
.tile.lit{background:var(--flash);color:var(--night)}
.tile.glyph.lit{background:var(--panel);color:var(--ink);box-shadow:inset 0 0 0 3px var(--ink)}
.tile.decoy{background:var(--side-a);color:var(--night)}
.tile.reveal{box-shadow:var(--glow-reveal)}
.tile.glyph{font-weight:800;font-size:1.15rem}
.tile.done{opacity:.22}
.tile.emo{background:none;font-size:1.3rem;border-radius:var(--space-sm)}
.tile.card{font-size:1.5rem}
.tile.card.open{background:var(--night);color:var(--ink)}
.tile .dot{display:block;width:100%;height:100%;border-radius:50%;background:var(--ink)}
.tile .bar2{display:block;width:14%;height:66%;border-radius:4px;background:var(--ink)}
.grid.two .pad{opacity:.45}
.grid.two .pad.on{opacity:1;box-shadow:inset 0 0 0 4px var(--ink)}
.grid:not(.two) .pad.on{background:var(--flash);color:var(--night)}

/* Follow the Cup: the engine moves cups by left; arcade.js turns each move into a translate so only transform animates. */
.cups{position:relative;width:100%;max-width:340px;aspect-ratio:16/10;border-bottom:4px solid var(--panel)}
/* The cup shape is clipped on ::before, not on the button, so the focus ring is not clipped away. */
.cup{position:absolute;bottom:0;height:62%;border:0;padding:0;cursor:pointer;background:none;transition:transform 300ms var(--ease-out),translate var(--dur,400ms) var(--ease-in-out),filter var(--dur-micro) var(--ease-out);z-index:2}
.cup::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,var(--ink-soft),var(--muted));clip-path:polygon(18% 0,82% 0,100% 100%,0 100%)}
.cup:hover{filter:brightness(1.1)}
.cup.lift{transform:translateY(-58%)}
.ball{position:absolute;bottom:2%;width:10%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 32% 28%,var(--ink) 0 6%,var(--flash-light) 14%,var(--flash) 60%);box-shadow:var(--shadow-ball);z-index:1}

.diffs{display:flex;flex-direction:column;gap:var(--space-sm);width:100%}
.diffs svg{display:block;width:100%;height:auto;border-radius:var(--radius-tile)}
.diffs .hit{cursor:pointer}
.diffs.miss{animation:shake 250ms}
@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}

.duel,.quiz{display:flex;flex-direction:column;gap:var(--space-md);width:100%;align-items:center}
.sides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-sm);width:100%}
.side{position:relative;border:0;padding:0;border-radius:var(--radius-card);overflow:hidden;cursor:pointer;background:var(--panel);color:var(--ink);transition:filter var(--dur-micro) var(--ease-out)}
.side:hover{filter:brightness(1.12)}
.side svg{display:block;width:100%;height:auto}
.sides.txt .side{display:grid;place-items:center;min-height:104px;padding:40px var(--space-sm) var(--space-lg);font-weight:800;font-size:1.08rem;overflow-wrap:anywhere}
.side .tag{position:absolute;top:var(--space-sm);left:var(--space-sm);width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-family:var(--font-display);font-weight:800;font-size:.85rem;line-height:1;color:var(--night)}
.side.a .tag{background:var(--side-a)}
.side.b .tag{background:var(--side-b)}
.side .cnt{position:absolute;right:10px;top:10px;font-family:var(--font-display);font-weight:800;font-size:1.1rem;font-variant-numeric:tabular-nums}
.side.win{outline:3px solid var(--correct);outline-offset:-3px;box-shadow:var(--glow-winner)}
.show{font-family:var(--font-display);font-weight:800;font-size:1.9rem;line-height:1.2;letter-spacing:-.02em;text-align:center;min-height:60px;width:100%;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:var(--space-sm) var(--space-lg)}
.show.sm{font-family:var(--font-body);font-weight:700;font-size:1.08rem;line-height:1.4;letter-spacing:0}
.show.md{font-family:var(--font-body);font-size:1.3rem;line-height:1.35;letter-spacing:0}
.show.col{flex-direction:column;gap:var(--space-xs)}
.show.emo{font-family:var(--font-body);font-weight:500;font-size:1.7rem;line-height:1.4;letter-spacing:.06em}
.show.mono,.show .mono{font-family:var(--font-mono);font-size:1.5rem;letter-spacing:.16em}
.show .mono{display:block;width:100%}
.show svg.wide{width:100%;height:auto;background:var(--panel);border-radius:var(--radius-control)}
.show svg.mini{width:118px;height:118px}
.show svg.strip2{width:100%;max-width:300px;height:auto}
.show svg.poly{width:92px;height:92px}
.opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-sm);width:100%}
.opts.c1{grid-template-columns:minmax(0,1fr)}
.opts.c4{grid-template-columns:repeat(4,minmax(0,1fr))}
.opt{min-height:54px;border:0;border-radius:var(--radius-control);background:var(--panel);color:var(--ink);font-family:var(--font-body);font-weight:800;font-size:1.08rem;cursor:pointer;padding:var(--space-sm);display:grid;place-items:center;overflow-wrap:anywhere;transition:filter var(--dur-micro) var(--ease-out)}
.opt:hover{filter:brightness(1.15)}
.opt.right{outline:3px solid var(--correct);outline-offset:-3px}
.opt svg.poly{width:58px;height:58px}
.arrow{font-family:var(--font-body);font-weight:800;font-size:5rem;line-height:1;width:120px;height:120px;display:grid;place-items:center;border-radius:50%;border:5px solid transparent}
.arrow.flip{border-color:var(--ink)}
.react{width:100%;aspect-ratio:4/3;border:0;border-radius:var(--radius-card);background:var(--panel);color:var(--ink);font-family:var(--font-display);font-weight:800;font-size:1.3rem;cursor:pointer}
.react.go{background:var(--flash);color:var(--night)}
.react.no{background:var(--side-a);color:var(--night)}
.tile:active,.cart:active,.opt:active,.side:active,.cat:active,.react:active{transform:translateY(1px)}
.tile:hover{filter:brightness(1.12)}
.opt:disabled,.tile:disabled,.side:disabled,.cart:disabled,.cat:disabled,.react:disabled{opacity:.55;cursor:not-allowed}

/* play states: wrong pick, answer chip, timer */
/* A wrong pick dims and the prompt says so; there is no error colour (The No Error Red Rule). */
[data-pick="wrong"]{opacity:.4}
.hud .secs{min-width:6ch;text-align:right}
.answer-chip{align-self:flex-end;max-width:100%;padding:10px 18px;border-radius:var(--radius-pill);background:var(--flash);color:var(--night);font-weight:800;font-size:.95rem;line-height:1.2;text-wrap:balance;box-shadow:var(--shadow-pill),var(--glow-chip)}
/* The One Glow Rule: only the timer glows while a round plays; at the reveal the answer glows (ring, chip, winner outline) instead. */
#v-game:not([data-state="play"]) .bar i{box-shadow:none}
#v-game[data-state="reveal"] .ball{box-shadow:var(--shadow-ball),var(--glow-reveal)}

/* the end of a game */
.end{align-items:center;text-align:center;justify-content:center;min-height:540px}
.score{font-family:var(--font-display);font-weight:800;font-size:3.4rem;letter-spacing:-.04em;line-height:1;font-variant-numeric:tabular-nums}
.end p{max-width:36ch}
.end .why{color:var(--muted);font-size:.92rem}
.fact{display:flex;flex-direction:column;gap:var(--space-xs);max-width:40ch;padding:var(--space-md) var(--space-lg);border-radius:var(--radius-card);background:var(--panel);font-size:.9rem;text-align:left}
.fact b{font-weight:700;font-size:.8rem;color:var(--muted)}
.btns{display:flex;gap:var(--space-sm);flex-wrap:wrap;justify-content:center}

@media (max-width:460px){.view{padding:var(--space-md)}#v-game,.end{min-height:500px}}

@media (max-width:880px){
  .hero{grid-template-columns:minmax(0,1fr);grid-template-areas:"text" "stage";gap:var(--space-xl);padding-block:var(--space-sm) var(--space-xxl)}
  .kinds-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .how{grid-template-columns:minmax(0,1fr);align-items:start}
}
/* 320px phones: the lockup and both links only fit with tighter link padding, otherwise "blinked" runs into "Arcade". */
@media (max-width:374px){.nav{gap:var(--space-sm)}.nav nav a{padding-inline:var(--space-xs);font-size:.875rem}}
@media (max-width:520px){
  .nav{min-height:64px}
  .kinds-grid a{grid-template-columns:minmax(0,1fr);padding:var(--space-lg)}
  .kinds-grid .num{grid-row:auto;font-size:2.6rem}
}
/* Decorative motion stops; the puzzle's own motion (timer, cup shuffles, slow changes) is the game and only starts when the player presses play. */
@media (prefers-reduced-motion:reduce){
  *:not(.cup,#bar,#stage .tile),*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* how-it-works and brain pages */
/* /how-it-works/ leads with the ball-race rig in the stage's place; /brain/ is a head, the claims ledger and one glass aside. */
.read .hero{padding-bottom:var(--section-gap)}
@media (min-width:881px){[data-page="how-it-works"] .hero{grid-template-columns:minmax(0,600px) minmax(0,1fr)}}
.rig{grid-area:stage;width:100%;max-width:600px;justify-self:center;overflow:clip}
.rig iframe{display:block;width:100%;aspect-ratio:2/3;min-height:780px;border:0;background:var(--night)}
/* With script on, the iframe is widened past the figure page's 16px side margins and cropped to the figure. */
/* With script on, start near the cropped figure's height (564px at 288px wide, 622px at 600px) so the text below barely moves. */
/* The uncropped figure stays hidden until the crop lands, so it never jumps (CLS). */
@media (scripting:enabled){.rig:not(.fit){height:calc(510px + .186 * min(600px, 100vw - 32px))}.rig:not(.fit) iframe{visibility:hidden}}
.rig.fit iframe{width:calc(100% + 2 * var(--space-lg));max-width:none;min-height:0;aspect-ratio:auto;margin-inline:calc(-1 * var(--space-lg))}
.prose{display:grid;gap:var(--space-xl);padding-bottom:var(--section-gap)}
.prose > div{display:grid;gap:var(--space-sm);max-width:62ch}
/* Focus inside the figure never matches :focus-within out here, so the page script sets .focused for the ring. */
.rig.focused{outline:3px solid var(--ink);outline-offset:2px}
.prose p,.claims p,.never p{color:var(--ink-soft);font-size:1.0625rem;line-height:1.6}
.read-head{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-lg);padding-block:var(--space-lg) var(--space-xxl)}
.claims{list-style:none;margin-block:0;padding-block:0 var(--space-xxl);display:grid}
.claims li{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:var(--space-sm) var(--space-xxl);padding-block:var(--space-xl);border-top:1px solid var(--rule)}
.claims h2{grid-row:span 2}
.claims p{max-width:62ch}
.claims .src{font-size:.85rem;line-height:1.5;color:var(--muted)}
.claims .src a{color:var(--muted)}
.claims .src a:hover{color:var(--ink)}
.never{max-width:62ch;padding:var(--space-xl);margin-bottom:var(--section-gap)}
@media (max-width:880px){.claims li{grid-template-columns:minmax(0,1fr)}.claims h2{grid-row:auto}}
