:root,body[data-theme=normal]{--bg: #f4f0eb;--surface: #ffffff;--surface-elevated: #ffffff;--surface-muted: #e8e4df;--text: #1e293b;--text-soft: #64748b;--accent: #6f8a80;--accent-soft: #e6f1ec;--error: #c0564b;--border: #d5ddd8;--board-border: #8a9ea6;--block-separator: #1e293b;--digit-given: #1e293b;--digit-user: #4a7a9b;--shadow-soft: 0 4px 12px rgba(15, 23, 42, .06);--shadow-board: 0 8px 24px rgba(15, 23, 42, .1);--board-size: 560px;--board-shell-size: 600px}body[data-theme=kids]{--bg: #e0f2fe;--surface: #ffffff;--surface-elevated: #ffffff;--surface-muted: #f0f9ff;--text: #0f172a;--text-soft: #475569;--accent: #0ea5e9;--accent-soft: #e0f2fe;--error: #f43f5e;--border: #bae6fd;--board-border: #0ea5e9;--block-separator: #0284c7;--digit-given: #0f172a;--digit-user: #7c3aed;--shadow-soft: 0 8px 16px rgba(14, 165, 233, .15);--shadow-board: 0 24px 48px rgba(2, 132, 199, .2);--board-size: 560px;--board-shell-size: 606px}body[data-animations=off] *{transition:none!important;animation:none!important}*{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;font-family:Avenir Next,Segoe UI,Helvetica Neue,sans-serif;font-size:15px;line-height:1.45;color:var(--text);background:var(--bg);transition:background-color .3s ease}body[data-theme=kids]{background:linear-gradient(180deg,#bae6fd,#e0f2fe 40%,#f0f9ff);background-attachment:fixed}.app-shell{max-width:1200px;margin:0 auto;padding:0 24px 12px;overflow-x:clip}.app-header{height:48px;display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;border-bottom:1px solid var(--border)}.app-header h1{margin:0;font-size:24px;font-weight:680;letter-spacing:.01em}body[data-theme=kids] .app-header h1{font-size:28px;font-weight:900;letter-spacing:.06em;background:linear-gradient(90deg,#dc2626,#d97706,#16a34a,#2563eb,#7c3aed,#db2777);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}nav{display:flex;align-items:center;gap:8px;color:var(--text-soft)}nav a{text-decoration:none;color:var(--text-soft);font-size:14px}nav a:hover{color:var(--text)}.layout{display:grid;align-items:start}.layout.sidebar-open{grid-template-columns:minmax(760px,1fr) 360px;gap:24px}.layout.sidebar-collapsed{grid-template-columns:1fr;gap:0}.game-column{min-width:760px;display:flex;flex-direction:column;align-items:center;gap:10px}.game-header{width:var(--board-size);margin:0 auto 8px;display:flex;flex-direction:column;gap:4px}.game-header-top{display:flex;align-items:flex-start;justify-content:space-between}.toolbar-inline{display:flex;align-items:flex-start;gap:16px}.game-header-right{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:2px}.game-time{font-size:14px;color:var(--text-soft);font-weight:500}.time-value{font-size:24px;font-weight:800;color:var(--text);font-variant-numeric:tabular-nums;letter-spacing:.02em}body[data-theme=kids] .time-value{color:#7c3aed;text-shadow:1px 1px 0 #ddd6fe}.pause-btn{background:none;border:none;color:var(--text-soft);font-size:13px;font-weight:600;padding:2px 0;cursor:pointer;display:flex;align-items:center;gap:4px}.pause-btn:hover{color:var(--text)}body[data-theme=kids] .pause-btn{color:#7c3aed;font-weight:700}.game-header-meta{display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:600}.game-difficulty{color:var(--text-soft)}.difficulty-val{color:var(--accent);text-transform:capitalize}.settings-btn{background:var(--surface-elevated);border:2px solid var(--border);width:36px;height:36px;padding:0;border-radius:50%;font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.settings-btn:hover{background:var(--surface-muted)}.board-shell{width:var(--board-shell-size);height:var(--board-shell-size);padding:18px;border-radius:20px;background:var(--surface-muted);border:3px solid var(--board-border);box-shadow:var(--shadow-board);transition:box-shadow .18s ease,transform .18s ease;position:relative}.board-shell:hover{box-shadow:var(--shadow-board)}body[data-theme=kids] .board-shell{border-radius:24px;border:5px solid #38bdf8;background:#f0f9ff;box-shadow:var(--shadow-board),0 0 0 5px #38bdf833}body[data-theme=kids] .board-shell:hover{box-shadow:var(--shadow-board),0 0 0 5px #38bdf833}.sudoku-board{width:var(--board-size);height:var(--board-size);aspect-ratio:1 / 1;display:grid;gap:2px;padding:2px;border-radius:12px;background:#c8d4ce;border:1px solid #b5c5be}body[data-theme=kids] .sudoku-board{background:#7dd3fc;border-color:#38bdf8;border-radius:18px;gap:3px;padding:3px}.sudoku-board.size-4{grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(4,1fr)}.sudoku-board.size-6{grid-template-columns:repeat(6,1fr);grid-template-rows:repeat(6,1fr)}.sudoku-board.size-9{grid-template-columns:repeat(9,1fr);grid-template-rows:repeat(9,1fr)}.cell{border:1px solid var(--border);border-radius:8px;background:var(--surface);display:flex;align-items:center;justify-content:center;position:relative;color:var(--text);font-size:clamp(1.45rem,2.1vw,1.9rem);font-weight:600;box-shadow:inset 0 1px 1px #ffffffe6,inset 0 -1px 2px #12231c0a;transition:background-color .15s ease,border-color .15s ease,color .15s ease;cursor:pointer}.cell[data-block="0"],.cell[data-block="2"],.cell[data-block="4"],.cell[data-block="6"],.cell[data-block="8"]{background:#f0eeea}body[data-theme=kids] .cell{border-width:2px;border-radius:10px;font-weight:800;box-shadow:inset 0 2px 3px #ffffffe6,inset 0 -2px 3px #0000000a}body[data-theme=kids] .cell[data-block="0"]{background:#fef2f2;border-color:#fca5a5}body[data-theme=kids] .cell[data-block="1"]{background:#f0fdf4;border-color:#86efac}body[data-theme=kids] .cell[data-block="2"]{background:#eff6ff;border-color:#93c5fd}body[data-theme=kids] .cell[data-block="3"]{background:#fefce8;border-color:#fde047}body[data-theme=kids] .cell[data-block="4"]{background:#fdf4ff;border-color:#d8b4fe}body[data-theme=kids] .cell[data-block="5"]{background:#fff7ed;border-color:#fdba74}body[data-theme=kids] .cell[data-block="6"]{background:#ecfdf5;border-color:#6ee7b7}body[data-theme=kids] .cell[data-block="7"]{background:#fef2f2;border-color:#fca5a5}body[data-theme=kids] .cell[data-block="8"]{background:#eff6ff;border-color:#93c5fd}body[data-theme=kids] .cell[data-value="1"] span{color:#dc2626}body[data-theme=kids] .cell[data-value="2"] span{color:#2563eb}body[data-theme=kids] .cell[data-value="3"] span{color:#16a34a}body[data-theme=kids] .cell[data-value="4"] span{color:#d97706}body[data-theme=kids] .cell[data-value="5"] span{color:#7c3aed}body[data-theme=kids] .cell[data-value="6"] span{color:#db2777}body[data-theme=kids] .cell[data-value="7"] span{color:#0891b2}body[data-theme=kids] .cell[data-value="8"] span{color:#4f46e5}body[data-theme=kids] .cell[data-value="9"] span{color:#be123c}.cell.selected{background:var(--accent-soft);border-color:var(--accent);outline:2px solid var(--accent);outline-offset:-2px}body[data-theme=kids] .cell.selected{outline-width:3px;outline-color:#f59e0b;border-color:#f59e0b;background:#fef9c3}.cell.related{background:#dce4ea}body[data-theme=kids] .cell.related{background:#c4dff5}.cell.given span{color:var(--digit-given);font-weight:600}.cell.user-value span{color:var(--digit-user);font-weight:500}.cell.incorrect span{color:var(--error)}body[data-theme=kids] .cell.incorrect{animation:kidsShake .4s ease}.cell.has-notes{border-color:#e8a0a0;box-shadow:inset 0 0 0 1px #c8505033,inset 0 1px 1px #ffffffe6}body[data-theme=kids] .cell.has-notes{border-color:#f87171;box-shadow:inset 0 0 0 1px #f8717140,inset 0 2px 3px #ffffffe6}@keyframes kidsShake{0%,to{transform:translate(0)}25%{transform:translate(-4px)}75%{transform:translate(4px)}}.cell small{position:absolute;bottom:4px;left:6px;right:6px;font-size:11px;text-align:center;color:var(--text-soft)}.cell.row-solved{animation:rowSweep .52s ease forwards}@keyframes rowSweep{0%{background:color-mix(in srgb,var(--accent-soft) 22%,var(--surface-elevated))}60%{background:color-mix(in srgb,var(--accent-soft) 92%,var(--surface-elevated))}to{background:var(--surface-elevated)}}.cell.hinted{border-color:color-mix(in srgb,var(--accent) 45%,var(--border));box-shadow:inset 0 1px 1px #ffffffe6,inset 0 -1px 2px #12231c0f,0 0 0 2px color-mix(in srgb,var(--accent-soft) 75%,transparent)}.cell.block-right{border-right-width:4px!important;border-right-color:var(--block-separator)!important}.cell.block-bottom{border-bottom-width:4px!important;border-bottom-color:var(--block-separator)!important}body[data-theme=kids] .cell.block-right{border-right-color:#38bdf8!important}body[data-theme=kids] .cell.block-bottom{border-bottom-color:#38bdf8!important}.hint-value{position:absolute;right:7px;bottom:5px;font-style:normal;font-size:12px;font-weight:650;color:color-mix(in srgb,var(--accent) 72%,#ffffff);opacity:.92}.section-label{text-align:center;font-size:13px;font-weight:600;color:var(--text-soft);letter-spacing:.03em;margin-bottom:6px}body[data-theme=kids] .section-label{color:#7c3aed;font-weight:700;font-size:14px}.number-pad-section,.toolbar-section{width:var(--board-size);margin:0 auto}.number-pad{width:100%;display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:8px}.number-pad.size-9{gap:6px}button,select,input{font:inherit;cursor:pointer}.pad-number{width:50px;height:50px;border-radius:50%;border:2px solid var(--border);background:var(--surface);color:var(--text);font-size:20px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .14s ease,border-color .14s ease,transform .12s ease;box-shadow:0 2px 4px #0000000f}.pad-number:hover{background:var(--surface-muted);border-color:#aab5af}.pad-number:active{transform:translateY(1px);box-shadow:none}.pad-number:disabled{opacity:.35;cursor:not-allowed}body[data-theme=kids] .pad-number{width:54px;height:54px;font-size:24px;font-weight:800;transform:translateY(-3px);transition:transform .1s ease,box-shadow .1s ease}body[data-theme=kids] .pad-number[data-digit="1"]{color:#dc2626;background:#fef2f2;box-shadow:0 4px #dc2626;border-color:#fecaca}body[data-theme=kids] .pad-number[data-digit="2"]{color:#2563eb;background:#eff6ff;box-shadow:0 4px #2563eb;border-color:#bfdbfe}body[data-theme=kids] .pad-number[data-digit="3"]{color:#16a34a;background:#f0fdf4;box-shadow:0 4px #16a34a;border-color:#bbf7d0}body[data-theme=kids] .pad-number[data-digit="4"]{color:#d97706;background:#fffbeb;box-shadow:0 4px #d97706;border-color:#fde68a}body[data-theme=kids] .pad-number[data-digit="5"]{color:#7c3aed;background:#faf5ff;box-shadow:0 4px #7c3aed;border-color:#ddd6fe}body[data-theme=kids] .pad-number[data-digit="6"]{color:#db2777;background:#fdf2f8;box-shadow:0 4px #db2777;border-color:#fbcfe8}body[data-theme=kids] .pad-number[data-digit="7"]{color:#0891b2;background:#ecfeff;box-shadow:0 4px #0891b2;border-color:#a5f3fc}body[data-theme=kids] .pad-number[data-digit="8"]{color:#4f46e5;background:#eef2ff;box-shadow:0 4px #4f46e5;border-color:#c7d2fe}body[data-theme=kids] .pad-number[data-digit="9"]{color:#be123c;background:#fff1f2;box-shadow:0 4px #be123c;border-color:#fecdd3}body[data-theme=kids] .pad-number:active{transform:translateY(1px);box-shadow:0 0 0 transparent}.toolbar{width:100%;display:flex;align-items:flex-start;justify-content:center;gap:24px;padding:0}.tool-btn{display:flex;flex-direction:column;align-items:center;gap:4px;background:none;border:none;padding:0;cursor:pointer;color:var(--text-soft);transition:color .14s ease}.tool-btn:hover{color:var(--text)}.tool-icon{width:48px;height:48px;border-radius:50%;border:2px solid var(--border);background:var(--surface);display:flex;align-items:center;justify-content:center;font-size:20px;box-shadow:0 2px 4px #0000000f;transition:background-color .14s ease,border-color .14s ease,transform .12s ease,box-shadow .12s ease}.tool-btn:hover .tool-icon{background:var(--surface-muted);border-color:#aab5af}.tool-btn:active .tool-icon{transform:translateY(1px);box-shadow:none}.tool-label{font-size:12px;font-weight:600;line-height:1}.tool-btn.active .tool-icon{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.tool-btn.active .tool-label{color:var(--accent)}body[data-theme=kids] .tool-btn.active .tool-icon{background:#dbeafe;border-color:#3b82f6}body[data-theme=kids] .tool-btn.active .tool-label{color:#3b82f6}body[data-theme=kids] .tool-icon{width:56px;height:56px;font-size:24px;border-width:2px;transform:translateY(-2px);transition:transform .1s ease,box-shadow .1s ease}body[data-theme=kids] .tool-label{font-size:13px;font-weight:700}body[data-theme=kids] .tool-hint .tool-icon{color:#d97706;border-color:#fde68a;background:#fffbeb;box-shadow:0 4px #d97706}body[data-theme=kids] .tool-hint .tool-label{color:#d97706}body[data-theme=kids] .tool-undo .tool-icon{color:#2563eb;border-color:#bfdbfe;background:#eff6ff;box-shadow:0 4px #2563eb}body[data-theme=kids] .tool-undo .tool-label{color:#2563eb}body[data-theme=kids] .tool-erase .tool-icon{color:#64748b;border-color:#cbd5e1;background:#f1f5f9;box-shadow:0 4px #94a3b8}body[data-theme=kids] .tool-erase .tool-label{color:#64748b}body[data-theme=kids] .tool-notes .tool-icon{color:#16a34a;border-color:#86efac;background:#f0fdf4;box-shadow:0 4px #16a34a}body[data-theme=kids] .tool-notes .tool-label{color:#16a34a}body[data-theme=kids] .tool-btn:active .tool-icon{transform:translateY(1px);box-shadow:0 0 0 transparent}.solve-controls{width:var(--board-size);margin:0 auto;display:flex;align-items:center;justify-content:center;gap:12px}.solve-btn{height:40px;padding:0 18px;min-width:0;font-size:14px;font-weight:600;display:flex;align-items:center;gap:6px}.solve-btn.active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.status-row{min-height:16px;display:flex;align-items:center;justify-content:center;gap:12px}.status{margin:0;font-size:20px;color:var(--text-soft)}.status.error{color:var(--error)}.solved-banner{display:flex;flex-direction:column;align-items:center;gap:8px;padding:20px;border-radius:16px;background:var(--surface-elevated);border:2px solid var(--accent);box-shadow:var(--shadow-soft);animation:solvedPop .4s cubic-bezier(.16,1,.3,1)}@keyframes solvedPop{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}.solved-text{margin:0;font-size:24px;font-weight:800;color:var(--accent)}body[data-theme=kids] .solved-text{font-size:30px;background:linear-gradient(90deg,#dc2626,#d97706,#16a34a,#2563eb,#7c3aed);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.solved-time{margin:0;font-size:16px;color:var(--text-soft);font-weight:600}.solved-btn{margin-top:4px;background:var(--accent);color:#fff;border-color:var(--accent);font-weight:700}.solved-btn:hover{background:var(--accent);opacity:.9;border-color:var(--accent)}body[data-theme=kids] .solved-banner{border-color:#f59e0b;background:#fffbeb;box-shadow:0 8px 24px #f59e0b33}body[data-theme=kids] .solved-btn{background:#f59e0b;border-color:#f59e0b;font-size:17px;box-shadow:0 4px #d97706;transform:translateY(-2px)}body[data-theme=kids] .solved-btn:active{transform:translateY(1px);box-shadow:none}.sidebar-wrap.open{animation:sidebarReveal .22s ease}@keyframes sidebarReveal{0%{opacity:0;transform:translate(12px)}to{opacity:1;transform:translate(0)}}.settings-panel{width:360px;background:var(--surface-elevated);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow-soft);padding:20px;max-height:calc(100vh - 112px);overflow-y:auto}.settings-panel h2{margin:0;font-size:22px}.panel-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.panel-close{width:36px;min-width:36px;height:36px;padding:0}.settings-section{margin-bottom:20px}.settings-section h3{margin:0 0 10px;font-size:16px}.settings-panel label{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;font-size:14px}.settings-panel select{height:38px;padding:0 10px;min-width:170px;border:1px solid var(--border);border-radius:12px;background:var(--surface-elevated);color:var(--text)}.export-row{display:flex;gap:8px}.export-row .btn{flex:1 1 auto;min-width:0}.settings-panel input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent)}.privacy-text{margin:0;font-size:13px;line-height:1.5;color:var(--text-soft)}.btn{height:44px;padding:0 20px;min-width:104px;font-size:15px;font-weight:600;border:1px solid var(--border);border-radius:12px;background:var(--surface-elevated);color:var(--text);transition:background-color .14s ease,border-color .14s ease,transform .12s ease}.btn.tertiary{background:var(--surface);color:var(--text-soft)}.btn:hover{background:var(--surface-muted);border-color:#b8c9c1}.btn:active{transform:translateY(1px)}.icon-toggle{font-size:18px;font-weight:700;line-height:1}.kids-decorations{position:absolute;inset:0;pointer-events:none}.kids-decorations .deco{position:absolute;font-size:32px;z-index:10;line-height:1;filter:drop-shadow(0 3px 5px rgba(0,0,0,.15));animation:decoFloat 3s ease-in-out infinite}.deco-1{top:-16px;left:-16px;animation-delay:0s}.deco-2{top:-16px;left:calc(33.3% - 10px);animation-delay:.3s}.deco-3{top:-16px;right:-16px;animation-delay:.6s}.deco-4{top:calc(33.3% - 10px);left:-18px;animation-delay:.9s}.deco-5{top:calc(33.3% - 10px);left:calc(50% - 16px);animation-delay:1.2s}.deco-6{top:calc(33.3% - 10px);right:-18px;animation-delay:1.5s}.deco-7{bottom:-16px;left:-16px;animation-delay:1.8s}.deco-8{bottom:-16px;left:calc(50% - 16px);animation-delay:2.1s}.deco-9{bottom:-16px;right:-16px;animation-delay:2.4s}@keyframes decoFloat{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}.storage-notice{position:fixed;bottom:16px;left:50%;transform:translate(-50%);width:min(860px,calc(100vw - 48px));background:var(--surface-elevated);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-soft);padding:10px 12px;display:flex;justify-content:space-between;align-items:center;gap:12px}.storage-notice p{margin:0;font-size:13px}.storage-notice button{height:36px;padding:0 14px;border:1px solid var(--border);border-radius:10px;background:var(--surface-muted);color:var(--text)}.legal-page{background:var(--surface-elevated);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow-soft);padding:20px;max-width:860px}.legal-page h1{margin:0}.legal-page .panel-close{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.theme-chooser-overlay{position:fixed;inset:0;background:#0f172a8c;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:200;display:flex;align-items:center;justify-content:center;animation:overlayFadeIn .3s ease}@keyframes overlayFadeIn{0%{opacity:0}to{opacity:1}}.theme-chooser{background:#fff;border-radius:24px;box-shadow:0 24px 64px #0f172a40,0 0 0 1px #0f172a14;padding:36px 40px 32px;max-width:560px;width:calc(100% - 32px);animation:chooserSlideUp .4s cubic-bezier(.16,1,.3,1)}@keyframes chooserSlideUp{0%{opacity:0;transform:translateY(24px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}.theme-chooser-title{margin:0 0 28px;text-align:center;font-size:26px;font-weight:800;color:#1e293b;letter-spacing:.01em}.theme-preview-row{display:flex;gap:20px;justify-content:center}.theme-preview{flex:1;max-width:230px;display:flex;flex-direction:column;align-items:center;gap:14px;padding:20px 16px 18px;border:2px solid #e2e8f0;border-radius:18px;background:#fafafa;cursor:pointer;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.theme-preview:hover{transform:scale(1.04);border-color:#94a3b8;box-shadow:0 8px 24px #0f172a1f}.theme-preview:active{transform:scale(.98)}.preview-board{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:3px;width:140px;height:140px;border-radius:12px;overflow:hidden;padding:3px}.preview-board span{display:flex;align-items:center;justify-content:center;font-weight:700;font-size:22px;border-radius:6px}.preview-board.normal{background:#c8d4ce}.preview-board.normal span{color:#1e293b;font-weight:600}.preview-board.normal span:nth-child(1),.preview-board.normal span:nth-child(3),.preview-board.normal span:nth-child(5),.preview-board.normal span:nth-child(7),.preview-board.normal span:nth-child(9){background:#f0eeea}.preview-board.normal span:nth-child(2),.preview-board.normal span:nth-child(4),.preview-board.normal span:nth-child(6),.preview-board.normal span:nth-child(8){background:#fff}.preview-board.kids{background:#7dd3fc}.preview-board.kids span{font-weight:800}.preview-board.kids span:nth-child(1){background:#fef2f2;color:#dc2626}.preview-board.kids span:nth-child(2){background:#f0fdf4;color:#16a34a}.preview-board.kids span:nth-child(3){background:#eff6ff;color:#4f46e5}.preview-board.kids span:nth-child(4){background:#fefce8;color:#d97706}.preview-board.kids span:nth-child(5){background:#fdf4ff;color:#7c3aed}.preview-board.kids span:nth-child(6){background:#fff7ed;color:#db2777}.preview-board.kids span:nth-child(7){background:#ecfdf5;color:#0891b2}.preview-board.kids span:nth-child(8){background:#fef2f2;color:#2563eb}.preview-board.kids span:nth-child(9){background:#eff6ff;color:#be123c}.preview-label{font-size:18px;font-weight:700;color:#334155;letter-spacing:.02em}@media(max-width:430px){.theme-chooser{padding:24px 20px 20px}.theme-chooser-title{font-size:22px;margin-bottom:20px}.theme-preview-row{gap:12px}.preview-board{width:110px;height:110px}.preview-board span{font-size:18px}.preview-label{font-size:15px}}.tool-btn:focus-visible .tool-icon,.cell:focus-visible,.pad-number:focus-visible,.settings-panel select:focus-visible,.settings-panel input[type=checkbox]:focus-visible,nav a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media(max-width:1200px){:root{--board-size: min(72vw, 520px);--board-shell-size: calc(var(--board-size) + 36px)}.app-shell{padding:0 16px 12px}.layout.sidebar-open{grid-template-columns:1fr;gap:12px}.game-column{min-width:0}.toolbar{justify-content:center;flex-wrap:wrap}.sidebar-wrap.open,.settings-panel{width:100%}.settings-panel{max-height:none}}@media(max-width:760px){:root{--board-size: min(92vw, 430px);--board-shell-size: calc(var(--board-size) + 24px)}.app-header h1{font-size:22px}nav{gap:6px}.game-title{font-size:22px}body[data-theme=kids] .game-title{font-size:28px}.time-value{font-size:20px}.toolbar-inline{gap:10px}.toolbar{gap:16px}.tool-icon{width:42px;height:42px;font-size:18px}body[data-theme=kids] .tool-icon{width:48px;height:48px}.number-pad,.number-pad.size-9{flex-wrap:wrap;gap:6px;justify-content:center}.pad-number,body[data-theme=kids] .pad-number{width:44px;height:44px;font-size:17px;transform:none;box-shadow:0 2px 4px #0000000f}body[data-theme=kids] .pad-number{width:48px;height:48px;font-size:20px}body[data-theme=kids] .pad-number[data-digit]{transform:none;box-shadow:0 2px 4px #0000000f}.kids-decorations .deco{font-size:24px}}@media(max-width:430px){:root{--board-size: min( calc(100vw - 40px) , 370px);--board-shell-size: calc(var(--board-size) + 14px)}.app-shell{padding:0 8px 10px}.app-header{height:40px;margin-bottom:4px}.app-header h1{font-size:20px}nav{gap:4px}nav a{font-size:12px}.game-header{width:100%}.game-header-top{flex-wrap:wrap;gap:4px}.toolbar-inline{gap:8px}.tool-icon,body[data-theme=kids] .tool-icon,body[data-theme=kids] .tool-hint .tool-icon,body[data-theme=kids] .tool-undo .tool-icon,body[data-theme=kids] .tool-erase .tool-icon,body[data-theme=kids] .tool-notes .tool-icon{width:36px;height:36px;font-size:15px;transform:none;box-shadow:0 2px 4px #0000000f}.tool-label{font-size:10px}.game-time{font-size:12px}.time-value{font-size:16px}.settings-btn{width:32px;height:32px;font-size:16px}.board-shell{width:min(100%,var(--board-shell-size));height:auto;aspect-ratio:1 / 1;padding:7px;border-radius:14px;margin:0 auto}body[data-theme=kids] .board-shell{border-radius:18px;padding:8px}.sudoku-board{width:100%;height:100%}.cell{border-radius:6px;font-size:clamp(1.1rem,5vw,1.45rem)}body[data-theme=kids] .cell{border-radius:7px}.number-pad-section{width:100%;max-width:var(--board-size)}.number-pad,.number-pad.size-9{display:flex;flex-wrap:nowrap;gap:4px;justify-content:center}.pad-number,body[data-theme=kids] .pad-number,body[data-theme=kids] .pad-number[data-digit]{width:34px;min-width:0;height:34px;font-size:14px;flex:0 1 34px;transform:none;box-shadow:0 2px 4px #0000000f}.solve-controls{width:auto}.solve-btn{height:36px;padding:0 14px;font-size:13px}.kids-decorations .deco{font-size:20px}}@media(max-height:860px)and (min-width:761px){.app-header{height:42px;margin-bottom:4px}.game-column{gap:8px}.board-shell{width:556px;height:556px;padding:12px}.sudoku-board{width:532px;height:532px}.number-pad-section,.toolbar-section{width:532px}.pad-number{width:46px;height:46px;font-size:18px}.tool-icon{width:42px;height:42px;font-size:18px}}@media print{.app-header,.toolbar-section,.number-pad-section,.settings-panel,.storage-notice,.status-row{display:none!important}.app-shell{max-width:none;padding:0}}
