:root{font-family:PingFang SC,Microsoft YaHei,system-ui,sans-serif;color:#3e5541;background:#eef1e6;font-synthesis:none;--ink:#3e5541;--muted:#8b967e;--paper:#fbf9ed;--sage:#7b956b;--orange:#ca805a;--line:#dce1ce;--path:#f4ebd0}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden}body{overscroll-behavior:none;background:radial-gradient(ellipse at 10% 12%,#e0e8d5 0,transparent 45%),radial-gradient(ellipse at 90% 90%,#e2e8d4 0,transparent 50%),#eef1e6}button{font:inherit;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none}button:focus-visible,#board:focus-visible{outline:3px solid #ca805a;outline-offset:4px}button:active{transform:translateY(2px)}button:disabled{cursor:default}img{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}#app{display:flex;align-items:center;justify-content:center;height:100dvh}.shell{width:min(100%,480px);height:100%;max-height:960px;padding:24px 28px 18px;position:relative;display:flex;flex-direction:column}.icon{width:22px;height:22px;flex-shrink:0}.brand{display:flex;align-items:center;gap:11px;flex-shrink:0;height:44px}.brand-mark{width:37px;height:37px;border:1px solid #aebd9e;border-radius:12px;display:grid;place-items:center;color:#718767;background:#f7f7e9}.brand>span{font-size:15px;letter-spacing:2px;font-weight:650}.brand small{display:block;font-size:8px;letter-spacing:1.55px;color:#929b82;margin-top:3px;font-weight:500}.brand .brand-leaf{margin-left:auto;color:#8da27c;transform:rotate(12deg)}.brand-leaf .icon{width:26px;height:26px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:2.2px;color:#8d9a7f}.welcome-body{min-height:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding-top:30px}.welcome-body>.eyebrow{display:flex;align-items:center;gap:13px;font-size:11px;letter-spacing:3px}.welcome-body>.eyebrow span{width:20px;height:1px;background:#b8c2a8}.welcome h1{font-family:Songti SC,STSong,SimSun,serif;font-size:clamp(38px,11vw,57px);font-weight:650;letter-spacing:7px;line-height:1.3;margin:17px 0 12px;padding-left:7px;color:#40533e}.subtitle{font-size:13px;line-height:1.95;letter-spacing:1.5px;color:#8b947b;margin:0}.scene{position:relative;width:calc(100% + 24px);aspect-ratio:600/410;flex-shrink:1;min-height:100px;max-height:310px;margin:17px 0 16px}.meadow{width:100%;height:100%;object-fit:contain;display:block}.scene-house{position:absolute;width:24%;left:47%;top:19%;transform:rotate(-3deg)}.scene-bunny{position:absolute;width:23%;left:30%;top:48%;filter:drop-shadow(0 3px 1px #526e4a0b);animation:breathe 3s ease-in-out infinite}.butterfly{position:absolute;left:28%;top:38%;color:#d39f6e;font-size:21px;transform:rotate(16deg)}.welcome-bottom{width:100%;flex-shrink:0}.three-stops{display:flex;align-items:center;justify-content:center;margin:0 0 22px;gap:5px;color:#9aa68b}.stop{width:7px;height:7px;border-radius:50%;border:1px solid #a1af91}.stop.active{background:#98ab85}.three-stops i{height:1px;width:10px;background:#c4cdb7}.three-stops b{font-size:10px;letter-spacing:1px;font-weight:400;margin-left:8px}.primary{border:1px solid #bd7755;background:var(--orange);color:#fffaf0;width:100%;height:54px;border-radius:16px;box-shadow:0 4px #b77655,0 8px 18px #956e3e12;display:flex;align-items:center;justify-content:center;gap:38px;font-size:16px;letter-spacing:3px;font-weight:600;transition:background .15s,transform .15s}.primary:hover{background:#c37751}.primary:active{box-shadow:0 1px #b77655;transform:translateY(3px)}.primary .icon{width:20px;height:20px}.instruction{font-size:11px;color:#939a86;letter-spacing:.5px;margin:19px 0 0}.welcome-footer{text-align:center;font-size:10px;letter-spacing:2px;color:#a6ac99;margin-top:25px;flex-shrink:0}.game{gap:0}.level-heading{display:flex;align-items:center;justify-content:space-between;margin:22px 0 17px;flex-shrink:0}.level-heading h1{font-family:Songti SC,STSong,SimSun,serif;font-size:27px;font-weight:650;letter-spacing:3px;margin:7px 0 0}.level-heading .eyebrow{font-size:9px;letter-spacing:2px}.progress{display:flex;align-items:center;gap:5px}.progress span{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;border:1px solid #cbd4bf;color:#a1ad95;font-size:11px}.progress span.current{background:#7d956d;border-color:#7d956d;color:#fff9e9;box-shadow:0 0 0 4px #dfe6d4}.progress span.complete{background:#e2e8d6;color:#7d956d}.progress i{height:1px;width:9px;background:#cbd4bf}.hud{background:#f8f8ec;border:1px solid #e0e4d2;border-radius:16px;padding:10px 15px 13px;display:flex;align-items:center;justify-content:space-between;position:relative;margin-bottom:16px;flex-shrink:0;overflow:hidden;min-height:70px}.steps{display:flex;align-items:baseline;gap:8px}.steps-label{font-size:11px;letter-spacing:1px}.steps strong{font-family:Georgia,Times New Roman,serif;font-size:34px;font-weight:500;font-variant-numeric:tabular-nums;line-height:1.25;color:#576c49}.steps-unit{font-size:10px;color:#9ba38d}.steps.low strong{color:#c07c56}.restart{border:0;background:transparent;color:#818e72;display:flex;align-items:center;gap:5px;font-size:10px;min-height:44px;padding:0 0 0 8px}.restart .icon{width:16px;height:16px}.restart:hover{color:#bd7755}.budget-track{position:absolute;left:15px;right:15px;bottom:0;height:3px;background:#edf0e3}.budget-track i{height:100%;width:100%;background:#a6b990;display:block;transition:width .16s}.board-space{width:100%;flex:1;min-height:0;display:flex;align-items:center;justify-content:center}.board-wrap{position:relative;flex-shrink:0;aspect-ratio:1;border:5px solid #dadfc6;background:#dadfc6;border-radius:19px;box-shadow:0 5px #bdc9a9,0 11px 22px #526e4a12}.board{display:grid;position:relative;width:100%;height:100%;grid-template-columns:repeat(var(--n),1fr);grid-template-rows:repeat(var(--n),1fr);background:var(--path);border-radius:13px;overflow:hidden;touch-action:none;-webkit-user-select:none;user-select:none;isolation:isolate;outline-offset:8px}.tile{position:relative;min-width:0;min-height:0;pointer-events:none}.tile.wall{background:#809b67;z-index:1}.wall>img{width:100%;height:100%;object-fit:fill;display:block}.wall-flower{position:absolute;color:#efddbd;font-size:clamp(7px,2.1vw,12px);left:35%;top:38%;text-shadow:0 1px 1px #6c8852}.path{background:var(--path);box-shadow:inset 0 0 0 .4px #e9dfc150}.path:after{content:"";position:absolute;left:12%;top:15%;width:2px;height:2px;border-radius:50%;background:#d6c99e55}.start-dot{position:absolute;left:30%;top:32%;width:40%;height:40%;border-radius:50%;border:1.5px dashed #c3bb93;opacity:.65}.pebble{position:absolute;left:62%;top:67%;width:9%;height:5%;background:#cfc098;opacity:.7;border-radius:50%;transform:rotate(-20deg)}.exit-house{width:119%;height:119%;object-fit:contain;position:absolute;left:-9%;top:-19%;z-index:3;filter:drop-shadow(0 1px 1px #8c744233)}.exit-glow{position:absolute;top:1%;right:1%;bottom:1%;left:1%;border-radius:50%;background:#f4da8c;box-shadow:0 0 7px 3px #f4da8c55}.rabbit{position:absolute;left:calc(var(--x)*100%/var(--n));top:calc(var(--y)*100%/var(--n));width:calc(100%/var(--n));height:calc(100%/var(--n));z-index:4;transition:left .105s ease-out,top .105s ease-out;pointer-events:none;will-change:left,top}.rabbit img{width:113%;height:122%;object-fit:contain;position:absolute;left:-6%;top:-24%;filter:drop-shadow(0 1px 1px #51683b33)}.rabbit .hop{animation:hop .15s ease-out}.rabbit .bump{animation:bump .22s ease-out}.rabbit .arrive{animation:arrive .65s ease-out forwards}.arrival-particles{position:absolute;z-index:6;pointer-events:none}.arrival-particles i{position:absolute;width:5px;height:5px;border-radius:1px;background:#cd8c5d;animation:confetti .7s ease-out var(--delay) both;transform:rotate(var(--angle))}.arrival-particles i:nth-child(2n){background:#9cad76}.arrival-particles i:nth-child(3n){background:#f9d681}.guidance{padding-top:18px;text-align:center;flex-shrink:0}.feedback{font-size:11px;color:#8a967b;min-height:16px;letter-spacing:.2px;line-height:1.5}.feedback.wall-note{color:#b98058;font-size:10px}.feedback.success-note{color:#64845a}.swipe-tip{display:flex;align-items:center;justify-content:center;gap:7px;color:#6b805c;font-size:12px;letter-spacing:1px;margin-top:9px}.swipe-tip .icon{width:20px;height:20px}.direction-controls{display:flex;justify-content:center;gap:10px;margin-top:13px;flex-shrink:0}.direction-controls button{width:45px;height:42px;border-radius:13px;background:#f8f8eb;border:1px solid #d6deca;color:#7c8e6e;font-size:20px;box-shadow:0 2px #d9e0ca}.direction-controls button:hover{background:#e5ebd9}.direction-controls button:active{background:#d9e2ca;box-shadow:none}.game-footer{font-size:9px;display:flex;justify-content:center;gap:12px;color:#9aa58d;letter-spacing:.3px;flex-shrink:0;margin-top:15px;white-space:nowrap}.keyboard-tip{display:none}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#34493469;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:20px;z-index:10;animation:fade-in .2s ease-out}.result-card{width:min(100%,360px);padding:26px 26px 17px;background:#fbf9ec;border:1px solid #e2e2c9;border-radius:27px;box-shadow:0 18px 70px #273f3433;text-align:center;animation:card-in .25s ease-out;max-height:calc(100dvh - 28px);overflow-y:auto}.result-emblem{position:relative;width:110px;height:105px;margin:0 auto 15px;background:#eaf0dc;border-radius:50%}.result-emblem img{width:100%;height:100%;object-fit:contain}.result-emblem span{position:absolute;color:#d4a36a;left:-9px;top:17px;font-size:24px}.result-emblem span:last-child{left:auto;right:-8px;top:55px;font-size:18px}.result-card .eyebrow{font-size:8px;letter-spacing:1.7px}.result-card h2{font-family:Songti SC,STSong,SimSun,serif;font-size:26px;font-weight:600;letter-spacing:2px;margin:13px -10px 10px}.result-card p{font-size:11px;line-height:1.9;letter-spacing:.3px;color:#929b83;margin:0 0 21px}.result-stats{display:flex;align-items:center;justify-content:center;gap:39px;margin:20px 0 25px}.result-stats>div{display:flex;flex-direction:column;gap:4px}.result-stats strong{font-family:Georgia,serif;font-size:31px;color:#6e865d;font-weight:400}.result-stats span{font-size:10px;letter-spacing:1px;color:#969f87}.result-stats i{width:1px;height:34px;background:#e0e4d1}.result-card .primary{height:49px;font-size:14px;letter-spacing:2px;gap:30px}.text-button{display:block;background:none;border:0;color:#9aa38c;font-size:11px;min-height:44px;margin:12px auto 0;padding:4px 20px;letter-spacing:1px}.text-button:hover{color:#6c815b}.completion-stamps{display:flex;justify-content:center;gap:13px;margin:0 -10px 22px}.completion-stamps span{font-size:10px;color:#7c9568}.completion-stamps b{font-size:9px;display:block;margin-top:4px;font-weight:400;color:#9ca68c}.final-card h2{font-size:23px}.final-card p{font-size:10px}.final-card .result-emblem{width:100px;height:95px}.final-card .result-stats{margin:10px 0 20px}@keyframes breathe{50%{transform:translateY(-3px) rotate(-1deg)}}@keyframes hop{50%{transform:translateY(-16%) scale(1.05,.94)}}@keyframes bump{25%,75%{transform:translate(-11%) rotate(-5deg)}50%{transform:translate(10%) rotate(5deg)}}@keyframes arrive{35%{transform:translateY(-30%) scale(1.08)}70%{transform:translateY(0)}to{transform:scale(.75);opacity:.2}}@keyframes confetti{0%{opacity:0;transform:rotate(var(--angle)) translate(0) scale(.5)}20%{opacity:1}to{opacity:0;transform:rotate(var(--angle)) translate(55px) scale(.3)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes card-in{0%{transform:translateY(10px);opacity:0}to{transform:translateY(0);opacity:1}}@media(min-width:650px){.shell{padding-top:32px;padding-bottom:26px}.keyboard-tip{display:inline}.welcome .scene{max-height:330px}.welcome-body{padding-top:35px}.game{padding-top:27px}.direction-controls{margin-top:18px}.game-footer{margin-top:22px}}@media(max-height:740px){.shell{padding:15px 23px 13px}.brand{height:37px}.brand-mark{width:32px;height:32px;border-radius:10px}.brand>span{font-size:13px}.brand small{font-size:7px}.welcome-body{padding-top:14px}.welcome h1{font-size:44px;margin:12px 0 8px}.subtitle{font-size:11px}.scene{margin:10px 0;max-height:250px}.three-stops{margin-bottom:16px}.welcome-footer{margin-top:16px}.primary{height:49px}.instruction{margin-top:16px;font-size:10px}.level-heading{margin:15px 0 12px}.level-heading h1{font-size:24px;margin-top:5px}.hud{margin-bottom:12px;min-height:61px;padding:6px 12px 10px}.steps strong{font-size:30px}.guidance{padding-top:14px}.swipe-tip{margin-top:7px;font-size:11px}.direction-controls{margin-top:10px;gap:9px}.direction-controls button{height:40px;width:44px;border-radius:11px}.game-footer{margin-top:12px}.result-card{padding-top:20px}.result-emblem{width:90px;height:85px}}@media(max-height:590px){.shell{padding:10px 18px}.brand{height:32px}.brand-mark{width:28px;height:28px;border-radius:9px}.brand small{font-size:6px}.level-heading{margin:10px 0 8px}.level-heading h1{font-size:21px}.hud{min-height:54px;margin-bottom:8px}.steps strong{font-size:27px}.guidance{padding-top:11px}.swipe-tip{margin-top:4px}.direction-controls{margin-top:7px}.direction-controls button{height:36px;width:44px}.game-footer{margin-top:9px;font-size:8px}.welcome-body{padding-top:10px}.welcome h1{font-size:36px;margin:8px 0 7px}.welcome-body>.eyebrow{font-size:9px}.subtitle{font-size:10px;line-height:1.7}.scene{margin:7px 0;max-height:190px}.three-stops{margin-bottom:10px}.three-stops b{font-size:9px}.welcome-footer{margin-top:13px;font-size:8px}.welcome .primary{height:45px}.instruction{margin-top:13px;font-size:9px}.result-card{padding:15px 22px 8px}.result-card h2{font-size:23px}.result-emblem{height:73px;width:78px;margin-bottom:10px}.result-card p{margin-bottom:13px}.result-stats{margin:12px 0 17px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}@supports (padding:max(0px)){.shell{padding-top:max(15px,env(safe-area-inset-top));padding-bottom:max(13px,env(safe-area-inset-bottom))}}
