/* CCN Casual Games · Sudoku · © Computational Classnotes · CC BY-NC-SA 4.0 */
#grid { display: grid; grid-template-columns: repeat(9, 1fr); max-width: 520px; margin: 10px 0; border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; background: var(--ink); gap: 1px; user-select: none; -webkit-user-select: none; }
#grid button { aspect-ratio: 1; min-height: 0; padding: 0; border-radius: 0; background: #fff; color: #1d4ed8; font: 600 clamp(14px, 5vw, 26px) var(--font); display: grid; place-items: center; position: relative; }
#grid button.given { color: var(--ink); font-weight: 800; background: #f6efe6; }
#grid button.box-r { border-right: 2px solid var(--ink); } #grid button.box-b { border-bottom: 2px solid var(--ink); }
#grid button.peer { background: #fff4e8; } #grid button.given.peer { background: #efe3d4; }
#grid button.sel { background: #ffd8b0; } #grid button.same { background: #ffe9d2; }
#grid button.clash { color: var(--bad); }
#grid button .notes { position: absolute; inset: 2px; display: grid; grid-template-columns: repeat(3, 1fr); font: 500 clamp(7px, 1.8vw, 10px) var(--font); color: var(--muted); }
#pad { max-width: 520px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; } #pad button { padding: 8px 0; justify-content: center; }
#pad button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.hud { gap: 8px; } .hud h2 { margin-right: auto; } .score { font: 700 2rem var(--head); }
