.sudoku-page{--sudoku-ink:#152023;--sudoku-teal:#00b8b5;--sudoku-teal-soft:#dff8f5;--sudoku-yellow:#f6d95c;--sudoku-red:#ef5e54;--sudoku-line:#bac5c3;--sudoku-paper:#f7f5ee}
.sudoku-native-shell{overflow:hidden;border:1px solid #c9ceca;border-radius:22px;background:#fff;box-shadow:0 24px 70px rgba(21,32,35,.12)}
.sudoku-native-shell>.native-game-toolbar{border-bottom:1px solid #c9ceca;background:#172124;color:#fff}
.sudoku-native-shell>.native-game-toolbar>span{color:#7ce4df}
.sudoku-native-shell>.native-game-toolbar button{border-color:#526064;color:#fff;background:#222e31}
.sudoku-app{position:relative;padding:clamp(14px,2.8vw,34px);background:radial-gradient(circle at 95% 4%,rgba(0,184,181,.12),transparent 30%),linear-gradient(145deg,#fff,var(--sudoku-paper))}
.sudoku-levels{display:flex;align-items:center;gap:7px;overflow-x:auto;padding:1px 1px 14px;scrollbar-width:none}
.sudoku-levels::-webkit-scrollbar{display:none}
.sudoku-levels small{flex:0 0 auto;margin-right:5px;color:#687476;font:800 9px 'DM Mono',monospace;letter-spacing:.12em}
.sudoku-levels button{flex:0 0 auto;min-height:42px;padding:9px 14px;border:1px solid #cbd3d1;border-radius:999px;background:#fff;color:#394548;font:800 10px 'DM Mono',monospace;letter-spacing:.045em;cursor:pointer}
.sudoku-levels button:hover,.sudoku-levels button.is-active{border-color:var(--sudoku-teal);background:var(--sudoku-teal);color:#071b1c}
.sudoku-layout{display:grid;grid-template-columns:minmax(0,680px) minmax(260px,1fr);gap:clamp(18px,3vw,42px);align-items:start}
.sudoku-board-wrap{position:relative;width:100%;max-width:680px;aspect-ratio:1;overflow:hidden;border:3px solid var(--sudoku-ink);border-radius:10px;background:#fff;box-shadow:0 18px 45px rgba(20,34,37,.13);user-select:none;-webkit-user-select:none;touch-action:manipulation}
.sudoku-board{display:grid;width:100%;height:100%;grid-template-columns:repeat(9,1fr);grid-template-rows:repeat(9,1fr)}
.sudoku-cell{position:relative;display:grid;place-items:center;min-width:0;min-height:0;padding:0;border:0;border-right:1px solid var(--sudoku-line);border-bottom:1px solid var(--sudoku-line);border-radius:0;background:#fff;color:var(--sudoku-ink);font:800 clamp(18px,3.2vw,38px)/1 Manrope,Arial,sans-serif;cursor:pointer;outline:none;transition:background .12s,color .12s,box-shadow .12s;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.sudoku-cell:nth-child(9n){border-right:0}
.sudoku-cell:nth-child(n+73){border-bottom:0}
.sudoku-cell:nth-child(9n+3),.sudoku-cell:nth-child(9n+6){border-right:3px solid var(--sudoku-ink)}
.sudoku-cell:nth-child(n+19):nth-child(-n+27),.sudoku-cell:nth-child(n+46):nth-child(-n+54){border-bottom:3px solid var(--sudoku-ink)}
.sudoku-cell:hover{background:#f3fbfa}
.sudoku-cell.is-related{background:#edf4f3}
.sudoku-cell.is-same{background:#d8eeec;color:#087c7c}
.sudoku-cell.is-selected{z-index:2;background:var(--sudoku-teal-soft);box-shadow:inset 0 0 0 3px var(--sudoku-teal)}
.sudoku-cell.is-given{background:#f2f0e9;color:#172124;font-weight:900;cursor:default}
.sudoku-cell.is-given.is-related{background:#e5ecea}
.sudoku-cell.is-given.is-selected{background:#d9eeec}
.sudoku-cell.is-wrong{background:#ffe7e3;color:#c52825}
.sudoku-cell.is-hint{animation:sudoku-hint .75s ease both}
.sudoku-cell.is-flash{animation:sudoku-shake .28s ease}
.sudoku-notes{position:absolute;inset:5%;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);color:#718183;font:700 clamp(7px,1vw,11px)/1 'DM Mono',monospace}
.sudoku-notes i{display:grid;place-items:center;font-style:normal}
.sudoku-pause,.sudoku-loading{position:absolute;z-index:8;inset:0;display:grid;place-items:center;padding:25px;background:rgba(20,31,34,.94);color:#fff;text-align:center}
.sudoku-pause[hidden],.sudoku-loading[hidden]{display:none}
.sudoku-pause div,.sudoku-loading div{display:grid;justify-items:center;gap:12px}
.sudoku-pause strong,.sudoku-loading strong{font-size:clamp(28px,5vw,54px);letter-spacing:-.055em}
.sudoku-pause button{min-height:48px;padding:11px 21px;border:0;border-radius:999px;background:var(--sudoku-teal);color:#092123;font-weight:900;cursor:pointer}
.sudoku-loader-ring{width:48px;aspect-ratio:1;border:4px solid #435154;border-top-color:var(--sudoku-teal);border-radius:50%;animation:sudoku-spin .75s linear infinite}
.sudoku-panel{display:grid;gap:12px;min-width:0}
.sudoku-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.sudoku-stat{min-width:0;padding:14px 12px;border:1px solid #cbd2d0;border-radius:12px;background:#fff}
.sudoku-stat small{display:block;margin-bottom:5px;color:#768082;font:800 8px 'DM Mono',monospace;letter-spacing:.11em}
.sudoku-stat b{display:block;overflow:hidden;color:var(--sudoku-ink);font-size:clamp(16px,2.2vw,25px);letter-spacing:-.04em;text-overflow:ellipsis;white-space:nowrap}
.sudoku-status{min-height:50px;margin:0;padding:14px 15px;border-left:4px solid var(--sudoku-teal);border-radius:4px 12px 12px 4px;background:#e8f6f4;color:#334244;font-size:12px;line-height:1.5}
.sudoku-numpad{display:grid;grid-template-columns:repeat(5,minmax(44px,1fr));gap:7px}
.sudoku-numpad button{min-height:58px;border:1px solid #bdc7c5;border-radius:12px;background:#fff;color:var(--sudoku-ink);font-size:22px;font-weight:900;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.sudoku-numpad button:hover,.sudoku-numpad button:active{border-color:var(--sudoku-teal);background:var(--sudoku-teal-soft)}
.sudoku-numpad button[data-number="0"]{font-size:10px;letter-spacing:.05em}
.sudoku-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.sudoku-tools button,.sudoku-new{min-height:48px;padding:10px 12px;border:1px solid #bdc7c5;border-radius:10px;background:#fff;color:#2b3739;font:800 9px 'DM Mono',monospace;letter-spacing:.045em;cursor:pointer;touch-action:manipulation}
.sudoku-tools button:hover,.sudoku-tools button.is-active{border-color:var(--sudoku-ink);background:var(--sudoku-ink);color:#fff}
.sudoku-tools button.is-active{box-shadow:inset 0 -3px var(--sudoku-yellow)}
.sudoku-new{width:100%;border-color:var(--sudoku-teal);background:var(--sudoku-teal);color:#082021;font-size:11px}
.sudoku-shortcuts{margin:2px 0 0;padding:13px 15px;border:1px dashed #c4cecc;border-radius:10px;color:#707a7c;font:700 8px/1.7 'DM Mono',monospace;letter-spacing:.04em}
.sudoku-finish{width:min(520px,calc(100% - 28px));padding:0;border:0;border-radius:20px;background:#fff;color:var(--sudoku-ink);box-shadow:0 35px 100px rgba(0,0,0,.35)}
.sudoku-finish::backdrop{background:rgba(8,14,16,.74);backdrop-filter:blur(4px)}
.sudoku-finish>div{padding:clamp(28px,6vw,52px);text-align:center}
.sudoku-finish span{color:var(--sudoku-teal);font:800 10px 'DM Mono',monospace;letter-spacing:.14em}
.sudoku-finish h2{margin:12px 0 8px;font-size:clamp(38px,7vw,66px);letter-spacing:-.065em}
.sudoku-finish p{color:#657173;line-height:1.6}
.sudoku-finish menu{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:25px 0 0;padding:0}
.sudoku-finish button{min-height:48px;border:1px solid #c6cecc;border-radius:10px;background:#fff;font-weight:800;cursor:pointer}
.sudoku-finish button:last-child{border-color:var(--sudoku-teal);background:var(--sudoku-teal)}
.sudoku-native-shell:fullscreen{overflow:auto;border-radius:0;background:var(--sudoku-paper)}
.sudoku-native-shell:fullscreen .sudoku-app{min-height:calc(100vh - 55px);display:grid;align-content:center}
.sudoku-native-shell:fullscreen .sudoku-layout{width:min(1120px,calc(100vw - 40px));margin:auto}
@keyframes sudoku-spin{to{rotate:360deg}}
@keyframes sudoku-hint{0%{background:var(--sudoku-yellow);scale:.86}100%{scale:1}}
@keyframes sudoku-shake{25%{translate:-4px 0}75%{translate:4px 0}}
@media(max-width:900px){.sudoku-layout{grid-template-columns:1fr}.sudoku-board-wrap{justify-self:center}.sudoku-panel{grid-template-columns:1fr 1fr;align-items:start}.sudoku-stats,.sudoku-status,.sudoku-new,.sudoku-shortcuts{grid-column:1/-1}.sudoku-numpad,.sudoku-tools{align-self:stretch}}
@media(max-width:620px){.sudoku-page .wrap{width:min(calc(100% - 12px),var(--max))}.sudoku-native-shell{border-radius:14px}.sudoku-native-shell>.native-game-toolbar{padding:8px!important}.sudoku-native-shell>.native-game-toolbar>span{display:none}.sudoku-native-shell>.native-game-toolbar button{min-height:40px!important;padding:7px 9px!important}.sudoku-app{padding:8px}.sudoku-levels{padding-bottom:8px}.sudoku-levels small{display:none}.sudoku-levels button{min-height:40px;padding:8px 11px}.sudoku-layout{gap:10px}.sudoku-board-wrap{border-width:2px;border-radius:7px}.sudoku-cell{font-size:clamp(17px,7vw,27px)}.sudoku-cell:nth-child(9n+3),.sudoku-cell:nth-child(9n+6){border-right-width:2px}.sudoku-cell:nth-child(n+19):nth-child(-n+27),.sudoku-cell:nth-child(n+46):nth-child(-n+54){border-bottom-width:2px}.sudoku-notes{font-size:clamp(6px,2.3vw,9px)}.sudoku-panel{grid-template-columns:1fr}.sudoku-stats,.sudoku-status,.sudoku-new,.sudoku-shortcuts{grid-column:auto}.sudoku-stat{padding:10px 9px}.sudoku-numpad{grid-template-columns:repeat(5,minmax(44px,1fr));gap:5px}.sudoku-numpad button{min-height:48px;border-radius:9px}.sudoku-tools{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.sudoku-tools button{min-width:0;min-height:46px;padding:7px 3px;font-size:7px}.sudoku-shortcuts{display:none}.sudoku-finish menu{grid-template-columns:1fr}}
@media(max-width:350px){.sudoku-levels button{padding-inline:9px;font-size:9px}.sudoku-numpad button{min-height:46px}.sudoku-tools{grid-template-columns:repeat(2,1fr)}}
@media(prefers-reduced-motion:reduce){.sudoku-loader-ring,.sudoku-cell{animation:none!important;transition:none!important}}
