.tower-board{--leaf-h:54px;--col:84px;color:#233e36;font-variant-numeric:tabular-nums;width:min(100%,980px);margin:0 auto;font-size:15px}.tw-hud{flex-wrap:wrap;justify-content:space-between;gap:4px 16px;padding:8px 0 10px;display:flex}.tw-hud strong{font-size:1.18em}.tw-sub{color:#5e6f63;font-size:.9em}.tw-scroll{scroll-snap-type:x proximity;overscroll-behavior-x:contain;background:linear-gradient(#d9f0f5 0,#e8f6dc 55%,#b6dd8f 100%);border-radius:20px;overflow:auto hidden;box-shadow:inset 0 0 0 2px #7fb15f55,0 12px 26px #2c3d2426}.tw-stage{box-sizing:border-box;justify-content:center;align-items:flex-end;gap:10px;width:max-content;min-width:100%;padding:14px 12px 16px;display:flex;position:relative}.tw-stalk{flex:1 1 var(--col);min-width:var(--col);scroll-snap-align:center;background:#ffffff40;border-radius:18px;flex-direction:column;align-items:stretch;gap:8px;max-width:200px;padding:28px 6px 10px;transition:background .3s,opacity .3s;display:flex;position:relative}.tw-stalk:before{content:"";background:linear-gradient(90deg,#4d8d3a,#7cc15b 50%,#4d8d3a);border-radius:6px;width:10px;position:absolute;top:26px;bottom:0;left:50%;translate:-50%}.tw-stalk.is-current{background:#ffffffa8;box-shadow:0 0 0 2px #f1b84a}.tw-stalk.is-done{filter:saturate(.6)brightness(1.04)}.tw-caption{text-align:center;letter-spacing:.08em;text-transform:uppercase;color:#4a6a52;font:700 11px/1 system-ui,sans-serif;position:absolute;top:7px;left:0;right:0}.tw-floors{z-index:1;flex-direction:column-reverse;gap:8px;display:flex;position:relative}.tw-home{background:#fff3;flex:0 0 74px;justify-content:flex-end;min-width:74px;padding-top:50px}.tw-home:before{display:none}.tw-pad{height:var(--leaf-h);background:linear-gradient(#a8dc84,#79bd58);border:2px solid #4c8f3b;border-radius:26px 8px;display:block;box-shadow:0 3px #2f5f2766}.tw-floor{width:100%;height:var(--leaf-h);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;background:0 0;border:0;padding:0;display:block;position:relative}.tw-floor:disabled{cursor:default}.tw-leaf{box-sizing:border-box;color:#12401f;background:linear-gradient(#b6e58a,#7fc15c);border:2px solid #4c8f3b;border-radius:26px 8px;justify-content:center;align-items:center;gap:2px;width:100%;height:100%;padding:0 6px;transition:transform .15s,opacity .35s,filter .3s,background .3s;display:flex;position:relative;box-shadow:0 3px #2f5f2766}.tw-floor:not(:disabled):not([aria-disabled=true]):hover .tw-leaf{transform:translateY(-2px)}.tw-floor:focus-visible{outline:none}.tw-floor:focus-visible .tw-leaf{outline-offset:2px;outline:4px solid #de861b}.tw-glyph{flex:none;place-items:center;width:26px;height:26px;display:grid}.tw-bug,.tw-icon{width:100%;height:100%;display:block}.tw-num{white-space:nowrap;align-items:baseline;gap:1px;font:800 22px/1 Outfit,system-ui,sans-serif;display:inline-flex}.tw-num[data-digits="4"]{font-size:18px}.tw-num[data-digits="5"]{font-size:15px}.tw-grow{color:#7a1f12;margin-left:1px;font:800 11px/1 system-ui,sans-serif}.tw-tags{gap:1px;display:flex;position:absolute;top:-7px;right:-4px}.tw-tag{filter:drop-shadow(0 1px #0003);width:20px;height:20px}.is-bug.is-tough .tw-leaf,.is-boss.is-tough .tw-leaf{color:#5b0f08;background:linear-gradient(#f9bdb2,#e27665);border-color:#b03a2b}.is-bug .tw-glyph{color:#2e6b34}.is-bug.is-tough .tw-glyph{color:#9a2a1c}.is-bug .tw-bug{animation:tw-bob 2.4s ease-in-out var(--bob) infinite alternate}.is-nectar .tw-leaf{color:#6b4600;background:linear-gradient(#ffe9a0,#f3c349);border-color:#b5860f}.is-honey .tw-leaf{color:#6b3200;background:linear-gradient(#ffcf86,#f19a31);border-color:#b2650f}.is-thorn .tw-leaf{color:#3d1558;background:linear-gradient(#e2c7f2,#ae78d0);border-color:#7b4b9b}.is-mildew .tw-leaf{color:#1f4a40;background:linear-gradient(#d0e2dc,#93b5ab);border-color:#547f73}.is-boss{height:calc(var(--leaf-h) * 1.35)}.is-boss .tw-leaf{background:linear-gradient(#e9f7bd,#a9d56a);border-width:3px;border-color:#8a6a10}.is-boss .tw-glyph{width:38px;height:38px}.is-boss .tw-num{font-size:28px}.is-boss .tw-num[data-digits="4"]{font-size:22px}.is-boss .tw-num[data-digits="5"]{font-size:18px}.is-shut .tw-leaf{filter:saturate(.5)brightness(1.04)}.is-shut{cursor:not-allowed}.is-cleared .tw-leaf{box-shadow:none;background:#e1edd2;border-color:#bdd3a8;transform:scale(.92)}.is-cleared .tw-glyph,.is-cleared .tw-num,.is-cleared .tw-tags{opacity:0;transition:opacity .25s}.is-fresh.is-bug .tw-glyph,.is-fresh.is-boss .tw-glyph{opacity:1;animation:.45s ease-out forwards tw-pop}.is-hint .tw-leaf{border:3px dashed #c25f00;animation:1s ease-in-out infinite alternate tw-glow;box-shadow:0 0 0 4px #ffe17a,0 0 18px 6px #ffd34d}.tw-hero{z-index:3;pointer-events:none;opacity:0;will-change:transform;width:56px;height:56px;position:absolute;top:0;left:0}.tw-hero.is-placed{opacity:1;transition:transform .5s cubic-bezier(.3,.7,.3,1)}.tw-hero-body{width:100%;height:100%;position:relative}.tw-lady{filter:drop-shadow(0 3px 2px #0003);width:100%;height:100%;display:block}.tw-badge{color:#8a1d0e;text-align:center;background:#fff7d6;border:2.5px solid #c1411f;border-radius:999px;min-width:30px;padding:2px 8px;font:900 17px/1.15 Outfit,system-ui,sans-serif;position:absolute;top:-14px;left:50%;translate:-50%;box-shadow:0 2px #0002}.tw-hero-body.is-hop{animation:.5s ease-out tw-hop}.tw-hero-body.is-lunge{animation:.65s ease-in-out tw-lunge}.tw-hero.is-hurt .tw-badge{background:#fbd6cf;animation:.4s ease-in-out 2 tw-shake}.tw-hero.is-hurt .tw-lady{filter:grayscale(.45)drop-shadow(0 3px 2px #0003);transform:rotate(-14deg)}.tw-hero.is-won .tw-hero-body{animation:.6s ease-in-out 3 tw-cheer}.tw-message{min-height:3em;margin:12px 0 6px;font-weight:500;line-height:1.5}.tw-message.is-bad{color:#9a2a1c;font-weight:700}.tw-message.is-good{color:#1d5b34;font-weight:700}.tw-result{background:#fff6d3;border:2px solid #e3b73f;border-radius:14px;flex-wrap:wrap;align-items:center;gap:14px;margin:2px 0 8px;padding:10px 14px;display:flex}.tw-stars{gap:2px;display:flex}.tw-star{fill:#ddd6bd;stroke:#a99c6d;stroke-width:1.4px;stroke-linejoin:round;width:34px;height:34px}.tw-star.is-on{fill:#f6b81c;stroke:#a76b00}.tw-actions{flex-wrap:wrap;gap:8px;margin:8px 0;display:flex}.tw-actions button{color:#244a38;cursor:pointer;touch-action:manipulation;background:#edf2e6;border:1px solid #9bab99;border-radius:10px;min-width:44px;min-height:44px;padding:8px 16px;font:600 15px system-ui,sans-serif}.tw-actions button:disabled{opacity:.5;cursor:default}.tw-actions button:focus-visible{outline-offset:2px;outline:3px solid #de861b}.tw-actions .tw-next{color:#fff;background:#2f7d46;border-color:#1f5a31}@keyframes tw-bob{0%{transform:translateY(1px)}to{transform:translateY(-3px)}}@keyframes tw-hop{0%{transform:translateY(0)}35%{transform:translateY(-30px)scale(1.06)}70%{transform:translateY(0)scale(.96,1.04)}to{transform:none}}@keyframes tw-lunge{0%{transform:translateY(0)}30%{transform:translateY(-26px)}55%{transform:translateY(2px)scale(1.1)}to{transform:none}}@keyframes tw-shake{0%,to{translate:-50%}25%{translate:calc(-50% - 4px)}75%{translate:calc(4px - 50%)}}@keyframes tw-pop{0%{transform:scale(1)}40%{transform:scale(1.5)rotate(8deg)}to{opacity:0;transform:scale(0)}}@keyframes tw-glow{0%{box-shadow:0 0 0 3px #ffe17a,0 0 8px 2px #ffd34d}to{box-shadow:0 0 0 5px #ffe17a,0 0 20px 8px #ffd34d}}@keyframes tw-cheer{0%,to{transform:translateY(0)}50%{transform:translateY(-14px)}}@media (min-width:760px){.tower-board{--leaf-h:64px;font-size:16px}.tw-stage{gap:16px;padding:18px 20px 20px}.tw-stalk{--col:130px;gap:10px;padding:32px 12px 12px}.tw-floors{gap:10px}.tw-home{flex-basis:96px;min-width:96px}.tw-glyph{width:32px;height:32px}.tw-num{font-size:26px}.tw-num[data-digits="4"]{font-size:21px}.tw-num[data-digits="5"]{font-size:17px}.is-boss .tw-glyph{width:46px;height:46px}.is-boss .tw-num{font-size:32px}.tw-hero{width:64px;height:64px}}@media (prefers-reduced-motion:reduce){.tower-board *,.tower-board :before,.tower-board :after{transition:none!important;animation:none!important}.is-fresh.is-bug .tw-glyph,.is-fresh.is-boss .tw-glyph{opacity:0}}
