:root{color:#24352c;font-synthesis:none;text-rendering:optimizelegibility;font-family:Microsoft YaHei,PingFang SC,Noto Sans SC,Source Han Sans SC,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:#16352c;overflow:hidden}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}.viewport{background:radial-gradient(circle at 20% 10%,#fff4d62e,#0000 28%),#16352c;place-items:center;width:100vw;height:100vh;display:grid;overflow:hidden}.stage-fit{flex:none;position:relative;overflow:hidden}.stage{transform-origin:0 0;background:linear-gradient(#8ecae6 0 92px,#fff6df 92px 150px,#d7eccb 150px);border-radius:22px;width:1280px;height:720px;position:absolute;top:0;left:0;overflow:hidden;box-shadow:0 24px 70px #00000047}.reduce-motion *,.reduce-motion :before,.reduce-motion :after{transition:none!important;animation:none!important}.screen{height:100%;padding:22px 36px 18px;overflow:auto}.title-screen{flex-direction:column;gap:8px;height:100%;padding:12px 28px 10px;display:flex;overflow:hidden}.top-row,.hud,.parent-top,.spread{justify-content:space-between;align-items:center;gap:12px;display:flex}.brand{color:#5a3114;letter-spacing:.1em;background:linear-gradient(#f3c27a,#e09445);border:4px solid #b56a32;border-radius:16px;align-items:center;gap:8px;padding:4px 14px 6px;font-size:40px;font-weight:900;line-height:1;display:inline-flex;box-shadow:inset 0 2px #ffffff73,0 4px #8d4f22}.brand svg{width:42px;height:50px}.subtitle{color:#3d5c49;margin:2px 0 0;font-size:16px}.icon-row{gap:8px;display:flex}.icon-btn,.btn,.btn-quiet,.btn-primary{background:#fffaf2;border:0;border-radius:14px;padding:10px 16px;box-shadow:0 3px #e4d3b8}.btn-primary{color:#f4fff4;background:#3f8f4e;font-weight:800;box-shadow:0 4px #24663a}.btn-quiet{box-shadow:none;color:#4d6458;background:0 0}.icon-btn[aria-pressed=true]{outline:3px solid #e09445}.hero-row{grid-template-columns:140px 1fr 250px;align-items:center;gap:12px;min-height:0;display:grid}.hero-buddy{width:112px;height:132px}.speech,.panel{background:#fffaf2eb;border:3px solid #efd3a8;border-radius:16px;padding:8px 12px}.speech p,.panel p{margin:0;font-size:16px;line-height:1.4}.buddy-row{justify-content:space-around;align-items:end;display:flex}.buddy-row figure{text-align:center;margin:0}.buddy-row svg{width:58px;height:66px}.buddy-row figcaption{color:#3d5c49;font-size:14px}.peek{justify-self:end;width:64px;height:54px}.choice-row{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.choice{text-align:left;background:#fffaf2e6;border:3px solid #0000;border-radius:16px;padding:8px 12px;box-shadow:0 3px #5a3c1e14}.choice.on{background:#f3fbea;border-color:#3f8f4e}.choice b{font-size:18px;display:block}.choice span,.muted{color:#5d7266;margin-top:2px;font-size:14px;display:block}.name-row{align-items:center;gap:12px;display:flex}.name-row input,.field input,.field textarea,.field select,.answer-input{background:#fff;border:3px solid #efd3a8;border-radius:14px;padding:8px 12px}.name-row input{width:220px;height:44px;font-size:22px}.actions{align-items:center;gap:12px;display:flex}.actions .btn-primary{padding:12px 28px;font-size:24px}.sticker-row{align-items:center;gap:8px;display:flex}.sticker-row svg{width:42px;height:42px}.foot-note{color:#4d6458;margin:0;font-size:14px}.chapter-list{flex-direction:column;gap:8px;margin:8px 0;display:flex}.chapter{background:#fffaf2;border:2px solid #efd3a8;border-radius:14px;align-items:flex-start;gap:10px;padding:10px 12px;display:flex}.chapter.on{background:#f3fbea;border-color:#3f8f4e}.chapter input{width:22px;height:22px;margin-top:2px}.game{background:linear-gradient(#9fd4ee,#fff4d2 70px,#c9e6b0 140px);flex-direction:column;height:100%;display:flex}.hud{height:68px;padding:8px 14px}.hud-title{letter-spacing:.08em;color:#5a3114;font-size:28px;font-weight:900}.hud-meta{align-items:center;gap:8px;display:flex}.sun-pill,.wave-pill{background:#fffaf2;border-radius:999px;align-items:center;gap:6px;padding:4px 12px;font-weight:800;display:inline-flex;box-shadow:0 2px #efd3a8}.sun-pill svg{width:26px;height:26px}.home-pill{background:#fffaf2;border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-weight:800;display:inline-flex;box-shadow:0 2px #efd3a8}.home-pill b{color:#24663a}.home-pill em{color:#3d5c49;font-style:normal}.home-leaves,.gate-health{gap:3px;display:inline-flex}.home-leaves i,.gate-health i{background:#e4d8c8;border-radius:0 9px 2px;width:14px;height:18px;box-shadow:inset 0 0 0 2px #a89884}.home-leaves i.on,.gate-health i.on{background:#67b85a;box-shadow:inset 0 0 0 2px #24663a}.gate-health{pointer-events:none;z-index:2;flex-direction:column;gap:5px;position:absolute;top:78px;left:18px}.sun-pill.pop{animation:.35s pop}.mid{height:504px;display:flex}.side{flex-direction:column;gap:8px;width:220px;padding:10px;display:flex;overflow:auto}.side .portrait{width:120px;height:142px;margin:0 auto}.side .speech{min-height:92px;font-size:16px;line-height:1.45}.lawn{background:linear-gradient(#e7c9a0,#e7c9a0) 0 0/100% 8px no-repeat,repeating-linear-gradient(#7dae6a,#7dae6a 92px,#c4a574 92px 100.8px);border-left:4px solid #d7b07a;width:1060px;height:504px;position:relative;overflow:hidden}.lane-warn{pointer-events:none;background:#ffd68c47;position:absolute;left:80px;right:0}.gate{width:80px;height:504px;position:absolute;top:0;left:0}.cell{pointer-events:none;background:#ffffff29;border:2px dashed #fffaf2b3;border-radius:12px;position:absolute}.cell.hot{background:#fff4d673}.actor{pointer-events:none;position:absolute}.actor svg{filter:drop-shadow(0 4px #3c32141f);width:100%;height:100%;display:block}.sway{transform-origin:50% 90%;animation:2.8s ease-in-out infinite sway}.bob{animation:.6s ease-in-out infinite bob}.ghost{opacity:.55}.bead{background:radial-gradient(circle at 35% 35%,#fff6c2,#ffb703 46%,#f08a24);border-radius:50%;width:14px;height:14px;margin:-7px 0 0 -7px;position:absolute;box-shadow:0 0 0 3px #ffd67866}.bead.volley{background:radial-gradient(circle at 35% 35%,#fff,#ffe08a 40%,#7dce6a);width:18px;height:18px;margin:-9px 0 0 -9px}.bead.heavy{background:radial-gradient(circle at 35% 35%,#fff,#8ecae6 46%,#3f8f4e);width:16px;height:16px;margin:-8px 0 0 -8px}.bead.slow{background:radial-gradient(circle at 35% 35%,#f3ffe8,#8bc86a 50%,#2f7d45)}.hp{background:#0000002e;border-radius:99px;height:6px;position:absolute;overflow:hidden}.hp>span{background:#67c25b;height:100%;display:block}.hp.foe>span{background:#ef8d62}.floater{color:#a85b12;text-shadow:0 1px #fff;pointer-events:none;font-weight:900;animation:1.1s linear forwards floatup;position:absolute}.poof{pointer-events:none;background:radial-gradient(circle,#fff 0 30%,#b7e39a 55%,#0000 72%);border-radius:50%;width:28px;height:28px;margin-top:-14px;margin-left:-14px;position:absolute}.paw{width:32px;height:28px;animation:.8s ease-in-out infinite bob;position:absolute;right:8px}.tray{background:linear-gradient(#f6e2c4,#e7c39a);border-top:4px solid #d7a86a;align-items:center;gap:8px;height:148px;padding:10px 14px;display:flex;overflow-x:auto}.seed{text-align:left;background:#fffaf2;border:3px solid #0000;border-radius:18px;flex:0 0 156px;grid-template-columns:54px 1fr;align-items:center;gap:4px;width:156px;height:118px;padding:6px;display:grid;box-shadow:0 4px #c98a52}.seed.on{border-color:#3f8f4e;transform:translateY(-4px)}.seed.poor{filter:saturate(.7)}.seed svg{width:52px;height:64px}.seed b{font-size:16px}.seed em{color:#a85b12;white-space:nowrap;font-style:normal;font-weight:800}.seed .muted{font-size:12px;line-height:1.25}.tray-hint{color:#5a3114;flex:1 0 140px;min-width:140px;font-size:16px;line-height:1.4}.overlay{z-index:20;background:#1c34286b;justify-content:center;align-items:center;padding:12px 28px;display:flex;position:absolute;inset:0}.qcard,.endcard,.pin-card{background:#fffaf2;border:4px solid #efd3a8;border-radius:28px;flex-direction:column;width:min(860px,100%);min-height:0;max-height:100%;display:flex;overflow:hidden;box-shadow:0 18px 50px #3c281433}.endcard,.pin-card{gap:10px;width:min(640px,100%);padding:22px 26px}.endcard{overflow:auto}.qcard-body{flex:0 auto;min-height:0;padding:4px 22px 8px;overflow:auto}.qcard-body:empty{padding:0;display:none}.qcard-foot{flex-direction:column;flex:none;align-items:center;gap:6px;padding:4px 22px 12px;display:flex}.qhead{flex:none;align-items:center;gap:10px;padding:8px 22px 0;display:flex}.qhead svg{flex:none;width:42px;height:50px}.qcard:has(.figure-slot){height:100%}.prompt-wrap{flex-direction:column;flex:0 auto;min-height:0;padding:0 22px;display:flex;overflow:hidden}.prompt-wrap:has(.figure-slot){flex:auto}.figure-slot{flex:auto;width:100%;min-height:0;position:relative}.figure{width:min(100%,460px);height:auto;margin:0 auto 6px;display:block}.figure-slot .figure{width:100%;max-width:none;height:100%;margin:0;position:absolute;inset:0}.qtag{color:#8a5a2b;font-size:14px;font-weight:800}.qspeech{font-size:18px}h2.prompt{text-align:center;letter-spacing:.02em;overflow-wrap:anywhere;flex:none;width:100%;height:auto;margin:2px 0 4px;font-size:36px;font-weight:900;line-height:1.2;display:block}.prompt.mid{font-size:32px}.prompt.long{text-align:left;font-size:24px;font-weight:700;line-height:1.35}.hint-lines{flex-direction:column;gap:8px;font-size:20px;line-height:1.55;display:flex}.area{gap:6px;margin:8px 0 4px;display:grid}.area div{text-align:center;border-radius:12px;place-items:center;min-height:46px;padding:4px;font-weight:800;display:grid}.area-head{color:#7a4b1e;background:#ffe8c2}.area-cell{color:#245c32;background:#e7f6d8}.candy{align-items:center;gap:16px;margin:8px 0;display:flex}.jar,.bowl{text-align:center;background:linear-gradient(#fff,#d7f0ff 40%,#9fd4ee);border:3px solid #7eb6d8;border-radius:0 0 28px 28px;place-items:center;width:92px;height:78px;font-weight:900;line-height:1.15;display:grid}.bowl{background:linear-gradient(#fff,#fff1d6);border-color:#e7c89a;border-radius:12px 12px 28px 28px;width:74px}.bowls{gap:8px;display:flex}.step{background:#fff;border:2px solid #efd7b4;border-radius:14px;padding:8px 12px}.step b{color:#c46a3a}.answer-row{justify-content:center;gap:16px;margin:4px 0;display:flex}.answer-input{text-align:center;width:220px;height:56px;font-size:32px;font-weight:800}.answer-row label{color:#8a5a2b;flex-direction:column;gap:4px;font-weight:800;display:flex}.choice-grid{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.choice-btn{background:#fff;border:3px solid #efd3a8;border-radius:16px;min-width:120px;min-height:64px;font-size:28px;font-weight:800}.choice-btn.on{background:#f3fbea;border-color:#3f8f4e}.reward{text-align:center;padding:12px 0 4px}.reward-num{color:#e09445;font-size:84px;font-weight:900;line-height:1}.note{color:#5d7266;text-align:center;margin:0;font-size:16px}.recap{background:#f3fbea;border-radius:16px;padding:12px 14px;font-size:22px;line-height:1.5}.parent{background:#f6efe2;flex-direction:column;height:100%;display:flex}.parent-top,.parent-scroll{padding:12px 18px}.parent-scroll{flex-direction:column;gap:12px;display:flex;overflow:auto}.parent-grid{grid-template-columns:360px 1fr;gap:12px;display:grid}.form-grid .actions{background:#fffaf2;padding:8px 0 4px;position:sticky;bottom:0}.drop{text-align:center;background:#fffaf2;border:3px dashed #e09445;border-radius:18px;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:150px;padding:10px;display:flex}.preview{border-radius:12px;max-width:100%;max-height:160px}.form-grid{flex-direction:column;gap:8px;display:flex}.field{flex-direction:column;gap:4px;font-size:14px;font-weight:700;display:flex}.field textarea{resize:vertical;min-height:72px}.check-row{flex-wrap:wrap;gap:14px;display:flex}.bank-list{flex-direction:column;gap:8px;display:flex}.item-row{background:#fffaf2;border:2px solid #efd3a8;border-radius:14px;grid-template-columns:1fr auto;gap:8px;padding:8px 10px;display:grid}.item-row p{overflow-wrap:anywhere;margin:0}.item-actions{align-items:center;gap:6px;display:flex}h2{margin:0;font-size:22px}.pin-wrap{place-items:center;height:100%;display:grid}@keyframes sway{50%{transform:rotate(-2.5deg)}}@keyframes bob{50%{transform:translateY(-4px)}}@keyframes pop{50%{transform:scale(1.12)}}@keyframes floatup{to{opacity:0;transform:translateY(-28px)}}.confetti i{background:#7dce6a;border-radius:2px 8px;width:10px;height:14px;animation:1.8s linear infinite fall;position:absolute;top:-20px}@keyframes fall{to{opacity:.2;transform:translateY(740px)rotate(180deg)}}
