:root{color-scheme:dark;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans",sans-serif;background:#081412;color:#f5f5eb}*{box-sizing:border-box}body{margin:0}button{font:inherit;color:inherit;border:1px solid #89987c;background:#1c342c;border-radius:10px;touch-action:manipulation;min-height:44px;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}button:focus-visible{outline:3px solid #fff3b3;outline-offset:-4px}[hidden]{display:none!important}.shell{max-width:450px;margin:auto;height:calc(100dvh - var(--nav-height,90px));min-height:480px;padding:2px 4px max(3px,env(safe-area-inset-bottom));display:flex;flex-direction:column}.forest{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;border:1px solid #aa9a60;border-radius:18px 18px 0 0;overflow:hidden;background:#142a28}.hud{display:flex;align-items:center;justify-content:space-between;padding:4px 8px;font-size:12px;background:#10251f;gap:5px;z-index:2}.hud b{color:#ffe2a5;font-size:19px}.hud button{width:44px;min-height:40px}.field{position:relative;flex:1;min-height:260px;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse at 40% 4%,#e9d99a99,transparent 42%),linear-gradient(#516f58 0%,#254f3c 50%,#4b6240 51%,#314d32 74%,#1b382a)}.field:before{content:"";position:absolute;inset:50% -15% -25%;border-radius:50%;background:repeating-radial-gradient(ellipse at 50% 10%,#7d864d22 0 2px,transparent 3px 31px),radial-gradient(ellipse at 50% 20%,#98a46666,#3d5a35 65%);transform:perspective(180px) rotateX(25deg);z-index:-1}.distant-forest{position:absolute;inset:0 0 46%;opacity:.7;filter:blur(.5px);background:repeating-linear-gradient(93deg,transparent 0 29px,#102f2a 31px 39px,transparent 41px 80px)}.distant-forest:before,.distant-forest:after{content:"";position:absolute;inset:0 -20%;background:radial-gradient(ellipse at 10% 5%,#214d35 0 18%,transparent 19%),radial-gradient(ellipse at 83% 4%,#1a4332 0 24%,transparent 25%),radial-gradient(ellipse at 43% -8%,#42774a 0 26%,transparent 27%)}.sky{position:absolute;top:12px;left:12px;right:12px;color:#d8dfb5;font-size:9px;letter-spacing:3px;z-index:3}.sky span{float:right;color:#ffccb0;font-size:17px;letter-spacing:3px;text-shadow:0 2px 5px #162a20}.tree{position:absolute;width:160px;height:280px;bottom:117px;left:calc(50% - 80px);transform-origin:50% 100%;pointer-events:none;z-index:2;--cut-depth:8%;filter:drop-shadow(7px 9px 5px #102d2b55)}.trunk{position:absolute;bottom:0;left:51px;width:58px;height:210px;border:3px solid #4b3424;border-radius:15px 15px 9px 9px;background:repeating-linear-gradient(87deg,transparent 0 9px,#533623aa 11px 13px,transparent 15px 19px),linear-gradient(90deg,#65472f,#b0824a 35%,#95663a 70%,#503a28);box-shadow:inset 5px 0 4px #d6ab5c33}.trunk:after{content:"";position:absolute;inset:17px 7px 20px;border-radius:40%;background:repeating-linear-gradient(100deg,transparent 0 23px,#412f23 24px 26px,transparent 27px 45px);opacity:.65}.branch{position:absolute;bottom:140px;left:40px;width:68px;height:18px;border:3px solid #4b3424;background:#966c41;transform:rotate(40deg);border-radius:20px}.branch-right{left:70px;bottom:175px;transform:rotate(-38deg)}.leaves{position:absolute;top:-8px;left:-27px;width:214px;height:160px;border-radius:48% 50% 44% 40%;background:radial-gradient(ellipse at 40% 24%,#a4be67 0 13%,transparent 14%),radial-gradient(ellipse at 20% 52%,#719c4f 0 22%,transparent 23%),radial-gradient(ellipse at 73% 48%,#608e40 0 26%,transparent 27%),radial-gradient(ellipse at 50% 20%,#86ac4d,#376c38 68%,#214b32);box-shadow:inset -10px -15px 4px #183d2b88,0 8px 0 #244b32}.leaves:after{content:"";position:absolute;inset:17% 13% 5%;border-radius:50%;border-bottom:12px dotted #91ae5355;transform:rotate(-15deg)}.cut{position:absolute;bottom:38px;left:52px;width:var(--cut-depth);max-width:53px;height:20px;background:linear-gradient(165deg,#291d13 0 32%,#f2c37c 35% 66%,#af713b 70%);clip-path:polygon(0 5%,100% 50%,0 100%);filter:drop-shadow(0 0 3px #f2c37c);transition:width .15s}.tree.big{scale:1.16 1.08}.tree.falling{opacity:0;transform:rotate(var(--fall)) translateY(8px);transition:transform .43s cubic-bezier(.55,.05,.8,.4),opacity .65s .1s}.stump{position:absolute;bottom:109px;left:calc(50% - 30px);height:29px;width:60px;background:repeating-linear-gradient(90deg,#765135 0 10px,#986c3d 12px 17px);border-radius:30%;border:2px solid #503923;z-index:1}.stump:after{content:"";position:absolute;inset:-5px -1px 13px;border-radius:50%;background:repeating-radial-gradient(ellipse,#d6b479 0 5px,#a77a48 6px 7px,#e8c68a 8px 11px);border:2px solid #785332}.routes{position:absolute;inset:0;z-index:1}.route{position:absolute;width:29%;height:95px;top:42%;padding:0;border:0;background:transparent;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px}.route:first-child{left:1%;transform:rotate(-9deg)}.route:nth-child(2){left:35.5%;top:25%;height:78px}.route:last-child{right:1%;transform:rotate(9deg)}.clearing{position:absolute;width:100%;height:55px;bottom:19px;border-radius:50%;border:2px dashed #d2deb183;background:radial-gradient(ellipse,#a6bd6b66,#63804b44);box-shadow:0 6px 0 #1e38282b}.clearing i{position:absolute;bottom:2px;width:2px;height:12px;background:#b1ba6a;transform:rotate(-20deg)}.clearing i:first-child{left:15%}.clearing i:nth-child(2){left:70%;height:9px}.clearing i:nth-child(3){left:80%;transform:rotate(25deg)}.rock{display:none;width:78px;position:absolute;bottom:20px}.route.blocked .rock{display:block}.route.blocked .clearing{opacity:.3;border-style:solid}.fall-arrow{font-size:32px;line-height:36px;color:#d3dfa7;z-index:1;opacity:.6;text-shadow:0 2px 3px #273e2d}.route.blocked .fall-arrow{visibility:hidden}.route-caption{position:absolute;bottom:0;font-size:11px;letter-spacing:1px;color:#f0eccf;text-shadow:0 2px 3px #183d2b}.route.selected .clearing{background:#eec56d50;border:2px solid #ffe3a3;box-shadow:0 0 15px #ffd98a30}.route.selected .fall-arrow{opacity:1;color:#ffe8a8}.route.selected .route-caption{color:#ffe8a8;font-weight:700}.trunk-touch{position:absolute;left:calc(50% - 63px);bottom:102px;width:126px;height:179px;z-index:4;border:0;border-radius:50%;background:transparent;touch-action:manipulation}.trunk-touch span{position:absolute;bottom:50px;left:0;right:0;margin:auto;width:max-content;max-width:100%;padding:5px 8px;border:1px solid #e7d4a766;border-radius:20px;background:#16392bc9;color:#ffedbd;font-size:11px;pointer-events:none;box-shadow:0 3px 9px #152e2a44}.trunk-touch:disabled span{opacity:.4}.sweet-now .trunk-touch:not(:disabled) span{background:#f5d17b;color:#352b1b;border-color:#fff3bc;box-shadow:0 0 12px #ffe4a255}.axe-tool{position:absolute;width:113px;height:128px;bottom:115px;left:calc(50% + 16px);z-index:5;transform:rotate(25deg);transform-origin:30% 90%;pointer-events:none;filter:drop-shadow(2px 5px 2px #142b2466)}.axe-tool svg{width:100%;height:100%}.swing .axe-tool{animation:axe-strike .32s ease-out}.hit .tree:not(.falling){animation:tree-hit .25s}.collision .axe-tool{animation:axe-recoil .3s}.field[data-axe="1"] .axe-tool{filter:drop-shadow(0 0 5px #ffd47880)}.field[data-axe="2"] .axe-tool{filter:drop-shadow(0 0 9px #ffe08e)}.field[data-axe="2"] .axe-rune{stroke:#fff3a0;stroke-width:6}.chips{position:absolute;bottom:160px;left:50%;z-index:6;pointer-events:none}.chips i{position:absolute;width:10px;height:5px;background:#f6cd89;border:1px solid #ac743b;border-radius:1px;animation:chip .47s ease-out forwards}.chips i:nth-child(3n){width:5px;height:8px;background:#be874d}.strike-word{position:absolute;bottom:224px;left:0;right:0;text-align:center;z-index:6;font-size:24px;font-weight:900;color:#ffe7ad;text-shadow:0 3px 2px #2d3822,0 0 15px #e3ae59;pointer-events:none}.hit .strike-word,.collision .strike-word{animation:strike-word .5s ease-out forwards}.collision .strike-word{color:#ffb09b}.collision .route.blocked .rock{filter:drop-shadow(0 0 8px #ff795a)}.cart-scene{position:absolute;width:85px;height:63px;bottom:48px;left:14px;z-index:3;transform:scale(.8);transform-origin:50% 100%;pointer-events:none}.cart-bed{position:absolute;bottom:20px;left:3px;width:75px;height:23px;background:repeating-linear-gradient(#aa824b 0 7px,#634629 8px 10px);border:3px solid #463c27;border-radius:3px 3px 10px 10px}.cart-bed:after{content:"";position:absolute;width:28px;height:5px;background:#ae9a63;right:-24px;top:5px;transform:rotate(-20deg)}.wheel{position:absolute;width:22px;height:22px;border:5px solid #354139;border-radius:50%;background:conic-gradient(#b7a777 0 12%,#5f593a 13% 25%,#b7a777 26% 38%,#5f593a 39% 50%,#b7a777 51% 63%,#5f593a 64% 75%,#b7a777 76% 88%,#5f593a 89%);bottom:6px;transform:rotate(var(--wheels,0deg))}.wheel-left{left:10px}.wheel-right{right:11px}.load{position:absolute;bottom:38px;left:9px;width:65px;height:28px;opacity:0}.load i{position:absolute;bottom:0;left:0;width:60px;height:17px;border-radius:8px;background:linear-gradient(#ac7949,#6a4a2e);border:1px solid #433322}.load i:after{content:"";position:absolute;right:0;top:0;width:17px;height:15px;border-radius:50%;background:repeating-radial-gradient(ellipse,#e4c38c 0 3px,#a2804e 4px 5px)}.load i:nth-child(2){bottom:13px;width:53px;left:5px}.load i:nth-child(3){bottom:24px;width:47px;left:8px}.hauling{transform:translateX(calc(var(--haul)*390px)) scale(.9);opacity:calc(1 - max(0, var(--haul) - .85)*6)}.hauling .load{opacity:1}.field[data-cart="1"] .cart-bed{border-color:#d3b871}.field[data-cart="2"] .cart-bed{border-color:#ffe3a5;box-shadow:0 0 8px #e3be6e66}.tree-label{position:absolute;bottom:94px;left:0;right:0;text-align:center;font-size:12px;color:#ffdfa5;pointer-events:none}.health{position:absolute;bottom:81px;width:104px;height:6px;left:calc(50% - 52px);background:#081d19;border-radius:4px;overflow:hidden}.health i{display:block;height:100%;background:linear-gradient(90deg,#b98543,#ffe4a0);transition:width .15s}.feedback{position:absolute;bottom:9px;left:6px;right:6px;text-align:center;font-size:12px;color:#fff0c1;min-height:18px;z-index:3;text-shadow:0 2px 3px #142f21}.controls{padding:7px 8px 8px;display:flex;flex-direction:column;gap:7px;background:#10271f;z-index:7}.timing{position:relative;height:25px;border-radius:8px;background:#203f34;border:1px solid #6c8263;overflow:hidden}.sweet{position:absolute;left:34%;width:32%;height:100%;background:linear-gradient(90deg,#a98a42,#ead18b,#a98a42);text-align:center;color:#302720;font-size:11px;line-height:23px;font-weight:700}.timing i{position:absolute;left:0;top:0;height:100%;width:5px;background:#fff8df;box-shadow:0 0 8px #fff}.upgrades{display:flex;gap:7px}.upgrades button{flex:1;min-width:0;font-size:12px;display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;line-height:1.5;padding:4px;border-color:#4b6552}.upgrades small{display:block;font-size:10px;color:#adba9c}.upgrades .upgrade-icon{font-size:25px}.upgrades button:disabled{opacity:.6}.upgrades button.ready{border-color:#ffe0a1;background:linear-gradient(135deg,#64552e,#3b4528);box-shadow:inset 0 0 10px #f5cd6c15}.upgrades button.ready small{color:#ffe6a6}.buddy{display:flex;align-items:center;gap:7px;height:68px;flex-shrink:0;padding:0 7px;border:1px solid #a99b62;border-top:0;border-radius:0 0 18px 18px;background:#172e2b}.buddy img{object-fit:contain;align-self:flex-end}.buddy p{font-size:12px;margin:0;line-height:1.5}.buddy b{display:block;color:#f1cf91;font-size:11px}.overlay{position:absolute;inset:0;z-index:10;display:grid;place-items:center;padding:12px;background:#050e11b0;backdrop-filter:blur(4px)}.panel{width:min(100%,310px);max-height:100%;overflow:auto;display:flex;flex-direction:column;align-items:center;gap:12px;padding:20px 14px;border:1px solid #d9bb7a;border-radius:20px;background:radial-gradient(ellipse at 50% 0,#385446,#101f25 78%)}.panel img{object-fit:contain}.panel p{margin:0;text-align:center}#result{font-size:21px;font-weight:800;color:#ffe2a5;white-space:pre-line}#hint{font-size:12px;line-height:1.8}.play{width:170px;background:linear-gradient(145deg,#fff1bb,#e4bb66);border-color:#fff0be;color:#302720;font-weight:800;min-height:50px}.panel small{font-size:11px;color:#bac9c2}.field[data-won=true]{box-shadow:inset 0 0 50px #ffe08340}.upgraded:after{content:"";position:absolute;inset:0;pointer-events:none;z-index:6;box-shadow:inset 0 0 50px #ffdf7e77;animation:upgrade .6s ease-out forwards}.paused *{animation-play-state:paused!important}
@keyframes axe-strike{0%{transform:rotate(55deg) translate(5px,-8px)}40%{transform:rotate(-58deg) translate(-12px,8px)}70%{transform:rotate(-45deg)}100%{transform:rotate(25deg)}}@keyframes axe-recoil{0%{transform:rotate(55deg)}40%{transform:rotate(-50deg)}70%{transform:rotate(50deg)}100%{transform:rotate(25deg)}}@keyframes tree-hit{25%{transform:rotate(-2deg)}65%{transform:rotate(1.5deg)}}@keyframes chip{to{transform:translate(var(--dx),var(--dy)) rotate(var(--spin));opacity:0}}@keyframes strike-word{0%{transform:translateY(8px) scale(.85);opacity:1}40%{opacity:1;transform:translateY(-5px) scale(1.06)}100%{opacity:0;transform:translateY(-22px)}}@keyframes upgrade{to{opacity:0}}
@media(max-height:720px){.buddy{height:54px}.buddy img{height:54px;width:54px}.tree{height:210px}.trunk{height:165px}.leaves{height:120px;width:190px;left:-15px}.branch{bottom:115px}.branch-right{bottom:140px}.route{top:35%}.route:nth-child(2){top:15%}.panel img{height:100px;width:100px}.panel{gap:8px}.tree.big{scale:1.1 1.02}.trunk-touch{height:150px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}.hauling{transform:translateX(120px)}.tree.falling{opacity:.2}.chips{display:none}}
/* Keep the three landing zones visible above and beside the tree on short phones. */
.tree{height:50%;bottom:22%}.trunk{height:75%}.leaves{height:57%}.branch{bottom:48%}.branch-right{bottom:62%}.cut{bottom:14%}.stump{bottom:calc(22% - 8px)}.trunk-touch{bottom:calc(22% - 15px);height:34%;min-height:112px}.trunk-touch span{bottom:28%}.axe-tool{bottom:22%}.chips{bottom:calc(22% + 42px)}.strike-word{bottom:calc(22% + 108px)}.tree-label{bottom:calc(22% - 24px)}.health{bottom:calc(22% - 36px)}.cart-scene{bottom:7%}.route:nth-child(2){top:8%;height:68px}.routes{z-index:3}.tree{z-index:2}.tree.big{scale:1.1 1.06}
@media(max-height:720px){.leaves{width:190px;left:-15px}.tree.big{scale:1.06 1.03}.axe-tool{width:94px;height:106px}}

/* Falling follows game time, so transport and pause remain in sync. */
.tree.falling{transform:perspective(500px) rotateX(calc(var(--fall-away)*var(--fall-progress))) rotate(calc(var(--fall)*var(--fall-progress)));opacity:var(--fall-opacity);transition:none}
