:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--bg:#090e1b;--card:#111a2b;--card2:#0d1525;--stroke:#263249;--text:#edf4fd;--muted:#92a4bf;--mint:#69f4d4;--amber:#ffbb76;--violet:#9786ff}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse 60% 35% at 50% -10%,#183050 0,transparent 85%),linear-gradient(#090d18,#090e1b 56%,#0b111f);color:var(--text)}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #b6ffe9;outline-offset:3px}a{color:inherit;text-decoration:none}.shell{max-width:1600px;margin:auto;padding:0 32px}.topbar{height:70px;border-bottom:1px solid #263249;display:flex;align-items:center;justify-content:space-between}.brand{font-weight:800;font-size:17px;letter-spacing:-.7px;display:inline-flex;align-items:center;gap:9px}.brand-mark{height:30px;width:30px;background:#6af2d8;color:#08121b;border-radius:8px;font-size:23px;text-align:center;line-height:27px}.brand-mark span{color:#db672f}.brand-suffix{color:var(--mint);margin-left:-8px}.topmeta{display:flex;gap:12px;align-items:center}.top-chip,.status,.kicker,.eyebrow,.stage-micro,.range-ends,.section-heading,.challenge-meta,.formula>span,.learning-heading,.score-mark{font-size:10px;font-weight:800;letter-spacing:1.6px}.top-chip{color:#9db1ca;border:1px solid #35435a;padding:7px 11px;border-radius:20px}.top-chip.quiet{opacity:.65}.status{font-size:9px;color:#92dbc9}.status-pulse{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--mint);box-shadow:0 0 10px #62f6d5;margin-right:7px}.intro{display:flex;gap:32px;align-items:center;justify-content:space-between;padding:34px 0 30px}.eyebrow{color:var(--mint);margin:0 0 6px}.intro h1{font-size:clamp(48px,5vw,76px);letter-spacing:-5px;margin:0;line-height:.95;font-weight:850}.intro h1 em{font-style:normal;color:var(--mint)}.title-period{color:var(--amber)}.subtitle{color:#b2c2d4;font-size:15px;line-height:1.5;margin:13px 0 0}.learning{border-left:2px solid #45cdb3;padding:4px 0 4px 21px;max-width:458px}.learning-heading{color:#7cf1d7;margin:0 0 9px}.learning-heading span{color:#8194ae}.learning ol{margin:0;padding-left:19px;color:#bdcce0;font-size:12px;line-height:1.8}.learning strong{color:#fff}.workspace{display:grid;grid-template-columns:minmax(255px,286px) minmax(0,1fr) minmax(265px,316px);align-items:start;gap:16px}.panel{border:1px solid var(--stroke);background:linear-gradient(135deg,#131e31 0%,#101829 65%,#0d1727 100%);box-shadow:0 10px 35px #0002;border-radius:15px;min-width:0}.controls,.challenges{padding:21px}.panel-head,.stage-header,.graph-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.kicker{color:#63d9c7;margin:0 0 6px;font-size:9px}.panel h2{font-size:19px;letter-spacing:-.65px;margin:0;font-weight:750}.mini-icon{color:var(--mint);font-size:21px}.small{font-size:12px;line-height:1.7}.muted{color:var(--muted)}.field{margin:25px 0 0}.compact-field{margin-top:22px}.field-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:14px;gap:12px}.field-label label{font-weight:650}.field-label output{color:var(--mint);font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}.field input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:5px;border-radius:9px;background:linear-gradient(90deg,#42d8b9 0%,#42d8b9 var(--fill,50%),#303b51 var(--fill,50%),#303b51 100%);cursor:ew-resize;display:block}.field input[type=range]::-webkit-slider-thumb{appearance:none;width:16px;height:16px;background:#9df5e1;border:3px solid #162435;border-radius:50%;box-shadow:0 0 0 2px #69efd1}.field input[type=range]::-moz-range-thumb{width:12px;height:12px;background:#9df5e1;border:3px solid #162435;border-radius:50%;box-shadow:0 0 0 2px #69efd1}.range-ends{display:flex;justify-content:space-between;color:#7387a0;font-size:8px;margin-top:9px}.preset-section{margin-top:28px;border-top:1px solid #2a3950;padding-top:20px}.section-heading{color:#9db1c9;display:flex;justify-content:space-between;margin-bottom:12px}.section-heading span{color:var(--mint)}.presets{display:grid;gap:8px}.preset{background:#0b1424;border:1px solid #27374c;color:#d6e3f2;text-align:left;padding:10px 10px 10px 42px;border-radius:9px;position:relative;display:flex;flex-direction:column;gap:2px}.preset>span{position:absolute;left:12px;top:13px;font-weight:800;font-size:11px;color:#667d95}.preset b{font-size:12px}.preset small{font-size:10px;color:#8ca3ba}.preset.is-selected{border-color:#6fe9ce;background:linear-gradient(90deg,#153e40 0,#102a32 90%)}.preset.is-selected>span{color:#80f5dc}.preset:hover{border-color:#76ceb9}.actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}.btn{border:1px solid transparent;border-radius:9px;padding:10px 11px;font-size:12px;font-weight:750;transition:background .2s,border-color .2s,transform .2s}.btn:active,.preset:active{transform:scale(.985)}.btn-primary{color:#082521;background:#75f4d7}.btn-primary:hover{background:#a1ffe9}.btn-secondary{color:#e2f0fd;background:#24334b;border-color:#344762}.btn-secondary:hover{background:#304666}.btn-ghost{color:#9bb1c9;border-color:#35455e;background:transparent}.btn-ghost:hover{background:#213049}.actions>.btn-ghost{grid-column:1 / -1}.scientific-note{margin-top:20px;padding:14px;background:#111e2c;border:1px solid #355066;border-radius:9px}.scientific-note>strong{color:var(--amber);font-size:10px;letter-spacing:1.4px}.scientific-note p{font-size:11px;color:#a9bbd0;line-height:1.7;margin:6px 0 0}.scientific-note p strong{color:#e6f7ff}.lab-stack{display:grid;gap:16px;min-width:0}.lab-card{overflow:hidden}.stage-header{padding:18px 22px 15px}.stage-badges{display:flex;gap:7px}.stage-pill{font-size:9px;color:#c4d3e4;border:1px solid #3c5067;padding:6px 8px;border-radius:6px;white-space:nowrap;letter-spacing:.5px}.cyan-dot{width:6px;height:6px;display:inline-block;background:var(--mint);border-radius:50%;margin-right:4px}.stage{height:clamp(370px,34vw,510px);position:relative;overflow:hidden;touch-action:none;background:radial-gradient(ellipse 70% 55% at 47% 58%,#152d45 0,#0d1a2d 60%,#0a1324 100%);cursor:grab}.stage.is-dragging{cursor:grabbing}.stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}.stage-corner{position:absolute;top:16px;pointer-events:none;display:flex;flex-direction:column;gap:5px}.stage-top-left{left:20px}.stage-top-right{right:20px;text-align:right}.stage-micro{color:#8ba7b8;font-size:9px}.stage-corner strong{color:#d1e4ee;font-size:10px;letter-spacing:1px}.stage-corner strong span{color:var(--amber)}.stage-top-right strong{font-size:24px;letter-spacing:-1px;color:#d8fff6;font-weight:650;font-variant-numeric:tabular-nums}.stage-bottom-label{position:absolute;left:18px;right:18px;bottom:12px;display:flex;justify-content:space-between;color:#96b7c9;font-size:9px;letter-spacing:1px;pointer-events:none}.stage-bottom-label span:first-child{color:#80f3d5}.stage-toolbar{min-height:48px;padding:10px 17px;display:flex;align-items:center;gap:10px;border-top:1px solid #28354b}.tool-button{background:#1a2c3f;border:1px solid #36506a;border-radius:7px;color:#b9e5e3;padding:7px 11px;font-size:11px}.tool-button:hover{background:#29445b}.stage-toolbar-instruction{font-size:10px;color:#869ab1;line-height:1.4}.measure-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--stroke)}.measurement{padding:15px 9px 17px 17px;min-width:0;border-right:1px solid var(--stroke)}.measurement:last-child{border:0}.measurement span{font-size:9px;color:#8eabc1;letter-spacing:.8px;font-weight:750}.measurement strong{display:block;font-size:26px;letter-spacing:-.8px;margin-top:7px;font-weight:800;font-variant-numeric:tabular-nums}.measurement.accent strong{color:var(--mint)}.measurement small{display:block;font-size:10px;color:#91a4b9;margin-top:2px}.graph-panel{padding:16px 18px 15px}.graph-header h2{font-size:17px}.graph-legend{font-size:10px;color:#99b7c7;display:flex;gap:7px;align-items:center}.tiny-swatch{width:7px;height:7px;background:var(--mint);border-radius:50%}.legend-target{color:#d9af75;margin-left:5px}.graph-panel canvas{width:100%;height:144px;margin-top:8px;display:block}.graph-caption{font-size:10px;line-height:1.55;color:#92a9bf;border-top:1px solid #263a4c;padding-top:9px;margin:7px 0 0}.score-mark{background:#21384b;color:#86f2d5;padding:8px;border-radius:6px;white-space:nowrap;font-size:10px}.progress-dots{display:flex;gap:6px;margin:16px 0}.progress-dots>span{flex:1;height:5px;border-radius:10px;background:#344158}.progress-dots>span.active{background:#e7b16d}.progress-dots>span.done{background:#79f3d5}.challenge-card{border:1px solid #35516a;background:#0b1729;border-radius:11px;padding:17px 14px}.challenge-meta{display:flex;justify-content:space-between;gap:4px;color:#87f2da;font-size:9px}.challenge-meta span:last-child{color:#ffd18d}.challenge-prompt{font-size:17px;font-weight:700;line-height:1.4;margin:18px 0 22px;min-height:100px}.answer-zone label{display:block;font-size:10px;color:#a5bcd0;font-weight:800;letter-spacing:1px;margin-bottom:9px}.answer-zone input[type=number]{width:100%;height:42px;border-radius:8px;border:1px solid #46627e;background:#0e2035;color:white;padding:8px 12px;font-size:16px}.choice-options{display:grid;gap:8px}.choice-option{display:flex;align-items:center;gap:8px;padding:9px;border:1px solid #30475e;border-radius:8px;cursor:pointer;font-size:12px;color:#d7e7f3}.choice-option:hover{border-color:#6bbaa8}.choice-option input{accent-color:#65eccd}.gate-instruction{border:1px dashed #ce956a;color:#ffcc8e;padding:10px;font-size:12px;line-height:1.5;border-radius:8px}.feedback{min-height:20px;font-size:11px;color:#c4d7ea;line-height:1.5;margin-top:10px}.feedback.success{color:#7af8d6}.feedback.error{color:#ffd096}.challenge-actions{display:grid;grid-template-columns:1fr 70px;gap:8px}.challenge-actions .btn{padding:10px 8px;font-size:11px}.challenge-actions #retryBtn{grid-column:1/-1}.explanation{margin-top:14px;padding:11px;border-left:2px solid #61ebd2;background:#122a38}.explanation span{font-size:10px;letter-spacing:1.2px;font-weight:800;color:#8ef8dd}.explanation p{font-size:11px;line-height:1.7;color:#b8d1df;margin:5px 0 0}.full{width:100%;margin-top:13px;display:flex;justify-content:space-between}.btn-outline{border-color:#5de1c6;color:#95ffe4;background:#1c3843}.btn-outline:hover{background:#245461}.text-button{display:block;margin:15px auto 0;background:none;color:#86cfbd;font-weight:700;font-size:11px;border:0;text-decoration:underline;text-underline-offset:3px}.tip-card{background:linear-gradient(125deg,#202e36,#1d2940);border:1px solid #40505f;border-radius:10px;padding:15px;margin-top:24px}.tip-symbol{display:block;color:#f9c378;font-size:24px;margin-bottom:7px}.tip-card strong{color:#ffcf88;font-size:10px;letter-spacing:1px}.tip-card p{color:#b2c5d2;font-size:11px;line-height:1.75;margin:7px 0 0}.learnmore{display:grid;grid-template-columns:1fr 1fr;gap:38px;padding:33px 25px;border:1px solid #263749;background:#101a29;border-radius:13px;margin-top:20px}.learnmore h2{font-size:22px;margin:5px 0 10px}.learnmore p{color:#b6c5d6;font-size:13px;line-height:1.85;margin:0}.formula{border-left:2px solid var(--amber);padding:5px 0 5px 20px;display:flex;flex-direction:column;gap:10px}.formula>span{color:#f6c484}.formula>strong{font-size:25px;color:#e4f8ef;font-weight:700}.formula small{font-size:11px;line-height:1.7;color:#9fb3c9}footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:23px 1px 30px;color:#7389a3;font-size:10px}@media(max-width:1270px){.shell{padding:0 20px}.workspace{grid-template-columns:minmax(225px,260px) minmax(0,1fr)}.challenges{grid-column:1/-1;display:grid;grid-template-columns:260px minmax(0,1fr);gap:0 20px}.challenges>.panel-head,.challenges>.muted,.challenges>.progress-dots,.challenges>.tip-card{grid-column:1}.challenges>.challenge-card{grid-row:1/span 4;grid-column:2}.challenges>#nextBtn,.challenges>#newSetBtn{grid-column:1}.stage{height:455px}}@media(max-width:790px){.intro{display:block}.learning{margin-top:26px;max-width:none}.workspace{grid-template-columns:1fr}.controls{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.controls>.panel-head,.controls>.muted,.controls>.scientific-note{grid-column:1/-1}.controls>.preset-section{grid-column:1/-1}.presets{grid-template-columns:repeat(3,1fr)}.controls>.actions{grid-column:1/-1}.challenges{grid-column:auto}.stage{height:440px}.top-chip.quiet{display:none}}@media(max-width:570px){.shell{padding:0 12px}.topbar{height:61px}.topmeta{gap:5px}.top-chip{padding:6px;font-size:8px}.status{display:none}.intro{padding:27px 4px 22px}.intro h1{font-size:58px}.subtitle{font-size:13px}.learning{padding-left:16px}.controls{padding:15px;gap:0 14px}.controls .field{margin-top:22px}.controls .compact-field{grid-column:1/-1}.presets{grid-template-columns:1fr 1fr 1fr;gap:5px}.preset{padding:12px 7px 9px}.preset>span{position:static}.preset b{font-size:10px}.preset small{font-size:9px}.stage-header{padding:14px}.stage-header h2{font-size:16px}.stage-pill{font-size:8px}.stage-pill:last-child{display:none}.stage{height:375px}.stage-corner{top:11px}.stage-top-left{left:10px}.stage-top-right{right:10px}.stage-corner strong{font-size:8px}.stage-top-right strong{font-size:19px}.stage-micro{font-size:8px}.stage-bottom-label{font-size:8px;left:9px;right:9px}.stage-toolbar{flex-wrap:wrap;padding:9px}.stage-toolbar-instruction{width:100%}.measurement{padding:11px 5px}.measurement span{font-size:7px}.measurement strong{font-size:20px}.measurement small{font-size:8px}.graph-panel{padding:13px}.graph-header{flex-wrap:wrap}.graph-legend{font-size:9px}.challenges{display:block;padding:18px}.challenge-prompt{min-height:unset}.learnmore{grid-template-columns:1fr;padding:22px;gap:23px}.formula{padding-left:14px}.formula>strong{font-size:21px}footer{flex-direction:column;text-align:center}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
