/* ChowChow Puzzles. One family (Recursive): casual axis for headings and
   tile names, linear for reading text, tabular digits on boards. Palette:
   pencil graphite on pale grid paper, a highlighter yellow for hints, and one
   colour per game. */
@font-face { font-family: Recursive; src: url(/assets/fonts/recursive.woff2) format('woff2'); font-weight: 300 1000; font-display: swap; }

:root {
  --paper: #eef3f1; --paper-2: #ffffff; --paper-3: #e2eae7; --ink: #22303a; --muted: #56666e; --line: #c4d0cc; --line-2: #9fb0ab;
  --mark: #f2c14e; --mark-soft: rgba(242, 193, 78, .45); --act: #1f6f68; --act-ink: #fff; --bad: #b3261e; --good: #2e7d4f;
  --text-scale: 1; --radius: 6px; --c-game: var(--c, #1f6f68);
  --fs-0: calc(.8125rem * var(--text-scale)); --fs-1: calc(1rem * var(--text-scale)); --fs-2: calc(1.25rem * var(--text-scale)); --fs-3: calc(1.5625rem * var(--text-scale)); --fs-4: calc(2.25rem * var(--text-scale)); --fs-5: calc(3.25rem * var(--text-scale));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] { --paper: #17212b; --paper-2: #1f2b36; --paper-3: #263441; --ink: #e6eef0; --muted: #a3b2b8; --line: #34444f; --line-2: #4d606c; --mark: #d9a93a; --mark-soft: rgba(217, 169, 58, .35); --act: #5cc3b8; --act-ink: #10201f; --bad: #ff8a80; --good: #7fd6a0; color-scheme: dark; } }
:root[data-theme="dark"] { --paper: #17212b; --paper-2: #1f2b36; --paper-3: #263441; --ink: #e6eef0; --muted: #a3b2b8; --line: #34444f; --line-2: #4d606c; --mark: #d9a93a; --mark-soft: rgba(217, 169, 58, .35); --act: #5cc3b8; --act-ink: #10201f; --bad: #ff8a80; --good: #7fd6a0; color-scheme: dark; }
:root[data-contrast="high"] { --ink: #000; --muted: #222; --line: #000; --line-2: #000; --paper: #fff; --paper-2: #fff; --paper-3: #eee; --act: #004d47; --mark: #ffd400; }
:root[data-theme="dark"][data-contrast="high"] { --ink: #fff; --muted: #eee; --line: #fff; --line-2: #fff; --paper: #000; --paper-2: #000; --paper-3: #111; --act: #7fffef; --act-ink: #000; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Recursive, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: var(--fs-1); line-height: 1.55; font-variation-settings: 'CASL' 0; }
h1, h2, h3 { font-variation-settings: 'CASL' 1; line-height: 1.15; margin: 0 0 .5em; font-weight: 750; letter-spacing: -.01em; }
h1 { font-size: var(--fs-4); } h2 { font-size: var(--fs-3); margin-top: 1.6em; } h3 { font-size: var(--fs-2); margin-top: 1.2em; }
p, ul, ol, dl { margin: 0 0 1em; }
a { color: var(--act); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--act); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--paper-2); padding: .5rem 1rem; }
.muted { color: var(--muted); } .small { font-size: var(--fs-0); } .fine { font-size: var(--fs-0); color: var(--muted); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
:root[data-motion="reduce"] * { animation: none !important; transition: none !important; }

/* header / footer */
.site-header { display: flex; align-items: center; gap: 1.25rem; padding: .6rem clamp(1rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); }
.brand img { height: 30px; width: auto; }
.brand-name { font-variation-settings: 'CASL' 1; font-weight: 800; font-size: var(--fs-2); }
:root[data-theme="dark"] .brand img { filter: brightness(1.6); }
.site-header nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a { display: block; padding: .4rem .7rem; color: var(--ink); text-decoration: none; border-radius: var(--radius); }
.site-header nav a:hover { background: var(--paper-3); } .site-header nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--mark); }
.header-tools { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--paper-2); border-radius: 50%; color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.account-btn { padding: .45rem .9rem; border: 1.5px solid var(--ink); border-radius: 99px; text-decoration: none; color: var(--ink); font-weight: 650; white-space: nowrap; }
@media (max-width: 720px) { .site-header { flex-wrap: wrap; gap: .5rem; } .site-header nav { order: 3; width: 100%; overflow-x: auto; } .brand-name { font-size: var(--fs-1); } }
main { padding: 0 clamp(1rem, 4vw, 2.5rem) 3rem; max-width: 1240px; margin: 0 auto; }
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem clamp(1rem, 4vw, 2.5rem); color: var(--muted); font-size: var(--fs-0); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; padding: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1.1rem; background: var(--act); color: var(--act-ink); border: 1.5px solid var(--act); border-radius: var(--radius); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn:disabled { opacity: .55; cursor: default; }
.linklike { background: none; border: 0; padding: 0; color: var(--act); font: inherit; text-decoration: underline; cursor: pointer; }
.linklike.danger { color: var(--bad); }

/* home */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding: clamp(2rem, 6vw, 4.5rem) 0 2.5rem; }
.hero h1 { font-size: var(--fs-5); max-width: 16ch; font-weight: 800; }
.lede { font-size: var(--fs-2); color: var(--muted); max-width: 52ch; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-board { margin: 0; padding: 1.5rem; background-color: var(--paper-2); background-image: linear-gradient(var(--paper-3) 1px, transparent 1px), linear-gradient(90deg, var(--paper-3) 1px, transparent 1px); background-size: 22px 22px; border: 1.5px solid var(--ink); border-radius: 4px; box-shadow: 6px 6px 0 var(--mark); }
.hero-board figcaption { margin-top: 1rem; font-size: var(--fs-0); color: var(--muted); }
.mini { max-width: 300px; margin: 0 auto; }
.mini .sdk { --cell: min(68px, 17vw); }
.mini-pad .pad { margin-top: .75rem; justify-content: center; }
.mini.is-solved .sdk { box-shadow: 0 0 0 4px var(--good); }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } .hero h1 { font-size: var(--fs-4); } }

