/* Grids: graph paper and pencil. Squared paper, graphite fills, a rust accent for marks and solved rows. */
:root { --page: #f2f0ea; --card: #fbfaf6; --ink: #1d1c19; --soft: #6a675e; --line: #cfcbbf; --field: #e9e6dd; --act: #a4472a; --on-act: #ffffff; --stop: #b3261e; --wide: 640px; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --page: #121210; --card: #1b1b18; --ink: #ecebe5; --soft: #a5a297; --line: #3a3933; --field: #121210; --act: #f08a64; --on-act: #2d0d03; --stop: #ff8a80; color-scheme: dark; }
}
.bar { justify-content: space-between; gap: 8px; margin-bottom: 10px; } .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wrap { overflow-x: auto; }
.puzzle { display: grid; gap: 0; width: max-content; margin: 0 auto; background: var(--card); padding: 6px; border-radius: 8px; touch-action: manipulation; user-select: none; }
.cl { font-size: 13px; color: var(--soft); font-variant-numeric: tabular-nums; display: flex; gap: 4px; align-items: flex-end; justify-content: flex-end; padding: 2px 4px; }
.cl.col { flex-direction: column; align-items: center; justify-content: flex-end; gap: 0; line-height: 1.15; }
.cl.done { color: var(--act); }
.sq { width: var(--s); height: var(--s); border: 1px solid var(--line); background: var(--card); padding: 0; min-height: 0; border-radius: 0; display: grid; place-items: center; font-size: calc(var(--s) * .5); color: var(--act); }
.sq.f { background: var(--ink); border-color: var(--ink); } .sq.x::after { content: "×"; }
.sq.b5 { border-right: 2px solid var(--soft); } .sq.d5 { border-bottom: 2px solid var(--soft); }
.won { font-weight: 700; text-align: center; color: var(--act); }
