:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-family:Segoe UI,system-ui,sans-serif}*{box-sizing:border-box}html,body{background:#0b1220;width:100%;height:100%;margin:0;overflow:hidden}#renderCanvas{touch-action:none;outline:none;width:100%;height:100%;display:block}#hud{color:#e8eefc;pointer-events:none;z-index:2;background:#080e1cb8;border:1px solid #ffffff1f;max-width:min(420px,100vw - 24px);margin:12px;padding:10px 12px;font-size:13px;line-height:1.4;position:fixed;inset:0 auto auto 0}#hud-auth{pointer-events:auto;flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}#hud input,#hud button{font:inherit;color:#e8eefc;background:#ffffff14;border:1px solid #ffffff2e;border-radius:6px;padding:6px 8px}#hud button{cursor:pointer}#hud button:disabled{opacity:.45;cursor:default}#hud-hint{opacity:.7;margin-top:4px}#hud-gather{color:#f0c674;min-height:1.2em;margin-top:6px;font-weight:600}#auth-status{opacity:.85;flex-basis:100%;min-height:1.2em}#char-panel{z-index:20;pointer-events:auto;background:#0408108c;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}#char-panel.hidden{display:none}.char-panel-inner{color:#e8eefc;background:#121a2b;border:1px solid #ffffff24;border-radius:10px;width:min(560px,100vw - 24px);max-height:min(80vh,640px);overflow:auto;box-shadow:0 12px 40px #00000073}.char-panel-head{border-bottom:1px solid #ffffff1a;justify-content:space-between;align-items:center;padding:12px 14px;display:flex}.char-panel-head button{font:inherit;color:#e8eefc;cursor:pointer;background:#ffffff14;border:1px solid #ffffff2e;border-radius:6px;padding:6px 10px}.char-panel-body{grid-template-columns:160px 1fr;gap:14px;padding:14px;display:grid}.char-equip,.char-bag{min-width:0}.char-equip h3,.char-bag h3{opacity:.9;margin:0 0 10px;font-size:13px;font-weight:600}.equip-slot{text-align:left;width:100%;font:inherit;color:#e8eefc;cursor:pointer;background:#ffffff0d;border:1px solid #ffffff24;border-radius:8px;flex-direction:column;gap:4px;margin-bottom:8px;padding:10px;display:flex}.equip-slot:hover{background:#ffffff1a}.equip-slot .slot-label{opacity:.65;font-size:11px}.equip-slot .slot-item{font-size:13px}.char-hint{opacity:.55;margin:8px 0 0;font-size:11px}.bag-grid{grid-template-columns:repeat(6,1fr);gap:6px;display:grid}.bag-slot{aspect-ratio:1;color:#e8eefc;font:inherit;cursor:default;background:#00000040;border:1px solid #ffffff1f;border-radius:6px;flex-direction:column;justify-content:center;align-items:center;gap:2px;padding:4px;font-size:11px;display:flex}.bag-slot.filled{cursor:pointer;background:#e08a3c1f;border-color:#e08a3c59}.bag-slot.filled:hover{background:#e08a3c38}.bag-slot .bag-icon{letter-spacing:.02em;font-size:12px;font-weight:700}.bag-slot .bag-qty{opacity:.8;font-size:10px}@media (width<=560px){.char-panel-body{grid-template-columns:1fr}.bag-grid{grid-template-columns:repeat(4,1fr)}}#view-modes{z-index:2;gap:6px;display:flex;position:fixed;top:12px;right:12px}#view-modes button{font:inherit;color:#e8eefc;cursor:pointer;background:#080e1cc7;border:1px solid #ffffff2e;border-radius:6px;padding:8px 12px;font-size:13px}#view-modes button:hover{background:#ffffff1f}#view-modes button.active{background:#e08a3c40;border-color:#e08a3ccc}#touch-zone{touch-action:none;z-index:2;background:#ffffff0f;border:1px solid #fff3;border-radius:999px;width:120px;height:120px;display:none;position:fixed;bottom:16px;left:16px}@media (pointer:coarse){#touch-zone{display:block}}#world-view{z-index:5;color:#e8eefc;background:radial-gradient(at 30% 20%,#28463259,#0000 50%),#0b1220;flex-direction:column;padding:16px;display:flex;position:fixed;inset:0;overflow:auto}#world-view.hidden,#chunk-view.hidden{display:none!important}.world-header{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;display:flex}.world-header a{color:#9ec5ff;white-space:nowrap;text-decoration:none}.world-auth{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:16px;display:flex}.world-auth input{font:inherit;color:#e8eefc;background:#ffffff14;border:1px solid #ffffff2e;border-radius:6px;padding:8px 10px}.world-grid{aspect-ratio:1;gap:6px;width:min(720px,100%);max-height:min(70vh,720px);margin:0 auto;display:grid}.world-grid .cell{color:#9aa3b5;font:inherit;cursor:pointer;background:#ffffff0a;border:1px solid #ffffff24;border-radius:6px;justify-content:center;align-items:center;font-size:11px;transition:background .12s,border-color .12s,transform 80ms;display:flex}.world-grid .cell.filled{color:#eaf7ee;background:#388c508c;border-color:#78c88c8c;font-weight:600}.world-grid .cell.adjacent:not(.filled){color:#d8b896;background:#e08a3c1f;border-style:dashed;border-color:#e08a3c59}.world-grid .cell:hover{border-color:#ffffff73;transform:scale(1.03)}.world-grid .cell.origin{box-shadow:inset 0 0 0 2px #ffdc78b3}.world-status{text-align:center;opacity:.75;margin-top:14px}#chunk-view{position:fixed;inset:0}body.editor-body #editor-panel{color:#e8eefc;z-index:3;pointer-events:auto;background:#080e1ceb;border-left:1px solid #ffffff1f;width:min(320px,92vw);height:100%;padding:14px;font-size:13px;position:fixed;top:0;right:0;overflow:auto}#editor-panel header{justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;display:flex}#editor-panel header a{color:#9ec5ff;text-decoration:none}#editor-panel section{border-bottom:1px solid #ffffff14;margin-bottom:14px;padding-bottom:12px}#editor-panel label{opacity:.85;margin-bottom:6px;display:block}#editor-panel .btn-row{flex-wrap:wrap;gap:6px;display:flex}#editor-panel button,.world-auth button{font:inherit;color:#e8eefc;cursor:pointer;background:#ffffff14;border:1px solid #ffffff2e;border-radius:6px;padding:6px 10px}#editor-panel button.active{background:#e08a3c40;border-color:#e08a3ccc}#editor-panel button.danger{color:#f0b4b4;border-color:#c846468c}#editor-panel button.danger:hover{background:#c8464647}#editor-panel button:hover,.world-auth button:hover{background:#ffffff24}#editor-panel .hint,.world-header .hint,.world-auth .hint{opacity:.65;margin:6px 0 0;font-size:12px;line-height:1.35}#editor-panel .hidden{display:none}#editor-panel input[type=range]{width:100%}#editor-panel input[type=text],#editor-panel input[type=password],#editor-panel select{font:inherit;color:#e8eefc;background:#ffffff14;border:1px solid #ffffff2e;border-radius:6px;flex:1;min-width:0;padding:6px 8px}body.editor-body #chunk-view:not(.hidden) #renderCanvas{width:calc(100% - min(320px,92vw));height:100%}@media (width<=720px){body.editor-body #chunk-view:not(.hidden) #renderCanvas{width:100%;height:55%}body.editor-body #editor-panel{border-top:1px solid #ffffff1f;border-left:none;width:100%;height:45%;top:auto;bottom:0}}
