/* Classic Sudoku — self-contained game styles. */
.sudoku-panel { max-width: 780px; margin-inline: auto; }
.sudoku-toolbar, .sudoku-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin-bottom: 15px; }
.sudoku-toolbar select, .sudoku-toolbar button, .sudoku-actions button, .sudoku-keypad button { border: 1px solid #64748b; border-radius: 9px; padding: 10px 14px; background: #202d47; color: #fff; cursor: pointer; font: inherit; }
.sudoku-toolbar button:hover, .sudoku-actions button:hover, .sudoku-keypad button:hover { background: #34496f; }
.sudoku-toolbar #timer { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; }
.sudoku-message { text-align: center; min-height: 1.5em; margin: 10px 0; }
.sudoku-board { width: min(100%, 540px); aspect-ratio: 1; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); margin: 12px auto 18px; border: 3px solid #e2e8f0; background: #e2e8f0; }
.sudoku-cell { position: relative; min-width: 0; min-height: 0; border: 0; border-right: 1px solid #8a99b4; border-bottom: 1px solid #8a99b4; border-radius: 0; background: #16233a; color: #d6e6ff; font-size: clamp(15px, 3.6vw, 27px); font-weight: 650; cursor: pointer; padding: 0; }
.sudoku-cell:nth-child(3n) { border-right: 2px solid #e2e8f0; }
.sudoku-cell:nth-child(n+19):nth-child(-n+27), .sudoku-cell:nth-child(n+46):nth-child(-n+54) { border-bottom: 2px solid #e2e8f0; }
.sudoku-cell:nth-child(9n) { border-right: 0; }
.sudoku-cell:nth-child(n+73) { border-bottom: 0; }
.sudoku-cell.given { color: #fff; font-weight: 850; }
.sudoku-cell.peer { background: #243753; }
.sudoku-cell.same-number { background: #2b5273; }
.sudoku-cell.selected { background: #3665a0; outline: 2px solid #7dd3fc; outline-offset: -2px; z-index: 1; }
.sudoku-cell.conflict { background: #7b283b; color: #fff; }
.sudoku-cell.mistake { color: #ff9c9c; }
.sudoku-cell:focus-visible { outline: 3px solid #facc15; outline-offset: -3px; z-index: 2; }
.sudoku-cell .pencil { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); width: 100%; height: 100%; font-size: clamp(7px, 1.6vw, 12px); font-weight: 400; color: #a7c5e8; }
.sudoku-cell .pencil span { display: flex; align-items: center; justify-content: center; }
.sudoku-keypad { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 5px; max-width: 540px; margin: auto auto 12px; }
.sudoku-keypad button { padding: 11px 0; font-weight: 750; }
.sudoku-actions button.active { background: #1c7182; border-color: #5eead4; }
.sudoku-help { text-align: center; font-size: .9rem; opacity: .8; }
@media (max-width: 520px) { .sudoku-toolbar #timer { margin-left: 0; } .sudoku-board { border-width: 2px; } .sudoku-actions { gap: 6px; } .sudoku-actions button { padding: 9px; } .sudoku-cell { font-size: clamp(14px, 5vw, 23px); } }
