*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden}body{color:#fff;text-shadow:2px 2px #222;-webkit-user-select:none;user-select:none;background:#78a9ef;font-family:ui-monospace,Courier New,monospace}button,select{font:inherit;color:#fff;text-shadow:2px 2px #222;cursor:pointer;touch-action:none;background:#777;border:2px solid #171717;border-radius:0;min-height:44px;padding:9px 12px;box-shadow:inset 2px 2px #aaa,inset -2px -2px #444}button:hover{background:#8996b0;box-shadow:inset 2px 2px #b1bfd8,inset -2px -2px #536179}button:active{background:#626d80;box-shadow:inset 2px 2px #485160}button:focus-visible,select:focus-visible{outline-offset:2px;outline:2px solid #fff}button:disabled{color:#999;cursor:default;background:#555}#world{touch-action:none;width:100%;height:100%;image-rendering:pixelated;outline:none;position:absolute;inset:0}#hud{pointer-events:none;position:absolute;inset:0}#hud button,#palette{pointer-events:auto}.top-left{top:calc(10px + env(safe-area-inset-top));left:calc(10px + env(safe-area-inset-left));font-size:11px;line-height:1.6;position:absolute}.edition{font-size:12px;display:block}.top-right{top:calc(8px + env(safe-area-inset-top));right:calc(8px + env(safe-area-inset-right));align-items:center;gap:10px;display:flex;position:absolute}#save-state{font-size:10px}#pause{background:#656565b3;width:44px;padding:0;font-size:22px}#crosshair{filter:drop-shadow(1px 1px #333);width:20px;height:20px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}#crosshair:before,#crosshair:after{content:"";background:#fff;position:absolute}#crosshair:before{width:2px;height:18px;top:1px;left:9px}#crosshair:after{width:18px;height:2px;top:9px;left:1px}#target-label{white-space:nowrap;font-size:11px;position:absolute;top:calc(50% + 23px);left:50%;transform:translate(-50%)}.hotbar-wrap{bottom:calc(5px + env(safe-area-inset-bottom));position:absolute;left:50%;transform:translate(-50%)}#material-name{text-align:center;text-shadow:2px 2px #222;margin-bottom:13px;font-size:15px}#palette{background:#383838ba;border:2px solid #161616;gap:2px;padding:3px;display:flex;box-shadow:inset 1px 1px #bcbcbc}.slot{background:#69696994;border:2px solid #252525;width:44px;height:44px;min-height:44px;padding:2px;position:relative;box-shadow:inset 2px 2px #999,inset -2px -2px #444}.slot[aria-pressed=true]{outline-offset:0;z-index:1;background:#909090a3;border-color:#fff;outline:2px solid #dedede}.slot img{object-fit:contain;width:100%;height:100%;image-rendering:pixelated;pointer-events:none;display:block}.slot small{color:#ccc;font-size:9px;position:absolute;top:1px;left:2px}.overlay{z-index:10;background:#0009;justify-content:center;align-items:center;padding:20px;display:flex;position:absolute;inset:0;overflow:auto}.menu-card{text-align:center;width:min(430px,100%);max-height:100%;padding:16px;overflow:auto}.menu-card h1{letter-spacing:1px;color:#dadada;text-shadow:3px 3px #444,5px 5px #111;margin:0 0 3px;font-family:Impact,Arial Black,sans-serif;font-size:clamp(38px,7vw,62px)}.subtitle{color:#ffed6f;margin:6px 0 28px;font-size:13px}.wide{width:100%;margin:9px 0;display:block}.menu-grid{grid-template-columns:1fr 1fr;gap:8px;margin:10px 0;display:grid}.settings{justify-content:space-between;gap:12px;margin:18px 0;font-size:13px;display:flex}.settings label{align-items:center;gap:8px;display:flex}.settings select{max-width:110px;min-height:38px;padding:6px}.menu-note{color:#ddd;margin-top:22px;font-size:10px}.help-card{background:#30291fde;border:3px solid #181818;max-width:560px}.help-card p{text-align:left;font-size:13px;line-height:1.8}.help-card h2{margin:8px 0 22px;font-size:22px}#toast{opacity:0;pointer-events:none;z-index:30;text-align:center;background:#111b;max-width:90vw;padding:8px 14px;font-size:12px;position:absolute;top:21%;left:50%;transform:translate(-50%)}#toast.visible{opacity:1}#touch-controls{display:none}.touch #touch-controls{display:block}#joystick{--stick-size:144px;--thumb-size:56px;left:calc(20px + env(safe-area-inset-left));bottom:calc(112px + env(safe-area-inset-bottom));width:var(--stick-size);height:var(--stick-size);pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;cursor:grab;background:#a0ab842e;border:4px solid #1c2115a6;position:absolute;box-shadow:inset 3px 3px #e0e7c53d,inset -3px -3px #22291b3d}#joystick [data-joystick-thumb]{width:var(--thumb-size);height:var(--thumb-size);transform:translate(-50%,-50%) translate(var(--stick-x,0px),var(--stick-y,0px));pointer-events:none;background:#c6ceb15c;border:3px solid #20271bab;position:absolute;top:50%;left:50%;box-shadow:inset 3px 3px #edf0d74d,inset -3px -3px #30382638}#joystick.is-active{cursor:grabbing;background:#a0ab8440}#joystick.is-active [data-joystick-thumb]{background:#d0d8bc80}.sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.paused #hud{visibility:hidden}[hidden]{display:none!important}@media (width<=520px){.slot{width:calc(11.1111vw - 3.77778px);height:40px;min-height:40px;padding:0}#palette{gap:1px}.slot small{display:none}#material-name{margin-bottom:12px;font-size:13px}.top-left{max-width:55vw;font-size:9px}.edition{font-size:10px}#save-state{max-width:95px;font-size:9px}#pause{width:40px;min-height:40px}.menu-card{padding:7px}.subtitle{margin-bottom:20px}.touch-actions{right:12px}#joystick{--stick-size:128px;--thumb-size:50px;left:calc(16px + env(safe-area-inset-left))}}@media (height<=500px){.menu-card h1{font-size:34px}.menu-card{width:390px;padding:4px}.subtitle{margin:3px 0 10px}.wide{margin:6px 0}.settings{margin:8px 0}.menu-note{margin:8px}.menu-grid{margin:6px 0}.menu-card button{min-height:36px;padding:6px}.hotbar-wrap{bottom:3px}#material-name{margin-bottom:6px}#joystick{--stick-size:112px;--thumb-size:44px;bottom:calc(84px + env(safe-area-inset-bottom))}.touch-actions{bottom:80px}.top-left{font-size:9px}}.item-count{text-shadow:2px 2px #222;pointer-events:none;font-size:13px;position:absolute;bottom:1px;right:2px}.durability{background:#76cf43;height:3px;position:absolute;bottom:2px;left:10%;box-shadow:0 1px #111}.inventory-card{color:#252525;width:min(560px,100%);max-height:100%;text-shadow:none;background:#c6c6c6;border:3px solid #161616;padding:18px;overflow:auto;box-shadow:inset 3px 3px #fff,inset -3px -3px #555}.inventory-card header{justify-content:space-between;align-items:center;gap:10px;display:flex}.inventory-card h2{margin:4px 0;font-size:20px}.inventory-card h3{margin:8px 0;font-size:14px}.inventory-grid{grid-template-columns:repeat(9,minmax(0,1fr));gap:3px;display:grid}.inventory-grid .slot{aspect-ratio:1;background:#8b8b8b;width:100%;min-width:0;height:auto;min-height:0;box-shadow:inset 2px 2px #373737,inset -2px -2px #eee}.inventory-grid .slot[aria-pressed=true]{border-color:#ffeb84;outline-color:#ffeb84}#bag-hotbar{margin:10px 0}.inventory-card p{font-size:12px;line-height:1.5}.inventory-actions{justify-content:space-between;align-items:center;gap:10px;font-size:13px;display:flex}.inventory-actions input{vertical-align:middle;width:18px;height:18px}.craft-area{align-items:center;gap:25px;padding:10px 0;display:flex}#craft-grid{gap:3px;display:grid}.recipe-cell{background:#8b8b8b;height:38px;padding:3px;box-shadow:inset 2px 2px #373737,inset -2px -2px #eee}.recipe-cell img{object-fit:contain;width:100%;height:100%;image-rendering:pixelated}.craft-result{flex:1;font-size:14px}.craft-result p{margin:5px 0}#recipes{flex-wrap:wrap;gap:4px;margin:8px 0;display:flex}#recipes button{min-height:36px;padding:5px 8px;font-size:12px}#recipes button[aria-pressed=true]{background:#586c82;outline:2px solid #fff}summary{cursor:pointer;padding:8px 0;font-size:13px}#creative-catalog{flex-wrap:wrap;gap:5px;display:flex}#vitals{white-space:nowrap;justify-content:space-between;margin-bottom:8px;font-size:13px;font-weight:700;display:flex}#health{color:#f16a60}#hunger{color:#dfb46d}#mining-progress{accent-color:#eee;width:100px;height:7px;position:absolute;top:calc(50% + 46px);left:50%;transform:translate(-50%)}.new-mode{justify-content:space-between;align-items:center;margin-top:14px;font-size:13px;display:flex}#bag-open{padding:7px;font-size:12px}#hurt-flash{pointer-events:none;opacity:0;z-index:5;transition:opacity .15s;position:absolute;inset:0;box-shadow:inset 0 0 90px #d11}#hurt-flash.active{opacity:.8}#death{background:#550a0abc}#inventory-hint{min-height:2.7em}@media (width<=520px){.inventory-card{padding:10px}.inventory-card h2{font-size:16px}.inventory-card header button{font-size:12px}.inventory-grid{gap:2px}.inventory-grid .slot{padding:1px}.item-count{font-size:11px}.craft-area{gap:12px}.craft-result{font-size:12px}#vitals{font-size:11px}#save-state{display:none}.top-right{gap:5px}.overlay{padding:10px}#creative-catalog .slot{width:38px}.inventory-card summary{font-size:12px}}.touch-actions{right:calc(16px + env(safe-area-inset-right));bottom:calc(110px + env(safe-area-inset-bottom));grid-template-rows:repeat(2,58px);grid-template-columns:repeat(2,58px);gap:18px 20px;display:grid;position:absolute}.touch-actions button{touch-action:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;background:#bec6b254;border:3px solid #2630239c;width:58px;height:58px;min-height:58px;padding:6px;box-shadow:inset 3px 3px #edf0dd4d,inset -3px -3px #434d383d}.touch-actions button svg{fill:#263322b8;pointer-events:none;shape-rendering:crispedges;width:100%;height:100%;display:block}.touch-actions #sprint{grid-area:1/1/3;align-self:center}.touch-actions #jump{grid-area:1/2}.touch-actions #crouch{grid-area:2/2}.touch-actions button.is-held,.touch-actions button[aria-pressed=true]{background:#d8e0b991;border-color:#eef1d6ab;box-shadow:inset 3px 3px #454e364d,inset -3px -3px #f3f5df4d}.touch-actions .flight-icon{display:none}.touch-actions.is-flying .flight-icon{display:block}@media (width<=520px){.touch-actions{right:calc(12px + env(safe-area-inset-right))}}@media (height<=500px){.touch-actions{bottom:calc(84px + env(safe-area-inset-bottom));grid-template-rows:repeat(2,52px);grid-template-columns:repeat(2,52px);gap:12px 16px}.touch-actions button{width:52px;height:52px;min-height:52px}}.furnace-slots{justify-content:center;gap:30px;margin:16px 0;display:flex}.furnace-slots .slot{width:56px;height:56px}.furnace-slots p{margin:5px 0}#furnace-screen progress{accent-color:#d99432;width:140px}#furnace-inventory{margin-top:12px}
