:root{--base:#071a23;--base2:#0b222c;--panel:#0b2630;--border:rgba(127,185,195,.17);--line:rgba(154,202,196,.12);--ink:#e5eee9;--muted:#8aa5a8;--jade:#71dab8;--gold:#efbd7b;--white:#f5f4e9;--pad:clamp(17px,2.2vw,32px);font-family:'Segoe UI',Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;background:var(--base);color:var(--ink);font-size:14px}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.grain{position:fixed;z-index:20;pointer-events:none;inset:0;opacity:.07;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.56' numOctaves='3' seed='6' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E")}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding:0 max(24px,calc((100vw - 1670px)/2));gap:20px}.brand{color:#e7f5ec;display:flex;align-items:center;gap:10px;text-decoration:none;font-size:17px;font-weight:850;letter-spacing:.08em}.brandfine{font-weight:450}.brand small{display:inline;color:#9dacb3;font-size:9px;letter-spacing:.2em;margin-left:4px}.logo{font-size:29px;color:var(--gold)}.topmeta{display:flex;align-items:center;gap:27px}.status,.serial,.small-button{font-size:10px;letter-spacing:.14em;font-weight:700}.status{color:#9ed8bb}.statusdot{display:inline-block;height:7px;width:7px;border-radius:50%;background:#79dab5;box-shadow:0 0 12px #4fe8a1;margin-right:7px}.serial{color:#788f97}.small-button,.iconBtn,.secondaryBtn{border:1px solid var(--border);background:transparent;color:var(--ink)}.small-button{padding:11px 15px}.small-button span{color:var(--gold);margin-left:5px}.shell{width:min(100%,1690px);margin:0 auto;padding:0 var(--pad)}.intro{padding:42px 4px 37px;display:flex;justify-content:space-between;gap:28px;align-items:end}.eyebrow,.micro{font-size:10px;font-weight:750;letter-spacing:.19em;color:var(--gold)}.rule{display:inline-block;width:26px;height:1px;background:var(--gold);vertical-align:middle;margin:0 12px;opacity:.6}h1{font-family:Georgia,'Times New Roman',serif;font-weight:500;font-size:clamp(58px,8vw,116px);line-height:.86;letter-spacing:-.068em;margin:22px 0 15px;color:var(--white)}.titlemark{font-size:.36em;color:var(--gold);vertical-align:top;position:relative;top:7px;left:14px;letter-spacing:0}.subtitle{font-size:clamp(15px,1.65vw,24px);letter-spacing:.21em;color:#e1ece6;font-weight:550;margin:0 0 12px}.subtitle em{font-family:Georgia,serif;font-weight:400;font-size:1.25em;letter-spacing:0;text-transform:none;color:var(--gold)}.lead{font-size:14px;color:var(--muted);max-width:690px;line-height:1.75;margin:0}.lead b{color:#c6e1d8;font-weight:550}.formula{border-left:1px solid #426067;padding:15px 0 15px 29px;min-width:245px;display:flex;flex-direction:column;gap:9px;color:var(--gold)}.formula span,.formula small{font-size:10px;font-weight:750;letter-spacing:.16em;color:#8ca7a7}.formula strong{font-family:Georgia,serif;font-size:clamp(25px,3vw,38px);font-weight:400;color:var(--white)}.modes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:20px}.mode{position:relative;display:flex;gap:12px;align-items:center;min-height:88px;text-align:left;border:1px solid var(--border);background:#0a212b;color:#98b2af;padding:14px;transition:.2s ease}.mode:hover{border-color:#437b76;background:#102e37}.mode.active{color:var(--white);background:linear-gradient(140deg,#15393d,#112c34);border-color:#70b4a6;box-shadow:inset 0 2px 0 var(--jade)}.modeNo{font-family:Georgia,serif;font-size:32px;color:#6e948e}.mode.active .modeNo{color:var(--gold)}.modeText{display:block}.modeText b{display:block;font-size:13px;font-weight:650;color:inherit;letter-spacing:.01em}.modeText small{display:block;margin-top:6px;font-size:10px;letter-spacing:.025em;color:#839da1}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 370px;align-items:start;gap:16px}.leftColumn{min-width:0}.stageHead{background:#102c36;border:1px solid var(--border);border-bottom:0;padding:22px 22px 16px;display:flex;justify-content:space-between;align-items:center;gap:10px}.stageHead h2{font-family:Georgia,serif;font-size:25px;font-weight:400;letter-spacing:-.015em;margin:7px 0 5px}.stageHead p{margin:0;color:var(--muted);font-size:12px}.stageEyebrow{font-size:9px}.headActions{display:flex;gap:8px}.iconBtn{height:35px;width:35px;font-size:19px;border-radius:5px}.iconBtn:hover,.secondaryBtn:hover{background:#19424a}.stage{height:clamp(360px,38vw,610px);position:relative;overflow:hidden;border:1px solid var(--border);background:radial-gradient(ellipse at 48% 42%,#164153,#091b27 72%)}.stage:after{content:'';position:absolute;pointer-events:none;inset:0;background:linear-gradient(180deg,transparent 60%,rgba(1,11,16,.44) 100%)}#scene{height:100%;width:100%;display:block;cursor:grab;position:relative;z-index:1}#scene:active{cursor:grabbing}.stageHud{position:absolute;top:16px;left:16px;right:16px;z-index:3;display:flex;gap:8px;flex-wrap:wrap}.chip{background:#071a22c9;border:1px solid #2d5056;color:#a4bcc1;font-size:9px;letter-spacing:.13em;padding:8px 10px;backdrop-filter:blur(5px)}.stageFooter{z-index:3;position:absolute;bottom:15px;left:17px;right:17px;display:flex;justify-content:space-between;align-items:center;gap:12px}.stageLegend{display:flex;gap:13px}.stageLegend span,#pointerHint{font-size:9px;letter-spacing:.10em;color:#a0bdb9}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px}.gold{background:var(--gold)}.green{background:var(--jade)}.blue{background:#71aad6}.readoutRow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#0e2933;border:1px solid var(--border);border-top:0}.readout{padding:18px 14px;border-right:1px solid var(--border)}.readout:last-child{border-right:0}.readout label{display:block;font-size:9px;letter-spacing:.14em;color:#93acaa;font-weight:750;white-space:nowrap}.readout div{margin-top:8px;display:flex;align-items:baseline;gap:6px}.readout strong{font-weight:500;font-size:clamp(19px,2vw,29px);font-variant-numeric:tabular-nums;letter-spacing:-.04em}.readout span{color:var(--gold);font-size:11px}.graphGrid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:14px 0}.graphPanel{min-width:0;background:#0d2932;border:1px solid var(--border);padding:17px 18px}.graphHeader{display:flex;justify-content:space-between}.graphHeader h3{font-size:15px;font-weight:500;margin:6px 0 8px}.tinyTag{border:1px solid var(--border);padding:5px 8px;font-size:9px;color:var(--muted);height:fit-content}.graphPanel canvas{display:block;width:100%;height:173px;cursor:crosshair}.graphPanel p{color:#7e9fa4;font-size:10px;line-height:1.5;margin:4px 0}.greenText{color:var(--jade)}.yellowText{color:var(--gold)}.bottomStrip{background:#123139;border:1px solid var(--border);padding:18px 21px;display:flex;align-items:center;justify-content:space-between;gap:15px}.bottomStrip p{font-size:12px;margin:9px 0 0;color:#b0c6c1;line-height:1.5}.primaryBtn{background:var(--jade);border:1px solid var(--jade);color:#092d2d;font-size:10px;font-weight:850;letter-spacing:.06em;padding:13px 15px;white-space:nowrap}.primaryBtn:hover{background:#a3f1cf}.secondaryBtn{font-size:10px;font-weight:700;letter-spacing:.07em;padding:12px 14px;white-space:nowrap}.panel{background:#0d2932;border:1px solid var(--border);min-width:0;min-height:880px}.panelNav{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--border)}.panelTab{height:54px;border:0;background:#0a2029;color:#8ba7a7;font-size:9px;font-weight:750;letter-spacing:.075em;border-right:1px solid var(--border)}.panelTab:last-child{border-right:0}.panelTab:hover{color:var(--white)}.panelTab.active{color:var(--gold);background:#10343b;border-bottom:2px solid var(--gold)}.panelContent{padding:24px 22px}.panelContent.hidden{display:none}.panelIntro{padding-bottom:22px;border-bottom:1px solid var(--border)}.panelIntro h3{font-family:Georgia,serif;font-size:25px;font-weight:400;margin:10px 0 8px;color:var(--white)}.panelIntro p{font-size:12px;color:var(--muted);line-height:1.65;margin:0}.transport{padding:21px 0 20px;display:flex;align-items:center;gap:9px;flex-wrap:wrap;border-bottom:1px solid var(--border)}.speedControl{flex:1;min-width:110px}.speedControl label,.fieldLabel{display:block;font-size:9px;font-weight:700;color:#8eacab;letter-spacing:.12em;margin-bottom:8px}.speedControl select,.challengeTools select{background:#0a2029;border:1px solid var(--border);color:var(--ink);padding:8px 7px;width:100%;font-size:11px}.controlGroup{padding:14px 0 12px;border-bottom:1px solid var(--border)}.groupTitle{color:var(--gold);font-family:Georgia,serif;font-size:17px;padding:3px 0 13px}.groupTitle span{font-family:inherit;font-size:10px;letter-spacing:.17em;margin-left:10px;color:#a1c0ba;font-weight:700}.control{margin-bottom:17px}.control:last-child{margin-bottom:6px}.control.emphasis{padding:8px 9px;margin-left:-9px;margin-right:-9px;background:#1a4245;border-left:2px solid var(--gold)}.controlLabel{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:11px}.controlLabel label{font-size:12px;color:#d1e3df}.controlLabel small{font-size:10px;color:#8baca8;margin-left:5px}.controlLabel output{font-size:12px;font-variant-numeric:tabular-nums;color:var(--gold);white-space:nowrap;font-weight:700}input[type=range]{appearance:none;width:100%;display:block;height:4px;border-radius:5px;background:linear-gradient(90deg,var(--jade) var(--progress,50%),#294b53 var(--progress,50%));outline-offset:7px}input[type=range]::-webkit-slider-thumb{appearance:none;width:15px;height:15px;background:#e9c38d;cursor:ew-resize;border:3px solid #18414a;border-radius:50%;box-shadow:0 0 0 1px #e9c38d}input[type=range]::-moz-range-thumb{height:10px;width:10px;background:#e9c38d;border:3px solid #18414a;border-radius:50%}.switchGroup{display:flex;gap:5px;margin:5px 0 19px}.switch{flex:1;font-size:9px;letter-spacing:.07em;font-weight:700;border:1px solid #315259;background:#112c35;color:#a3b6b7;padding:10px 6px}.switch.active{background:#365757;color:#fff6dd;border-color:#b7a16a}.panelNote{display:flex;gap:14px;background:#15313a;border:1px solid #345661;margin-top:25px;padding:15px}.panelNote span{color:var(--gold);font-size:25px}.panelNote strong{font-size:9px;letter-spacing:.14em;color:var(--gold)}.panelNote p{font-size:11px;color:#a3bdbd;line-height:1.6;margin:5px 0}.challengeTools{display:flex;gap:8px}.scoreLine{padding:15px 0;font-weight:750;font-size:10px;letter-spacing:.13em;color:var(--jade);border-bottom:1px solid var(--border)}.challengeList{display:flex;flex-direction:column;gap:12px;padding:16px 0}.challengeCard{background:#102f38;border:1px solid var(--border);padding:15px}.challengeCard.success{border-color:#5ba994}.challengeTop{display:flex;justify-content:space-between;align-items:center;color:var(--gold);font-size:9px;letter-spacing:.14em}.challengeCard h4{font-size:12px;line-height:1.55;font-weight:500;margin:10px 0;color:#e1efe8}.challengeCard input{width:100%;background:#081d27;border:1px solid #44656b;padding:11px;color:white;font-size:13px}.challengeCard .smallCheck{margin:9px 0;background:var(--jade);border:0;color:#092525;font-size:10px;font-weight:800;padding:9px 12px}.answerOptions{display:flex;flex-direction:column;gap:7px}.answerOptions label{display:flex;align-items:start;gap:8px;font-size:11px;color:#bed3cb}.challengeCard .feedback{font-size:11px;line-height:1.6;color:#b0c6bc;margin-top:8px}.challengeCard .hintBtn{border:0;background:none;padding:6px 0;color:#dfb779;font-size:10px;text-decoration:underline}.challengeCard .hintText{display:none;font-size:11px;color:#b2c0ba;line-height:1.5}.challengeCard .hintText.show{display:block}.notesEmpty{padding:22px 0;color:#95b5b4;font-size:12px;line-height:1.7}.noteEntry{border-bottom:1px solid var(--border);padding:15px 0}.noteEntry strong{font-size:12px;color:#e3e9df}.noteEntry p{font-size:11px;color:#91b4ac;line-height:1.6;margin:7px 0}.noteButtons{display:flex;gap:8px;margin-top:19px}.guideChapter{padding:9px 0 13px;border-bottom:1px solid var(--border)}.guideChapter h4{font-family:Georgia,serif;font-weight:400;font-size:19px;color:var(--gold);margin:14px 0}.guideChapter p,.guideChapter li{font-size:12px;line-height:1.85;color:#afc8c3}.guideChapter ol,.guideChapter ul{padding-left:20px}.guideChapter code{color:#e0cfaa;font-family:ui-monospace,monospace;font-size:11px}footer{padding:33px 3px 48px;display:flex;justify-content:space-between;gap:20px;color:#7c999b;font-size:10px;letter-spacing:.08em;border-top:1px solid var(--border);margin-top:35px}footer strong{color:var(--gold)}@media(max-width:1240px){.workspace{grid-template-columns:minmax(0,1fr) 334px}.panelContent{padding:20px 15px}.mode{padding:10px;gap:7px}.modeNo{font-size:27px}.modeText b{font-size:12px}.readout label{white-space:normal}.small-button{display:none}}@media(max-width:950px){.workspace{grid-template-columns:1fr}.panel{min-height:0}.panelContent{padding:22px}.modes{grid-template-columns:repeat(5,minmax(132px,1fr));overflow:auto}.mode{min-width:132px}.formula{min-width:195px}.stage{height:480px}}@media(max-width:640px){.topbar{height:58px;padding:0 16px}.brand{font-size:13px}.brand small,.serial{display:none}.topmeta{gap:8px}.status{font-size:8px}.shell{padding:0 13px}.intro{padding:32px 2px 25px;display:block}.formula{display:none}.subtitle{letter-spacing:.10em}.lead{font-size:12px}.mode{min-height:70px}.modeNo{font-size:24px}.stageHead{padding:15px}.stageHead h2{font-size:21px}.stage{height:380px}.stageHud .chip:last-child{display:none}.stageFooter{display:block}.stageLegend{margin-bottom:6px}.stageLegend span,#pointerHint{font-size:8px}.readoutRow{grid-template-columns:1fr 1fr}.readout:nth-child(2){border-right:0}.readout:nth-child(-n+2){border-bottom:1px solid var(--border)}.graphGrid{grid-template-columns:1fr}.graphPanel canvas{height:180px}.bottomStrip{display:block}.bottomStrip button{margin-top:15px;width:100%}footer{display:block;line-height:2}.panelNav{position:sticky;top:0;z-index:8}.panelTab{height:50px}}
