/* made from content/tokens.json (the games' design values); do not edit here */
:root {
  --ink: #1B1A22; --paper: #FFFDF8; --lip: #E3DCCD; --canvas: #F4F0E8; --mist: #DCD6CB; --slate: #66627A; --muted: #55516A;
  --tomato: #FF5A3C; --tomato-s: #D93A2B; --tomato-l: #FFD9CF; --tomato-w: #FFEDE5;
  --sun: #FFC933; --sun-s: #F09A1A; --sun-l: #FFF2CD; --sun-w: #FFF8E4;
  --mint: #2FCB7A; --mint-s: #1E9E6A; --mint-l: #D1F2DC; --mint-w: #EAF8EB;
  --sky: #33B5F0; --sky-s: #1F86D1; --sky-l: #D2EDF6; --sky-w: #EBF6F7;
  --grape: #8C5CF0; --grape-s: #6A3BD1; --grape-l: #E6DAF6; --grape-w: #F3EDF7;
  --gum: #FF5FA8; --gum-s: #E03C8C; --gum-l: #FFDAE6; --gum-w: #FFEDF0;
  --tilt: -3deg;
}
/* Chunkle website. Ink Pop on the web (03_Design_System/Chunkle_Design_System.md):
   calm paper pages, ink outlines, one hard cel shadow, sticker headings; each game keeps its set colour.
   Layout: a 1200px column; game cards in a grid; the hero pairs the thesis with a playable Chunkle board.
   Ink Pop has no dark mode (D-054), so the site commits to its light look and sets every colour itself. */
