@font-face{font-family:Nunito;src:url('/public/fonts/nunito.ttf') format('truetype');font-style:normal;font-weight:200 1000;font-display:swap}
:root{font-family:Nunito,'Segoe UI',sans-serif;color:var(--ink);background:var(--ground);font-synthesis:none;--ground:#f7f8f2;--surface:#fff;--ink:#263f34;--muted:#66736a;--green:#244c3d;--green-soft:#e8eedf;--line:#e2e6dd;--hover:#edf0e7;--accent:#dce9b8;--radius:14px;--shadow:0 16px 50px rgb(20 48 30 / 12%);--cat-features:#f7f8f2;--region-0:#c4d9b0;--region-1:#d4c5e6;--region-2:#f3c99d;--region-3:#bbd1e4;--region-4:#eabac3;--region-5:#e7df9d;--region-6:#a9d7cb;--region-7:#c9c7ed;--region-8:#e9bb9f;--region-9:#cfe1d0;color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer}button{border:0}button:disabled{cursor:default;opacity:.36}a{color:inherit;text-decoration:none}p{line-height:1.6}button .icon{flex:none}.icon{display:inline-block;width:22px;height:22px;vertical-align:middle;flex-shrink:0}button{touch-action:manipulation}::selection{background:#dce9b8;color:#244c3d}input,textarea{caret-color:var(--green)}*:focus-visible{outline:3px solid #6d975e;outline-offset:4px}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-thumb{background:#c3cdba;border:2px solid var(--ground);border-radius:10px}::-webkit-scrollbar-track{background:var(--ground)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}.skip-link{position:fixed;top:8px;left:12px;z-index:100;transform:translateY(-150%);padding:12px 18px;background:var(--green);color:white;border-radius:8px}.skip-link:focus{transform:translateY(0)}.loading{text-align:center;padding:25vh 20px;color:var(--muted)}
.site-header{border-bottom:1px solid var(--line)}.header-inner{max-width:1200px;padding:0 40px;height:94px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:32px}.brand{display:flex;align-items:center;gap:12px;color:var(--green);font-size:34px;font-weight:900;letter-spacing:-1.2px;line-height:1}.brand>.icon{width:36px;height:36px}.brand-dot{color:#86a16d}.main-nav{display:flex;align-self:stretch;gap:34px;margin-left:78px}.nav-link{position:relative;background:transparent;font-weight:700;font-size:15px;padding:0 2px;color:var(--muted)}.nav-link:hover{color:var(--green)}.nav-link.active{color:var(--green)}.nav-link.active:after{content:'';height:3px;position:absolute;left:0;right:0;bottom:0;background:var(--green);border-radius:3px 3px 0 0}.header-actions{display:flex;align-items:center;gap:28px}.text-button{display:inline-flex;align-items:center;gap:9px;background:transparent;padding:0;font-weight:700;font-size:14px}.text-button:hover{color:#52783c}.stats-button .icon{width:19px;height:19px}.icon-button{width:36px;height:36px;padding:8px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:transparent}.icon-button:hover{background:var(--hover)}.icon-button>.icon{width:21px;height:21px}
.main-shell{max-width:1120px;margin:0 auto;padding:42px 40px 0}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:39px}.intro h1{font-size:44px;font-weight:800;line-height:1.12;letter-spacing:-1.4px;margin:0;color:var(--ink);text-wrap:balance}.intro h1>span{color:#77916a}.intro p{font-size:14px;color:var(--muted);margin:13px 0 0}.intro-note{display:flex;align-items:center;gap:12px;transform:rotate(-5deg);color:#7c8d70;font-size:13px;font-weight:650;line-height:1.45;padding-right:18px}.intro-note>.icon{width:36px;height:36px;stroke-width:1.2}.play-layout{display:grid;grid-template-columns:minmax(0,580px) minmax(0,310px);gap:66px;align-items:start;justify-content:space-between}.game-panel{min-width:0}.game-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}.level-heading{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.level-button{display:flex;gap:7px;align-items:center;font-size:21px;font-weight:800;background:transparent;padding:0;letter-spacing:-.4px;opacity:1!important}.level-button>.icon{width:16px;height:16px;transform:rotate(90deg);color:var(--muted)}.level-button:disabled>.icon{display:none}.difficulty-pill{background:var(--green-soft);color:#536344;padding:5px 10px;border-radius:20px;font-size:11px;font-weight:750;display:flex;gap:7px;align-items:center;white-space:nowrap}.pill-dot{width:3px;height:3px;border-radius:50%;background:currentColor;opacity:.6}.game-meta{display:flex;align-items:center;gap:10px}.timer{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:14px;font-weight:650;font-variant-numeric:tabular-nums;min-width:66px}.timer>.icon{width:17px;height:17px}.pause-button{width:29px;height:29px}.pause-button>.icon{width:15px;height:15px}.hearts{display:flex;gap:3px;color:#a45554}.hearts>.icon{width:14px;height:14px}.hearts .filled{fill:currentColor}.hearts .empty{opacity:.25}
.board-wrap{border-radius:13px;overflow:hidden;background:#435044;padding:3px;transition:filter .2s}.board{display:grid;grid-template-columns:repeat(var(--size),minmax(0,1fr));aspect-ratio:1;border-radius:9px;overflow:hidden;--cat-features:#f7f8f2}.board-row{display:contents}.cell{position:relative;display:flex;align-items:center;justify-content:center;padding:0;min-width:0;min-height:0;border:0;border-top:1px solid rgb(44 58 41 / 17%);border-left:1px solid rgb(44 58 41 / 17%);color:#2e3e32;border-radius:0;isolation:isolate;touch-action:manipulation;user-select:none;-webkit-user-select:none;transition:filter .1s}.cell:hover{filter:brightness(1.045)}.cell:focus-visible{outline:3px solid #253d33;outline-offset:-6px;z-index:3}.cell.edge-top{border-top:2px solid #4a5546}.cell.edge-left{border-left:2px solid #4a5546}.cell.edge-right{border-right:0}.cell.edge-bottom{border-bottom:0}.cell:nth-child(1).edge-left{border-left:0}.board-row:first-child .cell{border-top:0}.cell.region-0{background:var(--region-0)}.cell.region-1{background:var(--region-1)}.cell.region-2{background:var(--region-2)}.cell.region-3{background:var(--region-3)}.cell.region-4{background:var(--region-4)}.cell.region-5{background:var(--region-5)}.cell.region-6{background:var(--region-6)}.cell.region-7{background:var(--region-7)}.cell.region-8{background:var(--region-8)}.cell.region-9{background:var(--region-9)}.cell>.icon{width:56%;height:56%;max-width:48px;max-height:48px;pointer-events:none}.cell.cat-arriving>.icon{animation:cat-settle .2s cubic-bezier(.16,1,.3,1)}.cell.has-x>.icon{width:23%;height:23%;stroke-width:2.2;opacity:.8}.cell.auto-x>.icon{opacity:.32;stroke-width:1.8}.cell.has-draft>.icon{opacity:.45;filter:none}.cell.has-draft:after{content:'';position:absolute;width:10%;height:10%;bottom:16%;right:18%;background:#fff;border:1px solid #435044;border-radius:50%}.cell.conflict:after{content:'';position:absolute;inset:4px;border:3px solid #b73542;border-radius:7px;pointer-events:none}.cell.hinted:before{content:'';position:absolute;inset:5px;border:3px dashed #244c3d;border-radius:8px;pointer-events:none}.board-wrap.solved{background:#52784d}.board-wrap.solved .cell.cat-arriving>.icon{animation:cat-settle .5s cubic-bezier(.16,1,.3,1)}.board-wrap.paused{filter:blur(13px);pointer-events:none}.board-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 0 20px;color:var(--muted);font-size:11px}.board-caption>span:first-child{display:flex;align-items:center;gap:5px}.board-caption .icon{width:17px;height:17px;color:var(--green)}.board-caption strong{font-size:12px;color:var(--green);font-weight:800}.action-toolbar{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:19px;padding:16px 3px 0;border-top:1px solid var(--line)}.action-button{background:transparent;display:flex;align-items:center;flex-direction:column;gap:7px;padding:5px 8px;border-radius:8px;color:#61705d;min-width:52px;font-size:11px;font-weight:700}.action-button>.icon{width:21px;height:21px}.action-button:not(:disabled):hover{background:var(--hover);color:var(--green)}.toolbar-separator{height:30px;width:1px;background:var(--line);margin:0 5px}.game-message{font-size:13px;line-height:1.5}.game-message.has-message{display:flex;gap:10px;background:var(--green-soft);border-radius:10px;padding:13px 15px;margin-top:17px}.game-message>.icon{width:18px;height:18px;margin-top:2px}.next-button{width:100%;margin-top:20px}
.game-sidebar{padding-top:1px}.assist-panel{padding:24px 25px 21px;border-radius:var(--radius);background:#e7eddb}.assist-heading{display:flex;gap:15px;align-items:center;font-size:24px;font-weight:800;letter-spacing:-.6px;line-height:1.15}.assist-heading>.icon{width:44px;height:44px;stroke-width:1.3;padding:9px;border:1px solid #b9c7a8;border-radius:50%;color:#7e9465}.assist-panel>p{font-size:13px;color:#5e7052;line-height:1.6;margin:17px 0 21px;max-width:25ch}.switch-row{position:relative;display:flex;justify-content:space-between;align-items:center;gap:18px;cursor:pointer;padding:0}.switch-row>span:first-child{display:flex;flex-direction:column;gap:4px}.switch-row strong{font-size:13px;font-weight:800}.setting-note{font-size:11px;color:var(--muted);font-weight:500;line-height:1.4}.switch-row input{position:absolute;right:0;opacity:0;width:40px;height:24px;cursor:pointer;z-index:1}.switch-track{width:39px;height:23px;flex:none;position:relative;background:#b7c0ad;border-radius:30px;transition:background .2s}.switch-track:after{content:'';position:absolute;top:3px;left:3px;width:17px;height:17px;background:#fff;border-radius:50%;transition:transform .2s}.switch-row input:checked+.switch-track{background:var(--green)}.switch-row input:checked+.switch-track:after{transform:translateX(16px)}.switch-row input:focus-visible+.switch-track{outline:3px solid #6d975e;outline-offset:4px}.rules-panel{margin-top:29px}.rules-panel h2{font-size:17px;letter-spacing:-.25px;font-weight:800;margin:0 0 24px}.rules-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:25px}.rules-list li{display:flex;gap:15px;align-items:center}.rules-list strong{font-size:12px;font-weight:800;display:block;line-height:1.4}.rules-list p{font-size:11px;margin:4px 0 0;color:var(--muted);line-height:1.4}.rule-demo{flex-shrink:0;width:42px;height:42px;display:grid;align-items:center;justify-items:center;color:var(--green)}.row-demo{grid-template-columns:repeat(3,1fr);gap:2px}.row-demo i{background:#dde5d1;width:13px;height:23px;border-radius:2px}.rule-demo .mini-cat{display:flex;align-items:center;justify-content:center}.mini-cat>.icon{width:13px;height:13px}.row-demo .mini-cat{background:#c0d2aa}.region-demo{grid-template-columns:repeat(2,1fr);gap:2px}.region-demo i{width:20px;height:20px;background:#d5c8e4;border-radius:2px}.region-demo .mini-cat{background:#c4afd9}.region-demo .mini-cat>.icon{width:16px;height:16px}.space-demo{display:flex;align-items:center;gap:2px;position:relative}.space-demo:after{content:'';height:32px;width:1px;position:absolute;left:21px;top:5px;transform:rotate(25deg);background:#b8c1aa}.space-demo .icon{width:20px;height:20px}.rule-link{margin:22px 0 0 57px;font-size:11px;gap:9px}.rule-link>.icon{width:15px;height:15px}.daily-card{display:flex;align-items:center;gap:12px;background:transparent;padding:21px 0 18px;margin-top:29px;width:100%;border-top:1px solid var(--line);border-bottom:1px solid var(--line);text-align:left}.daily-icon{width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#eee8d3;border-radius:12px;color:#8c8055}.daily-icon>.icon{width:20px;height:20px}.daily-card>span:nth-child(2){display:flex;flex-direction:column;gap:5px;flex:1}.daily-card strong{font-size:12px;font-weight:800}.daily-card>span:nth-child(2)>span{font-size:11px;color:var(--muted)}.daily-card>.icon{width:16px;height:16px}.daily-card:hover strong{text-decoration:underline;text-underline-offset:3px}.sidebar-footer{display:flex;align-items:center;gap:5px;font-size:10px;color:#7a866f;margin-top:20px}.sidebar-footer>.icon{width:13px;height:13px}.site-footer{display:flex;justify-content:space-between;align-items:center;margin-top:41px;border-top:1px solid var(--line);padding:23px 0 25px;font-size:11px;color:#7b8677;gap:20px}.site-footer>div{display:flex;align-items:center;gap:20px}.footer-link{background:transparent;padding:0;font-size:11px;color:var(--muted)}.footer-link:hover{text-decoration:underline;text-underline-offset:3px}.saved-note{display:flex;align-items:center;gap:6px}.saved-note>span{width:5px;height:5px;border-radius:50%;background:#99ae82}
.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:13px 20px;border-radius:10px;font-size:14px;font-weight:750;min-height:46px}.button>.icon{width:18px;height:18px}.primary{background:var(--green);color:#fff}.primary:hover{background:#35634b}.secondary{background:var(--green-soft);color:var(--green)}.secondary:hover{background:#dbe5cd}.full-width{width:100%;margin-top:13px}.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);background:var(--green);color:#fff;border-radius:12px;padding:13px 20px;font-size:13px;font-weight:650;box-shadow:0 8px 30px rgb(20 48 30 / 15%);opacity:0;visibility:hidden;transition:opacity .2s,transform .2s;z-index:20;max-width:calc(100% - 32px);text-align:center;pointer-events:none}.toast.visible{opacity:1;visibility:visible;transform:translate(-50%,0)}
dialog{color:var(--ink);background:var(--surface);border:0;border-radius:18px;padding:28px 30px 30px;max-width:480px;width:calc(100% - 32px);max-height:calc(100dvh - 40px);box-shadow:var(--shadow);overflow:auto;scrollbar-gutter:stable}dialog::backdrop{background:rgb(24 42 31 / 38%)}dialog.wide{max-width:640px}.modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.modal-heading h2{font-size:25px;font-weight:850;line-height:1.2;letter-spacing:-.6px;margin:2px 0 0}.modal-heading>.icon-button{margin:-5px -10px 0 0;flex:none}.modal-subtitle{font-size:13px;color:var(--muted);margin:14px 0 23px}.settings-list{display:flex;flex-direction:column;gap:0}.settings-list>.switch-row{padding:16px 0;border-bottom:1px solid var(--line)}.settings-list .switch-row strong{font-size:14px}.settings-list .setting-note{font-size:12px}.select-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 0;font-size:14px;font-weight:750}select{background:var(--ground);border:1px solid var(--line);border-radius:8px;padding:9px 10px;color:var(--ink);font-size:12px;max-width:65%}.small-copy{font-size:11px;color:var(--muted);line-height:1.65;margin:20px 0 0}dialog>p,dialog>h3+p{font-size:13px;line-height:1.7}dialog h3{font-size:16px;margin:26px 0 9px;font-weight:800;letter-spacing:-.2px}.rules-intro{display:flex;align-items:center;gap:20px;margin-top:10px}.rules-intro>.icon{width:43px;height:43px;color:#81945d}.rules-intro>p{font-size:14px;color:var(--muted);margin:12px 0}.full-rules{padding-left:21px;font-size:13px;line-height:1.7}.full-rules li{padding-left:5px;margin:14px 0}.full-rules strong{display:block}.pause-cat{display:flex;justify-content:center;padding-top:35px;color:var(--green)}.pause-cat>.icon{width:80px;height:80px}.win-copy{text-align:center;color:var(--muted);font-size:14px;line-height:1.7}.win-cats{display:flex;align-items:center;justify-content:center;gap:16px;margin:32px 0 22px}.win-cats .icon{width:55px;height:55px;color:#81945d;transform:rotate(-10deg)}.win-cats .icon:nth-child(2){width:72px;height:72px;color:#9b88b0;transform:translateY(-7px)}.win-cats .icon:nth-child(3){color:#c39459;transform:rotate(10deg)}.win-details{display:flex;justify-content:space-around;margin:23px 0;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.win-details>div{display:flex;flex-direction:column;align-items:center;gap:6px}.win-details strong{font-size:23px;font-weight:850;font-variant-numeric:tabular-nums}.win-details span{font-size:11px;color:var(--muted)}fieldset{padding:0;border:0;margin:0}legend{font-size:14px;font-weight:800;margin-bottom:13px}.size-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.size-options label{position:relative;display:flex;cursor:pointer}.size-options input{position:absolute;opacity:0}.size-options span{width:100%;padding:12px 5px;text-align:center;background:var(--ground);border:1px solid var(--line);border-radius:9px;font-size:13px;font-weight:750}.size-options input:checked+span{background:var(--green);color:#fff;border-color:var(--green)}.size-options input:focus-visible+span{outline:3px solid #6d975e;outline-offset:3px}.level-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:22px 0}.level-tile{aspect-ratio:1;border-radius:9px;background:var(--green-soft);font-size:15px;font-weight:800}.level-tile.current{outline:2px solid var(--green);outline-offset:2px}.level-tile.complete{background:var(--green);color:white}.level-tile>.icon{width:20px;height:20px}.level-tile:not(:disabled):hover{filter:brightness(.94)}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.calendar-day{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;background:var(--green-soft);border-radius:7px;padding:8px 2px;min-height:58px}.calendar-day>small{font-size:9px;color:var(--muted)}.calendar-day>strong{font-size:15px;font-weight:850}.calendar-day.today{outline:2px solid var(--green);outline-offset:1px}.calendar-day.complete{background:var(--green);color:#fff}.calendar-day.complete>small{color:#cedec5}.calendar-day>.icon{width:10px;height:10px;position:absolute;right:3px;bottom:3px}.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:23px;padding:25px 0 18px}.stats-grid>div{display:flex;flex-direction:column;gap:5px}.stats-grid strong{font-size:34px;font-weight:850;line-height:1.2;letter-spacing:-.7px;font-variant-numeric:tabular-nums}.stats-grid strong small{font-size:13px;font-weight:650;letter-spacing:0}.stats-grid>div>span{font-size:12px;color:var(--muted)}.record-list{font-size:13px}.record-list>div{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid var(--line)}.record-list strong{font-weight:800;font-variant-numeric:tabular-nums}.empty-copy{font-size:13px;color:var(--muted);line-height:1.6}.about-brand{display:flex;align-items:center;justify-content:center;gap:10px;font-size:40px;font-weight:900;letter-spacing:-1px;margin:30px 0;color:var(--green)}.about-brand>.icon{width:45px;height:45px}.share-text{width:100%;min-height:160px;padding:15px;border:1px solid var(--line);border-radius:10px;font-size:13px;color:var(--ink);background:var(--ground);resize:vertical}
[data-theme=dark]{--ground:#1c2922;--surface:#25372c;--ink:#e4eadb;--muted:#a4b29d;--green:#bdd49e;--green-soft:#344735;--line:#3b4c3c;--hover:#344735;--accent:#bdd49e;color-scheme:dark}[data-theme=dark] .brand{color:#c1d99e}[data-theme=dark] .intro h1>span{color:#a3b58a}[data-theme=dark] .tool-switch{background:#304231}[data-theme=dark] .tool.selected,[data-theme=dark] .primary{background:#bdd49e;color:#1e3526}[data-theme=dark] .primary:hover{background:#d2e3b9}[data-theme=dark] .assist-panel{background:#344735}[data-theme=dark] .assist-panel>p,[data-theme=dark] .setting-note{color:#bdcbae}[data-theme=dark] .difficulty-pill{color:#c4d6ad}[data-theme=dark] .cell{--cat-features:#f7f8f2}[data-theme=dark] .daily-icon{background:#494a30;color:#dbd2a2}[data-theme=dark] .tool:not(.selected){color:#b1bfa5}[data-theme=dark] .tool:not(.selected):hover{background:#3c503b}[data-theme=dark] .row-demo i{background:#4b6245}[data-theme=dark] .row-demo .mini-cat{background:#657e55}[data-theme=dark] .region-demo i{background:#776788}[data-theme=dark] .region-demo .mini-cat{background:#9580ac}[data-theme=dark] .level-tile.complete,[data-theme=dark] .calendar-day.complete{background:#bdd49e;color:#233728}[data-theme=dark] .calendar-day.complete>small{color:#37502e}[data-theme=dark] .toast{color:#213523}[data-theme=dark] .switch-row input:checked+.switch-track{background:#bdd49e}[data-theme=dark] .switch-row input:checked+.switch-track:after{background:#253c2c}[data-theme=dark] .size-options input:checked+span{color:#213523}[data-theme=dark] .pause-cat{--cat-features:#25372c}
@keyframes cat-settle{0%{transform:scale(.72) rotate(-8deg)}65%{transform:scale(1.08) rotate(3deg)}100%{transform:scale(1) rotate(0)}}
@media(min-width:1300px){.header-inner{max-width:1240px}.main-shell{max-width:1160px;padding-top:43px}.play-layout{grid-template-columns:minmax(0,560px) 310px;gap:100px}.intro{margin-bottom:38px}.intro h1{font-size:46px}}
@media(max-width:1000px){.header-inner{padding:0 30px;height:82px}.main-nav{margin-left:0;gap:25px}.header-actions{gap:17px}.main-shell{padding:33px 30px 0}.play-layout{gap:35px;grid-template-columns:minmax(0,1fr) 270px}.intro{margin-bottom:32px}.intro h1{font-size:39px}.assist-panel{padding:22px 21px}.assist-heading{font-size:22px}.level-heading{gap:8px}.level-button{font-size:19px}.game-meta{gap:5px}.difficulty-pill{font-size:10px}.board-caption{font-size:10px}.action-button{min-width:43px;padding-left:5px;padding-right:5px}.toolbar-separator{margin:0 1px}.rules-list li{gap:11px}.rules-list strong{font-size:11px}.rules-list p{font-size:10px}.rule-link{margin-left:53px}.daily-card{gap:9px}.daily-card strong{font-size:11px}.daily-card>span:nth-child(2)>span{font-size:10px}.sidebar-footer{font-size:9px}}
@media(max-width:760px){.header-inner{height:76px;padding:0 24px;gap:18px}.brand{font-size:29px;gap:9px}.brand>.icon{width:29px;height:29px}.main-nav{gap:22px}.nav-link{font-size:13px}.header-actions{gap:7px}.stats-button{width:32px;height:32px;justify-content:center}.stats-button>span{display:none}.header-actions .icon-button{width:30px;height:30px;padding:6px}.main-shell{max-width:590px;padding:30px 24px 0}.intro{margin-bottom:29px}.intro h1{font-size:36px;line-height:1.12}.intro p{font-size:12px;margin-top:12px}.intro-note{display:none}.play-layout{display:flex;flex-direction:column;gap:31px}.game-panel,.game-sidebar{width:100%}.game-heading{margin-bottom:14px}.level-heading{gap:11px}.level-button{font-size:21px}.difficulty-pill{font-size:10px}.game-meta{gap:7px}.timer{font-size:13px;min-width:61px}.board-caption{font-size:10px;padding-top:12px;padding-bottom:19px}.action-toolbar{padding-top:15px;margin-top:16px}.action-button{font-size:10px;min-width:43px}.game-sidebar{display:grid;grid-template-columns:1fr;gap:0}.assist-panel{padding:20px 22px;position:relative}.assist-heading{font-size:21px;gap:11px;align-items:center}.assist-heading>span>br{display:none}.assist-heading>.icon{width:34px;height:34px;padding:6px}.assist-panel>p{font-size:12px;max-width:none;margin:9px 0 19px}.assist-panel .switch-row{padding-top:16px;border-top:1px solid #ccd6bd}.assist-panel .switch-row>span:first-child{flex-direction:row;align-items:center;gap:10px}.assist-panel .setting-note{font-size:10px}.rules-panel{margin-top:28px}.rules-panel h2{font-size:17px;margin-bottom:20px}.rules-list{gap:20px}.rules-list li{gap:15px}.rules-list strong{font-size:12px}.rules-list p{font-size:11px}.rule-link{margin-left:57px;font-size:12px}.daily-card{padding:19px 0;margin-top:25px;gap:13px}.daily-card strong{font-size:12px}.daily-card>span:nth-child(2)>span{font-size:11px}.sidebar-footer{font-size:10px;margin-top:17px}.site-footer{margin-top:30px;align-items:flex-start;padding-bottom:max(24px,env(safe-area-inset-bottom));font-size:10px}.site-footer>div{gap:14px;flex-wrap:wrap;justify-content:flex-end}.footer-link{font-size:10px}.saved-note{flex-basis:100%;justify-content:flex-end;font-size:9px}.tool-switch{max-width:340px}.tool{padding:11px 8px}.toast{bottom:18px}dialog{padding:24px;max-height:calc(100dvh - 30px)}.modal-heading h2{font-size:23px}}
@media(max-width:390px){.header-inner{padding:0 17px;gap:12px}.brand{font-size:25px;gap:7px}.brand>.icon{width:26px;height:26px}.main-nav{gap:14px}.nav-link{font-size:12px}.header-actions{gap:0}.header-actions>.stats-button{display:none}.main-shell{padding:26px 17px 0}.intro h1{font-size:34px}.intro p{font-size:11px}.level-heading{gap:8px}.level-button{font-size:19px}.difficulty-pill{padding:5px 7px;font-size:9px}.game-meta{gap:3px}.board-caption>span:last-child{font-size:9px}.assist-panel{padding:18px}.assist-heading{font-size:19px}.assist-panel .switch-row>span:first-child{gap:7px}.assist-panel .setting-note{font-size:9px}.site-footer>span{max-width:90px}.size-options{gap:7px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.reduce-motion *,.reduce-motion *:before,.reduce-motion *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}

.board.marking .cell{touch-action:none}.cell{-webkit-touch-callout:none}.saved-note.unsaved{color:#a45554}.saved-note.unsaved>span{background:#a45554}#free-form{margin-top:23px}

.level-pagination{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted)}

.board{grid-template-rows:repeat(var(--size),minmax(0,1fr))}

.gesture-help{display:flex;align-items:center;justify-content:center;gap:25px;color:var(--muted);font-size:11px;padding:4px 0 3px}.gesture-help>span{display:flex;align-items:center;gap:7px}.gesture-help .icon{width:15px;height:15px}.cell{touch-action:none}.cell.has-x>.icon{opacity:.95;stroke-width:2.6}.cell.auto-x>.icon{opacity:.73;stroke-width:1.8}.intro-note,.site-footer,.sidebar-footer{color:#61705d}.assist-panel .setting-note{color:#5c6b52}[data-theme=dark] .gesture-help{color:var(--muted)}[data-theme=dark] .intro-note,[data-theme=dark] .site-footer,[data-theme=dark] .sidebar-footer{color:#a4b29d}[data-theme=dark] .assist-panel .setting-note{color:#bdcbae}@media(max-width:390px){.gesture-help{gap:17px;font-size:10px}}

.assist-panel>p{color:#5c6b52}[data-theme=dark] .assist-panel>p{color:#bdcbae}

[data-theme=dark] .action-button{color:#bdcbae}

.player-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 12px;border-radius:20px;background:var(--green-soft);color:var(--green);font-size:12px;font-weight:800;white-space:nowrap;min-height:36px}.player-button>.icon{width:17px;height:17px}.player-button:hover{background:var(--hover)}.header-actions{gap:14px}.theme-toggle[aria-pressed=true]{background:var(--green-soft)}
.player-summary{padding:22px 0 18px;margin-top:10px;border-bottom:1px solid var(--line)}.player-summary-heading{display:flex;flex-direction:column;gap:7px}.player-level{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;font-weight:700}.player-level>.icon{width:17px;height:17px;color:var(--green)}.player-summary-heading>strong{font-size:25px;font-weight:850;letter-spacing:-.5px}.xp-track{height:6px;background:var(--green-soft);border-radius:6px;margin-top:18px;overflow:hidden}.xp-track>span{display:block;height:100%;background:var(--green);border-radius:inherit}.xp-caption{display:flex;justify-content:space-between;gap:12px;margin-top:8px;color:var(--muted);font-size:11px}.player-explainer{font-size:12px;color:var(--muted);line-height:1.6;margin:14px 0 0}.xp-earned{display:flex;align-items:center;justify-content:center;gap:7px;color:var(--green);font-size:14px;font-weight:800;margin:18px 0 0}.xp-earned>.icon{width:19px;height:19px}.player-summary.compact{padding-top:13px;padding-bottom:17px;margin-top:0}.compact .player-summary-heading{flex-direction:row;justify-content:space-between;align-items:center;gap:12px}.compact .player-summary-heading>strong{font-size:14px;letter-spacing:0}.compact .xp-track{margin-top:12px}.cell.rejected:before{border-color:#b73542;border-style:solid}.game-message.mistake-feedback{background:#f5e4e2;color:#763841}.game-message.mistake-feedback>.icon{fill:currentColor;stroke:none}[data-theme=dark] .game-message.mistake-feedback{background:#483131;color:#f2c5c1}[data-theme=dark] .secondary:hover{background:var(--hover)}[data-theme=dark] .hearts{color:#db9290}
@media(max-width:760px){.header-actions{gap:7px}.header-actions .icon-button{width:36px;height:36px;padding:8px}.player-button{padding:8px 10px}}
@media(max-width:620px){.header-inner{height:auto;min-height:107px;flex-wrap:wrap;padding-top:13px;gap:0}.brand{order:0}.header-actions{order:1;margin-left:auto;gap:5px}.header-actions .icon-button{width:44px;height:44px;padding:11px}.main-nav{order:2;flex-basis:100%;height:43px;justify-content:center;align-self:auto;gap:40px;margin:3px 0 0}.nav-link{font-size:13px;min-width:44px}.header-inner .player-button{min-height:36px}.game-heading{align-items:center}.game-meta{flex-shrink:0}.level-heading{min-width:0}}
@media(max-width:390px){.header-inner{padding-left:17px;padding-right:17px;gap:0}.player-button>.icon{display:none}.player-button{padding:8px 10px}.header-actions{gap:3px}.main-nav{gap:36px}.xp-caption{font-size:10px}.compact .player-summary-heading>strong{font-size:12px}}

.starter-note{display:flex;align-items:flex-start;gap:8px;color:var(--muted);font-size:12px;line-height:1.5;margin:0 0 14px}.starter-note>.icon{width:16px;height:16px;flex:none;margin-top:1px;color:var(--green)}.cell>.given-lock{position:absolute;width:18%;height:18%;right:8%;bottom:9%;stroke-width:2.3;animation:none!important}.solving-tips{margin-top:24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.solving-tips>summary{cursor:pointer;padding:16px 0;font-size:14px;font-weight:800;color:var(--green);min-height:48px}.solving-tips>summary:hover{text-decoration:underline;text-underline-offset:3px}.solving-tips>summary:focus-visible{outline-offset:2px}.solving-tips-content{padding-bottom:18px;font-size:13px;line-height:1.7}.solving-tips-content>p{margin:8px 0 0;color:var(--muted)}.solving-tips-content>h3{margin:22px 0 7px;font-size:14px}.solving-tips-content>h3+p{margin-top:0}

/* Centre the puzzle itself, rather than the combined puzzle and help area. */
@media (min-width: 761px) {
  .game-panel { container-type: inline-size; }
  .board-caption { padding: 12px 0; }
  .gesture-help { padding: 0; }
  .action-toolbar { margin-top: 12px; padding: 12px 0 0; }
}

@container (min-width: 560px) {
  .action-button { flex-direction: row; gap: 8px; min-height: 44px; min-width: 0; padding: 10px 12px; font-size: 12px; }
}

@media (min-width: 761px) and (max-width: 1279px) {
  .main-shell { max-width: 900px; padding: 24px 32px 0; }
  .intro { justify-content: center; text-align: center; margin-bottom: 24px; }
  .intro h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.7px; }
  .intro h1 > br { display: none; }
  .intro h1 > span { margin-left: .2em; }
  .intro p { font-size: 12px; margin-top: 8px; }
  .intro-note { display: none; }
  .play-layout { display: flex; flex-direction: column; align-items: center; gap: 40px; }
  .game-panel { width: min(100%, clamp(360px, calc(100svh - 330px), 680px)); }
  .game-sidebar { width: min(100%, 680px); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .rules-panel { margin-top: 0; }
  .daily-card, .sidebar-footer { margin-top: 0; }
}

@media (min-width: 1280px) {
  .header-inner { max-width: 1840px; height: 72px; }
  .main-nav { margin-left: 0; }
  .main-shell {
    --stage-size: min(880px, max(420px, calc(100svh - 300px)), calc(100vw - 600px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--stage-size) minmax(0, 1fr);
    column-gap: 32px;
    align-items: start;
    max-width: 1840px;
    padding: 24px 40px 0;
  }
  .play-layout { display: contents; }
  .game-panel { grid-column: 2; grid-row: 1; width: 100%; }
  .intro {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    width: min(100%, 240px);
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    margin: 44px 0 0;
  }
  .intro h1 { font-size: 34px; line-height: 1.12; letter-spacing: -.8px; }
  .intro p { max-width: 23ch; font-size: 13px; margin-top: 14px; }
  .intro-note { padding-right: 0; font-size: 12px; }
  .game-sidebar { grid-column: 3; grid-row: 1; width: min(100%, 240px); padding-top: 44px; }
  .assist-panel { padding: 20px; }
  .assist-heading { gap: 12px; font-size: 21px; letter-spacing: -.4px; }
  .assist-heading > .icon { width: 34px; height: 34px; padding: 6px; }
  .assist-panel > p { font-size: 12px; margin: 14px 0 20px; }
  .assist-panel .setting-note { font-size: 10px; }
  .rules-list { gap: 20px; }
  .rules-list li { gap: 12px; }
  .rules-panel h2 { margin-bottom: 20px; }
  .rule-link { margin-left: 54px; }
  .daily-card { margin-top: 24px; gap: 10px; }
  .daily-card strong { font-size: 11px; }
  .daily-card > span:nth-child(2) > span { font-size: 10px; }
  .sidebar-footer { font-size: 9px; }
  .cell > .icon { max-width: 72px; max-height: 72px; }
  .site-footer { grid-column: 1 / -1; margin-top: 32px; }
}

@media (max-width: 390px) {
  .action-toolbar { gap: 2px; padding-left: 0; padding-right: 0; }
  .action-button { flex: 1; min-width: 0; padding: 5px 3px; }
  .toolbar-separator { flex: none; margin: 0 2px; }
}

.footer-link { display: inline-flex; align-items: center; min-height: 24px; }
.creator-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.creator-link:hover, .creator-link:focus-visible { text-decoration-color: currentColor; }
.no-script { max-width: 42ch; margin: 24px auto; padding: 0 24px; color: var(--ink); text-align: center; }

/* Keep the touch drawing surface intact and provide a safe route past it. */
.help-jump { display: none; }
.game-panel, #help-options { scroll-margin-top: 16px; }
[data-input=pointer] .cell:focus { outline: none; }
@media (max-width: 760px) {
  .intro { margin-bottom: 18px; }
  .help-jump { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; }
  .help-jump > .icon { width: 16px; height: 16px; transform: rotate(90deg); }
  .help-jump:hover { color: var(--green); }
  .help-return { display: flex; margin: 0 0 12px auto; }
  .help-return > .icon { transform: rotate(-90deg); }
}
