/* OwnerKits Play: puzzle pages from the books, laid on a desk.
   The desk follows the viewer's theme; puzzle pages stay paper in both themes. */
@font-face { font-family: 'Bricolage Grotesque'; src: url('/assets/fonts/bricolage-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('/assets/fonts/bricolage-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('/assets/fonts/atkinson-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('/assets/fonts/atkinson-700.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }

:root {
  --ground: #e4ecf1; --card: #ffffff; --ink: #0b1d2e; --ink-2: #3a5670; --muted: #5b7288;
  --line: #0b1d2e; --shadow: #0b1d2e; --sun: #f2b233; --on-sun: #0b1d2e; --sun-soft: #fff1cc;
  --berry: #c8372d; --pine: #1f7a4f; --ok: #1f7a4f; --ok-soft: #dcefe3; --bad: #b3261e; --bad-soft: #fbe1dd;
  --paper: #fffdf8; --paper-ink: #0b1d2e; --paper-edge: #0b1d2e; --paper-muted: #3a5670;
  --paper-hover: rgba(11, 29, 46, .08); --paper-hatch: rgba(11, 29, 46, .15); --paper-red: #c8372d;
  --paper-sel: #fff1cc; --paper-peer: #eef3f6; --paper-line: #9fb2c2;
  --btn-line: #0b1d2e;
  --f-display: 'Bricolage Grotesque', 'Trebuchet MS', system-ui, sans-serif;
  --f-body: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
  --fs: 18px; --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0b1620; --card: #132331; --ink: #f1ece2; --ink-2: #c3d1dc; --muted: #93a7b8;
    --line: #a9bccb; --shadow: #000000; --sun-soft: #3a3115; --berry: #ff8a7a; --pine: #6fd0a0;
    --ok: #6fd0a0; --ok-soft: #153626; --bad: #ff8a7a; --bad-soft: #43201b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0b1620; --card: #132331; --ink: #f1ece2; --ink-2: #c3d1dc; --muted: #93a7b8;
  --line: #a9bccb; --shadow: #000000; --sun-soft: #3a3115; --berry: #ff8a7a; --pine: #6fd0a0;
  --ok: #6fd0a0; --ok-soft: #153626; --bad: #ff8a7a; --bad-soft: #43201b; color-scheme: dark;
}
:root.big { --fs: 21px; }
* { box-sizing: border-box; }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--f-body); font-size: 1rem; line-height: 1.45; }
button, input { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.015em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--sun); color: var(--on-sun); padding: .5em 1em; border-radius: 10px; z-index: 10; }
.skip:focus { top: 10px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 16px; }
main.wrap { padding-block: 18px 56px; display: grid; gap: 22px; }

