:root{--space:#09142b;--gold:#f6d28b}
.outer-closeup{width:100%;height:100%;overflow:hidden;border:1px solid #164969;border-radius:18px;background:#02132c url('assets/orbit-stars.svg') center/cover;box-shadow:inset 0 0 80px #02102b70}.outer-closeup>svg{width:100%;height:100%;display:block}.closeup-path{fill:none;stroke:#00e4f5;stroke-width:2;stroke-dasharray:6 9;opacity:.85}.closeup-label rect{fill:#0133469e;stroke:#00e5f4;stroke-width:1.2}.closeup-label text{fill:#00eff9;font:700 26px Nunito,Arial,sans-serif}.closeup-world.selected .closeup-label rect{fill:#075368c9;stroke-width:2}.orbit-views{flex-wrap:wrap}.orbit-views button{min-width:100px}.orbit-stage.starfield{background:#02132c url('assets/orbit-stars.svg') center/cover}.orbit-stage svg .outer-world text{stroke-width:0}.orbit-stage .outer-outline{opacity:.3}@media(max-width:800px){.outer-closeup>svg{min-height:0}.orbit-views button{min-width:85px;font-size:13px}}
.orbit-legend{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;font-size:11px;color:#cddce7;padding:4px 12px 9px}.orbit-legend span{display:flex;align-items:center;gap:7px}.orbit-legend i{display:inline-block;width:20px;height:2px;background:#e6c987;box-shadow:0 0 7px #e6c987}.orbit-legend span:last-child{color:#92a6bb}.orbit-stage{background-image:radial-gradient(ellipse at 50% 50%,#19334a66,transparent 65%),radial-gradient(1px 1px at 12% 18%,#deeafa 90%,transparent),radial-gradient(1px 1px at 80% 22%,#deeafa 90%,transparent),radial-gradient(1.5px 1.5px at 23% 75%,#b2d4ec 90%,transparent),radial-gradient(1px 1px at 94% 62%,#deeafa 90%,transparent)}.orbit-list .outer-choice{border-left:3px solid #bfa469;background:#fff9e9}.orbit-stage .inner-world text{fill:#b5c6d8}.orbit-stage .outer-world text{letter-spacing:.3px}.orbit-world,.orbit-track{transition:opacity .2s}.outer-outline{opacity:.75}@media(prefers-reduced-motion:reduce){.orbit-world,.orbit-track{transition:none}}@media(max-width:600px){.orbit-legend{gap:6px 14px;font-size:10px}.orbit-top{flex-wrap:wrap}}
.orbit-stage svg text{paint-order:stroke;stroke:#09142b;stroke-width:4px;stroke-linejoin:round}.orbit-stage svg .sun-label{stroke-width:3px}
.cover h1{font-size:clamp(34px,4.1vw,66px)}
.starfield{background-color:var(--space);background-image:radial-gradient(1px 1px at 12% 18%,#deeafa 90%,transparent),radial-gradient(1px 1px at 80% 22%,#deeafa 90%,transparent),radial-gradient(1.5px 1.5px at 23% 75%,#b2d4ec 90%,transparent),radial-gradient(1px 1px at 71% 81%,#deeafa 90%,transparent),radial-gradient(1px 1px at 45% 9%,#deeafa 90%,transparent),radial-gradient(1px 1px at 94% 62%,#deeafa 90%,transparent);color:#eef7f9}
.solar-cover{position:relative;isolation:isolate;width:91%;height:100%;max-height:390px;min-height:240px;border-radius:28px;overflow:hidden;box-shadow:0 20px 38px #29554e24;border:1px solid #7a989b40}
.solar-cover iframe{position:absolute;width:80%;height:100%;left:10%;border:0;pointer-events:none;mix-blend-mode:lighten}
.hero-tag{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:9px 18px;border:1px solid #ffffff30;background:#1c3243d9;border-radius:24px;font-size:14px;color:#dfedec}
.cover-orbit{position:absolute;width:85%;height:42%;border:1px solid #b7d5db26;left:7%;top:29%;border-radius:50%;transform:rotate(-30deg)}.cover-orbit.two{width:110%;height:60%;left:-5%;top:18%}.cover-star{position:absolute;color:#f6d28b;font-size:25px}.cover-star.a{left:13%;top:23%}.cover-star.b{right:12%;top:18%}.cover-star.c{right:17%;bottom:19%;font-size:17px}
.world-list{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:10px 0 20px}.world-list button{display:flex;gap:8px;align-items:center;position:relative;text-align:left;padding:10px;font-size:15px}.world-list button span{display:flex;flex-direction:column}.world-list small{font-size:10px;font-weight:400;margin-top:2px}.world-list i,.orbit-list i{width:21px;height:21px;flex:none;border-radius:50%;background:radial-gradient(circle at 30% 30%,#ffffffa0,var(--world-color) 35%,#00000050);box-shadow:0 1px 3px #0002}.world-list [aria-pressed=true],.orbit-list [aria-pressed=true],.view-switch [aria-pressed=true],.step-list [aria-pressed=true]{background:#e3f2df;border-color:#458b63;color:#2f7256}.visited{margin-left:auto;font-size:12px;color:#4a9363}.progress-note{font-size:13px;color:#6d8d80;margin:14px 0}
#scene{overflow:hidden}#lab .workspace{padding:22px 28px 18px}.workspace{overflow:hidden}.world-card{display:flex;flex-direction:column;width:100%;height:100%;max-height:490px;border-radius:22px;overflow:hidden;box-shadow:0 10px 25px #39675215;background:#fffdf3}.world-portrait{flex:1;min-height:150px;position:relative;display:flex;justify-content:center}.world-portrait iframe{width:75%;height:100%;border:0;pointer-events:none;mix-blend-mode:lighten}.world-portrait h3{position:absolute;bottom:16px;left:22px;font-size:29px;color:#fff;font-weight:700;letter-spacing:-.7px}.world-chip{position:absolute;right:15px;top:14px;font-size:12px;border:1px solid #d3dfed30;background:#20384f;border-radius:20px;padding:5px 12px;color:#dbe8eb}.world-facts{display:grid;grid-template-columns:repeat(4,1fr);padding:13px 10px;background:#fffdf4;gap:7px}.world-facts div{padding:4px 8px;border-left:1px solid #d8e4d5}.world-facts div:first-child{border:0}.world-facts small{display:block;color:#7a8e83;font-size:10px;margin-bottom:5px;text-transform:uppercase;letter-spacing:.7px}.world-facts strong{display:block;font-size:16px;color:#35615b;line-height:1.3}
#discovery{padding:13px 16px}#discovery h3{font-size:21px}#discovery p{font-size:17px}.large-text #discovery p{font-size:20px}.large-text #lab .workspace{overflow:auto}.large-text #scene{min-height:320px}
.view-switch{display:flex;gap:7px;margin:12px 0 20px}.view-switch button{flex:1;font-size:14px}.hint{padding:14px;background:#eef4e4;border-left:3px solid #bed4a9;font-size:16px;color:#69867a;margin:16px 0}.orbit-list{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:12px 0}.orbit-list button{display:flex;gap:9px;align-items:center;font-size:15px}.orbit-focus{display:flex;flex-direction:column;gap:5px;padding:16px;background:#fff8df;border-left:3px solid #e7c879;margin:15px 0}.orbit-focus strong{font-size:23px}.orbit-focus span{color:#658579;font-size:15px}.speed-label{display:block;font-weight:700;margin:15px 0 8px}#orbit-speed{font:inherit;color:#576c70;border:1px solid #a9b9a6;background:#fff;padding:10px;width:100%;border-radius:4px}.orbit-stage{display:flex;flex-direction:column;width:100%;height:100%;border-radius:22px;overflow:hidden;min-height:220px}.orbit-top{display:flex;justify-content:space-between;gap:12px;padding:16px 20px 0;color:#b7d2d9;font-size:14px}.orbit-top strong{color:#f5dca6;font-weight:400}.orbit-stage svg{width:100%;flex:1;min-height:0}.orbit-stage svg text{font:18px Nunito,Arial;fill:#e1edf4}.orbit-stage svg .sun-label{font-size:15px;fill:#f6d28b}.orbit-note{padding:0 15px 12px;text-align:center;color:#8ca5b8;font-size:11px}
.cosmic-stage{width:100%;height:100%;border-radius:22px;display:flex;flex-direction:column;align-items:center;padding:20px;overflow:hidden}.cosmic-stage>.eyebrow,.distance-card>.eyebrow{color:#a1c5cd;font-size:10px}.cosmic-stage h3{font-size:25px;margin:7px 0 12px;color:#f7eddb}.cosmic-picture{width:100%;flex:1;min-height:0}.cosmic-picture iframe{width:100%;height:100%;border:0;mix-blend-mode:lighten}.cosmic-picture:not(.galaxy) iframe{pointer-events:none}.cosmic-metric{font-size:23px;color:#f5dca6;margin-top:12px}.cosmic-metric span{font-size:13px;color:#bdd2d7}.image-credit,.cosmic-hint{font-size:11px;text-align:center;color:#a1b9c7;margin-top:8px}.distance-card{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px;border-radius:22px}.light-spark{font-size:45px;color:#f9d782}.distance-card h3{font-size:34px;color:#fff4dd}.distance-equals{font-size:22px;color:#96d7d6}.distance-card>p:not(.eyebrow){font-size:16px}.light-track{width:80%;display:flex;gap:8px;align-items:center;color:#cbdbdf;font-size:11px;margin:23px 0}.light-track i{height:2px;flex:1;background:linear-gradient(90deg,#f4ca7c,#7dd3d1);position:relative}.light-track i:after{content:'✦';position:absolute;right:0;top:-9px;color:#f4ca7c;font-size:16px}.andromeda{padding:14px 18px;background:#ffffff0c;border:1px solid #ffffff14;margin-top:20px;border-radius:12px;font-size:13px;color:#bed6da}.andromeda strong{display:block;color:#f3d49a;margin-top:5px}
.science-story{margin-top:24px;padding:17px;background:#fff8de;border-left:4px solid #d8b864}.science-story h3{font-size:21px;margin:7px 0}.science-story>p:not(.eyebrow){font-size:16px;color:#62736c}.table-scroll{overflow:auto;margin:18px 0}.table-scroll table{width:100%;border-collapse:collapse;font-size:15px}.table-scroll th,.table-scroll td{padding:10px;border:1px solid #d3ddcc;text-align:left;white-space:nowrap}.table-scroll thead{background:#e6f0dc}.table-scroll tr:nth-child(even){background:#f3f5e8}.source-note{font-size:14px!important;color:#7d8e81}.source-note a{color:#2f7769}.quiz-options{display:grid;gap:10px}#notes{width:100%;margin:15px 0;padding:14px;border:1px solid #9db69f;border-radius:5px;color:#294b50}.discovery-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.discovery-list span{padding:10px;background:#eff0e6;border-radius:4px;color:#8a9083}.discovery-list .done{background:#e1f1db;color:#378057}
@media(min-width:801px){#welcome{height:100dvh;overflow:hidden;min-height:0}#cover-art{min-height:0}#lab{height:100dvh;max-height:100dvh}body:has(#lab:not([hidden])){overflow:hidden}}
@media(max-width:1050px) and (min-width:801px){.world-list{grid-template-columns:1fr}.world-facts{grid-template-columns:1fr 1fr;padding:9px}.world-facts div{padding:5px 9px}.world-facts strong{font-size:14px}.world-portrait h3{font-size:24px}.orbit-list{grid-template-columns:1fr}.cosmic-stage h3{font-size:22px}.welcome-copy h2{font-size:40px}}
@media(max-width:800px){#lab{display:flex;height:auto;min-height:100dvh;overflow:visible;flex-direction:column}.sidebar{max-height:none;overflow:visible}.workspace{height:auto;min-height:650px;overflow:visible}.workspace #scene{flex:none;height:370px;min-height:0}.solar-cover{height:280px;width:94%;min-height:240px}.cover{min-height:510px}#cover-art{height:300px;flex:none}.cover h1{font-size:38px}.cover-foot{font-size:14px}.world-facts{grid-template-columns:1fr 1fr;padding:8px}.world-facts strong{font-size:14px}.world-facts small{font-size:9px}.world-portrait h3{font-size:25px}.orbit-top{font-size:12px;padding:13px 13px 0}.orbit-stage svg text{font-size:21px}.cosmic-stage{padding:15px}.cosmic-stage h3{font-size:22px}}
@media(max-width:450px){#lab .workspace{padding:18px 12px}.stage-header h2{font-size:25px}.cover h1{font-size:33px}.hero-tag{font-size:12px;padding:8px 12px}.world-list button{font-size:14px}.cosmic-metric{font-size:19px}.world-portrait iframe{width:100%}.table-scroll table{font-size:13px}.distance-card h3{font-size:28px}.distance-card .distance-equals{font-size:19px}}
.cosmic-picture.galaxy{overflow:hidden;border-radius:12px}.cosmic-picture.galaxy iframe{pointer-events:none;animation:galaxy-drift 24s ease-in-out infinite alternate;animation-play-state:paused}.cosmic-picture.galaxy.drifting iframe{animation-play-state:running}
@keyframes galaxy-drift{from{transform:scale(1)}to{transform:scale(1.12) rotate(3deg)}}
@media(prefers-reduced-motion:reduce){.cosmic-picture.galaxy iframe{animation:none}}

.orbit-stage svg text{font-size:26px}.orbit-stage svg .sun-label{font-size:21px}

.closeup-mobile .closeup-label text{font-size:40px}.closeup-mobile .closeup-path{stroke-width:2.5}

.orbit-views{display:grid;grid-template-columns:1fr 1fr}.orbit-views button{min-width:0}

/* Give the orbit diagram its own vertical space instead of squeezing eight paths. */
#lab .workspace:has(.orbit-stage){overflow-y:auto}
.workspace #scene:has(.orbit-stage){flex:0 0 auto;height:clamp(590px,76vh,900px);min-height:590px}
.orbit-stage svg{flex:1;width:100%;min-height:0}
@media(max-width:800px){.workspace #scene:has(.orbit-stage){height:540px;min-height:540px}}
.world-portrait>.world-art,.solar-cover>.world-art{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none}
.cosmic-picture{position:relative}
.cosmic-picture>.cosmic-art{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:contain}
.cosmic-picture.milkyway>.cosmic-art,.cosmic-picture.deepfield>.cosmic-art{mix-blend-mode:lighten}
.cosmic-picture.galaxy .star-journey{animation:galaxy-drift 24s ease-in-out infinite alternate;animation-play-state:paused;transform-origin:center}
.cosmic-picture.galaxy.drifting .star-journey{animation-play-state:running}
@media(prefers-reduced-motion:reduce){.cosmic-picture.galaxy .star-journey{animation:none}}
.world-list .world-thumbnail{width:48px;height:48px;flex:none;object-fit:contain;border-radius:12px;background:radial-gradient(circle at 40% 35%,#233e5c,#0c1930);border:1px solid #b6c6d4;padding:2px}
.desk-tools #planet-sound-toggle{font-size:13px;white-space:nowrap;padding:8px 10px;color:#466c68;border:1px solid #b3d2c5;background:#f5fff9}
@media(max-width:600px){.stage-header{flex-wrap:wrap}.desk-tools #planet-sound-toggle{font-size:12px}}
.world-list button:has(.world-thumbnail){padding:8px;gap:9px;min-height:72px}
.world-list button:has(.world-thumbnail) span{min-width:0;line-height:1.25}
.world-list button:has(.world-thumbnail) small{line-height:1.4}
@media(max-width:450px){.world-list .world-thumbnail{width:40px;height:40px}.world-list button:has(.world-thumbnail){gap:6px;font-size:13px}.world-list button:has(.world-thumbnail) .visited{font-size:10px}}
