*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}body{overflow:hidden;background:#000;font-family:Courier New,monospace;color:#fff;-webkit-user-select:none;user-select:none}canvas{display:block;position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:0}#app{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:1;pointer-events:none}#water-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#14327859;pointer-events:none;z-index:50;display:none}.coop-mode #water-overlay{width:50vw}#water-overlay-p2{position:fixed;top:0;left:50vw;width:50vw;height:100vh;background:#14327859;pointer-events:none;z-index:50;display:none}#split-divider{position:fixed;top:0;left:50%;width:3px;height:100vh;background:#000;z-index:150;display:none;transform:translate(-50%)}.coop-mode #crosshair,.coop-mode #hotbar,.coop-mode #health-bar{left:25%}.coop-mode #time-display{left:8px;right:auto;top:auto;bottom:8px}.coop-mode #debug-info{left:8px}.coop-mode .minimap{right:auto;left:8px;display:block;top:auto;bottom:40px}.coop-mode #inventory-screen{width:50%}#p2-hud{position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:1}.p2-crosshair{position:fixed;top:50%;left:75%;transform:translate(-50%,-50%);font-size:24px;color:#ffc8c8cc;pointer-events:none;z-index:100;text-shadow:0 0 2px #000;display:none}.p2-crosshair.active{display:block}.p2-hotbar{position:fixed;bottom:10px;left:75%;transform:translate(-50%);display:none;gap:2px;z-index:100}.p2-hotbar.active{display:flex}.p2-health-bar{position:fixed;bottom:68px;left:75%;transform:translate(calc(-50% - 167px));display:none;gap:1px;z-index:100}.p2-health-bar.active{display:flex}.p2-time-display{position:fixed;top:8px;right:8px;font-size:16px;color:#fff;text-shadow:1px 1px 2px #000;z-index:100;display:none;padding:4px 10px;background:#0006;border-radius:4px}.p2-time-display.active{display:block}.p2-debug-info{position:fixed;top:8px;left:calc(50% + 8px);font-size:12px;color:#fff;text-shadow:1px 1px 0 #000;z-index:100;display:none;line-height:1.4}.p2-debug-info.active{display:block}.p2-inventory-screen{position:fixed;top:0;left:50%;width:50%;height:100%;background:#000000bf;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:200;pointer-events:auto}.p2-inventory-screen.hidden{display:none}.room-code-display{position:fixed;top:8px;left:50%;transform:translate(-50%);font-size:14px;color:#fff;text-shadow:1px 1px 2px #000;z-index:100;padding:4px 14px;background:#00000080;border-radius:4px;pointer-events:none;display:flex;gap:12px}#crosshair{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);font-size:24px;color:#fffc;pointer-events:none;z-index:100;text-shadow:0 0 2px #000;display:none}#hotbar{position:fixed;bottom:10px;left:50%;transform:translate(-50%);display:none;gap:2px;z-index:100}#hotbar.active{display:flex}.hotbar-slot{width:52px;height:52px;border:2px solid #555;background:#0009;display:flex;align-items:center;justify-content:center;position:relative}.hotbar-slot.selected{border-color:#fff;background:#fff3}.hotbar-slot .block-icon{width:36px;height:36px;border-radius:2px}.hotbar-slot .slot-count{position:absolute;bottom:1px;right:3px;font-size:11px;text-shadow:1px 1px 0 #000}.hotbar-slot .slot-number{position:absolute;top:1px;left:3px;font-size:9px;color:#aaa}#health-bar{position:fixed;bottom:68px;left:50%;transform:translate(calc(-50% - 167px));display:none;gap:1px;z-index:100}#health-bar.active{display:flex}.heart{width:14px;height:14px;font-size:14px;line-height:1}#hunger-bar,.p2-hunger-bar{position:fixed;bottom:68px;left:50%;transform:translate(calc(-50% + 167px));display:none;gap:1px;z-index:100}#hunger-bar.active,.p2-hunger-bar.active{display:flex}.hunger-icon{width:14px;height:14px;font-size:13px;line-height:1;transition:opacity .3s}.p2-hunger-bar{left:calc(75% + 167px)}.coop-mode #hunger-bar{left:calc(25% + 167px)}.durability-bar{position:absolute;bottom:2px;left:4px;right:4px;height:3px;background:#333;border-radius:1px}.durability-fill{height:100%;border-radius:1px;transition:width .2s}.slot-name{position:absolute;top:-18px;bottom:auto;left:50%;transform:translate(-50%);font-size:10px;color:#fff;text-shadow:1px 1px 0 #000;white-space:nowrap;pointer-events:none}#time-display{position:fixed;top:8px;right:8px;font-size:16px;color:#fff;text-shadow:1px 1px 2px #000;z-index:100;display:none;padding:4px 10px;background:#0006;border-radius:4px}#time-display.active{display:block}#debug-info{position:fixed;top:8px;left:8px;font-size:12px;color:#fff;text-shadow:1px 1px 0 #000;z-index:100;display:none;line-height:1.4}#debug-info.active{display:block}#inventory-screen{position:fixed;top:0;left:0;width:100%;height:100%;background:#000000bf;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:200;pointer-events:auto}#inventory-screen.hidden{display:none}#inventory-grid{display:grid;grid-template-columns:repeat(9,50px);gap:2px;margin-bottom:20px}#chest-grid{display:grid;grid-template-columns:repeat(9,50px);gap:2px;margin-bottom:20px;background:#50505066;padding:10px;border:2px solid #555}.inv-slot{width:50px;height:50px;border:2px solid #555;background:#505050cc;display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;pointer-events:auto}.inv-slot:hover{border-color:#aaa}.inv-slot .block-icon{width:32px;height:32px;border-radius:2px}.inv-slot .slot-count{position:absolute;bottom:1px;right:3px;font-size:11px;text-shadow:1px 1px 0 #000}#crafting-area{display:flex;align-items:center;gap:15px;background:#3c3c3ce6;padding:15px;border:2px solid #666}#crafting-grid{display:grid;grid-template-columns:repeat(3,50px);gap:2px}#crafting-arrow{font-size:28px;color:#aaa}#crafting-output{width:56px;height:56px;border:2px solid #8a8;background:#506450cc;display:flex;align-items:center;justify-content:center;cursor:pointer;pointer-events:auto}#crafting-output .block-icon{width:36px;height:36px;border-radius:2px}.block-tooltip{position:fixed;background:#000000d9;color:#fff;padding:4px 8px;font-size:12px;border:1px solid #555;pointer-events:none;z-index:300}.furnace-screen{position:fixed;top:0;left:0;width:100%;height:100%;background:#000c;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:200;pointer-events:auto}.furnace-screen.hidden{display:none}.furnace-layout{display:flex;align-items:center;gap:12px;background:#3c3c3ce6;padding:20px;border:2px solid #666}.furnace-input,.furnace-fuel,.furnace-output{width:56px;height:56px;border:2px solid #555;background:#505050cc;display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative}.furnace-output{border-color:#8a8;background:#506450cc}.furnace-fire{font-size:24px;opacity:.3;transition:opacity .3s}.furnace-arrow{font-size:24px;color:#aaa;position:relative}.furnace-progress{position:absolute;bottom:0;left:0;height:3px;background:#4a4;width:0%;transition:width .2s}.armor-slots{display:flex;gap:4px;margin-bottom:10px}.armor-slot{width:44px;height:44px;border:2px solid #556;background:#3c3c50cc;display:flex;align-items:center;justify-content:center;font-size:20px}.minimap{position:fixed;top:40px;right:8px;width:84px;height:84px;border:2px solid rgba(255,255,255,.3);background:#00000080;z-index:100;pointer-events:none;overflow:hidden}.minimap canvas{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:80px;height:80px;image-rendering:pixelated;z-index:1}.coop-mode .minimap{display:none}.weather-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;pointer-events:none;z-index:49;display:none}.weather-overlay.rain{display:block;background:repeating-linear-gradient(transparent,transparent 4px,rgba(150,180,255,.08) 4px,rgba(150,180,255,.08) 5px);animation:rain-fall .3s linear infinite}.weather-overlay.snow{display:block;background:radial-gradient(1px 1px at 20px 30px,rgba(255,255,255,.6),transparent),radial-gradient(1px 1px at 40px 70px,rgba(255,255,255,.5),transparent),radial-gradient(1px 1px at 60px 15px,rgba(255,255,255,.4),transparent),radial-gradient(1px 1px at 80px 45px,rgba(255,255,255,.5),transparent);background-size:100px 100px;animation:snow-fall 3s linear infinite}@keyframes rain-fall{0%{background-position:0 0}to{background-position:0 20px}}@keyframes snow-fall{0%{background-position:0 0}to{background-position:20px 100px}}.break-progress{position:fixed;bottom:120px;left:50%;transform:translate(-50%);width:120px;height:6px;background:#0009;border:1px solid rgba(255,255,255,.3);z-index:100;pointer-events:none}.break-progress-fill{height:100%;width:0%;background:#4a4;transition:width .05s linear}.trade-screen{position:fixed;top:0;left:0;width:100%;height:100%;background:#000000d9;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:200;pointer-events:auto}.trade-screen.hidden{display:none}.trade-list{display:flex;flex-direction:column;gap:6px;max-height:320px;overflow-y:auto;padding:10px;background:#3c3c3ce6;border:2px solid #666;min-width:340px}.trade-row{display:flex;align-items:center;gap:10px;padding:6px 10px;background:#505050b3;border:1px solid #555;cursor:pointer;font-size:14px;color:#ddd}.trade-row:hover{background:#647864cc;border-color:#8a8}.trade-row.disabled{opacity:.4;cursor:not-allowed}.trade-arrow{color:#aaa;font-size:18px}#touch-controls{display:none;position:fixed;top:0;left:0;width:100%;height:100%;z-index:500;pointer-events:none}#touch-joystick-zone{touch-action:none;position:absolute;left:0;bottom:0;width:40%;height:55%;pointer-events:auto;z-index:501}#touch-joystick-base{display:none;position:absolute;width:100px;height:100px;margin-left:-50px;margin-top:-50px;border-radius:50%;background:#ffffff1f;border:2px solid rgba(255,255,255,.25)}#touch-joystick-thumb{position:absolute;top:50%;left:50%;width:44px;height:44px;margin-left:-22px;margin-top:-22px;border-radius:50%;background:#ffffff59;transition:none}#touch-look-zone{touch-action:none;position:absolute;right:0;top:0;width:55%;height:65%;pointer-events:auto;z-index:501}#touch-buttons{position:absolute;right:12px;bottom:80px;display:flex;flex-direction:column;gap:10px;pointer-events:auto;z-index:502;align-items:flex-end}.touch-btn{width:56px;height:56px;border-radius:50%;border:2px solid rgba(255,255,255,.35);background:#0006;color:#fff;font-size:22px;display:flex;align-items:center;justify-content:center;pointer-events:auto;-webkit-user-select:none;user-select:none;touch-action:manipulation}.touch-btn:active{background:#ffffff40}.touch-btn-small{width:44px;height:44px;font-size:18px}.touch-btn-tiny{width:38px;height:38px;font-size:16px;border-radius:8px}.touch-btn-attack{background:#b43c3c73}.touch-btn-place{background:#3c783c73}.touch-btn-sprint.active{background:#5096ff66;border-color:#5096ffb3}#touch-hotbar-arrows{position:absolute;bottom:10px;left:50%;transform:translate(-50%);display:flex;gap:180px;pointer-events:auto;z-index:502}.desktop-only{display:block}.mobile-only{display:none}@media (hover: none) and (pointer: coarse){.desktop-only{display:none!important}.mobile-only{display:block!important}}@media (max-width: 900px),(hover: none) and (pointer: coarse){.hotbar-slot{width:40px;height:40px}.hotbar-slot .block-icon{width:28px;height:28px}.hotbar-slot .slot-count{font-size:9px}.hotbar-slot .slot-number{font-size:7px}#hotbar{bottom:6px}#health-bar{bottom:52px;transform:translate(calc(-50% - 128px))}#hunger-bar{bottom:52px;transform:translate(calc(-50% + 128px))}.heart{width:11px;height:11px;font-size:11px}.hunger-icon{width:11px;height:11px;font-size:10px}#inventory-grid{grid-template-columns:repeat(9,38px)}.inv-slot{width:38px;height:38px}.inv-slot .block-icon{width:26px;height:26px}#crafting-grid{grid-template-columns:repeat(3,38px)}#crafting-area{gap:8px;padding:10px}#debug-info{font-size:10px}#time-display{font-size:13px;padding:2px 6px}.minimap{width:60px;height:60px;top:35px}.minimap canvas{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:56px;height:56px;z-index:1}.break-progress{bottom:90px;width:90px}}button:focus-visible,input:focus-visible{outline:3px solid #ffe08b;outline-offset:4px}[data-open-settings]{color:#f5f8f2;background:#172b24;border:1px solid #b4d8bf;border-radius:5px;padding:.55rem .8rem;font:inherit;cursor:pointer;pointer-events:auto}#in-game-settings{position:fixed;right:calc(6rem + env(safe-area-inset-right));top:max(.5rem,env(safe-area-inset-top));z-index:510}#play-settings{margin:auto;width:min(32rem,calc(100% - 1.75rem));max-height:calc(100dvh - 1.75rem);padding:clamp(1rem,4vw,1.75rem);border:1px solid #91aa9c;border-radius:12px;background:#13241f;color:#f4f8f4;font-family:system-ui,sans-serif;-webkit-user-select:text;user-select:text;overflow:auto}#play-settings::backdrop{background:#050c11c7}#play-settings form{display:grid;gap:.65rem}#play-settings label{display:flex;align-items:center;gap:.75rem;min-height:2.5rem;cursor:pointer}#play-settings input{accent-color:#a7e6a8}#play-settings input[type=checkbox]{width:1.2rem;height:1.2rem;flex:0 0 auto}#play-settings .settings-slider{align-items:stretch;flex-direction:column;margin-block:.35rem}#play-settings button{justify-self:start;min-height:2.75rem;padding:.4rem 1.5rem;background:#d6eccd;color:#102218;border:0;border-radius:5px;font:inherit;font-weight:700;cursor:pointer}.creature-cue{position:fixed;z-index:155;top:58%;left:50%;transform:translate(-50%);padding:.45rem .7rem;max-width:85vw;border:1px solid #a5b7ae;border-radius:5px;background:#121d20;color:#fff;text-align:center;font-size:.875rem}.coop-mode .creature-cue{max-width:44vw}.coop-mode #creature-cue{left:25%}#p2-creature-cue{left:75%}.high-contrast #crosshair,.high-contrast #p2-crosshair{color:#fff;font-size:32px;font-weight:700;text-shadow:-2px 0 #000,2px 0 #000,0 -2px #000,0 2px #000}.reduced-motion .weather-overlay{animation:none;opacity:.2}@media (max-height: 520px){#play-settings{padding:1rem}#play-settings form{gap:.35rem}#play-settings label{min-height:2.2rem}}#play-settings select{margin-inline-start:auto;min-height:2.5rem;padding-inline:.55rem;border:1px solid #91aa9c;border-radius:5px;color:inherit;background:#203a30;font:inherit}@font-face{font-family:Barlow Condensed;src:url(/fonts/barlow-condensed-latin-800-normal.woff2) format("woff2");font-style:normal;font-weight:800;font-display:swap}#start-screen{--launch-ink: #f5f7ee;--launch-muted: #d4dfd3;--launch-accent: #d8f989;position:fixed;top:0;right:0;bottom:0;left:0;height:100dvh;overflow:auto;z-index:1000;pointer-events:auto;color:var(--launch-ink);font-family:system-ui,sans-serif;background:#122721}#start-screen:before{content:"";position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;background:linear-gradient(180deg,rgb(7 19 17 / 52%),transparent 25%,transparent 57%,rgb(7 19 17 / 78%)),linear-gradient(90deg,#071311e8,#071311bf 28%,#07131129 70%,#07131124),url(/menu-landscape.webp) center 52% / cover no-repeat}.launch-layout{width:min(100%,1536px);min-height:100%;margin-inline:auto;padding:clamp(1.25rem,4vw,3.5rem) clamp(1.25rem,6vw,6rem) clamp(2rem,7vh,5rem);position:relative;display:flex;flex-direction:column}.launch-header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.launch-mark{width:40px;height:44px;flex:0 0 auto;background:#a7c875;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);position:relative}.launch-mark:before,.launch-mark:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.launch-mark:before{background:#dcf5a3;clip-path:polygon(50% 0,100% 25%,50% 50%,0 25%)}.launch-mark:after{background:#6c924d;clip-path:polygon(100% 25%,100% 75%,50% 100%,50% 50%)}.launch-tools{display:flex;gap:.55rem}#start-screen button,#start-screen input{min-height:46px;border:1px solid transparent;border-radius:6px;color:inherit;font:inherit}#start-screen button{cursor:pointer;font-size:.95rem;font-weight:700;transition:background-color .15s ease,border-color .15s ease,color .15s ease}#start-screen button:focus-visible,#start-screen input:focus-visible{outline:3px solid #ffdf8e;outline-offset:3px}#start-screen .launch-tools button{padding-inline:1rem;background:#0a1e18c2;border-color:#f1fbe747}#start-screen .launch-tools button:hover{background:#294439;border-color:#b7d298}.launch-body{flex:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(17rem,21rem);align-items:end;gap:clamp(2rem,5vw,5rem);padding-top:clamp(3.5rem,12vh,8rem);padding-bottom:clamp(.25rem,9vh,6rem)}.launch-intro{align-self:center}#game-title{font-family:Barlow Condensed,Impact,Arial Narrow,sans-serif;font-size:clamp(5rem,11.3vw,11rem);font-weight:800;line-height:.85;letter-spacing:-.025em;text-transform:uppercase;color:#f9f8e8;text-shadow:0 .05em 0 #101f17,0 .11em .28em rgb(4 12 9 / 55%)}#game-title span{color:var(--launch-accent)}.launch-intro p{margin-top:clamp(1.25rem,4vw,2rem);max-width:30rem;color:var(--launch-muted);font-size:clamp(1.05rem,1.8vw,1.35rem);line-height:1.55;text-shadow:0 2px 8px #061410}.launch-actions{display:flex;flex-wrap:wrap;gap:.85rem;margin-top:clamp(1.5rem,4vw,2.6rem)}#start-screen .launch-actions button{min-height:58px;padding-inline:clamp(1.05rem,2.6vw,1.65rem)}#start-screen .launch-primary{display:flex;justify-content:space-between;align-items:center;gap:2.65rem;color:#14210d;background:var(--launch-accent);border-color:#e9ffb7;box-shadow:0 4px #779c43,0 8px 24px #030e0870}#start-screen .launch-primary:hover{background:#eeffba}.launch-arrow{width:17px;height:14px;position:relative;background:linear-gradient(currentColor,currentColor) left center / 100% 2px no-repeat}.launch-arrow:after{content:"";position:absolute;top:3px;right:1px;width:8px;height:8px;border-top:2px solid;border-right:2px solid;transform:rotate(45deg)}#start-screen .launch-secondary{background:#182f26;border-color:#567465}#start-screen .launch-secondary:hover{background:#284a38;border-color:#c1dc9d}.launch-multiplayer{padding:clamp(1.1rem,2.6vw,1.6rem);border:1px solid #627b68;border-radius:12px;background:#091a15f0;box-shadow:0 16px 50px #030d0961}.launch-multiplayer h2{font-size:1.15rem;line-height:1.3;margin-bottom:1rem}#host-btn{width:100%;display:flex;align-items:center;justify-content:space-between;padding-inline:.85rem}#host-btn span{color:var(--launch-accent);font-size:1.25rem}.launch-join{margin-top:1.1rem;padding-top:1rem;border-top:1px solid #3d5647}.launch-join label{display:block;font-size:.82rem;font-weight:650;color:var(--launch-muted);margin-bottom:.55rem}.launch-join-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.55rem}#start-screen #join-code{width:100%;padding-inline:.7rem;background:#0c1914;border-color:#627b68}#join-code::placeholder{color:#aebbae}#start-screen #join-btn{padding-inline:1rem;color:#e8f2d7;background:#344e38;border-color:#78976d}#start-screen #join-btn:hover{background:#466445}.mp-status{margin-top:.75rem;color:var(--launch-muted);font-size:.85rem;line-height:1.4}.mp-status:empty{margin:0}.mp-status.error{color:#ffb2a9}.controls-guide{margin:auto;width:min(34rem,calc(100% - 2rem));max-height:calc(100dvh - 2rem);overflow:auto;padding:clamp(1rem,4vw,1.75rem);border:1px solid #91aa9c;border-radius:12px;background:#13241f;color:#f4f8f4;font-family:system-ui,sans-serif}.controls-guide::backdrop{background:#050c11c7}.controls-guide dl{margin-block:.85rem}.controls-guide dl div{display:grid;grid-template-columns:1fr 1fr;align-items:baseline;gap:.75rem;padding-block:.58rem;border-bottom:1px solid #3d5647;font-size:.9rem}.controls-guide dd,.controls-guide p{color:#d4e0d7}.controls-guide kbd{border-radius:4px;padding:.13rem .32rem;background:#314b3f;white-space:nowrap}.controls-guide button{min-height:44px;margin-top:1rem;padding:.4rem 1.5rem;background:#d6eccd;color:#102218;border:0;border-radius:5px;font:inherit;font-weight:700;cursor:pointer}@media (max-width: 960px){.launch-layout{padding-inline:clamp(1.15rem,4vw,2.5rem)}.launch-body{gap:1.75rem;grid-template-columns:minmax(0,1fr) minmax(15rem,18rem)}#game-title{font-size:clamp(4.2rem,10.5vw,6.4rem)}}@media (max-width: 730px){#start-screen:before{background:linear-gradient(180deg,#071311a8,#07131175 27%,#071311e3 74%),url(/menu-landscape.webp) 59% 48% / cover no-repeat}.launch-body{grid-template-columns:minmax(0,1fr);gap:2rem;align-content:center;padding-block:clamp(3rem,12vh,6rem) 0}#game-title{font-size:clamp(3.2rem,16vw,6rem)}.launch-multiplayer{width:min(100%,26rem)}.launch-intro p{max-width:23rem}}@media (hover: none) and (pointer: coarse){#coop-btn{display:none}}@media (max-height: 600px) and (min-width: 731px){.launch-body{padding-block:2.25rem 0}}@media (prefers-reduced-motion: reduce){#start-screen button{transition:none}}.reduced-motion #start-screen button{transition:none}
