:root { color-scheme: dark; --bg:#050813; --surface:rgba(12,19,35,.89); --surface2:#101a2b; --line:rgba(146,177,217,.14); --muted:#778aa5; --text:#e7f1f6; --cyan:#89e7ef; --gold:#f8c987; --pink:#df8bd1; --head:'Iowan Old Style','Palatino Linotype','Book Antiqua',Georgia,serif; --body:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:var(--body);overscroll-behavior:none}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}::selection{background:#335d74;color:white}.hidden{display:none!important}
body::before{content:"";position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 43% 0,rgba(37,77,106,.13),transparent 60%);z-index:0}
.app-shell{position:relative;display:flex;flex-direction:column;min-height:100svh;max-height:100svh}.masthead{height:74px;flex:0 0 74px;display:flex;align-items:center;justify-content:space-between;padding:0 27px;border-bottom:1px solid var(--line);z-index:5;background:rgba(6,11,22,.88);backdrop-filter:blur(20px)}.branding{display:flex;gap:12px;align-items:center}.brand-sigil{width:36px;height:36px;position:relative;display:grid;place-items:center;border:1px solid rgba(130,226,235,.48);border-radius:50%;box-shadow:inset 0 0 14px #56abb933}.brand-sigil::after{content:"";position:absolute;inset:7px;border:1px dashed #9bdfeb77;border-radius:50%}.brand-sigil span{position:absolute;width:24px;height:1px;background:#abf1ee;transform:rotate(0deg)}.brand-sigil span:nth-child(2){transform:rotate(60deg)}.brand-sigil span:nth-child(3){transform:rotate(120deg)}.brand-name{font-size:12px;font-weight:800;letter-spacing:.18em;line-height:1.35}.brand-name span{font-weight:400;color:#a6b7c5}.brand-name small{display:block;font-size:8px;letter-spacing:.26em;color:#68819a;font-weight:600;margin-top:4px}.masthead-center{letter-spacing:.18em;color:#768ca1;font-weight:650;font-size:10px;display:flex;align-items:center;gap:12px}.masthead-divider{opacity:.25}.live-pulse,.red-dot{width:6px;height:6px;border-radius:50%;background:#b6f5d0;box-shadow:0 0 10px #85ffc0;display:inline-block;animation:blink 3s infinite}@keyframes blink{50%{opacity:.42}}.masthead-actions{display:flex;gap:10px;align-items:center}.icon-button,.button-small{color:#a9c9d8;border:1px solid #273a50;background:#0c1728;border-radius:8px;height:35px;transition:.2s}.icon-button{width:35px;font-weight:bold}.button-small{padding:0 13px;letter-spacing:.025em;font-size:11px}.button-small:hover,.icon-button:hover,.scene-tool:hover{border-color:#83c4d1;color:#edfaff}.reset-icon{margin-right:5px;font-size:15px}
.workbench{display:grid;grid-template-columns:298px minmax(0,1fr) 326px;min-height:0;flex:1}.side{min-height:0;background:rgba(7,12,23,.91)}.left-sidebar{border-right:1px solid var(--line);display:flex;flex-direction:column}.right-sidebar{border-left:1px solid var(--line);display:flex;flex-direction:column}.intro-pane{padding:30px 24px 22px;border-bottom:1px solid var(--line);background:radial-gradient(ellipse at 10% 0,rgba(40,101,110,.17),transparent 80%)}.overline{font-size:9px;letter-spacing:.22em;color:#7e9cac;font-weight:800}.mini-star{color:var(--gold);font-size:12px;margin-right:6px}.intro-pane h1{font-size:37px;letter-spacing:-.07em;line-height:1;margin:17px 0 11px;font-weight:500;color:#e6f0ec}.intro-pane h1 span{color:var(--cyan);font-weight:300}.intro-pane h1 em{color:var(--gold);font-style:normal}.intro-subtitle{color:#e5d9c4;font:italic 17px/1.3 var(--head);letter-spacing:.01em}.intro-pane p{color:#8ea1b7;font-size:11px;line-height:1.8;margin:14px 0 0;max-width:255px}.side-scroll{overflow-y:auto;overflow-x:hidden;min-height:0;flex:1;scrollbar-color:#2a4258 transparent;scrollbar-width:thin}.side-scroll::-webkit-scrollbar{width:6px}.side-scroll::-webkit-scrollbar-thumb{background:#24364b;border-radius:15px}.control-section{padding:22px 24px 24px;border-bottom:1px solid var(--line)}.section-heading{display:flex;gap:12px;align-items:baseline;margin-bottom:19px}.section-heading>span{color:#7ac9d5;font:600 10px var(--body);letter-spacing:.04em}.section-heading h2{font:500 19px var(--head);margin:0;color:#d8e8ef}.preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.preset{background:rgba(16,28,44,.72);border:1px solid rgba(129,165,196,.17);color:#a5b5c8;min-height:68px;border-radius:10px;text-align:left;display:flex;flex-direction:column;justify-content:center;gap:7px;padding:10px 12px;font-size:11px;transition:.2s}.preset-glyph{font-family:var(--head);font-size:22px;line-height:1;color:#6d91a7}.preset:hover,.preset.active{border-color:#67c3c9;background:#19333f;color:#e0ffff;box-shadow:inset 0 0 15px #5098ac11}.preset.active .preset-glyph{color:#bcece9}.slider-group{margin:0 0 23px}.slider-group:last-child{margin-bottom:0}.slider-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.slider-heading label{font-size:11px;color:#c5d6df;font-weight:560}.slider-heading output{font:700 11px var(--body);color:var(--cyan);font-variant-numeric:tabular-nums;white-space:nowrap}.slider-hint,.section-copy{font-size:10px;color:#71879c;line-height:1.7;margin:8px 0 0}.section-copy{margin:-9px 0 19px}.scale-labels{display:flex;justify-content:space-between;gap:5px;color:#647b92;font-size:9px;margin-top:5px}input[type=range]{width:100%;height:15px;margin:0;appearance:none;-webkit-appearance:none;background:transparent;cursor:pointer}input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(90deg,#37788a 0,#9accc9 55%,#263b53 100%);height:3px;border-radius:5px}input[type=range]::-moz-range-track{background:#3f8190;height:3px;border-radius:5px}input[type=range]::-webkit-slider-thumb{appearance:none;width:12px;height:12px;background:#e3f5ee;border:2px solid #4e9fb3;box-shadow:0 0 9px #89dde874;border-radius:50%;margin-top:-4.5px}input[type=range]::-moz-range-thumb{width:11px;height:11px;border:2px solid #4e9fb3;background:#e3f5ee;border-radius:50%}.text-action{color:#80c8d5;border:0;background:none;padding:0;font-size:10px;letter-spacing:.02em}.text-action:hover{color:white}.playbar{display:flex;align-items:center;gap:13px;margin-bottom:17px}.play-button{width:45px;height:45px;border-radius:50%;border:1px solid #7dcbd3;background:radial-gradient(circle at 35% 20%,#38617a,#143745);color:#d5fbfa;box-shadow:0 0 22px #3bb2c22b;font-size:18px;flex:0 0 auto}.play-button:hover{background:#316777}.play-meta{display:flex;flex-direction:column;gap:5px;min-width:0}.play-meta strong{font-size:11px;color:#d2eaf0;font-weight:600}.play-meta small{font-size:9px;color:#788ca7;white-space:nowrap}.scrub-rewind{border:0;background:none;color:#a2c0d2;margin-left:auto;font-size:24px}.speed-row{display:flex;align-items:center;justify-content:space-between;margin-top:13px;font-size:11px;color:#a3b4c3}.speed-row select{background:#101e31;border:1px solid #385366;padding:7px 12px;color:#dceff2;border-radius:6px;font-size:11px}.last-section{border-bottom:0}
.theatre{min-width:0;min-height:0;display:flex;flex-direction:column;background:#060b19}.scene{position:relative;min-height:0;flex:1;overflow:hidden;background:radial-gradient(ellipse at 50% 43%,#102444 0%,#081224 45%,#050915 87%);touch-action:none}.scene canvas{display:block;width:100%;height:100%;outline:none}.stage-topbar{position:absolute;top:22px;left:27px;right:23px;display:flex;justify-content:space-between;align-items:center;pointer-events:none;z-index:2}.stage-label,.stage-readouts{font-size:9px;color:#83b7be;font-weight:700;letter-spacing:.17em;display:flex;align-items:center;gap:10px}.red-dot{background:#65d7ec;box-shadow:0 0 12px #70d4ef}.stage-readouts{gap:17px;color:#6488a0}.stage-center-label{position:absolute;left:6%;top:40%;pointer-events:none;color:#abc6cdaa;display:flex;align-items:start;gap:9px;font:400 clamp(10px,1.2vw,15px)/1.35 var(--head);letter-spacing:.12em;text-shadow:0 1px 10px #020610a1;z-index:2}.stage-center-label em{font-style:italic;color:#7da7b0}.crosshair{font:20px var(--body);color:#79a9ad}.stage-bottom-left{position:absolute;bottom:29px;left:27px;z-index:2;pointer-events:none}.legend-line{display:flex;align-items:center;gap:8px;font-size:9px;font-weight:650;letter-spacing:.15em;color:#a4b8bf}.legend-swatch{width:6px;height:6px;border-radius:50%;display:inline-block;margin-left:9px}.legend-swatch:first-child{margin-left:0}.legend-swatch.gold{background:var(--gold);box-shadow:0 0 8px var(--gold)}.legend-swatch.cyan{background:var(--cyan);box-shadow:0 0 8px var(--cyan)}.legend-swatch.pink{background:var(--pink);box-shadow:0 0 8px var(--pink)}.stage-instructions{margin-top:12px;font-size:9px;letter-spacing:.1em;color:#627a90}.stage-instructions i{font-style:normal;margin:0 7px;color:#5d91a4}.scene-tools{position:absolute;right:20px;top:90px;z-index:4;display:flex;flex-direction:column;gap:7px}.scene-tool{width:35px;height:35px;color:#93a9b9;background:#0a1524ad;border:1px solid #42617a8a;backdrop-filter:blur(12px);border-radius:7px;font-size:18px;transition:.2s}.scene-tool.active{color:#d7ffff;background:#23475399;border-color:#72b9c2}.scene-tool-separator{height:1px;background:#46627766;margin:4px 3px}.theatre-footer{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 25px;border-top:1px solid var(--line);background:#0b1424;color:#8aa7ba;font-size:10px;line-height:1.5}.theatre-footer b{color:#a4dce0;font-weight:650;margin-right:6px}.footer-experiment{color:#5c8294;letter-spacing:.13em;white-space:nowrap;font-size:9px}.scene-error{position:absolute;z-index:10;inset:12%;padding:30px;border:1px solid #c9808a;border-radius:12px;background:#151d30ea;color:#f9d6d4;font-size:14px;line-height:1.8;display:flex;align-items:center;justify-content:center;text-align:center}
.right-intro{padding:27px 21px 18px;border-bottom:1px solid var(--line)}.right-intro h2{margin:10px 0 0;font:400 25px/1.18 var(--head)}.right-intro h2 em{color:#91dce7}.right-scroll{padding:0 18px 22px}.measurement-card{padding:24px 5px 23px;border-bottom:1px solid var(--line)}.measurement-heading{display:flex;justify-content:space-between;letter-spacing:.16em;font-size:9px;font-weight:750;color:#a2b7c2}.signal-live{color:#76d6be;font-size:9px}.magnification-value{margin-top:13px;font:400 69px/.98 var(--head);color:#f3e4c8;letter-spacing:-.06em;font-variant-numeric:lining-nums tabular-nums;text-shadow:0 0 30px #ffd29320}.magnification-value sup{color:#e2b579;font:300 28px var(--head);margin-left:5px}.magnification-description{font-size:10px;color:#8b9fb0;margin-top:12px}.measure-line{height:1px;background:linear-gradient(90deg,#8acbd0 0%,#365768 45%,transparent 100%);margin:21px 0 17px}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:21px 9px}.stat-grid>div{display:flex;flex-direction:column;gap:6px}.stat-grid span{font-size:9px;color:#7290a5;letter-spacing:.1em}.stat-grid strong{font-size:18px;font-weight:450;color:#dbebf1;font-variant-numeric:tabular-nums;letter-spacing:-.025em}.map-card,.curve-card,.inspect-card,.science-card{padding:21px 3px;border-bottom:1px solid var(--line)}.chart-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}.chart-kicker{font-size:9px;letter-spacing:.15em;color:#7eafbb;font-weight:700;margin-bottom:7px}.chart-head h3,.inspect-card h3,.science-card h3{font:400 20px var(--head);color:#dee9f1;margin:0}.chart-info{font:italic 14px var(--head);border:1px solid #496278;color:#7eb9cb;width:25px;height:25px;display:grid;place-items:center;border-radius:50%;cursor:help}.chart-frame{position:relative;aspect-ratio:1;width:100%;border:1px solid #304660;overflow:hidden;border-radius:8px;background:#070d1b}.chart-frame canvas{width:100%;height:100%;touch-action:none;cursor:crosshair;display:block}.map-corner{position:absolute;pointer-events:none;font-size:9px;color:#acc3cb;left:11px;background:#070e1bb8;padding:2px 4px}.map-top{top:8px}.map-bottom{bottom:8px}.map-caption{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#849cb0;font-size:9px;margin-top:11px}.map-caption strong{color:#e2c5a4;font-weight:550}.swatch-bar{width:35px;height:5px;border-radius:4px;display:inline-block;margin-right:7px;vertical-align:1px;background:linear-gradient(90deg,#153253,#3a769f,#bc7dcd,#f7e5b5)}.chart-note{font-size:10px;color:#6f97a8;line-height:1.55;margin:11px 0 0}.map-loading{position:absolute;inset:0;background:#07111bc7;display:flex;align-items:center;justify-content:center;gap:10px;color:#9ae1eb;font-size:10px;letter-spacing:.16em;pointer-events:none}.spinner{width:16px;height:16px;border:2px solid #366475;border-top-color:#cef9e9;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.curve-card{padding-top:24px}#curveMaximum{color:#a2d9da;font-size:9px;letter-spacing:.1em}#lightcurve{width:100%;height:auto;aspect-ratio:640/288;display:block;border-radius:6px;background:linear-gradient(180deg,#0c1d30,#081122);border:1px solid #294056}.curve-caption{display:flex;justify-content:space-between;color:#6b879c;font-size:9px;margin-top:7px}.inspect-card p,.science-card p{color:#839bb0;font-size:11px;line-height:1.8;margin:10px 0 0}.science-card{border-bottom:0}.guide-button{width:100%;border:1px solid #466e7a;background:#112b3a;color:#b8e7ea;margin-top:15px;padding:12px 15px;border-radius:7px;font-size:11px;display:flex;justify-content:space-between}.guide-button:hover{background:#1e4051}
.modal-backdrop{position:fixed;inset:0;z-index:30;background:#030812d9;backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:center;padding:24px;overflow:auto}.modal-content{position:relative;width:min(715px,100%);max-height:min(90svh,900px);overflow:auto;border:1px solid #46768a;background:radial-gradient(ellipse at 80% 0,#162d42 0,transparent 52%),#0d182a;border-radius:15px;padding:40px;box-shadow:0 20px 90px #000a}.modal-content h2{font:400 clamp(35px,5vw,54px)/1.1 var(--head);margin:15px 0}.modal-content h2 em{color:var(--cyan)}.modal-content p{font-size:12px;color:#9eb4c2;line-height:1.85}.modal-content .lead{font-size:15px;color:#c3d3da}.modal-close{position:absolute;right:16px;top:12px;background:none;border:0;color:#a8c2ce;font-size:30px}.learning-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0}.learning-grid>div{border-top:1px solid #3b6977;padding-top:13px}.learning-grid strong{font-size:12px;color:#e2dac9}.learning-grid p{font-size:11px;margin:8px 0}.equation{padding:18px;text-align:center;border:1px solid #396b7c;background:#0c2538;color:#d7eeee;border-radius:8px;font:italic 17px var(--head);margin:15px 0}.primary-button{background:#a7e4df;border:0;color:#092335;border-radius:7px;padding:12px 20px;font-weight:700;margin-top:12px}.primary-button:hover{background:#d2fff7}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);z-index:20;padding:13px 20px;background:#173042e9;border:1px solid #6c9aab;border-radius:9px;color:#d3f7f4;font-size:12px;pointer-events:none;box-shadow:0 10px 35px #0008;max-width:90vw;text-align:center;animation:toastIn .22s ease-out}@keyframes toastIn{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%,0)}}
@media(max-width:1280px){.workbench{grid-template-columns:273px minmax(0,1fr) 300px}.control-section{padding-left:19px;padding-right:19px}.intro-pane{padding-left:19px;padding-right:19px}.right-scroll{padding-left:13px;padding-right:13px}.stage-readouts span:first-child{display:none}.footer-experiment{display:none}}
@media(max-width:1040px){.app-shell{max-height:none;min-height:100svh}.workbench{display:grid;grid-template-columns:280px minmax(0,1fr);grid-template-rows:minmax(570px,75svh) auto}.left-sidebar{grid-column:1;grid-row:1/3}.theatre{grid-column:2;grid-row:1;min-height:570px}.right-sidebar{grid-column:2;grid-row:2;display:block;border-top:1px solid var(--line)}.right-intro{padding:22px}.right-scroll{display:grid;grid-template-columns:1fr 1fr;column-gap:18px;padding:5px 22px}.measurement-card,.map-card,.curve-card,.inspect-card,.science-card{min-width:0}.measurement-card{grid-row:1}.map-card{grid-row:1/3;grid-column:2}.curve-card{grid-row:2;grid-column:1}.inspect-card{grid-row:3;grid-column:1}.science-card{grid-row:3;grid-column:2}.side-scroll{overflow:visible}.left-sidebar .side-scroll{overflow:visible}.stage-center-label{display:none}}
@media(max-width:690px){.masthead{height:62px;flex-basis:62px;padding:0 14px}.masthead-center{display:none}.brand-name{font-size:10px}.brand-name small{font-size:7px}.button-small{font-size:10px;padding:0 8px}.workbench{display:flex;flex-direction:column}.theatre{order:1;min-height:0}.scene{height:57svh;min-height:390px;flex:none}.theatre-footer{min-height:48px;padding:9px 14px;font-size:10px}.left-sidebar{order:2;display:block;border-top:1px solid var(--line);border-right:0}.intro-pane{padding:25px 20px}.intro-pane h1{font-size:43px}.intro-pane p{max-width:450px}.left-sidebar .side-scroll{display:grid;grid-template-columns:1fr 1fr;align-items:start}.control-section{padding:21px 19px}.control-section:nth-child(2){grid-row:1/3;grid-column:2}.control-section:nth-child(3){grid-column:1}.control-section:nth-child(4){grid-column:2}.right-sidebar{order:3;border-left:0}.right-scroll{display:grid;grid-template-columns:1fr 1fr;gap:0 15px;padding:0 18px}.right-intro{padding:22px 20px}.map-card{grid-row:1/3;grid-column:2}.measurement-card{grid-row:1;grid-column:1}.curve-card{grid-row:2;grid-column:1}.stat-grid strong{font-size:15px}.magnification-value{font-size:57px}.chart-head h3{font-size:18px}.stage-topbar{top:13px;left:14px;right:14px}.stage-bottom-left{left:13px;bottom:14px}.stage-instructions{font-size:8px;letter-spacing:.04em}.scene-tools{right:11px;top:57px}.scene-tool{width:32px;height:32px}.modal-content{padding:28px 20px}.learning-grid{gap:14px}}
@media(max-width:460px){.scene{height:54svh;min-height:355px}.left-sidebar .side-scroll{display:block}.control-section{padding:22px}.right-scroll{display:block;padding:0 21px}.measurement-card{padding-top:25px}.magnification-value{font-size:67px}.chart-frame{max-width:390px;margin:auto}.map-card,.curve-card,.inspect-card,.science-card{padding:25px 0}.theatre-footer{font-size:9px}.stage-label{font-size:8px}.stage-readouts{font-size:8px}.stage-instructions{max-width:260px;line-height:1.5}.intro-pane h1{font-size:46px}.learning-grid{grid-template-columns:1fr}.modal-backdrop{padding:10px}.modal-content{max-height:95svh}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}
