@font-face{font-family:ZenNumbers;src:url('assets/numbers.ttf') format('truetype');font-weight:450;unicode-range:U+0030-0039;font-display:swap}:root{--ink:#2c5350;--muted:#718680;--primary:#318d7b;--primary-dark:#257564;--soft:#e5f2eb;--bg:#f7faf6;--paper:#fffefa;--grid:#dce5df;--major:#88a89c;--peach:#f1dfd2;--butter:#fae6ad;--radius:20px}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Noto Sans",sans-serif}button,a,input{touch-action:manipulation}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button{border:0}button:disabled{cursor:default;opacity:.36}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #d6a947;outline-offset:3px}button:active:not(:disabled){transform:translateY(1px)}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sprite{display:none}[hidden]{display:none!important}.shell{max-width:1220px;margin:auto;padding-inline:28px}.site-header{background:rgba(255,254,250,.96);border-bottom:1px solid #e2eae1}.header-inner{max-width:1220px;padding:0 28px;margin:auto;display:flex;align-items:center;gap:46px;min-height:86px}.brand{display:flex;align-items:center;gap:10px;font-size:23px;font-weight:650;letter-spacing:-.7px;white-space:nowrap;min-height:44px}.brand img{border-radius:9px;object-fit:contain}.top-nav{display:flex;align-items:stretch;gap:27px;align-self:stretch}.top-nav button,.top-nav a{display:flex;align-items:center;position:relative;padding:0 1px;min-height:44px;font-weight:550;background:none;color:var(--muted);font-size:14px}.top-nav .active{color:var(--primary)}.top-nav .active:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;border-radius:3px;background:var(--primary)}.header-actions{margin-left:auto;display:flex;align-items:center;gap:15px}.language{background:none;color:var(--muted);width:44px;height:44px;font-size:12px;font-weight:600}.app-link{display:flex;align-items:center;justify-content:center;gap:8px;background:var(--soft);color:var(--primary-dark);padding:10px 16px;min-height:44px;border:1px solid #dce9df;border-radius:12px;font-size:12px;font-weight:600}.app-link svg{width:18px;height:18px}.mobile-nav{display:none}.play-section{padding-top:30px;padding-bottom:38px}.section-intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.eyebrow{font-size:10px;letter-spacing:.2em;color:#80948b;font-weight:600}.section-intro h1{font-size:22px;line-height:1.4;margin:3px 0 0;font-weight:600;letter-spacing:-.5px}.tiny-welcome{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:9px;padding-right:3px}.status-dot{width:6px;height:6px;border-radius:50%;background:#94b9a3;box-shadow:0 0 0 4px #e9f2e9}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 236px;gap:30px;align-items:start}.game-stage{display:grid;grid-template-columns:minmax(0,560px) minmax(220px,264px);gap:24px}.board-top{height:42px;display:flex;align-items:flex-start;justify-content:space-between}.levels{display:flex;align-items:center;gap:5px;margin-top:-5px}.level{background:none;padding:7px 13px;border-radius:9px;color:var(--muted);min-height:36px;font-size:12px}.level.active{background:#e3f0e6;color:#257a65;font-weight:600}.board-frame{position:relative;width:100%;aspect-ratio:1;border-radius:13px;background:var(--paper);box-shadow:0 5px 0 #dbe9df,0 0 0 7px #fffefa,0 0 0 8px #dfE9df;overflow:hidden}.board-frame:focus-within{box-shadow:0 5px 0 #d4e5d9,0 0 0 7px #fffefa,0 0 0 8px #c6dbcd}#board{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));grid-template-rows:repeat(9,minmax(0,1fr));height:100%;border:1.5px solid var(--major)}.cell{background:var(--paper);border:0;border-right:1px solid var(--grid);border-bottom:1px solid var(--grid);padding:0;position:relative;display:grid;place-content:center;aspect-ratio:1;min-width:0;min-height:0;user-select:none;color:var(--ink);font-family:ZenNumbers,system-ui;font-weight:450;font-size:clamp(24px,2.5vw,35px);line-height:1}.cell.major-right{border-right:1.6px solid var(--major)}.cell.major-bottom{border-bottom:1.6px solid var(--major)}.cell:nth-child(9n){border-right:0}.cell:nth-child(n+73){border-bottom:0}.cell.peer{background:#eef5ef}.cell.match{background:#e1efe5}.cell.entry{color:#258b74}.cell.selected{background:#c7e4d7;box-shadow:inset 0 0 0 1.5px #3c9580;z-index:1}.cell.wrong{background:#fae5df;color:#b45b4d}.cell.hint-cell{background:#f8e8bb;box-shadow:inset 0 0 0 2px #c6a152}.cell .candidate-notes{display:grid;grid-template-columns:repeat(3,1fr);position:absolute;inset:6px;gap:1px;font:10px/1.1 ZenNumbers,system-ui;color:#607d71;place-content:stretch}.candidate-notes span{display:grid;place-content:center}.cell.caged{padding-top:5px;font-size:clamp(23px,2.3vw,32px)}.cell.caged .candidate-notes{top:15px;inset-inline:4px;bottom:3px}.cage-sum{position:absolute;left:4px;top:3px;padding:0 2px;background:inherit;font:9px/1 ZenNumbers,system-ui;color:#59796b;z-index:3}.cage-layer{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;stroke:rgba(67,111,89,.8);stroke-width:1.65;stroke-dasharray:5 3.5}.board-bottom{display:flex;align-items:center;gap:12px;margin-top:20px;min-height:20px;font-size:10px;color:#8a9a91}.progress-track{height:3px;flex:1;max-width:180px;background:#e3eee5;overflow:hidden;border-radius:4px}.progress-track span{display:block;height:100%;background:#7aaa93;width:37%;transition:width .2s}.board-count{font-variant-numeric:tabular-nums;white-space:nowrap}.board-count b{font-weight:500}.saved{display:flex;align-items:center;gap:4px;margin-left:auto;white-space:nowrap}.saved svg{width:12px;height:12px;stroke-width:1.5}.controls-panel{padding-top:42px;min-width:0}.desktop-stats{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:24px;min-height:41px;position:relative;color:var(--muted)}.stat-label{display:block;font-size:10px;color:#8a9b91;margin-bottom:5px}.desktop-stats b{font-size:11px;font-weight:500}.hearts{display:inline-flex;gap:3px;color:#d58f7b;vertical-align:middle;margin-right:5px}.hearts svg{fill:currentColor;stroke:none;width:13px;height:13px}.hearts svg.used{color:#dce7df}.clock{text-align:right;padding-right:35px;font-size:17px;line-height:1.25;font-variant-numeric:tabular-nums}.pause-icon{width:36px;height:44px;display:inline-flex;align-items:center;justify-content:center;background:none;color:#6a8b7c;border-radius:10px;vertical-align:middle}.pause-icon:hover{background:var(--soft)}.clock .pause-icon{position:absolute;right:-6px;bottom:-10px}.pause-icon svg{width:17px;height:17px;stroke-width:2}.tools{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-bottom:16px}.tool{background:none;display:flex;flex-direction:column;align-items:center;gap:6px;padding:0 0 5px;min-height:66px;font-size:10px;color:#7f9488}.tool-disc{width:42px;height:42px;border-radius:14px;background:#ecf3ec;display:grid;place-content:center;color:#61877a;position:relative}.tool-disc svg{width:23px;height:23px}.tool-disc.warm{background:#fae5ad;color:#998552}.tool:hover:not(:disabled) .tool-disc{background:#dfede2}.tool.active .tool-disc{background:#cce6d7;color:#237c62}.tool.active{color:#237c62}.tool i{position:absolute;width:6px;height:6px;border-radius:50%;background:#318d7b;right:5px;top:5px}.numpad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.number{height:78px;background:#ecf3ec;border:1px solid #e5ede3;border-radius:14px;font:36px/1 ZenNumbers,system-ui;font-weight:450;color:#438771;position:relative}.number:hover:not(:disabled){background:#deecdf}.number:disabled{opacity:.27}.number .remaining{position:absolute;right:9px;bottom:7px;font:9px/1 system-ui;color:#91a699}.primary-button{min-height:48px;background:var(--primary);border-radius:13px;color:#fffefa;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:12px 18px;font-size:13px;font-weight:550;box-shadow:0 3px 0 #297d6b}.primary-button:hover{background:var(--primary-dark)}.new-game{margin-top:16px;width:100%}.new-game svg{width:19px;height:19px}.keyboard-note{display:flex;gap:6px;align-items:center;justify-content:center;font-size:9px;color:#9aa99f;margin-top:16px}.keycap{font-size:9px;border:1px solid #e1e9df;border-radius:4px;min-width:17px;text-align:center;padding:0 3px}.keycap:not(:first-child){margin-left:8px}.game-footnote{display:flex;align-items:center;justify-content:center;gap:6px;color:#91a694;font-size:10px;margin-top:24px}.game-footnote svg{width:12px;height:12px;color:#a6bb8b}.companion{padding-top:42px}.app-card{border-radius:19px;background:#eaf2e7;border:1px solid #e0eadd;padding:22px 20px;position:relative;overflow:hidden}.app-card-heading{display:flex;gap:10px;align-items:center;position:relative;z-index:1}.app-card-heading img{width:39px;height:39px;border-radius:11px}.app-card-heading strong{font-size:13px;font-weight:600;display:block}.app-card-heading span{color:#819784;font-size:10px}.app-card h2{font-size:23px;letter-spacing:-.7px;line-height:1.5;margin:23px 0 10px;font-weight:550;position:relative;z-index:1}.app-card p{font-size:11px;line-height:1.9;color:#7a907e;position:relative;z-index:1;margin-bottom:20px}.app-card-cta{display:flex;justify-content:space-between;align-items:center;min-height:44px;font-size:11px;color:#437c60;font-weight:600;border-top:1px solid #d8e5d3;padding-top:8px;position:relative;z-index:1}.app-card-cta svg{width:16px;height:16px}.coming{font-size:9px;color:#9aa88e;display:flex;align-items:center;gap:5px;margin-top:5px}.coming i{width:4px;height:4px;background:#b4c198;border-radius:50%}.app-decoration{position:absolute;right:0;top:20px;font:110px/1 ZenNumbers,serif;letter-spacing:-18px;transform:rotate(-12deg);color:rgba(255,255,255,.27);pointer-events:none}.app-decoration span{position:relative;top:30px}.tip-card{display:block;margin-top:16px;padding:19px;border:1px solid #e1e8db;background:#fffdf5;border-radius:18px}.tip-label{display:flex;align-items:center;gap:7px;color:#a49d76;font-size:10px}.tip-label svg{width:14px;height:14px}.mini-example{display:grid;grid-template-columns:repeat(3,1fr);width:80px;aspect-ratio:1;border:1px solid #b6c6b2;margin:17px 0;border-radius:5px;overflow:hidden}.mini-example span{display:grid;place-content:center;border-right:1px solid #dde3d2;border-bottom:1px solid #dde3d2;font:15px/1 ZenNumbers,system-ui;color:#819b7a}.mini-example .missing{background:#f5e6bd;color:#9a8c59}.mini-example span:nth-child(3n){border-right:0}.mini-example span:nth-child(n+7){border-bottom:0}.tip-card h3{font-size:13px;font-weight:550;margin:0 0 7px;letter-spacing:-.3px}.tip-card p{font-size:11px;color:#8d9984;line-height:1.9;margin:0 0 13px}.text-link{display:inline-flex;align-items:center;gap:9px;min-height:44px;font-size:12px;font-weight:550;color:#4b8971;background:none;padding:0;text-align:left}.text-link svg{width:16px;height:16px}.tip-card .text-link{min-height:25px;font-size:10px}.aside-note{font-size:10px;line-height:1.8;color:#9ca99a;display:flex;gap:6px;align-items:flex-start;padding:18px 9px}.aside-note svg{width:13px;height:13px;margin-top:3px}.learn-section{padding-top:34px;padding-bottom:48px;border-top:1px solid #e2eadd}.section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}.section-title h2{font-size:27px;font-weight:550;letter-spacing:-.8px;margin:5px 0 0}.section-title p{font-size:12px;color:#8b9c90;max-width:270px;margin:0 0 5px}.learn-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.learn-card{padding:24px 26px;background:var(--paper);border:1px solid #e0e8dc;border-radius:20px}.lesson-icon{display:flex;align-items:center;justify-content:space-between;height:36px;margin-bottom:17px}.lesson-icon>svg{width:30px;height:30px}.lesson-icon>span{font-size:10px;color:#a3b1a0}.lesson-icon.mint{color:#77a58f}.lesson-icon.peach{color:#c28e73}.lesson-icon.butter{color:#bba260}.learn-card h3{font-size:16px;font-weight:550;letter-spacing:-.3px;margin:0 0 10px}.learn-card p{font-size:12px;color:#859588;line-height:1.95;margin:0 0 18px}.app-section{padding-top:12px;padding-bottom:52px}.app-banner{display:grid;grid-template-columns:1fr 390px;gap:40px;padding:36px 42px;background:#e8f0e5;border:1px solid #dde6d5;border-radius:23px;align-items:center}.app-banner h2{font-size:28px;font-weight:550;letter-spacing:-.8px;margin:8px 0 10px}.app-banner p{font-size:12px;color:#82947e;line-height:1.95;max-width:450px;margin:0 0 9px}.store-options{display:flex;flex-direction:column;gap:10px}.store-options button{display:flex;align-items:center;gap:12px;padding:12px 16px;background:rgba(255,254,250,.75);border:1px solid #dbe5d3;border-radius:13px;min-height:68px;text-align:left}.store-options button>svg{width:21px;height:21px;color:#86a081}.store-options strong{font-size:12px;font-weight:550;display:block}.store-options small{font-size:10px;color:#9ba992;display:block}.store-soon{font-size:9px;margin-left:auto;background:#e8eee1;color:#91a284;border-radius:6px;padding:4px 6px;white-space:nowrap}.site-footer{border-top:1px solid #e0e8da;padding-top:24px;padding-bottom:28px;display:flex;align-items:center;gap:30px;flex-wrap:wrap}.brand.small{font-size:17px;letter-spacing:-.4px}.site-footer>div{display:flex;gap:20px;margin-left:auto;align-items:center}.site-footer>div a,.site-footer>div button{font-size:11px;color:#8d9b8a;min-height:44px;display:flex;align-items:center;background:none;padding:0}.preview-label{width:100%;font-size:9px;color:#acb6a6}.mobile-stats,.mobile-new{display:none}.hint-panel{background:#fff7e2;border:1px solid #eddfb8;border-radius:16px;padding:17px;position:relative;margin:0 0 15px}.hint-kicker{color:#b49f69;font-size:9px}.hint-panel h2{font-size:16px;font-weight:550;margin:6px 0}.hint-panel p{font-size:12px;line-height:1.9;color:#8c815e;margin:8px 0 16px}.round-close{display:grid;place-content:center;width:36px;height:36px;border-radius:50%;background:#fffefa;color:#8a998c}.round-close svg{width:16px;height:16px}.hint-panel .round-close{position:absolute;right:7px;top:7px;width:32px;height:32px;background:none}.hint-footer{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#b5a571}.hint-footer button{display:flex;align-items:center;gap:8px;border:0;background:#f0dda4;border-radius:8px;padding:9px 12px;min-height:36px;color:#887442;font-size:11px}.hint-footer svg{width:14px;height:14px}.board-pause{position:absolute;inset:0;z-index:6;background:#f0f7ef;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;width:100%;color:#72917f}.board-pause strong{font-size:21px;font-weight:500}.board-pause>span:last-child{font-size:12px}.pause-art{display:grid;place-content:center;width:60px;height:60px;background:#dcece0;border-radius:50%;margin-bottom:8px}.pause-art svg{width:26px;height:26px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:50;background:#315c50;color:#fffdf5;padding:12px 20px;max-width:calc(100% - 28px);border-radius:13px;font-size:12px;box-shadow:0 8px 25px #315c5020;text-align:center;min-width:220px}dialog{border:1px solid #d7e4d5;border-radius:25px;background:#fcfdf7;color:var(--ink);width:min(430px,calc(100% - 28px));padding:32px;box-shadow:0 22px 100px #315c5030;max-height:calc(100dvh - 40px);overflow-y:auto}dialog::backdrop{background:#1e473f52;backdrop-filter:blur(3px)}dialog>.round-close{position:absolute;right:16px;top:16px;width:44px;height:44px}.modal-tag{font-size:10px;color:#a2aa88;letter-spacing:.09em;display:block;margin-bottom:20px;padding-right:32px}.modal-art{color:#88b29b;margin:10px 0}.modal-art svg{width:45px;height:45px;stroke-width:1.2}dialog h2{font-size:26px;font-weight:550;letter-spacing:-.6px;line-height:1.4;margin:16px 0}#modal-body{font-size:13px;line-height:2;color:#81917f}#modal-body p{margin:10px 0}#modal-body strong{font-weight:550;color:#4d7d67}#modal-actions{display:flex;flex-direction:column;gap:10px;margin-top:24px}#modal-actions button{width:100%;min-height:46px;border-radius:12px;font-size:13px;background:#e8f0e2}#modal-actions .primary-button{background:var(--primary)}.modal-stats{display:grid;grid-template-columns:repeat(3,1fr);padding:15px;background:#ebf3e5;border-radius:15px;text-align:center;margin:18px 0}.modal-stats strong{display:block;font:24px/1.5 ZenNumbers,system-ui}.modal-stats small{font-size:10px;color:#93a087}.lesson-board{display:grid;grid-template-columns:repeat(3,1fr);max-width:180px;border:1px solid #8eac97;border-radius:7px;overflow:hidden;margin:24px auto}.lesson-board span{font:27px/1 ZenNumbers,system-ui;display:grid;place-content:center;aspect-ratio:1;border-right:1px solid #dce7d7;border-bottom:1px solid #dce7d7;color:#75947b}.lesson-board span:nth-child(3n){border-right:0}.lesson-board span:nth-child(n+7){border-bottom:0}.lesson-board span:last-child{background:#f3e5b9;color:#9c8c53}
@media(min-width:1400px){.shell,.header-inner{max-width:1280px;padding-inline:36px}.game-layout{grid-template-columns:minmax(0,1fr) 248px;gap:34px}.game-stage{grid-template-columns:minmax(0,560px) minmax(240px,280px);gap:30px;justify-content:space-between}.play-section{padding-top:35px}}
@media(max-width:1090px) and (min-width:761px){.header-inner{gap:25px}.top-nav{gap:20px}.game-layout{grid-template-columns:minmax(0,1fr)}.game-stage{grid-template-columns:minmax(0,560px) minmax(210px,260px);gap:28px;justify-content:center}.companion{padding-top:0;display:grid;grid-template-columns:1fr 1fr;gap:20px}.app-card{padding:24px}.app-card h2{font-size:22px;margin-top:17px}.app-card h2 br{display:none}.app-decoration{right:30px;top:5px}.tip-card{margin-top:0;position:relative;padding:24px 24px 24px 140px;display:flex;flex-direction:column;justify-content:center}.tip-card .mini-example{position:absolute;left:24px;top:50%;transform:translateY(-50%);margin:0}.aside-note{display:none}.app-banner{grid-template-columns:1fr 330px;padding:30px;gap:25px}.learn-card{padding:22px}.cell{font-size:32px}}
@media(max-width:760px){html{scroll-padding-top:12px}.shell{padding-inline:15px}.header-inner{min-height:61px;padding-inline:15px;gap:10px}.brand{font-size:21px;gap:8px;letter-spacing:-.65px}.brand img{width:31px;height:31px}.header-actions{gap:1px}.language{font-size:10px;width:37px;height:44px}.app-link{border:0;background:none;padding:0 3px 0 8px;font-size:10px;gap:5px;min-height:44px}.app-link svg{width:16px;height:16px}.top-nav{display:none}.mobile-nav{display:grid;grid-template-columns:1.2fr 1.2fr 1fr .65fr;gap:7px;border-top:1px solid #f0f3ec;padding:0 15px;min-height:43px}.mobile-nav button,.mobile-nav a{display:flex;align-items:center;justify-content:center;min-height:43px;background:none;font-size:11px;color:#8a9d8f;position:relative}.mobile-nav .active{color:#318d7b;font-weight:600}.mobile-nav .active:after{content:"";position:absolute;left:16px;right:16px;bottom:0;background:#76aa92;height:2px;border-radius:2px}.play-section{padding-top:16px;padding-bottom:30px}.section-intro{margin-bottom:8px}.section-intro h1{font-size:18px;margin:0;font-weight:550}.section-intro .eyebrow{display:none}.tiny-welcome{display:none}.game-layout,.game-stage{display:block}.board-top{height:42px;align-items:center;margin-top:0}.levels{gap:0;margin-top:0;margin-left:-5px}.level{font-size:10px;padding:7px 10px;min-height:36px}.mobile-new{display:flex}.quiet-button{align-items:center;justify-content:center;gap:4px;min-height:40px;padding:0 0 0 7px;background:none;font-size:10px;color:#81a18c}.quiet-button svg{width:13px;height:13px}.mobile-stats{display:flex;align-items:center;justify-content:space-between;height:29px;margin:0 0 9px;font-size:10px;color:#8b9c91}.mobile-stats>div{display:flex;align-items:center;gap:1px}.mobile-stats .pause-icon{height:30px;width:26px}.mobile-stats .pause-icon svg{height:12px;width:12px}.mistakes-inline b{font-weight:500;margin-left:4px;font-size:10px;color:#bf8b76}.board-frame{box-shadow:0 3px 0 #dbe9df,0 0 0 4px var(--paper),0 0 0 5px #e1e9de;border-radius:10px}.cell{font-size:clamp(21px,6.25vw,29px)}.cell.caged{font-size:clamp(20px,5.8vw,27px);padding-top:5px}.cage-sum{font-size:8px;left:3px;top:2px;padding-inline:1px}.cell .candidate-notes{font-size:8px;inset:3px}.cell.caged .candidate-notes{top:11px;inset-inline:2px;bottom:2px;font-size:7px}.board-bottom{margin-top:12px;gap:10px;height:20px;font-size:9px}.progress-track{max-width:none}.saved{font-size:8px;gap:2px}.saved svg{width:10px;height:10px}.controls-panel{padding-top:11px}.desktop-stats{display:none}.tools{margin-bottom:10px;gap:6px}.tool{min-height:56px;gap:2px;font-size:9px;padding:0}.tool-disc{width:35px;height:35px;border-radius:11px;background:transparent}.tool-disc svg{height:23px;width:23px}.tool-disc.warm{background:#fae7b5}.numpad{grid-template-columns:repeat(10,minmax(0,1fr));gap:7px 6px}.number{height:48px;grid-column:span 2;border-radius:12px;font-size:28px;background:#edf4eb;border-color:#e3eade}.number:nth-child(6){grid-column:2 / span 2}.number .remaining{font-size:8px;right:6px;bottom:5px}.new-game,.keyboard-note,.game-footnote{display:none}.companion{padding-top:0;margin-top:26px;display:block}.companion .app-card,.companion .tip-card{display:none}.aside-note{padding:0;margin:0;align-items:center;justify-content:center;font-size:9px}.aside-note svg{width:11px;height:11px;margin:0}.learn-section{padding-top:26px;padding-bottom:24px}.section-title{display:block;margin-bottom:19px}.section-title h2{font-size:23px;margin-top:6px}.section-title .eyebrow{font-size:9px}.section-title p{font-size:11px;margin-top:9px;max-width:none}.learn-grid{grid-template-columns:1fr;gap:11px}.learn-card{padding:20px 22px;position:relative}.lesson-icon{height:27px;margin-bottom:13px}.lesson-icon>svg{width:25px;height:25px}.learn-card h3{font-size:15px;margin-bottom:8px}.learn-card p{font-size:12px;line-height:1.9;margin-bottom:8px}.learn-card .text-link{font-size:11px;min-height:36px}.app-section{padding-bottom:26px;padding-top:7px}.app-banner{display:block;padding:25px 22px;border-radius:19px}.app-banner h2{font-size:23px;margin-top:7px}.app-banner p{font-size:11px}.store-options{margin-top:17px;gap:8px}.store-options button{padding:11px 13px;min-height:63px}.store-options strong{font-size:11px}.store-options small{font-size:9px}.site-footer{padding-top:17px;padding-bottom:20px;gap:12px}.site-footer .brand{font-size:15px;gap:6px}.site-footer .brand img{width:24px;height:24px}.site-footer>div{gap:12px}.site-footer>div a,.site-footer>div button{font-size:9px}.preview-label{font-size:8px}.hint-panel{padding:16px 17px;margin-top:4px;margin-bottom:12px;scroll-margin-top:12px}.hint-panel h2{font-size:16px}.hint-panel p{margin:7px 0 9px;font-size:12px}.hint-footer button{min-height:42px}.hint-panel .round-close{width:40px;height:40px;top:4px;right:4px}dialog{padding:29px 24px}dialog h2{font-size:24px}.toast{bottom:max(16px,env(safe-area-inset-bottom));font-size:11px}.modal-tag{font-size:9px}}
@media(max-width:359px){.shell{padding-inline:12px}.header-inner{padding-inline:12px}.brand{font-size:19px;gap:6px}.brand img{width:28px;height:28px}.app-link{font-size:9px;gap:3px}.mobile-nav{padding-inline:12px}.level{padding-inline:8px}.number{height:45px;font-size:26px}.section-intro h1{font-size:17px}.cage-sum{font-size:7px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
@media(min-width:761px){.header-inner{min-height:76px}.play-section{padding-top:24px}.section-intro{margin-bottom:16px}.game-stage{grid-template-columns:minmax(0,min(560px,calc(100svh - 250px))) minmax(220px,264px)} }
@media(min-width:761px) and (max-height:800px){.game-stage{grid-template-columns:minmax(0,calc(100svh - 250px)) minmax(220px,264px);justify-content:center}.number{height:60px;font-size:31px}.keyboard-note,.game-footnote{display:none}.desktop-stats{margin-bottom:20px}.tools{margin-bottom:12px}.companion .tip-card{padding-top:16px;padding-bottom:15px}.companion .mini-example{width:62px;margin-block:12px}}

@media(max-width:760px){.mobile-meta,.board-bottom{font-size:11px}.tool{font-size:11px}.mobile-nav button,.mobile-nav a{font-size:12px}.learn-card .text-link,.site-footer>div a,.site-footer>div button{font-size:12px}.hint-panel .round-close{width:44px;height:44px}}

/* Board refinement: a flat, square puzzle surface on every Web breakpoint. */
:root {
  --grid: #d9e4dd;
  --major: #73978a;
}
.board-frame,
.board-frame:focus-within {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  background: var(--paper);
}
#board {
  border: 2px solid var(--major);
  border-radius: 0;
  overflow: hidden;
}
.cell.major-right { border-right: 2px solid var(--major); }
.cell.major-bottom { border-bottom: 2px solid var(--major); }
.cell.peer { background: #f0f6f1; }
.cell.match { background: #e0eee5; }
.cell.selected {
  background: #cde8dc;
  box-shadow: inset 0 0 0 2px #358873;
}
.cell.hint-cell {
  background: #faebc4;
  box-shadow: inset 0 0 0 2px #b49545;
}
.cell.wrong { background: #fbe4de; color: #b04f43; }
.levels { gap: 12px; margin-top: -2px; }
.level {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  font-size: 13px;
}
.level.active {
  background: transparent;
  border-bottom-color: var(--primary);
  color: var(--primary-dark);
}
.level:hover { color: var(--primary-dark); background: #eaf3ec; }
.board-top { height: 50px; align-items: flex-start; }
.controls-panel { padding-top: 50px; }
.board-bottom {
  margin-top: 14px;
  font-size: 11px;
  min-height: 24px;
  color: #6a8376;
}
.progress-track { max-width: none; height: 3px; }
.saved { margin-left: 14px; }
.tool { font-size: 12px; color: #657f73; }
.tool-disc { width: 46px; height: 46px; border-radius: 13px; }
.tool-disc svg { width: 24px; height: 24px; }
.number {
  background: #edf4ee;
  color: #337e68;
  border-color: #dce9de;
  border-radius: 11px;
}
.number .remaining { color: #728b7d; }
.number:hover:not(:disabled) { background: #dfeee2; border-color: #a5cbb4; }
.number:focus-visible { outline-offset: 1px; }
.stat-label { color: #6e8378; font-size: 11px; }
.desktop-stats b { font-size: 12px; }
.clock { color: #496c5e; font-size: 19px; }
@media (min-width: 761px) {
  .game-stage {
    grid-template-columns: minmax(0,min(600px,calc(100svh - 250px))) minmax(220px,264px);
    justify-content: start;
    gap: 32px;
  }
  .companion { padding-top: 50px; }
}
@media (max-width: 760px) {
  .board-top { height: 46px; }
  .levels { gap: 4px; margin-top: -2px; }
  .level { min-height: 40px; padding-inline: 10px; font-size: 12px; }
  .mobile-meta { font-size: 11px; min-height: 32px; }
  .board-bottom { margin-top: 12px; gap: 9px; font-size: 10px; min-height: 20px; }
  .saved { margin-left: 0; }
  .controls-panel { padding-top: 12px; }
  .tools { margin-bottom: 10px; }
  .tool { font-size: 11px; gap: 5px; min-height: 60px; }
  .tool-disc { width: 40px; height: 40px; border-radius: 11px; }
  .tool-disc svg { width: 23px; height: 23px; }
  .number { border-radius: 10px; }
}
