*{box-sizing:border-box}:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#0b111b;color:#e7edf5}body{margin:0;min-width:320px;min-height:100vh;overflow:hidden}button,input{font:inherit}button{color:inherit;cursor:pointer}#app{height:100dvh;display:flex;flex-direction:column}.topbar{height:64px;flex:0 0 64px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid #263244;background:#101927;gap:12px}.brand{display:flex;align-items:center;gap:11px;min-width:0}.brand-mark{width:34px;height:34px;display:grid;place-items:center;border:1px solid #7693b4;border-radius:9px;color:#d7e8ff;font-weight:800}.brand strong{display:block;font-size:12px;letter-spacing:.14em}.brand small{display:block;margin-top:3px;color:#8293a9;font-size:9px;letter-spacing:.12em}.top-actions{display:flex;align-items:center;gap:8px}.status{color:#a7b6c8;font-size:11px;margin-right:8px;white-space:nowrap}.status i{display:inline-block;width:7px;height:7px;background:#6bc49a;border-radius:50%;margin-right:6px}button{border:1px solid #34445a;background:#182436;border-radius:7px;padding:9px 12px;font-size:11px}button:active{transform:translateY(1px)}button.primary{background:#d7e6f8;color:#142033;border-color:#d7e6f8;font-weight:700}.workspace{display:grid;grid-template-columns:220px minmax(0,1fr) 250px;min-height:0;flex:1}.panel{background:#111b29;min-width:0;display:flex;flex-direction:column}.hierarchy{border-right:1px solid #263244}.inspector{border-left:1px solid #263244}.panel-heading{height:48px;flex:0 0 48px;padding:0 13px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #263244;color:#a8b7c9;font-size:10px;font-weight:700;letter-spacing:.12em}.add{padding:6px 9px;color:#dce8f6}.object-list{padding:9px;display:flex;flex-direction:column;gap:4px}.object-row{display:flex;align-items:center;gap:9px;width:100%;padding:10px 9px;text-align:left;background:transparent;border-color:transparent;color:#b8c5d5}.object-row.selected{background:#20334a;border-color:#395573;color:#f0f5fb}.cube-icon{width:11px;height:11px;border:1px solid #9db2cb;transform:rotate(30deg);border-radius:2px}.row-menu{margin-left:auto;color:#72849a}.panel-note{margin:auto 12px 12px;color:#66788e;font-size:10px;line-height:1.5}.viewport-wrap{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative;background:#0d1521}.viewport-toolbar{height:48px;flex:0 0 48px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 12px;border-bottom:1px solid #263244}.tool-group{display:flex;gap:4px}.tool{min-width:32px;padding:7px 9px;background:#162235}.tool.active{background:#d7e6f8;color:#142033;border-color:#d7e6f8}.viewport-label{font-size:9px;letter-spacing:.12em;color:#788ba2;text-align:center}#viewport{flex:1;min-height:0;touch-action:none}#viewport canvas{display:block;width:100%;height:100%;touch-action:none}.hint{position:absolute;bottom:12px;left:50%;transform:translate(-50%);background:#101927d9;border:1px solid #2b3b50;border-radius:20px;padding:7px 12px;color:#a1b0c2;font-size:10px;white-space:nowrap;pointer-events:none}.inspector-content{padding:14px;overflow:auto}.empty{color:#77889e;font-size:11px}.field-label,.number-field{display:flex;flex-direction:column;gap:6px;color:#8092a9;font-size:9px;letter-spacing:.1em}.field-label input,.number-field input{width:100%;min-width:0;border:1px solid #34445a;border-radius:6px;background:#0c1521;color:#e5edf7;padding:9px;font-size:11px;letter-spacing:normal}.section-title{margin:20px 0 9px;padding-bottom:7px;border-bottom:1px solid #29384a;color:#9bacc0;font-size:9px;letter-spacing:.12em}.vector-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.number-field{gap:4px}.number-field span{color:#73869d}.number-field input{padding:8px 5px}.danger{width:100%;margin-top:24px;color:#e5a5a5;border-color:#70464b;background:#301f27}footer{height:26px;flex:0 0 26px;display:flex;justify-content:space-between;align-items:center;padding:0 12px;background:#0a111b;border-top:1px solid #263244;color:#65768c;font-size:9px;letter-spacing:.08em}@media(max-width:800px){body{overflow:auto}#app{min-height:100dvh;height:100dvh}.topbar{padding:0 10px;height:58px;flex-basis:58px}.status{display:none}.top-actions button{padding:8px;font-size:10px}.workspace{grid-template-columns:1fr;grid-template-rows:minmax(300px,1fr) auto}.hierarchy{display:none}.viewport-wrap{min-height:300px}.inspector{border-left:0;border-top:1px solid #263244;max-height:230px}.inspector-content{padding:10px 12px}.section-title{margin:12px 0 7px}.hint{max-width:calc(100% - 20px);overflow:hidden;font-size:9px}}.status:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:7px;background:#d29a55}.status.connected:before{background:#6bc49a}@media(max-width:800px){.topbar,.brand{gap:6px}.brand-mark{width:29px;height:29px}.brand strong{font-size:10px}.brand small{font-size:8px}.top-actions{gap:4px}.top-actions button{padding:7px 6px;font-size:9px;white-space:nowrap}#github-status{display:none}}.color-field{margin-top:14px}.color-field input[type=color]{height:36px;padding:3px;cursor:pointer}.secondary-action{width:100%;margin-top:18px;background:#1b2b40;border-color:#3a526e}button:disabled{opacity:.55;cursor:wait}.game-controls{position:absolute;inset:48px 0 0;pointer-events:none;z-index:4}.game-controls[hidden]{display:none}.move-pad{position:absolute;left:22px;bottom:30px;width:132px;height:132px;border:1px solid #d5e1ed88;border-radius:50%;background:#10192799;display:grid;place-items:center;pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none}.move-pad>span{position:absolute;top:10px;color:#d7e4f2;font-size:8px;letter-spacing:.12em;pointer-events:none}.move-knob{width:48px;height:48px;border:1px solid #dce8f6;border-radius:50%;background:#7892adbb;box-shadow:0 3px 14px #0006;pointer-events:none}.game-help{position:absolute;right:16px;bottom:18px;padding:8px 11px;border:1px solid #d5e1ed55;border-radius:18px;background:#101927bb;color:#e3edf8;font-size:10px}@media(max-width:800px){.viewport-toolbar{flex-wrap:wrap;height:auto;min-height:48px;padding:6px}.viewport-label{display:none}.move-pad{width:116px;height:116px;left:14px;bottom:20px}.game-help{right:10px;bottom:12px;max-width:125px;line-height:1.4}}.game-hud{position:absolute;top:12px;right:12px;display:flex;align-items:center;gap:8px;pointer-events:none}.game-hud>span{padding:9px 12px;border:1px solid #d5e1ed66;border-radius:9px;background:#101927cc;color:#edf4fc;font-size:11px;font-weight:650}.interact-button{pointer-events:auto;min-width:100px;padding:11px 14px;border:1px solid #dce8f6;background:#d7e6f8;color:#142033;font-size:11px;font-weight:750}.interact-button:disabled{opacity:.42}@media(max-width:800px){.game-hud{top:8px;right:8px}.game-hud>span{padding:8px 10px;font-size:10px}.interact-button{min-width:92px;padding:10px}}.dialogue-panel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(440px,calc(100% - 28px));padding:18px;border:1px solid #71869b;border-radius:12px;background:#101927f2;box-shadow:0 18px 55px #0009;color:#e7edf5;z-index:8;pointer-events:auto}.dialogue-panel[hidden]{display:none}.dialogue-panel strong{font-size:15px}.dialogue-panel p{margin:10px 0 16px;color:#c1ccda;font-size:13px;line-height:1.5}.dialogue-actions{display:flex;flex-wrap:wrap;gap:7px}.dialogue-actions button{flex:1 1 120px;min-height:38px}.dialogue-actions button:disabled{opacity:.4}.game-hud{pointer-events:auto}@media(max-width:800px){.game-hud{left:8px;right:8px;justify-content:flex-end;flex-wrap:wrap}.game-hud>span{margin-right:auto}.game-hud .tool{padding:8px}.dialogue-panel{top:43%}}.objective-text{position:absolute;top:12px;left:50%;transform:translate(-50%);max-width:min(520px,calc(100% - 260px));padding:9px 14px;border:1px solid #d5e1ed55;border-radius:20px;background:#101927d9;color:#e3edf8;font-size:11px;text-align:center;pointer-events:none;z-index:3}@media(max-width:800px){.objective-text{top:66px;max-width:calc(100% - 24px);font-size:10px}}
