:root{color:#20232a;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-optical-sizing:auto;--ink:#20232a;--muted:#737b87;--line:#d7dce3;--blue:#007aff;--warm:#e48a36;background:#f3f5f8;font-family:DM Sans,sans-serif;font-weight:400}*{box-sizing:border-box}body{background:radial-gradient(at 86% 0,#f4d0a130,#0000 35rem),linear-gradient(145deg,#f8f9fb 0%,#edf1f5 100%);min-width:320px;min-height:100vh;margin:0}button,input{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible{outline-offset:2px;outline:3px solid #007aff61}#root{min-height:100vh}.app-shell{width:min(1120px,100%);min-height:100vh;margin:0 auto;padding:0 32px 48px}.app-header{border-bottom:1px solid #57616f21;justify-content:space-between;align-items:center;min-height:82px;display:flex}.brand{color:var(--ink);align-items:center;gap:11px;font-family:Manrope,sans-serif;font-size:19px;font-weight:600;text-decoration:none;display:inline-flex}.brand strong{font-weight:800}.brand-mark{grid-template-columns:repeat(2,1fr);gap:3px;width:28px;height:28px;display:grid}.brand-mark i{background:#007aff;border-radius:3px}.brand-mark i:nth-child(2){background:#64aaf5}.brand-mark i:nth-child(3){background:#f0ad55}.brand-mark i:nth-child(4){background:#a4c5ea}.header-status{color:#66717e;align-items:center;gap:8px;font-size:13px;font-weight:600;display:flex}.puzzle-selector select{appearance:none;max-width:132px;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;padding:3px 15px 3px 0}.timer-dot{background:#48a879;border-radius:50%;width:7px;height:7px}.game-workspace{grid-template-columns:minmax(0,1fr) 244px;align-items:start;gap:34px;max-width:920px;margin:37px auto 0;display:grid}.board-column{min-width:0}.mode-row{justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px;display:flex}.segmented-control{background:#e4e8ee;border-radius:9px;grid-template-columns:repeat(3,1fr);padding:4px;display:grid}.segment{color:#68717e;cursor:pointer;background:0 0;border:0;border-radius:6px;padding:7px 13px;font-size:13px;font-weight:600}.segment.active{color:#202b39;background:#fff;box-shadow:0 1px 3px #1b263324}.note-visibility{gap:5px;display:flex}.visibility-toggle{color:#77808c;cursor:pointer;background:#ffffff8c;border:1px solid #d5dbe3;border-radius:6px;min-width:39px;height:31px;font-size:11px;font-weight:700}.visibility-toggle.active{color:#315a80;background:#e8f2fb;border-color:#a9c5df}.sudoku-board{aspect-ratio:.88;isolation:isolate;background:#fff;border:2px solid #505761;border-radius:8px;grid-template-rows:repeat(9,minmax(0,1fr));grid-template-columns:repeat(9,minmax(0,1fr));width:100%;display:grid;overflow:hidden;box-shadow:0 4px 12px #1f2a3712}.sudoku-cell{cursor:pointer;touch-action:pan-y;-webkit-tap-highlight-color:transparent;background:#fff;border:1px solid #d4d8de;border-top:0;border-left:0;border-radius:0;place-items:center;min-width:0;min-height:0;padding:0;display:grid;position:relative}.sudoku-cell:focus-visible:not(.is-selected){z-index:1;outline-offset:-3px;outline:2px solid #007aff}.sudoku-cell.box-right{border-right:2px solid #69717a}.sudoku-cell.box-bottom{border-bottom:2px solid #69717a}.sudoku-cell.is-given{background-color:#dfdfdf}.sudoku-cell.cell-color-yellow{background-color:#f7e8bd}.sudoku-cell.cell-color-blue{background-color:#c1dff7}.sudoku-cell.cell-color-green{background-color:#cbe8cc}.sudoku-cell.cell-color-white{background-color:#fff}.sudoku-cell.is-peer{background-color:#f8ecc4}.sudoku-cell.is-peer.is-given{background-color:#d3c8ae}.sudoku-cell.same-candidate{background-color:#dceefb}.sudoku-cell.same-value{background-color:#ffc568}.sudoku-cell.same-value.is-given{background-color:#ea9900}.sudoku-cell.is-selected{z-index:0;background-color:#ffb541}.sudoku-cell.is-selected.is-given{background-color:#d88b00}.cell-value{color:var(--blue);font-size:clamp(18px,4vw,29px);font-weight:500;line-height:1}.is-given .cell-value{color:#15191e;font-weight:700}.snyder-notes{color:#71879c;gap:2px;font-size:clamp(7px,1.65vw,11px);font-style:italic;line-height:1;display:flex;position:absolute;top:2px;left:2px}.candidate-grid{color:#966438;grid-template-rows:repeat(3,1fr);grid-template-columns:repeat(3,1fr);place-items:center;width:100%;height:100%;font-size:clamp(7px,1.55vw,10px);line-height:1;display:grid}.candidate-grid span{place-items:center;width:100%;height:100%;display:grid}.control-column{flex-direction:column;gap:25px;padding-top:40px;display:flex}.number-pad{touch-action:pan-y;grid-template-columns:repeat(3,1fr);gap:9px;display:grid}.number-key{aspect-ratio:1/.88;color:#344151;cursor:pointer;touch-action:pan-y;-webkit-user-select:none;user-select:none;background:#ffffffe0;border:1px solid #dce1e7;border-radius:8px;min-height:56px;padding:0;font-size:23px;font-weight:600;transition:background-color .15s,transform .15s;box-shadow:0 2px 3px #1d2a390a}.number-key:active{transform:scale(.96)}.game-tools{position:relative}.timer{color:#515c69;font-variant-numeric:tabular-nums;justify-content:center;align-items:center;gap:8px;margin-bottom:14px;font-size:14px;font-weight:700;display:flex}.timer-dot{background:#e7a54a;width:6px;height:6px}.action-row{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;display:flex}.tool-button,.settings-button{color:#54606d;cursor:pointer;background:#fffc;border:1px solid #d6dce4;border-radius:7px;min-height:40px;font-size:13px;font-weight:600}.tool-button{padding:0 11px}.tool-button span{padding-right:4px;font-size:16px}.tool-button:disabled{opacity:.43;cursor:default}.hint-button{color:#87601f}.settings-button{width:40px;font-size:18px}.settings-panel{text-align:left;background:#ffffffe6;border:1px solid #dce1e7;border-radius:8px;margin-top:12px;padding:16px;animation:.18s ease-out panel-in;box-shadow:0 8px 26px #232f3f14}.settings-panel h2,.palette-panel h2{color:#333d49;margin:0;font-family:Manrope,sans-serif;font-size:15px;font-weight:700}.setting-row,.palette-setting{color:#525d6a;justify-content:space-between;align-items:center;gap:12px;min-height:40px;font-size:13px;display:flex}.setting-row:first-of-type{margin-top:7px}.setting-row input,.palette-setting input{accent-color:#007aff;width:17px;height:17px}.manual-import{color:#525d6a;border-top:1px solid #e8ebef;margin-top:12px;padding-top:14px;font-size:13px}.import-row{gap:6px;margin-top:7px;display:flex}.import-row input{color:#3a4653;border:1px solid #d8dee6;border-radius:5px;width:100%;min-width:0;height:36px;padding:0 8px;font-size:12px}.import-row button{color:#fff;cursor:pointer;background:#007aff;border:0;border-radius:5px;padding:0 11px;font-size:12px;font-weight:700}.import-error{color:#b43e39;margin-top:6px;font-size:12px}.palette-overlay{z-index:5;background:#171f292e;place-items:center;padding:20px;animation:.14s ease-out fade-in;display:grid;position:fixed;inset:0}.palette-panel{background:#fff;border:1px solid #ffffffb3;border-radius:10px;width:min(320px,100%);padding:19px;box-shadow:0 18px 50px #171f2933}.palette-heading{justify-content:space-between;align-items:center;display:flex}.palette-close{color:#0876e2;cursor:pointer;background:#eaf3fc;border:0;border-radius:5px;padding:5px 8px;font-size:12px;font-weight:700}.color-options{gap:14px;margin:20px 0 13px;display:flex}.color-swatch{cursor:pointer;border:2px solid #d4d9df;border-radius:50%;width:39px;height:39px}.swatch-white{background:#fff}.swatch-yellow{background:#ffdf57}.swatch-blue{background:#70b8ff}.swatch-green{background:#70d49a}.color-swatch.chosen{outline-offset:2px;border-color:#007aff;outline:3px solid #007aff3d}.palette-setting{border-top:1px solid #edf0f3;padding-top:10px}.clear-colors{color:#596573;cursor:pointer;background:#fff;border:1px solid #e3e7ec;border-radius:6px;width:100%;margin-top:9px;padding:9px;font-size:13px;font-weight:600}@keyframes panel-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@media (width<=760px){.app-shell{padding:0 8px 20px}.app-header{min-height:48px}.brand{gap:8px;font-size:16px}.brand-mark{width:22px;height:22px}.header-status{gap:6px;font-size:12px}.puzzle-selector select{max-width:112px;padding-block:2px;font-size:12px}.game-workspace{flex-direction:column;gap:7px;width:100%;margin-top:5px;display:flex}.board-column,.control-column{width:100%}.mode-row{margin-bottom:6px}.segmented-control{padding:3px}.segment{padding:6px 9px}.visibility-toggle{height:28px}.sudoku-board{border-radius:7px}.control-column{gap:8px;padding-top:0}.number-pad{grid-template-columns:repeat(9,minmax(0,1fr));gap:4px;width:100%;margin:0}.number-key{aspect-ratio:auto;border-radius:6px;min-width:0;min-height:44px;font-size:18px}.game-tools{grid-template-columns:auto 1fr;align-items:center;gap:12px;display:grid}.timer{justify-content:start;margin:0}.action-row{justify-content:end;gap:6px}.tool-button{min-height:36px;padding:0 9px}.settings-button{width:36px;min-height:36px}.settings-panel{grid-column:1/-1}}@media (width<=390px){.app-shell{padding-inline:8px}.note-visibility{gap:3px}.visibility-toggle{min-width:35px}.number-pad{gap:3px}.number-key{min-height:42px}.game-tools{grid-template-columns:1fr;justify-items:center;gap:8px}.action-row{justify-content:center}}.sudoku-board,.sudoku-board *,.palette-panel,.palette-panel *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.number-erase{display:none}.mode-snyder .number-key:not(.number-erase){color:#365e89;font-style:italic}.mode-kand .number-key:not(.number-erase){color:#a65a20}.settings-button{place-items:center;display:grid}.settings-dialog{width:min(380px,100% - 32px);max-height:calc(100dvh - 48px);color:inherit;overscroll-behavior:contain;margin:auto;padding:0;position:fixed;inset:0;overflow:auto}.settings-dialog:not([open]){display:none}.settings-dialog::backdrop{background:#171f2947}.settings-content{padding:20px}.settings-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:8px;display:flex}.settings-close{color:#0876e2;min-height:44px;font:inherit;cursor:pointer;background:#eaf3fc;border:0;border-radius:7px;padding:0 14px;font-weight:600}@media (width<=760px){.number-pad{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.number-key{height:50px;min-height:50px;font-size:23px}.number-erase{place-items:center;font-size:15px;font-style:normal;display:grid}.desktop-erase{display:none}.game-tools{grid-template-columns:auto 1fr;justify-items:stretch;gap:8px}.action-row{justify-content:end}.tool-button,.settings-button{min-height:44px}.settings-button{width:44px}.app-shell{padding-bottom:max(16px, env(safe-area-inset-bottom))}}.settings-dialog{background:#fff}.restart-button{color:#a1372e;width:100%;min-height:44px;font:inherit;cursor:pointer;background:#fff;border:1px solid #cfd6df;border-radius:7px;margin-top:16px;font-size:14px;font-weight:600}.segment:first-child,.visibility-toggle:first-child{color:#365e89;font-style:italic}.segment:last-child,.visibility-toggle:last-child{color:#a65a20}@media (width<=760px){.mode-row{gap:8px}.segmented-control{flex:1;min-width:0}.segment{min-height:44px;padding:6px 5px}.note-visibility{gap:5px}.visibility-toggle{min-width:48px;height:44px;font-size:12px}}.board-toolbar{justify-content:space-between;align-items:center;min-height:44px;margin-bottom:8px;display:flex}.board-toolbar .timer{justify-content:start;margin:0}.board-toolbar .action-row{justify-content:end}.control-column{gap:12px;padding-top:52px}.control-column .mode-row{width:100%;margin:0}.control-column .segmented-control{width:100%}.control-column .segment{min-height:44px;padding-inline:5px}.bottom-actions{justify-content:end;width:100%}@media (width<=760px){.control-column{gap:8px;padding-top:0}.board-toolbar{margin-bottom:6px}.control-column .mode-row{margin-bottom:0}}.cell-value,.is-given .cell-value{font-size:clamp(26px,7.12vw,38px);font-weight:700}.snyder-notes{color:#365e89;gap:2px;height:13px;font-size:12px;font-weight:600;line-height:1;top:1px;left:2px;right:2px}.candidate-grid{color:#a65a20;grid-template-rows:repeat(3,minmax(0,1fr));width:auto;height:auto;font-size:10px;font-weight:500;position:absolute;inset:1px 2px}.snyder-notes+.candidate-grid{top:14px}@media (width>=761px){.snyder-notes{height:17px;font-size:16px}.candidate-grid{font-size:14px}.snyder-notes+.candidate-grid{top:19px}}@media (width<=350px){.snyder-notes{height:12px;font-size:11px}.candidate-grid{font-size:9px}.snyder-notes+.candidate-grid{top:13px}}.entry-toolbar{justify-content:space-between;align-items:center;gap:12px;width:100%;display:flex}.control-column .entry-toolbar .mode-row{flex:1;width:auto;min-width:0;max-width:270px}.entry-toolbar .segment{font-size:12px}.entry-toolbar .undo-button{flex-shrink:0;min-width:64px;min-height:44px}.number-erase span{font-size:38px;font-weight:500;line-height:1}@media (width<=760px){.candidate-grid{font-size:11px}.bottom-actions:not(:has(.hint-button)):not(:has(button[title=Redo])){display:none}}.settings-button{box-shadow:none;background:0 0;border-color:#0000}.number-pad,.number-pad *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.board-column{position:relative}.test-puzzle-button{color:#315a80;width:100%;min-height:44px;font:inherit;cursor:pointer;background:#edf5fc;border:1px solid #cfd6df;border-radius:7px;margin-top:10px;font-size:14px;font-weight:600}.settings-group{border:0;min-width:0;margin:18px 0 0;padding:0}.settings-group legend{color:#344151;margin-bottom:5px;font-size:14px;font-weight:700}.settings-group .setting-row{border-bottom:1px solid #edf0f3;min-height:44px}.setting-help{color:#657180;margin:4px 0 8px;font-size:12px;line-height:1.4}.focus-options{border:0;min-width:0;margin:0;padding:0 0 0 10px}.focus-options:disabled{opacity:.5}.settings-heading{z-index:2;background:#fff;padding:8px 0;position:sticky;top:-20px}.number-pad .number-key:disabled{color:#9ca3ab;cursor:default;box-shadow:none;background:#f1f2f4;transform:none}.correct-entry-glow{pointer-events:none;z-index:1;background:#91deae;animation:1.4s ease-out both correct-cell-glow;position:absolute;inset:0}.value-confirmed{z-index:2;animation:.55s ease-out correct-value-pulse;display:inline-block;position:relative}@keyframes correct-cell-glow{0%{opacity:.85}35%{opacity:.85}to{opacity:0}}@keyframes correct-value-pulse{0%,to{transform:scale(1)}40%{transform:scale(1.16)}}@media (prefers-reduced-motion:reduce){.value-confirmed{animation:none}.correct-entry-glow{opacity:.65;animation:none}}.sudoku-cell.has-conflict{box-shadow:none}.sudoku-cell.is-incorrect .cell-value{color:#15191e}.incorrect-mark{pointer-events:none;z-index:3;width:100%;height:100%;position:absolute;inset:0}.incorrect-mark line{stroke:#ff5263;stroke-width:2.5px;vector-effect:non-scaling-stroke}.conflict-dot{aspect-ratio:1;pointer-events:none;z-index:4;background:#ff5263;border-radius:50%;width:19%;position:absolute;bottom:10%;right:10%}.puzzle-notice{color:#54606d;align-items:center;gap:8px;padding:8px 0;font-size:13px;display:flex}.puzzle-notice button{background:#fff;border:1px solid #cdd4dc;border-radius:6px;flex-shrink:0;padding:8px}.game-workspace[aria-busy=true]{opacity:.5}.puzzle-selector{position:relative}.puzzle-selector:after{content:"";pointer-events:none;border-bottom:1.5px solid;border-right:1.5px solid;width:6px;height:6px;position:absolute;top:50%;right:3px;transform:translateY(-70%)rotate(45deg)}
