:root{color-scheme:dark;--bg:#070b13;--panel:#0d1421;--panel2:#111b2a;--border:#253144;--muted:#73839a;--text:#ebf1fb;--cyan:#79e2ed;--orange:#fbb779;--purple:#a38cff;--font:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 18% -3%,#162239 0%,#080d16 38%,#070b13 72%);color:var(--text);font-family:var(--font);font-size:13px;line-height:1.45}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #91efff;outline-offset:3px}a{color:inherit}#app{max-width:1650px;margin:auto;padding:0 34px}.topbar{height:66px;border-bottom:1px solid #243143;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:9px;color:#edf3fb;text-decoration:none;letter-spacing:.17em;font-size:12px;font-weight:900;white-space:nowrap}.brand-mark{background:#273c54;color:#97f6ff;border:1px solid #3b6671;border-radius:8px;font-weight:400;font-size:30px;height:31px;width:31px;line-height:25px;text-align:center}.brand-accent{color:var(--cyan)}.brand-sub{font-weight:500;color:#76869b;font-size:10px;letter-spacing:.11em}.topcenter,.topright{display:flex;align-items:center;gap:12px;color:#8499b2;font-size:10px;letter-spacing:.15em;font-weight:700}.topright{gap:18px}.dot-live,.tiny-dot,.blue-led,.pulse-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#7bf4e9;box-shadow:0 0 9px #6decd9}.slash{opacity:.35}.icon-button{background:transparent;border:1px solid #37465a;color:#bccbdd;border-radius:50%;width:27px;height:27px;font-size:16px}.intro{min-height:151px;display:flex;justify-content:space-between;align-items:center;gap:25px;padding:22px 1px 25px}.eyebrow{display:flex;align-items:center;gap:11px;font-size:10px;font-weight:800;color:#91a7c3;letter-spacing:.22em}.eyebrow .line{height:1px;width:24px;background:#45637e}h1{font-size:clamp(28px,3.5vw,45px);font-weight:700;letter-spacing:-.06em;line-height:1.22;margin:8px 0 9px}.h1-dot{color:#fbb779}.h1-light{font-weight:350;color:#b2bdd0}.subtitle{font-size:12px;color:#8293ac;margin:0;max-width:700px}.intro-note{display:flex;align-items:center;gap:12px;color:#91a3ba;letter-spacing:.13em;font-size:10px;line-height:1.7;white-space:nowrap}.intro-note>span{color:#dfbb8a;font-size:32px;font-weight:250;letter-spacing:-.05em}.intro-note small{font-size:9px;color:#5d708b}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 338px;gap:13px;min-height:540px}.stage{position:relative;min-height:540px;overflow:hidden;border-radius:10px;border:1px solid #324259;background:#0b1522;isolation:isolate;box-shadow:0 20px 85px #0005}.stage::after{pointer-events:none;content:'';position:absolute;inset:0;background:linear-gradient(180deg,#0b122230 0%,transparent 27%,transparent 65%,#0b1222a3 100%);z-index:1}#viewport{position:absolute;inset:0}#viewport canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}#viewport canvas:active{cursor:grabbing}.stage-top,.stage-bottom,.stage-legend,#hudState,.scene-label{position:absolute;z-index:3;pointer-events:none}.stage-top{left:19px;right:19px;top:15px;display:flex;align-items:center;justify-content:space-between;gap:10px}.stage-tag{font-size:9px;letter-spacing:.15em;font-weight:800;color:#c6d6e9;text-shadow:0 1px 6px #000}.blue-led{background:#f4b474;box-shadow:0 0 8px #eda356;margin-right:6px}.scene-tools{display:flex;gap:6px;pointer-events:auto}.mini{background:#111d30c9;color:#9bb0c7;border:1px solid #41516abf;border-radius:4px;padding:7px 9px;font-size:9px;font-weight:800;letter-spacing:.075em;backdrop-filter:blur(8px)}.mini:hover,.mini.active{color:#d9f7fa;border-color:#6d95ab;background:#23354b}.stage-bottom{bottom:14px;left:18px;right:18px;display:flex;justify-content:space-between;gap:8px;color:#92a8c0;font-size:9px;letter-spacing:.09em;font-weight:700}.stage-legend{left:18px;bottom:53px;display:flex;align-items:center;gap:15px;letter-spacing:.09em;font-size:9px;color:#d0d7e4}.stage-legend div{display:flex;align-items:center;gap:6px}.legend-dot{width:7px;height:7px;border-radius:2px;display:inline-block}.legend-dot.molten{background:#ff9d56;box-shadow:0 0 7px #ff8753}.legend-dot.glass{background:#b8d9d6}.legend-dot.sand{background:#957257}#hudState{top:55px;left:19px;display:flex;align-items:center;gap:10px;font-size:9px;letter-spacing:.1em;font-weight:800;color:#d2d9e9;background:#101d31b8;border:1px solid #35465f;padding:7px 9px;border-radius:5px;backdrop-filter:blur(7px)}.pulse-dot{background:#ffac70;box-shadow:0 0 8px #ff945b}.hudSep{height:12px;width:1px;background:#56647b}.scene-label{color:#dfecf2;font-size:9px;letter-spacing:.14em;font-weight:800;text-shadow:0 1px 7px #02050c,0 1px 5px #02050c;white-space:nowrap;transform:translate(-4px,-50%)}.scene-label .label-no{color:#eab987;margin-right:5px}.scene-label .leader{position:absolute;top:20px;left:7px;width:1px;height:22px;transform:rotate(-20deg);transform-origin:top;background:linear-gradient(#e6ae7e,transparent)}.scene-label.offscreen{display:none}.stage-error{position:absolute;z-index:10;inset:25% 7% auto;background:#19273b;border:1px solid #b57f69;color:#f0d9cd;border-radius:8px;padding:20px;font-size:14px}.sidepanel{border:1px solid #2b3a4e;border-radius:10px;display:flex;flex-direction:column;overflow:hidden;min-height:540px;max-height:668px;background:linear-gradient(140deg,#121c2a,#0b131f 60%);box-shadow:0 15px 75px #0003}.panel-head{display:flex;justify-content:space-between;align-items:center;padding:18px 18px 0}.panel-kicker{font-size:10px;color:#c7d9ec;letter-spacing:.17em;font-weight:900}.panel-code{font-size:9px;color:#60728e;font-weight:700;letter-spacing:.05em}.panel-phrase{padding:1px 18px 15px;font-size:21px;font-weight:550;letter-spacing:-.04em}.panel-phrase span{color:#f6bc80}.presets{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:0 14px 14px}.preset{background:#111b2a;border:1px solid #334153;border-radius:5px;color:#9cadc3;padding:9px 5px;font-size:10px;line-height:1.25;white-space:nowrap}.preset.selected{background:linear-gradient(130deg,#2b343e,#3c2f30);color:#fff3e5;border-color:#ad7455}.preset:hover{border-color:#b4a6a0}.preset-i{display:block;font-size:17px;margin-bottom:2px;color:#f8b980}.control-scroll{padding:0 19px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#40536b transparent;flex:1;min-height:160px}.section-label{display:flex;gap:8px;align-items:center;color:#7c97b5;font-weight:900;font-size:9px;letter-spacing:.19em;margin:10px 0 12px}.sec-line{flex:1;height:1px;background:#27384b}.slider-block{margin-bottom:17px}.slider-block label{display:flex;justify-content:space-between;gap:12px;color:#bac9d8;font-size:11px;margin-bottom:6px}.slider-block output{font-size:11px;color:#f0c19a;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:800}.slider-block input{display:block;appearance:none;width:100%;height:3px;background:linear-gradient(90deg,#a77859 0%,#8a8da3 100%);border-radius:10px;margin:12px 0;outline-offset:7px}.slider-block input::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border-radius:50%;background:#f5c19a;border:2px solid #0f1a2a;box-shadow:0 0 0 1px #dfa174;cursor:grab}.slider-block input::-moz-range-thumb{width:10px;height:10px;border-radius:50%;background:#f5c19a;border:1px solid #dfa174;cursor:grab}.slider-ticks{display:flex;justify-content:space-between;color:#607189;font-size:9px;margin-top:4px}.run-controls{margin-top:auto;padding:13px 17px 17px;border-top:1px solid #2c3d52;background:#101a2a}.run-top{display:flex;justify-content:space-between;color:#7892a8;font-size:9px;letter-spacing:.15em;font-weight:900;margin-bottom:10px}.buttons-row{display:flex;gap:6px}.buttons-row button{height:37px;border-radius:5px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;flex:1}.buttons-row button span{font-size:10px;font-weight:900;letter-spacing:.04em}.play-button{background:linear-gradient(105deg,#ecc09c,#ca8358);color:#1e1c23;border:0;max-width:124px}.transport-button{color:#c7d7e6;background:#192638;border:1px solid #36475d}.transport-button:hover{background:#263952}.bottom-settings{margin-top:12px;display:grid;grid-template-columns:1fr auto 1fr auto;align-items:center;gap:8px}.bottom-settings label{font-size:9px;letter-spacing:.1em;font-weight:800;color:#758ba7}.bottom-settings select{min-width:50px;background:#1a2839;color:#d7e1f1;border:1px solid #3f5066;border-radius:4px;padding:5px 7px;font-size:11px}.telemetry{border:1px solid #28374c;border-radius:9px;background:linear-gradient(120deg,#101927,#0b1522);margin-top:14px;overflow:hidden}.telemetry-head{display:flex;justify-content:space-between;padding:13px 16px 10px;color:#8fa1b8;font-size:9px;font-weight:800;letter-spacing:.16em}.telemetry-head .tiny-dot{margin-right:7px}.stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-top:1px solid #27374c}.stat{min-width:0;padding:13px 17px 15px;border-right:1px solid #27374c}.stat:last-child{border-right:0}.stat-label{font-size:9px;color:#8195ae;letter-spacing:.11em;font-weight:800;min-height:26px}.stat-value{display:flex;align-items:baseline;gap:6px;margin:6px 0 5px;min-width:0}.stat-value strong{font-size:clamp(22px,2.7vw,34px);line-height:1.1;letter-spacing:-.05em;font-weight:530;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.stat:nth-child(1) strong{color:#f5bb89}.stat:nth-child(2) strong{color:#ccedf0}.stat-value>span{font-size:11px;color:#8094ad}.stat-foot{font-size:8px;letter-spacing:.12em;color:#667b95;font-weight:700}.science{margin:14px 0 22px;border-radius:9px;border:1px solid #29394e;background:#0e1724;overflow:hidden}.science summary{display:flex;align-items:center;gap:14px;padding:17px 20px;cursor:pointer;list-style:none}.science summary::-webkit-details-marker{display:none}.science-icon{display:grid;place-items:center;width:38px;height:38px;border:1px solid #53687f;border-radius:7px;color:#a7d8e5;font-family:serif;font-size:24px}.science summary strong{display:block;font-size:15px}.science summary small{display:block;color:#7f93ae;font-size:11px;margin-top:3px}.science-expand{font-size:20px;margin-left:auto;color:#a2b7c9;transition:transform .2s}.science details[open] .science-expand{transform:rotate(45deg)}.science-body{padding:5px 20px 23px;border-top:1px solid #2a3b51}.science-cols{display:grid;grid-template-columns:1fr 1fr;gap:30px}.science article{padding:14px 0 0;color:#9caec2;font-size:12px;line-height:1.7}.science article h3{font-size:10px;letter-spacing:.17em;color:#e7c5a6;margin:4px 0 8px}.science article p{margin:7px 0 12px}.science article strong{color:#d6e0ed}.equation{font-family:Cambria,Georgia,serif;font-size:14px;line-height:1.8;letter-spacing:.01em;color:#d4e3ee;background:#172435;border:1px solid #33475f;border-radius:6px;padding:11px 12px;overflow-x:auto}.validation{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0 9px}.validation>div{background:#172538;border:1px solid #31475f;border-radius:5px;padding:9px}.validation small{display:block;color:#849ab2;font-size:9px;letter-spacing:.06em}.validation strong{display:block;color:#dbe9f8;font-size:15px;font-variant-numeric:tabular-nums;margin-top:4px}.validation-note{color:#7dc9bc}.source-line{border-top:1px solid #2b3c53;margin-top:24px;padding-top:13px;color:#8495aa;font-size:11px}.source-line strong{color:#d5b69a;letter-spacing:.1em;margin-right:8px}.source-line a{color:#7fdbe9}.footer{border-top:1px solid #213146;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:72px;color:#627691;font-size:9px;letter-spacing:.06em}.footer span:nth-child(2){text-align:center}
@media(max-width:1100px){#app{padding:0 21px}.workspace{grid-template-columns:minmax(0,1fr) 306px}.topcenter,.intro-note{display:none}.stage{min-height:500px}.sidepanel{min-height:500px}.stat{padding:12px 11px}.stat-label{font-size:8px}.stat-foot{font-size:8px}}
@media(max-width:760px){#app{padding:0 12px}.topbar{height:57px}.topright .edition,.brand-sub{display:none}.intro{min-height:auto;padding:23px 4px 20px}.eyebrow{font-size:9px}h1{font-size:30px;letter-spacing:-.065em;margin-bottom:8px}.h1-light{display:block}.subtitle{font-size:11px;max-width:380px}.workspace{display:flex;flex-direction:column;gap:12px}.stage{min-height:440px;height:53vh;max-height:570px}.sidepanel{min-height:auto;max-height:none}.control-scroll{overflow:visible;display:grid;grid-template-columns:1fr 1fr;column-gap:15px}.section-label{grid-column:span 2}.presets{padding-bottom:9px}.slider-block{margin-bottom:12px}.stage-top{left:10px;right:10px;top:9px;align-items:start}.stage-tag{max-width:94px;font-size:8px;line-height:1.5}.mini{font-size:8px;padding:6px 5px}.stage-bottom{font-size:8px;left:10px;right:10px}.stage-legend{left:11px;font-size:8px;gap:9px}.scene-label{font-size:8px}.telemetry-head{font-size:8px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{border-bottom:1px solid #27374c;min-height:90px}.stat:nth-child(even){border-right:0}.stat:last-child{border-bottom:0}.stat-label{min-height:14px}.stat-value strong{font-size:27px}.science-cols{grid-template-columns:1fr;gap:0}.science summary{padding:13px}.science-body{padding:5px 14px 18px}.validation{gap:5px}.validation>div{padding:7px 4px}.validation small{font-size:8px}.validation strong{font-size:13px}.footer{flex-wrap:wrap;justify-content:center;padding:17px 0;text-align:center;font-size:8px}.footer>span{width:100%}}
@media(max-width:390px){h1{font-size:27px}.stage{height:425px;min-height:425px}.stage-legend{bottom:44px}.stage-legend div{gap:3px}.preset{font-size:9px}.control-scroll{column-gap:11px;padding:0 14px}.slider-block label{font-size:10px}.run-controls{padding:12px}.bottom-settings{gap:6px}.bottom-settings label{font-size:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
body.embed{background:#080e18}body.embed #app{padding:0;max-width:none}body.embed .topbar,body.embed .intro,body.embed .telemetry,body.embed .science,body.embed .footer{display:none}body.embed .workspace{gap:0;min-height:100vh}body.embed .stage{border:0;border-radius:0;min-height:100vh}body.embed .sidepanel{border-radius:0;max-height:100vh}body.embed .stage-bottom{bottom:14px}@media(max-width:760px){body.embed .stage{height:61vh;min-height:61vh}body.embed .sidepanel{max-height:none}body.embed .workspace{min-height:100vh}}