/* header + footer */
.top { border-bottom: 2px solid var(--line); background: var(--card); }
.top .wrap { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; padding-block: 10px; }
.wm { font-family: var(--f-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.wm i { font-style: normal; background: var(--sun); color: var(--on-sun); border: 2px solid var(--btn-line); border-radius: 10px; padding: 0 .3em; margin-left: .12em; box-shadow: 2px 2px 0 var(--shadow); }
.topnav { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.topnav a { font: 700 .92rem var(--f-display); text-decoration: none; padding: .35em .2em; border-bottom: 2px solid transparent; }
.topnav a:hover { border-bottom-color: var(--sun); }
@media (max-width: 560px) { .topnav { width: 100%; justify-content: space-between; gap: 8px; margin-left: 0; } .topnav a { font-size: .86rem; } }
.foot { border-top: 2px dashed var(--muted); color: var(--muted); font-size: .85rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-block: 18px 32px; }
.foot a { color: var(--ink-2); }

.crumbs { font-size: .85rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-2); }

.chip { display: inline-block; font: 800 .68rem/1.3 var(--f-display); letter-spacing: .08em; text-transform: uppercase; border: 2px solid var(--line); border-radius: 99px; padding: .1em .65em; background: var(--card); color: var(--ink); }
.chip.ink { background: var(--ink); color: var(--card); border-color: var(--ink); }
.chip.sun { background: var(--sun); color: var(--on-sun); border-color: var(--btn-line); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 44px; padding: .45em 1em; border-radius: 12px; cursor: pointer; text-decoration: none;
       font-family: var(--f-display); font-weight: 700; font-size: .92rem; border: 2px solid var(--btn-line);
       background: var(--sun); color: var(--on-sun); box-shadow: 3px 3px 0 var(--shadow); transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.ghost[aria-pressed="true"] { background: var(--sun-soft); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.small { min-height: 36px; padding: .3em .75em; font-size: .85rem; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* hub */
.hero { display: grid; gap: 10px; padding-block: 8px 4px; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); max-width: 22ch; }
.hero p { color: var(--ink-2); max-width: 60ch; font-size: 1.05rem; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.game { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 16px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 4px 4px 0 var(--shadow); }
.game-head { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.emb { width: 56px; height: 56px; border-radius: 12px; border: 2px solid var(--btn-line); display: grid; place-items: center; overflow: hidden; }
.emb svg { width: 44px; height: 44px; }
.game h2 { font-size: 1.25rem; }
.game h2 a { text-decoration: none; }
.game .kick { font: 700 .72rem/1.2 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.game p { font-size: .94rem; color: var(--ink-2); }
.plist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.plist a { display: inline-flex; align-items: center; gap: .35em; min-height: 36px; padding: .2em .7em; border: 2px solid var(--line); border-radius: 99px; text-decoration: none; font: 700 .82rem var(--f-display); background: var(--card); }
.plist a:hover { background: var(--sun-soft); }
.plist a.done { background: var(--ok-soft); border-color: var(--ok); }
.plist a.done::after { content: "\2713"; color: var(--ok); }
.section-h { display: grid; gap: 4px; }
.section-h h2 { font-size: 1.5rem; }
.section-h p { color: var(--ink-2); }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.book { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; padding: 12px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; }
.book img { width: 84px; border-radius: 4px; border: 1px solid var(--line); box-shadow: 2px 2px 0 var(--shadow); }
.book b { font-family: var(--f-display); font-size: 1rem; display: block; line-height: 1.2; }
.book span { font-size: .86rem; color: var(--ink-2); display: block; margin-top: 4px; }
.book em { font-style: normal; font: 700 .82rem var(--f-display); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; display: inline-block; margin-top: 6px; }

/* list pages */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.pcard { display: grid; gap: 6px; padding: 14px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; height: 100%; }
.pcard:hover { background: var(--sun-soft); }
.pcard b { font: 800 1.08rem var(--f-display); }
.pcard span { font-size: .86rem; color: var(--ink-2); }
.pcard .st { font-weight: 700; color: var(--ok); }

/* puzzle page layout */
.ptitle { display: grid; gap: 6px; }
.ptitle h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.ptitle .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.playarea { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 26px; align-items: start; }
.playarea.wide-board { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.playarea.single { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
@media (max-width: 900px) { .playarea, .playarea.wide-board { grid-template-columns: minmax(0, 1fr); } }
.col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; align-content: start; }
.status { min-height: 3.1em; padding: .6em .9em; border-radius: 12px; background: var(--card); border: 2px solid var(--muted); color: var(--ink); font-size: .95rem; }
.status.good { background: var(--ok-soft); border-color: var(--ok); }
.status.bad { background: var(--bad-soft); border-color: var(--bad); }
.page { background: var(--paper); color: var(--paper-ink); border: 2px solid var(--paper-edge); border-radius: 10px; box-shadow: 5px 5px 0 var(--shadow); padding: 10px; }
.panel { border: 2px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 14px 16px; display: grid; gap: 10px; }
.panel.solved { background: var(--ok-soft); border-color: var(--ok); }
.panel h3 { font-size: 1.25rem; }
details.how { border-top: 2px dashed var(--muted); padding-top: 10px; }
details.how summary { cursor: pointer; font: 700 .95rem var(--f-display); min-height: 32px; }
details.how ol, details.how ul { margin: 8px 0 0; padding-left: 1.3em; display: grid; gap: 4px; font-size: .92rem; }
.promo { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 14px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--sun-soft); }
.promo img { width: 96px; border-radius: 4px; border: 1px solid var(--line); box-shadow: 3px 3px 0 var(--shadow); }
.promo b { font-family: var(--f-display); font-size: 1.05rem; display: block; }
.promo p { font-size: .9rem; color: var(--ink-2); margin: 4px 0 8px; }
.nextrow { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* ---------- Alibi Squares */
.tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 10px 8px; max-width: 600px; padding-top: 6px; }
.tok { position: relative; display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 6px 4px 5px; cursor: pointer; text-align: center;
       border: 2px solid var(--line); border-radius: 12px; background: var(--card); font: 700 .8rem/1.1 var(--f-display); }
.tok svg { width: 40px; height: 40px; }
.tok[aria-pressed="true"] { background: var(--sun); color: var(--on-sun); border-color: var(--btn-line); box-shadow: 3px 3px 0 var(--shadow); }
.tok .where { position: absolute; top: -9px; right: -7px; font: 800 .66rem/1 var(--f-display); background: var(--ink); color: var(--card); border-radius: 99px; padding: 4px 6px; }
.tok .where:empty { display: none; }
.tok.cross svg path { stroke: currentColor; stroke-width: 5; stroke-linecap: round; fill: none; }
.map-wrap { position: relative; }
.map-art { display: block; width: 100%; height: auto; }
.cells { position: absolute; display: grid; }
.cell { position: relative; border: 0; background: transparent; padding: 0; cursor: pointer; border-radius: 4px; }
.cell:hover { background: var(--paper-hover); }
.cell:focus-visible { outline: 4px solid var(--paper-ink); outline-offset: -4px; box-shadow: inset 0 0 0 7px var(--sun); }
.cell.taken { background-image: repeating-linear-gradient(135deg, var(--paper-hatch) 0 5px, transparent 5px 11px); }
.cell > svg { position: absolute; }
.cell .who { inset: 13%; width: 74%; height: 74%; }
.cell .who.vic { inset: 19%; width: 62%; height: 62%; }
.pt-clip, .cell .who, .tok svg[data-pt], .card .pt, .who-btns svg { clip-path: circle(50%); }
.cell.conflict .who { outline: 4px solid var(--paper-red); outline-offset: 1px; border-radius: 50%; }
.cell .x { inset: 21%; width: 58%; height: 58%; }
.cell .x path { stroke: var(--paper-red); stroke-width: 5; stroke-linecap: round; fill: none; opacity: .85; }
.cell.hint { box-shadow: inset 0 0 0 5px var(--sun); animation: pulse 1.4s ease-in-out 3; }
.cell.nope { animation: nope .35s; }
.cell .pop { animation: pop .22s ease-out; }
.roomglow { position: relative; pointer-events: none; border-radius: 6px; box-shadow: inset 0 0 0 5px var(--sun), 0 0 0 3px var(--paper-ink); z-index: 2; }
@keyframes pulse { 50% { box-shadow: inset 0 0 0 9px var(--sun); } }
@keyframes nope { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes pop { from { transform: scale(.6); } to { transform: scale(1); } }
.mapkey { display: grid; gap: 6px; font-size: .82rem; color: var(--ink-2); }
.mapkey .kh { font: 800 .68rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mapkey ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.mapkey li { display: flex; align-items: center; gap: 6px; }
.mapkey svg { width: 30px; height: 30px; background: var(--paper); border-radius: 6px; border: 1px solid var(--line); }
.place { font: 700 .95rem var(--f-display); color: var(--ink-2); letter-spacing: .02em; }
.story { background: var(--sun-soft); border-radius: 12px; padding: .75em 1em; font-size: 1.02rem; }
.suspects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.card { width: 100%; height: 100%; text-align: left; cursor: pointer; display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: start;
        padding: 10px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 3px 3px 0 var(--shadow); }
.card[aria-pressed="true"] { background: var(--sun-soft); outline: 3px solid var(--sun); }
.card .pt { width: 58px; height: 58px; }
.card .ci { display: grid; gap: 2px; min-width: 0; }
.card .nm { font: 800 1rem/1.15 var(--f-display); }
.card .ini { display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 50%; background: var(--ink); color: var(--card); font-size: .82em; margin-right: .35em; vertical-align: .05em; }
.card .job { font-size: .82rem; color: var(--muted); }
.card .clue { font-size: .95rem; font-weight: 600; }
.card .fit { font-size: .8rem; font-weight: 700; }
.card .fit.ok { color: var(--ok); }
.card .fit.no { color: var(--bad); }
.vstrip { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; font-size: .92rem; color: var(--ink-2); }
.vstrip svg { width: 44px; height: 44px; }
.accuse { background: var(--sun-soft); border-color: var(--btn-line); box-shadow: 4px 4px 0 var(--shadow); }
.who-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.who-btns .btn svg { width: 30px; height: 30px; }
.tip { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; }
.tip > svg { width: 64px; height: 64px; }
.tip b { font-family: var(--f-display); }
.tip .body { display: grid; gap: 8px; min-width: 0; }

/* ---------- word search */
.ws-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 4px 10px; }
.ws-head h2 { font-size: 1.4rem; color: var(--paper-ink); }
.ws-head .count { margin-left: auto; font: 800 1rem var(--f-display); font-variant-numeric: tabular-nums; }
.ws-head .chip, .page .chip { background: #dcefe3; color: #0b1d2e; border-color: #0b1d2e; }
.ws-box { position: relative; max-width: 660px; margin: 0 auto; }
.ws-grid { container-type: inline-size; display: grid; aspect-ratio: 1; touch-action: none; user-select: none; -webkit-user-select: none; }
.ws-cell { border: 0; padding: 0; background: transparent; color: var(--paper-ink); cursor: pointer; aspect-ratio: 1; display: grid; place-items: center;
           font-family: var(--f-body); font-weight: 700; line-height: 1; border-radius: 50%; }
.ws-cell:focus-visible { outline: 3px solid var(--paper-ink); outline-offset: -3px; }
.ws-cell.anchor { background: var(--sun); }
.ws-cell.pulse { animation: wpulse 1s ease-in-out 3; background: var(--sun); }
@keyframes wpulse { 50% { background: transparent; } }
.ws-marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: multiply; }
.howto { font-size: .86rem; color: var(--paper-muted); padding: 10px 4px 2px; }
.wordlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; }
.wordlist li { display: flex; align-items: center; gap: 8px; font: 700 1rem var(--f-body); letter-spacing: .04em; }
.wordlist .box { flex: none; width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 5px; display: grid; place-items: center; }
.wordlist .box svg { width: 14px; height: 14px; }
.wordlist li.found { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.wordlist li.found .box { background: var(--pine); border-color: var(--pine); }
.memory { border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 4px; background: var(--card); }
.memory .lbl { font: 800 .68rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--berry); }

/* ---------- sudoku */
.sd-grid { container-type: inline-size; display: grid; grid-template-columns: repeat(9, 1fr); aspect-ratio: 1; max-width: 600px; margin: 0 auto; border: 3px solid var(--paper-ink); background: var(--paper); }
.sd-cell { position: relative; border: 0; border-right: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); background: var(--paper); color: #1f4f8f; padding: 0;
           font: 700 calc(100cqi / 9 * .56)/1 var(--f-body); cursor: pointer; display: grid; place-items: center; min-width: 0; }
.sd-cell:nth-child(9n+3), .sd-cell:nth-child(9n+6) { border-right: 3px solid var(--paper-ink); }
.sd-cell:nth-child(9n) { border-right: 0; }
.sd-cell:nth-child(n+19):nth-child(-n+27), .sd-cell:nth-child(n+46):nth-child(-n+54) { border-bottom: 3px solid var(--paper-ink); }
.sd-cell:nth-child(n+73) { border-bottom: 0; }
.sd-cell.given { color: var(--paper-ink); font-weight: 800; }
.sd-cell.peer { background: var(--paper-peer); }
.sd-cell.same { background: #f9e2a6; }
.sd-cell.sel { background: var(--paper-sel); box-shadow: inset 0 0 0 3px var(--sun); }
.sd-cell.bad { color: var(--paper-red); }
.sd-cell.hinted { color: var(--pine); }
.sd-cell:focus-visible { outline: 3px solid var(--paper-ink); outline-offset: -3px; }
.sd-notes { position: absolute; inset: 6%; display: grid; grid-template-columns: repeat(3, 1fr); font: 700 calc(100cqi / 9 * .2)/1 var(--f-body); color: #3a5670; }
.sd-notes span { display: grid; place-items: center; }
.pad { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 520px; }
.pad .btn { font-size: 1.25rem; min-height: 54px; padding: 0; }
.pad .btn.word { font-size: .86rem; }

/* ---------- word scramble */
.sc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sc-row { display: grid; grid-template-columns: 2em minmax(0, 1fr); gap: 4px 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--paper); color: var(--paper-ink); border: 2px solid var(--paper-line); }
.sc-row.done { border-color: var(--ok); background: #eef8f1; }
.sc-n { font: 800 1rem var(--f-display); color: var(--paper-muted); }
.sc-letters { display: flex; flex-wrap: wrap; gap: 4px; }
.tile { display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border: 2px solid var(--paper-ink); border-radius: 7px; background: #ffffff; font: 800 1.05rem var(--f-body); color: var(--paper-ink); }
.tile.shade { background: var(--sun); }
.sc-input { grid-column: 2; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sc-input input, .bonus input { width: min(100%, 14em); min-height: 44px; padding: .3em .6em; border: 2px solid var(--paper-ink); border-radius: 10px; background: #ffffff; color: var(--paper-ink); font: 700 1.1rem var(--f-body); letter-spacing: .12em; text-transform: uppercase; }
.sc-input .ok { color: var(--ok); font-weight: 700; }
.bonus { display: grid; gap: 8px; }

/* ---------- code breaker */
.cr-text { display: flex; flex-wrap: wrap; gap: 14px 22px; padding: 6px; }
.cr-word { display: flex; gap: 4px; }
.cr-cell { display: grid; justify-items: center; gap: 2px; }
.cr-cell input { width: 2.1em; height: 2.3em; text-align: center; border: 0; border-bottom: 3px solid var(--paper-ink); background: #ffffff; color: #1f4f8f; font: 800 1.2rem var(--f-body); text-transform: uppercase; padding: 0; border-radius: 6px 6px 0 0; }
.cr-cell input:focus { background: var(--paper-sel); outline: none; box-shadow: inset 0 0 0 2px var(--sun); }
.cr-cell input.hintl { color: var(--paper-ink); background: #f3eadb; }
.cr-cell input.bad { color: var(--paper-red); }
.cr-cell input.peer { background: #f9e2a6; }
.cr-cell .ci { font: 700 .82rem var(--f-body); color: var(--paper-muted); }
.cr-punct { font: 800 1.2rem var(--f-body); align-self: start; padding-top: .4em; color: var(--paper-ink); }
.source { font-size: .9rem; color: var(--paper-muted); padding: 8px 6px 2px; }

/* ---------- maze */
.mz-box { max-width: 560px; margin: 0 auto; }
.mz-svg { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.mz-svg:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .cell.hint, .cell.nope, .cell .pop, .ws-cell.pulse { animation: none; } }
