:root{color-scheme:dark;--bg:#07131e;--panel:#101f2b;--panel2:#0c1a27;--line:#2b3f48;--line2:#1e3541;--text:#f3f1e7;--muted:#92a4ad;--gold:#e9be7f;--mint:#7bd9c7;--blue:#8dd2f4;--red:#fc9d89;--serif:Georgia,'Times New Roman',serif;--sans:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse at 65% -12%,#203344 0%,transparent 36%),var(--bg);color:var(--text);font:14px/1.5 var(--sans)}button,select,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--mint);outline-offset:3px}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit}.app-shell{max-width:1900px;padding:0 32px;margin:0 auto}.topbar{height:84px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #2e4146}.brand{display:flex;align-items:center;gap:12px;letter-spacing:.20em}.brand b{font-size:15px;line-height:1.1}.brand small{display:block;margin-top:4px;font-size:9px;letter-spacing:.19em;color:#95a5a8}.brandmark{border:1px solid #bb9c71;border-radius:50%;width:46px;height:46px;text-align:center;line-height:42px;font-family:var(--serif);font-size:27px;color:var(--gold)}.brandmark span{color:var(--mint)}.topright{display:flex;align-items:center;gap:10px}.chip{display:inline-flex;align-items:center;gap:8px;color:var(--mint);border:1px solid #355d59;background:#16312e;border-radius:3px;padding:5px 10px;font-size:9px;letter-spacing:.12em;font-weight:700;white-space:nowrap}.chip.dim{color:#a2aeb4;background:transparent;border-color:#34464c}.pulse{width:6px;height:6px;border-radius:100%;background:#8ce9bf;box-shadow:0 0 9px #72ddaf;display:inline-block}.return{font-size:11px;text-decoration:none;color:#d7bb91;margin-left:12px}.intro{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:43px 4px 40px}.eyebrow,.supertitle{font-size:10px;color:var(--gold);letter-spacing:.20em;font-weight:700}.eyebrow span{color:var(--muted);margin:0 8px}h1{margin:12px 0 10px;font:normal clamp(34px,4vw,60px)/1.03 var(--serif);letter-spacing:-.03em}h1 em{font-style:italic;color:var(--gold)}.intro p{font-size:14px;color:#adbbc0;max-width:740px;line-height:1.7;margin:0}.seedplate{padding:17px 24px;border-left:1px solid #77664f;background:linear-gradient(90deg,#16252c66,transparent);display:flex;flex-flow:column nowrap;gap:6px;min-width:250px}.seedplate span{font-size:9px;letter-spacing:.13em;color:#8ba0a8}.seedplate strong{font-family:ui-monospace,SFMono-Regular,monospace;font-weight:600;font-size:15px;color:#e2c18d}.mode-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);margin:0 0 18px}.mode{border:0;border-top:3px solid transparent;background:#11202b;color:#b0c0c5;padding:17px 15px 16px;text-align:left;min-height:91px;transition:background .2s,color .2s}.mode:hover{background:#1a3440}.mode.active{background:#24343a;border-top-color:var(--gold);color:white}.mode span{display:block;font-size:11px;color:var(--gold);white-space:nowrap}.mode b{font-size:12px;letter-spacing:.10em;color:#ebf0ed;margin-left:7px}.mode small{display:block;color:#9cabb1;margin:6px 0 0 25px;font-size:11px}.lab-layout{display:grid;grid-template-columns:minmax(238px,283px) minmax(460px,1fr) minmax(240px,287px);gap:15px;align-items:start}.panel{background:linear-gradient(135deg,#142532,#101d28);border:1px solid var(--line);padding:22px 20px}.panel-head{display:flex;justify-content:space-between;align-items:start;gap:6px;margin:0 0 23px}.panel h2,.scene-head h2{margin:3px 0 0;font:normal 23px/1.2 var(--serif)}.panel-index{font:11px/1.6 ui-monospace,monospace;color:#70858f;white-space:nowrap}.preset-row{display:flex;flex-flow:column;gap:7px}.preset-row label,.difficulty-picker label{font-size:10px;color:#95a7a9;letter-spacing:.13em;font-weight:700}select{appearance:none;border:1px solid #36505e;background:#122d39;color:#f3eee1;border-radius:3px;padding:10px 24px 10px 11px;background-image:linear-gradient(45deg,transparent 50%,#c3b18c 50%),linear-gradient(135deg,#c3b18c 50%,transparent 50%);background-position:calc(100% - 16px) 51%,calc(100% - 11px) 51%;background-size:5px 5px,5px 5px;background-repeat:no-repeat;width:100%}.mode-caption{color:#a0c3ca;background:#122c38;border-left:2px solid #6bbcb7;margin:18px 0 22px;padding:10px 12px;font-size:11px;line-height:1.65}.control-stack{display:flex;flex-direction:column;gap:16px}.control-title{display:flex;justify-content:space-between;align-items:center;gap:4px}.control-title label{color:#e0e9e9;font-size:11px}.control-title output{font-size:11px;color:var(--gold);font-weight:700;font-variant-numeric:tabular-nums}.control input[type=range]{accent-color:#dfb577;width:100%;height:17px;display:block;margin:7px 0 0;cursor:ew-resize}.range-ends{display:flex;justify-content:space-between;font-size:9px;color:#7e949e}.button-row{display:flex;gap:7px;flex-wrap:wrap}.controls-panel .button-row{margin:22px 0 15px}.primary-btn,.outline-btn{border:1px solid #967953;padding:10px 13px;background:#d0ab72;color:#0e1720;font-weight:700;border-radius:3px;font-size:11px}.outline-btn{background:transparent;color:#ddc69c;border-color:#715f48}.primary-btn:hover{background:#eed0a3}.outline-btn:hover{background:#293a41}.field-toggle{border-top:1px solid #2a424d;padding-top:13px;display:flex;justify-content:space-between;align-items:center;gap:6px;color:#b0bfc0;font-size:11px}.field-toggle input{accent-color:#83cdb9}.field-toggle span{font-size:9px;color:#7f9294}.scene-column{min-width:0}.scene-head{display:flex;justify-content:space-between;align-items:center;padding:9px 12px 15px 5px}.scene-tag{font-size:10px;letter-spacing:.12em;color:#89adad;display:flex;align-items:center;gap:8px}.scene-frame{height:530px;position:relative;border:1px solid #3f5658;background:#06101b;overflow:hidden;user-select:none;touch-action:none}.scene-frame canvas{display:block;width:100%;height:100%;outline:none;cursor:grab}.scene-frame canvas:active{cursor:grabbing}.scene-vignette{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at center,transparent 40%,#020a1488 100%)}.oncanvas{position:absolute;pointer-events:none;display:flex;flex-direction:column;gap:3px}.top-left{top:18px;left:20px}.top-right{top:18px;right:20px;text-align:right}.tiny-overline{font-size:9px;letter-spacing:.16em;color:#9cbab9}.oncanvas strong{font-size:14px;font-weight:500;color:#d9e9de}.oncanvas small{font-size:10px;color:#8ca2a8}.top-right strong{font:normal 30px/1.1 var(--serif);color:#e9c591;font-variant-numeric:tabular-nums}.muted{color:#798d95}.scene-help{position:absolute;pointer-events:none;bottom:10px;left:14px;right:14px;text-align:center;color:#adc3cc;font-size:9px;letter-spacing:.07em;text-shadow:0 1px 8px #020b11}.scene-help b{color:#f2cf9a}.scene-frame #scene-feedback{position:absolute;left:22px;bottom:48px;color:#f6d2a0;font-size:11px;pointer-events:none}.transport{min-height:64px;display:flex;align-items:center;gap:9px;border:1px solid #30444d;border-top:0;background:#12242f;padding:10px}.transport button{background:#1b3640;border:1px solid #3a5660;border-radius:3px;padding:8px 10px;color:#e3edeb;font-size:11px}.transport button.play-button{background:#bb9b6d;color:#101c21;font-weight:700}.speed-wrap{display:flex;align-items:center;gap:7px;margin-left:auto}.speed-wrap label{font-size:9px;color:#869ba6;letter-spacing:.09em;white-space:nowrap}.speed-wrap select{width:83px;padding:7px 19px 7px 8px;font-size:11px}.tally{border-left:1px solid #40565a;padding-left:13px;display:flex;flex-direction:column;gap:2px;white-space:nowrap}.tally span{font-size:8px;letter-spacing:.12em;color:#95a4ae}.tally b{font-family:ui-monospace,monospace;font-size:13px;color:var(--gold)}.scene-note{font-size:10px;line-height:1.6;color:#94a9aa;padding:12px 4px;display:flex;align-items:start;gap:9px}.small-square{background:#84cbb7;width:6px;height:6px;flex:none;margin-top:4px}.instrumentation .panel-head{margin-bottom:18px}.hero-reading{padding:16px 12px;background:radial-gradient(circle at 85% 20%,#354d48,#172d36 67%);border:1px solid #3b5558;display:flex;flex-direction:column;gap:7px}.hero-reading span,.readings span,.g-heading span:first-child,.meter-title span{letter-spacing:.13em;color:#abc0be;font-size:10px;font-weight:600}.hero-reading strong{font:normal clamp(23px,2.2vw,34px)/1.2 var(--serif);color:#f1d3a0;white-space:nowrap}.hero-reading small{color:#9bb1ae;font-size:10px}.readings{margin:14px 0;display:grid;grid-template-columns:1fr;gap:0}.readings>div{display:flex;flex-direction:column;gap:1px;padding:8px 0;border-bottom:1px solid #2b404b}.readings span{font-size:9px;color:#899fa3}.readings b{font:normal 18px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace;color:#eff0e7}.meter-card{background:#101b25;padding:13px;border:1px solid #304954}.meter-title{display:flex;justify-content:space-between;gap:5px}.meter-title span{font-size:9px}.meter-title small{font-size:9px;color:#9bacb1}.meter{position:relative;height:62px;margin-top:10px;background:linear-gradient(90deg,transparent 49.8%,#6a8890 49.9%,#6a8890 50.1%,transparent 50.2%),repeating-linear-gradient(90deg,#394c52 0,#394c52 1px,transparent 1px,transparent 8.333%);border-top:1px solid #3b5a60}.meter-zero{position:absolute;top:0;bottom:16px;left:50%;width:1px;background:#7faba2}.meter-spot{position:absolute;left:50%;top:16px;transform:translateX(-50%);width:7px;height:20px;background:#f4bc8f;box-shadow:0 0 15px #ffa66a;border-radius:4px;transition:left .1s}.meter-ticks{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:space-between;color:#87a0a7;font:10px ui-monospace,monospace}.g-card{margin-top:15px;background:#1a2d34;border-top:2px solid #c6aa78;padding:13px}.g-heading{display:flex;gap:6px;justify-content:space-between;align-items:center}.g-heading span:first-child{font-size:9px}.g-heading .chip{font-size:8px;padding:3px 5px;white-space:normal}.chip.subtle{background:#29363c;color:#b6c9c4;border-color:#3b5552}.g-card b{display:block;font:normal 26px var(--serif);color:#ead4aa;margin:10px 0 0}.g-card small{color:#97acb1;font-size:10px}.record-btn{width:100%;background:#1b3d44;color:#bfe8d9;border:1px solid #50766f;padding:12px 8px;margin-top:15px;font-size:11px}.record-btn:hover{background:#26545a}.analysis-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:15px 0}.graph-card{background:linear-gradient(130deg,#132631,#0e1d29);border:1px solid #314650;padding:19px;min-width:0}.graph-head{display:flex;align-items:end;justify-content:space-between;gap:9px}.graph-head h3{margin:3px 0;font:normal 23px var(--serif)}.graph-head>span{font-size:11px;color:#91a7b0;white-space:nowrap}.graph{width:100%;height:220px;display:block;cursor:crosshair;margin-top:10px}.lower-panel{background:#101f2a;border:1px solid #324751;margin-bottom:35px;min-height:220px}.tabs{display:flex;border-bottom:1px solid #314650}.tab{color:#92a9ac;border:0;border-bottom:2px solid transparent;background:none;padding:17px 24px;font-size:12px;letter-spacing:.02em}.tab.active{color:#f6d2a1;border-bottom-color:var(--gold);background:#192e37}.tab span{display:inline-block;margin-left:8px;background:#2e444e;color:#d4e3db;border-radius:9px;padding:0 7px;font-size:10px}.tab-content{display:none;padding:24px}.tab-content.active{display:block}.tab-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.tab-head h2{font:normal 28px var(--serif);margin:5px 0}.tab-head p{color:#9db1b6;margin:0;max-width:740px;font-size:12px}.table-scroller{overflow-x:auto}.notebook-table{width:100%;border-collapse:collapse;white-space:nowrap;font:12px ui-monospace,monospace}.notebook-table th{text-align:left;padding:12px 9px;color:#d1b68d;border-bottom:1px solid #607269;font-size:10px;letter-spacing:.1em}.notebook-table td{padding:10px 9px;color:#d5e1df;border-bottom:1px solid #2c414a}.notebook-table .empty{text-align:center;color:#8aa3aa;padding:34px}.difficulty-picker{min-width:150px;display:flex;flex-direction:column;gap:5px}.challenge-meta{display:flex;justify-content:space-between;align-items:center;padding:10px 0 20px;color:#cbb98d;font-size:12px}.challenge-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.challenge{border:1px solid #38515b;background:#152b35;padding:17px}.challenge.done{border-color:#407967;background:#173831}.challenge-top{display:flex;justify-content:space-between;gap:10px}.challenge-top>span{font-size:10px;letter-spacing:.14em;color:#efc68d}.challenge-top b{font-size:10px;color:#abc1bf;text-transform:uppercase}.challenge h3{font:normal 20px var(--serif);margin:9px 0}.challenge p{color:#b4c7cc;font-size:12px;margin:0 0 12px}.challenge-entry{display:flex;gap:7px}.challenge-entry input,.challenge-entry select{flex:1;min-width:0;background:#0b212e;color:#f4eeda;border:1px solid #3b5965;border-radius:2px;padding:9px}.challenge-entry button{background:#d0b07b;color:#132530;border:0;border-radius:2px;padding:8px 13px;font-size:11px;font-weight:700}.challenge .hint{display:inline-block;border:0;background:transparent;color:#e4c08b;padding:8px 0;font-size:11px}.challenge-feedback{font-size:11px;color:#f0c594;padding-top:5px;min-height:18px}.challenge.done .challenge-feedback{color:#a4e2c9}.guide-copy{columns:2;column-gap:65px;max-width:1400px;font:14px/1.82 var(--sans);color:#beccd0}.guide-copy section{break-inside:avoid;margin:0 0 24px}.guide-copy h3{color:#f5d2a0;font:normal 24px var(--serif);margin:0 0 9px}.guide-copy p{margin:0 0 12px}.guide-copy code{color:#e4c99b;font:12px ui-monospace,monospace}.guide-copy strong{color:#e5e8df}.guide-copy ul{margin:5px 0 14px;padding-left:20px}.guide-copy li{margin:5px 0}footer{display:flex;justify-content:space-between;color:#728b93;font-size:10px;letter-spacing:.12em;border-top:1px solid #263c44;padding:14px 0 35px}
@media(max-width:1280px){.app-shell{padding:0 18px}.lab-layout{grid-template-columns:250px minmax(350px,1fr)}.instrumentation{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;align-items:start}.instrumentation .panel-head{grid-column:1/-1;margin:0}.instrumentation .readings{grid-column:2;grid-row:2/5;margin:0}.instrumentation .meter-card{grid-column:3;grid-row:2}.instrumentation .g-card{grid-column:3;grid-row:3;margin:0}.instrumentation .record-btn{grid-column:3;grid-row:4;margin:0}.instrumentation .hero-reading{grid-column:1;grid-row:2}.scene-frame{height:525px}.mode{padding:12px}.mode small{margin-left:0}.graph-head>span{white-space:normal}}
@media(max-width:850px){.app-shell{padding:0 12px}.intro{padding:27px 0;display:block}.seedplate{margin-top:20px;width:max-content;max-width:100%}.topbar{height:69px}.brandmark{width:39px;height:39px;line-height:36px}.topright .chip.dim{display:none}.return{margin-left:0}.mode-nav{grid-template-columns:repeat(5,minmax(150px,1fr));overflow-x:auto}.mode{min-height:77px}.lab-layout{grid-template-columns:1fr}.controls-panel{order:2}.scene-column{order:1}.instrumentation{order:3}.controls-panel .control-stack{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px}.scene-frame{height:450px}.analysis-grid{grid-template-columns:1fr}.graph{height:190px}.challenge-list{grid-template-columns:1fr}.guide-copy{columns:1}.tab{padding:13px 9px}.tab-head{align-items:start}}
@media(max-width:550px){.topright .chip{display:none}.brand b{font-size:12px;letter-spacing:.13em}.brand small{font-size:7px}.intro p{font-size:12px}.intro h1{font-size:37px}.scene-frame{height:400px}.top-left{left:8px;top:9px}.top-right{right:9px;top:9px}.top-right strong{font-size:22px}.scene-help{font-size:8px;bottom:8px}.scene-head h2{font-size:20px}.transport{flex-wrap:wrap}.speed-wrap{margin-left:0}.tally{margin-left:auto}.controls-panel .control-stack{grid-template-columns:1fr}.instrumentation{display:block}.instrumentation .panel-head{margin-bottom:15px}.instrumentation .readings{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.instrumentation .meter-card,.instrumentation .g-card{margin:12px 0}.tabs{flex-wrap:wrap}.tab{flex:1;font-size:11px}.tab-head{display:block}.tab-head .button-row{margin-top:12px}.challenge-meta{gap:10px}.graph-head h3{font-size:20px}footer{display:block}footer span{display:block;margin:5px 0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
@media print{body{background:white;color:black}.topbar,.mode-nav,.lab-layout,.analysis-grid,.tabs,.tab-head button,footer{display:none}.lower-panel{border:0;background:white}.tab-content{display:none!important}#guide-tab{display:block!important}.guide-copy{color:black;columns:2}}
