:root{color-scheme:dark;--bg:#0a1220;--panel:#101d2b;--panel2:#152436;--line:#263747;--dim:#92aabb;--muted:#7892a4;--white:#edf5fa;--cyan:#70deeb;--gold:#e9b980}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#070f1a;color:var(--white);font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible,summary:focus-visible{outline:2px solid #80e4ec;outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.36}.app{min-height:100dvh;display:flex;flex-direction:column}.masthead{min-height:76px;padding:16px 30px;border-bottom:1px solid #1c3042;display:flex;align-items:center;justify-content:space-between;gap:14px;background:#0c1724}.mast-brand{display:flex;gap:15px;align-items:center}.brandmark{font-size:38px;color:#8bdddd;line-height:1}.eyebrow,.microcaps{font-size:10px;letter-spacing:.15em;font-weight:700;color:#82b8c1}.mast-brand strong{font-size:18px;letter-spacing:.09em}.mast-brand strong span{color:#78bed0;font-weight:400}.head-right{display:flex;gap:26px;align-items:center;font-size:10px;color:#849bab;letter-spacing:.12em;font-weight:700}.live-dot{color:#99dbb5}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 365px;grid-template-rows:minmax(0,1fr);height:calc(100dvh - 76px);min-height:0;overflow:hidden}.stage-panel{min-width:0;min-height:0;height:100%;overflow:hidden;display:flex;flex-direction:column;background:#0d1925}.stage{position:relative;flex:1;min-height:0;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse at 52% 45%,#24354a 0%,#0b1727 54%,#080f19 100%);touch-action:none}#scene,#effects{position:absolute;inset:0;width:100%;height:100%;display:block}#scene{cursor:grab}#scene:active{cursor:grabbing}#effects{pointer-events:none}.stage-sheen{position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(to bottom,rgba(255,255,255,.012) 0 1px,transparent 1px 5px),radial-gradient(ellipse at 55% 44%,transparent 34%,rgba(2,7,12,.55));opacity:.43}.scene-top{position:absolute;left:30px;right:22px;top:25px;display:flex;justify-content:space-between;pointer-events:none;gap:8px}.chapter{min-width:0;pointer-events:none}.chapter h1{font-size:clamp(19px,2.45vw,33px);line-height:1.16;letter-spacing:-.04em;font-weight:670;margin:12px 0 11px;text-shadow:0 2px 6px #07111d}.chapter h1 em{font-style:normal;color:#a6e2e9;font-weight:400}.chapter p{color:#a9becd;font-size:11px;margin:0;letter-spacing:.06em}.chapter-rule{display:inline-block;background:#719aa8;height:1px;width:23px;margin:0 9px 3px}.view-controls{display:flex;gap:7px;pointer-events:auto}.iconbtn{width:38px;height:38px;color:#eefaff;border:1px solid #527080;background:rgba(19,41,56,.84);border-radius:7px;font-size:23px;line-height:1;display:grid;place-items:center}.iconbtn:hover{background:#315268}.drawer-toggle{display:none}.world-labels{position:absolute;inset:0;pointer-events:none}.world-label{position:absolute;white-space:nowrap;transform:translate(-50%,-50%);background:rgba(8,21,30,.84);border:1px solid #467487;color:#c1dbe2;border-radius:3px;padding:4px 8px;font-size:10px;letter-spacing:.06em;box-shadow:0 3px 20px #08131a8c}.world-label:before{content:'';position:absolute;left:50%;top:100%;height:15px;border-left:1px solid #79a6b2}.stage-bottom{position:absolute;left:28px;right:28px;bottom:19px;display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:9px;letter-spacing:.11em;font-weight:700;color:#91a9ba;pointer-events:none}.coordinates{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.green-light{display:inline-block;width:7px;height:7px;background:#7ee6b7;box-shadow:0 0 10px #9afcc6;border-radius:50%}.tiny-separator{height:10px;border-left:1px solid #708192}.scale-tag{color:#778f9e;text-align:right}.corner-frame{position:absolute;width:22px;height:22px;border:1px solid #74bac7;opacity:.45;pointer-events:none}.corner-tl{left:12px;top:12px;border-right:0;border-bottom:0}.corner-br{right:12px;bottom:12px;border-left:0;border-top:0}.modes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;background:#263443;border-top:1px solid #34475b;border-bottom:1px solid #304054}.modes button{border:0;background:#121f2e;color:#a6b6c5;font-size:11px;white-space:nowrap;min-height:54px;font-weight:650}.modes button b{display:inline-block;font-size:10px;color:#567b91;padding-right:8px}.modes button.active{background:#173245;color:#d6f6f9;box-shadow:inset 0 2px #70e7ee}.modes button.active b{color:#80dbe4}.modes button:hover{background:#1e3549}.stage-caption{padding:17px 26px;display:flex;align-items:center;justify-content:space-between;gap:25px;border-bottom:1px solid #1c3244}.stage-caption strong{font-size:13px}.stage-caption .eyebrow{font-size:9px;margin-bottom:4px}.stage-caption p{font-size:11px;color:#95a9bb;max-width:410px;line-height:1.6;margin:0}.inspector{min-height:0;overflow:auto;background:#111e2c;border-left:1px solid #30485b;scrollbar-color:#526778 #142535;scrollbar-width:thin}.inspector-inner{padding:24px 24px 18px}.inspector-title{display:flex;justify-content:space-between;align-items:center;gap:10px}.inspector-title h2{font-size:23px;letter-spacing:-.03em;margin:6px 0 14px;font-weight:650}.console-badge{border:1px solid #416271;border-radius:3px;font-size:8px;padding:5px 6px;letter-spacing:.09em;color:#90b3c0}.tab-bar{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #395166;margin-bottom:18px}.tab-bar button{border:0;background:none;padding:10px 0;color:#879dab;font-size:12px;font-weight:650}.tab-bar button.selected{color:#ade7ed;box-shadow:inset 0 -2px #76dce7}.tab-content[hidden]{display:none}.control-group{margin:0 0 19px}.control-group label,.section-head{font-size:11px;font-weight:700;color:#b9c8d3}.control-group>label{display:block;margin:0 0 8px}.labelrow{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.labelrow output{font-size:11px;font-weight:700;color:#8ae0e3;font-variant-numeric:tabular-nums}input[type=range]{width:100%;accent-color:#7adedc;height:6px;cursor:pointer;margin:0}select,input[type=search]{width:100%;padding:10px;border:1px solid #3a5063;border-radius:4px;background:#0b1926;color:#e7f3fc;font-size:12px;outline:none}select option{background:#152a39}.range-hints{display:flex;justify-content:space-between;color:#758e9e;font-size:9px;margin-top:5px}.selected-card{background:linear-gradient(135deg,#193548,#142636);border:1px solid #36566b;border-radius:5px;padding:14px;margin:17px 0}.selected-card strong{display:block;font-size:13px;margin-top:8px}.selected-card p{color:#a4b9c7;font-size:11px;line-height:1.5;margin:7px 0 12px}.subtle-action,.primary-action{border:1px solid #507080;padding:9px 13px;border-radius:3px;background:#1b3446;color:#c6eaf0;font-size:11px;font-weight:700}.subtle-action:hover,.primary-action:hover{background:#2d5062}.primary-action{background:#6fd0db;color:#081e29;border-color:#96e8ef}.part-results{max-height:135px;overflow:auto;margin-top:6px}.part-results:empty{display:none}.part-results button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #243c4d;background:#1a2a39;color:#c4dde5;font-size:11px;padding:7px 8px}.part-results button:hover{background:#2a465c}.section-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #2b4153;padding-bottom:10px}.textbutton{border:0;background:none;color:#8edfea;padding:2px;font-weight:700;font-size:10px}.section-list{margin-top:10px;display:grid;gap:8px}.section-list label{display:flex;align-items:flex-start;gap:9px;font-size:11px;line-height:1.32;color:#a9bfcc;cursor:pointer}.section-list input,.check-label input{accent-color:#7fe5e6;margin:0;flex-shrink:0}.control-group.compact{margin:20px 0}.check-label{font-size:11px;display:flex;gap:10px;align-items:center;color:#bdd4df}.physics-intro{font-size:10px;color:#97b8c9;letter-spacing:.08em;line-height:1.6;padding:8px 0 19px}.readouts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.readout{background:#182c3d;border:1px solid #314d60;padding:12px 10px;min-height:95px}.readout small{display:block;font-size:9px;color:#9ebac8;line-height:1.4}.readout strong{display:block;font-size:21px;color:#bcecf3;margin:7px 0 6px;font-variant-numeric:tabular-nums}.readout span{font-size:9px;color:#8aa5b4}.check-card{margin:18px 0;padding:12px;border:1px solid #3d665f;background:#142a30}.check-card small{font-size:9px;color:#94d9c7;font-weight:700}.check-card p{font-size:10px;line-height:1.55;color:#a4bdc4}.check-row{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #274b4c;margin-top:8px;padding-top:8px;font-size:11px}.check-row b{color:#c3ece7;font-variant-numeric:tabular-nums}.assembly-copy{font-size:11px;line-height:1.6;color:#9fb7c6}.tab-content h3{font-size:17px;color:#d6eff3}.assembly-steps{display:grid;gap:4px;margin:21px 0}.assembly-steps button{display:flex;align-items:center;gap:8px;text-align:left;width:100%;border:1px solid #2a4254;background:#182a3a;color:#aec6d2;padding:9px;font-size:11px}.assembly-steps button.done{border-color:#407a72;background:#17383d;color:#b9eeea}.assembly-steps button.current{outline:1px solid #98dfe7}.assembly-steps button span{width:23px;display:grid;place-items:center;color:#80c8d3}.assembly-progress{height:5px;background:#304658}.assembly-progress div{height:100%;background:#77dce0;width:11%;transition:width .2s}.assembly-buttons{display:flex;gap:7px;justify-content:space-between;margin:16px 0}.restart{display:block;margin:auto}.micro-note{font-size:10px;line-height:1.6;color:#819dad;margin:15px 0 20px}.science{border-top:1px solid #344c60;margin-top:21px;padding-top:13px}.science summary{list-style:none;display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-size:11px;letter-spacing:.1em;color:#ace0e5;font-weight:750}.science summary::-webkit-details-marker{display:none}.science i{display:block;letter-spacing:normal;font-size:10px;color:#859ead;font-weight:400;margin-top:4px;font-style:normal}.science-body{font-size:11px;line-height:1.65;color:#b9ced8}.science-body b{color:#e3f3f4}.science-body p{margin:12px 0}.console-foot{padding-top:18px;margin-top:24px;border-top:1px solid #263d4e;font-size:9px;letter-spacing:.05em;color:#87a2b5;line-height:1.8}.console-foot span{color:#698396}
@media(max-width:1050px){.workspace{grid-template-columns:minmax(0,1fr) 325px}.inspector-inner{padding:19px 16px}.head-right .nonreal{display:none}.stage-caption p{max-width:260px}}
@media(max-width:740px){.masthead{padding:12px 15px;min-height:62px}.mast-brand strong{font-size:13px}.brandmark{font-size:28px}.head-right{font-size:9px}.mast-brand .eyebrow{font-size:8px}.workspace{display:block;height:auto;min-height:0;max-height:none;overflow:visible}.stage{height: min(65dvh,590px);min-height:380px;flex:none}.stage-panel{display:block;height:auto;overflow:visible}.scene-top{top:21px;left:18px;right:16px}.chapter h1{font-size:23px;margin:10px 0}.chapter p{font-size:9px}.microcaps{font-size:8px;letter-spacing:.08em}.iconbtn{width:34px;height:34px;font-size:21px}.drawer-toggle{display:grid}.stage-bottom{left:15px;bottom:13px;right:15px;font-size:8px;gap:5px}.stage-bottom .scale-tag{display:none}.modes button{min-height:51px;font-size:10px}.modes button b{display:block;padding:0 0 2px}.stage-caption{padding:15px;display:block}.stage-caption p{margin-top:5px;max-width:100%}.inspector{max-height:none;overflow:visible}.inspector-inner{padding:20px 17px}.world-label{font-size:9px}.chapter h1 em{display:block}}
@media(max-width:390px){.head-right{display:none}.chapter h1{font-size:21px}.view-controls{gap:3px}.chapter p{max-width:205px}.coordinates .tiny-separator,.coordinates span:nth-last-child(-n+2){display:none}}
body.embed-mode{height:100vh;height:100dvh;overflow:hidden}body.embed-mode .masthead{display:none}body.embed-mode .workspace{height:100vh;height:100dvh;min-height:0;max-height:none}body.embed-mode .stage-panel{height:100%;min-height:0}body.embed-mode .stage{min-height:0}body.embed-mode .inspector{height:100%}body.embed-mode .stage-caption{padding:11px 22px}body.embed-mode .stage-caption .eyebrow{display:none}
@media(max-width:740px){body.embed-mode .workspace{display:flex;flex-direction:column;height:100dvh;position:relative}body.embed-mode .stage-panel{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}body.embed-mode .stage{height:auto;flex:1;min-height:0}body.embed-mode .stage-caption{display:none}body.embed-mode .inspector{position:absolute;z-index:9;left:0;right:0;bottom:0;max-height:44dvh;overflow:auto;transform:translateY(105%);transition:transform .22s ease;box-shadow:0 -20px 40px #07111ecc;background:#112537}body.embed-mode .inspector.open{transform:translateY(0)}body.embed-mode .scene-top{right:15px;top:18px}body.embed-mode .view-controls{gap:5px}}