:root {
  /* colours (--ink, --paper, --sun, --sun-s …) and --tilt come from the games' design values: build.mjs adds them
     from content/tokens.json. Change them in 07_Tech/Ink_Pop_Kit/src/kit/tokens.ts, never here. */
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --text: 'Atkinson Next', 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
  --line: 3px; --drop: 0 6px 0 var(--ink); --r: 18px; --r-s: 12px;
  --wrap: 1200px; --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@font-face { font-family: 'Atkinson Next'; src: url(fonts/atk-latin.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2190-2193,U+2212; }
@font-face { font-family: 'Atkinson Next'; src: url(fonts/atk-latin-ext.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0; }
@font-face { font-family: 'Unbounded'; src: url(fonts/unb-latin.woff2) format('woff2'); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2190-2193,U+2212; }
@font-face { font-family: 'Unbounded'; src: url(fonts/unb-latin-ext.woff2) format('woff2'); font-weight: 200 900; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+1E00-1E9F,U+1EF2-1EFF; }
@font-face { font-family: 'Unbounded'; src: url(fonts/unb-vietnamese.woff2) format('woff2'); font-weight: 200 900; font-display: swap; unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 500 1.0625rem/1.55 var(--text); }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 4px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font: 800 0.78rem/1 var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 38ch; }
.dots { background-image: radial-gradient(var(--dot, rgba(27,26,34,.07)) 1.6px, transparent 1.8px); background-size: 18px 18px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- sticker text: white with an ink outline and a hard drop (the JSR sticker) */
.sticker { color: #fff; font-family: var(--display); font-weight: 900; -webkit-text-stroke: 0; paint-order: stroke fill;
  text-shadow: 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink), 2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink), 0 6px 0 var(--ink), 2px 6px 0 var(--ink), -2px 6px 0 var(--ink); }

/* ---------- the slanted game banner (logo and game names) */
.banner { display: inline-block; transform: rotate(var(--tilt, -3deg)); background: var(--c, var(--sun)); border: var(--line) solid var(--ink); border-radius: 14px;
  box-shadow: inset 0 -6px 0 var(--cs, var(--sun-s)), 0 5px 0 var(--ink); padding: 0.32em 0.6em 0.42em; line-height: 1; white-space: nowrap; }
.banner .sticker { font-size: inherit; }
/* the names as shapes (build.mjs sticker()): sized in em, so they follow the banner's font-size */
.banner:has(.logo-svg) { padding: 0.24em 0.5em 0.2em; }
.logo-svg { display: block; overflow: visible; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- buttons: pop fill, ink line, a lip that sinks when pressed */
.btn { --c: var(--sun); --cs: var(--sun-s); display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 52px; padding: 0.55em 1.25em 0.7em;
  font: 900 1rem/1 var(--display); text-decoration: none; color: var(--ink); background: var(--c); border: var(--line) solid var(--ink); border-radius: 14px; cursor: pointer;
  box-shadow: inset 0 -5px 0 var(--cs), 0 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 -5px 0 var(--cs), 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 -2px 0 var(--cs), 0 1px 0 var(--ink); }
.btn.big { min-height: 64px; font-size: 1.15rem; padding-inline: 1.6em; }
.btn.ghost { --c: var(--paper); --cs: var(--lip); }
.btn.sky { --c: var(--sky); --cs: var(--sky-s); color: #fff; } .btn.sky span, .btn.mint span, .btn.gum span { color: #fff; }
.btn.mint { --c: var(--mint); --cs: var(--mint-s); color: #fff; }
.btn[aria-disabled="true"], .btn:disabled { --c: var(--mist); --cs: #C9C2B5; color: var(--slate); cursor: default; transform: none; box-shadow: inset 0 -4px 0 var(--cs), 0 3px 0 var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 0.4em; font: 800 0.85rem/1 var(--text); padding: 0.42em 0.8em; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--paper); white-space: nowrap; }
.pill.ink { background: var(--ink); color: var(--paper); }
.pill.lvl { font-family: var(--display); font-weight: 900; font-size: 0.78rem; background: var(--c, var(--sun-l)); }

/* ---------- header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(8px); border-bottom: var(--line) solid var(--ink); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { text-decoration: none; font-size: 1.45rem; flex: none; }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { font-weight: 800; text-decoration: none; padding: 0.5em 0.8em; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper); box-shadow: 0 0 0 2.5px var(--ink); }
.nav .btn { margin-left: 8px; min-height: 46px; font-size: 0.92rem; }
.menu-btn { display: none; margin-left: auto; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--canvas); border-bottom: var(--line) solid var(--ink); flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; }
}
.beta { font: 900 0.7rem/1 var(--display); letter-spacing: .06em; background: var(--ink); color: var(--sun); padding: 5px 8px; border-radius: 8px; transform: rotate(3deg); }

/* ---------- sections */
section { padding-block: clamp(56px, 8vw, 104px); }
.sec-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.sec-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.band { border-block: var(--line) solid var(--ink); }

/* ---------- hero */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px); --dot: rgba(240,154,26,.18); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); font-weight: 900; }
.hero h1 .hl { background: linear-gradient(transparent 58%, var(--sun) 58%, var(--sun) 90%, transparent 90%); padding-inline: 0.05em; }
.hero .copy { display: grid; gap: 24px; min-width: 0; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .facts { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- the try-it board (a small playable Chunkle) */
.board { background: var(--cw, var(--sun-w)); border: var(--line) solid var(--ink); border-radius: 26px; box-shadow: var(--drop); padding: clamp(16px, 3vw, 28px); display: grid; gap: 16px; min-width: 0; position: relative; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.board-head .banner { font-size: 1.05rem; }
.sentence { background: var(--paper); border: var(--line) solid var(--ink); border-radius: var(--r); box-shadow: 0 4px 0 var(--lip), 0 4px 0 2px var(--ink); padding: 16px 18px; font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 700; line-height: 1.6; }
.sentence .gap { display: inline-flex; gap: 6px; vertical-align: middle; flex-wrap: wrap; }
.sentence .slot { display: inline-block; min-width: 3.2em; border-bottom: 3px solid var(--ink); text-align: center; line-height: 1.25; padding: 0 4px; color: var(--sun-s); font-weight: 800; }
.sentence .slot.done { color: var(--mint-s); }
.rows { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
.tile { position: relative; min-height: 50px; display: grid; place-items: center; text-align: center; padding: 6px 8px; font-weight: 800; font-size: clamp(0.9rem, 2.2vw, 1.08rem); line-height: 1.1;
  background: var(--paper); border: var(--line) solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--lip), 0 4px 0 2px var(--ink); overflow-wrap: anywhere; }
.tile.empty { background: transparent; box-shadow: none; border-style: dashed; border-color: rgba(27,26,34,.25); }
.tile.cur { border-color: var(--ink); border-style: solid; background: var(--paper); }
.tile .b { position: absolute; top: -9px; right: -7px; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--ink); display: grid; place-items: center; font: 900 0.7rem/1 var(--text); background: var(--paper); color: var(--ink); }
.tile.g { background: var(--mint); color: #fff; box-shadow: 0 4px 0 var(--mint-s), 0 4px 0 2px var(--ink); }
.tile.y { background: var(--sun); box-shadow: 0 4px 0 var(--sun-s), 0 4px 0 2px var(--ink); }
.tile.x { background: var(--slate); color: #fff; box-shadow: 0 4px 0 #4A4759, 0 4px 0 2px var(--ink); }
.tile.flip { animation: flip .42s ease-in-out both; }
@keyframes flip { 0% { transform: rotateX(0) } 50% { transform: rotateX(90deg) } 100% { transform: rotateX(0) } }
.tile.pop { animation: pop .18s ease-out; }
@keyframes pop { 0% { transform: scale(.85) } 70% { transform: scale(1.08) } 100% { transform: scale(1) } }
.bank { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 800 1rem/1 var(--text); padding: 0.62em 0.9em 0.72em; border: var(--line) solid var(--ink); border-radius: 12px; background: var(--paper); cursor: pointer; box-shadow: 0 4px 0 var(--lip), 0 4px 0 2px var(--ink); transition: transform .1s; min-height: 44px; }
.chip:hover { transform: translateY(-2px); }
.chip:active { transform: translateY(2px); }
.chip.g { background: var(--mint-l); } .chip.y { background: var(--sun-l); } .chip.x { background: var(--mist); color: var(--slate); }
.chip.in { outline: 3px solid var(--sky); outline-offset: 2px; }
.board-foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; }
.board-foot .btns { display: flex; gap: 10px; }
.board-foot .btn { min-height: 48px; font-size: 0.95rem; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.legend i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--ink); font: 900 0.62rem/1 var(--text); font-style: normal; margin-right: 5px; vertical-align: -3px; color: #fff; }
.solved { background: var(--paper); border: var(--line) solid var(--ink); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 8px; }
.solved b { font-family: var(--display); font-size: 1.25rem; }
.solved .note { color: var(--muted); }

/* ---------- try a game (19 Oct): a row of game logos over one small playable board */
.demos { display: grid; gap: 14px; min-width: 0; }
.demo-inner { display: grid; gap: 16px; min-width: 0; }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 6px 2px 8px; }
.demo-tab { flex: none; border: 0; background: none; padding: 2px; cursor: pointer; font-size: 0.82rem; border-radius: 14px; transition: transform .15s, filter .15s, opacity .15s; }
.demo-tab .banner { transform: none; box-shadow: inset 0 -5px 0 var(--cs), 0 3px 0 var(--ink); }
.demo-tab[aria-selected="false"] { filter: saturate(.55); opacity: .78; }
.demo-tab[aria-selected="false"]:hover { filter: none; opacity: 1; transform: translateY(-2px); }
.demo-tab[aria-selected="true"] .banner { transform: rotate(var(--tilt, -3deg)) scale(1.06); }
.board-head { justify-content: flex-end; }
.legend.key { justify-content: center; }
#try-row:empty { display: none; }
#try-row { justify-content: center; font-family: var(--display); font-size: 1rem; color: var(--ink); }
/* white words on a coloured button get an ink outline so they read on light colours (19 Oct) */
.btn.sky, .btn.mint, .btn.gum, .demo .tile.on, .tile.g, .tile.x { text-shadow: -1.5px -1.5px 0 var(--ink), 1.5px -1.5px 0 var(--ink), -1.5px 1.5px 0 var(--ink), 1.5px 1.5px 0 var(--ink), 0 2.5px 0 var(--ink); }
.demo-link { font-weight: 800; font-size: 0.95rem; color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--c, var(--sun)); }
.demo-link.soon { color: var(--muted); border-bottom: 0; font-weight: 700; font-size: 0.88rem; }
.demo-body { display: grid; gap: 14px; min-width: 0; }
.demo-q { font-weight: 700; font-size: clamp(1.02rem, 2.2vw, 1.2rem); line-height: 1.45; }
.demo-q b { font-family: var(--display); font-weight: 900; }
.demo-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.demo-row .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.demo-msg { font-weight: 700; color: var(--muted); min-height: 1.5em; }
.demo-msg.good { color: var(--mint-s); } .demo-msg.bad { color: var(--tomato-s); }
.demo .btn { min-height: 48px; font-size: 0.95rem; }
.demo .tile.tap { cursor: pointer; transition: transform .1s; }
.demo .tile.tap:hover { transform: translateY(-2px); }
.demo .tile.on { background: var(--c); color: #fff; box-shadow: 0 4px 0 var(--cs), 0 4px 0 2px var(--ink); }
.shake { animation: shake .36s ease-in-out; }
@keyframes shake { 20%, 60% { transform: translateX(-6px) } 40%, 80% { transform: translateX(6px) } }
/* Clink: the wall */
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.wall .tile { min-height: 54px; font-size: clamp(0.74rem, 1.9vw, 1rem); overflow-wrap: normal; word-break: normal; hyphens: auto; padding: 4px 3px; }
.found { grid-column: 1 / -1; display: grid; gap: 2px; text-align: center; padding: 8px 10px; border: var(--line) solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 2px var(--ink); color: #fff; animation: pop .25s ease-out; }
.found b { font-family: var(--display); font-weight: 900; font-size: 0.98rem; } .found span { font-weight: 700; font-size: 0.9rem; }
.lives { display: flex; gap: 6px; align-items: center; font-weight: 800; font-size: 0.9rem; color: var(--muted); }
.lives i { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--c); }
.lives i.gone { background: transparent; border-color: rgba(27,26,34,.25); }
/* Top Three: the survey board */
.survey { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ans { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px; border: var(--line) solid var(--ink); border-radius: 12px; background: var(--sky); color: #fff; font-weight: 800; box-shadow: 0 4px 0 var(--sky-s), 0 4px 0 2px var(--ink); perspective: 400px; }
.ans .n { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); font: 900 0.85rem/1 var(--display); }
.ans .w { flex: 1; min-width: 0; overflow-wrap: anywhere; } .ans .pts { font: 900 1rem/1 var(--display); }
.ans.open { background: var(--paper); color: var(--ink); box-shadow: 0 4px 0 var(--lip), 0 4px 0 2px var(--ink); animation: flip .42s ease-in-out both; }
.ans.hit { background: var(--sun); color: var(--ink); box-shadow: 0 4px 0 var(--sun-s), 0 4px 0 2px var(--ink); }
.guesses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.guesses input, .demo input.word { width: 100%; min-width: 0; min-height: 50px; font: 800 1.05rem/1 var(--text); padding: 0 12px; border: var(--line) solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); }
.guesses input:focus, .demo input.word:focus { outline: 3px solid var(--c); outline-offset: 2px; }
.score-big { font: 900 1.4rem/1 var(--display); }
/* Stress Pulse: tap the beats */
.line { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; padding: 18px 12px; background: var(--paper); border: var(--line) solid var(--ink); border-radius: var(--r); box-shadow: 0 4px 0 var(--lip), 0 4px 0 2px var(--ink); }
.line .wd { display: flex; gap: 3px; }
.syl { position: relative; font: 800 clamp(1.05rem, 2.5vw, 1.4rem)/1 var(--text); padding: 22px 8px 10px; border-radius: 10px; border: 2.5px dashed rgba(27,26,34,.22); background: transparent; color: var(--ink); cursor: pointer; }
.syl::before { content: ''; position: absolute; top: 6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2.5px solid rgba(27,26,34,.25); }
.syl.on { border-style: solid; border-color: var(--ink); background: var(--gum-l); }
.syl.on::before { background: var(--gum); border-color: var(--ink); }
.syl.ok { background: var(--mint-l); border-color: var(--ink); border-style: solid; } .syl.ok::before { background: var(--mint); border-color: var(--ink); }
.syl.miss { background: var(--sun-l); border-style: solid; border-color: var(--ink); } .syl.miss::before { background: var(--sun); border-color: var(--ink); }
.syl.wrong { background: var(--mist); text-decoration: line-through; } .syl.wrong::before { border-color: var(--slate); }
.syl.big { transform: scale(1.18); transition: transform .08s; }
/* Treasure Dash: stones to the treasure */
.river { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; padding: 14px 10px; background: var(--sky-l); border: var(--line) solid var(--ink); border-radius: var(--r); scrollbar-width: thin; }
.stone { flex: none; padding: 9px 12px; border-radius: 999px; border: var(--line) solid var(--ink); background: var(--paper); font-weight: 800; box-shadow: 0 4px 0 var(--lip), 0 4px 0 2px var(--ink); animation: pop .2s ease-out; }
.stone.empty { background: transparent; border-style: dashed; border-color: rgba(27,26,34,.3); box-shadow: none; min-width: 46px; min-height: 42px; }
.stone.start { background: var(--mint); color: #fff; } .stone.gold { background: var(--sun); }
.river .arrow { color: var(--slate); font-weight: 900; flex: none; }
.chest { flex: none; font-size: 1.7rem; line-height: 1; filter: grayscale(.6); } .chest.open { filter: none; animation: pop .3s ease-out; }
.needs { display: inline-grid; place-items: center; min-width: 2.1em; height: 2.1em; padding: 0 .3em; border-radius: 10px; background: var(--ink); color: var(--sun); font: 900 1.05rem/1 var(--display); vertical-align: middle; }
.demo form { display: flex; gap: 10px; } .demo form input { flex: 1; }
/* The Impostor: the grid and the clues */
.igrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.igrid span { text-align: center; padding: 8px 4px; border: 2.5px solid var(--ink); border-radius: 10px; background: var(--paper); font-weight: 800; font-size: clamp(0.78rem, 1.8vw, 0.95rem); overflow-wrap: anywhere; }
.igrid span.secret { background: var(--grape); color: #fff; }
.clues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.clue { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 12px; border: var(--line) solid var(--ink); border-radius: 14px; background: var(--paper); box-shadow: 0 4px 0 var(--lip), 0 4px 0 2px var(--ink); cursor: pointer; font: inherit; color: var(--ink); }
.clue:hover { transform: translateY(-2px); }
.clue .who { display: grid; } .clue .who small { font-weight: 700; color: var(--muted); } .clue .who b { font-family: var(--display); font-size: 1.05rem; }
.clue .dot { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--c); display: grid; place-items: center; font-size: 1.1rem; }
.clue.caught { background: var(--grape-l); } .clue.safe { opacity: .55; } .clue[disabled] { cursor: default; transform: none; }
@media (max-width: 520px) { .survey, .clues { grid-template-columns: minmax(0, 1fr); } .wall { gap: 6px; } .wall .tile { padding: 4px; } }

/* ---------- game cards (NYT-style: one colour per game) */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 28px; }
.gcard { --c: var(--sun); --cs: var(--sun-s); --cw: var(--sun-w); position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; padding: 26px 24px 24px; text-decoration: none;
  background: var(--cw); border: var(--line) solid var(--ink); border-radius: 24px; box-shadow: var(--drop); min-width: 0; transition: transform .15s, box-shadow .15s; --dot: color-mix(in srgb, var(--c) 22%, transparent); }
a.gcard:hover { transform: translateY(-4px); box-shadow: 0 10px 0 var(--ink); }
.gcard .banner { font-size: clamp(1.25rem, 2.6vw, 1.55rem); justify-self: start; }
.gcard .body { display: grid; gap: 10px; align-content: start; }
.gcard .teaches { font-weight: 800; }
.gcard .pitch { color: var(--muted); }
.gcard .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.gcard.soon { --cw: var(--paper); }
.gcard.soon .banner { filter: saturate(.85); }
.soon-tag { font: 900 0.72rem/1 var(--display); letter-spacing: .05em; text-transform: uppercase; padding: 6px 9px; border: 2.5px dashed var(--ink); border-radius: 8px; color: var(--muted); }
.set-sun { --c: var(--sun); --cs: var(--sun-s); --cl: var(--sun-l); --cw: var(--sun-w); }
.set-sky { --c: var(--sky); --cs: var(--sky-s); --cl: var(--sky-l); --cw: var(--sky-w); }
.set-tomato { --c: var(--tomato); --cs: var(--tomato-s); --cl: var(--tomato-l); --cw: var(--tomato-w); }
.set-grape { --c: var(--grape); --cs: var(--grape-s); --cl: var(--grape-l); --cw: var(--grape-w); }
.set-gum { --c: var(--gum); --cs: var(--gum-s); --cl: var(--gum-l); --cw: var(--gum-w); }
.set-mint { --c: var(--mint); --cs: var(--mint-s); --cl: var(--mint-l); --cw: var(--mint-w); }
.gcard.soon.set-sun, .gcard.soon.set-sky, .gcard.soon.set-tomato, .gcard.soon.set-grape, .gcard.soon.set-gum, .gcard.soon.set-mint { --cw: var(--paper); }

/* ---------- steps (how a lesson runs) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.step { background: var(--paper); border: var(--line) solid var(--ink); border-radius: 22px; padding: 26px 24px; display: grid; gap: 12px; align-content: start; box-shadow: var(--drop); min-width: 0; }
.step .num { font: 900 2.4rem/1 var(--display); }
.step h3 { font-size: 1.3rem; }
.step p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.clock { font: 900 0.8rem/1 var(--display); background: var(--ink); color: var(--paper); padding: 6px 9px; border-radius: 8px; justify-self: start; }

/* ---------- reasons */
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: var(--line) solid var(--ink); border-radius: 24px; overflow: hidden; background: var(--paper); box-shadow: var(--drop); }
.reason { padding: 30px 28px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.reason:nth-child(odd) { border-right: var(--line) solid var(--ink); }
.reason:nth-child(-n+2) { border-bottom: var(--line) solid var(--ink); }
.reason h3 { font-size: 1.25rem; }
.reason p { color: var(--muted); }
.reason .ex { font-weight: 800; color: var(--ink); }
.reason .ex s { color: var(--tomato-s); text-decoration-thickness: 3px; }
@media (max-width: 760px) { .reasons { grid-template-columns: minmax(0, 1fr); } .reason:nth-child(odd) { border-right: 0; } .reason:not(:last-child) { border-bottom: var(--line) solid var(--ink); } }

/* ---------- CTA band */
.cta-band { background: var(--ink); color: var(--paper); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--paper); }
.cta-band p { color: #CFC9DD; margin-top: 10px; }

/* ---------- footer */
footer { padding-block: 48px 40px; border-top: var(--line) solid var(--ink); }
footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; }
footer h4 { margin: 0 0 10px; font: 900 0.8rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer a { text-decoration: none; color: var(--muted); font-weight: 700; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer .small { color: var(--muted); font-size: 0.9rem; margin-top: 12px; max-width: 34ch; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr 1fr; } footer .wrap > :first-child { grid-column: 1 / -1; } }

/* ---------- page heads */
.phead { padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 44px); border-bottom: var(--line) solid var(--ink); }
.phead h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.phead .wrap { display: grid; gap: 16px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { font: 800 0.95rem/1 var(--text); padding: 0.6em 1em; border: 2.5px solid var(--ink); background: var(--paper); border-radius: 999px; cursor: pointer; min-height: 42px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- game page */
.ghero { background: var(--cw); border-bottom: var(--line) solid var(--ink); padding-block: clamp(40px, 6vw, 80px); --dot: color-mix(in srgb, var(--c) 26%, transparent); }
.ghero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.ghero .banner { font-size: clamp(2.4rem, 6vw, 4.2rem); justify-self: start; }
.ghero .copy { display: grid; gap: 22px; min-width: 0; }
.ghero .lead { color: var(--ink); font-weight: 700; max-width: 30ch; font-size: 1.35rem; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; background: var(--paper); border: var(--line) solid var(--ink); border-radius: 22px; box-shadow: var(--drop); overflow: hidden; }
.spec { padding: 18px 20px; display: grid; gap: 4px; min-width: 0; }
.spec:nth-child(odd) { border-right: var(--line) solid var(--ink); }
.spec:nth-child(-n+2) { border-bottom: var(--line) solid var(--ink); }
.spec b { font: 900 1.3rem/1.15 var(--display); }
@media (max-width: 860px) { .ghero .wrap { grid-template-columns: minmax(0, 1fr); } }
.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .how { grid-template-columns: minmax(0, 1fr); } }
.how .step .num { color: var(--c); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.pack { background: var(--paper); border: var(--line) solid var(--ink); border-radius: 22px; box-shadow: var(--drop); padding: 22px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.pack-top { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pack h3 { font-size: 1.2rem; }
.pack p { color: var(--muted); }
.samples { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.samples li { background: var(--canvas); border-radius: 10px; padding: 8px 12px; font-size: 0.95rem; }
.samples b { background: var(--cl, var(--sun-l)); padding: 0 4px; border-radius: 4px; }
.pack-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.count { font: 900 0.9rem/1 var(--display); font-variant-numeric: tabular-nums; }
.two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--paper); border: var(--line) solid var(--ink); border-radius: 22px; padding: 26px; box-shadow: var(--drop); display: grid; gap: 14px; min-width: 0; }
.card h3 { font-size: 1.25rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 34px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 0.05em; width: 24px; height: 24px; border-radius: 7px; border: 2.5px solid var(--ink); background: var(--mint); color: #fff; display: grid; place-items: center; font: 900 0.8rem/1 var(--text); }
.keys { display: grid; gap: 8px; }
.keys div { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
kbd { font: 800 0.85rem/1 var(--text); padding: 0.4em 0.6em; border: 2.5px solid var(--ink); border-radius: 8px; background: var(--paper); box-shadow: 0 3px 0 var(--ink); white-space: nowrap; }

/* ---------- pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 920px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { background: var(--paper); border: var(--line) solid var(--ink); border-radius: 24px; padding: 28px 24px; display: grid; gap: 16px; box-shadow: var(--drop); min-width: 0; }
.plan.feature { background: var(--sun-w); }
.plan .price { font: 900 2rem/1 var(--display); }
.plan .price small { font: 700 0.95rem/1 var(--text); color: var(--muted); }

/* ---------- prose pages */
.prose { max-width: 68ch; display: grid; gap: 18px; }
.prose h2 { font-size: 1.6rem; margin-top: 18px; }
.prose p { color: #34313F; }
.quote { font: 800 clamp(1.3rem, 3vw, 1.8rem)/1.3 var(--display); max-width: 30ch; }
.notfound { text-align: left; display: grid; gap: 20px; padding-block: 80px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- the pack library (D-205) and My stuff (D-206) */
.libbar { display: grid; gap: 12px; margin-top: 22px; }
.libbar .search { display: flex; align-items: center; gap: 10px; max-width: 560px; background: var(--paper); border: var(--line) solid var(--ink); border-radius: 16px; padding: 4px 14px; box-shadow: 0 4px 0 var(--ink); }
.libbar .search span { font: 900 1.4rem/1 var(--display); }
.libbar input[type=search] { flex: 1; min-width: 0; border: 0; background: transparent; font: 800 1.05rem/1 var(--text); padding: 12px 0; color: var(--ink); outline: none; }
.tagpick summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: 800 0.95rem/1 var(--text); padding: 0.6em 1em; border: 2.5px dashed var(--ink); border-radius: 999px; min-height: 42px; list-style: none; }
.tagpick summary::-webkit-details-marker { display: none; }
.tagpick summary::after { content: '▾'; }
.tagpick[open] summary::after { content: '▴'; }
.tagpick .filters { margin-top: 10px; }
.libcount { font: 900 1.05rem/1.2 var(--display); margin: 0 0 18px; }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font: 800 0.8rem/1 var(--text); padding: 5px 9px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); }
.pack.song .samples li { font-style: italic; }
.pack.make { background: var(--sun-w); border-style: dashed; }
.pack.make i { background: var(--paper); padding: 0 4px; border-radius: 4px; font-style: normal; }
.pack .pack-foot .btn { white-space: nowrap; }
.mine-group { margin-bottom: 40px; }
.mine-group h2 { font-size: 1.6rem; margin-bottom: 16px; }
.mine-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; background: var(--paper); border: var(--line) solid var(--ink); border-radius: 18px; padding: 16px 20px; margin-bottom: 12px; box-shadow: var(--drop); }
.mine-row h3 { font-size: 1.15rem; }
.mine-row .small { color: var(--muted); }
.mine-row .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mine-row .btn.red { color: var(--tomato-s); }
@media (max-width: 620px) { .mine-row { grid-template-columns: minmax(0, 1fr); } .mine-row .acts { justify-content: flex-start; } }
.small { font-size: 0.9rem; }

/* ---------- the clean front door: Chunkle Daily (19 Oct). Its own small token set: white, black, flat tiles, no stickers. */
.clean-body { --c-bg: #FFFFFF; --c-ink: #121213; --c-line: #D3D6DA; --c-mute: #6B6F76; --c-g: #3E9A5C; --c-y: #C9A227; --c-x: #787C7E; --c-key: #E9EAEC;
  background: var(--c-bg); color: var(--c-ink); font-family: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif; margin: 0; }
.c-wrap { max-width: 620px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.c-head { border-bottom: 1px solid var(--c-line); } .c-head .c-wrap { height: 60px; }
.c-logo { font: 800 1.45rem/1 Georgia, "Times New Roman", serif; color: var(--c-ink); text-decoration: none; letter-spacing: -0.01em; }
.c-logo span { font-weight: 400; font-style: italic; }
.c-link { color: var(--c-mute); font-size: 0.9rem; text-decoration: none; } .c-link:hover { color: var(--c-ink); }
.c-foot { border-top: 1px solid var(--c-line); margin-top: 48px; color: var(--c-mute); font-size: 0.82rem; } .c-foot .c-wrap { height: 56px; justify-content: center; } .c-foot a { color: inherit; }
.d-wrap { max-width: 620px; margin: 0 auto; padding: 24px 16px 0; }
.daily { display: grid; gap: 18px; }
.d-top h1 { font: 700 1.6rem/1.15 Georgia, serif; margin: 0; text-align: center; }
.d-sub { text-align: center; color: var(--c-mute); margin: 6px 0 0; font-size: 0.9rem; }
.d-sentence { font: 400 clamp(1.15rem, 3.6vw, 1.45rem)/1.65 Georgia, serif; text-align: center; padding: 8px 0; }
.d-gap { display: inline-flex; gap: 6px; flex-wrap: wrap; vertical-align: baseline; }
.d-slot { display: inline-block; min-width: 3em; border-bottom: 2px solid var(--c-ink); font-family: inherit; font-weight: 700; line-height: 1.2; }
.d-slot.ok { color: var(--c-g); border-color: var(--c-g); }
.d-rows { display: grid; gap: 6px; max-width: 520px; margin: 0 auto; width: 100%; }
.d-row { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; }
.d-tile { min-height: 46px; display: grid; place-items: center; text-align: center; padding: 4px 6px; border: 2px solid var(--c-line); font-weight: 700; font-size: clamp(0.85rem, 2.6vw, 1rem); text-transform: lowercase; overflow-wrap: anywhere; }
.d-tile.cur { border-color: #878A8C; }
.d-tile.g, .d-tile.y, .d-tile.x { color: #fff; border-color: transparent; }
.d-tile.g { background: var(--c-g); } .d-tile.y { background: var(--c-y); } .d-tile.x { background: var(--c-x); }
.d-tile.flip { animation: dflip .45s ease-in-out both; } @keyframes dflip { 0% { transform: rotateX(0) } 50% { transform: rotateX(90deg) } 100% { transform: rotateX(0) } }
@media (prefers-reduced-motion: reduce) { .d-tile.flip { animation: none; } }
.d-keys { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.d-key { font: 700 1rem/1 inherit; font-family: inherit; padding: 0 14px; min-height: 48px; border: 0; border-radius: 4px; background: var(--c-key); color: var(--c-ink); cursor: pointer; }
.d-key.g { background: var(--c-g); color: #fff; } .d-key.y { background: var(--c-y); color: #fff; } .d-key.x { background: var(--c-x); color: #fff; }
.d-key.in { outline: 2px solid var(--c-ink); outline-offset: 1px; } .d-key:disabled { cursor: default; }
.d-act { display: flex; gap: 8px; justify-content: center; }
.d-btn { font: 700 0.95rem/1 inherit; font-family: inherit; min-height: 48px; padding: 0 22px; border-radius: 24px; border: 1px solid var(--c-ink); background: #fff; color: var(--c-ink); cursor: pointer; }
.d-btn.go { background: var(--c-ink); color: #fff; } .d-btn:disabled { opacity: .35; cursor: default; }
.d-done { border-top: 1px solid var(--c-line); padding-top: 18px; display: grid; gap: 10px; text-align: center; }
.d-done h2 { font: 700 1.3rem/1.3 Georgia, serif; margin: 0; } .d-done h2 span { display: block; color: var(--c-g); font-size: 1.5rem; }
.d-done p { margin: 0; } .d-done .ex { color: var(--c-mute); font-style: italic; }
.d-stats { display: flex; justify-content: center; gap: 22px; margin: 8px 0; } .d-stats div { display: grid; font-size: 0.75rem; color: var(--c-mute); } .d-stats b { font-size: 1.6rem; color: var(--c-ink); }
.d-dist { display: grid; gap: 4px; max-width: 320px; margin: 0 auto; width: 100%; text-align: left; }
.d-dist div { display: flex; gap: 6px; align-items: center; font-size: 0.85rem; } .d-dist i { background: var(--c-x); color: #fff; font-style: normal; font-weight: 700; text-align: right; padding: 2px 6px; }
.d-dist i.me { background: var(--c-g); }
.d-share { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; } .d-next { color: var(--c-mute); font-size: 0.88rem; }
.d-how { color: var(--c-mute); font-size: 0.92rem; } .d-how summary { cursor: pointer; color: var(--c-ink); font-weight: 700; }
.d-how .k { color: #fff; padding: 0 5px; } .d-how .k.g { background: var(--c-g); } .d-how .k.y { background: var(--c-y); } .d-how .k.x { background: var(--c-x); }

/* ---------------------------------------------------------------- teacher accounts (20 Oct) */
.nav .acct-link { border: var(--line) solid var(--ink); border-radius: 999px; padding: 6px 14px; background: var(--paper); }
.nav .acct-link.in::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); border: 2px solid var(--ink); margin-right: 7px; vertical-align: 0; }
.acct { display: grid; gap: 22px; max-width: 720px; }
.acct.wide { max-width: 980px; }
.acct-card { background: var(--paper); border: var(--line) solid var(--ink); border-radius: 24px; box-shadow: var(--drop); padding: clamp(18px, 3vw, 28px); display: grid; gap: 12px; }
.acct-card h2 { margin: 0; }
.acct-card p { margin: 0; }
.acct .lab, .acct-modal .lab { font: 900 1rem/1.2 var(--display); }
.acct .field { width: 100%; min-width: 0; min-height: 52px; font: 800 1.1rem/1 var(--text); padding: 0 14px; border: var(--line) solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink); }
.acct .field:focus { outline: 3px solid var(--gum); outline-offset: 2px; }
.acct .field.code { max-width: 260px; letter-spacing: .4em; text-align: center; font-size: 1.6rem; }
.acct form { display: grid; gap: 10px; }
.acct .inline { display: flex; gap: 10px; }
.acct .acts, .acct-modal .acts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.msg { border: var(--line) solid var(--ink); border-radius: 16px; padding: 12px 16px; font-weight: 700; background: var(--canvas); }
.msg.ok { background: var(--mint-w); } .msg.warn { background: var(--sun-w); } .msg.err { background: var(--tomato-w); }
.acct .who { display: flex; gap: 16px; align-items: center; }
.acct .av { flex: none; width: 64px; height: 64px; border-radius: 50%; border: var(--line) solid var(--ink); background: var(--sun); display: grid; place-items: center; font: 900 1.8rem/1 var(--display); box-shadow: 0 4px 0 var(--ink); }
.rep-row { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-top: 2px solid var(--mist); }
.acct-card > .rep-row:first-child, .rep .rep-row { border-top: 0; padding-top: 0; }
.rep-row p { margin: 4px 0 0; }
.rep-row .pill { flex: none; }
.pill.st-open { background: var(--sun-l); } .pill.st-fixed { background: var(--mint-l); } .pill.st-dismissed { background: var(--mist); }
.acct-modal { position: fixed; inset: 0; z-index: 100; background: rgba(27, 26, 34, .6); display: grid; place-items: center; padding: 16px; }
.acct-modal .acct-card { max-width: 560px; }
