:root{font-family:system-ui,sans-serif;color:#f0eadd;background:#33483b;color-scheme:dark}*{box-sizing:border-box}body{margin:0;overflow:hidden}[hidden]{display:none!important}button,a,input{font:inherit;color:inherit}button{cursor:pointer;border:1px solid #c9c2aa56;background:#25362eed;padding:9px 13px;border-radius:10px;font-weight:760}button:disabled{opacity:.48;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #f6c283;outline-offset:2px}a{color:inherit}.primary{background:#c79a66;color:#251c15;border-color:#e4b981}#forest-world{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;touch-action:none}.forest-header{display:flex;position:fixed;inset:17px 20px auto;justify-content:space-between;align-items:center;gap:8px;z-index:4;pointer-events:none}.forest-header a,.forest-header button{pointer-events:auto;text-decoration:none;background:#23312bed;border:1px solid #c9c2aa56;padding:9px 13px;border-radius:10px;font-size:13px;font-weight:750}.forest-menu{position:fixed;top:0;right:0;bottom:0;left:0;min-height:0;overflow:auto;display:flex;flex-direction:column;align-items:flex-start;justify-content:safe center;padding:76px 23px 48px clamp(26px,8vw,120px);background:linear-gradient(90deg,#16251af5 0%,#25382ab8 32%,transparent 75%)}.forest-tag{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.17em;color:#f0c08e;margin:0 0 15px}.forest-menu h1{font-family:Georgia,serif;font-weight:500;font-size:clamp(64px,8vw,120px);letter-spacing:-.07em;line-height:.88;margin:0;text-shadow:0 5px 30px #122219b0}.forest-intro{font-size:15px;line-height:1.48;max-width:300px;margin:23px 0;color:#e8e3cc}.forest-modes,#forest-lobby{width:min(330px,90vw);display:grid;gap:8px}.forest-modes{width:min(259px,90vw)}.forest-modes button{text-align:left;min-height:44px;padding-inline:15px}#forest-lobby{background:#202e28f4;border:1px solid #697b65;border-radius:16px;padding:13px}#forest-lobby p{font-size:13px;line-height:1.45;margin:0 0 5px;color:#e1e0ce}#forest-lobby-new,#forest-invite,#forest-join{display:grid;gap:7px}#forest-lobby label{font-size:12px}.join-row{display:flex;gap:6px}.join-row input{min-width:0;width:100%;padding:8px 9px;border:1px solid #768373;background:#20342b;border-radius:8px;font-size:14px;letter-spacing:.08em}.join-row button{white-space:nowrap;font-size:13px}.card{background:#182822e8;border:1px solid #b5ba9f54;border-radius:12px;box-shadow:0 6px 25px #101b1945}.forest-clock{position:fixed;left:50%;top:16px;transform:translate(-50%);width:min(240px,43vw);padding:9px 12px}.forest-clock>div,.supplies{display:flex;justify-content:space-between;gap:8px;align-items:center}.forest-clock>div{font-size:13px}.forest-clock span{color:#edc598}.forest-clock small{display:block;font-size:11px;margin-top:3px;color:#c5dedf}progress{display:block;width:100%;height:6px;accent-color:#c6a675;margin:5px 0 0}.forest-route{position:fixed;right:20px;top:64px;padding:8px 10px;display:grid;gap:2px;font-size:12px}.forest-route small{color:#bad1c5}#forest-note{position:fixed;top:83px;left:50%;transform:translate(-50%);width:max-content;max-width:min(90vw,390px);text-align:center;padding:8px 12px;font-size:13px;margin:0}.forest-player{position:fixed;left:20px;bottom:22px;padding:11px 12px;width:170px;display:grid;gap:5px}.forest-player label{font-size:12px}.forest-player label b{float:right;font-size:11px}.forest-player label progress{height:5px;margin-top:3px}#forest-hp{accent-color:#af847c}#forest-hunger{accent-color:#b8c287}#forest-warmth{accent-color:#edb37a}.forest-store{position:fixed;right:20px;bottom:22px;padding:8px 9px;display:grid;gap:6px}.supplies{font-size:12px;padding:0 2px}.supplies b,.forest-food b{color:#f2c79a}.forest-food{display:flex;gap:4px}.forest-food button{font-size:11px;padding:7px;white-space:nowrap}.forest-actions{position:fixed;left:50%;transform:translate(-50%);bottom:20px;text-align:center;display:grid;gap:5px;justify-items:center;width:max-content;max-width:calc(100vw - 22px);pointer-events:none}.forest-actions button{pointer-events:auto;white-space:nowrap}.forest-buttons{display:flex;gap:5px;justify-content:center;flex-wrap:wrap}.forest-buttons kbd{font-size:10px;margin-left:3px;color:#eec49a}#forest-shelter,#forest-aid-status{padding:6px 10px;font-size:12px}.forest-desktop{font-size:11px;color:#eee9d8;text-shadow:0 1px 8px #0e1613}.forest-touch{display:none}.forest-result{max-width:min(88vw,440px);padding:22px;background:#24342bef;border:1px solid #677d63;border-radius:16px;color:#f0eadd}.forest-result h2{font-family:Georgia,serif;font-size:35px;margin:0 0 8px}.forest-result p{font-size:14px;line-height:1.5}.forest-result div{display:flex;gap:12px;align-items:center}.forest-result::backdrop{background:#15231aba;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}@media(pointer:coarse),(max-width:780px){.forest-header{inset:10px 10px auto}.forest-header a,.forest-header button{padding:8px;font-size:11px}.forest-menu{padding:61px 16px 22px;justify-content:safe center;background:linear-gradient(100deg,#16251af5 0%,#25382a91 64%,transparent)}.forest-clock{top:52px;width:min(188px,48vw);padding:6px 8px}.forest-clock>div{font-size:11px}.forest-route{display:none}#forest-note{top:105px;font-size:11px}.forest-player{left:10px;bottom:118px;width:113px;padding:6px 7px}.forest-player label,.forest-player label b{font-size:10px}.forest-store{right:10px;bottom:118px;padding:5px 6px;gap:3px}.supplies,.forest-food button{font-size:10px}.forest-food button{padding:6px 4px;min-height:35px}.forest-actions{bottom:222px}.forest-buttons button{font-size:12px;padding:7px 9px;min-height:41px}.forest-buttons kbd,.forest-desktop{display:none}.forest-touch{position:fixed;inset:auto 12px max(12px,env(safe-area-inset-bottom));display:flex;justify-content:space-between;align-items:flex-end;pointer-events:none}#forest-stick{--joystick-size:90px;--joystick-base:#253a33dc;--joystick-rim:#c6bfa4}#forest-run{min-width:65px;min-height:48px;touch-action:none;pointer-events:auto}#forest-run[aria-pressed=true]{background:#946b4f}}@media(max-height:510px)and (orientation:landscape){.forest-menu h1{font-size:47px}.forest-intro{margin:12px 0;font-size:12px}.forest-menu:has(#forest-lobby:not([hidden])) h1,.forest-menu:has(#forest-lobby:not([hidden])) .forest-intro{display:none}.forest-actions{bottom:112px;max-width:65vw}.forest-player,.forest-store{bottom:57px}.forest-player{grid-template-columns:repeat(3,1fr);width:239px}#forest-stick{--joystick-size:69px}}.forest-panel{position:fixed;left:50%;transform:translate(-50%);top:max(72px,10svh);z-index:3;width:min(370px,calc(100vw - 22px));padding:12px;color:#f5ecdf}.forest-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.forest-panel-heading h2{margin:0;font:500 23px Georgia,serif}.forest-panel-heading>button{padding:0;width:37px;min-height:35px;font-size:19px}.forest-panel p{font-size:12px;line-height:1.4;margin:6px 0;color:#e1dfc9}.forest-build-cost{display:flex;gap:8px;font-size:12px;margin:8px 0}.forest-build-cost span{border:1px solid #adb79855;border-radius:7px;padding:4px 7px}.forest-build-cost b{margin-left:4px;color:#f2c897}#forest-build-status[data-ready=true]{color:#c4e8b4}#forest-build-status[data-ready=false]{color:#efc297}#forest-build-confirm{min-height:42px}@media(pointer:fine)and (min-width:781px){#forest-build-guide{left:20px;transform:none;width:min(325px,30vw)}}#forest-pantry-items{display:grid}.forest-pantry-row{display:grid;grid-template-columns:minmax(87px,1fr) auto auto;align-items:center;gap:5px;border-top:1px solid #c0c29d35;padding:6px 0;font-size:12px}.forest-pantry-row b,.forest-pantry-row small{display:block}.forest-pantry-row small{color:#e0d6c2;font-size:10px}.forest-pantry-row button{min-height:39px;padding:5px 8px;font-size:12px}#forest-fishing{top:max(75px,11svh);left:auto;right:18px;transform:none;width:min(348px,calc(100vw - 24px));text-align:left}#forest-fishing-water{height:160px;position:relative;isolation:isolate;overflow:hidden;border-radius:11px;border:1px solid #a1cbc29e;background:repeating-linear-gradient(174deg,#8bb7ac13 0 1px,transparent 2px 19px),radial-gradient(ellipse at 33% 14%,#3e7f79,#213d4e 75%);touch-action:none}button.forest-target{--fish-color:#ffc886;position:absolute;display:grid;place-items:center;min-width:43px;height:44px;padding:0;border:0;box-shadow:none;background:transparent;transform:translate(-50%,-50%);touch-action:manipulation}button.forest-target:nth-child(2){--fish-color:#a9e3c9}button.forest-target:nth-child(3){--fish-color:#e5b9e9}button.forest-target:nth-child(4){--fish-color:#ffe491}button.forest-target:nth-child(5){--fish-color:#c3ddff}.forest-target .fish-shape{position:relative;width:27px;height:13px;border-radius:56% 65% 65% 56%;background:var(--fish-color);box-shadow:0 2px 4px #0e2939;transform:scaleX(var(--direction,1));pointer-events:none}.forest-target .fish-shape:before{content:"";position:absolute;left:-7px;top:0;border-left:8px solid var(--fish-color);border-top:6px solid transparent;border-bottom:6px solid transparent}.forest-target .fish-shape:after{content:"";position:absolute;right:5px;top:3px;width:3px;height:3px;background:#1a2a34;border-radius:50%}#forest-fishing-count{font-size:13px;color:#f2c897}#forest-fishing-cancel{margin-top:8px;min-height:38px;font-size:12px}@media(pointer:coarse),(max-width:780px){.forest-panel{top:92px;padding:9px}#forest-fishing{top:auto;bottom:max(111px,calc(env(safe-area-inset-bottom) + 100px));right:11px;width:min(350px,calc(100vw - 22px))}#forest-fishing-water{height:146px}.forest-panel-heading h2{font-size:20px}}@media(max-height:550px){.forest-panel{top:48px}#forest-fishing{top:49px;bottom:auto}#forest-fishing-water{height:125px}}#forest-clock-left{font-variant-numeric:tabular-nums;color:#f7eee2}.stored-supplies{color:#e7e5d1}.supplies small{font-size:inherit;color:#c0d1c2;white-space:nowrap}.forest-food button[aria-pressed=true]{background:#805e43;border-color:#ffca8c}#forest-eat{padding:6px 9px;font-size:12px;background:#78533a}#forest-stamina{accent-color:#c8c797}#forest-breath{accent-color:#8bc6d9}#forest-deposit{margin-top:7px;min-height:41px}@media(pointer:coarse),(max-width:780px){.forest-actions{bottom:250px}#forest-pantry{max-height:calc(100dvh - 112px);overflow:auto}#forest-eat{font-size:10px;min-height:32px}}@media(max-height:510px)and (orientation:landscape){.forest-actions{bottom:112px}}
