/* Progressive planetary lessons, with generous targets for small hands. */
#discovery-panel{width:min(760px,calc(100vw - 32px));max-height:92dvh}#education-reader{margin-top:22px;color:#ced9ec;line-height:1.8}#education-reader button{min-height:46px}#education-reader .solar-icon{width:19px;height:19px;flex-shrink:0}#education-reader p{font-size:14px;line-height:1.85}#education-reader h3{font-size:24px;line-height:1.35;color:#f7e7b7;margin:12px 0 18px}.edu-toolbar{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:16px}.edu-toolbar label{font-size:10px;color:#a1b7d3;display:grid;gap:6px}.edu-toolbar select{font:inherit;font-size:13px;color:#edf3ff;background:#14263e;border:1px solid #7b9bbb55;padding:11px;border-radius:9px;min-height:44px;max-width:100%}.edu-toolbar>span{font-size:10px;color:#94b8bc;padding-bottom:8px}.edu-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:14px}.edu-tabs button{display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 7px;font-size:11px;background:#ffffff05;border:1px solid #8da6c433;border-radius:10px;color:#c4d2e7}.edu-tabs button[aria-selected=true]{background:#efd06c14;border-color:#efd06c88;color:#ffe39c}.edu-panel{background:#ffffff03;border:1px solid #9ab6d324;border-radius:16px;padding:22px}.edu-step-nav{display:flex;gap:7px;justify-content:space-between;margin-bottom:23px}.edu-step-nav button{border:1px solid #7890ad44;background:#15243b;border-radius:50%;width:43px;min-height:43px!important;flex-shrink:0;color:#a2b5cf;font-size:13px}.edu-step-nav button.read{border-color:#8bbdb065}.edu-step-nav button.selected{background:#ffdc50;color:#17203c;border-color:#ffdc50;font-weight:800}.edu-step-kicker{font-size:9px;letter-spacing:1.4px;color:#b5a16e}.edu-step-controls{display:flex;gap:15px;justify-content:space-between;margin-top:26px;padding-top:20px;border-top:1px solid #ffffff15}.edu-step-controls button{font-size:12px;padding:12px 15px;width:auto;gap:10px}.edu-step-controls .secondary-button{max-width:45%}.edu-step-controls button:disabled{opacity:.3;cursor:default}.edu-map{display:flex;align-items:center;gap:20px;padding:5px 16px;border-radius:13px;border:1px solid #6a93ba33;background:#0b182a}.edu-map svg{width:210px;height:150px;max-width:60%;flex-shrink:0}.edu-map span{font-size:11px;color:#9bb3cf}.edu-data-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.edu-data-pair>div{border:1px solid #d6c58733;background:#d6c58708;border-radius:12px;padding:14px}.edu-data-pair small{display:block;font-size:10px;color:#a7b9d2;line-height:1.5;margin-bottom:8px}.edu-data-pair strong{font-size:17px;color:#f6dda2;line-height:1.5;display:block}#education-reader .secondary-button{display:flex;justify-content:center;align-items:center;gap:10px;font-size:12px}#education-reader .edu-note{font-size:11px;color:#8da6c4;line-height:1.8}.edu-message-track{position:relative;display:flex;justify-content:space-between;align-items:center;margin:24px 0 18px;height:32px}.edu-message-track span{font-size:11px;padding:6px 12px;background:#24435c;border-radius:7px;z-index:1}.edu-message-track>i{position:absolute;left:30px;right:30px;top:15px;height:1px;background:#abc6df55}.edu-message-track>b{position:absolute;width:8px;height:8px;border-radius:50%;background:#ffe17b;left:35px;top:12px;opacity:0}.edu-message-track.sending>b{animation:edu-signal 1.5s linear forwards}@keyframes edu-signal{0%{left:35px;opacity:1}99%{opacity:1}100%{left:calc(100% - 35px);opacity:0}}.edu-feedback{min-height:24px;color:#a3e1c4!important}.edu-size{display:flex;align-items:center;justify-content:space-evenly;gap:20px;padding:20px 0}.edu-size>div{min-height:180px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px;flex:1}.edu-size i{display:block;border-radius:50%;box-shadow:inset -14px -7px 20px #0008;flex-shrink:0}.edu-size span{font-size:11px;text-align:center;color:#b3c7df}.edu-layer-buttons{display:flex;gap:8px}.edu-layer-buttons button{flex:1;padding:8px;border:1px solid #8da6c444;background:#10243b;border-radius:10px;font-size:12px}.edu-layer-buttons button.selected{color:#ffe39c;border-color:#f1cf6c}.edu-cutaway{width:160px;height:160px;position:relative;border-radius:50%;background:#9c7764;margin:24px auto;overflow:hidden;box-shadow:inset -20px -10px 25px #0007}.edu-cutaway i,.edu-cutaway b,.edu-cutaway span{position:absolute;border-radius:50%;inset:22px;background:#cb9b59}.edu-cutaway b{inset:45px;background:#e4bc6d}.edu-cutaway span{inset:62px;background:#f6e0a2}.edu-callout{display:flex;gap:13px;align-items:flex-start;padding:16px;border-radius:12px;background:#76b8dc0b;border:1px solid #76b8dc33;margin-top:20px}.edu-callout p{margin:0}.edu-callout .solar-icon{color:#8ccbc8;margin-top:4px}.edu-gravity{display:flex;gap:18px;margin:22px 0}.edu-gravity>div{height:192px;position:relative;flex:1;border-bottom:3px solid #8ebbcf77;background:linear-gradient(0deg,#38577622,transparent);text-align:center;border-radius:12px 12px 0 0}.edu-gravity strong{font-size:12px;color:#9eb7d4}.edu-gravity i{position:absolute;top:30px;left:calc(50% - 10px);width:20px;height:20px;border-radius:50%;background:#ffdc50;box-shadow:inset -4px -3px 4px #87680088}.edu-gravity span{font-size:9px;color:#7896b7;position:absolute;bottom:6px;left:0;right:0}.edu-time-buttons{display:flex;gap:10px}.edu-time-demo{height:145px;display:grid;place-items:center}.edu-demo-globe{position:relative;width:95px;height:95px;border-radius:50%;background:#316e91;overflow:hidden}.edu-demo-globe i{position:absolute;inset:0 -100%;background:repeating-linear-gradient(70deg,transparent 0 20px,#79bc9d 20px 42px,transparent 42px 65px);animation:edu-spin 5s linear infinite}.edu-demo-globe b{position:absolute;inset:0;border-radius:50%;background:linear-gradient(90deg,transparent 40%,#000b 80%)}@keyframes edu-spin{to{transform:translateX(33.333%)}}.edu-demo-orbit{position:relative;width:120px;height:120px;border:1px dashed #7a96b6;border-radius:50%;display:grid;place-items:center}.edu-demo-orbit strong{font-size:30px;color:#ffdc50}.edu-demo-orbit>i{position:absolute;inset:0;animation:edu-orbit 6s linear infinite}.edu-demo-orbit b{position:absolute;top:calc(50% - 9px);left:-9px;width:18px;height:18px;border-radius:50%;background:#6eb6d1;box-shadow:inset -5px -3px 4px #0007}@keyframes edu-orbit{to{transform:rotate(360deg)}}.edu-category-tag{font-size:9px;letter-spacing:1px;color:#d4b9ef;background:#ac7acf13;border:1px solid #ac7acf33;border-radius:7px;padding:8px 11px;display:inline-block;margin:12px 0 2px}.edu-category-tag.science-tag{color:#8ad4c1;background:#76d8b70c;border-color:#76d8b733}.edu-answer-options{display:grid;gap:10px}.edu-answer-options button{border:1px solid #8fa7c344;background:#10233b;border-radius:11px;padding:15px;text-align:left;font-size:14px;line-height:1.6}.edu-answer-options button.correct{background:#75dab51a;border-color:#75dab5}.edu-answer-options button.incorrect{border-color:#dbad7e}.edu-takeaways{padding-left:24px}.edu-takeaways li{font-size:14px;padding:10px 0 10px 5px;color:#d7e1ef;line-height:1.8}.edu-takeaways li::marker{color:#ffdc50;font-weight:bold}.edu-sources{margin-top:19px;border-top:1px solid #ffffff17;padding:16px 0;color:#94aeca}.edu-sources summary,.edu-ancient summary{font-size:11px;cursor:pointer;min-height:44px;display:list-item;padding:12px 5px}.edu-sources p,.edu-sources li{font-size:11px!important;line-height:1.8}.edu-sources a,.edu-ancient a{color:#a5d5e5;text-underline-offset:3px}.edu-ancient{margin:16px 0;border:1px solid #9cacc52c;border-radius:10px;padding:0 14px}.edu-ancient summary{color:#e1cf9f;font-size:14px}.edu-ancient p{font-size:13px;line-height:1.9;color:#b9cce2}.edu-ancient small{display:block;line-height:1.8;padding:10px 0}.astronaut-team img{max-height:130px;object-fit:contain}
@media(max-width:620px){#discovery-panel{width:calc(100vw - 16px);max-height:96dvh}#education-reader{margin-top:12px}.edu-toolbar{align-items:center}.edu-toolbar>span{max-width:86px;font-size:9px;text-align:right}.edu-toolbar select{font-size:11px;width:210px}.edu-tabs{grid-template-columns:1fr 1fr;gap:7px}.edu-tabs button{font-size:11px}.edu-panel{padding:16px 12px}.edu-step-nav{gap:3px}.edu-step-nav button{width:32px;min-height:36px!important;border-radius:9px;font-size:11px}.edu-step-controls{gap:10px}.edu-step-controls button{padding:10px;font-size:11px}.edu-map{gap:8px;padding:5px}.edu-map span{font-size:9px}.edu-data-pair{gap:8px}.edu-data-pair>div{padding:11px}.edu-data-pair strong{font-size:14px}.edu-size{gap:8px}.edu-size span{font-size:10px}#education-reader h3{font-size:21px}#education-reader p{font-size:13px}.edu-layer-buttons{gap:5px}.edu-layer-buttons button{font-size:10px;padding:6px}.edu-time-buttons{flex-direction:column}.edu-step-controls .primary-button{box-shadow:0 3px 0 #b59627}.edu-step-controls .secondary-button{max-width:none}.solar-footer{position:sticky;bottom:0;background:#142238;z-index:3}.astronaut-team img{max-height:95px}}
/* Touch controls remain independent pointers: throttle and steering can be held together. */
body[data-input=touch] .keyboard-hint{display:none}body[data-input=touch] .touch-hint{display:block}body[data-input=touch] kbd{display:none}body[data-input=touch] .touch-flight{display:flex;left:12px;right:12px;bottom:max(16px,env(safe-area-inset-bottom));justify-content:flex-start;gap:12px;width:auto;transform:none;pointer-events:none}body[data-input=touch] .touch-flight button{width:60px;height:60px;min-height:60px;pointer-events:auto;background:#152b43ed;border:1px solid #a5bdce66;touch-action:none;user-select:none;-webkit-user-select:none}body[data-input=touch] .touch-flight button[data-control=thrust]{order:3;margin-left:auto;width:74px;height:74px;border-color:#ffe07eaa;background:#4c4729ec;color:#ffe07e}body[data-input=touch] .touch-flight button[data-control=right]{order:2}body[data-input=touch] .touch-flight button[data-control=left]{order:1}body[data-input=touch] .planet-label.ready{min-height:38px;padding:8px 10px}body[data-input=touch] .flight-hud small{display:none}body[data-input=touch] .flight-hud .touch-hint{font-size:9px}body[data-input=touch] .flight-hud{bottom:108px;left:14px;max-width:calc(100% - 28px)}body[data-input=touch] #proximity-action{min-height:46px;font-size:12px;padding:10px 13px}body[data-input=touch] .planet-nav,body[data-input=touch] .scale-note,body[data-input=touch] .passport{display:none}body[data-input=touch] .map-tools{top:112px;left:14px;right:14px;gap:7px;flex-wrap:wrap}body[data-input=touch] .map-tools button{min-height:44px;padding:8px 12px;font-size:10px}body[data-input=touch] #map-button,body[data-input=touch] #zoom-in,body[data-input=touch] #zoom-out{display:none}body[data-input=touch] .mission-heading{top:18px;left:16px;max-width:calc(100% - 155px)}body[data-input=touch] .mission-heading h1{font-size:22px;margin:7px 0}body[data-input=touch] .mission-heading p{font-size:9px}body[data-input=touch] .solar-minimap{width:126px;right:10px;top:16px}body[data-input=touch] .solar-minimap canvas{height:100px}body[data-input=touch] .solar-minimap .minimap-header{font-size:7px}body[data-input=touch] .solar-minimap p{font-size:7px}body[data-input=touch] .scene-caption{display:none}body[data-input=touch] .change-ship{display:none}body[data-input=touch] .navigation-planet{min-height:44px;font-size:10px}body[data-input=touch] .navigation-heading p{display:none}body[data-input=touch] .navigation-heading h2{font-size:18px}body[data-input=touch] .navigation-detail{max-height:37%;bottom:78px}body[data-input=touch] .navigation-detail h2{font-size:20px;margin:6px 0}body[data-input=touch] .navigation-detail .navigation-model-note{display:none}body[data-input=touch] .navigation-heading .close-button,body[data-input=touch] .close-button{min-width:44px;min-height:44px}body[data-input=touch] .navigation-footer .primary-button{min-height:46px}
@media(pointer:coarse){.topbar{height:64px;padding:0 15px;gap:10px}.topbar .brand{gap:12px}.topbar .brand>img{width:70px}.topbar .brand>span:last-child{font-size:18px}.topbar .brand small{font-size:6px}.journey{display:none}.toolbar{gap:5px}.toolbar button{width:44px;height:44px}.brand-divider{display:none}#experience{height:calc(100dvh - 64px);min-height:0!important}.panel-stage{max-height:100%;overflow-y:auto;overscroll-behavior:contain;pointer-events:auto;padding-bottom:35px}.hangar{width:min(560px,100%)}.ship-options{max-height:32dvh;overflow-y:auto;overscroll-behavior:contain}.hangar h1{font-size:34px}.hangar .intro{font-size:12px}.hangar-tip{display:none}.primary-button,.secondary-button,.map-button{min-height:46px}.explore-dialog{max-height:96dvh}.explore-dialog .solar-content{padding:18px}.explore-dialog .solar-hero{padding:20px 24px 18px}.explore-dialog .solar-hero h2{font-size:34px}.explore-dialog .solar-art{width:100px;height:100px;min-width:100px}.explore-dialog .solar-orb{width:70px;height:70px}.explore-dialog .solar-footer{padding:14px 18px}.explore-dialog .solar-footer>span{display:none}.explore-dialog .solar-footer button{width:100%;justify-content:center}.tour-card{max-height:55%;overflow-y:auto}.autopilot-status{top:13px;max-width:calc(100% - 155px);padding:10px}.autopilot-status strong{font-size:12px}.autopilot-status small{font-size:8px}.approach-brake{bottom:165px;left:14px;font-size:9px}}
@media(pointer:coarse) and (orientation:portrait){.panel-stage{width:100%;padding:25px 22px 35px}.panel-stage h1{font-size:40px;max-width:320px}.team-welcome{margin-top:12px}.team-family{max-height:160px;object-fit:contain}.ship-options{max-height:29dvh}.mission-heading .eyebrow{font-size:6px;letter-spacing:.7px}.map-tools{max-width:calc(100% - 145px)}body[data-input=touch] .map-tools{top:143px;max-width:calc(100% - 28px)}body[data-input=touch] .flight-hud>.eyebrow{display:none}body[data-input=touch] .flight-hud>.touch-hint{display:none}.explore-dialog .solar-hero{gap:12px}.solar-location{font-size:7px}.solar-kicker{font-size:8px}}
@media(pointer:coarse) and (orientation:landscape) and (max-height:650px){.panel-stage{padding:20px 25px;width:55%}.panel-stage h1{font-size:32px;margin:14px 0}.panel-stage .intro{font-size:12px;margin-bottom:15px}.team-welcome{display:none}.hangar .ship-options{max-height:33dvh}.hangar .launch-check{display:none}.hangar #back-welcome{margin-bottom:10px}.hangar h1{font-size:25px}.hangar .intro{margin:5px 0 12px}.mission-heading{display:none}body[data-input=touch] .map-tools{top:14px;max-width:calc(100% - 175px)}body[data-input=touch] .solar-minimap{width:108px;top:10px}body[data-input=touch] .solar-minimap canvas{height:75px}body[data-input=touch] .solar-minimap p{display:none}body[data-input=touch] .flight-hud{left:175px;bottom:18px;max-width:calc(100% - 430px)}body[data-input=touch] .flight-hud>.eyebrow,body[data-input=touch] .flight-hud>.touch-hint{display:none}body[data-input=touch] .touch-flight{bottom:12px}body[data-input=touch] .navigation-heading{top:9px;left:15px;right:15px}body[data-input=touch] .navigation-heading h2{font-size:16px;margin:6px 0}body[data-input=touch] .navigation-detail{left:auto;right:15px;top:62px;bottom:64px;width:260px;max-height:none;padding:11px}body[data-input=touch] .navigation-detail>p,body[data-input=touch] .navigation-distance-sun{display:none}body[data-input=touch] .navigation-detail h2{font-size:17px;margin:2px 0 8px}body[data-input=touch] .navigation-distance-main strong{font-size:14px}body[data-input=touch] .nav-autopilot{margin-top:9px!important}body[data-input=touch] .navigation-footer{bottom:10px;left:auto;right:15px}body[data-input=touch] .autopilot-status{top:67px}.explore-dialog .solar-art{display:none}.explore-dialog .solar-hero{padding:16px 24px}.explore-dialog .solar-hero h2{font-size:28px}.explore-dialog .solar-footer{position:sticky;bottom:0;background:#142238;z-index:4}}
@media(prefers-reduced-motion:reduce){.edu-demo-globe i,.edu-demo-orbit>i{animation-duration:20s}.edu-message-track.sending>b{animation-duration:.1s}}

body[data-input=touch] .flight-hud{top:auto}
body[data-navigation=active] .touch-flight,body[data-tour=active] .touch-flight,body:not([data-flight=flying]) .touch-flight,body:not([data-stage=space]) .touch-flight{display:none}

#nav-clear-selection{position:absolute;right:12px;top:12px;width:36px;height:36px;font-size:23px}.navigation-detail h2{padding-right:35px}body[data-navigation=active] #toast,body[data-tour=active] #toast{display:none}

body[data-input=touch] .approach-brake{top:auto;width:auto;max-width:calc(100% - 28px);height:auto;padding:9px 12px}

/* One-finger throttle and optional calibrated phone steering. */
.touch-hint,.tilt-tools{display:none}
body[data-input=touch] .flight-hud:has(#proximity-action[hidden]){display:none}
body[data-input=touch] .tilt-tools{display:block;position:absolute;left:14px;top:250px;z-index:9;max-width:min(300px,calc(100% - 28px));padding:10px 12px;border:1px solid #8bb4c43d;border-radius:13px;background:#11233bee;pointer-events:auto}
.tilt-tools>div{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.tilt-tools button{min-height:44px;border:1px solid #82bcb655;border-radius:10px;padding:10px 12px;background:#173849;color:#bee8dc;font:inherit;font-size:11px}.tilt-tools button[aria-pressed=true]{color:#ffe39c;border-color:#ffe39c66}.tilt-tools p{font-size:10px;line-height:1.7;color:#a6bcd2;margin:8px 0 0;max-width:260px}
body[data-tilt=ready] .touch-flight button[data-control=left],body[data-tilt=ready] .touch-flight button[data-control=right]{display:none}
body:not([data-flight=flying]) .tilt-tools,body[data-navigation=active] .tilt-tools,body[data-tour=active] .tilt-tools,body[data-autopilot=active] .tilt-tools{display:none}
@media(pointer:coarse) and (orientation:landscape){body[data-input=touch] .tilt-tools{top:72px;left:14px;max-width:235px;padding:8px 10px}.tilt-tools button{font-size:10px;padding:8px 10px}.tilt-tools p{font-size:9px;max-width:205px}}

/* Flight keeps only destinations, map/info icons and contextual actions on the scene. */
#nav-toggle{display:none}
#nav-toggle svg,#help-toggle svg{display:block;width:23px;height:23px;flex-shrink:0}
body[data-stage=space] .topbar{position:absolute;top:max(16px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));left:auto;height:auto;width:auto;padding:0;border:0;background:none;pointer-events:none}
body[data-stage=space] .topbar>.brand,body[data-stage=space] .topbar>.journey{display:none}
body[data-stage=space] .topbar .toolbar{display:flex;gap:8px;pointer-events:auto}
body[data-stage=space] .topbar .icon-button{display:grid;place-items:center;width:46px;height:46px;border:1px solid #93acc34f;background:#101c32df;box-shadow:0 4px 18px #0003}
body[data-stage=space][data-flight=flying] #nav-toggle{display:grid}
body[data-stage=space]:not([data-flight=flying]) #nav-toggle{display:none}
body[data-stage=space] #experience{height:100dvh;min-height:0!important}
body[data-stage=space] .scene-caption{display:none}
body[data-stage=space] #planet-nav{display:flex;position:absolute;left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));z-index:18;gap:5px;padding:9px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#7485a04d transparent;justify-content:center;pointer-events:auto;max-width:1100px;margin:0 auto}
#planet-nav .planet-chip{flex:1;min-width:64px;min-height:48px;max-width:120px;padding:7px 5px;flex-direction:column;gap:6px;font-size:10px}
#planet-nav .planet-chip .mini-planet{flex-shrink:0}
#planet-nav::-webkit-scrollbar{height:3px}
#planet-nav::-webkit-scrollbar-thumb{background:#7485a04d;border-radius:4px}
#proximity-action{position:absolute;left:50%;bottom:calc(94px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:7;pointer-events:auto;max-width:calc(100% - 28px);min-height:44px;padding:10px 16px;border:1px solid #f3d26970;background:#172338ee;color:#ffe57a;border-radius:13px;font:inherit;font-size:12px;font-weight:600;line-height:1.5;white-space:nowrap;box-shadow:0 8px 24px #0003}
#proximity-action kbd{border:1px solid #ffe57a55;border-radius:5px;padding:3px 5px;margin-right:7px;font-size:10px}
body[data-navigation=active] #proximity-action,body[data-tour=active] #proximity-action,body:not([data-flight=flying]) #proximity-action{display:none}
body:not([data-input=touch]) .touch-flight{display:none}
body[data-stage=space][data-input=touch] .touch-flight{bottom:calc(87px + env(safe-area-inset-bottom));left:14px;right:14px}
body[data-stage=space][data-input=touch] .touch-flight button{width:48px;height:48px;min-height:48px}
body[data-stage=space][data-input=touch] .touch-flight button[data-control=thrust]{width:58px;height:58px}
body[data-input=touch] #proximity-action{bottom:calc(157px + env(safe-area-inset-bottom));font-size:11px}
body[data-stage=space] .approach-brake{top:auto;left:16px;bottom:calc(153px + env(safe-area-inset-bottom));max-width:calc(100% - 32px);font-size:10px;pointer-events:none}
body[data-input=touch] .approach-brake{display:none}
body[data-stage=space] .autopilot-status{top:16px;left:16px;max-width:calc(100% - 140px)}
body[data-navigation=active] .navigation-heading{right:130px;top:18px}
body[data-navigation=active] .navigation-footer{bottom:calc(100px + env(safe-area-inset-bottom))}
body[data-navigation=active] .navigation-detail{bottom:calc(164px + env(safe-area-inset-bottom));max-height:calc(100% - 245px);overflow:auto}
body[data-tour=active] .tour-card{max-height:calc(100% - 110px);overflow:auto}
#help-dialog{width:min(680px,calc(100vw - 24px));max-width:680px;max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;padding:30px;background:#111c31;border-radius:22px}
#help-close{position:sticky;top:0;right:0;float:right;z-index:3;display:grid;place-items:center;width:44px;height:44px;margin:-10px -4px 0 10px;background:#20314b;border:1px solid #a4bad540;border-radius:50%}

/* Destination chips choose a route; only a nearby world label offers a landing. */
#navigation-you{z-index:3}
#navigation-you .navigation-you-ring{width:40px;height:40px;background:#152236d9;border-color:#ffe17b;box-shadow:0 0 0 7px #ffe17b15,0 0 30px #ffdc5040}
#navigation-ship-arrow{position:absolute;width:26px;height:26px;fill:#ffe17b;stroke:#14243a;stroke-width:1.3;filter:drop-shadow(0 2px 4px #0009)}
#navigation-you strong{top:-38px}
.navigation-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}
.navigation-actions button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:52px;text-align:center;line-height:1.5;width:100%}
.navigation-actions .nav-autopilot{margin-top:0;padding:10px 8px!important}
.navigation-actions .nav-manual{padding:10px 8px;font-size:12px;background:#1a3345;border:1px solid #94c2d077;color:#d8f0ff}
.navigation-actions .solar-icon{width:18px;height:18px;flex-shrink:0}
.navigation-actions .nav-autopilot span{font-size:11px!important}
@media(max-width:640px){#navigation-you strong{font-size:8px;white-space:normal;max-width:150px;text-align:center;line-height:1.4;top:-42px}.navigation-actions{gap:7px;margin-top:12px}.navigation-actions .nav-manual{font-size:11px}.navigation-actions button{min-height:52px;gap:5px}.navigation-actions .solar-icon{width:16px;height:16px}.navigation-actions .nav-autopilot span{font-size:10px!important}}
#navigation-you strong{width:max-content;white-space:nowrap}
@media(max-height:500px) and (orientation:landscape){body[data-navigation=active] .navigation-detail{padding:10px}body[data-navigation=active] .navigation-detail>.eyebrow{font-size:7px;line-height:1.3}body[data-navigation=active] .navigation-detail h2{font-size:16px;line-height:1.2;margin:4px 0 7px}body[data-navigation=active] .navigation-distance-main{padding:7px 10px}body[data-navigation=active] .navigation-distance-main small{font-size:7px;margin-bottom:3px}body[data-navigation=active] .navigation-distance-main strong{font-size:14px;line-height:1.3}.navigation-actions{margin-top:8px}.navigation-actions button{min-height:46px;padding:8px!important}.navigation-actions .nav-autopilot span{font-size:10px!important;line-height:1.3!important}}

/* On-demand sky atlas: a separate Earth-view chart, not another flight layer. */
#sky-toggle{display:none}
body:not([data-flight=flying]) #sky-open-from-help{display:none}
body[data-stage=space][data-flight=flying] #sky-toggle{display:grid}
#sky-toggle svg{width:23px;height:23px}
#sky-toggle[aria-pressed=true]{color:#a4edff!important;border-color:#93dcea99!important;background:#15384b!important}
body[data-sky=active] #space-scene{visibility:hidden}
body[data-sky=active] #planet-nav,body[data-sky=active] #planet-labels,body[data-sky=active] #proximity-action,body[data-sky=active] #autopilot-status,body[data-sky=active] #approach-brake,body[data-sky=active] #toast,body[data-sky=active] .touch-flight,body[data-sky=active] #planet-dock{display:none!important}
.sky-view{position:absolute;inset:0;z-index:24;background:#070d1c;color:#ecf3ff}
#sky-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none;cursor:grab;outline:none}
#sky-canvas:focus-visible{outline:2px solid #8cd6e850;outline-offset:-4px}
.sky-heading{position:absolute;top:22px;left:26px;right:200px;z-index:2;pointer-events:none}
.sky-heading>.eyebrow{font-size:8px;letter-spacing:1.8px;color:#8ac5d3}
.sky-heading h1{font-size:31px;line-height:1.2;letter-spacing:-.8px;margin:10px 0 9px}
.sky-heading p{font-size:12px;line-height:1.5;margin:0;color:#ccdae9}
.sky-heading p>span{display:inline-block;margin-left:15px;font-size:10px;color:#849cb7}
.sky-tools{position:absolute;left:26px;top:110px;z-index:3;display:flex;align-items:center;gap:8px}
.sky-tools button{display:grid;place-items:center;width:44px;height:44px;min-height:44px;background:#14243cdd;border:1px solid #7eabc451;border-radius:12px;font-size:24px;box-shadow:none}
.sky-tools svg{width:21px;height:21px}
#sky-zoom-level{min-width:42px;color:#9db6cb;font-size:10px;text-align:center}
.sky-ecliptic-key{display:flex;align-items:center;gap:8px;margin-left:8px;color:#b6a47d;font-size:10px}
.sky-ecliptic-key:before{content:'';width:32px;border-top:1px dashed #b99d66}
.sky-detail{position:absolute;right:24px;top:168px;z-index:3;width:310px;max-height:calc(100% - 275px);overflow:auto;overscroll-behavior:contain;padding:22px;background:#101e34ef;border:1px solid #8fd2e740;border-radius:20px;box-shadow:0 18px 55px #0005;backdrop-filter:blur(12px)}
.sky-detail>.eyebrow{font-size:7px;line-height:1.6;letter-spacing:1.2px;color:#9bc7dc}
.sky-detail h2{font-size:32px;letter-spacing:-.5px;margin:10px 0 6px;color:#c5f0ff}
.sky-latin{font-size:10px;color:#8fa8c0}
.sky-detail>p{font-size:12px;line-height:1.8;color:#c0cee1;margin:16px 0}
.sky-point-count{display:flex;gap:13px;align-items:center;background:#9bd6ed08;border:1px solid #9bd6ed24;padding:11px 14px;border-radius:12px}
.sky-point-count strong{font-size:29px;font-weight:700;color:#ffe4a2}
.sky-point-count span{font-size:10px;line-height:1.7;color:#a6bed1}
.sky-mission{margin:18px 0 0;padding-top:17px;border-top:1px solid #8eb9d028}
.sky-mission>span{font-size:7px;letter-spacing:1.1px;color:#ffe4a2}
.sky-mission p{font-size:12px;line-height:1.8;color:#d4e3f2;margin:9px 0 15px}
#sky-learn{width:100%;font-size:11px;min-height:44px;justify-content:center;line-height:1.5;padding:10px}
.sky-nav{position:absolute;left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));display:flex;gap:5px;z-index:4;padding:8px;max-width:1280px;margin:0 auto;overflow-x:auto;overscroll-behavior-x:contain;touch-action:pan-x;scrollbar-width:thin;scrollbar-color:#6688a550 transparent;background:#101d32ed;border:1px solid #89adc42b;border-radius:18px;backdrop-filter:blur(12px)}
.sky-nav button{position:relative;flex:1 0 76px;min-width:76px;min-height:59px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid transparent;border-radius:11px;background:none;color:#abbdd4;font-size:10px;padding:5px}
.sky-nav button svg{width:40px;height:27px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.sky-nav button:hover{background:#8bcbe70a}
.sky-nav button[aria-pressed=true]{background:#6ab7d513;border-color:#8bd5ed66;color:#c2efff}
.sky-nav button>small{position:absolute;right:4px;top:3px;font-size:7px;color:#ffe4a2;border:1px solid #d9b96a50;border-radius:4px;padding:1px 3px}
#sky-guide{width:min(610px,calc(100vw - 24px));max-width:610px;max-height:calc(100dvh - 24px);padding:30px;overflow:auto;overscroll-behavior:contain;background:#101d31;border-radius:22px}
#sky-guide-close{position:sticky;top:0;right:0;float:right;width:44px;height:44px;margin:-10px -4px 0 10px;background:#20364d;border:1px solid #8db9d548;border-radius:50%;z-index:2}
#sky-guide h2{font-size:26px;line-height:1.3;margin:13px 0 22px;color:#d4f3ff}
#sky-guide h3{font-size:16px;margin-top:23px}
#sky-guide p,#sky-guide li{font-size:13px;line-height:1.85;color:#c3d3e5}
#sky-guide ul{padding-left:22px}#sky-guide li{margin:8px 0}
#sky-guide .sky-model-note{font-size:11px;color:#9ab3ca;border-top:1px solid #9ab3ca33;padding-top:16px}
#sky-guide details{margin-top:18px;border:1px solid #8fb4cb33;border-radius:12px;padding:5px 14px}
#sky-guide summary{cursor:pointer;padding:12px 0;font-size:12px;color:#b6e3f0}
#sky-guide a{color:#a5dceb;text-underline-offset:3px}
#sky-license{white-space:pre-wrap;overflow-wrap:anywhere;font:10px/1.7 monospace;color:#8eabc3;max-width:100%}
#help-dialog .help-sky{font-size:12px;line-height:1.8;color:#a8bbd3;padding:12px;background:#8acde408;border:1px solid #8acde425;border-radius:10px}
@media(max-width:640px){.sky-heading{top:18px;left:18px;right:175px}.sky-heading>.eyebrow{font-size:6px;letter-spacing:.8px}.sky-heading h1{font-size:21px;line-height:1.25;margin:8px 0}.sky-heading p{font-size:9px}.sky-heading p>span{display:block;margin:5px 0 0;font-size:8px}.sky-tools{left:18px;top:140px;gap:7px}.sky-tools button{width:42px;height:42px;min-height:42px}.sky-ecliptic-key{display:none}.sky-detail{left:14px;right:14px;top:auto;bottom:103px;width:auto;max-height:34%;padding:15px 17px;border-radius:17px}.sky-detail h2{font-size:25px;margin:5px 0}.sky-detail>.eyebrow{font-size:6px;letter-spacing:.8px}.sky-latin{font-size:9px}.sky-detail>p{font-size:11px;line-height:1.7;margin:10px 0}.sky-point-count{padding:6px 11px;gap:10px}.sky-point-count strong{font-size:23px}.sky-point-count span{font-size:9px;line-height:1.4}.sky-mission{margin-top:10px;padding-top:9px}.sky-mission p{font-size:11px;line-height:1.6;margin:7px 0 10px}.sky-nav{left:8px;right:8px;padding:7px;gap:3px}.sky-nav button{flex:0 0 72px;min-width:72px;font-size:9px;min-height:59px}.sky-nav button svg{height:25px}#sky-guide{padding:24px 18px}#sky-guide h2{font-size:23px}#sky-guide p,#sky-guide li{font-size:12px}}
@media(max-height:500px) and (orientation:landscape){.sky-heading{top:12px;left:18px;right:195px}.sky-heading h1{font-size:23px;margin:7px 0 5px}.sky-heading>.eyebrow{font-size:6px}.sky-heading p{font-size:9px}.sky-heading p>span{font-size:8px;margin-left:10px}.sky-tools{top:80px;left:18px;gap:7px}.sky-tools button{width:40px;height:40px;min-height:40px}.sky-ecliptic-key{display:none}.sky-detail{left:auto;right:14px;top:83px;bottom:91px;width:280px;max-height:none;padding:13px}.sky-detail h2{font-size:23px;margin:5px 0}.sky-detail>p{font-size:10px;line-height:1.6;margin:9px 0}.sky-detail .eyebrow{font-size:6px}.sky-latin{font-size:9px}.sky-mission{margin-top:10px;padding-top:10px}.sky-mission p{font-size:10px}.sky-nav{padding:5px;gap:3px}.sky-nav button{min-height:53px;flex:1 0 72px;font-size:9px;gap:2px}.sky-nav button svg{height:23px}.sky-point-count{padding:6px 10px}.sky-point-count strong{font-size:22px}.sky-point-count span{font-size:9px;line-height:1.5}}
#help-dialog h2{margin:12px 0 22px;font-size:30px;line-height:1.3}
#help-dialog h3{font-size:16px;color:#eef2ff;margin:20px 0 12px}
.help-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.help-controls>div{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:15px;background:#ffffff04;border:1px solid #a4bad528;border-radius:12px}
.help-controls>div>span{display:flex;align-items:center;gap:5px;min-height:30px;color:#ffdf79}
.help-controls kbd{display:inline-grid;place-items:center;min-width:30px;min-height:29px;padding:3px 7px;background:#20314c;border:1px solid #9eb5d44d;border-bottom-width:3px;border-radius:6px;font:600 12px system-ui,sans-serif}
.help-controls svg{width:25px;height:25px}
.help-controls strong{font-size:13px;color:#edf3ff}
.help-controls small{font-size:11px;color:#a8bbd3;line-height:1.7}
#help-dialog .help-mouse,#help-dialog .help-mobile p,.help-note{font-size:12px;color:#a8bbd3;line-height:1.8}
.help-mobile{display:none}
body[data-input=touch] .help-mobile{display:block}
#help-dialog .tilt-tools{position:static;max-width:none;padding:13px;margin-top:12px;background:#122b3b;pointer-events:auto}
body[data-input=touch] #help-dialog .tilt-tools{display:block}
#help-dialog .tilt-tools p{max-width:none;margin-bottom:0}
.help-passport{display:flex;gap:10px;align-items:center;flex-wrap:wrap;color:#c6d5eb;font-size:12px;padding:13px;border:1px solid #97b4cd33;border-radius:12px}
.help-passport strong{font-size:12px}.help-passport>span{font-size:11px;color:#b6c8dc}.help-passport small{width:100%;font-size:11px;color:#a8bbd3}
.help-passport #passport-dots{margin:0}
.help-minimap{width:min(100%,340px);margin:14px auto 20px;border:1px solid #758fb540;border-radius:14px;background:#0c1629;padding:12px}
.help-minimap canvas{display:block;width:100%;height:auto;aspect-ratio:400/360}
.help-minimap p{display:flex;justify-content:space-between;color:#ffe477;font-size:10px;margin:8px 0 0}.help-minimap small{color:#a9bad5}
.help-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.help-actions .map-button{min-height:44px;font-size:11px;line-height:1.5;padding:10px 12px;text-align:center}
.help-sound{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #a4bad528;font-size:13px;color:#cfdbed}
.help-sound button{width:44px;height:44px}
#help-ready{width:100%;min-height:48px;justify-content:center;margin-top:12px;font-size:13px}
body:not([data-stage=space]) .help-mission-actions{display:none}
:is(#nav-toggle,#help-toggle,#proximity-action,.planet-chip):focus-visible{outline:2px solid #ffe477;outline-offset:4px}
@media(max-width:640px){body[data-stage=space] .topbar{top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right))}body[data-stage=space] #planet-nav{left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));justify-content:flex-start;padding:7px;gap:3px}#planet-nav .planet-chip{flex:0 0 62px;min-width:62px;font-size:9px}#help-dialog{padding:25px 18px}#help-dialog h2{font-size:25px}.help-controls{gap:7px}.help-controls>div{padding:11px}.help-controls kbd{min-width:25px;padding:3px 5px;font-size:11px}.help-controls strong{font-size:12px}.help-controls small{font-size:10px}.help-actions{grid-template-columns:1fr}.help-passport{gap:8px}body[data-navigation=active] .navigation-heading h2{font-size:17px;max-width:250px}body[data-navigation=active] .navigation-heading p{display:none}body[data-navigation=active] .navigation-detail{max-height:calc(100% - 250px)}body[data-stage=space] .autopilot-status{padding:9px;font-size:10px}.autopilot-status small{display:none}}
@media(max-height:500px) and (orientation:landscape){body[data-stage=space] #planet-nav{padding:5px;bottom:max(6px,env(safe-area-inset-bottom))}#planet-nav .planet-chip{min-height:40px;font-size:9px;gap:3px;padding:4px}body[data-stage=space][data-input=touch] .touch-flight{bottom:calc(72px + env(safe-area-inset-bottom))}body[data-input=touch] #proximity-action{bottom:calc(77px + env(safe-area-inset-bottom));max-width:calc(100% - 300px)}body[data-navigation=active] .navigation-footer{bottom:calc(78px + env(safe-area-inset-bottom))}body[data-navigation=active] .navigation-detail{top:75px;bottom:calc(132px + env(safe-area-inset-bottom));max-height:none}body[data-navigation=active] .navigation-heading{top:12px}body[data-stage=space] .approach-brake{bottom:123px}.help-controls{grid-template-columns:repeat(3,1fr)}}
