:root{color-scheme:dark;--bg:#060d1e;--ink:#ecf8ff;--muted:#a9bdce;--accent:#5ef9de;--line:#85bad02b;--glass:#0a1a2deb;--gold:#ffdc86;--speed:1}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{color:var(--ink);border:1px solid var(--line);background:#11283c9c;border-radius:8px;min-height:40px;padding:7px 13px;cursor:pointer;transition:background .2s,border-color .2s}button:hover{background:#20445a;border-color:var(--accent)}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,canvas:focus-visible,[role=button]:focus-visible{outline:2px solid var(--gold);outline-offset:3px}button[aria-pressed=true],nav button[aria-current=page]{color:var(--accent);border-color:var(--accent);background:#1844437a}button:disabled{opacity:.5;cursor:default}button.primary{color:#041c22;background:var(--accent);font-weight:750;border-color:transparent;box-shadow:0 0 28px #5ef9de22}button.primary:hover{filter:brightness(1.1)}button.text-button{border:0;background:none;padding-left:0;color:var(--accent)}h1,h2,p{margin:0}h1{font-size:clamp(32px,4.4vw,70px);line-height:1.06;letter-spacing:-.045em}h2{font-size:clamp(23px,2.3vw,34px);line-height:1.17;letter-spacing:-.025em}p{color:#c3d4df}a{color:var(--accent);text-underline-offset:3px}small,.small{font-size:14px;color:var(--muted)}[hidden]{display:none!important}.eyebrow{font-size:11px;line-height:1.4;letter-spacing:.13em;color:var(--accent);font-weight:650}#game{height:100dvh;height:100svh;max-height:100dvh;display:grid;grid-template-rows:70px minmax(0,1fr) 32px;padding:env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(12px,env(safe-area-inset-left));isolation:isolate}.mast{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.brand{border:0;background:none!important;display:flex;gap:10px;text-align:left;align-items:center;padding:0;font-size:19px;letter-spacing:.05em;line-height:1.1}.brand b{color:var(--accent)}.brand small{display:block;font-size:8px;letter-spacing:.12em;margin-top:6px}.brand-orbit{font-size:35px;color:var(--accent)}nav,.utilities,.segmented,.button-row,.checks{display:flex;gap:6px;align-items:center}nav button{border-color:transparent;background:transparent}.utilities button{padding:6px 10px}.utilities{gap:5px}#navigation{touch-action:none}#arena{position:relative;min-height:0;perspective:1200px;overflow:hidden;background:radial-gradient(ellipse at 72% 33%,#15496625,transparent 52%)}#arena:before{content:"";position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(#7ecbff85 .7px,transparent .8px),radial-gradient(#82b8d360 .8px,transparent 1px);background-size:137px 131px,211px 193px;background-position:19px 40px,61px 9px;opacity:.5}.screen{position:absolute;inset:0;min-height:0;overflow:hidden}.screen.arrive{animation:arrive calc(.42s / var(--speed)) ease-out both;transform-origin:75% 50%}@keyframes arrive{from{opacity:.1;transform:translateZ(-140px) rotateY(-8deg)}to{opacity:1;transform:none}}footer{border-top:1px solid var(--line);display:flex;align-items:center;gap:14px;font-size:11px;color:var(--muted);min-width:0}footer #status{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}footer button{min-height:26px;font-size:11px;border:0;background:transparent;padding:2px 8px}.build{letter-spacing:.1em;white-space:nowrap}
/* Home is a game menu, with an actual platform choice. */
#home{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:5%;padding:clamp(18px,4vw,65px)}.home-copy{max-width:630px;display:flex;align-items:flex-start;flex-direction:column;gap:20px;min-height:0}.home-copy h1 span{color:#99b5c9}.home-copy p{max-width:530px;font-size:clamp(15px,1.45vw,20px)}.home-copy p.home-small{font-size:15px}.home-copy .primary{min-width:220px;display:flex;justify-content:space-between;gap:25px;padding:12px 20px}.home-foot{font-size:11px;color:var(--muted)}.worlds{display:grid;gap:18px;max-width:480px}.world{display:flex;align-items:center;gap:30px;background:linear-gradient(110deg,#102b4270,#07132520);border-color:#74c6ea22;padding:10px 20px;border-radius:20px;text-align:left;min-height:100px}.world b{display:block;font-size:clamp(16px,1.6vw,22px);font-weight:600}.world small{display:block;font-size:13px;margin-top:5px}.world[aria-pressed=true]{border-color:var(--accent);background:linear-gradient(110deg,#19485290,#07132520)}.planet{--planet:#63ecd9;position:relative;display:block;flex:none;width:clamp(65px,8vw,116px);aspect-ratio:1;border:1px solid var(--planet);border-radius:50%;background:radial-gradient(circle at 30% 30%,color-mix(in srgb,var(--planet),transparent 30%),#072c3e 38%,#020b18 73%);box-shadow:0 0 30px color-mix(in srgb,var(--planet),transparent 80%),inset -9px -8px 20px #000;isolation:isolate}.planet i{position:absolute;inset:0;border:1px solid color-mix(in srgb,var(--planet),transparent 50%);border-radius:50%;animation:meridian calc(15s / var(--speed)) linear infinite}.planet i:nth-child(2){animation-delay:-3.75s}.planet i:nth-child(3){animation-delay:-7.5s}.planet i:nth-child(4){animation-delay:-11.25s}.planet:after{content:"";position:absolute;inset:32% -20%;border:1px solid var(--planet);border-radius:50%;transform:rotate(-25deg);opacity:.55}.planet-cld{--planet:#ffbb84}.planet-hermes{--planet:#b597ff}@keyframes meridian{from{transform:rotateY(0deg) rotateZ(12deg)}to{transform:rotateY(180deg) rotateZ(12deg)}}
/* Explorer: one visual, one short lesson. Nothing hides below the fold. */
#explore{display:grid;grid-template-rows:58px minmax(0,1fr);gap:8px;padding:0 0 12px}.section-bar{display:flex;justify-content:space-between;align-items:center;gap:8px}.platform-switch{display:flex;gap:5px;touch-action:none}.platform-switch button{font-size:14px}.segmented button{font-size:13px}.explorer-body{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) clamp(290px,29%,390px);gap:14px}#visual{position:relative;min-width:0;min-height:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#03101c}canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-4px!important}#orbCanvas{position:absolute;inset:0}.orb-tools{position:absolute;bottom:35px;left:10px;right:10px;display:flex;justify-content:center;gap:6px}.orb-tools button{font-size:12px;background:#061a2cee;min-height:34px;padding:4px 10px}.gesture-hint{position:absolute;bottom:10px;text-align:center;width:100%;color:var(--muted);font-size:11px;pointer-events:none}.lesson{padding:clamp(16px,2vw,28px);border:1px solid var(--line);border-radius:14px;background:linear-gradient(145deg,#122b4199,#071122ee);display:flex;flex-direction:column;gap:18px;min-height:0}.lesson-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.lesson-top button{font-size:12px;min-height:32px;padding:4px 9px}.part-picker{display:flex;gap:5px}.part-picker select{min-width:0;flex:1}.part-picker button{padding:4px 10px}select{background:#10283b;color:var(--ink);border:1px solid #608fa560;border-radius:6px;padding:8px;max-width:100%}.lesson h2{color:var(--ink);font-size:clamp(24px,2.2vw,32px)}.lesson-tabs{display:flex;gap:3px}.lesson-tabs button{font-size:12px;padding:5px 7px;min-height:34px;flex:1}.lesson p{font-size:clamp(17px,1.5vw,21px);line-height:1.6}.lesson-bottom{margin-top:auto;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}.lesson-bottom button{font-size:13px;color:var(--accent)}#mapView{position:absolute;inset:0;display:grid;grid-template-rows:48px minmax(0,1fr) 30px;gap:0}.map-heading{display:flex;gap:12px;align-items:center;justify-content:center;padding:5px 12px}.map-heading span{font-size:15px;color:var(--gold);font-weight:600;text-align:center}.map-heading button{min-height:30px;padding:1px 12px;font-size:24px}.map-dots{display:flex;justify-content:center;gap:9px;align-items:center}.map-dots button{min-height:18px;padding:0;width:26px;height:6px;border-radius:6px;font-size:0}#atlas{width:100%;height:100%;display:block;min-height:0}#atlas [role=button]{cursor:pointer}#atlas [role=button]:hover rect{fill:#204c5a}
/* Flight occupies the full arena. Learning overlays are deliberately paced. */
#flightCanvas{position:absolute;inset:0}.flight-hud{position:absolute;top:14px;left:20px;right:20px;display:flex;justify-content:space-between;gap:10px;align-items:flex-start;pointer-events:none}.flight-hud b{display:block;font-size:22px}.hud-right{display:flex;align-items:center;gap:15px;font-size:13px}.hud-right button{pointer-events:auto;font-size:13px}.flight-route{position:absolute;left:20px;top:80px;display:flex;gap:7px;align-items:center}.flight-route span{width:7px;height:7px;border-radius:50%;background:#668da344}.flight-route span.done{background:var(--accent)}.flight-route span.current{width:12px;height:12px;box-shadow:0 0 12px var(--accent);background:var(--gold)}.flight-route small{margin-left:8px;font-size:11px}.radio{position:absolute;bottom:100px;left:50%;transform:translateX(-50%);width:min(680px,80%);background:#051326ed;border:1px solid #72e7d859;border-left:3px solid var(--accent);padding:14px 20px;border-radius:4px;pointer-events:none;box-shadow:0 8px 30px #0006}.radio span{color:var(--accent);font-size:10px;letter-spacing:.15em}.radio p{font-size:clamp(14px,1.45vw,19px);line-height:1.45;color:#edf7fb;margin-top:5px}.flight-controls{position:absolute;bottom:17px;left:20px;right:20px;display:flex;align-items:center;gap:12px}.flight-help{font-size:11px;color:#a5c3d1;margin-right:auto}.fire-button{font-weight:800;letter-spacing:.12em;border:1px solid var(--gold);color:var(--gold);background:#69501f66;min-width:122px;height:54px;touch-action:none}.fire-button span{font-size:25px;margin-left:12px}.fire-button:active,.fire-button.firing{background:var(--gold);color:#132130;box-shadow:0 0 30px #ffcc8855}#autoFire{font-size:12px}.story-overlay{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 50%,#080e2055,#020611de 85%);display:grid;grid-template-rows:40px minmax(0,1fr) 52px 30px;padding:12px 30px 8px}.story-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--muted);font-size:12px}.crawl-window{min-height:0;position:relative;overflow:hidden;perspective:520px;mask-image:linear-gradient(transparent,#000 7%,#000 92%,transparent)}.crawl-plane{position:absolute;left:50%;top:0;bottom:0;width:min(710px,85%);transform:translateX(-50%) rotateX(17deg);transform-origin:50% 100%}#crawlText{position:absolute;width:100%;text-align:center;color:var(--gold);will-change:transform;line-height:1.5}#crawlText .crawl-chapter{font-size:14px;letter-spacing:.2em;text-transform:uppercase}#crawlText h2{font-size:clamp(28px,4vw,53px);line-height:1.2;margin:15px 0 30px;color:var(--gold)}#crawlText p{font-size:clamp(21px,2.4vw,31px);line-height:1.65;margin:0 0 28px;color:var(--gold);text-align:left}#crawlText p:nth-of-type(2){color:#ffe8b8}.story-actions{display:flex;justify-content:center;align-items:center;gap:10px}.story-actions button{font-size:14px}.story-help{text-align:center;font-size:11px;color:var(--muted);padding-top:5px}.story-overlay.cards .crawl-window{perspective:none;mask-image:none;display:flex;align-items:center;justify-content:center}.story-overlay.cards .crawl-plane{position:static;transform:none;width:min(720px,95%)}.story-overlay.cards #crawlText{position:static;transform:none!important}.story-overlay.cards #crawlText h2{font-size:clamp(24px,3vw,39px);margin:12px 0 24px}.story-overlay.cards #crawlText p{font-size:clamp(18px,2vw,27px);margin:0}.story-overlay.cards .crawl-chapter{font-size:12px}.centre-overlay{position:absolute;inset:0;background:#030b19eb;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;gap:22px;text-align:center}.centre-overlay h2{font-size:clamp(28px,4vw,52px)}.centre-overlay p{max-width:640px;font-size:clamp(17px,1.9vw,24px);line-height:1.6}.centre-overlay button{min-width:200px}.quiz-card{max-width:760px;width:100%;height:100%;margin:auto;padding:clamp(20px,4vw,52px);display:flex;flex-direction:column;justify-content:center;gap:18px}#quizProgress{font-size:13px;color:var(--muted)}#quizOptions{display:grid;gap:8px}#quizOptions button{text-align:left;padding:13px 18px;font-size:17px}#quizOptions button.correct{border-color:var(--accent);background:#12564766}#quizOptions button.wrong{border-color:#ffb590}#quizFeedback{font-size:16px;min-height:48px}#quizNext{align-self:flex-end}
/* Settings and guide have discrete pages, not scrolling walls of controls. */
dialog{color:var(--ink);border:1px solid #6cd8da55;background:linear-gradient(135deg,#112b3d,#080f21);width:min(580px,calc(100vw - 26px));max-width:none;height:auto;max-height:calc(100dvh - 24px);padding:25px;border-radius:16px;overflow:hidden;box-shadow:0 25px 130px #000b}dialog::backdrop{background:#020615cb;backdrop-filter:blur(8px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.dialog-head h2{font-size:23px}.dialog-head button{font-size:25px;line-height:1;padding:2px 12px}.dialog-tabs{margin-bottom:22px;gap:4px}.dialog-tabs button{font-size:14px;flex:1;border:1px solid var(--line)}.setting-page{display:flex;flex-direction:column;gap:18px}.setting-page>label{display:grid;grid-template-columns:1fr auto;gap:6px}.setting-page select,.setting-page input[type=range]{grid-column:1/-1;width:100%}input[type=range]{accent-color:var(--accent);height:24px}.checks{gap:20px}.checks label{font-size:14px;display:flex;align-items:center;gap:7px}input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent)}.link-list{display:grid;gap:13px}.link-list a{font-size:15px}.button-row{justify-content:space-between;margin-top:8px}.button-row button{font-size:14px}#guideContent{min-height:160px;display:grid;gap:14px;margin-bottom:20px}#guideContent h3{font-size:22px;margin:0}#guideContent p{font-size:16px}#guideCount{color:var(--muted);font-size:13px}.static-motion *,body.reduce-motion *{animation:none!important;transition:none!important}body.focus-mode .brand small,body.focus-mode .build{display:none}
@media(min-width:1450px){#game{padding-left:28px;padding-right:28px}.home-copy{gap:26px}.worlds{gap:24px}}
@media(max-width:800px){#game{grid-template-rows:62px minmax(0,1fr) 28px;padding-left:8px;padding-right:8px}.brand{font-size:16px}.brand-orbit{display:none}.brand small{font-size:6px}.mast{gap:6px}#navigation{gap:1px}#navigation button{font-size:13px;padding:7px 9px}.utilities button{font-size:13px;padding:5px 8px}.home-copy{gap:16px}#home{gap:6%;padding:25px}.worlds{gap:16px}.world{gap:20px;padding:12px}.explorer-body{grid-template-columns:minmax(0,1fr) 280px;gap:8px}.lesson{padding:15px;gap:14px}.lesson-tabs button{font-size:11px}.lesson p{font-size:17px}.section-bar{gap:6px}.platform-switch button{padding:6px 9px;font-size:12px}.segmented button{padding:6px 9px;font-size:12px}}
@media(max-width:600px) and (min-height:501px){#game{grid-template-rows:91px minmax(0,1fr) 27px}.mast{display:grid;grid-template-columns:1fr auto;grid-template-rows:44px 42px;gap:0 6px}.brand{font-size:16px}.brand small{display:none}#navigation{grid-row:2;grid-column:1/-1;justify-content:space-between}#navigation button{min-height:36px;flex:1;font-size:14px}.utilities{grid-row:1;grid-column:2}.utilities button{min-height:33px}.build{font-size:9px}.screen.arrive{animation-duration:.25s}#home{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:20px;padding:20px 14px}.home-copy{gap:12px}.home-copy h1{font-size:clamp(28px,7.2vw,42px)}.home-copy .eyebrow{font-size:9px}.home-copy p{font-size:14px;line-height:1.5}.home-copy .home-small{display:none}.home-copy .primary{font-size:15px;min-height:44px;padding:8px 17px}.home-copy .text-button{min-height:30px;padding:0;font-size:13px}.home-foot{display:none}.worlds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-self:stretch;max-height:210px;gap:7px}.world{padding:12px 5px;flex-direction:column;gap:12px;justify-content:center;min-height:0;border-radius:13px;text-align:center}.world .planet{width:clamp(45px,15vw,75px)}.world b{font-size:13px;line-height:1.3}.world small{display:none}#explore{grid-template-rows:46px minmax(0,1fr);gap:3px;padding-bottom:7px}.section-bar{gap:4px}.platform-switch{gap:3px}.platform-switch button{font-size:11px;padding:5px 7px;min-height:34px}.segmented{gap:3px}.segmented button{font-size:11px;padding:5px 7px;min-height:34px}.explorer-body{grid-template-columns:1fr;grid-template-rows:minmax(165px,1fr) auto;gap:7px}.lesson{padding:11px 14px;gap:9px}.lesson-top{display:none}.part-picker select{font-size:14px;padding:5px;min-height:32px}.part-picker button{min-height:32px;font-size:17px}.lesson h2{font-size:20px}.lesson-tabs button{font-size:11px;min-height:28px;padding:4px 7px}.lesson p{font-size:15px;line-height:1.45;min-height:65px}.lesson-bottom{margin-top:0;font-size:11px}.lesson-bottom button{font-size:12px;min-height:30px;padding:4px 9px}.orb-tools{bottom:8px;gap:4px}.orb-tools button{font-size:10px;padding:3px 8px;min-height:28px}.gesture-hint{display:none}#mapView{grid-template-rows:33px minmax(0,1fr) 19px}.map-heading{padding:1px 8px;gap:8px}.map-heading span{font-size:12px}.map-heading button{min-height:28px;font-size:20px;padding:0 9px}.flight-hud{top:10px;left:10px;right:10px}.flight-hud .eyebrow{font-size:9px}.flight-hud b{font-size:17px}.hud-right{gap:8px;flex-wrap:wrap;justify-content:flex-end;font-size:10px;max-width:145px}.hud-right button{min-height:31px;padding:3px 7px;font-size:11px}.flight-route{top:64px;left:10px;gap:5px}.flight-route small{font-size:9px}.radio{width:calc(100% - 22px);bottom:96px;padding:10px 13px}.radio p{font-size:14px;line-height:1.45}.radio span{font-size:9px}.flight-controls{left:10px;right:10px;bottom:14px;gap:8px}.flight-help{font-size:9px;line-height:1.5}.fire-button{min-width:90px;height:55px;padding:8px;font-size:14px}.fire-button span{margin-left:4px}#autoFire{font-size:10px;padding:4px 7px;max-width:68px}.story-overlay{padding:8px 10px;grid-template-rows:33px minmax(0,1fr) 50px 36px}.story-meta{font-size:10px}.story-meta .eyebrow{font-size:9px}.crawl-plane{width:87%}#crawlText h2{font-size:31px}#crawlText p{font-size:23px}.story-actions{gap:6px}.story-actions button{font-size:12px;padding:7px 9px}.story-help{font-size:10px;padding:3px 12px}.centre-overlay{gap:16px;padding:24px}.centre-overlay p{font-size:17px}.quiz-card{padding:20px 12px;gap:15px}.quiz-card h2{font-size:24px}#quizOptions button{font-size:15px;padding:10px 12px}#quizFeedback{font-size:14px}.dialog-head h2{font-size:20px}dialog{padding:18px}.dialog-tabs button{font-size:12px;padding:6px}.setting-page{gap:14px}.setting-page .small{font-size:13px}}
/* Short screens switch to a compact cockpit, retaining every navigation control. */
@media(max-height:620px) and (min-width:601px){#game{grid-template-rows:51px minmax(0,1fr) 25px}#home{padding:18px 4%;gap:5%}.home-copy{gap:12px}.home-copy h1{font-size:36px}.home-copy .home-small,.home-foot{display:none}.home-copy p{font-size:15px}.worlds{gap:10px}.world{min-height:0;padding:8px 16px}.world .planet{width:65px}.world b{font-size:16px}.world small{font-size:11px}#explore{grid-template-rows:44px minmax(0,1fr);gap:0;padding-bottom:6px}.lesson{padding:12px;gap:10px}.lesson-top{display:none}.lesson h2{font-size:21px}.lesson p{font-size:15px;line-height:1.5}.lesson-tabs button{font-size:11px;min-height:30px}.lesson-bottom button{min-height:31px}.part-picker select{font-size:14px;padding:5px}.part-picker button{min-height:32px}.quiz-card{padding:15px 35px;gap:11px}.quiz-card h2{font-size:23px}#quizOptions{gap:5px}#quizOptions button{padding:7px 12px;font-size:15px}#quizFeedback{min-height:30px;font-size:14px}.story-overlay{grid-template-rows:30px minmax(0,1fr) 45px 24px;padding-top:4px}.story-help{font-size:10px}.radio{bottom:76px;padding:8px 15px;max-width:640px}.radio p{font-size:14px}.flight-controls{bottom:10px}.fire-button{height:46px}.flight-hud{top:8px}.flight-hud b{font-size:18px}.flight-route{top:64px}.centre-overlay{gap:12px}.centre-overlay h2{font-size:30px}.centre-overlay p{font-size:17px}.centre-overlay button{min-height:34px}dialog{padding:16px;width:min(650px,95vw)}.dialog-head{margin-bottom:10px}.dialog-head h2{font-size:20px}.dialog-tabs{margin-bottom:12px}.setting-page{gap:8px}#setting-pace{display:grid;grid-template-columns:1fr 1fr;gap:8px 24px}#setting-pace>p{grid-column:1/-1}.setting-page .small{font-size:12px}#guideContent{min-height:100px;margin-bottom:10px;gap:8px}#guideContent p{font-size:14px}}
@media(max-height:500px){.mast .brand small{display:none}.utilities button{min-height:32px}.home-copy .eyebrow{font-size:9px}.home-copy h1{font-size:29px}.home-copy p{font-size:13px}.home-copy .primary{min-height:34px;padding:6px 14px}.home-copy .text-button{font-size:12px;min-height:25px}.worlds{gap:7px}.world .planet{width:48px}.world small{display:none}.lesson{gap:7px}.lesson p{font-size:14px}.lesson h2{font-size:18px}.lesson-tabs button{font-size:10px}.lesson-bottom{font-size:10px}.lesson-bottom button{font-size:11px}.part-picker button{min-height:28px}.orb-tools{bottom:8px}.gesture-hint{display:none}.radio{bottom:65px;width:62%;left:45%;padding:7px 11px}.radio p{font-size:13px;line-height:1.3}.radio span{font-size:8px}.flight-help{font-size:9px}.flight-controls{bottom:7px}.flight-route{top:59px}.story-meta{font-size:10px}.story-actions button{font-size:12px}.story-overlay.cards #crawlText h2{font-size:22px;margin:5px 0 10px}.story-overlay.cards #crawlText p{font-size:17px}.story-overlay.cards .crawl-chapter{font-size:10px}.quiz-card{gap:7px;padding:10px 35px}.quiz-card h2{font-size:20px}#quizProgress{font-size:11px}#quizOptions button{font-size:14px;padding:5px 10px;min-height:32px}#quizFeedback{font-size:13px;min-height:22px}.quiz-card .eyebrow{font-size:9px}#quizNext{min-height:29px;padding:4px 12px}dialog{max-height:calc(100dvh - 12px)}.dialog-tabs button{min-height:29px;padding:3px 8px}.dialog-head button{min-height:29px}.setting-page>label{font-size:13px}.setting-page input[type=range]{height:17px;margin:0}.checks label{font-size:12px}.link-list{gap:7px}.link-list a{font-size:13px}.setting-page>p{font-size:13px}.setting-page .small{font-size:11px}}
@media(max-width:600px) and (max-height:730px) and (min-height:501px){#home{gap:12px;padding:16px 10px}.home-copy{gap:10px}.home-copy h1{font-size:29px}.world{gap:10px}.world .planet{width:48px}.lesson{gap:7px;padding:9px 12px}.lesson h2{font-size:18px}.lesson p{font-size:14px;min-height:61px}.lesson-tabs button{min-height:26px}.lesson-bottom button{min-height:27px}.explorer-body{grid-template-rows:minmax(130px,1fr) auto}}
/* Long explanations page through the available reading area, never scroll. */
.lesson> :not(p){flex-shrink:0}.lesson p{flex:1;min-height:0;overflow:hidden}.lesson-bottom{margin-top:0}
@media(max-width:600px) and (min-height:501px){.explorer-body{grid-template-rows:minmax(120px,1fr) minmax(220px,49%)}.lesson{gap:7px}.lesson p{min-height:0}.lesson h2{font-size:18px;line-height:1.2}.lesson-tabs button{min-height:28px}.lesson-bottom button{min-height:28px}}
@media(max-width:600px) and (max-height:730px) and (min-height:501px){.lesson h2{display:none}.explorer-body{grid-template-rows:minmax(110px,1fr) minmax(205px,50%)}.lesson{padding:9px 12px;gap:6px}.lesson p{font-size:14px;line-height:1.5}}
@media(max-height:500px){.lesson h2,.lesson-tabs{display:none}.lesson p{min-height:0}.lesson{gap:9px}.lesson-bottom{gap:8px}.lesson-bottom button{white-space:nowrap}}
/* v1.5: full entity-only ERD, independent crawl pacing, gentler type scale. */
.narrow-label{display:none}.lesson p{font-size:clamp(15px,1.25vw,18px);line-height:1.55}.lesson h2{font-size:clamp(22px,1.9vw,28px)}
.explorer-body.erd-layout{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr)}.erd-layout>.lesson{display:none}
#erdView{position:absolute;inset:0;display:grid;grid-template-rows:42px minmax(0,1fr) 38px;background:#061321}
.erd-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 14px;border-bottom:1px solid var(--line)}.erd-toolbar>span{font-size:13px;font-weight:600;color:var(--accent)}.erd-toolbar>div{display:flex;gap:5px}.erd-toolbar button{font-size:12px;padding:3px 10px;min-height:29px}
#erdCanvas{width:100%;height:100%;min-height:0;display:block;touch-action:none;user-select:none;cursor:grab}#erdCanvas:active{cursor:grabbing}#erdCanvas [role=button]{cursor:pointer}#erdCanvas [role=button]:hover rect{fill:#225364;stroke:var(--gold)}
.erd-key{display:flex;align-items:center;justify-content:center;gap:24px;border-top:1px solid var(--line);padding:3px 12px;min-width:0}.erd-key svg{display:block;width:290px;height:25px}.erd-note{color:var(--muted);font-size:11px;line-height:1.3}
.erd-info-tabs{display:flex;gap:5px;margin-bottom:18px}.erd-info-tabs button{flex:1;font-size:13px;padding:7px 9px}#erdInfoText{font-size:17px;line-height:1.6;min-height:100px;margin-bottom:20px}
.orb-tools{gap:5px}.orb-tools button{padding:4px 9px}
.story-overlay{grid-template-rows:40px minmax(0,1fr) 38px 52px 30px}.crawl-controls{display:flex;align-items:center;justify-content:center;gap:10px;font-size:12px;color:var(--muted)}.crawl-controls input{width:clamp(90px,18vw,220px);margin:0}.crawl-controls output{min-width:32px;color:var(--gold);font-variant-numeric:tabular-nums}.crawl-controls button{font-size:11px;min-height:28px;padding:3px 10px}.crawl-controls label{white-space:nowrap}.story-overlay.cards .crawl-controls{visibility:hidden}
@media(max-width:800px){.lesson p{font-size:15px}.lesson h2{font-size:23px}.erd-key{gap:12px}.erd-key svg{width:270px}.erd-note{font-size:10px}}
@media(max-width:600px) and (min-height:501px){.wide-label{display:none}.narrow-label{display:inline}.lesson p{font-size:14px;line-height:1.5}.lesson h2{font-size:17px}.section-bar .segmented button{min-width:38px}.orb-tools{gap:3px}.orb-tools button{padding:3px 7px;font-size:10px}#erdView{grid-template-rows:39px minmax(0,1fr) 47px}.erd-toolbar{padding:4px 7px;gap:6px}.erd-toolbar>span{font-size:11px}.erd-toolbar>div{gap:3px}.erd-toolbar button{font-size:10px;padding:3px 7px;min-height:28px}.erd-key{flex-direction:column;gap:0;padding:1px 6px}.erd-key svg{width:260px;height:25px}.erd-note{font-size:9px}.story-overlay{grid-template-rows:33px minmax(0,1fr) 37px 50px 36px}.crawl-controls{gap:7px;font-size:11px}.crawl-controls input{width:95px}.crawl-controls button{font-size:10px;padding:3px 7px}.crawl-controls output{min-width:30px}#erdInfoText{font-size:15px;line-height:1.55;min-height:80px}.erd-info-tabs{gap:3px}.erd-info-tabs button{font-size:12px;padding:6px}}
@media(max-height:620px) and (min-width:601px){.lesson p{font-size:14px;line-height:1.5}.lesson h2{font-size:20px}.story-overlay{grid-template-rows:30px minmax(0,1fr) 32px 45px 24px}#erdView{grid-template-rows:34px minmax(0,1fr) 29px}.erd-toolbar{padding-top:2px;padding-bottom:2px}.erd-toolbar button{min-height:26px;padding:1px 9px}.erd-key{padding:1px 10px}.erd-key svg{height:24px;width:250px}.erd-note{font-size:10px}}
@media(max-height:500px){.lesson p{font-size:13px}.crawl-controls{gap:8px;font-size:10px}.crawl-controls input{height:18px}.crawl-controls button{min-height:24px;font-size:10px}.story-overlay{grid-template-rows:25px minmax(0,1fr) 29px 39px 20px}#erdInfoText{font-size:15px;min-height:60px;margin-bottom:10px}.erd-info-tabs{margin-bottom:12px}.erd-info-tabs button{min-height:30px;padding:4px 8px}.erd-note{display:none}}
.story-overlay.cards .crawl-controls{display:none}.story-overlay.cards{grid-template-rows:40px minmax(0,1fr) 52px 30px}
@media(max-width:600px) and (min-height:501px){.story-overlay.cards{grid-template-rows:33px minmax(0,1fr) 50px 36px}}
@media(max-height:620px) and (min-width:601px){.story-overlay.cards{grid-template-rows:30px minmax(0,1fr) 45px 24px}}
@media(max-height:500px){.story-overlay.cards{grid-template-rows:25px minmax(0,1fr) 39px 20px}}
/* v1.6: learning panels share the fixed game viewport, with native readable text. */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.page-picker{display:none}.home-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.home-actions>button{min-width:0!important}.home-actions .primary{padding:10px 17px!important}.home-actions #homeLaunch{font-size:13px}
.learn-screen{height:100%;min-height:0;display:grid;grid-template-rows:48px minmax(0,1fr) 36px;gap:10px;padding:18px 12px 4px}.learn-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;min-width:0}.learn-toolbar select{max-width:58%;min-width:0;width:400px;margin:0}.learn-layout,.references-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:22px;min-height:0;min-width:0}.learn-layout>*{min-height:0;min-width:0}.learn-card{border:1px solid var(--line);border-radius:18px;background:linear-gradient(140deg,#113044c7,#07162be8);box-shadow:0 15px 60px #01081780;display:grid;grid-template-rows:34px auto 40px minmax(0,1fr) 44px;gap:14px;padding:26px;min-height:0;min-width:0;overflow:hidden}.learn-card-top,.learn-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}.learn-card-top button{font-size:12px;min-height:30px;padding:4px 10px}.learn-card h2{font-size:clamp(22px,2.6vw,35px)}.learn-tabs{display:flex;gap:5px;min-width:0}.learn-tabs button{font-size:13px;padding:5px 10px;min-height:32px;flex:1}.learn-text{font-size:clamp(16px,1.55vw,20px);line-height:1.6;min-height:0;overflow:hidden;align-self:stretch;user-select:text}.learn-card-bottom button{font-size:13px;min-height:34px;padding:5px 10px}.learn-card-bottom a{font-size:12px}.learn-note{align-self:center;text-align:center;color:var(--muted);font-size:12px;line-height:1.35}.flow-visual{display:grid;grid-template-rows:38px 35px minmax(0,1fr) auto 26px;gap:12px;align-items:center;text-align:center;min-height:0;padding:8px 12px}.location-choices{display:flex;justify-content:center;gap:6px}.location-choices button{font-size:12px;min-height:32px;padding:5px 9px}.flow-visual h2{font-size:22px}.harness-flow{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;min-height:0}.flow-orb{border-radius:50%;width:clamp(125px,15vw,215px);aspect-ratio:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:15px;background:radial-gradient(circle at 30% 24%,#32587c,#102e47 47%,#061528 75%);border-color:#68d1de6b;box-shadow:inset 0 0 30px #5ffde32a,0 0 22px #5ffde318;position:relative;overflow:visible}.flow-orb:before{content:'';position:absolute;inset:7%;border:1px solid #8fdaee2b;border-radius:50%;transform:rotate(-30deg) scaleY(.38);pointer-events:none}.flow-orb span{font-size:9px;letter-spacing:.1em;color:#b3cddd}.flow-orb b{font-size:clamp(14px,1.5vw,20px);line-height:1.25;font-weight:600}.flow-orb small{font-size:10px;line-height:1.25}.flow-harness{width:clamp(140px,17vw,230px);border-color:var(--accent)}.flow-branches{display:flex;justify-content:center;gap:42px;position:relative}.flow-branches:before{content:'';position:absolute;width:60%;height:22px;left:20%;top:-22px;border:1px solid #69e8d459;border-bottom:none;border-radius:10px 10px 0 0}.flow-harness:after{content:'';position:absolute;width:1px;height:22px;background:#69e8d459;bottom:-22px;left:50%}.flow-visual p{font-size:13px;line-height:1.5;max-width:580px;justify-self:center}.flow-visual>a{font-size:11px}.journey-visual{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#07172a;min-height:0}.journey-visual h3{font-size:18px;line-height:1.25;margin:0}.journey-visual p{font-size:14px;line-height:1.5}#journeyMap{height:100%;display:grid;grid-template-rows:minmax(100px,1fr) 38px auto;gap:8px;padding-bottom:12px;min-height:0}.route-canvas{position:relative;min-height:0}#journeyCanvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}#journeyCanvas:active{cursor:grabbing}.route-tools{position:absolute;top:10px;right:10px;display:flex;gap:4px}.route-tools button{font-size:11px;min-height:28px;padding:3px 8px;background:#0b223fe0}#stopSelect{display:flex;justify-content:center;gap:6px}#stopSelect button{font-size:12px;min-height:30px;padding:4px 10px}.stop-notes{padding:0 22px;display:grid;gap:6px}.stop-notes .eyebrow{font-size:9px}#journeySketch{height:100%;display:flex;flex-direction:column;justify-content:center;gap:22px;padding:30px}#journeySketch h2{font-size:26px}#sketchParts{display:grid;gap:12px}.sketch-stop{display:flex;align-items:center;gap:16px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:#0e2639;position:relative}.sketch-stop.current{border-color:var(--accent);box-shadow:0 0 24px #5ef9de1f}.sketch-stop span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;border:1px solid var(--accent);background:radial-gradient(circle at 30% 20%,#64b7c0,#0b3546);color:#d9fff8;font-size:12px}.sketch-stop b{font-size:16px;font-weight:550}#journeys .learn-card{grid-template-rows:34px auto 40px minmax(0,1fr) 38px 40px}.journey-links{display:flex;gap:6px;min-width:0}.journey-links button{font-size:12px;min-height:32px;padding:3px 8px}.reference-card{grid-template-rows:34px 40px auto minmax(0,1fr) 24px 20px 48px 42px;max-width:700px}.reference-card select{width:100%;min-width:0;margin:0}.reference-card>p:not(.small){font-size:18px;line-height:1.6}.reference-card>a{font-size:12px}.reference-card>.reference-open{border:1px solid var(--accent);border-radius:10px;padding:10px 20px;background:#1744437a;font-size:16px;align-self:center;text-align:center;text-decoration:none}.reference-signal{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;text-align:center}.reference-signal h2{font-size:40px}.reference-signal p{font-size:17px}.reference-orbit{display:grid;place-items:center;width:clamp(150px,23vw,300px);aspect-ratio:1;border:1px solid #62eddc69;border-radius:50%;font-size:clamp(60px,10vw,130px);color:var(--accent);background:radial-gradient(circle at 35% 20%,#285970,#0b2740 50%,#051022 80%);box-shadow:inset 0 0 40px #62eddc22,0 0 70px #62eddc18;transform:rotate(-12deg)}
@media(min-width:1001px){#navigation{display:flex;gap:4px}#navigation button{font-size:13px;padding:6px 10px;min-height:34px}}
@media(max-width:1000px){#navigation>button{display:none}.page-picker{display:block}#pageSelect{margin:0;min-height:35px;width:165px;font-size:14px}.learn-layout,.references-layout{gap:12px}.learn-card{padding:18px;gap:12px}.flow-visual{padding:4px;gap:8px}.flow-branches{gap:18px}.flow-orb{width:135px}.flow-harness{width:150px}.flow-visual p{font-size:12px}.flow-visual h2{font-size:18px}.learn-card h2{font-size:25px}.learn-text{font-size:16px}}
@media(max-width:600px) and (min-height:501px){#navigation{display:flex;justify-content:stretch}.page-picker{width:100%}#pageSelect{width:100%;min-height:35px}.home-actions{flex-wrap:nowrap;gap:6px}.home-actions button{font-size:12px!important;min-height:36px!important;padding:6px 10px!important}.learn-screen{padding:7px 2px 2px;gap:6px;grid-template-rows:35px minmax(0,1fr) 31px}.learn-toolbar>.eyebrow{display:none}.learn-toolbar select{width:auto;flex:1;max-width:100%;font-size:12px;min-height:32px;padding:4px 7px}.learn-toolbar{gap:6px}.learn-layout{grid-template-columns:1fr;grid-template-rows:minmax(120px,42%) minmax(0,1fr);gap:8px}.learn-card{border-radius:12px;padding:10px 12px;gap:6px;grid-template-rows:25px auto 31px minmax(0,1fr) 32px}.learn-card h2{font-size:18px}.learn-tabs{gap:3px}.learn-tabs button{font-size:11px;min-height:28px;padding:3px 5px}.learn-text{font-size:14px;line-height:1.5}.learn-card-top>.eyebrow{font-size:9px}.learn-card-top button{min-height:24px;font-size:10px;padding:2px 7px}.learn-card-bottom button{min-height:28px;font-size:11px;padding:3px 8px}.learn-note{font-size:9px}.flow-visual{grid-template-rows:29px 22px minmax(0,1fr) 20px;gap:4px;padding:0 4px}.flow-visual h2{font-size:13px}.flow-visual #flowDescription{display:none}.flow-visual>a{font-size:9px}.location-choices button{min-height:25px;padding:2px 6px;font-size:10px}.harness-flow{flex-direction:row;gap:8px}.flow-branches{gap:8px}.flow-orb,.flow-harness{width:clamp(80px,25vw,125px);gap:4px;padding:7px;min-height:0}.flow-orb span{font-size:7px;letter-spacing:0}.flow-orb b{font-size:11px}.flow-orb small{display:none}.flow-branches:before,.flow-harness:after{display:none}#journeys .learn-card{grid-template-rows:25px auto 30px minmax(0,1fr) 28px 30px}.journey-links button{font-size:10px;padding:2px 6px;min-height:25px}.journey-visual{border-radius:12px}#journeyMap{grid-template-rows:minmax(65px,1fr) 28px auto;gap:3px;padding-bottom:6px}.stop-notes{padding:0 10px;gap:3px}.stop-notes h3{font-size:12px}.stop-notes p{font-size:10px;line-height:1.4}.stop-notes .eyebrow{font-size:7px}#stopSelect button{min-height:24px;padding:2px 7px;font-size:10px}.route-tools{top:5px;right:5px}.route-tools button{min-height:23px;font-size:9px;padding:2px 5px}#journeySketch{padding:12px;gap:8px}#journeySketch>.eyebrow,#journeySketch>p{display:none}#journeySketch h2{font-size:14px}#sketchParts{grid-template-columns:1fr 1fr;gap:7px}.sketch-stop{padding:6px 8px;gap:7px}.sketch-stop b{font-size:11px}.sketch-stop span{width:21px;height:21px;flex-shrink:0;font-size:9px}.references-layout{grid-template-columns:1fr;min-height:0}.reference-signal{display:none}.reference-card{grid-template-rows:28px 35px auto minmax(0,1fr) 23px 20px 44px 35px;padding:16px;gap:12px}.reference-card h2{font-size:25px}.reference-card>p:not(.small){font-size:16px}.reference-card .small{font-size:11px}.reference-card .reference-open{font-size:14px}.reference-card select{font-size:13px}}
@media(max-height:620px) and (min-width:601px){.learn-screen{grid-template-rows:32px minmax(0,1fr) 22px;gap:6px;padding:7px 2px 2px}.learn-toolbar select{min-height:30px;padding:3px 7px;font-size:12px}.learn-toolbar>.eyebrow{font-size:9px}.learn-layout,.references-layout{gap:12px}.learn-card{padding:12px;gap:6px;grid-template-rows:26px auto 30px minmax(0,1fr) 32px}.learn-card h2{font-size:19px}.learn-text{font-size:14px;line-height:1.5}.learn-tabs button,.learn-card-bottom button{min-height:26px;font-size:11px;padding:2px 6px}.learn-note{font-size:9px}.flow-visual{grid-template-rows:28px 22px minmax(0,1fr) auto 20px;gap:5px}.flow-visual h2{font-size:14px}.harness-flow{flex-direction:row;gap:8px}.flow-branches{gap:8px}.flow-orb,.flow-harness{width:clamp(80px,12vw,125px);gap:3px;padding:7px}.flow-orb b{font-size:11px}.flow-orb span{font-size:7px;letter-spacing:0}.flow-orb small{display:none}.flow-harness:after,.flow-branches:before{display:none}.flow-visual p{font-size:11px;line-height:1.3}.flow-visual>a{font-size:9px}#journeys .learn-card{grid-template-rows:26px auto 30px minmax(0,1fr) 28px 30px}.journey-links button{font-size:10px;min-height:25px;padding:2px 6px}#journeyMap{grid-template-rows:minmax(70px,1fr) 27px auto;gap:4px;padding-bottom:7px}.stop-notes{padding:0 12px;gap:3px}.stop-notes h3{font-size:13px}.stop-notes p{font-size:10px;line-height:1.4}.stop-notes .eyebrow{font-size:7px}#stopSelect button{font-size:10px;min-height:23px;padding:2px 7px}#journeySketch{padding:14px;gap:9px}#journeySketch h2{font-size:18px}#journeySketch>p{display:none}#sketchParts{gap:7px}.sketch-stop{padding:5px 10px}.sketch-stop b{font-size:13px}.sketch-stop span{width:23px;height:23px;font-size:10px}.reference-card{grid-template-rows:24px 30px auto minmax(0,1fr) 18px 16px 33px 28px;gap:5px}.reference-card>p:not(.small){font-size:14px;line-height:1.4}.reference-card .small{font-size:10px}.reference-card>.reference-open{padding:4px 12px;font-size:13px}.reference-orbit{width:140px;font-size:70px}.reference-signal{gap:10px}.reference-signal h2{font-size:25px}.reference-signal p{font-size:13px}}
@media(max-height:410px){.learn-card h2{font-size:16px}.flow-visual #flowDescription{display:none}.flow-visual{grid-template-rows:25px 20px minmax(0,1fr) 16px}.learn-text{font-size:12px}.learn-card-top>.eyebrow{font-size:8px}.learn-card-top button{min-height:22px;font-size:10px}.learn-card{gap:4px;padding:8px}.reference-card h2{font-size:16px}.reference-card>p:not(.small){font-size:12px}}
/* Home: one conceptual map, followed by the three gateways into the orb worlds. */
#home{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:4%;padding:clamp(15px,3vw,40px)}.home-overview{height:100%;max-height:660px;min-height:0;min-width:0;display:grid;grid-template-rows:minmax(0,1fr) 96px 115px;gap:10px;align-self:center}#homeDiagram{display:block;width:100%;height:100%;min-height:0;overflow:visible}#homeDiagram [role=button]{cursor:pointer;outline:none}#homeDiagram [role=button]:hover rect,#homeDiagram [aria-pressed=true] rect,#homeDiagram [role=button]:focus-visible rect{stroke:#ffe09b;stroke-opacity:1;fill:#20475d}.overview-name{font:600 17px system-ui;fill:#edf9ff}.overview-sub{font:12px system-ui;fill:#b2ccd9}.overview-note{display:grid;grid-template-columns:minmax(0,1fr) 28px auto;grid-template-rows:23px minmax(0,1fr);gap:3px 6px;min-height:0;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:#0b2336b5;overflow:hidden}.overview-note b{font-size:13px;align-self:center}.overview-note p{grid-row:2;grid-column:1/-1;font-size:12px;line-height:1.4;min-height:0}.overview-note button{min-height:23px;font-size:10px;padding:2px 6px}.home-overview .worlds{max-width:none;max-height:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.home-overview .world{min-height:0;display:flex;flex-direction:column;justify-content:center;gap:6px;padding:8px 5px;text-align:center;border-radius:13px}.home-overview .world .planet{width:54px}.home-overview .world b{font-size:13px;line-height:1.2}.home-overview .world small{display:none}.home-copy{gap:16px}.home-copy h1{font-size:clamp(33px,4.1vw,64px)}
@media(max-width:1000px){.home-overview{grid-template-rows:minmax(0,1fr) 109px 100px;gap:8px}.home-overview .world .planet{width:45px}.home-overview .world b{font-size:11px}.home-copy p{font-size:15px}.home-copy h1{font-size:38px}.home-copy{gap:14px}.home-actions{flex-wrap:wrap}}
@media(max-width:600px) and (min-height:501px){#home{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);padding:10px 8px;gap:8px}.home-copy{gap:8px}.home-copy h1{font-size:27px}.home-copy p{font-size:12px;line-height:1.4}.home-copy .eyebrow{font-size:8px}.home-copy .home-small,.home-foot{display:none}.home-actions{flex-wrap:nowrap}.home-copy .text-button{font-size:11px;min-height:22px}.home-overview{grid-template-rows:minmax(110px,1fr) 83px 66px;gap:5px;max-height:none}.overview-note{padding:5px 7px;grid-template-rows:21px minmax(0,1fr);gap:2px 4px}.overview-note b{font-size:11px}.overview-note p{font-size:10px;line-height:1.35}.overview-note button{font-size:9px;padding:1px 4px;min-height:20px}.home-overview .worlds{gap:5px}.home-overview .world{flex-direction:row;padding:5px;gap:5px}.home-overview .world .planet{width:27px}.home-overview .world b{font-size:10px}.overview-name{font-size:18px}.overview-sub{font-size:13px}}
@media(max-height:620px) and (min-width:601px){#home{padding:10px 14px;gap:3%}.home-overview{grid-template-rows:minmax(0,1fr) 83px 68px;gap:5px}.overview-note{padding:4px 8px;grid-template-rows:20px minmax(0,1fr)}.overview-note b{font-size:11px}.overview-note p{font-size:10px;line-height:1.3}.home-overview .world{flex-direction:row;gap:6px;padding:5px}.home-overview .world .planet{width:32px}.home-overview .world b{font-size:10px}.home-copy{gap:10px}.home-copy h1{font-size:32px}.home-copy p{font-size:13px}.home-copy .home-small{display:none}}
@media(max-height:410px){.home-overview{grid-template-rows:minmax(0,1fr) 63px 40px}.overview-note p{font-size:9px}.overview-note b{font-size:10px}.home-overview .world .planet{width:23px}.home-overview .world b{font-size:9px}.home-copy h1{font-size:25px}.home-copy p{font-size:11px}.home-copy .eyebrow,.home-foot{display:none}}
.overview-note{grid-template-columns:minmax(0,1fr) 28px 25px auto}.overview-note p{overflow:hidden;align-self:stretch}.overview-note button[hidden]+button{grid-column:4}
@media(max-width:600px) and (min-height:501px){.overview-note{grid-template-columns:minmax(0,1fr) 23px 22px auto}.overview-note p{font-size:11px;line-height:1.4}.overview-note b{font-size:10px}.home-overview{grid-template-rows:minmax(110px,1fr) 91px 58px}}
.overview-lines{stroke-dasharray:5 7;animation:overview-signal calc(65s / var(--speed)) linear infinite;filter:drop-shadow(0 0 3px #65dfce22)}@keyframes overview-signal{to{stroke-dashoffset:-240}}
.reduce-motion .overview-lines{animation:none}.home-overview .world:hover{box-shadow:0 0 25px #63eedb22}
/* v1.7 · observatory module. Scene bounds are independent of text and controls. */
#home{grid-template-columns:minmax(260px,.78fr) minmax(0,1.5fr);gap:28px;padding:24px 20px;background:radial-gradient(ellipse at 70% 45%,#1939532b,transparent 65%)}.home-copy{gap:18px}.home-copy h1{font-size:clamp(36px,4.3vw,67px);font-weight:650}.home-copy h1 span{color:#a9dfef}.home-copy .eyebrow{font-size:10px;line-height:1.6;letter-spacing:.12em}.home-copy p{font-size:clamp(14px,1.4vw,18px);line-height:1.6}.home-copy .home-small{font-size:14px}.home-overview{grid-template-rows:minmax(0,1fr) 95px 95px;gap:9px;max-height:none}.cosmos-window{position:relative;min-width:0;min-height:0;overflow:hidden;border:1px solid #96e9ed35;border-radius:34% 34% 24px 24px / 12% 12% 24px 24px;background:#061427;box-shadow:inset 0 0 35px #65dce718,0 0 70px #30477714}.cosmos-window:after{content:'';position:absolute;inset:8px;border:1px solid #bdeff817;border-radius:inherit;pointer-events:none}.cosmos-window canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}.cosmos-window canvas:active{cursor:grabbing}.cosmos-topline{position:absolute;top:15px;left:24px;right:18px;display:flex;align-items:center;justify-content:flex-end;gap:5px;pointer-events:none}.cosmos-topline span{margin-right:auto;font-size:9px;letter-spacing:.14em;color:#bcd2e2}.cosmos-topline button{pointer-events:auto;font-size:10px;min-height:26px;padding:3px 8px;background:#071b30db}.cosmos-console{position:absolute;bottom:14px;left:18px;right:18px;display:flex;align-items:center;gap:8px}.cosmos-console select{min-width:0;flex:1;width:0;max-width:270px;margin:0;padding:5px 9px;min-height:32px;font-size:12px;background:#061628ee}.cosmos-console button,.send-idea{min-height:32px;font-size:12px;padding:5px 12px;background:#172d47eb;border-color:#ffc99488;color:#ffdfa5}.cosmos-console button{margin-left:auto;white-space:nowrap}.home-overview .world .planet{width:43px}.home-overview .worlds{height:100%;align-self:stretch}.overview-note{background:linear-gradient(110deg,#0b263a,#111d33);border-color:#9cbddf24}.home-overview .world{background:linear-gradient(130deg,#10374b78,#15182d78)}.home-overview .world:hover .planet{filter:brightness(1.35)}
.flow-visual{display:grid;grid-template-rows:34px 27px minmax(0,1fr) 57px 44px 19px;gap:8px;padding:0;text-align:center;overflow:hidden}.flow-visual h2{font-size:18px;line-height:1.2}.basics-window{border-radius:26% 26% 20px 20px / 10% 10% 20px 20px}.basics-window .send-idea{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);white-space:nowrap}.location-readout{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.location-readout button{min-height:0;display:flex;flex-direction:column;justify-content:center;gap:4px;padding:5px 7px;background:#0b2238;border-color:#96e9ed30}.location-readout small{font-size:8px;letter-spacing:.11em;color:#94b8cf}.location-readout span{font-size:12px;line-height:1.2}.flow-visual #flowDescription{font-size:11px;line-height:1.35;max-width:none;align-self:center;overflow:hidden}.flow-visual>a{font-size:10px}.learn-layout{gap:18px}.learn-card{background:linear-gradient(150deg,#103044c9,#10162be8)}#basics .learn-card{padding:22px;gap:12px}.location-choices button{font-size:11px}
#references{grid-template-rows:42px minmax(0,1fr) 32px}.starter-shelves{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;min-height:0;padding:10px 10px 18px}.starter-pack{--world:#69f1d7;min-height:0;border:1px solid color-mix(in srgb,var(--world),transparent 60%);background:radial-gradient(ellipse at 50% 0%,color-mix(in srgb,var(--world),transparent 91%),transparent 55%),linear-gradient(160deg,#102237,#090f22);border-radius:22px;padding:clamp(15px,2.3vw,34px);display:grid;grid-template-rows:auto 1fr 1fr 22px;gap:18px;box-shadow:0 15px 45px #0002}.starter-heading{display:flex;align-items:center;gap:15px}.tiny-world{display:block;flex:none;width:46px;height:46px;border-radius:50%;border:1px solid var(--world);background:radial-gradient(circle at 30% 25%,var(--world),#123043 45%,#030b19 78%);box-shadow:0 0 30px color-mix(in srgb,var(--world),transparent 80%)}.starter-heading h2{font-size:clamp(22px,2.4vw,34px);color:var(--world);line-height:1.2}.starter-heading p{font-size:12px;margin-top:6px;line-height:1.4}.starter-guides{display:flex;flex-direction:column;justify-content:center;gap:12px}.starter-guides .eyebrow{color:var(--muted);font-size:9px}.starter-guides a{font-size:14px;color:#d7eef2;text-decoration:none;border-bottom:1px solid #8da6c92c;padding-bottom:9px}.starter-guides a:hover{color:var(--world)}.starter-video{display:grid;grid-template-columns:32px 1fr;align-content:center;align-items:center;gap:9px;text-decoration:none;background:#07132588;border:1px solid #879bc43a;border-radius:14px;padding:16px;color:#dcebf8}.starter-video:hover{border-color:var(--world);background:#15263d}.play-star{color:var(--world);font-size:19px;grid-row:1/3}.starter-video strong{font-size:14px;line-height:1.4;font-weight:600}.starter-video small{font-size:10px;line-height:1.5}.starter-checked{font-size:10px;color:var(--muted);align-self:end}#referenceBrowser{min-height:0;display:grid;grid-template-rows:36px minmax(0,1fr);gap:10px}#referenceBrowser>select{margin:0;min-height:30px;width:270px;font-size:13px;padding:4px 8px}#referenceBrowser .references-layout{min-height:0}.soundtrack-picker{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;margin:10px 0}.soundtrack-picker label{font-size:12px}.soundtrack-picker input{font-size:10px;max-width:100%;margin:4px 0}.soundtrack-picker button{font-size:10px;min-height:28px;padding:3px 7px}.soundtrack-picker p{grid-column:1/-1;font-size:11px}.utilities{gap:4px}
@media(max-width:1050px){#home{grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr);gap:18px;padding:18px 8px}.home-copy h1{font-size:39px}.home-copy p{font-size:14px}.home-copy{gap:13px}.home-overview{grid-template-rows:minmax(0,1fr) 103px 84px}.home-overview .world .planet{width:35px}.cosmos-topline{left:18px;top:13px}.cosmos-topline span{font-size:8px}.starter-shelves{gap:10px;padding:4px}.starter-pack{padding:17px;gap:12px}.starter-heading{gap:10px}.tiny-world{width:34px;height:34px}.starter-heading p{font-size:11px}.starter-video{padding:12px;grid-template-columns:22px 1fr}.starter-video strong{font-size:12px}.starter-guides a{font-size:13px}.location-readout span{font-size:11px}.flow-visual #flowDescription{font-size:10px}.flow-visual{grid-template-rows:32px 23px minmax(0,1fr) 57px 52px 18px;gap:6px}#basics .learn-card{padding:16px}}
@media(max-width:600px) and (min-height:501px){#home{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);padding:8px 4px;gap:8px}.home-copy{gap:7px}.home-copy .eyebrow{font-size:8px}.home-copy h1{font-size:27px}.home-copy h1 br{display:none}.home-copy h1 span{font-size:26px}.home-copy p{font-size:12px;line-height:1.4}.home-copy .home-small,.home-foot{display:none}.home-overview{grid-template-rows:minmax(0,1fr) 82px 48px;gap:5px;min-height:0}.home-overview .world{flex-direction:row;padding:5px;gap:5px}.home-overview .world .planet{width:25px}.home-overview .world b{font-size:10px}.cosmos-window{border-radius:18px}.cosmos-topline{top:7px;left:12px;right:8px}.cosmos-topline span{font-size:7px;letter-spacing:.07em}.cosmos-topline button{font-size:9px;padding:2px 6px;min-height:22px}.cosmos-console{bottom:7px;left:9px;right:9px;gap:5px}.cosmos-console select,.cosmos-console button{font-size:10px;min-height:25px;padding:3px 6px}.flow-visual{grid-template-rows:26px 19px minmax(0,1fr) 42px 0 0;gap:3px;overflow:hidden}.flow-visual #flowDescription,.flow-visual>a{display:none}.flow-visual h2{font-size:12px}.location-choices button{font-size:10px;min-height:23px;padding:2px 6px}.location-readout{gap:4px}.location-readout small{font-size:6px}.location-readout span{font-size:9px}.location-readout button{padding:3px 4px;gap:3px}.basics-window .send-idea{font-size:9px;min-height:22px;padding:2px 7px;bottom:6px}#basics .learn-card{padding:10px 12px;gap:6px}.learn-layout{grid-template-rows:minmax(130px,42%) minmax(0,1fr)}#references{grid-template-rows:30px minmax(0,1fr) 27px;gap:6px}.starter-shelves{grid-template-columns:1fr;grid-template-rows:repeat(3,minmax(0,1fr));gap:8px;padding:0}.starter-pack{padding:10px 12px;border-radius:13px;grid-template-columns:1fr 1fr;grid-template-rows:38px minmax(0,1fr);gap:5px 10px}.starter-heading{grid-column:1/-1;gap:8px}.tiny-world{width:27px;height:27px}.starter-heading h2{font-size:19px}.starter-heading p{display:none}.starter-guides{gap:5px}.starter-guides .eyebrow,.starter-checked{display:none}.starter-guides a{font-size:11px;padding-bottom:4px}.starter-video{padding:7px;grid-template-columns:16px minmax(0,1fr);gap:3px 5px}.starter-video strong{font-size:10px;line-height:1.3}.starter-video small{font-size:8px;line-height:1.3}.play-star{font-size:12px}.learn-toolbar #moreReferences{font-size:11px;min-height:27px;padding:3px 8px;margin-left:auto}.utilities button{padding:4px 7px;min-width:29px}#referenceBrowser{grid-template-rows:30px minmax(0,1fr);gap:6px}#referenceBrowser>select{font-size:12px;width:100%}.reference-card{padding:12px;gap:7px;grid-template-rows:26px 30px auto minmax(0,1fr) 20px 18px 34px 30px}.reference-card h2{font-size:21px}}
@media(max-height:620px) and (min-width:601px){#home{padding:10px;gap:16px}.home-copy h1{font-size:31px}.home-copy p{font-size:12px}.home-copy .eyebrow{font-size:8px}.home-copy{gap:10px}.home-copy .home-small{display:none}.home-overview{grid-template-rows:minmax(0,1fr) 77px 51px;gap:5px}.home-overview .world{flex-direction:row}.home-overview .world .planet{width:27px}.home-overview .world b{font-size:10px}.cosmos-topline{top:8px;left:15px}.cosmos-console{bottom:8px}.cosmos-console select,.cosmos-console button{font-size:10px;min-height:25px}.flow-visual{grid-template-rows:25px 20px minmax(0,1fr) 42px 0 0;gap:4px}.flow-visual #flowDescription,.flow-visual>a{display:none}.flow-visual h2{font-size:13px}.location-readout small{font-size:7px}.location-readout span{font-size:10px}.basics-window .send-idea{bottom:7px;min-height:24px;font-size:10px;padding:3px 8px}#basics .learn-card{padding:12px;gap:6px}.starter-pack{padding:12px;gap:8px;grid-template-rows:auto 1fr 1fr 16px}.starter-shelves{padding:2px;gap:10px}.starter-heading h2{font-size:21px}.starter-heading p{display:none}.tiny-world{width:30px;height:30px}.starter-guides{gap:7px}.starter-guides a{font-size:12px;padding-bottom:5px}.starter-video{padding:8px;gap:5px}.starter-video strong{font-size:11px}.starter-video small{font-size:9px}.starter-checked{font-size:8px}#references{grid-template-rows:30px minmax(0,1fr) 22px}.reference-card{grid-template-rows:23px 27px auto minmax(0,1fr) 16px 15px 28px 26px;gap:4px;padding:10px}.reference-card select{font-size:11px}.reference-card>p:not(.small){font-size:12px}.soundtrack-picker{margin:5px 0}}
@media(max-height:410px){.home-overview{grid-template-rows:minmax(0,1fr) 60px 37px}.home-copy h1{font-size:25px}.home-copy .eyebrow{display:none}.home-copy p{font-size:11px}.cosmos-topline span{display:none}.home-overview .world .planet{width:22px}.starter-pack{gap:5px;padding:8px}.starter-guides .eyebrow,.starter-checked{display:none}.starter-pack{grid-template-rows:30px 1fr 1fr}.starter-video strong{font-size:10px}.starter-video small{font-size:8px}.starter-guides a{font-size:11px}.flow-visual{grid-template-rows:24px 18px minmax(0,1fr) 36px 0 0}.location-readout span{font-size:9px}}

#settings .dialog-tabs{display:flex;gap:4px}#settings .dialog-tabs button{padding:5px 7px;font-size:12px;min-width:0}.soundtrack-picker{grid-template-columns:minmax(0,1fr)}.soundtrack-picker button{justify-self:start}.soundtrack-picker input{display:block;width:100%}

/* The three home gateways stay visibly active while the observatory turns. */
.home-overview .world .planet{animation:home-planet-glow calc(3.8s / var(--speed)) ease-in-out infinite;box-shadow:0 0 18px color-mix(in srgb,var(--planet),transparent 45%),0 0 42px color-mix(in srgb,var(--planet),transparent 72%),inset -9px -8px 20px #000}
.home-overview .world:nth-child(2) .planet{animation-delay:-1.25s}.home-overview .world:nth-child(3) .planet{animation-delay:-2.5s}
.home-overview .world .planet:before{content:"";position:absolute;inset:-38%;z-index:2;pointer-events:none;border-radius:50%;background:radial-gradient(circle at 17% 25%,#fff 0 1px,var(--planet) 1.5px 2px,transparent 3px),radial-gradient(circle at 82% 31%,#fff 0 1px,var(--planet) 1.5px 2px,transparent 3px),radial-gradient(circle at 72% 81%,#fff 0 1px,var(--planet) 1.5px 2px,transparent 3px),radial-gradient(circle at 24% 73%,#fff 0 1px,var(--planet) 1.5px 2px,transparent 3px);filter:drop-shadow(0 0 3px var(--planet));animation:home-planet-sparkle calc(6s / var(--speed)) linear infinite}
@keyframes home-planet-glow{50%{box-shadow:0 0 26px color-mix(in srgb,var(--planet),transparent 25%),0 0 58px color-mix(in srgb,var(--planet),transparent 58%),inset -9px -8px 20px #000}}
@keyframes home-planet-sparkle{0%{opacity:.3;transform:rotate(0deg) scale(.94)}45%{opacity:1}100%{opacity:.35;transform:rotate(360deg) scale(1.04)}}
.crawl-window{touch-action:none;cursor:ns-resize;user-select:none}.story-overlay.cards .crawl-window{touch-action:auto;cursor:auto;user-select:text}
.reduce-motion .home-overview .world .planet,.reduce-motion .home-overview .world .planet:before{animation:none}
@media(prefers-reduced-motion:reduce){.home-overview .world .planet,.home-overview .world .planet:before{animation:none}}
