:root { --accent: #3a62a0; --cell: 38px; }
.layout { display: grid; margin: 0 auto; padding: 24px; max-width: 1200px; grid-template-columns: auto minmax(280px, 1fr); gap: 16px; align-items: start; }
.board { display: grid; gap: 0; margin-top: 12px; user-select: none; width: max-content; max-width: 100%; overflow: auto; border: 2px solid #111; background: #111; }
.cell { width: var(--cell); height: var(--cell); position: relative; border: 1px solid #9aa0aa; background: #fff; }
.cell.block { background: #16181d; border-color: #16181d; }
.cell .num { position: absolute; top: 1px; left: 3px; font: 600 10px Inter, sans-serif; color: #333; pointer-events: none; }
.cell input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; text-align: center; font: 700 20px Inter, sans-serif; text-transform: uppercase; color: #111; caret-color: transparent; padding: 10px 0 0; cursor: pointer; }
.cell.word { background: #dbeafe; }
.cell.focus { background: #fde68a; }
.cell.wrong input { color: #dc2626; }
.cell.revealed input { color: var(--accent); }
.cell.ok { background: #dcfce7; }
.cur-clue { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: var(--panel-2); font-weight: 600; min-height: 42px; }
.clues { padding-left: 0; list-style: none; margin: 6px 0 0; font-size: 14px; }
.clues li { padding: 5px 8px; border-radius: 6px; cursor: pointer; display: grid; grid-template-columns: 28px 1fr; }
.clues li b { color: var(--muted); }
.clues li.on { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.clues li.done { color: var(--muted); text-decoration: line-through; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } :root { --cell: 30px; } .cell input { font-size: 16px; } }
@media print {
  .topbar, .no-print, .ai-demo-banner { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 0; }
  .cell input { color: transparent !important; }
  .cell { background: #fff !important; }
  .cell.block { background: #000 !important; }
}
.cell.pencil input { color: #6b7280; font-weight: 500; }
.chk { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; color: var(--text); }
.mini-board { display: grid; gap: 1px; background: #111; border: 2px solid #111; width: max-content; max-width: 100%; overflow: auto; }
.mini-board div { width: 18px; height: 18px; background: #fff; font: 700 10px Inter, sans-serif; display: grid; place-items: center; color: #111; }
.mini-board div.b { background: #16181d; }
.ws-grid { display: grid; gap: 2px; margin-top: 12px; width: max-content; user-select: none; touch-action: none; }
.ws-grid span { width: 34px; height: 34px; display: grid; place-items: center; font: 700 17px Inter, sans-serif; border-radius: 6px; cursor: pointer; background: var(--panel-2); }
.ws-grid span.sel { background: #fde68a; color: #111; }
.ws-grid span.found { background: color-mix(in srgb, var(--accent) 30%, var(--panel-2)); }
.ws-words { list-style: none; padding: 0; columns: 2; font: 600 14px var(--mono); }
.ws-words li { padding: 3px 0; }
.ws-words li.found { text-decoration: line-through; color: var(--muted); }
