*{box-sizing:border-box}html,body{color:#f2f2f2;background:#0f1218;height:100%;margin:0;font-family:system-ui,-apple-system,Segoe UI,sans-serif;overflow:hidden}[hidden]{display:none!important}#game{touch-action:none;width:100vw;height:100vh;display:block;position:fixed;inset:0}.panel{background:#10141cf0;border:2px solid #2c3444;border-radius:8px;flex-direction:column;gap:12px;width:min(320px,100vw - 32px);padding:20px;display:flex;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.panel h1{margin:0 0 4px;font-size:22px}.panel p{margin:0}.panel label{color:#aab3c2;flex-direction:column;gap:4px;font-size:13px;display:flex}.panel input{font:inherit;color:#fff;background:#0c0f15;border:1px solid #3a4456;border-radius:6px;padding:8px 10px;font-size:15px}#world{text-transform:uppercase}#entry{padding:max(6vh, env(safe-area-inset-top)) 16px 24px;position:fixed;inset:0;overflow-y:auto}#home{background:#10202beb;border:2px solid #3f6b82;border-radius:8px;width:min(640px,100%);margin:0 auto;padding:14px 18px 18px;box-shadow:0 6px #00000040}#home-head{align-items:center;gap:12px;padding:4px 0 16px;display:flex}#home-head h1{flex:1;margin:0;font-size:24px}#home-head .who{color:#9cb4c2;font-size:14px}#home-head .who b{color:#fff}#home-head button{padding:6px 12px}#entry-form{gap:8px;display:flex}#entry-form input{min-width:0;font:inherit;color:#fff;text-transform:uppercase;background:#0c161d;border:1px solid #3a5a6c;border-radius:6px;flex:1;padding:10px 12px;font-size:17px}#entry-form button{background:#3fae5a;padding:10px 22px}#entry-error{min-height:1.3em;margin:6px auto 4px}#entry h2{color:#cfe0ea;align-items:baseline;gap:8px;margin:14px auto 8px;font-size:15px;display:flex}#online{color:#8fd9a0;font-size:13px;font-weight:400}.world-list{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;display:grid}.world-card{text-align:left;background:#16303f;border:1px solid #2b5063;border-radius:6px;align-items:center;gap:8px;padding:10px 12px;font-weight:700;display:flex}.world-card:hover{background:#1d3d50;border-color:#3f6b82}.world-card .name{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.world-card .count{color:#8fd9a0;align-items:center;gap:5px;font-size:13px;font-weight:600;display:flex}.world-card .count:before{content:"";background:#3fdc6a;border-radius:50%;width:7px;height:7px}.world-list .empty{color:#7f97a5;grid-column:1/-1;padding:4px 0;font-size:14px}button{font:inherit;color:#fff;cursor:pointer;background:#3f7fd9;border:0;border-radius:6px;padding:9px;font-weight:600}button.quiet{background:#2a3140}.error{color:#ff8a7a;min-height:1em;font-size:13px}#hud{pointer-events:none;position:fixed;inset:0}#top{pointer-events:auto;gap:6px;display:flex;position:absolute;top:12px;left:12px}#world-name,#exit,#sound{background:#00000073;border-radius:6px;padding:6px 10px;font-size:14px;font-weight:700}#hp{background:#00000073;border-radius:6px;align-self:center;width:120px;height:12px;padding:2px}#hp-fill{background:#4cc75a;border-radius:4px;width:100%;height:100%;transition:width .2s}#hp-fill.low{background:#e5533d}#gems{background:#00000073;border-radius:6px;align-self:center;align-items:center;gap:4px;padding:3px 9px 3px 5px;font-size:14px;display:flex}#gems img{width:20px;height:20px;image-rendering:pixelated}.who{color:#aab3c2;font-size:14px}.who b{color:#fff}.slot b{color:#fff;text-shadow:0 1px #000,1px 0 #000,-1px 0 #000,0 -1px #000;font-size:11px;position:absolute;bottom:1px;right:3px}#store-btn{background:#c48a1c;border-radius:6px;padding:6px 12px;font-size:14px;font-weight:700}#store{pointer-events:auto;background:#10202b;border:2px solid #3f6b82;border-radius:8px;width:min(480px,100vw - 24px);max-height:calc(100vh - 140px);position:absolute;top:50%;left:50%;overflow-y:auto;transform:translate(-50%,-50%)}#store-head{background:#16303f;border-bottom:1px solid #2b5063;align-items:center;gap:10px;padding:10px 12px;font-size:16px;display:flex}#store-head b{flex:1}#store-gems{align-items:center;gap:4px;font-weight:700;display:flex}#store-gems img,.price img{width:18px;height:18px;image-rendering:pixelated}#store-head button{padding:5px 12px}.pack{border-bottom:1px solid #1f3b4b;align-items:center;gap:12px;padding:10px 12px;display:flex}.pack>img{width:48px;height:48px;image-rendering:pixelated;flex:none}.pack div{flex:1;min-width:0}.pack h3{margin:0 0 2px;font-size:15px}.pack p{color:#9cb4c2;margin:0;font-size:13px}.pack .price{white-space:nowrap;align-items:center;gap:4px;font-weight:700;display:flex}.pack button{background:#3fae5a;padding:7px 16px}#panel{pointer-events:auto;background:#10202b;border:2px solid #3f6b82;border-radius:8px;width:min(380px,100vw - 24px);max-height:calc(100vh - 140px);position:absolute;top:50%;left:50%;overflow-y:auto;transform:translate(-50%,-50%)}#panel-head{background:#16303f;border-bottom:1px solid #2b5063;align-items:center;gap:10px;padding:10px 12px;font-size:16px;display:flex}#panel-head b{flex:1}#panel-head button{padding:5px 12px}#panel-body{flex-direction:column;gap:10px;padding:12px;font-size:14px;display:flex}#panel-body p{color:#cfe0ea;margin:0}#panel-body .muted{color:#8fa6b3}#panel-body h4{color:#9cb4c2;margin:4px 0 0;font-size:13px;font-weight:600}#panel-body label.check{cursor:pointer;align-items:center;gap:8px;display:flex}#panel-body label.check input{width:18px;height:18px}#panel-body .names{flex-direction:column;gap:4px;display:flex}#panel-body .names div{background:#16303f;border-radius:5px;align-items:center;gap:8px;padding:4px 8px;display:flex}#panel-body .names span{flex:1;font-weight:600}#panel-body .names button{padding:3px 10px;font-size:12px}#panel-body form{gap:6px;display:flex}#panel-body form input{min-width:0;font:inherit;color:#fff;background:#0c161d;border:1px solid #3a5a6c;border-radius:5px;flex:1;padding:6px 8px}#panel-body form button,#panel-body>button{padding:7px 14px}#trade{pointer-events:auto;background:#10202b;border:2px solid #3f6b82;border-radius:8px;width:min(560px,100vw - 24px);max-height:calc(100vh - 120px);position:absolute;top:50%;left:50%;overflow-y:auto;transform:translate(-50%,-50%)}#trade-head{background:#16303f;border-bottom:1px solid #2b5063;align-items:center;gap:10px;padding:10px 12px;font-size:16px;display:flex}#trade-head b{flex:1}#trade-head button{padding:5px 12px}#trade-body{flex-direction:column;gap:10px;padding:12px;font-size:14px;display:flex}#trade-body .sides{grid-template-columns:1fr 1fr;gap:10px;display:grid}#trade-body .side{background:#16303f;border:2px solid #2b5063;border-radius:6px;flex-direction:column;gap:6px;min-height:120px;padding:8px;display:flex}#trade-body .side.ok{border-color:#3fae5a}#trade-body .side h4{color:#cfe0ea;justify-content:space-between;gap:6px;margin:0;font-size:13px;display:flex}#trade-body .side h4 em{color:#8fd9a0;font-style:normal}#trade-body .slots{flex-wrap:wrap;gap:4px;display:flex}#trade-body .slot{width:40px;height:40px;padding:3px}#trade-body .slot img{width:32px;height:32px}#trade-body .gems{align-items:center;gap:6px;font-weight:700;display:flex}#trade-body .gems img{width:18px;height:18px;image-rendering:pixelated}#trade-body .gems input{width:90px;font:inherit;color:#fff;background:#0c161d;border:1px solid #3a5a6c;border-radius:5px;padding:4px 6px}#trade-body h5{color:#9cb4c2;margin:4px 0 0;font-size:13px;font-weight:600}#trade-body .pick{align-items:center;gap:8px;display:flex}#trade-body .pick img{width:32px;height:32px;image-rendering:pixelated}#trade-body .pick span{flex:1}#trade-body .pick input{width:70px;font:inherit;color:#fff;background:#0c161d;border:1px solid #3a5a6c;border-radius:5px;padding:4px 6px}#trade-body .pick button,#trade-body>button{padding:7px 14px}#trade-body>button.accept{background:#3fae5a}#trade-body .muted{color:#8fa6b3;margin:0}#trade-body input{-webkit-user-select:text;user-select:text}#creative{pointer-events:auto;background:#10202b;border:2px solid #3f6b82;border-radius:8px;flex-direction:column;width:min(560px,100vw - 24px);max-height:calc(100vh - 140px);display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}#creative-head{background:#16303f;border-bottom:1px solid #2b5063;align-items:center;gap:10px;padding:10px 12px;font-size:16px;display:flex}#creative-head b{flex:1}#creative-head input{width:160px;padding:5px 8px}#creative-head button{padding:5px 12px}#creative-grid{flex-wrap:wrap;gap:4px;padding:10px 12px;display:flex;overflow-y:auto}#creative-grid .slot[hidden]{display:none}#creative-msg{color:#9cb4c2;border-top:1px solid #1f3b4b;padding:8px 12px;font-size:13px}#store-msg{min-height:1.2em;padding:10px 12px;font-size:14px}#store-msg.bad{color:#ff8a7a}#store-msg .got{align-items:center;gap:2px;margin:2px 8px 2px 0;display:inline-flex}#store-msg .got img{width:20px;height:20px;image-rendering:pixelated}#update{z-index:20;color:#2a2108;background:#f0c94a;border-radius:8px;align-items:center;gap:10px;padding:8px 10px 8px 14px;font-size:14px;font-weight:600;display:flex;position:fixed;top:56px;left:50%;transform:translate(-50%);box-shadow:0 3px #00000040}#update button{color:#fff;background:#2a2108;padding:6px 14px}#keys{color:#ffffffbf;text-shadow:0 1px 2px #000;font-size:12px;position:absolute;top:14px;right:12px}#dock{pointer-events:auto;flex-direction:column;align-items:center;display:flex;position:absolute;bottom:0;left:50%;transform:translate(-50%)}#inv-panel{background:#10202b;border:0 solid #3f6b82;border-radius:8px 8px 0 0;width:min(452px,100vw);max-height:0;transition:max-height .18s ease-out;overflow:hidden}#dock.open #inv-panel{border-width:2px 2px 0;max-height:420px}#inv-grid{grid-template-columns:repeat(8,48px);justify-content:center;gap:4px;max-height:268px;padding:8px;display:grid;overflow-y:auto}#inv-bar,#inv-ask{background:#16303f;border-bottom:1px solid #2b5063;align-items:center;gap:8px;padding:8px 10px;font-size:14px;display:flex}#inv-sel-icon{width:28px;height:28px;image-rendering:pixelated}#inv-sel,#inv-ask-text{color:#e3edf3;flex:1;font-weight:600}#inv-bar button,#inv-ask button{padding:6px 14px}#inv-ask-n{width:72px;font:inherit;color:#fff;background:#0b1820;border:1px solid #3f6b82;border-radius:6px;padding:5px 8px}button.danger{background:#c2412f}button:disabled{opacity:.35;cursor:default}#inv-handle{cursor:ns-resize;touch-action:none;background:#16303f;border:2px solid #3f6b82;border-bottom:0;border-radius:10px 10px 0 0;justify-content:center;align-items:center;width:84px;height:18px;margin-top:6px;padding:0;display:flex}#inv-handle span{background:#9cc4d8;border-radius:2px;width:32px;height:3px}#hotbar{background:#10202bd9;border:2px solid #3f6b82;border-radius:8px;gap:4px;padding:4px;display:flex}#dock:not(.open) #inv-handle{margin-bottom:0}.slot{background:#18303f;border:2px solid #3f6b82;border-radius:4px;width:48px;height:48px;padding:6px;position:relative;box-shadow:inset 0 0 0 2px #0f2230}.slot.empty{cursor:default}.slot img{width:32px;height:32px;image-rendering:pixelated;display:block}.slot.on{border-color:#ffd25a;box-shadow:inset 0 0 0 2px #7a5a10,0 0 6px #ffd25a99}.slot span{color:#9cc4d8;font-size:10px;position:absolute;top:1px;left:4px}.slot.worn:after{content:"";background:#4cc75a;border-radius:50%;width:9px;height:9px;position:absolute;top:3px;right:3px;box-shadow:0 0 0 1px #0f2230}#inv-wear{background:#3fae5a}#chat{width:min(420px,100vw - 24px);position:absolute;bottom:100px;left:12px}#hud:has(#dock.open) #chat{bottom:440px}#chat-log{text-shadow:0 1px 2px #000;flex-direction:column;gap:2px;font-size:14px;display:flex}#chat-log .sys{color:#9fc4ff}#chat-log b{color:#ffd25a;font-weight:600}#chat-input{pointer-events:auto;width:100%;font:inherit;color:#fff;background:#080a0ed9;border:1px solid #3a4456;border-radius:6px;margin-top:6px;padding:7px 9px;font-size:14px}@media (width<=1100px){#keys{display:none}}html,body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}body{touch-action:none;overscroll-behavior:none}#panel-body input,.panel input,#chat-input,#inv-ask-n{-webkit-user-select:text;user-select:text;font-size:16px}.touch-only{display:none!important}body.touch .touch-only{display:revert!important}body.touch #touch{display:block!important}#touch{pointer-events:none;position:absolute;inset:0}#touch-move,#touch-act{bottom:max(16px, env(safe-area-inset-bottom));pointer-events:auto;gap:12px;display:flex;position:absolute}#touch-move{left:max(16px, env(safe-area-inset-left))}#touch-act{right:max(16px, env(safe-area-inset-right));align-items:flex-end}#touch button{touch-action:none;background:#10202b8c;border:2px solid #9cc4d899;border-radius:50%;justify-content:center;align-items:center;width:68px;height:68px;padding:0;display:flex}#touch button.down{background:#ffd25a59;border-color:#ffd25a}#t-jump{margin-bottom:44px}#t-punch img{width:36px;height:36px;image-rendering:pixelated}.arrow{border:13px solid #0000;width:0;height:0}.arrow.left{border-right:18px solid #e3edf3;margin-right:12px}.arrow.right{border-left:18px solid #e3edf3;margin-left:12px}.arrow.up{border-bottom:18px solid #e3edf3;margin-bottom:12px}#rotate{text-align:center;pointer-events:auto;z-index:10;background:#0a1218eb;justify-content:center;align-items:center;padding:24px;font-size:18px;font-weight:700;position:absolute;inset:0;display:none!important}@media (orientation:portrait) and (width<=700px){body.touch #rotate{display:flex!important}}body.touch #top{top:max(8px, env(safe-area-inset-top));left:max(8px, env(safe-area-inset-left));flex-wrap:wrap;gap:4px;max-width:calc(100vw - 16px)}body.touch #chat{width:min(360px,45vw);top:52px;bottom:auto}body.touch #hud:has(#dock.open) #chat{top:52px;bottom:auto}body.touch #keys{display:none}@media (height<=500px){#top button,#world-name{padding:5px 8px;font-size:13px}#hp{width:80px}.slot{width:42px;height:42px;padding:3px}.slot img{width:32px;height:32px}#inv-grid{grid-template-columns:repeat(8,42px);max-height:44vh}#dock.open #inv-panel{max-height:70vh}#inv-panel{width:min(400px,100vw)}#touch button{width:58px;height:58px}#t-jump{margin-bottom:36px}}
