:root{color-scheme:dark;--deep:#081526;--panel:#102a3c;--line:#32596e;--text:#e8f5f4;--dim:#adcbd4;--mint:#86efcf;--gold:#ffdaa0;--pink:#ffc3b7;--shadow:#061321cc;--radius:17px}
*{box-sizing:border-box}
html{background:#071625;scroll-behavior:smooth}
body{margin:0;background:radial-gradient(ellipse at 11% 5%,#193847 0,#081729 42%,#071321 100%);color:var(--text);font:14px/1.46 system-ui,-apple-system,"Noto Sans Telugu","Segoe UI",sans-serif;min-height:100vh}
button,input,select{font:inherit}
button{cursor:pointer;touch-action:manipulation}
button:disabled{cursor:not-allowed;opacity:.6}
a{color:var(--mint);text-decoration:none}
a:hover{text-decoration:underline}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,canvas:focus-visible{outline:3px solid #f6dd9e;outline-offset:3px}
[hidden]{display:none!important}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.skip{position:absolute;left:-9999px;top:0;background:#d6fcf1;color:#092b32;padding:10px 14px;z-index:100}
.skip:focus{left:12px;top:8px}
.lab-shell{max-width:1530px;margin:auto;padding:0 clamp(10px,2.4vw,35px) 24px}
.sitebar{height:65px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #24455a}
.brand{display:flex;gap:9px;align-items:center;color:white;line-height:1.1}
.brand img{flex:0 0 auto}
.brand strong{display:block;font-size:19px;font-weight:900;letter-spacing:-.04em}
.brand small{color:#78e8d2;font-weight:900;display:block;letter-spacing:.09em;font-size:9px;margin-top:4px}
.site-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.back-link{font-size:12px;font-weight:760;color:#bcd5df}
.select-label{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:840;color:#aacccf}
select{color:#e5f9f4;border:1px solid #436c7e;background:#16364a;border-radius:9px;min-height:38px;padding:6px 10px}
.hero{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:18px 2px 15px}
.hero-copy{flex:1;min-width:0}
.eyebrow{display:block;font-size:10px;color:#7ee9ce;letter-spacing:.13em;font-weight:900}
.hero h1{font-size:clamp(23px,2.45vw,38px);line-height:1.1;letter-spacing:-.045em;margin:6px 0;color:#f4fbfb}
.hero h1 em{color:#9bf0cf;font-style:normal}
.hero p{margin:0;font-size:12px;line-height:1.4;color:#c0d5df;max-width:780px}
.hero-facts{display:flex;flex-direction:column;padding:12px 21px;border:1px solid #467580;border-radius:15px;background:linear-gradient(140deg,#14374a,#18374c);min-width:235px;box-shadow:0 8px 28px #0003}
.hero-facts span:first-child{font-size:9px;color:#b6e8dc;letter-spacing:.14em;font-weight:900}
.hero-facts strong{font-size:30px;line-height:1.25;color:#ffe2a8;white-space:nowrap;font-weight:850}
.hero-facts strong small{font-size:12px;color:#ebf5e7;letter-spacing:0}
.hero-facts span:last-child{font-size:10px;color:#a9cccf}
.mode-nav{display:flex;gap:8px;overflow-x:auto;scrollbar-color:#2d5b70 transparent;scrollbar-width:thin;scroll-snap-type:x proximity;padding-bottom:8px;margin-bottom:10px}
.mode-nav button{min-height:46px;display:flex;align-items:center;gap:8px;white-space:nowrap;border:1px solid #365a70;background:linear-gradient(#123248,#0a263d);color:#c9e1e4;font-size:12px;font-weight:830;padding:9px 14px;border-radius:13px;scroll-snap-align:start}
.mode-nav button span{font-size:19px}
.mode-nav button[aria-pressed=true]{border-color:#76f0d1;color:#f3fff8;background:#1b5758;box-shadow:0 0 0 1px #8cfee022,inset 0 0 12px #68f5d315}
.workspace{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(360px,.82fr);align-items:start;gap:12px}
.visual-workbench,.lab-panel{background:linear-gradient(150deg,#122f42,#0a2238);border:1px solid #396277;border-radius:var(--radius);box-shadow:0 12px 40px #0005;min-width:0}
.visual-workbench{overflow:hidden;position:sticky;top:10px}
.visual-heading{min-height:58px;padding:11px 13px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #36586a}
.visual-heading>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.visual-heading strong{font-size:15px;line-height:1.2;letter-spacing:-.015em}
.live-label{font-size:9px;color:#99eed6;font-weight:900;letter-spacing:.11em;display:flex;align-items:center;gap:8px}
.live-label i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#7cf0d3;box-shadow:0 0 9px #71f3d0}
.visual-heading-right{display:flex;align-items:center;gap:7px;flex-shrink:0}
.schematic{font-size:9px;color:#a5c9d1;font-weight:800;white-space:nowrap}
.focus-btn{border:1px solid #458c85;border-radius:9px;color:#dbfff5;background:#1e5458;min-height:35px;padding:7px 11px;font-weight:830;font-size:11px;white-space:nowrap}
.stage-screen{position:relative;width:100%;aspect-ratio:1100/650;max-height:54vh;background:#07182b;overflow:hidden}
.stage-screen canvas{width:100%;height:100%;display:block}
.screen-values{position:absolute;top:11px;right:10px;display:grid;gap:5px;pointer-events:none;max-width:37%;z-index:2}
.screen-values .screen-chip{padding:6px 10px;border:1px solid #50878a;border-radius:10px;background:#071e32df;display:flex;flex-direction:column;align-items:flex-end;min-width:110px;gap:1px}
.screen-values small{color:#afd8d2;text-transform:uppercase;letter-spacing:.07em;font-size:9px;font-weight:820}
.screen-values strong{font-size:17px;font-weight:900;color:#ffe1ad;white-space:nowrap}
.stage-watermark{position:absolute;bottom:8px;right:9px;font-size:8px;color:#d8e8ed99;font-weight:800;letter-spacing:.08em;pointer-events:none}
.time-travel-controls,.extinction-rail{padding:10px 17px 8px;background:#0b293e;border-top:1px solid #356377}
.rail-head{display:flex;justify-content:space-between;gap:15px;align-items:center;font-size:11px;color:#bbe8da;font-weight:850;margin-bottom:3px}
.rail-head strong{color:var(--gold);font-size:13px;white-space:nowrap}
input[type=range]{accent-color:#77efd2;width:100%;height:29px;min-width:0;cursor:grab;touch-action:pan-y}
input[type=range]:active{cursor:grabbing}
.rail-labels{display:flex;justify-content:space-between;gap:10px;color:#a9c5d4;font-size:10px;font-weight:760}
.zoom-chips{display:flex;gap:6px;margin-top:7px}
.zoom-chips button{flex:1;min-height:34px;padding:6px;border:1px solid #37697e;border-radius:8px;color:#c1e5e2;background:#16394b;font-size:10px;font-weight:820}
.zoom-chips button[aria-pressed=true]{border-color:#a1ffe1;background:#266961;color:white}
.crisis-stops{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:5px}
.crisis-stops button{min-height:36px;border-radius:8px;border:1px solid #467382;background:#1a3c52;color:#d9eee7;font-size:11px;font-weight:790}
.visual-foot{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 14px;border-top:1px solid #2b5168}
.visual-foot p{margin:0;font-size:11px;line-height:1.4;color:#bbd6d8;max-width:72%}
.transport{display:flex;gap:6px;align-items:center}
.transport button,.transport select{min-height:35px;padding:6px 9px;white-space:nowrap;font-size:11px;font-weight:840;border-radius:8px;color:#e2fff4;background:#1b5362;border:1px solid #467c86}
.transport select{width:65px;background:#204459}
.lab-panel{padding:16px;display:flex;flex-direction:column;gap:11px}
.panel-head{display:flex;justify-content:space-between;align-items:start;gap:10px}
.unit-kicker{display:block;font-weight:850;color:#86eccc;letter-spacing:.11em;font-size:9px}
.panel-head h2{font-size:clamp(19px,1.55vw,25px);line-height:1.15;margin:5px 0 0;letter-spacing:-.025em}
.listen-button{display:flex;align-items:center;gap:5px;flex-shrink:0;min-height:41px;border:1px solid #5d868c;border-radius:12px;color:#e5f8f1;background:#1c4a55;padding:6px 10px;font-size:11px;font-weight:820}
.listen-button span:first-child{font-size:15px}
.listen-button[aria-pressed=true]{border-color:#ebc581;background:#4e4e49}
.panel-description{margin:0;font-size:12px;color:#c5d9e3;line-height:1.5}
.learning-brief{background:#173e4b;border-radius:11px;padding:10px 12px;border:1px solid #447b7c}
.learning-brief span{font-size:9px;font-weight:900;color:#9bf8d7;letter-spacing:.1em}
.learning-brief p{font-size:12px;line-height:1.45;margin:4px 0;color:#e7f4ef}
.mode-tools{display:grid;gap:8px}
.field{display:grid;gap:5px}
.field-head{display:flex;justify-content:space-between;gap:10px;font-weight:780;color:#d0e7e7;font-size:11px}
.field-head output{color:#ffe1a6;white-space:nowrap}
.field input[type=range]{width:100%}
.field select{width:100%}
.mode-tools .chips,.event-pills,.branch-pills,.mode-cards{display:flex;flex-wrap:wrap;gap:6px}
.mode-tools button{min-height:41px;border:1px solid #486f80;border-radius:9px;color:#d6eff2;background:#173f50;font-weight:770;font-size:11px;padding:8px 11px}
.mode-tools button[aria-pressed=true]{border-color:#8cf5d5;background:#256d65;color:white;box-shadow:inset 0 0 0 1px #6fe6bc}
.mode-tools .event-pills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.mode-tools .event-pills button{text-align:left;font-size:10px;min-height:48px;line-height:1.25;padding:8px}
.mode-tools .event-pills button small{display:block;color:#a6d2d5;font-size:10px;margin-top:3px}
.mode-tools .event-pills button[aria-pressed=true] small{color:#d4e8da}
.control-divider{height:1px;background:#315a72;margin:5px 0}
.mini-heading{font-size:10px;font-weight:900;letter-spacing:.08em;color:#99dbd1}
.fact-box{border:1px solid #3c6a7c;background:#112e43;border-radius:10px;padding:10px}
.fact-box strong{display:block;color:#ffe0a7;font-size:12px;margin-bottom:5px}
.fact-box p{font-size:11px;line-height:1.45;color:#c7e4e5;margin:0}
.live-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.metric{padding:10px;border-radius:10px;background:linear-gradient(130deg,#103a4c,#0e2d43);border:1px solid #365d70;min-height:70px;min-width:0}
.metric span{display:block;font-weight:700;color:#b0d0d8;font-size:10px;line-height:1.2}
.metric strong{display:block;font-size:clamp(15px,1.3vw,19px);color:#fff0c6;margin-top:6px;font-weight:900;line-height:1.15;overflow-wrap:anywhere}
.discovery{background:linear-gradient(115deg,#183d48,#12353f);border-left:3px solid #86e9c3;border-radius:8px;padding:10px 12px}
.discovery span{display:block;font-size:10px;font-weight:900;letter-spacing:.08em;color:#a1f5d9}
.discovery p{font-size:12px;line-height:1.47;color:#d4ece6;margin:4px 0 0}
.prediction{padding:12px;border-radius:12px;border:1px solid #486c7c;background:linear-gradient(130deg,#18374b,#152e42)}
.prediction-head{display:flex;justify-content:space-between;gap:7px;align-items:center;font-size:11px;color:#dff5ee}
.prediction-head span{font-size:10px;color:#ffddae;white-space:nowrap}
.prediction p{font-size:11px;color:#d5e7eb;line-height:1.45;margin:8px 0}
.prediction-options{display:grid;gap:6px}
.prediction-options button{min-height:43px;border-radius:8px;background:#1c4357;color:#e3f3f3;border:1px solid #4c7786;text-align:left;padding:9px 11px;font-size:11px;line-height:1.36;font-weight:770}
.prediction-options button.correct{background:#27654e;border-color:#8ff1b9}
.prediction-options button.incorrect{background:#563e48;border-color:#d89499}
#predictionFeedback:empty{display:none}
#predictionFeedback{color:#b9f4d6;font-weight:740}
.panel-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.panel-actions button{min-height:42px;padding:7px 6px;background:#173e50;border:1px solid #476d7c;border-radius:9px;color:#e0f4ed;font-size:11px;font-weight:760}
.science-context{display:grid;gap:10px;margin-top:14px}
.science-context details{border:1px solid #365b71;border-radius:12px;background:#0e293d}
.science-context summary{padding:13px 15px;cursor:pointer;font-size:12px;font-weight:850;color:#cae9e4}
.science-context details[open] summary{border-bottom:1px solid #345b68}
.science-context p{font-size:12px;line-height:1.57;color:#d0e2e9;margin:12px 16px}
.myth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 15px}
.myth-card{border-radius:10px;border:1px solid #40697b;background:#153649;padding:12px}
.myth-card strong{font-size:11px;color:#ffc9aa}
.myth-card p{margin:6px 0;font-size:12px}
.myth-card .evidence{color:#b9f6dc}
.sources{display:flex;gap:8px;flex-wrap:wrap;padding:13px}
.sources a{font-size:11px;border:1px solid #44768a;border-radius:8px;padding:9px 10px}
footer{display:flex;justify-content:space-between;gap:20px;margin:17px 0;font-size:11px;color:#a7c4d0;flex-wrap:wrap}
.toast{position:fixed;z-index:100;bottom:25px;left:50%;transform:translateX(-50%);background:#123d47;border:1px solid #6bd7bd;box-shadow:0 12px 60px #0008;color:#e7fff4;font-size:12px;font-weight:780;padding:12px 18px;border-radius:12px;max-width:calc(100% - 35px)}
/* Fullscreen focus: no navigation gymnastics; scroll only the control panel. */
body.focus-mode{overflow:hidden}
body.focus-mode .sitebar,body.focus-mode .hero,body.focus-mode .science-context,body.focus-mode footer{display:none}
body.focus-mode .lab-shell{height:100dvh;max-height:100dvh;display:flex;flex-direction:column;padding-top:7px;padding-bottom:6px;overflow:hidden}
body.focus-mode .mode-nav{flex-shrink:0;margin-bottom:6px}
body.focus-mode .workspace{flex:1;min-height:0;grid-template-columns:minmax(0,1.55fr) minmax(345px,.72fr);align-items:stretch;overflow:hidden}
body.focus-mode .visual-workbench{height:100%;position:relative;top:auto;display:flex;flex-direction:column;min-height:0}
body.focus-mode .stage-screen{min-height:0;max-height:none;flex:1;aspect-ratio:auto}
body.focus-mode .lab-panel{height:100%;overflow-y:auto;scrollbar-color:#397482 transparent}
body.focus-mode .visual-heading{min-height:42px}
body.focus-mode .visual-foot{min-height:45px}
@media(max-width:1100px){
 .workspace{grid-template-columns:minmax(0,1.28fr) minmax(320px,.88fr)}
 .hero-facts{min-width:204px}
 .visual-heading-right .schematic{display:none}
 .visual-foot p{max-width:66%}
}
@media(max-width:780px){
 .lab-shell{padding:0 10px 20px}
 .sitebar{height:56px}
 .brand strong{font-size:16px}
 .brand small{font-size:8px}
 .site-right{gap:5px}
 .site-right .back-link{display:none}
 .site-right select{padding:5px;min-height:37px;font-size:11px}
 .hero{padding:10px 0;gap:8px}
 .hero h1{font-size:clamp(24px,5vw,30px);margin:4px 0}
 .hero p{font-size:11px}
 .hero-facts{display:none}
 .eyebrow{font-size:9px}
 .mode-nav{gap:6px;margin-bottom:7px}
 .mode-nav button{font-size:11px;min-height:41px;padding:7px 10px}
 .mode-nav button span{font-size:16px}
 .workspace{display:flex;flex-direction:column;gap:9px}
 .visual-workbench{width:100%;position:sticky;top:0;z-index:5;box-shadow:0 14px 40px #0008}
 .visual-heading{min-height:43px;padding:7px 10px}
 .visual-heading strong{font-size:12px}
 .focus-btn{min-height:32px;font-size:10px}
 .stage-screen{max-height:30vh;aspect-ratio:1.95}
 .screen-values{top:5px;right:5px;max-width:39%;gap:3px}
 .screen-values .screen-chip{padding:4px 6px;min-width:77px;border-radius:7px}
 .screen-values strong{font-size:12px}
 .screen-values small{font-size:8px}
 .stage-watermark{font-size:7px;bottom:4px;right:4px}
 .time-travel-controls,.extinction-rail{padding:6px 10px}
 .rail-head{font-size:10px;margin-bottom:0}
 .rail-head strong{font-size:11px}
 input[type=range]{height:28px}
 .zoom-chips{margin-top:4px;gap:4px}
 .zoom-chips button{min-height:32px;font-size:9px;padding:4px}
 .crisis-stops button{min-height:32px}
 .visual-foot{padding:6px 10px;min-height:40px}
 .visual-foot p{font-size:9px;line-height:1.3;max-width:55%}
 .transport{gap:4px}
 .transport button,.transport select{min-height:31px;padding:4px 6px;font-size:9px}
 .transport select{width:52px}
 .lab-panel{width:100%;padding:12px;gap:9px}
 .panel-head h2{font-size:20px}
 .panel-description,.discovery p{font-size:11px}
 .learning-brief{padding:8px}
 .mode-tools .event-pills{grid-template-columns:repeat(2,minmax(0,1fr))}
 .metric{min-height:61px;padding:8px}
 .metric strong{font-size:17px}
 .myth-grid{grid-template-columns:1fr}
 body.focus-mode .workspace{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(175px,51%) minmax(0,1fr);gap:5px}
 body.focus-mode .visual-workbench{position:relative;top:auto;min-height:0;height:100%;box-shadow:none;max-height:none}
 body.focus-mode .stage-screen{max-height:none;min-height:0;flex:1;aspect-ratio:auto}
 body.focus-mode .visual-heading{min-height:36px}
 body.focus-mode .visual-foot{display:none}
 body.focus-mode .lab-panel{min-height:0;height:100%;padding:9px;gap:6px}
 body.focus-mode .panel-description{display:none}
 body.focus-mode .mode-nav{padding-bottom:3px}
}
@media(max-width:410px){
 .brand img{width:26px;height:26px}
 .brand strong{font-size:15px}
 .site-right .select-label span{display:none}
 .site-right select{font-size:10px}
 .stage-screen{max-height:27vh;aspect-ratio:1.95}
 .screen-values strong{font-size:10px}
 .screen-values small{font-size:7px}
 .visual-foot p{max-width:52%}
 body.focus-mode .workspace{grid-template-rows:minmax(150px,45%) minmax(0,1fr)}
}
@media(max-height:680px) and (max-width:780px){
 body.focus-mode .workspace{grid-template-rows:minmax(130px,43%) minmax(0,1fr)}
 body.focus-mode .mode-nav button{min-height:35px}
 body.focus-mode .learning-brief{padding:6px}
 body.focus-mode .visual-heading{min-height:30px}
}
@media(prefers-reduced-motion:reduce){
 *,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
