.sudoku-shell { width:min(520px,calc(100% - 20px)); margin:14px auto 28px; font-family:Roboto,Arial,sans-serif; color:#123968; }
.sudoku-game { padding:18px; border:1px solid #abcaff; border-radius:22px; background:linear-gradient(145deg,#fff,#edf5ff); box-shadow:0 14px 36px #0d6efd24; }
.sudoku-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:16px; }.sudoku-heading h1 { margin:0; font-size:2rem; font-weight:800; letter-spacing:-.04em; }.sudoku-heading p { margin:5px 0 0; font-size:.86rem; color:#5a7192; }.sudoku-heading>span { display:grid; place-items:center; width:48px; height:48px; border:1px solid #bed5fa; border-radius:14px; background:#e2eeff; color:#0d6efd; font-size:1.7rem; }
.sudoku-toolbar { display:flex; align-items:end; gap:8px; margin-bottom:12px; }.sudoku-toolbar label { display:grid; gap:5px; flex:1; min-width:0; font-size:.8rem; }.sudoku-toolbar select,.sudoku-game button { font:600 .84rem/1.3 Roboto,Arial,sans-serif; }.sudoku-toolbar select { width:100%; padding:10px; border:1px solid #abcaff; border-radius:10px; color:#123968; background:#fff; min-height:42px; }
.sudoku-game button { cursor:pointer; touch-action:manipulation; }.sudoku-toolbar button { min-height:42px; padding:10px 12px; border:1px solid #0d6efd; border-radius:10px; color:#fff; background:#0d6efd; box-shadow:0 3px 9px #0d6efd24; }
.sudoku-stats { display:flex; justify-content:space-between; margin-bottom:10px; font-size:.8rem; }.sudoku-stats strong { font-variant-numeric:tabular-nums; margin-left:5px; }
.sudoku-board { display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); grid-template-rows:repeat(9,minmax(0,1fr)); aspect-ratio:1; border:2px solid #3269ad; border-radius:5px; overflow:hidden; background:#fff; }
.sudoku-board .sudoku-cell { display:grid; place-items:center; position:relative; width:100%; height:100%; min-width:0; padding:0; margin:0; border:0; border-right:1px solid #d2dfef; border-bottom:1px solid #d2dfef; border-radius:0; background:#fff; color:#0d6efd; font:500 clamp(19px,5.2vw,28px)/1 system-ui,sans-serif; box-shadow:none; }
.sudoku-board .sudoku-cell:nth-child(3n) { border-right:2px solid #3269ad; }.sudoku-board .sudoku-cell:nth-child(9n) { border-right:0; }.sudoku-board .sudoku-cell:nth-child(n+19):nth-child(-n+27),.sudoku-board .sudoku-cell:nth-child(n+46):nth-child(-n+54) { border-bottom:2px solid #3269ad; }.sudoku-board .sudoku-cell:nth-child(n+73) { border-bottom:0; }
.sudoku-board .sudoku-cell.given { color:#123968; font-weight:750; background:#f5f8fc; }.sudoku-board .sudoku-cell.related { background:#edf4fe; }.sudoku-board .sudoku-cell.matching { background:#d7e8ff; }.sudoku-board .sudoku-cell.selected { background:#bdd9ff; box-shadow:inset 0 0 0 2px #0d6efd; }.sudoku-board .sudoku-cell.conflict { color:#b3263a; background:#ffe4e8; }.sudoku-board .sudoku-cell.selected.conflict { box-shadow:inset 0 0 0 2px #b3263a; }
.sudoku-notes { width:100%; height:100%; display:grid; grid-template-columns:repeat(3,1fr); grid-template-rows:repeat(3,1fr); padding:2px; color:#637896; font:500 clamp(8px,2.1vw,11px)/1 system-ui,sans-serif; }.sudoku-notes span { display:grid; place-items:center; }
.sudoku-actions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin-top:12px; }.sudoku-actions button { min-height:42px; border:1px solid #b7d0f5; border-radius:10px; background:#fff; color:#195798; padding:6px 3px; overflow-wrap:anywhere; }.sudoku-actions button.active { background:#0d6efd; color:#fff; }.sudoku-game button:disabled { opacity:.45; cursor:default; }.sudoku-numbers { display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); gap:5px; margin-top:10px; }.sudoku-numbers button { min-width:0; min-height:44px; padding:0; border:1px solid #b7d0f5; border-radius:8px; background:#e3efff; color:#0b58bc; font-size:1.3rem; box-shadow:0 2px 0 #bbd4f7; }
.sudoku-status { min-height:2.5em; margin:12px 0 0; font-size:.8rem; line-height:1.4; }.sudoku-help { margin-top:15px; color:#536e90; font-size:.82rem; line-height:1.6; }.sudoku-help p { margin:4px 0; }.sudoku-game:not(.ready) .sudoku-board,.sudoku-game:not(.ready) .sudoku-actions,.sudoku-game:not(.ready) .sudoku-numbers { pointer-events:none; opacity:.5; }
.sudoku-result { display:none; }.sudoku-result .close-btn { position:absolute; right:10px; top:8px; border:0; background:transparent; font-size:1.3rem; color:#123968; }.sudoku-shell button:focus-visible,.sudoku-shell select:focus-visible { outline:3px solid #ffb43b; outline-offset:2px; }
@media(max-width:480px) { .sudoku-game { padding:12px; }.sudoku-heading { margin-bottom:12px; }.sudoku-heading h1 { font-size:1.7rem; }.sudoku-heading p { font-size:.76rem; }.sudoku-numbers { gap:3px; }.sudoku-actions button { font-size:.72rem; }.sudoku-shell { margin-top:8px; } }
