@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url('./assets/inter-latin-wght-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url('./assets/inter-cyrillic-wght-normal.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
:root{color-scheme:dark;--bg:#000;--surface:#0c0c0c;--raised:#151515;--text:#f5f5f5;--muted:#a3a3a3;--border:#242424;--accent:#28a7ff;--accent-ink:#000;--header:76px;--bottom:68px;--sidebar:320px}html[data-theme=light]{color-scheme:light;--bg:#fff;--surface:#f4f4f4;--raised:#eaeaea;--text:#151515;--muted:#5c5c5c;--border:#e0e0e0;--accent:#006eb8;--accent-ink:#fff}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.45}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer;transition:background .12s,color .12s,border-color .12s}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button:hover:not(:disabled){background:var(--raised)}[hidden]{display:none!important}svg{display:block;width:20px;height:20px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[data-icon]{display:inline-flex;align-items:center;justify-content:center}.topbar{height:var(--header);display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid var(--border);gap:20px;background:var(--bg)}.brand{display:flex;align-items:center;gap:18px;text-decoration:none;color:var(--text);height:44px}.brand img{width:29px;height:36px;object-fit:contain}.wordmark{font-size:26px;font-weight:650;letter-spacing:-.035em;line-height:1}.brand-square{display:inline-block;width:.12em;height:.12em;background:#28a7ff;margin-left:.025em;vertical-align:baseline}html[data-theme=light] .brand img{filter:invert(1)}.header-actions{display:flex;align-items:center;gap:8px}.icon-button{width:44px;height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;background:transparent;border-radius:4px;color:var(--muted);padding:0}.icon-button:hover{color:var(--text)}.separator{height:20px;width:1px;background:var(--border);margin:0 6px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 16px;border:1px solid var(--border);border-radius:4px;background:var(--surface);font-size:14px;font-weight:500;white-space:nowrap}.button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.button.primary:hover{filter:brightness(1.12);background:var(--accent)}.button.wide{width:100%;justify-content:flex-start}.button.wide kbd{margin-left:auto}.button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}
.workspace{height:calc(100dvh - var(--header));display:grid;grid-template-columns:minmax(0,1fr) var(--sidebar);grid-template-rows:minmax(0,1fr) var(--bottom)}.viewport{position:relative;min-width:0;min-height:0;overflow:hidden;background:#000}.viewport canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.viewport canvas:active{cursor:grabbing}.overlay{position:absolute;pointer-events:none;left:24px;right:24px;display:flex;align-items:center;justify-content:space-between;color:#bec5d3;font-size:12px}.overlay button{pointer-events:auto}.scene-top{top:16px}.scene-state{display:flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid #ffffff13;border-radius:4px;background:#0005;backdrop-filter:blur(12px)}.scene-state i{width:5px;height:5px;background:#a0b8d6;border-radius:50%}.scene-icon{color:#d1d6de;background:#0005}.scene-icon:hover{background:#17171dcc!important}.scene-bottom{bottom:20px;opacity:.72}.scene-bottom span:first-child{color:#e1e3e7}.error-state{position:absolute;inset:0;background:#050508;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:32px;text-align:center;color:#eee}.error-state h1{font-size:22px}.error-state p{max-width:420px;font-size:16px;color:#aaa}
.inspector{display:flex;flex-direction:column;min-height:0;border-left:1px solid var(--border);grid-column:2;grid-row:1/3;background:var(--bg)}.inspector-heading{height:66px;padding:0 18px 0 24px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.inspector-heading h1{font-size:16px;font-weight:550;letter-spacing:-.025em;margin:0}.inspector-heading .icon-button svg{width:17px;height:17px}.tabs{display:grid;grid-template-columns:repeat(4,1fr);margin:0 16px;border-bottom:1px solid var(--border);flex-shrink:0}.tabs button{position:relative;border:0;background:none;min-height:44px;padding:0;font-size:14px;color:var(--muted)}.tabs button[aria-selected=true]{color:var(--text)}.tabs button[aria-selected=true]:after{position:absolute;bottom:-1px;height:2px;left:16px;right:16px;background:var(--accent);content:''}.panel-scroll{overflow-y:auto;overflow-x:hidden;scrollbar-width:none;padding:22px 24px 28px;flex:1;overscroll-behavior:contain}.panel-scroll::-webkit-scrollbar{display:none}.preset-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.preset{border:1px solid var(--border);border-radius:4px;background:var(--surface);padding:10px;text-align:left;min-height:54px;line-height:1.3;font-size:12px;display:flex;gap:8px;align-items:center}.preset i{background:var(--swatch);height:18px;width:4px;flex-shrink:0}.preset.selected{border-color:var(--accent);background:var(--raised)}.section-label{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:12px;color:var(--muted);margin:28px 0 12px;letter-spacing:.02em}.text-button{border:0;background:none;color:var(--muted);font-size:12px;min-height:32px;padding:0}.text-button:hover{color:var(--text);background:none!important}.layer{border-bottom:1px solid var(--border);padding-bottom:2px}.layer-heading{min-height:52px;display:flex;align-items:center;gap:10px}.layer-icon{color:var(--muted)}.layer-icon svg{width:17px;height:17px}.layer-title{padding:0;display:flex;align-items:center;gap:7px;flex:1;background:none!important;border:0;text-align:left;min-height:44px;font-weight:500}.layer-title svg{width:13px;height:13px;color:var(--muted);transition:transform .18s}.layer.is-open .layer-title svg{transform:rotate(180deg)}.layer.off .layer-title{color:var(--muted)}.toggle{width:32px;height:44px;position:relative;display:inline-flex;align-items:center;flex-shrink:0;cursor:pointer}.toggle input{position:absolute;opacity:0;width:100%;height:100%;inset:0;margin:0;cursor:pointer}.toggle span{width:32px;height:18px;background:#393939;border-radius:20px;pointer-events:none;transition:background .15s}.toggle span:before{content:'';width:12px;height:12px;position:absolute;top:16px;left:3px;border-radius:50%;background:#ccc;transition:transform .15s}.toggle input:checked+span{background:var(--accent)}.toggle input:checked+span:before{background:var(--accent-ink);transform:translateX(14px)}.toggle input:focus-visible+span{outline:2px solid var(--accent);outline-offset:4px}.layer-body{padding-bottom:14px}.control{margin:12px 0 17px}.control-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.control label{font-size:13px;color:var(--muted)}.number-value{width:56px;padding:3px 0 3px 5px;font-size:12px;font-variant-numeric:tabular-nums;border:1px solid transparent;border-radius:3px;background:transparent;color:var(--text);text-align:right;-moz-appearance:textfield}.number-value::-webkit-inner-spin-button{display:none}.number-value:focus,.number-value:hover{background:var(--raised);border-color:var(--border)}input[type=range]{--pct:20%;appearance:none;-webkit-appearance:none;display:block;width:100%;height:18px;margin:0;cursor:pointer;background:none}input[type=range]::-webkit-slider-runnable-track{height:2px;background:linear-gradient(to right,var(--accent) var(--pct),var(--border) var(--pct))}input[type=range]::-moz-range-track{height:2px;background:var(--border)}input[type=range]::-moz-range-progress{height:2px;background:var(--accent)}input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:10px;height:10px;background:var(--text);border-radius:50%;border:0;margin-top:-4px}input[type=range]::-moz-range-thumb{width:10px;height:10px;background:var(--text);border:0;border-radius:50%}.color-row{display:flex;gap:8px}.color-field{flex:1;color:var(--muted);font-size:12px;display:grid;gap:7px}.color-field input{height:28px;width:100%;padding:0;background:none;border:1px solid var(--border);border-radius:3px;cursor:pointer}.color-field input::-webkit-color-swatch-wrapper{padding:3px}.color-field input::-webkit-color-swatch{border:0;border-radius:1px}.new-space{margin-top:22px;width:100%;font-size:13px}.inspector-footer{min-height:44px;padding:10px 24px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border);color:var(--muted);font-size:10px;gap:10px;flex-shrink:0}.hint{color:var(--muted);font-size:12px;line-height:1.6;margin:10px 0 20px}.field{display:grid;gap:8px;color:var(--muted);font-size:13px;margin:12px 0}select,input[type=number]:not(.number-value){height:42px;width:100%;border:1px solid var(--border);border-radius:4px;background:var(--surface);color:var(--text);padding:0 11px;font-size:13px;min-width:0}select{cursor:pointer}option{background:var(--surface);color:var(--text)}
.transport{grid-column:1;grid-row:2;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 24px;border-top:1px solid var(--border);background:var(--bg);min-width:0}.play-controls{display:flex;align-items:center;gap:6px}.play-controls .icon-button{color:var(--text);margin-left:-10px}.play-controls time{font-size:12px;font-variant-numeric:tabular-nums;color:var(--muted)}.infinity{font-size:21px;color:#616161;margin:0 8px}.transport-speed{display:flex;align-items:center;gap:12px;min-width:120px;max-width:240px;flex:1}.transport-speed label{font-size:12px;color:var(--muted)}.transport-speed input{min-width:40px}.transport-speed output{font-size:12px;min-width:38px;text-align:right;font-variant-numeric:tabular-nums}.flight-actions{display:flex;gap:8px;align-items:center}.flight-actions .button{min-height:38px;padding:0 12px;font-size:12px}.flight-actions svg{width:16px;height:16px}.jump{color:var(--accent)}.jump.active{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}#mobilePanel{display:none}
dialog{border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text);padding:0;width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 40px);overflow-y:auto;scrollbar-width:none;box-shadow:0 24px 100px #0009}dialog::backdrop{background:#000b;backdrop-filter:blur(6px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;padding:22px 24px 18px;border-bottom:1px solid var(--border)}.dialog-top h2{font-size:22px;letter-spacing:-.04em;font-weight:550;margin:0}.eyebrow{display:block;font-size:11px;color:var(--muted);letter-spacing:.05em;margin-bottom:6px}.dialog-top .icon-button{align-self:flex-start;margin-top:-4px;margin-right:-10px}#exportForm{padding:24px}.export-preview{height:146px;position:relative;overflow:hidden;border-radius:4px;background:#060610}.export-preview canvas{width:100%;height:100%;object-fit:cover}.export-preview span{position:absolute;left:12px;bottom:10px;font-size:11px;color:#fff;background:#0007;padding:4px 6px;border-radius:2px}.export-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;margin-top:12px}.export-fields .field{font-size:12px}.check-row{display:flex;gap:9px;align-items:center;font-size:13px;margin-top:10px;min-height:36px;cursor:pointer}.check-row input{accent-color:var(--accent);width:16px;height:16px;margin:0}.export-note{font-size:12px;color:var(--muted);line-height:1.5;margin:14px 0 0}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.export-progress{margin-top:20px}.export-progress>div{display:flex;justify-content:space-between;font-size:12px}.export-progress progress{width:100%;height:4px;accent-color:var(--accent);display:block;margin:10px 0}.export-progress p{font-size:12px;color:var(--muted);margin:8px 0}.form-error{font-size:13px;color:#ec9c90;line-height:1.6}.help-dialog>p{padding:0 24px;font-size:14px;color:var(--muted);line-height:1.7}.help-dialog>.dialog-actions{padding:0 24px 24px}.help-keys{display:grid;grid-template-columns:1fr auto;gap:12px;padding:12px 24px}.help-keys span{font-size:13px;align-self:center}kbd{font-family:Inter,sans-serif;font-size:11px;border:1px solid var(--border);padding:4px 7px;border-radius:4px;background:var(--surface);color:var(--muted);white-space:nowrap}.toast{position:fixed;bottom:calc(var(--bottom) + 16px);left:50%;transform:translateX(-50%);background:var(--text);color:var(--bg);z-index:200;padding:12px 18px;border-radius:4px;max-width:90vw;font-size:13px;box-shadow:0 6px 30px #0004}
body.immersive .topbar,body.immersive .inspector,body.immersive .transport,body.immersive .overlay,body.immersive .toast{display:none!important}body.immersive .workspace{position:fixed;inset:0;height:100dvh;display:block}body.immersive .viewport{width:100%;height:100%}body.immersive canvas{cursor:none}.viewport:fullscreen{width:100vw;height:100vh}.viewport:fullscreen .overlay{display:none}
@media(min-width:1800px){:root{--sidebar:350px}.panel-scroll{padding-left:28px;padding-right:28px}}@media(max-width:1180px){:root{--sidebar:294px}.transport{gap:12px;padding:0 16px}.transport-speed label{display:none}.action-label{display:none}.flight-actions .button{padding:0 10px}.panel-scroll{padding-left:20px;padding-right:20px}.scene-bottom span:last-child{display:none}}@media(max-width:900px){:root{--header:60px;--bottom:64px;--sidebar:280px}.topbar{padding:0 14px}.brand{gap:13px}.brand img{width:26px;height:32px}.wordmark{font-size:23px}.header-actions{gap:2px}.transport-speed{display:none}.transport{gap:6px}.scene-top{left:14px;right:14px}.scene-bottom{left:16px;bottom:15px}.inspector-footer{font-size:10px;padding:10px 16px}.infinity{display:none}}@media(max-width:700px){.workspace{grid-template-columns:minmax(0,1fr)}.inspector{display:none;position:fixed;right:0;top:var(--header);bottom:var(--bottom);width:min(320px,100vw);z-index:20;box-shadow:-30px 0 80px #0006}body.panel-open .inspector{display:flex}.viewport{grid-column:1;grid-row:1}.transport{padding:0 12px;grid-column:1}.header-actions .separator{margin:0 3px}.header-actions #snapshot{display:none}.header-actions .button{min-height:38px;padding:0 12px;font-size:12px}.header-actions svg{width:18px;height:18px}.scene-state{font-size:11px}.play-controls time{font-size:11px}.flight-actions{gap:6px}.flight-actions .button{padding:0 10px;min-height:38px}.flight-actions #damage{width:38px}.flight-actions .jump{font-size:11px}.flight-actions .jump svg{width:14px}#mobilePanel{display:inline-flex}.help-keys{gap:12px 8px}.export-fields{gap:0 10px}#exportForm{padding:18px}.dialog-top{padding:20px}.dialog-top h2{font-size:20px}.export-preview{height:128px}.field select{font-size:12px}.toast{width:max-content}.scene-bottom{font-size:11px}}@media(max-width:440px){.header-actions .separator{display:none}.flight-actions .jump{font-size:10px;padding:0 8px}.flight-actions .jump svg{display:none}.play-controls .icon-button{width:38px;min-width:38px}.transport{gap:2px}.flight-actions{gap:4px}#mobilePanel{width:38px;min-width:38px}.scene-top{top:10px}}@media(max-height:500px) and (orientation:landscape){:root{--header:48px;--bottom:54px}.scene-bottom{display:none}.inspector-heading{height:50px}.panel-scroll{padding-top:14px}.transport{height:54px}.scene-top{top:8px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.tabs button{font-size:12px}.tabs button[aria-selected=true]:after{left:10px;right:10px}.transport-speed output{min-width:48px}.button[aria-pressed=true]{border-color:var(--accent);color:var(--accent);background:var(--raised)}
@media(max-width:440px){#spin{width:32px;padding:0;min-width:32px}.flight-actions .jump{font-size:10px;padding:0 5px}.transport .play-controls time{font-size:10px}}

.scene-loading{position:absolute;inset:0;display:grid;place-items:center;color:#a3a3a3;font-size:14px;background:#000;pointer-events:none}
