:root{--bg:#f6f7fc;--surface:#fff;--ink:#202c48;--muted:#64708b;--line:#e0e5f0;--blue:#365ad7;--soft-blue:#edf1ff;--mint:#dff3e9;--mint-ink:#24634b;--gold:#fff1c2;--gold-ink:#7a5712;--purple:#eee7fc;--purple-ink:#6844a1;--red:#b63f4c;--red-bg:#fff0f1;--shadow:0 10px 28px #243c7210;--cell:#fff;--related:#f2f5fc;--selected:#dbe5ff;--same:#e5eaff;--focus:#fff0b2;color-scheme:light}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg);font-size:15px;line-height:1.55}body{overflow-x:hidden}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{border:0;background:none;color:inherit}button:disabled{cursor:default;opacity:.4}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--blue);outline-offset:4px}::selection{background:#dbe5ff;color:#202c48}input{caret-color:var(--blue)}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-thumb{background:#bec8dd;border-radius:5px}.icon{width:22px;height:22px;flex-shrink:0;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;fill:none;vertical-align:middle}.num{font-variant-numeric:tabular-nums}.app-shell{max-width:1460px;margin:auto;display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{padding:34px 24px 24px;display:flex;flex-direction:column;border-right:1px solid var(--line);position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;font-size:19px;font-weight:650;letter-spacing:.5px}.sidebar nav{display:grid;gap:8px;margin-top:56px}.nav-item{display:flex;align-items:center;gap:12px;padding:13px 16px;border-radius:12px;color:var(--muted);text-align:left;font-weight:500;min-height:48px}.nav-item:hover{background:var(--soft-blue)}.nav-item.active{background:var(--soft-blue);color:var(--blue)}.sidebar-bottom{margin-top:auto;font-size:12px;color:var(--muted)}.quiet-dot{display:inline-block;width:7px;height:7px;background:#55a382;border-radius:50%;margin-right:8px}.preview-label{display:block;margin:12px 0 0 15px;font-size:11px}main{padding:42px clamp(28px,4.4vw,76px) 42px;min-width:0}.page-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:30px}.page-title h1{font-size:25px;letter-spacing:-.6px;margin:0;font-weight:650}.date{color:var(--muted);font-size:13px}.home-intro{margin:8px 0 30px}.home-intro h2{font-size:clamp(28px,3vw,39px);line-height:1.4;letter-spacing:-1px;margin:0 0 10px;font-weight:650}.home-intro p{color:var(--muted);margin:0}.welcome-wave{display:inline-flex;margin-left:10px;vertical-align:middle;gap:4px;align-items:center}.welcome-wave i{display:block;width:6px;background:#f0bd40;border-radius:4px;transform:rotate(24deg)}.welcome-wave i:nth-child(1){height:14px}.welcome-wave i:nth-child(2){height:22px}.welcome-wave i:nth-child(3){height:16px}.play-banner{background:var(--blue);color:#fff;border-radius:16px;padding:28px 30px;display:flex;gap:20px;align-items:center;justify-content:space-between;box-shadow:0 10px 28px #365ad722;position:relative;overflow:hidden;min-height:170px}.play-banner h3{font-size:23px;margin:0 0 7px;font-weight:600}.play-banner p{margin:0 0 20px;color:#e4eaff;font-size:14px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--blue);color:#fff;border-radius:12px;min-height:46px;padding:10px 21px;font-weight:550;border:1px solid transparent;transition:background .16s,transform .16s}.btn:hover{background:#2949b9}.btn:active{transform:translateY(1px)}.btn.white{background:#fff;color:#284abf}.btn.secondary{background:var(--surface);color:var(--ink);border-color:var(--line)}.btn.secondary:hover{background:var(--soft-blue)}.btn.mint{background:var(--mint);color:var(--mint-ink)}.btn.full{width:100%}.btn.small{min-height:40px;padding:7px 14px;font-size:13px}.banner-board{width:126px;flex-shrink:0;display:grid;grid-template-columns:repeat(3,1fr);gap:7px;transform:rotate(8deg);margin-right:16px}.banner-board span{background:#ffffff21;color:#fff;aspect-ratio:1;border-radius:9px;display:grid;place-items:center;font-size:23px;font-weight:600}.banner-board span:nth-child(5){background:#fbd86c;color:#29416b}.banner-board span:nth-child(3){background:#a9dbc9;color:#23493b}.section-title{font-size:17px;font-weight:600;margin:30px 0 14px;display:flex;align-items:center;justify-content:space-between}.section-title a,.text-btn{font-size:13px;color:var(--blue);padding:8px 0}.home-modes{display:grid;grid-template-columns:1fr 1fr;gap:18px}.daily-panel,.journey-panel{border-radius:16px;padding:23px 24px;display:flex;justify-content:space-between;min-height:156px;text-align:left;position:relative;overflow:hidden}.daily-panel{background:var(--gold);color:var(--gold-ink)}.journey-panel{background:var(--mint);color:var(--mint-ink)}.daily-panel:hover,.journey-panel:hover{filter:brightness(.985)}.mode-title{font-size:19px;font-weight:600;display:block;margin:10px 0 4px}.mode-sub{font-size:13px;display:block}.mode-art{align-self:center;width:62px;height:66px;display:grid;grid-template-columns:repeat(3,1fr);gap:5px;transform:rotate(-8deg);opacity:.7}.mode-art i{border:2px solid currentColor;border-radius:5px;aspect-ratio:1}.mode-art i:nth-child(5){background:currentColor}.journey-art{display:flex;align-items:center;align-self:center;gap:4px;transform:rotate(-16deg)}.journey-art i{width:16px;height:16px;border:2px solid currentColor;border-radius:50%}.journey-art i:nth-child(2){margin-bottom:24px}.journey-art i:nth-child(3){background:currentColor}.practice-panel{background:var(--surface);border-radius:16px;padding:22px 24px;box-shadow:var(--shadow)}.practice-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.practice-top h3{font-size:17px;margin:0}.sizes{display:flex;gap:4px;background:var(--bg);padding:4px;border-radius:10px}.size-btn{min-height:36px;padding:5px 12px;border-radius:7px;font-size:13px;color:var(--muted)}.size-btn.active{background:var(--surface);color:var(--ink);box-shadow:0 2px 5px #243c7210}.difficulty-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.diff-option{border:1px solid var(--line);border-radius:10px;text-align:left;padding:12px;min-height:76px}.diff-option:hover,.diff-option.active{border-color:var(--blue);background:var(--soft-blue)}.diff-option strong{font-size:15px;font-weight:550;display:block}.diff-option span{font-size:11px;display:block;margin-top:4px;color:var(--muted)}.diff-dots{display:flex!important;gap:3px!important;margin-bottom:5px!important}.diff-dots i{width:5px;height:5px;border-radius:2px;background:var(--blue)}.practice-bottom{margin-top:18px;display:flex;justify-content:space-between;align-items:center;gap:12px}.practice-bottom p{font-size:12px;color:var(--muted);margin:0}.home-footer{margin:28px 0 0;display:flex;justify-content:center;align-items:center;gap:8px;color:var(--muted);font-size:12px}.home-footer .icon{width:16px;height:16px}.game-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.back-btn{display:inline-flex;align-items:center;gap:8px;padding:8px 0;color:var(--muted);font-size:13px}.game-heading{display:flex;align-items:center;gap:12px}.game-heading h1{font-size:23px;margin:0;letter-spacing:-.5px}.tag{display:inline-flex;align-items:center;gap:5px;background:var(--soft-blue);color:var(--blue);border-radius:7px;font-size:12px;padding:4px 9px;white-space:nowrap}.tag.gold{background:var(--gold);color:var(--gold-ink)}.tag.mint{background:var(--mint);color:var(--mint-ink)}.game-layout{display:grid;grid-template-columns:minmax(250px,570px) minmax(210px,270px);gap:clamp(20px,3vw,44px);align-items:start}.board-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:var(--muted);margin-bottom:12px}.clock-wrap{display:flex;align-items:center;gap:9px}.icon-btn{width:36px;height:36px;display:inline-grid;place-items:center;border-radius:8px;color:var(--muted)}.icon-btn:hover{background:var(--soft-blue);color:var(--blue)}.board{width:100%;display:grid;grid-template-columns:repeat(var(--n),1fr);border:2px solid #3a4769;border-radius:9px;overflow:hidden;background:var(--cell);position:relative;box-shadow:0 5px 20px #263e7208;touch-action:manipulation}.cell{min-width:0;aspect-ratio:1;position:relative;display:flex;align-items:center;justify-content:center;background:var(--cell);border-right:1px solid #dce2ee;border-bottom:1px solid #dce2ee;border-radius:0;font-size:clamp(20px,2.6vw,32px);font-variant-numeric:tabular-nums;font-weight:500;padding:0;transition:background .12s;line-height:1;color:var(--blue)}.cell.given{color:var(--ink);font-weight:600}.cell.edge-r{border-right:0}.cell.edge-b{border-bottom:0}.cell.thick-r{border-right:2px solid #7a86a0}.cell.thick-b{border-bottom:2px solid #7a86a0}.cell.related{background:var(--related)}.cell.same{background:var(--same)}.cell.focus{background:var(--focus)}.cell.selected{background:var(--selected);box-shadow:inset 0 0 0 2px var(--blue);z-index:1}.cell.wrong{color:var(--red);background:var(--red-bg)}.cell:focus-visible{outline:0;box-shadow:inset 0 0 0 3px var(--blue);z-index:2}.cell .notes{display:grid;grid-template-columns:repeat(var(--cols,3),1fr);height:100%;width:100%;padding:3px;font-size:clamp(8px,1vw,12px);color:var(--muted);font-weight:400}.notes span{display:grid;place-items:center}.board-paused{position:relative}.board-paused .board{filter:blur(9px);pointer-events:none;user-select:none}.pause-layer{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#f6f7fcdb;border-radius:9px;z-index:3}.pause-content{text-align:center}.pause-content h2{font-size:24px;margin:12px 0 4px}.pause-content p{color:var(--muted);font-size:13px;margin:0 0 22px}.progress-track{height:5px;background:var(--line);border-radius:5px;overflow:hidden;margin:17px 0 10px}.progress-track i{display:block;height:100%;background:#69ae92;border-radius:5px;transition:width .2s}.board-foot{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.saved-status{display:flex;align-items:center;gap:5px}.saved-status .icon{width:14px;height:14px}.input-panel{padding-top:2px}.input-toggle{display:flex;background:#e8ecf5;padding:4px;border-radius:12px;gap:4px}.input-toggle button{flex:1;min-height:43px;border-radius:9px;color:var(--muted);font-size:14px}.input-toggle button.active{background:var(--surface);color:var(--blue);box-shadow:0 3px 8px #29416b0a;font-weight:550}.input-toggle .icon{width:17px;height:17px;margin-right:4px}.number-keys{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:18px 0}.number-key{background:var(--surface);box-shadow:0 3px 10px #243c7209;min-height:65px;border-radius:12px;font-size:29px;color:var(--blue);position:relative;font-weight:500}.number-key:hover{background:var(--soft-blue)}.number-key.active{background:var(--blue);color:white}.number-key.exhausted{color:var(--muted);background:#edf0f6;box-shadow:none}.number-key small{position:absolute;bottom:6px;right:10px;font-size:10px;color:var(--muted)}.number-key.active small{color:#e4eaff}.tool-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-bottom:15px}.tool-btn{display:flex;flex-direction:column;align-items:center;gap:6px;min-height:62px;padding:7px 1px;border-radius:10px;color:var(--muted);font-size:11px}.tool-btn:hover{background:var(--soft-blue);color:var(--blue)}.tool-btn .icon{width:21px;height:21px}.hint-trigger{background:var(--gold);color:var(--gold-ink);border-radius:12px;width:100%;min-height:49px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:550;font-size:14px}.hint-trigger:hover{background:#ffe9a3}.input-help{font-size:11px;color:var(--muted);line-height:1.9;margin:17px 0 0;text-align:center}.hint-box{margin-top:16px;background:var(--surface);border-radius:12px;padding:18px;box-shadow:var(--shadow);font-size:13px}.hint-box h3{font-size:15px;margin:0 0 10px;display:flex;gap:8px;align-items:center}.hint-box p{white-space:pre-line;line-height:1.8;margin:10px 0;color:var(--muted)}.hint-box .buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.stage-dots{display:flex;gap:5px;margin-bottom:12px}.stage-dots i{height:4px;width:24px;background:var(--line);border-radius:3px}.stage-dots i.on{background:#d7aa2b}.hint-answer{font-size:22px;color:var(--blue);font-weight:600}.secondary-actions{display:flex;justify-content:space-between;gap:8px;margin-top:22px;font-size:12px;color:var(--muted)}.secondary-actions button{display:flex;align-items:center;gap:5px;min-height:40px}.secondary-actions .icon{width:16px;height:16px}.levels-intro{background:var(--mint);padding:24px 28px;border-radius:16px;color:var(--mint-ink);margin-bottom:28px}.levels-intro h2{margin:0 0 7px;font-size:23px}.levels-intro p{margin:0;font-size:13px}.level-chapter{margin-bottom:28px}.level-chapter h2{font-size:16px;margin-bottom:14px}.level-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.level-node{border-radius:12px;background:var(--surface);padding:18px 14px;text-align:left;min-height:95px;border:1px solid var(--line)}.level-node:hover{border-color:var(--blue)}.level-node.done{background:var(--mint);border-color:transparent}.level-node strong{display:block;font-size:21px;font-weight:600}.level-node span{display:block;font-size:12px;margin-top:6px;color:var(--muted)}.level-node.locked{background:transparent;color:var(--muted)}.level-node .icon{float:right;width:16px;height:16px}.records{display:grid;gap:12px}.record-row{display:flex;align-items:center;justify-content:space-between;gap:15px;background:var(--surface);padding:17px 20px;border-radius:12px;width:100%;text-align:left}.record-row strong{display:block;font-weight:550}.record-row p{font-size:12px;color:var(--muted);margin:5px 0 0}.record-row .icon{color:var(--blue)}.empty-state{padding:65px 20px;text-align:center;color:var(--muted)}.empty-state .icon{width:46px;height:46px;color:#8b9ac1}.empty-state h2{color:var(--ink);font-size:20px;margin:16px 0 8px}.empty-state p{margin:0 0 22px;font-size:14px}.profile-hello{display:flex;align-items:center;gap:17px;margin-bottom:28px}.profile-avatar{height:64px;width:64px;background:var(--soft-blue);color:var(--blue);border-radius:20px;display:grid;place-items:center}.profile-avatar .icon{width:33px;height:33px}.profile-hello h2{margin:0 0 5px;font-size:22px}.profile-hello p{margin:0;color:var(--muted);font-size:13px}.stat-strip{display:grid;grid-template-columns:repeat(3,1fr);background:var(--surface);border-radius:16px;padding:23px 0;margin-bottom:28px}.stat-strip>div{text-align:center}.stat-strip>div+div{border-left:1px solid var(--line)}.stat-strip strong{font-size:25px;display:block}.stat-strip span{font-size:12px;color:var(--muted)}.settings-surface{background:var(--surface);border-radius:16px;padding:2px 22px;margin-bottom:22px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 0;min-height:68px}.setting-row+.setting-row{border-top:1px solid var(--line)}.setting-row label{font-weight:500}.setting-row small{display:block;font-weight:400;color:var(--muted);font-size:12px;margin-top:3px}.setting-row select{max-width:160px;background:var(--bg);color:var(--ink);border:1px solid var(--line);padding:8px;border-radius:8px}.toggle{width:44px;height:26px;border-radius:20px;background:#c2cbdc;position:relative;flex-shrink:0}.toggle:after{content:'';position:absolute;width:20px;height:20px;border-radius:50%;background:white;top:3px;left:3px;transition:left .18s}.toggle.active{background:var(--blue)}.toggle.active:after{left:21px}.notice{background:var(--gold);color:var(--gold-ink);padding:13px 16px;border-radius:10px;font-size:13px;margin-bottom:18px}.pair-code{font-size:29px;letter-spacing:4px;text-align:center;padding:22px 5px;background:var(--soft-blue);border-radius:12px;color:var(--blue);font-variant-numeric:tabular-nums;font-weight:600}.muted{color:var(--muted);font-size:13px}.buttons{display:flex;gap:10px}.conflict-row{background:var(--gold);padding:18px;border-radius:12px;margin-bottom:16px;color:var(--gold-ink)}.conflict-row h3{margin:0 0 8px;font-size:15px}.conflict-row p{font-size:12px}.toast{position:fixed;bottom:35px;left:50%;transform:translate(-50%,12px);background:#26334d;color:#fff;max-width:90vw;border-radius:10px;padding:11px 19px;font-size:13px;opacity:0;pointer-events:none;z-index:100;transition:opacity .18s,transform .18s}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:0;border-radius:16px;background:var(--surface);color:var(--ink);max-width:min(440px,calc(100vw - 32px));padding:28px;box-shadow:0 24px 80px #202c4833}dialog::backdrop{background:#202c4866}dialog h2{margin:0 0 14px;font-size:23px}dialog p{font-size:14px;line-height:1.8;color:var(--muted)}dialog .buttons{margin-top:22px;justify-content:flex-end}.result-graphic{width:84px;height:84px;background:var(--gold);color:#a87b14;display:grid;place-items:center;border-radius:27px;margin:0 auto 19px;transform:rotate(-6deg)}.result-graphic .icon{width:48px;height:48px}.result-dialog{text-align:center}.result-summary{display:flex;justify-content:center;gap:30px;margin:22px 0}.result-summary strong{font-size:22px;display:block}.result-summary span{font-size:12px;color:var(--muted)}.mobile-nav{display:none}.saving-warning{color:var(--red)}.completion-pulse .board{animation:completion .55s ease-out}@keyframes completion{0%{box-shadow:0 0 0 0 #72b89c55}65%{box-shadow:0 0 0 9px #72b89c20}100%{box-shadow:0 0 0 0 #72b89c00}}.celebrate{position:fixed;inset:0;pointer-events:none;z-index:80;overflow:hidden}.confetti{position:absolute;width:8px;height:13px;border-radius:2px;top:-30px;animation:fall 1.8s cubic-bezier(.12,.55,.38,1) forwards;background:var(--blue)}@keyframes fall{to{transform:translate(var(--drift),100vh) rotate(560deg);opacity:0}}
html[data-theme=dark]{--bg:#192135;--surface:#232e46;--ink:#edf1fb;--muted:#aab8d3;--line:#3a4864;--blue:#95b0ff;--soft-blue:#2e3c61;--mint:#244b42;--mint-ink:#b6e5cf;--gold:#4e4327;--gold-ink:#f4d98f;--purple:#413659;--purple-ink:#d9c5fb;--cell:#232e46;--related:#293650;--selected:#3b5083;--same:#35436a;--focus:#5d5029;--red:#ffb1b9;--red-bg:#50313f;color-scheme:dark}html[data-theme=dark] .play-banner,html[data-theme=dark] .btn:not(.secondary):not(.white):not(.mint){background:#5475d9;color:#fff}html[data-theme=dark] .input-toggle{background:#152036}html[data-theme=dark] .pause-layer{background:#192135eb}html[data-theme=dark] .number-key.exhausted{background:#1f293e}html[data-theme=dark] .toggle:after{background:#edf1fb}
@media(min-width:1250px){.home-page{max-width:870px;margin:auto}.game-page{margin-left:-15px;margin-right:-15px}}@media(max-width:1100px){.app-shell{grid-template-columns:185px minmax(0,1fr)}.sidebar{padding:28px 18px}.brand{font-size:17px}.sidebar-bottom{font-size:11px}main{padding:30px}.game-layout{grid-template-columns:minmax(240px,1fr) 220px;gap:20px}.number-key{min-height:57px}.input-help{display:none}.cell{font-size:27px}}
@media(max-width:820px){.app-shell{display:block}.sidebar{display:none}main{padding:25px 22px 100px}.page-title{margin-bottom:24px}.home-page,.levels-page,.profile-page,.records-page{max-width:600px;margin:auto}.mobile-nav{position:fixed;bottom:0;left:0;right:0;background:var(--surface);border-top:1px solid var(--line);display:flex;justify-content:space-around;padding:9px 15px calc(8px + env(safe-area-inset-bottom));z-index:10}.mobile-nav button{display:flex;flex-direction:column;gap:3px;align-items:center;min-width:60px;font-size:11px;color:var(--muted)}.mobile-nav button.active{color:var(--blue)}.mobile-nav .icon{width:22px;height:22px}.game-page{max-width:600px;margin:auto}.game-layout{display:block}.game-header{margin-bottom:14px}.game-heading h1{font-size:21px}.input-panel{padding-top:18px}.number-keys{grid-template-columns:repeat(5,1fr);gap:8px;margin:13px 0}.number-key{min-height:58px;font-size:26px}.number-key.erase-key{display:flex!important;align-items:center;justify-content:center;color:var(--muted)}.number-key:nth-child(10){display:block}.input-toggle{max-width:240px;margin:auto}.input-toggle button{min-height:37px}.tool-grid{grid-template-columns:repeat(5,1fr);margin-bottom:6px}.tool-btn{min-height:56px;font-size:11px}.hint-trigger{margin-top:9px}.input-help{display:none}.board-meta{margin-bottom:9px}.board-foot{font-size:11px}.cell{font-size:clamp(22px,5.8vw,31px)}.cell .notes{font-size:clamp(9px,2.4vw,12px);padding:2px}.hint-box{margin-top:12px}.secondary-actions{margin-top:13px}body.playing main{padding-bottom:23px}body.playing .mobile-nav{display:none}.toast{bottom:85px}body.playing .toast{bottom:24px}.board-foot .saved-status{max-width:60%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-header .back-btn{font-size:12px}.game-header>.icon-btn{display:none}.game-heading{gap:8px}.game-heading .tag{font-size:11px}}
@media(min-width:821px){.number-key.erase-key{display:none!important}}
@media(max-width:440px){main{padding:23px 18px 94px}.home-intro{margin-bottom:24px}.home-intro h2{font-size:29px}.home-intro p{font-size:13px}.page-title h1{font-size:21px}.date{font-size:11px}.play-banner{padding:22px;min-height:158px;gap:10px}.play-banner h3{font-size:21px}.play-banner p{font-size:12px}.banner-board{width:88px;gap:5px;margin-right:0}.banner-board span{font-size:19px;border-radius:7px}.daily-panel,.journey-panel{padding:17px 16px;min-height:157px;display:block}.mode-art,.journey-art{position:absolute;right:14px;top:20px;width:34px;height:36px;opacity:.4}.journey-art i{width:11px;height:11px}.mode-title{font-size:17px;margin-top:17px}.mode-sub{font-size:11px}.home-modes{gap:12px}.section-title{margin-top:25px;font-size:16px}.practice-panel{padding:18px}.practice-top{margin-bottom:14px}.practice-top h3{font-size:16px}.sizes{gap:0}.size-btn{padding:5px 8px;font-size:12px;min-height:32px}.difficulty-grid{gap:7px}.diff-option{padding:10px 8px;min-height:75px}.diff-option strong{font-size:13px}.diff-option span{font-size:10px;line-height:1.6}.practice-bottom p{font-size:11px;max-width:145px}.practice-bottom .btn{padding:10px 17px;min-height:43px;font-size:13px}.home-footer{font-size:11px;margin-top:23px}.home-intro{margin-top:0}.game-heading h1{font-size:19px}.number-key{min-height:51px}.board-foot{font-size:10px}.stat-strip strong{font-size:23px}.setting-row label{font-size:14px}.level-grid{gap:9px}.level-node{padding:14px 10px;min-height:90px}.level-node span{font-size:11px}.level-node strong{font-size:19px}.settings-surface{padding:2px 17px}.pair-code{font-size:25px;letter-spacing:2px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.confetti{display:none}}
@media(max-width:820px){body.playing main{padding-top:14px;padding-bottom:16px}.game-header{margin-bottom:8px}.game-layout .input-panel{padding-top:10px}.board-side .progress-track{margin-top:12px;margin-bottom:7px}.secondary-actions{margin-top:5px}.secondary-actions button{min-height:30px}.input-panel .number-keys{margin:10px 0 6px}.tool-grid .tool-btn{min-height:48px;padding:5px 1px}.input-panel .hint-trigger{min-height:45px;margin-top:5px}.game-page .board{max-width:min(100%,max(255px,calc(100dvh - 475px)));margin:auto}.game-page .board-meta{min-height:32px}.input-panel .input-toggle button{min-height:34px}}
html[data-theme=dark] .play-banner{box-shadow:none}
:root{--bg:#f5f6f8;--ink:#252a34;--muted:#66707d;--line:#e3e6eb;--blue:#3569b5;--soft-blue:#edf3fc;--gold:#fff1d3;--gold-ink:#805e24;--mint:#e5f2ed;--mint-ink:#3a6856}
.app-shell{grid-template-columns:184px minmax(0,1fr);max-width:1300px}.sidebar{padding:26px 20px}.brand{font-size:17px;font-weight:550}.brand img{width:31px;height:31px}.sidebar nav{margin-top:34px;gap:5px}.nav-item{font-weight:400;padding:11px 13px;min-height:44px}.sidebar-bottom{font-size:11px}main{padding:28px clamp(24px,4vw,60px)}.home-page{max-width:790px}.compact-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.compact-header h1{font-size:23px;font-weight:550;letter-spacing:0;margin:0}.compact-header .text-btn{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--muted);min-height:40px}.compact-header .icon{width:17px;height:17px}.continue-row{display:flex;align-items:center;gap:15px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:15px 17px;margin-bottom:15px}.continue-thumb{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#d6deec;border:1px solid #c4cfe0;width:45px;height:45px;border-radius:4px;overflow:hidden}.continue-thumb i{background:var(--surface);display:grid;place-items:center;font-size:8px;font-style:normal}.continue-info{flex:1;min-width:0}.continue-info strong{display:block;font-size:16px;font-weight:500}.continue-info span{display:block;font-size:12px;color:var(--muted);margin-top:3px}.continue-row .btn{min-height:40px;padding:8px 15px;font-weight:500}.continue-row .btn .icon{height:17px;width:17px}.compact-modes{display:grid;grid-template-columns:1.12fr 1fr;gap:12px;margin-bottom:23px}.compact-daily,.compact-levels{border-radius:12px;min-height:79px;display:flex;align-items:center;gap:13px;padding:15px 18px;text-align:left}.compact-daily{background:var(--gold);color:var(--gold-ink)}.compact-levels{background:var(--mint);color:var(--mint-ink)}.compact-modes strong{display:block;font-size:16px;font-weight:500;color:var(--ink)}.compact-modes small{display:block;font-size:12px;color:inherit;margin-top:3px}.compact-modes>button>span{flex:1}.compact-modes>button>.icon:last-child{width:17px;height:17px}.compact-practice{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px}.compact-practice .practice-top{margin-bottom:16px}.compact-practice h2{font-size:17px;font-weight:500;margin:0}.compact-practice .sizes{padding:3px;gap:1px}.compact-practice .size-btn{min-height:34px;font-size:13px;padding:5px 12px}.variant-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:8px 0 20px}.variant-tab{border:1px solid transparent;border-radius:10px;min-height:93px;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;color:var(--muted);font-size:14px}.variant-tab:hover{background:var(--bg)}.variant-tab.active{background:var(--soft-blue);color:var(--blue);border-color:#b8cdeb}.variant-mini{display:grid;grid-template-columns:repeat(3,1fr);height:38px;width:38px;border:1.5px solid currentColor;gap:1px;background:#c7d0dd;border-radius:3px;overflow:hidden}.variant-mini i{background:var(--surface);font-size:9px;display:grid;place-items:center;font-style:normal;color:var(--blue)}.variant-mini.diagonal i:nth-child(4n + 1){background:#e5e0f4}.variant-mini.irregular i:nth-child(2),.variant-mini.irregular i:nth-child(4),.variant-mini.irregular i:nth-child(5){background:#d9eee5}.variant-mini.killer i:nth-child(1),.variant-mini.killer i:nth-child(2),.variant-mini.killer i:nth-child(5){outline:1px dashed #a78c55;outline-offset:-2px;background:#fff8e8}.quick-difficulties{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.quick-difficulty{min-height:58px;border:1px solid var(--line);border-radius:10px;background:var(--surface);display:flex;align-items:center;justify-content:center;gap:10px;font-size:15px;color:var(--ink);font-weight:400}.quick-difficulty.first{background:var(--blue);color:white;border-color:var(--blue)}.quick-difficulty:hover{filter:brightness(.98);border-color:var(--blue)}.quick-difficulty .icon{width:16px;height:16px}.recent-section{margin-top:23px}.recent-section .section-title{margin:0 0 7px}.recent-section h2{font-size:15px;font-weight:500;margin:0}.recent-section .text-btn{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted)}.recent-section .icon{width:16px;height:16px}.compact-record{display:flex;align-items:center;gap:11px;width:100%;text-align:left;padding:12px 0;border-bottom:1px solid var(--line)}.record-mark{width:34px;height:34px;display:grid;place-items:center;background:#e4ebf6;border-radius:8px;color:#44658e;font-size:17px;font-weight:500}.record-mark.diagonal{background:#ece6f7;color:#735991}.record-mark.irregular{background:#e1efe7;color:#47745d}.record-mark.killer{background:#f6eddb;color:#8c6d38}.recent-info{flex:1}.recent-info strong{font-size:14px;font-weight:400;display:block}.recent-info small{font-size:12px;color:var(--muted);display:block;margin-top:2px}.recent-progress{font-size:12px;color:var(--muted)}.compact-empty{padding:20px 0;font-size:13px;color:var(--muted)}.cell.diagonal{background:#f0edf8}.cell.diagonal.related{background:#e8e5f3}.cell.diagonal.selected{background:var(--selected)}.cage-sum{position:absolute;top:3px;left:5px;font-size:9px;font-weight:600;line-height:1;color:var(--ink);z-index:1;background:var(--cell);padding:0 1px}.cage-border{position:absolute;pointer-events:none;border-color:#a58d62;border-style:dashed;border-width:0;z-index:1}.cage-border.top{top:2px;left:3px;right:3px;border-top-width:1px}.cage-border.bottom{bottom:2px;left:3px;right:3px;border-bottom-width:1px}.cage-border.left{left:2px;top:3px;bottom:3px;border-left-width:1px}.cage-border.right{right:2px;top:3px;bottom:3px;border-right-width:1px}.killer-cell{padding-top:4px}.cell{font-weight:400}.cell.given{font-weight:500}.number-key{font-weight:400}.game-heading h1{font-weight:500;font-size:21px}.game-heading .tag{font-weight:400}.game-page .btn{font-weight:500}.input-toggle button.active{font-weight:500}.game-page .input-help{display:none}
@media(max-width:820px){.app-shell{display:block}main{padding:18px 18px 90px}.compact-header{margin-bottom:12px}.compact-header h1{font-size:20px}.compact-header .text-btn{font-size:12px}.compact-modes{margin-bottom:16px;gap:10px}.compact-daily,.compact-levels{min-height:73px;padding:12px 14px;gap:10px}.compact-modes strong{font-size:15px}.compact-modes small{font-size:11px}.compact-modes .icon{height:20px;width:20px}.continue-row{padding:12px;margin-bottom:12px;gap:11px}.continue-info strong{font-size:15px}.continue-info span{font-size:11px}.continue-row .btn{min-height:38px;padding:7px 12px;font-size:13px}.compact-practice{padding:15px}.compact-practice h2{font-size:16px}.compact-practice .size-btn{min-height:32px;padding:5px 9px;font-size:12px}.variant-tabs{gap:5px;margin:4px 0 15px}.variant-tab{min-height:88px;font-size:13px;gap:8px}.quick-difficulties{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.quick-difficulty{min-height:48px;font-size:15px;gap:12px}.quick-difficulty .icon{margin-left:auto}.quick-difficulty>span:nth-child(2){flex:1;text-align:left}.quick-difficulty .icon{margin-right:13px}.recent-section{margin-top:17px}.recent-section h2{font-size:14px}.compact-record{padding:11px 0}.mobile-nav button{font-size:12px}.mobile-nav .nav-item{min-height:43px}.mobile-nav{padding-top:6px;padding-bottom:calc(6px + env(safe-area-inset-bottom))}.cell.killer-cell .notes{padding-top:10px}.cage-sum{font-size:8px;left:4px;top:2px}.variant-mini{width:35px;height:35px}}
html[data-theme=dark] .cell.diagonal{background:#39364f}html[data-theme=dark] .cell.diagonal.related{background:#42405b}html[data-theme=dark] .cell.diagonal.selected{background:var(--selected)}

.quick-difficulties{grid-template-columns:repeat(var(--options,4),minmax(0,1fr))}@media(max-width:820px){.quick-difficulties{grid-template-columns:repeat(var(--mobile-options,2),minmax(0,1fr))}}

.tool-grid{grid-template-columns:repeat(5,1fr)}.secondary-actions{gap:10px}.secondary-actions button{font-size:12px}.game-page .cage-sum{font-family:inherit}@media(max-width:440px){.secondary-actions button{font-size:12px}}

.variant-tabs{grid-template-columns:repeat(5,1fr)}.variant-mini.calcudoku{background:#d6dce4}.variant-mini.calcudoku i:nth-child(1),.variant-mini.calcudoku i:nth-child(2),.variant-mini.calcudoku i:nth-child(5){background:#fff0d6;outline:1px solid #9a7d4c;outline-offset:-1px}.calcudoku-cell .cage-border{border-style:solid;border-color:#586171}.calcudoku-cell .cage-border.top,.calcudoku-cell .cage-border.bottom{border-width:1.5px 0 0}.calcudoku-cell .cage-border.left,.calcudoku-cell .cage-border.right{border-width:0 0 0 1.5px}.calcudoku-cell .cage-sum{font-size:11px}.calcudoku-cell{padding-top:8px}@media(max-width:820px){.variant-tabs{gap:3px}.variant-tab{font-size:12px;min-height:82px}.variant-mini{width:32px;height:32px}.calcudoku-cell .cage-sum{font-size:10px}}

.compact-header{display:none}@media(max-width:820px){.compact-header{display:flex}}.game-page.dark{--bg:#192135;--surface:#232e46;--ink:#edf1fb;--muted:#aab8d3;--blue:#95b0ff}

/* Visual learning and compact personal records. */
.lesson-widget{background:var(--surface);border-radius:12px;padding:12px 14px 6px;border:1px solid var(--line)}.demo-tabs{display:flex;gap:4px}.demo-tab{flex:1;display:flex;align-items:center;justify-content:center;min-height:44px;font-size:13px;color:var(--muted);border-radius:6px;background:var(--bg)}.demo-tab.active{background:var(--soft-blue);color:var(--blue);font-weight:500}.demo-prompt{text-align:center;font-size:14.5px;font-weight:500;margin:12px 0 10px;min-height:23px;color:var(--ink)}.demo-prompt.success{color:#32654f}.demo-board{display:grid;grid-template-columns:repeat(4,1fr);width:192px;height:192px;max-width:100%;margin:auto;border:2px solid #7288a7;border-radius:7px;overflow:hidden}.demo-cell{display:flex;align-items:center;justify-content:center;border-right:1px solid #d8e1ef;border-bottom:1px solid #d8e1ef;background:var(--surface);font-size:20px;color:var(--muted);position:relative}.demo-cell:nth-child(4n){border-right:0}.demo-cell:nth-last-child(-n+4){border-bottom:0}.demo-cell.split-r{border-right:2px solid #7288a7}.demo-cell.split-b{border-bottom:2px solid #7288a7}.demo-cell.lit{background:#edf3fc;color:#3569b5}.demo-cell.target{background:#d9e8ff;box-shadow:inset 0 0 0 2px #3569b5;font-weight:500}.demo-question{color:#3569b5}.demo-notes{display:grid;grid-template-columns:repeat(2,1fr);width:100%;height:100%;font-size:10.5px}.demo-notes i{display:flex;align-items:center;justify-content:center}.demo-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:11px}.demo-choices .demo-choice{width:100%;min-width:0;height:44px;min-height:44px;border:1px solid #b9ccea;border-radius:7px;color:var(--blue);background:var(--soft-blue);font-size:17.5px;font-weight:400}.demo-choices .demo-choice.active{background:var(--blue);color:white}.demo-choices .demo-choice.wrong{background:#fff0e5;border-color:#c28a60;color:#8a5029}.demo-choices .demo-choice[disabled]{opacity:1}.demo-footer{display:flex;align-items:center;justify-content:space-between;min-height:27px;margin-top:4px}.demo-dots{display:flex;gap:4px}.demo-dots i{width:5px;height:5px;border-radius:50%;background:var(--line)}.demo-dots i.on{background:var(--blue)}.demo-footer .demo-next{width:auto;display:flex;align-items:center;gap:5px;min-height:44px;color:var(--blue);font-size:12px;padding:0 3px}html[data-theme=dark] .demo-cell.lit{background:#2d3b57;color:#b2c7f4}html[data-theme=dark] .demo-cell.target{background:#3b5083;color:#edf1fb}html[data-theme=dark] .demo-prompt.success{color:#a9d8bf}

.learn-page{padding-top:6px}.course-heading{display:flex;align-items:center;justify-content:space-between;margin:16px 0 9px;font-size:14.5px;font-weight:500}.course-count{color:var(--muted);font-size:11.5px;font-weight:400}.course-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.course-chapter{padding:12px 9px;border-radius:11.5px;background:#e5f2ed;color:#32654f}.course-chapter.standard{background:#e8f0ff;color:#3569b5}.course-chapter.advanced{background:#fff1d3;color:#805e24}.course-chapter.challenge{background:#eee8f7;color:#70558c}.course-title{display:flex;align-items:center;gap:7px;font-size:14.5px;font-weight:500}.course-symbol{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5px;width:17px;height:17px}.course-symbol i{border:1px solid currentColor;border-radius:1.5px}.course-symbol i:first-child{background:currentColor}.course-nodes{display:flex;gap:4px;margin-top:11px}.course-nodes .level{width:0;min-width:0;flex:1;height:36px;min-height:44px;display:flex;align-items:center;justify-content:center;border-radius:7px;background:var(--surface);font-size:12px;color:inherit;font-weight:500}.course-nodes .level.locked{background:rgba(255,255,255,.45);color:#6d7580}.course-nodes .level.done{background:var(--blue);color:white}html[data-theme=dark] .course-chapter{background:var(--surface);color:var(--ink)}

.profile-page{padding-top:6px}.account-card{background:var(--surface);border-radius:12px;padding:12px 14px}.account-head{display:flex;align-items:center;gap:10px}.account-emblem{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;background:var(--soft-blue)}.account-emblem image{width:22px;height:22px}.account-name{flex:1;font-size:15.5px;font-weight:500}.connection-state{font-size:11px;color:var(--muted);font-weight:400;display:flex;align-items:center;gap:4px;margin-top:2.5px}.state-dot{width:5px;height:5px;border-radius:50%;background:#8a96a8}.state-dot.connected{background:#4f9775}.account-card .more-button{display:flex;align-items:center;justify-content:center;gap:3px;width:44px;height:44px;min-width:44px}.more-button i{height:3px;width:3px;border-radius:50%;background:var(--muted)}.account-stats{display:flex;border-top:1px solid var(--line);margin-top:11px;padding-top:11px}.account-stats>div{flex:1;text-align:center;display:flex;flex-direction:column;gap:2px;font-size:11.5px;color:var(--muted)}.account-stats .stat-value{font-size:21px;line-height:1.3;color:var(--ink);font-weight:500}.preference-group{background:var(--surface);border-radius:12px;margin-top:11px;padding:0 14px}.group-heading{font-size:12px;color:var(--muted);padding:11px 0 4px}.preference-row{display:flex;align-items:center;justify-content:space-between;min-height:48px;gap:8px;font-size:14.5px}.preference-row+.preference-row{border-top:1px solid var(--line)}.check-options{display:flex;gap:2px}.check-choice{min-height:44px;min-width:36px;padding:0 6px;display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--muted);position:relative;z-index:0}.check-choice.active{color:var(--blue);font-weight:500}.check-choice.active:before{content:'';position:absolute;inset:6px 0;background:var(--soft-blue);border-radius:5px;z-index:-1}.profile-menu{background:var(--surface);border-radius:12px;padding:0 14px;margin-top:11px}.profile-menu .profile-menu-row{width:100%;min-height:52px;display:flex;align-items:center;text-align:left;gap:9px;font-size:14.5px;font-weight:400}.profile-menu-row+.profile-menu-row{border-top:1px solid var(--line)}.profile-menu-row image{width:17px;height:17px}.profile-menu-row>text{flex:1}.menu-status{display:flex;align-items:center;gap:8px;font-size:11.5px;color:var(--muted)}.menu-status .chevron,.profile-menu-row>.chevron{height:6px;width:6px;border-width:1px;color:var(--muted)}.about{text-align:center;font-size:11px;color:var(--muted);padding:15px 0}.code-input{background:var(--bg);border:1px solid var(--line);border-radius:7px;min-height:50px;font-size:16px;letter-spacing:1.5px;padding:8px 11px;margin-top:12px}.inline-error{display:flex;align-items:center;gap:10px;padding:9px 11px;color:#8a5029;background:#fff1d3;border-radius:7.5px;font-size:12px;margin-top:10px}.inline-error text{flex:1}.inline-error button{width:auto;min-width:44px;min-height:44px;color:var(--blue)}

.book-page{padding-top:3px}.filter-strip{display:flex;gap:3px;margin-bottom:7px}.filter-strip .seg-item{min-height:44px;background:transparent;position:relative;font-size:13px;flex:1}.filter-strip .seg-item>text{padding:5px 9px;border-radius:6px}.filter-strip .seg-item.active>text{background:var(--soft-blue);color:var(--blue);font-weight:500}.book-list{background:var(--surface);border-radius:12px;padding:0 12px}.book-row{display:flex;align-items:center;gap:10px;padding:12px 0;min-height:66px}.book-row+.book-row{border-top:1px solid var(--line)}.puzzle-thumb{display:grid;width:48px;height:48px;border:1px solid #bdcbe0;border-radius:3.5px;overflow:hidden;flex-shrink:0;gap:1px;background:#dce5f2}.puzzle-thumb i{background:var(--surface)}.puzzle-thumb .given{background:#b8c7dc}.puzzle-thumb .filled{background:#6c9dd9}.book-info{flex:1;min-width:0;font-size:14px}.book-meta{font-size:11.5px;color:var(--muted);margin-top:3px}.book-progress{font-size:11.5px;color:var(--muted)}.book-row>.chevron{height:6px;width:6px;border-width:1px;color:var(--muted)}.book-empty{padding:40px 0;display:flex;flex-direction:column;align-items:center;gap:10px;font-size:13.5px;color:var(--muted)}.book-empty image{width:36px;height:36px}.book-empty .btn{margin-top:6px;width:auto}

.compact-page-heading h1{font-size:21px;font-weight:500;margin:0 0 16px}.learn-page,.book-page{max-width:790px;margin:auto}.profile-page{max-width:640px;margin:auto}.learn-page{display:grid;grid-template-columns:minmax(290px,1fr) minmax(260px,1fr);gap:20px}.learn-page>.compact-page-heading{grid-column:1/-1}.learn-page>.lesson-widget{grid-column:1;grid-row:2/4}.learn-page>.course-heading{grid-column:2;grid-row:2;margin:0;align-self:end}.learn-page>.course-grid{grid-column:2;grid-row:3;align-self:start}.demo-notes i{font-style:normal;display:flex;align-items:center;justify-content:center}.demo-dots i{display:block;width:5px;height:5px;border-radius:50%;background:var(--line)}.demo-dots i.on{background:var(--blue)}.demo-next .icon{width:16px;height:16px}.course-symbol i{display:block;border:1px solid currentColor;border-radius:2px}.course-symbol i:first-child{background:currentColor}.account-emblem .icon{width:24px;height:24px;color:var(--blue)}.account-name{display:block}.connection-state{display:flex}.state-dot{display:inline-block}.more-button i{display:block;width:3px;height:3px;border-radius:50%;background:var(--muted)}.account-stats strong{font-size:21px;line-height:1.3;color:var(--ink);font-weight:500}.profile-menu-row span{flex:1;text-align:left}.profile-menu-row small{color:var(--muted);font-size:12px}.profile-menu-row .icon:first-child{width:18px;height:18px}.profile-menu-row .icon:last-child{width:16px;height:16px;color:var(--muted)}.puzzle-thumb{flex:none}.puzzle-thumb i{display:block;background:var(--surface)}.book-row{width:100%;text-align:left}.book-info{display:flex;flex-direction:column;gap:3px}.book-info strong{font-weight:500}.book-info small{font-size:12px;color:var(--muted)}.book-row>.icon{width:16px;height:16px;color:var(--muted)}.book-filter{flex:1;min-height:44px;padding:0;font-size:13px;color:var(--muted)}.book-filter span{display:inline-block;padding:6px 10px;border-radius:6px}.book-filter.active span{background:var(--soft-blue);color:var(--blue);font-weight:500}.book-empty .icon{width:36px;height:36px}.book-empty p{margin:0}.group-heading{font-weight:400}.preference-row{font-size:15px}.profile-menu .profile-menu-row{font-size:15px}.action-sheet h2{font-size:18px;margin:0 0 12px}.action-sheet>button{display:flex;width:100%;min-height:48px;align-items:center;justify-content:center;border-bottom:1px solid var(--line);font-size:15px}.action-sheet>button:last-child{border:0;color:var(--muted)}.rule-example{font-size:32px;letter-spacing:4px;background:var(--soft-blue);color:var(--blue);padding:30px;text-align:center;border-radius:12px}.rule-caption{font-size:14px;max-width:38ch;margin:18px auto}.compact-home.has-save .continue-row{background:var(--blue);color:white;border-color:transparent}.has-save .continue-info span{color:#e7effa}.has-save .continue-row .btn{background:white;color:#3569b5}.has-save .quick-difficulty.first{background:var(--surface);color:var(--ink);border-color:var(--line)}.compact-home .continue-info strong{font-weight:500}.home-page .continue-row{min-height:88px}
@media(max-width:820px){.learn-page{display:block}.learn-page>.course-heading{margin:16px 0 9px}.compact-page-heading h1{font-size:20px;margin-bottom:12px}.lesson-widget{padding:12px 14px 6px}.course-grid{gap:9px}.book-row{min-height:76px;padding:12px 0}.profile-page .about{margin:0}.demo-tab{min-height:44px}dialog:has(.action-sheet){margin:auto 0 0;width:100%;max-width:none;border-radius:20px 20px 0 0;padding-bottom:calc(15px + env(safe-area-inset-bottom))}.compact-home .continue-row{min-height:74px}}

.preference-row .toggle{width:44px;height:44px;min-width:44px;min-height:44px;background:transparent}.preference-row .toggle:before{content:'';position:absolute;left:1px;top:9px;width:42px;height:25px;border-radius:20px;background:#c2cbdc}.preference-row .toggle:after{width:19px;height:19px;left:4px;top:12px}.preference-row .toggle.on{background:transparent}.preference-row .toggle.on:before{background:var(--blue)}.preference-row .toggle.on:after{left:21px}.course-grid{display:flex;flex-direction:column;gap:8px}.course-chapter{display:flex;align-items:center;gap:8px;justify-content:space-between;padding:9px 10px}.course-nodes{margin:0;flex:none}.course-nodes .level{flex:none;width:44px;height:44px;min-width:44px}.course-title{font-size:14px}.course-symbol{width:15px;height:15px}.learn-page{grid-template-columns:minmax(300px,1fr) minmax(300px,1fr)}.rule-detail{font-size:13px;color:var(--muted);margin:12px 0}.rule-detail summary{min-height:44px;display:flex;align-items:center;cursor:pointer}
.continue-thumb i{color:var(--ink)}.demo-choices .demo-choice{display:flex;align-items:center;justify-content:center}
@media(max-width:940px){.learn-page{display:block}.learn-page>.course-heading{margin:16px 0 9px}}
.compact-home .daily-feature{display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%;background:var(--gold);color:var(--ink);padding:22px 24px;border-radius:14px;text-align:left;margin-bottom:18px}.feature-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0}.feature-title{display:block;font-size:23px;line-height:1.3;font-weight:500}.feature-meta{display:block;font-size:12px;color:var(--gold-ink);margin-top:6px}.feature-start{display:flex;align-items:center;justify-content:center;gap:15px;min-height:44px;padding:8px 18px;background:var(--blue);color:var(--surface);border-radius:10px;font-size:14px;margin-top:18px}.feature-start .icon{width:17px;height:17px}.daily-mini{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));width:112px;height:112px;flex:none;overflow:hidden;background:var(--surface);border:1px solid #91a4c1;border-radius:7px}.daily-mini i{display:flex;align-items:center;justify-content:center;border-right:1px solid #dde4ef;border-bottom:1px solid #dde4ef;font-style:normal;color:var(--blue);font-size:8px;font-weight:500;line-height:1}.daily-mini i:nth-child(3n){border-right-color:#91a4c1}.daily-mini i:nth-child(9n){border-right:0}.daily-mini i:nth-child(n+19):nth-child(-n+27),.daily-mini i:nth-child(n+46):nth-child(-n+54){border-bottom-color:#91a4c1}.daily-mini i:nth-last-child(-n+9){border-bottom:0}.daily-home .quick-difficulty.first{background:var(--surface);color:var(--ink);border-color:var(--line)}.compact-home .resume-strip{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;border:1px solid var(--line);border-radius:11px;background:var(--surface);padding:8px 14px;margin-top:12px;font-size:14px;text-align:left}.resume-strip strong{font-weight:400;white-space:nowrap}.resume-strip .icon{width:18px;height:18px;color:var(--muted)}.resume-type{font-size:12px;color:var(--muted);flex:1}.resume-percent{font-size:12px;color:var(--muted)}.resume-strip .icon:last-child{width:16px;height:16px}.daily-feature:hover .feature-start{filter:brightness(.96)}
@media(max-width:820px){.compact-home .daily-feature{padding:18px;gap:16px;margin-bottom:16px}.feature-title{font-size:21px}.feature-meta{font-size:11px}.feature-start{font-size:14px;padding:8px 14px;margin-top:14px}.daily-mini{width:96px;height:96px;font-size:7px}.daily-mini i{font-size:7px}.compact-home .resume-strip{gap:9px;font-size:13px;padding:8px 12px}.resume-type{font-size:11px}.resume-percent{font-size:11px}}
.daily-finished .feature-start{background:var(--mint);color:var(--mint-ink)}.daily-finished .quick-difficulty.first{background:var(--blue);color:var(--surface);border-color:var(--blue)}
@media(max-width:360px){.variant-tab{padding:6px 2px}.variant-tab>span:last-child{white-space:nowrap}.quick-difficulty{gap:8px;padding:0 10px}.quick-difficulty>span:nth-child(2){white-space:nowrap}.quick-difficulty .icon{margin-left:auto;margin-right:0}}

.board-foot #progress-text{min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.board-foot #save-status{flex-shrink:0;max-width:45%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.board-foot .entry-feedback{font-size:12px;color:var(--blue)}.board-foot .entry-success{color:var(--mint-ink)}.board-foot .entry-retry{color:var(--gold-ink)}

.daily-home .quick-difficulty{gap:10px;border-color:transparent}.daily-home .quick-difficulty.easy{background:var(--mint);color:var(--mint-ink)}.daily-home .quick-difficulty.standard{background:#e8f0ff;color:#3569b5}.daily-home .quick-difficulty.advanced{background:var(--gold);color:var(--gold-ink)}.daily-home .quick-difficulty.challenge{background:#eee8f7;color:#70558c}.level-mark{display:grid;grid-template-columns:repeat(2,1fr);gap:2px;width:17px;height:17px;flex:none;transform:rotate(-6deg)}.level-mark i{border:1px solid currentColor;border-radius:1.5px}.level-mark .lit{background:currentColor}.daily-home .quick-difficulty>span:not(.level-mark){white-space:nowrap}
html[data-theme=dark] .daily-home .quick-difficulty.standard{background:var(--soft-blue);color:var(--blue)}html[data-theme=dark] .daily-home .quick-difficulty.challenge{background:#39364f;color:var(--ink)}.daily-finished .quick-difficulty.first{background:var(--blue);color:var(--surface);border-color:transparent}
.compact-home .resume-strip{gap:10px;padding:7px 10px;min-height:52px}.resume-strip .puzzle-thumb{width:36px;height:36px}.resume-info{flex:1;min-width:0}.resume-info strong{font-size:13px;color:var(--ink);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.resume-meta{display:block;font-size:10.5px;color:var(--muted);margin-top:1.5px;white-space:nowrap}.resume-start{display:flex;align-items:center;gap:7px;white-space:nowrap;color:var(--blue);font-size:12.5px}.resume-start .icon{color:inherit;width:16px;height:16px}

.daily-home .quick-difficulty.easy,.daily-home .quick-difficulty.standard,.daily-home .quick-difficulty.advanced,.daily-home .quick-difficulty.challenge{border-color:transparent}html[data-theme=dark] .daily-finished .quick-difficulty.first{background:var(--blue);color:var(--surface);border-color:transparent}
