:root{color:#28302c;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--blue:#2d5fc5;--ink:#28302c;--muted:#606c59;--line:#d9ddd5;--paper:#fdfdfa;--peer:#eff2ed;--match:#e0e8df;--error:#ae3535;background:#f6f5f1;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif}*{box-sizing:border-box}body{min-width:280px;margin:0}button,input{font:inherit}button,h1,h2,p{margin:0}button{color:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;border:0}button:focus-visible{outline:2px solid var(--blue);outline-offset:3px}button:disabled{cursor:default;opacity:.38}[hidden]{display:none!important}.icon{flex-shrink:0;width:21px;height:21px}.shell{width:min(100% - 80px,864px);min-height:100svh;padding-top:max(32px, env(safe-area-inset-top));padding-bottom:max(22px, env(safe-area-inset-bottom));flex-direction:column;margin-inline-start:auto;margin-inline-end:auto;display:flex}.header{flex-shrink:0;justify-content:space-between;align-items:center;min-height:44px;display:flex}h1{letter-spacing:.04em;align-items:center;gap:10px;font-size:21px;font-weight:620;display:flex}.brand-icon{width:26px;height:26px}.header nav{gap:4px;margin-right:-8px;display:flex}.icon-button{color:#606b60;background:0 0;border-radius:9px;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;padding:11px;transition:background .12s,color .12s;display:inline-flex}.language-button{letter-spacing:.02em;padding:0;font-size:12px;font-weight:600}.icon-button.small .icon{width:16px;height:16px}.workspace{grid-template-columns:minmax(0,1fr) 248px;align-items:end;gap:48px;margin-block-start:auto;margin-block-end:auto;padding-block-start:36px;padding-block-end:44px;display:grid}.board-section{width:100%;min-width:0}.board-meta{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;min-height:52px;padding-bottom:8px;display:grid}.difficulty-button{background:0 0;align-items:center;gap:6px;min-height:44px;padding:0 4px 0 0;font-size:13px;font-weight:550;display:flex}.difficulty-button .icon{color:#7b8577;width:15px;height:15px}.game-feedback{text-align:center;color:#56704a;white-space:nowrap;text-overflow:ellipsis;min-height:1.5em;padding-inline-start:10px;padding-inline-end:10px;font-size:12px;line-height:1.5;overflow:hidden}.game-feedback.is-error{color:var(--error)}.timer-group{align-items:center;gap:1px;margin-right:-10px;display:flex}time{color:#5f6a5f;font-variant-numeric:tabular-nums;letter-spacing:.04em;text-align:right;min-width:48px;font-size:13px;line-height:1}.board-wrap{aspect-ratio:1;width:100%;position:relative}.board{isolation:isolate;background:var(--paper);border:1.5px solid #747f71;border-radius:5px;grid-template-rows:repeat(9,minmax(0,1fr));width:100%;height:100%;display:grid;overflow:hidden}.board-row{grid-template-columns:repeat(9,minmax(0,1fr));min-height:0;display:grid}.cell{font-variant-numeric:tabular-nums;-webkit-user-select:none;user-select:none;background:0 0;border-bottom:1px solid #e0e4dc;border-right:1px solid #e0e4dc;border-radius:0;justify-content:center;align-items:center;min-width:0;min-height:0;padding:0;font-size:clamp(25px,2.6vw,31px);font-weight:430;transition:background-color 80ms;display:flex;position:relative}.cell:nth-child(3n){border-right:1.5px solid #929d8d}.cell:last-child{border-right:0}.board-row:nth-child(3n) .cell{border-bottom:1.5px solid #929d8d}.board-row:last-child .cell{border-bottom:0}.cell.given{color:#2c362c;font-weight:510}.cell.entered{color:var(--blue)}.cell.verified{color:#151d16;font-weight:750}.cell.peer{background:var(--peer)}.cell.matching{background:var(--match)}.cell.selected{background:#e0eafb;box-shadow:inset 0 0 0 2px #7297d6}.cell.error{color:var(--error);background:#fae9e5}.cell.error:after{content:"";background:currentColor;border-radius:1px;width:10px;height:2px;position:absolute;bottom:10%;left:calc(50% - 5px)}.cell.error.selected{background:#f7dfd8;box-shadow:inset 0 0 0 2px #b56b5f}.cell:focus{outline:0}.cell:focus-visible{box-shadow:inset 0 0 0 2px var(--blue)}.cell-notes{color:#52617b;grid-template-rows:repeat(3,1fr);grid-template-columns:repeat(3,1fr);font-size:clamp(10px,1.05vw,12px);font-weight:450;line-height:1;display:grid;position:absolute;top:5px;bottom:5px;left:5px;right:5px}.cell-notes span{border-radius:3px;justify-content:center;align-items:center;display:flex}.cell-notes .note-match{color:#173f88;background:#d5e1f6;font-weight:750}.board-wrap.note-mode .cell.selected{outline-offset:-4px;outline:1px dashed #3260aa}.pause-cover{background:#f2f3ec;border:1.5px solid #b6beac;border-radius:5px;justify-content:center;align-items:center;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.resume-button{color:#46573b;background:#fbfcf6;border:1px solid #d4dccc;border-radius:9px;justify-content:center;align-items:center;gap:11px;min-height:52px;padding-inline-start:25px;padding-inline-end:25px;font-size:14px;display:flex}.resume-button .icon{width:19px;height:19px}.controls{flex-direction:column;gap:22px;padding-bottom:1px;display:flex}.tools{order:2;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin-inline-start:-4px;margin-inline-end:-4px;display:grid}.solution-actions{width:100%}.solution-mode .difficulty-button:disabled{color:var(--muted);opacity:1}.solution-mode .difficulty-button .icon{display:none}.tool-button{color:#606c5a;background:0 0;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-width:44px;height:58px;padding:6px 0;font-size:11px;line-height:1.4;display:flex}.tool-button>span{white-space:nowrap;align-items:center;display:flex;position:relative}.tool-button .icon{width:20px;height:20px}.tool-button[aria-pressed=true]{color:#2b54aa;background:#e3ebf9}.tool-button[aria-pressed=true] .mode-dot{background:currentColor;border-radius:50%;width:4px;height:4px;position:absolute;right:-7px}.tool-button[aria-pressed=true] .icon{stroke-width:2px}.save-current{margin-bottom:20px}.save-current[aria-pressed=true] .icon{fill:#d8e0cd}.number-pad{background:#e9ede3;border:1px solid #dce1d4;border-radius:13px;order:1;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:7px;transition:background-color .12s,border-color .12s;display:grid}.number-button{min-width:44px;height:72px;color:var(--blue);font-variant-numeric:tabular-nums;background:#fdfdfa;border:1px solid #fefefb;border-radius:7px;justify-content:center;align-items:center;padding:0;font-size:29px;font-weight:460;transition:background-color .1s,border-color .1s,transform .1s;display:flex;position:relative;box-shadow:0 1px 2px #2836210a}.number-complete{line-height:0;display:none;position:absolute;top:5px;right:5px}.number-complete .icon{stroke-width:2px;width:10px;height:10px}.number-button.exhausted{color:#68775b;background:#f0f3e9}.number-button.exhausted .number-complete{display:block}.number-button:disabled{opacity:.42}.controls.note-mode .number-pad{background:#e1e9f7;border-color:#b8cae9}.controls.note-mode .number-button{background:#f6f9fe;border-style:dashed;border-color:#b7c9e9}.main-actions{flex-direction:column;order:3;gap:10px;display:flex}.main-actions .button{white-space:nowrap}.button{letter-spacing:.02em;border-radius:7px;justify-content:center;align-items:center;gap:9px;min-height:48px;padding-inline-start:18px;padding-inline-end:18px;font-size:13px;font-weight:550;transition:background-color .12s,transform .1s;display:flex}.button .icon{width:17px;height:17px}.button.primary{color:#fff;background:#303d2b}.button.primary:disabled{color:#707b64;opacity:1;background:#e1e5da}.button.secondary{color:#506043;background:0 0;border:1px solid #cbd3be}.button.quiet{color:#68765b;background:0 0;font-weight:400}.button.full{width:100%}.button.full+.button.full{margin-top:10px}footer{color:#757b6e;text-align:center;letter-spacing:.01em;flex-shrink:0;font-size:10px;line-height:1.6}.toast{z-index:10;left:50%;bottom:calc(22px + env(safe-area-inset-bottom));color:#fff;text-align:center;background:#303d2b;border-radius:8px;width:max-content;max-width:calc(100vw - 32px);padding:11px 18px;font-size:13px;line-height:1.7;position:fixed;transform:translate(-50%);box-shadow:0 5px 18px #202b2214}.toast button{color:#fff;text-underline-offset:3px;background:0 0;min-height:44px;margin:-10px -8px -10px 10px;padding-inline-start:12px;padding-inline-end:12px;text-decoration:underline}dialog{width:min(440px,100vw - 32px);max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overscroll-behavior:contain;color:#2c3724;background:#fafbf5;border:1px solid #dce2d0;border-radius:14px;margin:auto;padding:0;overflow:auto;box-shadow:0 24px 100px #1e281b1f}dialog::backdrop{-webkit-backdrop-filter:blur(2px);background:#25301d49}.modal-inner{padding:20px 26px 26px}.modal-heading{justify-content:space-between;align-items:center;min-height:44px;margin-bottom:22px;display:flex}h2{letter-spacing:.01em;font-size:18px;font-weight:600}.modal-heading .icon-button{margin-right:-10px}.difficulty-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;display:grid}.difficulty-option{color:#63764e;background:0 0;border:1px solid #d7dfc9;border-radius:6px;min-height:50px;padding:0;font-size:13px}.difficulty-option.active{color:#344b22;background:#e8efdd;border-color:#8da174;font-weight:600}.modal-hint{color:var(--muted);margin:19px 0 24px;font-size:12px;line-height:1.7}.modal-description{color:var(--muted);margin-bottom:24px;font-size:14px;line-height:1.8}.saved-list{overscroll-behavior:contain;max-height:min(440px,50dvh);margin:-7px -8px 0;padding:0 8px;overflow-y:auto}.saved-row{border-bottom:1px solid #e1e8d6;align-items:center;gap:4px;padding:16px 0;display:flex}.saved-row:last-child{border-bottom:0}.saved-item{text-align:left;background:0 0;flex:1;align-items:center;gap:15px;min-width:0;min-height:49px;padding:0;display:flex}.mini-board{background:#f1f5e9;border:1px solid #b9c6a9;border-radius:4px;flex:0 0 49px;grid-template-columns:repeat(9,1fr);gap:1px;width:49px;height:49px;padding:3px;display:grid}.mini-board i{background:#e1e9d5;border-radius:.5px}.mini-board i.filled{background:#7a8e64}.saved-info{flex-direction:column;flex:1;gap:7px;min-width:0;display:flex}.saved-info strong{align-items:center;gap:10px;font-size:13px;font-weight:550;display:flex}.saved-info>span{color:var(--muted);font-variant-numeric:tabular-nums;font-size:11px}.saved-state{color:var(--muted);font-size:10px;font-weight:400}.saved-item>.icon{width:16px;color:var(--muted)}.delete-save .icon{width:17px;height:17px}.empty-state{color:var(--muted);text-align:center;padding:44px 0 52px;font-size:13px}.backup-actions{border-top:1px solid #e0e6d4;align-items:center;gap:20px;margin-top:17px;padding-top:12px;display:flex}.text-button{min-height:44px;color:var(--muted);background:0 0;justify-content:center;align-items:center;gap:7px;padding:0;font-size:12px;display:inline-flex}.text-button .icon{width:15px;height:15px}.modal-toast{color:#51683b;background:#eaf0e1;border-radius:6px;justify-content:space-between;align-items:center;min-height:44px;margin-top:12px;padding-left:12px;font-size:12px;display:flex}.modal-toast button{color:#3152a1;background:0 0;min-width:52px;min-height:44px;padding-inline-start:12px;padding-inline-end:12px;font-size:12px;font-weight:600}.stats-tabs{border-bottom:1px solid #d9e2cd;margin-bottom:28px;display:flex}.stats-tabs button{min-height:44px;color:var(--muted);background:0 0;border-bottom:2px solid #0000;flex:1;margin-bottom:-1px;padding:0 0 10px;font-size:12px}.stats-tabs button.active{color:#3f5c27;border-bottom-color:#607c43;font-weight:600}.stats-grid{grid-template-columns:1fr 1fr;gap:34px 20px;padding-block-start:4px;padding-block-end:12px;display:grid}.stats-grid>div{flex-direction:column;gap:13px;display:flex}.stats-grid span{color:var(--muted);font-size:12px}.stats-grid strong{font-variant-numeric:tabular-nums;letter-spacing:-.035em;font-size:27px;font-weight:450}.stats-grid small{color:var(--muted);margin-left:7px;font-size:11px}.completed-summary{text-align:center;padding-bottom:28px}.completion-mark{color:#597d37;background:#e8f0dd;border-radius:50%;margin-bottom:20px;padding:13px;display:inline-flex}.completion-mark .icon{width:26px;height:26px}.result-time{font-variant-numeric:tabular-nums;letter-spacing:-.04em;margin-bottom:12px;font-size:45px;font-weight:350}.completed-summary p{color:var(--muted);font-size:12px}.loading-state{min-height:150px;color:var(--muted);justify-content:center;align-items:center;font-size:13px;display:flex}.import-summary{color:var(--muted);justify-content:space-between;padding-bottom:24px;font-size:13px;display:flex}.import-summary strong{color:#415e24}.install-help{color:var(--muted);margin-bottom:16px;font-size:13px;line-height:1.9}button:active:enabled:not(.cell){transform:translateY(1px)}@media (hover:hover){.icon-button:hover:enabled{color:#34462a;background:#e7ecdf}.cell:hover:not(.selected):not(.error){background:#e6eddf}.number-button:hover:enabled{background:#edf3fd;border-color:#b0c6eb}.tool-button:hover:enabled{background:#e5ebdc}.tool-button[aria-pressed=true]:hover{background:#d7e4fa}.button.primary:hover:enabled{background:#21331a}.button.secondary:hover:enabled{background:#e9efdf}.saved-item:hover strong{color:var(--blue)}}@media (min-width:761px) and (max-height:760px){.shell{width:min(100% - 72px,816px);padding-top:20px;padding-bottom:16px}.workspace{grid-template-columns:minmax(0,1fr) 232px;gap:40px;padding-block-start:18px;padding-block-end:22px}.board-section{justify-self:end;width:min(100%,100svh - 200px)}.board-meta{min-height:44px;padding-bottom:0}.cell{font-size:28px}.controls{gap:16px}.number-button{height:64px}.tool-button{height:52px}}@media (max-width:760px){.shell{width:min(100% - 32px,444px);padding-top:max(16px, env(safe-area-inset-top));padding-bottom:max(16px, env(safe-area-inset-bottom))}h1{gap:9px;font-size:20px}.brand-icon{width:25px;height:25px}.header nav{gap:0}.workspace{--board-size:min(100%, max(216px, calc(100svh - 532px - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom)))));flex-direction:column;align-items:center;gap:8px;padding-block-start:12px;padding-block-end:12px;display:flex}.board-section{width:var(--board-size)}.board-meta{min-height:44px;padding-bottom:0}.cell{font-size:clamp(21px,6.5vw,30px)}.cell-notes{font-size:clamp(8px,2.3vw,12px);top:3px;bottom:3px;left:3px;right:3px}.game-feedback{padding-inline-start:5px;padding-inline-end:5px;font-size:11px}.controls{gap:8px;width:100%;padding-bottom:0}.tools{order:0;gap:6px;margin:0}.tool-button{gap:5px;height:48px;font-size:11px}.tool-button .icon{width:19px;height:19px}.number-button{height:52px;font-size:25px}.main-actions{flex-direction:row;gap:10px}.main-actions .primary{flex:1.3}.main-actions .secondary{flex:1}.button{min-height:48px;font-size:12px}footer{font-size:10px}.modal-inner{padding:18px 22px 24px}}@media (max-width:600px) and (orientation:portrait){.workspace{--board-size:min(100%, max(216px, calc(100svh - 400px - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom)))))}.number-pad{width:var(--board-size);background:#eef0e8;border:0;border-radius:8px;grid-template-columns:repeat(9,minmax(0,1fr));align-self:center;gap:0;padding:0 1.5px}.number-button{min-width:0;height:52px;box-shadow:none;background:0 0;border-color:#0000;border-radius:6px;font-size:26px}.number-complete{top:3px;right:3px}.number-complete .icon{width:8px;height:8px}}@media (max-width:600px) and (max-height:720px) and (orientation:portrait){.shell{padding-top:max(8px, env(safe-area-inset-top));padding-bottom:max(8px, env(safe-area-inset-bottom))}.workspace{--board-size:min(100%, max(216px, calc(100svh - 274px - max(8px, env(safe-area-inset-top)) - max(8px, env(safe-area-inset-bottom)))));gap:6px;padding-block-start:6px;padding-block-end:8px}.tool-button,.button{height:44px;min-height:44px}.tools{gap:6px}.number-button{font-size:24px}}@media (max-width:320px){.header .brand-icon{display:none}}@media (max-height:540px) and (orientation:landscape){.shell{width:min(calc(100% - max(24px, env(safe-area-inset-left)) - max(24px, env(safe-area-inset-right))), 780px);padding-top:max(8px, env(safe-area-inset-top));padding-bottom:max(8px, env(safe-area-inset-bottom))}h1{font-size:18px}.brand-icon{width:23px;height:23px}.workspace{grid-template-columns:minmax(216px, calc(100svh - 124px - env(safe-area-inset-top) - env(safe-area-inset-bottom))) minmax(0, 320px);justify-content:center;gap:32px;padding-block-start:0;padding-block-end:6px;display:grid}.board-section{width:100%}.board-meta{min-height:44px;padding-bottom:0}.cell{font-size:clamp(18px,5.5svh,24px)}.cell-notes{font-size:8px;top:2px;bottom:2px;left:2px;right:2px}.game-feedback{font-size:10px}.controls{gap:8px}.tools{order:2;gap:4px;margin:0}.tool-button{gap:4px;height:44px;font-size:10px}.tool-button .icon{width:17px;height:17px}.number-pad{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:5px}.number-button{height:44px;font-size:24px;grid-column:auto!important}.main-actions{flex-direction:row;gap:8px}.main-actions .button{flex:1;min-height:44px;padding-inline-start:10px;padding-inline-end:10px;font-size:11px}.main-actions .icon{width:15px;height:15px}footer{font-size:9px}}@media (forced-colors:active){.cell.selected,.cell.matching,.cell.peer{background:canvas}.cell.selected{outline-offset:-3px;outline:2px solid highlight}.cell-notes .note-match{outline:1px solid highlight}.tool-button[aria-pressed=true]{outline-offset:-2px;outline:2px solid highlight}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
