:root{--ink:#34473b;--muted:#7d887b;--green:#456b53;--sage:#dfe7dc;--cream:#f7f6ef;--line:#e4e7de;--panel:#fffef9;font-family:"SF Pro Rounded","PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--cream);font-synthesis:none;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}body{margin:0;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);min-height:100vh;min-height:100svh;overflow-x:hidden}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;touch-action:manipulation}button:disabled{opacity:.35;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #c19347;outline-offset:4px}button{border:0;background:none}a{color:inherit;text-decoration:none}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sprite{position:absolute;width:0;height:0;overflow:hidden} .ambient{position:fixed;pointer-events:none;border-radius:50%;filter:blur(40px);z-index:-1}.ambient-one{width:550px;height:550px;background:#e5ecd966;top:120px;left:-200px}.ambient-two{width:470px;height:470px;background:#f1e9d866;right:-150px;bottom:-150px}
.site-header{max-width:1160px;margin:0 auto;padding:32px 32px 0;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:12px;font-weight:700;font-size:21px;letter-spacing:2px}.brand-icon{display:grid;place-items:center;width:43px;height:43px;background:var(--green);border-radius:14px;color:#f5efdc;box-shadow:0 4px 8px #456b5312}.brand-icon svg{width:25px;height:25px;fill:currentColor;stroke-width:.6}.brand small{display:block;font-size:8px;letter-spacing:3px;font-weight:600;margin-top:4px;color:#8b9385}.header-actions{display:flex;gap:10px}.icon-btn{width:42px;height:42px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;background:#fffefa9c}.icon-btn:hover{background:#e9eee4}.icon-btn svg{width:20px;height:20px}
.layout{max-width:1056px;margin:43px auto 24px;display:grid;grid-template-columns:1fr 460px;gap:90px;align-items:center;padding:0 32px}.eyebrow{font-size:12px;letter-spacing:2px;color:#77856d;display:flex;align-items:center;gap:10px}.tiny-flower{font-size:24px;color:#9dba8b}h1{font-weight:650;letter-spacing:-1px;font-size:43px;line-height:1.52;margin:19px 0 19px}h1 span{color:#688458}.story-description{font-size:14px;line-height:2.1;letter-spacing:1px;color:#899181}.mascot-scene{height:235px;width:320px;position:relative;margin-top:9px;display:grid;place-items:center}.scene-orbit{width:220px;height:220px;border-radius:50%;background:radial-gradient(circle at 38% 30%,#fffcf1,#eeedd5);position:absolute;top:2px;border:1px solid #e2e4cc99}.scene-orbit:after{content:"";position:absolute;inset:-17px;border:1px dashed #d6ddc9;border-radius:50%;transform:rotate(30deg)}.hero-cat{width:190px;height:190px;object-fit:contain;position:relative;filter:drop-shadow(0 14px 8px #8d795223);transform:rotate(-7deg);animation:float 6s ease-in-out infinite}.scene-spark,.scene-flower{position:absolute;z-index:1}.s1{top:28px;right:18px;color:#c5ab6a;font-size:23px}.s2{left:24px;top:83px;font-size:27px;color:#97a181}.f1{left:5px;bottom:41px;font-size:36px;color:#c7d5af}.f2{right:19px;bottom:49px;font-size:27px;color:#dfcaae}.cat-caption{position:absolute;bottom:-6px;font-size:11px;color:#8f967f;background:#f4f3e8;padding:8px 19px;border-radius:30px;letter-spacing:2px}.story-footer{display:flex;align-items:center;gap:25px;font-size:10px;color:#9a9f92;margin-top:30px}.story-footer span:first-child{display:flex;align-items:center;gap:7px}.story-footer svg{width:16px;height:16px}
.game{background:var(--panel);border:1px solid #e2e5d9;border-radius:28px;padding:23px 25px 19px;box-shadow:0 20px 60px #5061460a,0 2px 4px #52674803;position:relative}.garden-strip{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:19px}.garden-strip>span{display:flex;align-items:center;gap:6px;color:#6e8062}.garden-strip>span svg{width:17px;height:17px}.garden-strip button{font-size:11px;display:flex;align-items:center;gap:6px;color:#818a77;padding:5px 0 5px 10px}.garden-strip button svg{width:14px;height:14px}.level-heading{display:flex;align-items:center;justify-content:space-between}.overline{font-size:8px;letter-spacing:1.6px;font-weight:650;color:#97a08e}.level-heading h2{font-size:23px;font-weight:650;letter-spacing:1px;margin:7px 0 11px;display:flex;align-items:center;gap:7px}.difficulty{font-size:9px;background:#eef2e6;color:#829367;padding:4px 7px;border-radius:20px;letter-spacing:.5px;margin-left:5px;font-weight:500}.timer{display:flex;align-items:center;gap:5px;font-size:11px;font-variant-numeric:tabular-nums;color:#8b9585;margin-top:8px}.timer svg{width:15px;height:15px}.progress-track{height:3px;border-radius:5px;background:#eaeede;overflow:hidden}.progress-track>div{width:0;height:100%;background:#9eb385;transition:width .4s}.rules-summary{display:grid;grid-template-columns:1fr 1.16fr 1fr;gap:5px;margin-top:19px;padding-bottom:19px;border-bottom:1px solid #edf0e6}.rules-summary>div{display:flex;align-items:center;justify-content:center;gap:5px;font-size:9px;white-space:nowrap;color:#89937f}.rules-summary>div+div{border-left:1px solid #e8ebdf}.rules-summary b{font-weight:600;color:#687b59}.rules-summary svg{width:13px;height:13px;color:#a8b695}.rule-color{font-size:14px;color:#c0a4cf;text-shadow:4px -2px 0 #e9c697,-2px -3px 0 #acc6b0;margin-right:3px}.rule-distance{font-size:20px;line-height:1;color:#b4bfa2}.board-top{display:flex;align-items:center;justify-content:space-between;margin:16px 1px 10px}.board-tip{font-size:10px;color:#8f9885}.cat-count{display:flex;align-items:center;gap:5px;color:#89967d;font-size:11px}.cat-count b{font-size:14px;font-weight:650;color:#537148}.cat-count svg{width:15px;height:15px;fill:#a1b190;stroke-width:.7;margin-right:2px}
.board-frame{padding:5px;background:#fdfcf5;border:1px solid #e1e4d7;border-radius:19px;box-shadow:0 4px 0 #f0f1e5;overflow:hidden}.board{display:grid;grid-template-columns:repeat(var(--n,4),1fr);aspect-ratio:1;border-radius:13px;overflow:hidden;background:#faf9f2;touch-action:manipulation;user-select:none;-webkit-user-select:none;min-width:0}.cell{position:relative;aspect-ratio:1;min-width:0;width:100%;padding:0;display:grid;place-items:center;background:var(--cell);border:0;box-shadow:inset -1px -1px #fff5;transition:filter .12s;isolation:isolate}.cell:after{content:"";position:absolute;inset:0;border-top:var(--bt,0) solid #fffcf5;border-right:var(--br,0) solid #fffcf5;border-bottom:var(--bb,0) solid #fffcf5;border-left:var(--bl,0) solid #fffcf5;pointer-events:none;z-index:3}.cell:hover{filter:brightness(1.035)}.cell:focus-visible{outline:3px solid #50754c;outline-offset:-4px;z-index:4}.cell img{width:77%;height:77%;object-fit:contain;position:relative;z-index:2;filter:drop-shadow(0 2px 1px #6c4d3422);animation:pop .19s ease-out;pointer-events:none}.cell .mark{width:100%;height:100%;position:absolute;display:grid;place-items:center;font-size:clamp(15px,2.5vw,26px);font-weight:300;color:#4b5c6477;pointer-events:none;line-height:1}.cell .auto-dot{color:#435c4f55;font-size:12px;font-weight:500}.cell.conflict{box-shadow:inset 0 0 0 3px #bd625e}.cell.conflict img{animation:shake .25s}.cell.hinted{box-shadow:inset 0 0 0 3px #e4b355}.region-label{position:absolute;top:3px;left:4px;font-size:8px;color:#384d3e80;pointer-events:none;z-index:1}.board-status{height:31px;padding-top:12px;text-align:center;font-size:9px;color:#98a18d;white-space:nowrap;letter-spacing:.2px}.board-status.error{color:#b86d66}.board-status.success{color:#547b50}.mode-picker{display:flex;border-radius:14px;background:#eff2e7;padding:4px;gap:4px;margin-top:7px}.mode{display:flex;align-items:center;justify-content:center;gap:7px;width:50%;height:40px;border-radius:10px;color:#95a087;font-size:12px;transition:background .2s,color .2s,box-shadow .2s}.mode img{width:25px;height:25px;object-fit:contain}.mode svg{width:17px;height:17px}.mode>span{font-size:15px;font-weight:300;opacity:.7}.mode.active{background:#fffefa;color:#50704e;box-shadow:0 2px 5px #5c734412;font-weight:650}.tools{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:9px;margin-top:12px}.tools button{border:1px solid #e6eadd;border-radius:12px;height:49px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px;color:#8a977b}.tools button:hover{background:#f2f5ec}.tools svg{width:18px;height:18px}.tools .hint-tool{background:#f5efdc;border-color:#eee7ce;color:#a48c52}.tools .hint-tool:hover{background:#efe5c7}.game-bottom{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#9ba38f;margin-top:17px}.auto-label{display:flex;align-items:center;gap:6px;cursor:pointer;padding:4px 0}.auto-label input{position:absolute;opacity:0;width:30px;height:18px}.switch{display:inline-block;width:24px;height:14px;background:#cbd3c0;border-radius:15px;position:relative;transition:background .2s}.switch:after{content:"";width:10px;height:10px;position:absolute;left:2px;top:2px;background:#fffef8;border-radius:50%;transition:transform .2s}input:checked+.switch{background:#91aa7c}input:checked+.switch:after{transform:translateX(10px)}input:focus-visible+.switch{outline:3px solid #bfa362;outline-offset:3px}.page-footer{text-align:center;font-size:10px;letter-spacing:1px;color:#a8ad9c;padding:9px 20px 25px}.page-footer span{color:#b3bea2;font-size:15px;margin-right:6px}
.inline-next{font-size:10px;color:#547b50;text-decoration:underline;text-underline-offset:3px;padding:0 10px 5px}.modal{border:1px solid #e2e5d6;background:#fffef8;color:var(--ink);border-radius:25px;padding:25px;width:min(440px,calc(100vw - 32px));max-height:calc(100svh - 40px);overflow-y:auto;box-shadow:0 20px 100px #243d3a29}.modal::backdrop{background:#32483a50;backdrop-filter:blur(5px)}.modal-top{display:flex;justify-content:space-between;align-items:center}.modal-top .icon-btn{width:32px;height:32px;background:none;border:0}.modal-top .icon-btn svg{width:18px;height:18px}.modal h2{font-size:23px;line-height:1.5;margin:12px 0 6px;font-weight:650;letter-spacing:.5px}.modal-subtitle{font-size:12px;line-height:1.8;color:#919884;margin:0 0 21px}.modal-cat{display:block;width:88px;height:88px;object-fit:contain;margin:0 auto 10px}.help-modal h2,.help-modal>.modal-subtitle{text-align:center}.help-rules{list-style:none;padding:0;margin:0}.help-rules li{display:flex;gap:12px;align-items:center;margin-bottom:19px}.help-dot{width:36px;height:36px;border-radius:11px;background:#eef2e5;display:grid;place-items:center;color:#8ba16e;font-size:22px;flex-shrink:0}.help-dot.colored{color:#b29bcc;background:#f0e9f2}.help-rules b{font-size:12px;font-weight:650}.help-rules p{margin:5px 0 0;font-size:10px;color:#8e9783;line-height:1.7}.help-note{font-size:11px;line-height:1.9;background:#f0f3e8;padding:12px 14px;border-radius:12px;color:#859375}.star-note{font-size:10px;line-height:1.8;color:#a09373;margin:12px 0 16px}.primary{background:var(--green);color:#fffef5;display:flex;justify-content:center;align-items:center;gap:13px;width:100%;height:49px;border-radius:13px;font-weight:600;font-size:13px;letter-spacing:.5px;box-shadow:0 3px 0 #35543e}.primary:hover{background:#3a5f47}.primary svg{width:19px;height:19px}.text-button{display:block;margin:14px auto 0;font-size:11px;color:#98a184;padding:10px}.map-chapter{margin-top:22px}.map-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:12px}.map-heading small{font-size:9px;color:#9fa88f}.level-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.level-card{height:57px;background:#f0f3e6;border:1px solid #e8ecde;border-radius:12px;color:#8c9b79;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:15px;font-variant-numeric:tabular-nums}.level-card span{font-size:7px;letter-spacing:1px;height:9px;color:#c1a361}.level-card.complete{background:#e5edda;color:#6c8956}.level-card.current{background:var(--green);color:#fffef4;border-color:var(--green)}.level-card.current span{color:#dbc283}.level-card:hover{box-shadow:0 0 0 2px #a8bb9177}.save-note{font-size:10px;text-align:center;color:#abb19e;margin:22px 0 0}.win-modal{text-align:center}.win-mascot{display:flex;align-items:center;justify-content:center;gap:22px;margin-top:0}.win-mascot img{width:126px;height:126px;object-fit:contain;animation:float 5s ease-in-out infinite}.win-mascot span{font-size:27px;color:#ccb06a}.win-stars{font-size:26px;color:#d0ae5e;letter-spacing:6px;margin-top:6px}.win-stars .empty{color:#e7e5d9}.win-modal h2{font-size:22px}.win-stats{display:grid;grid-template-columns:repeat(3,1fr);background:#f1f3e7;border-radius:14px;padding:17px 0;margin:20px 0 23px}.win-stats>div+div{border-left:1px solid #e2e7d5}.win-stats small{display:block;color:#a1a991;font-size:9px;margin-bottom:7px}.win-stats b{font-size:14px;font-variant-numeric:tabular-nums;font-weight:600}.toast{position:fixed;left:50%;bottom:max(28px,env(safe-area-inset-bottom));transform:translate(-50%,15px);background:#3c574a;color:#fffced;padding:13px 21px;border-radius:16px;z-index:20;font-size:12px;line-height:1.6;width:max-content;max-width:calc(100vw - 36px);text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;box-shadow:0 4px 20px #30433922}.toast.visible{opacity:1;transform:translate(-50%,0)}#confetti{position:fixed;inset:0;pointer-events:none;z-index:10;overflow:hidden}.confetti-piece{position:absolute;top:-15px;width:7px;height:10px;border-radius:2px;animation:confetti 2.6s ease-in forwards}.no-script{padding:30px;background:#fff;text-align:center}
@keyframes float{0%,100%{transform:translateY(0) rotate(-7deg)}50%{transform:translateY(-9px) rotate(-5deg)}}@keyframes pop{0%{transform:scale(.6)}75%{transform:scale(1.08)}100%{transform:scale(1)}}@keyframes shake{0%,100%{transform:translateX(0)}30%{transform:translateX(-3px)}70%{transform:translateX(3px)}}@keyframes confetti{0%{transform:translateY(-20px) rotate(0)}100%{transform:translateY(100vh) rotate(550deg);opacity:0}}
@media(min-width:1300px){.layout{margin-top:63px}.page-footer{padding-top:19px}}
@media(max-width:1000px){.layout{gap:35px;grid-template-columns:1fr 440px}.story h1{font-size:35px}.mascot-scene{width:270px}.story-footer{gap:12px}.game{padding:22px}}
@media(max-width:800px){.story{display:none}.layout{display:block;margin:22px auto 0;max-width:484px;padding:0 14px}.site-header{max-width:484px;padding:20px 20px 0}.game{padding:21px 22px 17px}.page-footer{padding:21px 15px 24px}.brand{font-size:18px}.brand-icon{width:37px;height:37px;border-radius:12px}.brand small{font-size:7px}.header-actions{gap:7px}.icon-btn{width:35px;height:35px}.garden-strip{margin-bottom:15px}.cell .mark{font-size:23px}}
@media(max-width:430px){.layout{margin-top:16px;padding:0 12px}.site-header{padding:16px 19px 0}.game{padding:18px 17px 14px;border-radius:23px}.rules-summary{margin-top:16px;padding-bottom:16px;gap:3px}.rules-summary>div{font-size:8px;gap:4px}.level-heading h2{font-size:22px}.board-top{margin-top:14px}.board-status{font-size:9px}.tools button{height:45px}.mode{height:38px}.game-bottom{margin-top:12px}.page-footer{font-size:9px;padding-top:17px}.cell .mark{font-size:21px}}
@media(max-width:360px){.game{padding:15px 12px}.rules-summary>div{font-size:7px}.rules-summary svg{width:11px}.board-status{font-size:8px}.difficulty{font-size:8px}.board-tip{font-size:9px}.modal{padding:20px}.modal h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.garden-strip{margin-bottom:11px}.difficulty-picker{display:flex;gap:4px;padding:4px;background:#eff2e7;border-radius:12px}.difficulty-picker button{width:50%;height:33px;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:9px;font-size:11px;color:#8a987d}.difficulty-picker button svg{width:15px;height:15px}.difficulty-picker button.active{background:#456b53;color:#fffdf3;font-weight:600;box-shadow:0 2px 4px #39513317}.difficulty-note{font-size:9px;color:#98a18c;text-align:center;line-height:1.5;margin:6px 0 11px;letter-spacing:.2px}.board-status{height:25px;padding-top:8px}.feedback-card{display:flex;align-items:center;gap:9px;padding:10px 11px;background:#eef3e8;border:1px solid #e3ebdb;border-radius:13px;margin:7px 0 10px;min-height:60px;color:#718465}.feedback-symbol{flex-shrink:0;width:27px;height:27px;border-radius:50%;background:#dce8d4;display:grid;place-items:center;font-size:18px;line-height:1;font-weight:600;color:#698659}.feedback-card>div{min-width:0}.feedback-card b{display:block;font-size:11px;font-weight:650;line-height:1.5}.feedback-card p{font-size:9px;line-height:1.7;margin:3px 0 0;color:#829377}.feedback-card[data-tone=success]{background:#e9f3e3;border-color:#cdddbe;color:#47723e}.feedback-card[data-tone=success] .feedback-symbol{background:#cbdcbb;color:#4c793e}.feedback-card[data-tone=error]{background:#fcf0ec;border-color:#efd3c9;color:#a55448}.feedback-card[data-tone=error] .feedback-symbol{background:#efd2c8;color:#aa594b}.feedback-card[data-tone=error] p{color:#a87363}.cell.correct{box-shadow:inset 0 0 0 2px #779c66}.cell.given{box-shadow:inset 0 0 0 2px #b6a266}.cell.conflict{box-shadow:inset 0 0 0 3px #c76958}.cell .cell-badge{position:absolute;right:7%;bottom:6%;display:grid;place-items:center;width:20%;height:20%;min-width:12px;min-height:12px;border-radius:50%;background:#4e7d48;color:#fffdf1;font-size:clamp(8px,2.1vw,12px);font-weight:700;z-index:4;pointer-events:none;box-shadow:0 1px 3px #34452a20}.cell.given .cell-badge{background:#ae9150}.cell.conflict .cell-badge{background:#ba584b}.feedback-correct{animation:cell-happy .55s ease-out}.feedback-wrong{animation:cell-error .45s ease-out}.feedback-wrong img{animation:shake .28s ease-out}.difficulty-help{margin-top:9px}.win-stars .earned{display:inline-block;animation:star-reward .5s both;animation-delay:var(--delay);transform-origin:center}.win-stars .empty{display:inline-block}.mode-picker{margin-top:0}.game-bottom{margin-top:12px}
@keyframes cell-happy{0%{box-shadow:inset 0 0 0 5px #77a65f}50%{filter:brightness(1.14)}100%{box-shadow:inset 0 0 0 2px #779c66}}@keyframes cell-error{0%,100%{filter:brightness(1)}45%{filter:brightness(.87)}}@keyframes star-reward{0%{transform:scale(.25) rotate(-18deg);opacity:0}65%{transform:scale(1.3) rotate(6deg);opacity:1}100%{transform:scale(1);opacity:1}}
@media(max-width:430px){.game{padding-top:14px;padding-bottom:12px}.rules-summary{margin-top:11px;padding-bottom:11px}.board-top{margin-top:11px}.garden-strip{margin-bottom:9px}.level-heading h2{margin-bottom:9px}.difficulty-note{margin-bottom:8px}.feedback-card{padding:8px 9px;min-height:55px;margin-top:5px;margin-bottom:9px}.feedback-card b{font-size:10px}.feedback-card p{font-size:9px}.tools{margin-top:9px}.game-bottom{margin-top:8px}.page-footer{padding-top:12px}}