.tiles { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.tile { border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: var(--paper-2); }
.tile-link { display: grid; grid-template-rows: auto auto 1fr auto; gap: .35rem; height: 100%; padding: 1.1rem 1.1rem 1rem; color: var(--ink); text-decoration: none; min-height: 190px; position: relative; }
a.tile-link:hover { background: color-mix(in srgb, var(--c) 8%, var(--paper-2)); }
.tile-glyph { width: 52px; height: 52px; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 800; font-size: 1.4rem; border-radius: 4px; font-variation-settings: 'CASL' 1; }
.tile-name { font-weight: 800; font-size: var(--fs-2); font-variation-settings: 'CASL' 1; }
.tile-tag { color: var(--muted); font-size: var(--fs-0); }
.tile-status { font-size: var(--fs-0); font-weight: 700; color: var(--c); }
.tiles-soon .tile { background: transparent; }
.tiles-soon .tile-link { min-height: 140px; } .tiles-soon .tile-glyph { background: transparent; color: var(--c); border: 1.5px dashed var(--c); }
.tiles-soon .tile-status { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem 2rem; }
.facts dt { font-weight: 800; font-variation-settings: 'CASL' 1; font-size: var(--fs-2); } .facts dd { margin: 0; color: var(--muted); }

/* game page */
.game-head { display: flex; gap: 1.5rem; align-items: flex-start; padding: 2.5rem 0 1rem; }
.game-glyph { flex: none; width: 88px; height: 88px; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 2.2rem; font-weight: 800; border-radius: 6px; box-shadow: 5px 5px 0 var(--ink); }
.journey { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.lv-link { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; gap: 0 .7rem; padding: .7rem .8rem; background: var(--paper-2); border: 1.5px solid var(--line-2); border-radius: var(--radius); color: var(--ink); text-decoration: none; height: 100%; }
.lv-n { grid-row: 1 / 4; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; font-weight: 800; font-variant-numeric: tabular-nums; }
.lv-label { font-weight: 750; display: block; } .lv-spec { display: block; font-size: var(--fs-0); color: var(--muted); }
.lv-state { font-size: var(--fs-0); font-weight: 700; margin-top: .25rem; }
.lv-pips { display: flex; gap: 4px; margin-top: .3rem; } .lv-pips i { width: 18px; height: 6px; border-radius: 3px; background: var(--paper-3); border: 1px solid var(--line-2); } .lv-pips i.on { background: var(--c); border-color: var(--c); }
.lv-expert .lv-link { border-color: var(--ink); border-width: 2px; } .lv-expert .lv-n { background: var(--ink); color: var(--paper-2); }
.lv.is-locked .lv-link { opacity: .62; border-style: dashed; }
.lv.is-passed .lv-n { background: var(--c); border-color: var(--c); color: #fff; }
.lv.is-mastery .lv-n::after { content: '◆'; position: absolute; font-size: .6rem; transform: translate(14px, -14px); color: var(--mark); }
.prose, .prose-wide { max-width: 70ch; } .prose-wide { max-width: 980px; }
.prose { padding-top: 1rem; }
.strategy div { margin-bottom: .9rem; } .strategy dt { font-weight: 750; } .strategy dd { margin: 0; }
.related { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.related li { border-left: 3px solid var(--line-2); padding-left: .75rem; } .related a { font-weight: 750; display: block; } .related span { font-size: var(--fs-0); color: var(--muted); }

/* play screen */
.play { padding-top: 1.25rem; position: relative; }
.play-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; align-items: flex-end; margin-bottom: 1rem; }
.play-head h1 { font-size: var(--fs-3); margin: 0; } .crumb { margin: 0; font-size: var(--fs-0); } .play-objective { margin: .25rem 0 0; color: var(--muted); font-size: var(--fs-0); }
.play-meta { display: flex; gap: 1.25rem; margin: 0; } .play-meta dt { font-size: var(--fs-0); color: var(--muted); } .play-meta dd { margin: 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.play-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .play-body { grid-template-columns: 1fr; } .play-meta { gap: .9rem; flex-wrap: wrap; } }
.board-wrap { background: var(--paper-2); border: 1.5px solid var(--ink); border-radius: 4px; padding: clamp(.5rem, 2vw, 1.25rem); overflow: auto; container-type: inline-size; }
.board { width: 100%; display: flex; flex-direction: column; align-items: safe center; }
.loading, .notice { color: var(--muted); padding: 2rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.tool { min-height: 44px; padding: .45rem .8rem; border: 1.5px solid var(--line-2); background: var(--paper-2); color: var(--ink); border-radius: var(--radius); font: inherit; font-weight: 650; cursor: pointer; }
.tool-hint { border-color: var(--ink); background: var(--mark-soft); }
.controls { margin-bottom: 1rem; }
.hint-panel { border: 1.5px solid var(--ink); background: var(--paper-2); padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; box-shadow: 4px 4px 0 var(--mark); }
.hint-panel h2 { font-size: var(--fs-2); margin-top: 0; } .hint-panel dt { font-weight: 700; } .hint-panel dd { margin: 0 0 .5rem; }
.hint-where { font-weight: 700; }
.rules-mini summary { cursor: pointer; font-weight: 700; } .other { font-size: var(--fs-0); }
.pause-cover { position: absolute; inset: 0; display: grid; place-content: center; gap: 1rem; text-align: center; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); z-index: 5; font-size: var(--fs-3); font-weight: 800; }
.is-paused .board { filter: blur(10px); }
.locked { max-width: 60ch; padding: 1rem; }
.pad { display: flex; flex-wrap: wrap; gap: .35rem; }
.pad-key { min-width: 44px; min-height: 44px; border: 1.5px solid var(--line-2); background: var(--paper-2); color: var(--ink); border-radius: var(--radius); font: inherit; font-size: var(--fs-2); font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.pad-wide { font-size: var(--fs-1); padding: 0 .8rem; } .pad-key[aria-pressed="true"] { background: var(--ink); color: var(--paper-2); }
.dpad { display: grid; grid-template-columns: repeat(3, 52px); grid-template-rows: repeat(3, 52px); gap: 4px; margin: .75rem 0; }
.dpad button { border: 1.5px solid var(--line-2); background: var(--paper-2); color: var(--ink); border-radius: var(--radius); font-size: 1.3rem; cursor: pointer; }
.dpad-U { grid-area: 1 / 2; } .dpad-L { grid-area: 2 / 1; } .dpad-R { grid-area: 2 / 3; } .dpad-D { grid-area: 3 / 2; }
.zoom { display: flex; gap: .5rem; align-items: center; font-size: var(--fs-0); margin-top: .5rem; }

/* sudoku */
.sdk { --cell: min(56px, calc(100cqw / var(--n) - 1px)); display: inline-grid; border: 2.5px solid var(--ink); background: var(--paper-2); font-variant-numeric: tabular-nums; }
.sdk-4 { --cell: min(72px, calc(100cqw / 4 - 2px)); } .sdk-6 { --cell: min(64px, calc(100cqw / 6 - 2px)); }
.sdk-row { display: flex; }
.sdk-cell { width: var(--cell); height: var(--cell); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); color: var(--act); font: inherit; font-size: calc(var(--cell) * .52); font-weight: 600; padding: 0; cursor: pointer; display: grid; place-items: center; }
.sdk-row:last-child .sdk-cell { border-bottom: 0; } .sdk-cell:last-child { border-right: 0; }
.sdk-cell.bx-r { border-right: 2.5px solid var(--ink); } .sdk-cell.bx-b { border-bottom: 2.5px solid var(--ink); }
.sdk-cell.is-given { color: var(--ink); font-weight: 800; }
.sdk-cell.is-peer { background: var(--paper-3); } .sdk-cell.is-same { background: color-mix(in srgb, var(--act) 16%, var(--paper-2)); }
.sdk-cell.is-sel { background: color-mix(in srgb, var(--act) 28%, var(--paper-2)); }
.sdk-cell.is-conflict { color: var(--bad); text-decoration: underline wavy; }
.is-hint { background: var(--mark-soft) !important; } .is-focus { outline: 3px solid var(--mark) !important; outline-offset: -3px; }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; height: 100%; font-size: calc(var(--cell) * .22); color: var(--muted); font-weight: 500; }
.notes i { font-style: normal; display: grid; place-items: center; }

/* maze */
.maze-canvas { max-width: 100%; touch-action: none; image-rendering: pixelated; border-radius: 2px; }
.maze-keys { font-weight: 700; }

/* minesweeper */
.ms { --cell: calc(min(32px, calc(100cqw / var(--w) - .5px)) * var(--z, 1)); display: inline-grid; border: 2px solid var(--ink); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.ms-row { display: flex; }
.ms-cell { width: var(--cell); height: var(--cell); padding: 0; border: 1px solid var(--line); background: linear-gradient(var(--paper-3), color-mix(in srgb, var(--paper-3) 80%, var(--ink))); color: var(--ink); font: inherit; font-weight: 800; font-size: calc(var(--cell) * .58); cursor: pointer; display: grid; place-items: center; -webkit-touch-callout: none; }
.ms-cell.is-open { background: var(--paper-2); cursor: default; }
.ms-cell.n1 { color: #2f6fb0; } .ms-cell.n2 { color: #2e7d4f; } .ms-cell.n3 { color: #b3261e; } .ms-cell.n4 { color: #4a3aa0; } .ms-cell.n5 { color: #8a3b12; } .ms-cell.n6 { color: #1f6f68; } .ms-cell.n7 { color: #222; } .ms-cell.n8 { color: #666; }
:root[data-theme="dark"] .ms-cell.n1 { color: #8ab8ff; } :root[data-theme="dark"] .ms-cell.n2 { color: #7fd6a0; } :root[data-theme="dark"] .ms-cell.n3 { color: #ff8a80; } :root[data-theme="dark"] .ms-cell.n4 { color: #b9a8ff; }
.ms-cell.is-flag { color: var(--bad); } .ms-cell.is-mine { background: var(--paper-2); } .ms-cell.is-boom { background: var(--bad); color: #fff; }
.ms-left { font-weight: 700; font-variant-numeric: tabular-nums; }

/* nonogram */
.ng-scroll { overflow: auto; max-width: 100%; }
.ng { --cell: calc(min(28px, calc(100cqw / (var(--w) + var(--rc) * .75))) * var(--z, 1)); border-collapse: collapse; user-select: none; -webkit-user-select: none; touch-action: none; font-variant-numeric: tabular-nums; }
.ng th { font-weight: 700; font-size: calc(var(--cell) * .5); color: var(--ink); padding: 0; }
.ng-ch { vertical-align: bottom; width: var(--cell); } .ng-ch span { display: flex; flex-direction: column; align-items: center; padding-bottom: 3px; }
.ng-rh { text-align: right; white-space: nowrap; padding-right: 4px !important; } .ng-rh b { margin-left: .35em; }
.ng th.done { color: var(--line-2); }
.ng-cell { width: var(--cell); height: var(--cell); border: 1px solid var(--line); background: var(--paper-2); cursor: pointer; padding: 0; }
.ng-cell.g5r { border-right: 2px solid var(--ink); } .ng-cell.g5b { border-bottom: 2px solid var(--ink); }
.ng-cell.v1 { background: var(--ink); }
.ng-cell.v2 { background: var(--paper-2) radial-gradient(circle, var(--line-2) 18%, transparent 20%); }
.ng-cell.is-sel { outline: 2px solid var(--act); outline-offset: -2px; }

/* 2048 */
.t48 { --n: 4; --cell: min(96px, calc((100cqw - 48px) / 4)); display: grid; gap: 8px; padding: 8px; background: #bbada0; border-radius: 8px; touch-action: none; }
.t48-row { display: grid; grid-template-columns: repeat(var(--n), var(--cell)); gap: 8px; }
.t48-cell { width: var(--cell); height: var(--cell); border-radius: 6px; background: rgba(238, 228, 218, .35); display: grid; place-items: center; font-weight: 800; font-size: calc(var(--cell) * .38); color: #776e65; font-variant-numeric: tabular-nums; }
.t48-cell.small { font-size: calc(var(--cell) * .26); }
.t1 { background: #eee4da; } .t2 { background: #ede0c8; } .t3 { background: #f2b179; color: #fff; } .t4 { background: #f59563; color: #fff; } .t5 { background: #f67c5f; color: #fff; } .t6 { background: #f65e3b; color: #fff; }
.t7 { background: #edcf72; color: #fff; } .t8 { background: #edcc61; color: #fff; } .t9 { background: #edc850; color: #fff; } .t10 { background: #edc53f; color: #fff; } .t11 { background: #edc22e; color: #fff; }
.t12, .t13, .t14, .t15, .t16, .t17 { background: #3c3a32; color: #fff; }
.t48-score { font-weight: 700; font-variant-numeric: tabular-nums; }

/* word search */
.ws { --cell: calc(min(34px, calc(100cqw / var(--w) - .5px)) * var(--z, 1)); display: inline-grid; user-select: none; -webkit-user-select: none; touch-action: none; border: 1.5px solid var(--ink); background: var(--paper-2); }
.ws-row { display: flex; }
.ws-cell { width: var(--cell); height: var(--cell); display: grid; place-items: center; font-weight: 700; font-size: calc(var(--cell) * .56); cursor: pointer; }
.ws-cell.is-found { background: color-mix(in srgb, var(--c-game) 30%, var(--paper-2)); }
.ws-cell.is-pending { background: var(--ink); color: var(--paper-2); }
.ws-cell.is-sel { outline: 2px solid var(--act); outline-offset: -2px; }
.ws.miss { animation: shake .3s; } @keyframes shake { 30% { transform: translateX(-4px); } 70% { transform: translateX(4px); } }
.ws-list { columns: 2; padding-left: 1.1rem; font-weight: 650; } .ws-list li.found { text-decoration: line-through; color: var(--muted); }
.ws-clues { columns: 1; font-weight: 500; font-family: inherit; letter-spacing: .02em; }

/* dialogs, toast */
.dlg { border: 1.5px solid var(--ink); border-radius: 6px; padding: 0; background: var(--paper-2); color: var(--ink); max-width: min(560px, 94vw); width: 100%; box-shadow: 8px 8px 0 var(--mark); }
.dlg::backdrop { background: rgba(20, 28, 34, .45); }
.dlg-inner { padding: 1.4rem 1.4rem 1.2rem; position: relative; max-height: 88vh; overflow: auto; }
.dlg-inner h2 { margin-top: 0; padding-right: 2rem; }
.dlg-x { position: absolute; top: .6rem; right: .6rem; width: 40px; height: 40px; border: 0; background: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }
.dlg-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.stars { font-size: 2.6rem; color: #c9892d; margin: 0; letter-spacing: .1em; }
.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; } .result-stats dt { font-size: var(--fs-0); color: var(--muted); } .result-stats dd { margin: 0; font-weight: 750; }
@media (max-width: 480px) { .result-stats { grid-template-columns: repeat(2, 1fr); } }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: .7rem 1.1rem; border-radius: 99px; z-index: 50; max-width: 90vw; }
.settings fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.settings label, .check { display: flex; align-items: center; gap: .35rem; min-height: 36px; }

/* account */
.signin .row { display: flex; gap: .5rem; flex-wrap: wrap; } .signin input { min-height: 44px; padding: .4rem .7rem; border: 1.5px solid var(--line-2); border-radius: var(--radius); font: inherit; background: var(--paper-2); color: var(--ink); flex: 1; min-width: 200px; }
.signin label { display: block; font-weight: 700; margin: .75rem 0 .35rem; } .err { color: var(--bad); }
.table-scroll { overflow-x: auto; }
.ach { border-collapse: collapse; } .ach th, .ach td { border: 1px solid var(--line); padding: .35rem .55rem; text-align: center; } .ach th[scope="row"] { text-align: left; }
.ach td.p { background: color-mix(in srgb, var(--act) 18%, var(--paper-2)); } .ach td.m { background: var(--mark-soft); font-weight: 800; }
.ach caption { caption-side: bottom; font-size: var(--fs-0); color: var(--muted); padding-top: .5rem; text-align: left; }
.faq dt { font-weight: 750; margin-top: 1rem; } .faq dd { margin: 0; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.plan { border: 1.5px solid var(--line-2); border-radius: var(--radius); padding: 1.25rem; background: var(--paper-2); }
.plan-best { border-color: var(--ink); box-shadow: 5px 5px 0 var(--mark); }
.plan h2 { margin-top: 0; } .price { font-size: var(--fs-4); font-weight: 800; margin: .25rem 0 .75rem; } .price span { font-size: var(--fs-1); color: var(--muted); font-weight: 500; }
.compare { width: 100%; border-collapse: collapse; margin: 1.5rem 0; } .compare caption { text-align: left; font-weight: 750; margin-bottom: .5rem; }
.compare th, .compare td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.pay-methods { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ads (free visitors only) */
.ad-slot { margin: 1.5rem auto; text-align: center; max-width: 740px; }
.ad-label { display: block; font-size: .7rem; color: var(--muted); margin-bottom: .2rem; }
.ad-box { min-height: 60px; display: flex; justify-content: center; } @media (min-width: 768px) { .ad-box { min-height: 90px; } }
.ad-frame { border: 0; max-width: 100%; }
.house-ad { display: flex; flex-direction: column; justify-content: center; gap: .1rem; width: 100%; min-height: inherit; padding: .5rem 1rem; border: 1.5px dashed var(--line-2); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.house-ad span { font-size: var(--fs-0); color: var(--muted); }
.amazon-picks { border: 1.5px solid var(--line-2); border-radius: var(--radius); padding: 1rem; margin: 1.5rem 0; background: var(--paper-2); }
.amazon-picks h3 { margin: 0 0 .5rem; font-size: var(--fs-1); }
.amazon-picks ul { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .5rem; }
.amazon-picks a { display: flex; gap: .5rem; align-items: center; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 650; }
.amz-icon { font-size: 1.3rem; }
.ad-rect .ad-box { min-height: 250px; }
.is-locked .play-meta, .is-locked .play-side { display: none; }

.mini { container-type: inline-size; }
.ws-theme { font-weight: 800; margin: .5rem 0 .25rem; }
