body[data-ui="sudoku"] .shell{max-width:1080px;padding-bottom:64px}
body[data-ui="sudoku"] .intro{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:18px}
body[data-ui="sudoku"] .intro h1{font-size:clamp(38px,6vw,56px)}
body[data-ui="sudoku"] .intro p{max-width:54ch}
.difficulty{display:flex;gap:5px;padding:5px;border:2px solid #26615d;border-radius:999px;background:#e4f5ee;white-space:nowrap}
.difficulty button{min-width:65px;padding:8px 10px;border:0;border-radius:999px;background:transparent;color:#194a47;font:900 13px 'Nunito Sans',sans-serif;cursor:pointer}
.difficulty button[aria-pressed="true"]{background:#2fc6bd;color:#25201f;box-shadow:0 2px 6px #235d5940}
.sudoku-stage{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;padding:28px;border-radius:20px;background:#f4b95d;box-shadow:0 16px 34px #2b241e35}
.board-side{min-width:0}.sudoku-stats{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 10px;color:#342720;font-size:14px;font-weight:1000}.sudoku-stats span:first-child{padding:6px 12px;border-radius:999px;background:#fffdf8}.sudoku-stats #timer{font-variant-numeric:tabular-nums;font-size:20px}
.sudoku-stage .play-guide{max-width:540px;margin:0 auto 12px;padding:10px 14px;border-radius:10px;background:#f8f5ef;color:#242221;font-size:14px;font-weight:800;line-height:1.45}
.board-wrap{position:relative;width:min(100%,540px);aspect-ratio:1;margin:auto;border:3px solid #285f5b;border-radius:7px;overflow:hidden;background:#fffdf8;box-shadow:0 8px 0 #66492733}
.sudoku-board{display:grid;width:100%;height:100%;grid-template-columns:repeat(9,minmax(0,1fr));grid-template-rows:repeat(9,minmax(0,1fr))}
.sudoku-cell{position:relative;display:grid;place-items:center;min-width:0;min-height:0;padding:0;border:0;border-right:1px solid #bacbc2;border-bottom:1px solid #bacbc2;border-radius:0;background:#fffdf8;color:#165c57;font:900 clamp(17px,3.5vw,30px) 'Nunito Sans',sans-serif;cursor:pointer}
.sudoku-cell:nth-child(9n){border-right:0}.sudoku-cell:nth-child(n+73){border-bottom:0}.sudoku-cell.box-right{border-right:3px solid #285f5b}.sudoku-cell.box-bottom{border-bottom:3px solid #285f5b}
.sudoku-cell.given{color:#282521;background:#f4f0e8}.sudoku-cell.peer{background:#eaf3ed}.sudoku-cell.same{background:#d8f4eb}.sudoku-cell.selected{z-index:1;background:#8be2d4;box-shadow:inset 0 0 0 2px #176a62}.sudoku-cell.conflict{color:#a93631;background:#ffe2d8}.sudoku-cell.selected.conflict{background:#ffc8b8}
.sudoku-cell:focus-visible{z-index:2;outline:3px solid #d97726;outline-offset:-3px}
.note-grid{display:grid;width:100%;height:100%;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);color:#5a7770;font:800 clamp(8px,1.3vw,12px) 'Nunito Sans',sans-serif;line-height:1}.note-grid span{display:grid;place-items:center}
.pause-cover{position:absolute;inset:0;display:grid;place-items:center;background:#f8f5ef;color:#215a55;font-size:clamp(19px,3vw,28px);font-weight:1000}.pause-cover[hidden]{display:none}
.board-message{min-height:24px;margin:16px 0 0;text-align:center;color:#503a26;font-size:14px;font-weight:800}
.control-side{display:flex;flex-direction:column;gap:17px;min-width:0;padding:23px;border-radius:17px;background:#f8f5ef}.control-heading span{font-size:22px;font-weight:1000}.control-heading p{margin:6px 0 0;color:#625b52;font-size:14px;line-height:1.5}
.number-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.number-pad button{min-height:56px;border:2px solid #b7d7cd;border-radius:11px;background:#fffdf8;color:#215f5a;font:1000 26px 'Nunito Sans',sans-serif;cursor:pointer}.number-pad button:hover{background:#d8f4eb}.number-pad button:disabled{opacity:.4;cursor:default}
.tool-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.tool-grid button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:6px;border:1px solid #bdd4cc;border-radius:11px;background:#fffdf8;color:#25423d;font:900 13px 'Nunito Sans',sans-serif;cursor:pointer}.tool-grid button:hover{background:#e6f5ee}.tool-grid button[aria-pressed="true"]{background:#2fc6bd;border-color:#176b63;color:#25201f}.tool-grid button:disabled{opacity:.5;cursor:default}.tool-symbol{font-size:20px;line-height:1}
.game-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:auto}.game-actions button{min-height:45px;border:2px solid #285f5b;border-radius:11px;background:#fffdf8;color:#24514b;font:1000 13px 'Nunito Sans',sans-serif;cursor:pointer}.game-actions #newButton{background:#2fc6bd;color:#25201f}.game-actions button:hover{filter:brightness(1.06)}.save-note{margin:0;color:#70695e;font-size:12px;text-align:center}
@media(max-width:900px){.sudoku-stage{grid-template-columns:minmax(0,1fr) 230px;gap:14px;padding:18px}.control-side{padding:16px}.number-pad button{min-height:46px}}
@media(max-width:720px){body[data-ui="sudoku"] .intro{display:block}.difficulty{width:max-content;max-width:100%;margin-top:18px}.sudoku-stage{grid-template-columns:1fr}.control-side{display:grid;grid-template-columns:1fr 1fr;align-items:start}.control-heading,.number-pad,.game-actions,.save-note{grid-column:1/-1}.number-pad{grid-template-columns:repeat(9,1fr)}.number-pad button{min-height:45px;font-size:20px}.tool-grid{grid-column:1/-1;grid-template-columns:repeat(4,1fr)}}
@media(max-width:520px){body[data-ui="sudoku"] .shell{width:min(100% - 20px,1080px);padding-top:16px}.sudoku-stage{padding:12px;gap:12px}.sudoku-stats{font-size:12px}.sudoku-stats #timer{font-size:17px}.sudoku-cell{font-size:clamp(16px,6vw,24px)}.note-grid{font-size:8px}.control-side{padding:14px}.number-pad{gap:3px}.number-pad button{min-height:36px;border-radius:7px;font-size:16px}.tool-grid{grid-template-columns:repeat(2,1fr)}}
