:root{color-scheme:dark;--gold:#d9bc83;--line:#b8a78244;--ink:#0c1519;--text:#eee9db}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--ink);color:var(--text);font-family:Georgia,serif}canvas{width:100%;height:100%;display:block;touch-action:none}button,input,select{font:inherit}button,select{color:var(--text);background:#172329dc;border:1px solid var(--line);padding:12px 18px;min-height:44px;cursor:pointer;border-radius:3px}button:hover,button.selected{background:#b69a60;color:#101718;border-color:var(--gold)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:4px}button.primary{background:var(--gold);color:#182024}kbd,small,label,.eyebrow{font:10px system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase;color:var(--gold)}kbd{margin-left:12px;opacity:.65}#hud{position:fixed;inset:0;pointer-events:none;background:linear-gradient(#020c145c,transparent 24%,transparent 70%,#03090c9e)}header{display:flex;justify-content:space-between;padding:28px 34px;gap:20px}.brand{font:12px system-ui;letter-spacing:.24em}.brand span,.place span{display:block;font:9px system-ui;letter-spacing:.19em;margin-top:9px;opacity:.65}.brand i{color:var(--gold);font-style:normal}.place{text-align:right}.place b{font-size:18px;font-weight:normal}.bottom{position:absolute;bottom:28px;left:34px;right:34px;display:flex;justify-content:space-between;align-items:end}.bottom h2{font-size:25px;font-weight:normal;margin:8px 0 10px}.bottom span,#stats{font:10px system-ui;color:#d0d5cd}.bottom small{font-size:9px}#stats{text-align:right;line-height:1.7}#crosshair{position:absolute;top:50%;left:50%;font-size:28px;transform:translate(-50%,-50%);color:#fff8d8}#toolbar{position:fixed;right:34px;top:100px;display:flex;gap:6px}#toolbar button{font:11px system-ui;padding:10px 13px;backdrop-filter:blur(12px)}#toolbar span{color:var(--gold);margin-left:5px}#prompt{position:fixed;left:50%;bottom:140px;transform:translateX(-50%);padding:14px 24px;background:#091319e8;border-top:1px solid var(--gold);font:12px system-ui;max-width:85%;text-align:center}#toast{position:fixed;left:50%;top:20%;transform:translateX(-50%);font:11px system-ui;letter-spacing:.15em;text-align:center;background:#071318d9;padding:14px 22px;opacity:0;transition:opacity .4s;pointer-events:none}#toast.show{opacity:1}.modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:28px;background:#07101475;backdrop-filter:blur(13px);z-index:10}.modal[hidden]{display:none}.sheet{width:min(860px,100%);max-height:92dvh;overflow:auto;padding:38px;background:linear-gradient(135deg,#122029f5,#0a1219f5);border:1px solid var(--line);box-shadow:0 20px 100px #0007}.sheet h1{font-size:clamp(34px,5vw,62px);line-height:1.04;letter-spacing:-.035em;font-weight:normal;margin:22px 0}.sheet h2{font-size:30px;font-weight:normal}.sheet p{font:14px/1.8 system-ui;color:#c3ccc9;max-width:640px}.sheet .intro{font:18px/1.6 Georgia;color:#eee6d6}.sheet .row{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.sheet .fine{font:11px/1.7 system-ui;color:#90a29e}.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}.destination{text-align:left;min-height:120px;padding:20px;background:linear-gradient(130deg,#29454a66,#16232c)}.destination b{display:block;font:23px Georgia;margin:10px 0}.destination span{font:11px/1.5 system-ui;opacity:.75}.setting{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 0;border-bottom:1px solid var(--line);font:13px system-ui}.setting label{font:13px system-ui;letter-spacing:0;text-transform:none;color:var(--text)}.setting input[type=range]{width:45%;accent-color:var(--gold)}.setting input[type=checkbox]{width:20px;height:20px;accent-color:var(--gold)}pre{font:12px/1.7 monospace;white-space:pre-wrap;background:#071014;padding:16px;color:#abd6c7}.lesson-meta{padding:12px 0;border-bottom:1px solid var(--line);font:11px system-ui;color:var(--gold)}a{color:var(--gold)}#touch{display:none;position:fixed;inset:0;pointer-events:none}#joystick{position:absolute;left:30px;bottom:72px;width:114px;height:114px;border-radius:50%;background:#11272b55;border:1px solid #d9bc8366;pointer-events:auto;touch-action:none}#stick{position:absolute;left:34px;top:34px;width:44px;height:44px;border-radius:50%;background:#d9bc8377;border:1px solid #f8e3b3a0}#joystick span{position:absolute;top:123px;width:100%;text-align:center;font:9px system-ui;letter-spacing:.18em;color:#d9d5c5}#lookzone{position:absolute;right:0;top:25%;bottom:55px;width:44%;pointer-events:auto;touch-action:none}#lookzone span{position:absolute;bottom:0;right:30px;font:9px system-ui;letter-spacing:.14em;opacity:.6}#actionTouch{position:absolute;right:25px;bottom:115px;pointer-events:auto;background:#11272bab;border-radius:50%;width:79px;height:79px;padding:0;font:11px system-ui;touch-action:none}#fade{position:fixed;inset:0;background:#071014;opacity:0;pointer-events:none;transition:opacity .25s;z-index:9}#fade.show{opacity:1}.touch #touch{display:block}.touch .bottom{bottom:12px}.touch #hint{display:none}.touch .bottom h2{font-size:17px}.touch #prompt{bottom:225px}.touch #stats{font-size:9px}@media(max-width:650px){header{padding:18px}.brand{font-size:9px;letter-spacing:.13em}.brand span{font-size:7px}.place b{font-size:15px}.place span{font-size:7px;max-width:135px}#toolbar{top:77px;right:15px}#toolbar button{font-size:10px;padding:8px 10px}kbd{display:none}.bottom{left:18px;right:18px}.sheet{padding:24px;max-height:94dvh}.modal{padding:12px}.sheet h1{font-size:38px}.grid{gap:8px}.destination{padding:14px;min-height:110px}.destination b{font-size:21px}.sheet p{font-size:12px}.setting{font-size:11px}.setting label{font-size:12px}}@media(max-height:500px){header{padding:12px 18px}#toolbar{top:65px}#joystick{bottom:40px;width:94px;height:94px}#stick{left:24px;top:24px}#joystick span{top:98px}#actionTouch{bottom:55px}#prompt{bottom:45px!important}.bottom h2{display:none}.bottom{bottom:8px!important}}
/* Keep input labels clear of the objective, including short desktop windows. */
.bottom small,#hint{display:block}#hint{margin-top:6px}#stats{white-space:pre-line;flex-shrink:0;margin-left:16px}.touch .bottom h2{max-width:255px;line-height:1.25}.touch #stats{max-width:100px}
@media(min-height:501px){.touch #joystick{bottom:103px}.touch #actionTouch{bottom:146px}.touch }
@media(max-height:500px){#hint{max-width:420px;font-size:9px}.bottom small{font-size:8px}}

/* V6: Searchable destination selection, adaptive archive catalog. */
#destinationSearch{width:100%;background:#101a20;color:#eee9db;border:1px solid #b8a78266;padding:13px 16px;min-height:46px}#globeGrid button[hidden]{display:none}.grid .destination{min-width:0;white-space:normal;overflow-wrap:anywhere}.sheet{overscroll-behavior:contain}#globeGrid{align-items:stretch}

/* V7: cinematic but inexpensive on desktop and mobile. */
#hud{background:radial-gradient(ellipse 85% 75% at 50% 48%,transparent 54%,rgba(2,6,9,.23) 100%),linear-gradient(#020b125e,transparent 21%,transparent 67%,#03090ca8);}
#toast{border:1px solid #a9c7be44;box-shadow:0 8px 40px #0009;border-radius:3px}
#crosshair{text-shadow:0 0 12px #fbe8b29e;font-weight:normal}
#prompt{box-shadow:0 10px 30px #0008}
@media(prefers-reduced-motion:reduce){#fade{transition:none}#toast{transition:none}}

/* V11 — site-aware planetary navigator and research systems */
#toolbar{right:28px;top:98px;flex-wrap:wrap;max-width:min(590px,60vw);justify-content:flex-end}
#toolbar button{background:#111f27e0;border-color:#adac8b54;letter-spacing:.04em}
#toolbar button:hover,#toolbar button:focus-visible{background:#d9bc83;color:#152027}
.sheet:has(.globe-layout){width:min(1200px,100%);max-height:96dvh;padding:24px 34px}
.sheet:has(.globe-layout) h1{font-size:clamp(29px,3.8vw,48px);margin:12px 0 14px}
.globe-layout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(270px,.82fr);gap:22px;min-height:320px;max-height:min(55vh,520px)}
.planet-area{min-width:0;position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:center;border:1px solid #85ada84d;background:radial-gradient(circle at 50% 45%,#1a3b4d88,transparent 64%),#0b151c;border-radius:7px;overflow:hidden}
#globeCanvas{width:100%;flex:1;min-height:230px;cursor:grab;touch-action:none}#globeCanvas:active{cursor:grabbing}
.globe-controls{justify-content:center;gap:5px!important;margin:8px 0 12px!important}.globe-controls button{font-size:12px;padding:8px 9px;min-height:36px}
.globe-list{display:flex;flex-direction:column;min-height:0}.globe-list>label{margin:3px 0 9px}.globe-list #destinationSearch{margin-bottom:10px;border-radius:3px}
.globe-site-list{overflow-y:auto;overscroll-behavior:contain;display:grid;grid-template-columns:1fr 1fr;gap:7px;align-content:start;padding:3px;min-height:0}
.site-tile{min-height:88px;padding:10px;text-align:left;background:#15252d;transition:background .1s,border-color .1s}
.site-tile small{font-size:8px;display:block;opacity:.8}.site-tile b{display:block;font:17px Georgia;margin:8px 0 6px}.site-tile span{font:10px/1.4 system-ui;opacity:.8}.site-tile.selected{background:#c2a56f;color:#101b20}
.site-tile.selected small{color:#22343c}.site-tile[hidden]{display:none}
.globe-details{margin:12px 0 0;border-top:1px solid #c2a56f65;border-bottom:1px solid #c2a56f44;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:12px 0}
.globe-details h2{font-size:24px;margin:6px 0}.globe-details p{margin:5px 0;font-size:12px;line-height:1.5}.globe-details .fine{font-size:10px}.globe-details button{flex-shrink:0}
.sheet:has(.evidence-card),.sheet:has(.lab-layout){width:min(930px,100%)}
.evidence-card{background:linear-gradient(150deg,#192e31,#101d26);border-left:3px solid #d9bc83;padding:22px;margin:18px 0}.evidence-card h2{margin:8px 0;font-size:30px}.evidence-card h3{color:#d9bc83;font:11px system-ui;letter-spacing:.16em;text-transform:uppercase;margin:22px 0 5px}.evidence-card p{max-width:100%;margin:6px 0}
#fieldNotes{width:100%;resize:vertical;min-height:98px;line-height:1.6;background:#07161d;border:1px solid #a8b8b05e;color:#e8e7da;padding:16px;font:14px system-ui;border-radius:4px}
.connections{display:grid;grid-template-columns:1fr 1fr;gap:10px}.connection{text-align:left;padding:16px}.connection b{display:block;font:18px Georgia;margin-bottom:6px}.connection span{display:block;font:11px/1.5 system-ui;color:inherit;opacity:.85}
.lab-layout{display:grid;grid-template-columns:1.15fr .85fr;gap:24px;align-items:start}.lab-layout .setting{display:grid;grid-template-columns:minmax(110px,1fr) minmax(100px,1fr) 70px;padding:9px 0;gap:8px}.lab-layout .setting label{font-size:12px}.lab-layout input[type=range]{width:100%}.lab-layout output{font:12px monospace;color:var(--gold);text-align:right}
.lab-answer{padding:24px;background:linear-gradient(145deg,#17343b,#0c1b23);border:1px solid #9bc7bf45;position:sticky;top:0}.lab-answer h2{font-size:28px;margin:14px 0 24px}.lab-metrics{display:grid;grid-template-columns:1fr 1fr;gap:15px}.lab-metrics b{display:block;font:22px Georgia;margin-top:6px;color:#f1e2bc}.lab-metrics small{font-size:8px}.lab-answer p{line-height:1.6}
@media(max-width:900px){#toolbar{max-width:70vw;top:78px;right:15px}.globe-layout{grid-template-columns:1fr 1fr;gap:10px}.site-tile{min-height:76px}.globe-site-list{grid-template-columns:1fr}}
@media(max-width:650px){#toolbar{max-width:100vw;left:12px;right:12px;top:87px;justify-content:flex-end;gap:4px}#toolbar button{min-height:34px;padding:6px 9px;font-size:9px}.sheet:has(.globe-layout){padding:15px;max-height:95dvh}.globe-layout{display:flex;flex-direction:column;max-height:unset}.planet-area{height:300px;flex-shrink:0}#globeCanvas{min-height:210px}.globe-list{height:170px;flex-shrink:0}.globe-site-list{grid-template-columns:1fr 1fr}.site-tile{min-height:58px}.site-tile b{font-size:15px;margin:4px 0}.site-tile span{display:none}.globe-details{display:block}.globe-details button{width:100%;margin-top:10px}.connections,.lab-layout{grid-template-columns:1fr}.lab-answer{position:static}.lab-layout .setting{grid-template-columns:1fr 1fr 58px}}
@media(max-height:650px){.globe-layout{max-height:unset}.planet-area{min-height:230px}.sheet:has(.globe-layout){max-height:98dvh;overflow:auto}}
/* Constrain the scrollable destination grid independently of the globe and details. */
@media(min-width:651px){.globe-layout{height:min(52vh,475px);max-height:unset;min-height:325px}.globe-list{height:100%;overflow:hidden}.globe-site-list{flex:1;min-height:0;max-height:100%;overflow-y:auto}}

/* V12: Quiet exploration HUD; all archive utilities live in the Start menu. */
.brand{font-size:12px;letter-spacing:.21em;font-weight:500;text-shadow:0 2px 12px #000b}
#menuToggle{position:fixed;right:32px;top:100px;z-index:7;display:grid;place-items:center;width:45px;height:45px;min-height:45px;padding:0;border:1px solid #d9bc8340;border-radius:4px;background:#0b18209e;color:#efdfb8;backdrop-filter:blur(12px);font:22px/1 system-ui;opacity:.75;transition:opacity .18s ease,background .18s ease}
#menuToggle:hover,#menuToggle:focus-visible{opacity:1;background:#1a2a30}
#menuToggle:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
#hud .bottom #hint{display:none!important}
#hud .bottom h2{margin-bottom:0}
#hud .place{padding-right:56px}
.sheet h2.menu-heading{font:11px/1.5 system-ui,sans-serif;letter-spacing:.25em;color:var(--gold);margin:26px 0 12px}
.menu-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 6px}
.menu-actions button{min-width:145px}
.menu-tool-shelf{border-top:1px solid #d9bc8350;margin-top:28px;padding-top:4px}
.menu-tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.menu-tool{min-width:0;text-align:left;padding:18px 20px;background:linear-gradient(120deg,#1a3335bd,#15222ade);border-color:#99a9a14c;transition:background .15s ease,transform .15s ease}
.menu-tool:hover,.menu-tool:focus-visible{transform:translateY(-1px);background:#c7ad7a;color:#121d21}
.menu-tool b{font:21px Georgia,serif;display:block;margin-bottom:7px}
.menu-tool span{font:11px/1.5 system-ui,sans-serif;display:block;opacity:.8}
.menu-tool.wide{grid-column:1/-1}
.sheet:has(.menu-tool-shelf){width:min(750px,100%)}
.sheet:has(.menu-tool-shelf) h1{margin:14px 0;font-size:clamp(33px,5vw,54px)}
.sheet:has(.menu-tool-shelf) p{margin:6px 0 16px}
@media(max-width:650px){#menuToggle{top:82px;right:18px;width:42px;height:42px;min-height:42px}.brand{font-size:10px!important;letter-spacing:.15em!important}#hud .place{padding-right:48px}.menu-tool-grid{gap:7px}.menu-tool{padding:13px 14px}.menu-tool b{font-size:18px}.menu-tool span{font-size:10px}.menu-tool-shelf{margin-top:20px}}
@media(max-height:500px){#menuToggle{top:52px;right:14px}.menu-tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.menu-tool.wide{grid-column:auto}}

/* V13 large earth atlas, readable field statuses, filtered collections */
.atlas-filters{display:grid;grid-template-columns:2fr 1fr;gap:10px;margin:13px 0}
.atlas-filters input,.atlas-filters select,#globeCategory{width:100%;min-height:42px;background:#12242a;border:1px solid #b6a67d66;color:#f4e8cc;padding:9px 12px;border-radius:3px}
#globeCategory{margin-bottom:8px;flex-shrink:0}
.atlas-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;max-height:48dvh;overflow:auto;overscroll-behavior:contain;padding:5px 2px}
.atlas-item{min-width:0;min-height:105px;text-align:left;padding:13px}
.atlas-item b{font:19px Georgia;display:block;margin:7px 0 4px}
.atlas-item small{font:9px/1.4 system-ui;letter-spacing:.08em;color:#c7bb91}
.atlas-item span{font:11px/1.3 system-ui;opacity:.8}
.atlas-item[hidden]{display:none!important}
#atlasCount{margin:6px 0 10px}
.sheet:has(.atlas-grid){width:min(1020px,100%)}
.menu-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:650px){.atlas-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:50dvh}.atlas-item b{font-size:16px}.atlas-filters{grid-template-columns:1fr}.menu-tool{padding:12px}}
/* V14 routes, archive discovery; no permanent on-screen toolbars */
.route-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.route-card{text-align:left;min-width:0;padding:18px;border:1px solid #b5a27b5e;background:linear-gradient(145deg,#193037,#0b1c25);min-height:186px}.route-card small,.route-step small{display:block;color:#d2b884;font:9px/1.5 system-ui;letter-spacing:.12em}.route-card b,.route-step b{display:block;font:24px/1.1 Georgia;margin:10px 0}.route-card span,.route-step span{display:block;font:12px/1.5 system-ui;opacity:.83}.route-card p{font:12px/1.55 system-ui;margin:10px 0!important}.route-card em{font:11px system-ui;color:#d0be8f}.route-stops{max-height:56dvh;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:16px 0}.route-step{text-align:left;padding:16px;min-width:0}.route-step b{font-size:19px}.sheet:has(.route-grid),.sheet:has(.route-stops){width:min(960px,100%)}.compact-tool{margin:0 8px;padding:5px 10px;min-height:32px;font-size:11px}
@media(max-width:650px){.route-grid,.route-stops{grid-template-columns:1fr}.route-card{min-height:0;padding:14px}.route-stops{max-height:45dvh}}
/* V15: cockpit computer and direct destination feedback */
.terminal-display{border:1px solid #438f9b;border-radius:9px;background:linear-gradient(135deg,#071922 0%,#0d3037 60%,#061419 100%);box-shadow:inset 0 0 40px #103e4b,0 0 22px #071a20;padding:clamp(18px,3vw,34px);display:flex;flex-direction:column;gap:14px;margin:20px 0 24px;letter-spacing:.1em}
.terminal-display span{font:500 clamp(11px,1.2vw,14px) ui-monospace,monospace;color:#83cbd0}
.terminal-display strong{font:700 clamp(16px,3.2vw,38px) ui-monospace,monospace;color:#e4fdff;letter-spacing:.065em;overflow-wrap:anywhere;text-shadow:0 0 22px #389aa6}
a.terminal-link{display:inline-flex;align-items:center;justify-content:center;padding:14px 20px;border-radius:6px;background:#d2e7e9;color:#0e232a;text-decoration:none;font-weight:700}
a.terminal-link:focus-visible{outline:3px solid #9ee6ee;outline-offset:4px}
.instant-gate{align-self:center;padding:13px 16px;text-align:right;color:#a8cdd0;font-size:.7rem;letter-spacing:.06em;line-height:1.8}
@media(max-width:740px){.instant-gate{text-align:left;padding:10px 0}}

/* V17 — mobile menus: persistent exit, compact responsive layouts and safe-area fitting. */
#mobileMenuBack{display:none}
@media (pointer:coarse), (max-width:740px){
 .modal{padding:calc(8px + env(safe-area-inset-top,0px)) 8px calc(8px + env(safe-area-inset-bottom,0px));align-items:center;overflow:hidden}
 #mobileMenuBack{display:flex;position:absolute;right:calc(14px + env(safe-area-inset-right,0px));top:calc(9px + env(safe-area-inset-top,0px));z-index:25;align-items:center;justify-content:center;gap:5px;min-height:40px;padding:7px 12px;border-radius:24px;background:#d9bc83;color:#102027;font:600 12px system-ui;box-shadow:0 3px 16px #000a}
 .sheet{width:100%!important;max-width:100%;max-height:calc(100dvh - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow-y:auto;overflow-x:hidden;padding:45px 13px 12px;scrollbar-width:thin;overscroll-behavior:contain}
 .sheet h1,.sheet:has(.menu-tool-shelf) h1{font-size:clamp(23px,5.4vw,33px);line-height:1.08;margin:4px 0 8px}
 .sheet h2{font-size:clamp(18px,4.5vw,25px);margin:8px 0}
 .sheet p,.sheet .intro{font-size:clamp(11px,2.7vw,13px);line-height:1.4;margin:5px 0}
 .sheet small,.sheet .fine{font-size:9px;line-height:1.3}
 .sheet .row,.menu-actions{gap:5px;margin:7px 0}
 .sheet button,.sheet select{min-height:37px;padding:7px 9px;font-size:11px}
 .menu-tool-shelf{margin-top:8px;padding-top:3px}
 .sheet h2.menu-heading{margin:7px 0 5px;font-size:10px}
 .menu-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 .menu-tool{padding:8px 9px!important;min-height:48px!important}
 .menu-tool b{font-size:14px;margin-bottom:2px}
 .menu-tool span{font-size:9px;line-height:1.18}
 .menu-tool.wide{grid-column:1/-1}
 .menu-actions button{min-width:0;flex:1}
 .grid,.route-grid{gap:6px;margin:8px 0}
 .destination,.route-card{min-height:0;padding:9px}
 .destination b,.route-card b{font-size:16px;margin:4px 0}
 .atlas-filters{gap:5px;margin:5px 0}
 .atlas-grid,.route-stops,.globe-site-list{max-height:min(36dvh,280px);overflow:auto;overscroll-behavior:contain}
 .atlas-item{min-height:0;padding:7px}
 .atlas-item b{font-size:14px}
 .globe-layout{gap:7px}
 .planet-area{min-height:120px}
 .setting{padding:7px 0}
 .terminal-display{margin:7px 0;padding:10px}
}
@media (max-height:530px) and (pointer:coarse){
 .sheet{padding-top:42px}
 .sheet h1,.sheet:has(.menu-tool-shelf) h1{font-size:23px}
 .sheet .intro{display:none}
 .menu-tool span{display:none}
 .menu-tool{min-height:34px!important}
 .menu-tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .menu-tool.wide{grid-column:auto}
 .atlas-grid,.route-stops,.globe-site-list{max-height:29dvh}
}

/* V19: hyperspace arrival from beforetheworldends.com */
#arrivalWarp{display:none;position:fixed;inset:0;z-index:1000;background:#fff;overflow:hidden;pointer-events:all;opacity:1}
.incoming-warp #arrivalWarp{display:block}
.incoming-warp #hud,.incoming-warp #touch,.incoming-warp #menuToggle,.incoming-warp #prompt{visibility:hidden!important}
#arrivalWarpCanvas{position:absolute;inset:0;width:100%;height:100%}
#arrivalWarp .arrivalFlash{position:absolute;inset:0;background:#fff;opacity:1;pointer-events:none}
#arrivalWarp .arrivalCoordinates{position:absolute;left:50%;bottom:8%;transform:translateX(-50%);text-align:center;color:#e4f8ff;text-shadow:0 2px 10px #000;letter-spacing:.25em;pointer-events:none;opacity:.7;font:600 11px/2 system-ui;width:min(90%,550px)}
#arrivalWarp .arrivalCoordinates span,#arrivalWarp .arrivalCoordinates small{display:block}
#arrivalWarp .arrivalCoordinates small{font:9px/1.7 system-ui;letter-spacing:.21em;opacity:.82}
@media(max-width:650px){#arrivalWarp .arrivalCoordinates{bottom:12%;letter-spacing:.11em}}
@media(prefers-reduced-motion:reduce){#arrivalWarpCanvas{display:none}#arrivalWarp .arrivalCoordinates{display:none}}


/* V28 — keep the globe visible; compress the search/results/details overlay on phones. */
#mobileGlobeToggle{display:none}
@media (max-width:740px), (pointer:coarse){
 .sheet:has(.globe-layout){width:min(100%,600px)!important;max-height:calc(100dvh - 10px)!important;padding:42px 12px 12px!important;overflow-y:auto!important;overscroll-behavior:contain!important}
 .sheet:has(.globe-layout)>small:first-child{font-size:8px!important;line-height:1.2!important}
 .sheet:has(.globe-layout)>h1{font-size:clamp(20px,4.5vw,26px)!important;margin:3px 0 8px!important;line-height:1.12!important}
 .globe-layout{display:flex!important;flex-direction:column!important;gap:7px!important;max-height:none!important;min-height:0!important;height:auto!important}
 .globe-layout .planet-area{display:flex!important;flex-direction:column!important;min-height:190px!important;height:clamp(190px,31dvh,270px)!important;flex:0 0 auto!important}
 #globeCanvas{min-height:140px!important;height:auto!important;flex:1 1 auto!important}
 .planet-area p.fine{font-size:8px!important;line-height:1.1!important;margin:0!important}
 .globe-controls{gap:4px!important;margin:3px 0!important}
 .globe-controls button{min-height:28px!important;padding:3px 5px!important;font-size:10px!important}
 .globe-list{display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;flex:0 0 auto!important;overflow:visible!important}
 .globe-list>label{display:none!important}
 #globeCategory,#destinationSearch{display:block!important;width:100%!important;min-height:32px!important;height:32px!important;padding:5px 9px!important;margin:0 0 4px!important;font-size:12px!important}
 .globe-site-list{display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px!important;min-height:0!important;max-height:clamp(92px,17dvh,146px)!important;overflow-y:auto!important;padding:1px!important}
 .globe-site-list .site-tile{min-height:40px!important;padding:5px 7px!important;text-align:left!important}
 .globe-site-list .site-tile small{display:none!important}
 .globe-site-list .site-tile b{font-size:12px!important;line-height:1.15!important;margin:1px 0!important}
 .globe-site-list .site-tile span{display:none!important}
 .globe-site-list .site-tile[hidden]{display:none!important}
 .globe-details{display:block!important;margin:7px 0 0!important;padding:6px 0!important;gap:0!important}
 .globe-details h2{font-size:17px!important;margin:2px 0!important}
 #globeEra{font-size:9px!important}
 #globeFact{font-size:10px!important;line-height:1.3!important;max-height:2.6em!important;overflow:hidden!important;margin:2px 0!important}
 #globeLimits,.instant-gate{display:none!important}
 .sheet:has(.globe-layout)>.row{display:flex!important;gap:5px!important;margin:6px 0!important}
 .sheet:has(.globe-layout)>.row button{min-width:0!important;flex:1!important;min-height:36px!important;padding:6px 5px!important;font-size:11px!important}
 .sheet:has(.globe-layout)>.fine:last-child{display:none!important}
}
@media (max-height:570px) and (max-width:740px){
 .globe-layout .planet-area{height:170px!important;min-height:170px!important}
 .globe-site-list{max-height:82px!important}
}

/* V31 — left-trigger precision focus cue, subtle and noninteractive */
.focus-mode #crosshair{color:#e3f9ff;text-shadow:0 0 10px #8af2ffb3,0 0 22px #4cc7ff80;}
.focus-mode #crosshair:before{content:'';position:absolute;left:50%;top:50%;width:44px;height:44px;transform:translate(-50%,-50%);border:1px solid #9adef290;border-radius:50%;box-shadow:0 0 16px #71bdff44,inset 0 0 8px #71bdff24;}
.focus-mode #crosshair:after{content:'FOCUS';position:absolute;top:34px;left:50%;transform:translateX(-50%);font:9px system-ui;letter-spacing:.2em;color:#bbebff;}

/* V32 — LIVING ARCHIVE; device-friendly functional ship control interfaces. */
.sheet:has(.chronicle-track),.sheet:has(.systems-status),.sheet:has(.transmission-log),.sheet:has(.artifact-brief){width:min(970px,100%);background:linear-gradient(135deg,#091824f8,#102c34f7 54%,#09141cf9);border-color:#8ccad078;box-shadow:0 0 80px #36708033,0 20px 80px #000c}
.chronicle-track{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:51dvh;overflow-y:auto;padding:4px 8px 4px 2px;overscroll-behavior:contain}
.chronicle-era{min-height:104px;display:flex;flex-direction:column;text-align:left;gap:6px;background:linear-gradient(110deg,#152e3ccf,#101f2be3);border-left:2px solid #80c9dc87;transition:background .15s,border-color .15s}
.chronicle-era:nth-child(odd){border-left-color:#e0ae6899}
.chronicle-era:hover,.chronicle-era:focus-visible{background:linear-gradient(115deg,#264c5b,#315b67);color:#fff}
.chronicle-era small{font:10px ui-monospace,monospace;letter-spacing:.12em;color:#c9b98c}
.chronicle-era b{font:22px/1.14 Georgia,serif}
.chronicle-era span{font:12px/1.45 system-ui;color:#b9d0d5}
.systems-status{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0;padding:14px;background:#091b23c9;border:1px solid #60aab25d}
.systems-status>div{display:flex;flex-direction:column;gap:9px;min-width:0}
.systems-status strong{font:600 clamp(14px,2vw,23px) ui-monospace,monospace;color:#bef2ef;white-space:normal;overflow-wrap:anywhere;letter-spacing:.03em}
.systems-choices{display:flex;flex-wrap:wrap;gap:7px}
.systems-choices button{flex:1;min-width:124px;text-align:center;background:#142932e9;border:1px solid #6cabb667}
.systems-choices button.selected{background:#c7b584;border-color:#d6c699;color:#0c1a20}
.artifact-brief{position:relative;background:linear-gradient(140deg,#18333a,#0a151c);border:1px solid #8ac7c254;padding:clamp(14px,3vw,28px);margin:16px 0}
.artifact-brief:before{content:'';position:absolute;top:0;bottom:0;left:0;width:3px;background:#d4ac71}
.artifact-brief p{margin:12px 0}
.transmission-log{padding:15px 20px;border:1px solid #71a5b35c;background:#06161cf2;max-height:36dvh;overflow:auto;overscroll-behavior:contain}
.transmission-log p{font:clamp(12px,1.4vw,15px)/1.8 ui-monospace,monospace;border-bottom:1px solid #7397a43c;padding-bottom:12px;max-width:none;color:#d9ebe8}
.transmission-log small{color:#d6af72;margin-right:14px}
@media (max-width:740px), (pointer:coarse){
 .sheet:has(.chronicle-track),.sheet:has(.systems-status),.sheet:has(.transmission-log),.sheet:has(.artifact-brief){padding:45px 14px 14px!important}
 .chronicle-track{grid-template-columns:1fr;max-height:44dvh;gap:5px;padding-right:4px}
 .chronicle-era{min-height:62px!important;padding:9px!important;gap:2px}
 .chronicle-era b{font-size:17px}.chronicle-era span{font-size:10px}
 .systems-status{gap:5px;margin:9px 0;padding:8px}.systems-status strong{font-size:11px}.systems-status small{font-size:8px}
 .systems-choices{gap:4px}.systems-choices button{min-width:calc(50% - 4px);font-size:11px;padding:8px 6px}
 .artifact-brief{padding:12px;margin:7px 0}
 .transmission-log{max-height:34dvh;padding:6px 10px}
 .transmission-log p{font-size:11px;line-height:1.45;margin:8px 0;padding-bottom:7px}
}
@media(prefers-reduced-motion:reduce){.chronicle-era{transition:none}}

/* V33 Interstellar Observatory: responsive planetary controls and piloting. */
.v33-system-status{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0;padding:12px 14px;background:#101e25;border-left:2px solid #bca472;font:11px/1.8 monospace;color:#bdd5dc}.v33-system-status span{padding-right:14px}.v33-system-status b{color:#eed7a3}
.v33-planets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0}.v33-planet{min-width:0;min-height:98px;padding:7px;display:flex;gap:4px;flex-direction:column;text-align:center;align-items:center;justify-content:center}.v33-planet img{width:58px;height:49px;border-radius:50%;object-fit:cover;filter:saturate(.9);box-shadow:inset 0 0 12px #000}.v33-planet b{font:16px Georgia}.v33-planet small{font:9px monospace;letter-spacing:0}
.v33-planet-info{margin:16px 0 22px;background:#0b1822;border:1px solid #a6b5ae48;padding:16px}.v33-planet-info h2{margin:0 0 6px;font-size:27px}.v33-planet-info p{margin:0 0 12px}.v33-planet-info label{display:block;margin:13px 0 9px}.v33-planet-info select{width:100%}.v33-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;font:10px monospace}.v33-facts span{padding:9px;background:#172732}.v33-facts b{display:block;font:13px monospace;color:#e9d5a8;margin-top:5px}
.v33-camera-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:18px 0}.v33-camera-grid button{text-align:left}.v33-camera-grid b{display:block;color:#e0c693}.v33-camera-grid span{font-size:11px;display:block;margin-top:7px}
#v33-command{position:fixed;z-index:8;bottom:40px;left:50%;transform:translateX(-50%);background:#06131fe6;border:1px solid #a8bfa25f;padding:14px 18px;text-align:center;min-width:min(480px,92vw);backdrop-filter:blur(12px)}#v33-command[hidden],#v33-flight[hidden],#v33-touch-flight[hidden]{display:none!important}#v33-label{display:block;font:10px/1.6 system-ui;letter-spacing:.17em;color:#e6ce9f;margin-bottom:9px}#v33-buttons{display:flex;justify-content:center;flex-wrap:wrap;gap:7px}#v33-buttons button{font:11px system-ui;padding:8px 10px;min-height:38px}
#v33-flight{position:fixed;z-index:8;left:25px;top:135px;max-width:390px;color:#e7e5da;font:11px/1.9 monospace;text-shadow:0 2px 6px #001}#v33-flight-status{font-weight:bold;color:#e4cf9d}#v33-flight-speed{font-size:20px}#v33-touch-flight{position:fixed;z-index:8;bottom:220px;right:20px;display:flex;gap:10px}#v33-touch-flight button{background:#1b3746ce;font:11px monospace;touch-action:none}
.v33-special .bottom{display:none!important}.v33-special .place{opacity:.5}
@media(max-width:700px){.v33-planets{grid-template-columns:repeat(3,minmax(0,1fr))}.v33-planet{min-height:85px}.v33-planet img{width:46px;height:39px}.v33-camera-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#v33-command{bottom:10px;padding:9px 10px}#v33-command button{min-height:39px;font-size:10px}#v33-flight{top:110px;left:16px;max-width:70vw;font-size:10px}}
@media(max-height:520px){#v33-command{bottom:5px;padding:6px}#v33-label{margin-bottom:3px}#v33-flight{top:55px}#v33-touch-flight{bottom:85px}}

/* V34: unobstructed pilot-seat and optical views; exit/flight controls remain accessible. */
.v34-clear-view #hud,.v34-clear-view #prompt,.v34-clear-view #toolbar,.v34-clear-view #crosshair{display:none!important}
.v34-clear-view #v33-label{display:none!important}
.v34-clear-view #v33-command{background:#06131fa3;padding:7px 10px;bottom:10px;min-width:0}
.v34-clear-view #v33-command #v33-buttons{gap:4px}

/* V36: all interactive panels have visible gamepad focus, including nested scroll areas. */
#sheet :is(button,a,input,select,textarea,[tabindex]):focus-visible,
#sheet :is(button,a,input,select,textarea,[tabindex]):focus {
 outline:3px solid #d6e9b0!important;outline-offset:3px;
 box-shadow:0 0 0 5px #0a2638aa,0 0 22px #75cff48c;
 scroll-margin:24px;
}
#sheet,.sheet,#sheet :is(.atlas-grid,.globe-site-list,.route-stops,.chronicle-track,.transmission-log,.connections,.menu-tool-grid){scrollbar-width:auto;overscroll-behavior:contain}
#sheet{scroll-behavior:auto;scroll-padding-block:25px}
#v33-flight{max-width:min(420px,82vw)}

/* V39 — AAA-style controller-first dock interfaces: left content, right navigation, no long-scroll dependency. */
.sheet:has(.v39-shell){width:min(1320px,100%);max-height:96dvh;padding:22px 24px;overflow:hidden;background:linear-gradient(135deg,#0b1520fa,#102532fa 52%,#0b131cfa);border-color:#7aa3b35f;box-shadow:0 24px 90px #000c,0 0 0 1px #1f3643 inset}
.sheet:has(.v39-shell) h1{font-size:clamp(30px,4.2vw,50px);margin:8px 0 10px}
.sheet:has(.v39-shell)>.intro{max-width:none;margin:0 0 14px}
.v39-shell{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:18px;min-height:0;height:min(70dvh,720px)}
.v39-visual,.v39-nav{min-width:0;min-height:0;display:flex;flex-direction:column;gap:12px}
.v39-visual{padding:14px 16px;border:1px solid #6f97a54d;background:linear-gradient(150deg,#102231ed,#0b161ded 66%,#101922ed);border-radius:10px;overflow:hidden}
.v39-nav{padding:14px 14px 12px;border:1px solid #7b928f40;background:linear-gradient(150deg,#111b23f3,#0c151cf3);border-radius:10px;overflow:hidden}
.v39-meta{display:flex;gap:8px;flex-wrap:wrap}.v39-meta span{font:10px/1.2 system-ui,sans-serif;letter-spacing:.14em;color:#b7e3e6;background:#17303b;border:1px solid #47718272;padding:7px 9px;border-radius:999px}
.v39-preview-card{display:flex;flex-direction:column;gap:10px;min-height:0;justify-content:flex-start}.v39-preview-card h2{font-size:clamp(26px,3vw,36px);margin:0}.v39-preview-card p{max-width:none;margin:0}.v39-preview-card small{font:10px/1.2 system-ui,sans-serif;letter-spacing:.18em;color:var(--gold)}
.v39-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.v39-stats span{display:flex;flex-direction:column;gap:7px;padding:11px 10px;background:#0d1a22;border:1px solid #49667455;border-radius:8px;font:12px/1.4 system-ui,sans-serif;color:#dce9ea}.v39-stats b{font:10px/1 system-ui,sans-serif;letter-spacing:.15em;color:#82c9d0}
.v39-nav-header{display:flex;flex-direction:column;gap:8px}
.v39-pagebar{display:grid;grid-template-columns:44px 1fr 44px;gap:6px;align-items:center}.v39-pagebar span{text-align:center;font:11px/1.2 system-ui,sans-serif;letter-spacing:.18em;color:#d5c39e}
.v39-pagebar button{padding:8px 0;min-height:38px}
.v39-button-list{display:grid;grid-template-columns:1fr;gap:8px;min-height:0;overflow:hidden;align-content:start}
.v39-button-list button{min-height:72px;text-align:left;padding:12px 14px;background:linear-gradient(135deg,#15252e,#12212a);border-color:#4f66713f}.v39-button-list button b{display:block;font:18px/1.2 Georgia,serif;margin:4px 0 6px}.v39-button-list button small{display:block;font-size:9px;color:#a8d5da}.v39-button-list button span{display:block;font:11px/1.35 system-ui,sans-serif;opacity:.82}
.v39-button-list button.selected{background:linear-gradient(140deg,#d1b071,#f0d8a0);color:#10171b;border-color:#f5dfa8}.v39-button-list button.selected small{color:#27414e}
.v39-actions{margin-top:14px;gap:8px}.v39-actions button{flex:1;min-width:0}
.v39-footer{margin-top:10px;max-width:none}
.v39-planet-preview{height:100%}.v39-planet-shot{width:100%;max-width:340px;aspect-ratio:1/1;object-fit:cover;border-radius:50%;align-self:center;box-shadow:0 0 0 1px #88a8b450,0 18px 50px #0007}
.v39-card-list .v39-planet-button{min-height:64px}
.globe-layout.v39-globe{display:grid;grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr);gap:14px;max-height:none;min-height:0;height:100%}
.globe-layout.v39-globe .planet-area{min-height:320px;height:auto}
.globe-layout.v39-globe .v39-preview-card{padding:4px 2px}
@media (max-width:900px), (pointer:coarse){
 .sheet:has(.v39-shell){padding:44px 12px 12px;overflow:auto}
 .v39-shell{grid-template-columns:1fr;height:auto}
 .v39-visual,.v39-nav{overflow:visible}
 .v39-stats{grid-template-columns:1fr}
 .v39-actions{display:grid;grid-template-columns:1fr 1fr}
 .globe-layout.v39-globe{grid-template-columns:1fr}
 .globe-layout.v39-globe .planet-area{min-height:220px}
 .v39-button-list button{min-height:60px;padding:9px 11px}
 .v39-button-list button b{font-size:15px}
}
@media (max-height:720px) and (min-width:901px){
 .sheet:has(.v39-shell){padding:18px}.v39-shell{height:min(66dvh,620px)}.v39-button-list button{min-height:62px;padding:10px 12px}.v39-button-list button b{font-size:16px}
}

/* V39 COMPLETE — universal fixed-height spacecraft interface, no scroll required. */
.sheet:has(.v39-universal){width:min(1320px,100%);height:calc(100dvh - 36px);max-height:calc(100dvh - 36px);padding:19px 22px 16px!important;overflow:hidden!important;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:10px;background:linear-gradient(140deg,#091622fa,#102733fa 58%,#0a121bfa);border:1px solid #8cc5d46e;border-radius:12px}
.v39-auto-heading{display:flex;flex-direction:column;gap:5px;min-width:0;max-height:22dvh;overflow:hidden}
.v39-auto-heading>small{font:10px/1.4 system-ui,sans-serif;color:#d7c38d;letter-spacing:.2em}
.sheet .v39-auto-heading>h1{font:normal clamp(26px,3.7vw,47px)/1.04 Georgia,serif;margin:0!important;letter-spacing:-.02em}
.sheet .v39-auto-heading>.intro{font:clamp(11px,1.2vw,14px)/1.4 system-ui,sans-serif;margin:0;max-width:100%;color:#b8d5d9}
.v39-shell.v39-universal{height:100%!important;min-height:0!important;max-height:none;grid-template-columns:minmax(0,1.23fr) minmax(290px,.77fr);gap:14px}
.v39-universal>.v39-visual,.v39-universal>.v39-nav{min-height:0;overflow:hidden;gap:7px;padding:13px;border-radius:9px}
.v39-auto-side-title{display:flex;justify-content:space-between;gap:10px;padding-bottom:9px;border-bottom:1px solid #82c7d633;font:9px/1.2 system-ui,sans-serif;letter-spacing:.15em;color:#8fc9d5}
.v39-auto-page-viewport{flex:1 1 auto;min-height:0;overflow:hidden;position:relative}
.v39-auto-page-entries{display:flex;flex-direction:column;gap:9px;min-height:0;align-items:stretch}
.v39-auto-entry{display:block;min-width:0;flex:none}
.v39-auto-entry[hidden],.v39-auto-pagebar[hidden]{display:none!important}
.v39-auto-entry>button,.v39-auto-entry>a{display:block;width:100%;text-align:left;min-height:48px;border-radius:6px;padding:10px 13px;font:13px/1.35 system-ui,sans-serif}
.v39-auto-entry>button b{display:block;font:normal 18px/1.25 Georgia,serif;margin:4px 0}
.v39-auto-entry>button span{display:block;font:11px/1.35 system-ui,sans-serif;opacity:.85}
.v39-auto-entry>.setting{margin:0;padding:9px 4px;min-height:50px}
.v39-auto-entry>.setting label{font-size:12px}
.v39-auto-entry>.setting select,.v39-auto-entry>.setting input{max-width:54%}
.v39-auto-entry>.systems-choices{margin:0;gap:5px}.v39-auto-entry>.systems-choices>button{min-width:85px;min-height:42px;padding:8px;font-size:12px}
.v39-auto-entry>h2,.v39-auto-entry>h3{font-size:20px;margin:5px 0;color:#e0c18b}
.v39-auto-entry>p{max-width:100%;font:13px/1.55 system-ui,sans-serif;margin:0 0 6px;color:#c9dadd}
.v39-auto-entry>.fine{font-size:11px!important}
.v39-auto-entry>.route-card,.v39-auto-entry>.route-step,.v39-auto-entry>.chronicle-era,.v39-auto-entry>.destination{min-height:0!important;padding:10px 13px!important;margin:0;border-radius:6px}
.v39-auto-entry>.route-card p,.v39-auto-entry>.route-card em{display:none}
.v39-auto-entry>.menu-tool{min-height:0!important;padding:12px 14px!important}
.v39-auto-entry>.chronicle-era b{font-size:18px}
.v39-auto-entry>.evidence-card{margin:0}
.v39-auto-entry>.lab-answer{padding:14px;margin:0}
.v39-auto-entry>.systems-status{margin:0}
.v39-auto-entry>textarea{display:block;width:100%;min-height:95px;max-height:170px;padding:12px;background:#081922;color:#e3f3f2;border:1px solid #7fa6a77b;border-radius:7px;resize:none}
.v39-auto-entry>.setting:has(+textarea){margin-bottom:3px}
.v39-evidence-pages{display:flex;flex-direction:column;gap:7px}
.v39-evidence-entry h2,.v39-evidence-entry h3{margin:3px 0;font-size:18px;color:#d9bc83}
.v39-auto-entry.v39-transcript-entry{border-left:2px solid #7ca9c1;padding-left:11px}
.v39-auto-entry.v39-transcript-entry>p{font:12px/1.6 ui-monospace,monospace}
.v39-auto-entry>.artifact-brief{margin:0;padding:15px}
.v39-auto-entry>.terminal-display{margin:6px 0;padding:16px}
.v39-auto-entry>.v33-system-status{margin:0}
.v39-auto-entry>.v33-camera-grid{height:auto}
.v39-auto-pagebar{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:7px;padding-top:6px}
.v39-auto-pagebar span{text-align:center;font:10px/1.3 ui-monospace,monospace;letter-spacing:.13em;color:#b5ced5}
.v39-auto-pagebar button{min-height:38px;padding:5px;background:#142d39;color:#e8e8df;border-color:#83a5b350}
.v39-auto-footer{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap;max-height:13dvh;overflow:hidden}
.v39-auto-footer>button,.v39-auto-footer>a{min-height:40px;padding:8px 13px;font:12px system-ui,sans-serif;border-radius:5px;white-space:normal}
.sheet:has(.v39-universal) .menu-tool-grid{display:flex;flex-direction:column;gap:5px}
.v39-auto-entry .menu-tool{font-size:13px}
.v39-auto-entry .menu-tool b{font-size:17px}
.v39-auto-entry .menu-tool span{display:block}
.v39-auto-entry>input,.v39-auto-entry>select{width:100%;min-height:42px;background:#0d1d27}
.v39-auto-entry:has(>input[type=range]){min-height:56px}
.v39-auto-nav .v39-auto-pagebar{order:0}.v39-auto-nav .v39-auto-page-viewport{order:1}
@media(max-height:600px) and (min-width:741px){
 .sheet:has(.v39-universal){padding:10px 13px!important;gap:5px}
 .v39-auto-heading{max-height:20dvh;gap:2px}
 .sheet .v39-auto-heading>h1{font-size:27px}
 .sheet .v39-auto-heading>.intro{display:none}
 .v39-auto-entry>.setting{padding:4px 2px;min-height:38px}
 .v39-auto-entry>button{min-height:36px;padding:6px 9px}
 .v39-auto-entry>.systems-choices button{min-height:35px}
 .v39-auto-footer>button{min-height:33px;padding:5px 10px}
}
@media(max-width:740px), (pointer:coarse) and (max-width:900px){
 .sheet:has(.v39-universal){width:100%!important;height:calc(100dvh - 10px)!important;max-height:calc(100dvh - 10px)!important;padding:41px 9px 8px!important;gap:5px;overflow:hidden!important}
 .v39-universal.v39-shell{height:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,.72fr) minmax(0,1.28fr)!important;gap:5px!important}
 .v39-universal>.v39-visual,.v39-universal>.v39-nav{padding:7px!important;gap:3px!important;min-height:0!important;overflow:hidden!important}
 .v39-auto-heading>small{font-size:8px}.sheet .v39-auto-heading>h1{font-size:clamp(19px,4.1vw,28px)!important}
 .v39-auto-heading>.intro{display:none}
 .v39-auto-side-title{font-size:8px;padding-bottom:4px}
 .v39-auto-page-entries{gap:5px}
 .v39-auto-entry>button{min-height:36px!important;font-size:11px!important;padding:6px 9px!important}
 .v39-auto-entry>button b{font-size:14px!important;margin:2px 0!important}
 .v39-auto-entry>button span,.v39-auto-entry>button small{font-size:9px!important}
 .v39-auto-entry>.setting{padding:3px!important;min-height:33px}
 .v39-auto-entry>.setting label{font-size:10px}
 .v39-auto-entry>p{font-size:10px;line-height:1.3}
 .v39-auto-pagebar button{min-height:29px!important;padding:2px!important}
 .v39-auto-pagebar span{font-size:9px}
 .v39-auto-footer{gap:4px;max-height:11dvh}
 .v39-auto-footer>button,.v39-auto-footer>a{min-height:30px;padding:4px 8px;font-size:10px}
 .v39-auto-entry>.route-card,.v39-auto-entry>.route-step{padding:6px!important}
 .v39-auto-entry>h2,.v39-auto-entry>h3{font-size:14px;margin:2px 0}
}

/* V39 final: live destination targeting, cyan focus versus amber locked selection. */
.v39-nav .site-tile.selected,.v39-nav .site-tile:focus-visible{background:#174555!important;color:#d9fbff!important;border:1px solid #70e4f5!important;box-shadow:0 0 20px #2baad72a}
.v39-nav .site-tile.selected small{color:#a2eaf8!important}
.v39-nav .site-tile.v39-locked{background:#d4ad6c!important;color:#111d23!important;border-color:#f2cb8b!important;box-shadow:0 0 22px #f2c1784d}
.v39-actions button.v39-locked{background:#deb979!important;color:#07141b!important}
/* Override older mobile globe-scroll rules, which predated this fixed-screen design. */
@media(max-width:740px),(pointer:coarse){
 .sheet:has(.v39-globe){width:100%!important;height:calc(100dvh - 10px)!important;max-height:calc(100dvh - 10px)!important;overflow:hidden!important;padding:39px 9px 8px!important;display:flex!important;flex-direction:column!important;gap:4px!important}
 .sheet:has(.v39-globe)>h1{font-size:clamp(20px,4.2vw,26px)!important;margin:2px 0!important}
 .sheet:has(.v39-globe)>.intro{display:none!important}
 .sheet:has(.v39-globe) .v39-shell{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,.65fr) minmax(0,1.35fr)!important;min-height:0!important;max-height:none!important;height:100%!important;gap:6px!important}
 .sheet:has(.v39-globe) .v39-visual,.sheet:has(.v39-globe) .v39-nav{padding:7px!important;overflow:hidden!important;min-height:0!important}
 .sheet:has(.v39-globe) .globe-layout.v39-globe{display:grid!important;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;grid-template-rows:minmax(0,1fr)!important;height:100%!important;min-height:0!important;max-height:none!important;gap:6px!important}
 .sheet:has(.v39-globe) .globe-layout.v39-globe .planet-area{min-height:0!important;height:auto!important;max-height:none!important;flex:1!important}
 .sheet:has(.v39-globe) #globeCanvas{width:100%!important;height:100%!important;min-height:0!important;flex:1!important}
 .sheet:has(.v39-globe) .globe-layout.v39-globe .v39-preview-card{height:100%!important;min-height:0!important;overflow:hidden!important}
 .sheet:has(.v39-globe) .globe-layout.v39-globe .v39-preview-card h2{font-size:16px!important}
 .sheet:has(.v39-globe) .globe-layout.v39-globe #globeFact{font-size:10px!important;line-height:1.3!important;max-height:3.9em!important;overflow:hidden!important}
 .sheet:has(.v39-globe) .v39-preview-card .v39-stats{display:none!important}
 .sheet:has(.v39-globe) .globe-controls{display:none!important}
 .sheet:has(.v39-globe) .v39-nav-header{gap:3px!important}
 .sheet:has(.v39-globe) .v39-button-list{display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px!important;overflow:hidden!important;min-height:0!important}
 .sheet:has(.v39-globe) .v39-button-list button{min-height:38px!important;padding:4px 7px!important}
 .sheet:has(.v39-globe) .v39-button-list button b{font-size:11px!important;margin:1px 0!important}
 .sheet:has(.v39-globe) .v39-button-list button small,.sheet:has(.v39-globe) .v39-button-list button span{display:none!important}
 .sheet:has(.v39-globe) .v39-actions{margin:3px 0!important;gap:4px!important;display:flex!important;flex-wrap:nowrap!important}
 .sheet:has(.v39-globe) .v39-actions button{min-height:31px!important;padding:3px 5px!important;font-size:10px!important}
 .sheet:has(.v39-globe) .v39-footer{display:none!important}
}
/* Quiet in-world celestial illustration prevents empty preview panels without obscuring research. */
.v39-universal>.v39-auto-visual{position:relative;isolation:isolate}
.v39-universal>.v39-auto-visual::after{content:'';position:absolute;z-index:0;right:4%;bottom:8%;width:min(42%,290px);aspect-ratio:1;border-radius:50%;pointer-events:none;opacity:.20;background:radial-gradient(circle at 28% 29%,#ffffff60,transparent 32%),radial-gradient(circle at 66% 73%,#020b17ec,transparent 66%),url('../assets/earth_albedo_realistic.jpg') center/cover;box-shadow:0 0 65px #45c2ec31,inset -27px -17px 50px #02081288}
.v39-universal>.v39-auto-visual>*{position:relative;z-index:1}
@media(max-width:740px),(pointer:coarse) and (max-width:900px){.v39-universal>.v39-auto-visual::after{width:32%;opacity:.12}}
@media(min-width:650px) and (max-height:520px){
 .v39-universal.v39-shell{display:grid!important;grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr)!important;grid-template-rows:minmax(0,1fr)!important}
 .sheet:has(.v39-globe) .v39-shell{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)!important;grid-template-rows:minmax(0,1fr)!important}
}

/* V41 — Unified Celestial Archive: north-up targeting, controller-friendly in-place actions */
#globeBrowsePane,#globeActionPane{min-height:0;flex:1;display:flex;flex-direction:column;gap:9px}
#globeBrowsePane[hidden],#globeActionPane[hidden],#globeCategoryMenu[hidden],#globeGrid[hidden],#globePager[hidden],#freeCamStatus[hidden]{display:none!important}
#globeBrowsePane .v39-nav-header{position:relative;flex:0 0 auto;gap:9px}
#globeGrid{flex:1;min-height:0;align-content:start;overflow:hidden}
#globeCategoryToggle{width:100%;min-height:44px;text-align:left;display:flex;justify-content:space-between;align-items:center;border-radius:6px;background:#142a35;border-color:#6cb8ca78;color:#dcf4f3;font:600 13px system-ui,sans-serif;letter-spacing:.025em}
#globeCategoryToggle[aria-expanded="true"]{border-color:#cfc295;color:#f6ebce;box-shadow:0 0 0 1px #b7e4ec33}
#globeCategoryToggle span{font:19px system-ui,sans-serif;line-height:1}
.v41-category-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;position:relative;z-index:5;padding:8px;background:linear-gradient(135deg,#0c1a24,#122937);border:1px solid #6cb8ca77;border-radius:8px;box-shadow:0 12px 35px #0009}
.v41-category-menu button{min-height:45px;padding:7px 9px;text-align:left;font:11px/1.3 system-ui,sans-serif;background:#17323e;border-color:#486b7a55}
.v41-category-menu button.selected{background:#d6b981;color:#10191d}
.v41-action-pane{justify-content:flex-start;padding:12px;border:1px solid #6da0ac55;background:linear-gradient(160deg,#173442,#0d2029);border-radius:8px}
.v41-action-pane>small{font:10px system-ui;letter-spacing:.18em;color:#e5c48c}
.v41-action-pane h2{font:clamp(20px,2.7vw,30px)/1.2 Georgia,serif;margin:8px 0 4px}
.v41-action-pane p{font:13px/1.5 system-ui;color:#a9c9d1;margin:0 0 10px}
.v41-action-list{display:grid;grid-template-columns:1fr;gap:12px;margin-top:auto}
.v41-action-list button{width:100%;padding:13px 16px;min-height:53px;text-align:left;border-radius:5px;font:600 14px/1.3 system-ui,sans-serif}
.v41-action-list button:disabled{opacity:.4;cursor:not-allowed}
#freeCamStatus{position:fixed;z-index:7;left:50%;top:22px;transform:translateX(-50%);border:1px solid #7fe0ed78;background:#081b29e9;padding:11px 15px;color:#d7eff2;font:10px/1.5 system-ui,sans-serif;letter-spacing:.1em;pointer-events:none;max-width:min(640px,90vw);text-align:center}
body.free-camera #prompt,body.free-camera #actionTouch{visibility:hidden}
/* Respect all hidden layout flags even when legacy responsive CSS uses !important display overrides. */
.sheet [hidden]{display:none!important}
@media(max-width:740px),(pointer:coarse){
 #globeBrowsePane,#globeActionPane{gap:4px}
 #globeCategoryToggle{font-size:11px!important;min-height:34px!important;padding:4px 8px!important}
 .v41-category-menu{gap:3px;padding:4px}
 .v41-category-menu button{font-size:10px!important;min-height:34px!important;padding:5px 6px!important}
 .v41-action-pane{padding:8px;gap:5px}
 .v41-action-pane h2{font-size:20px;margin:2px 0}
 .v41-action-pane p{font-size:11px;margin:0}
 .v41-action-list{gap:6px;margin-top:auto}
 .v41-action-list button{font-size:12px!important;min-height:40px!important;padding:8px 11px!important}
 #globeGrid{flex:1;min-height:0}
 #freeCamStatus{font-size:9px;top:70px;padding:8px}
}
@media(min-width:650px) and (max-height:580px){
 .v41-action-list{gap:5px}
 .v41-action-list button{min-height:35px;padding:6px 10px}
 .v41-category-menu button{min-height:32px}
}

/* V53 · image-first star destinations; no encyclopedia, epochs or flyby clutter. */
.sheet:has(.v53-navigation){width:min(1040px,96vw);max-height:min(95dvh,850px);padding:clamp(14px,2.5vw,28px);overflow:hidden}
.v53-navigation{display:flex;flex-direction:column;gap:clamp(9px,1.2vh,17px);height:min(80dvh,735px);min-height:0}
.v53-nav-title{text-align:center;flex:0 0 auto}.v53-nav-title small{display:block;color:#b1d4e4;letter-spacing:.2em;font:10px/1.4 system-ui,sans-serif}.v53-nav-title h1{margin:5px 0!important;font-size:clamp(25px,4vw,41px)!important}
.v53-destination-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:clamp(7px,1.2vw,13px);flex:1;min-height:0}
.v53-destination{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:5px;min-width:0;min-height:0;padding:9px!important;border:1px solid #6d9aac70!important;background:linear-gradient(155deg,#101c2a,#0b111b)!important;border-radius:13px!important;overflow:hidden;color:#e9eff5!important;text-align:center;position:relative;transition:border-color .15s,background .15s,box-shadow .15s,transform .15s}
.v53-destination:hover{transform:translateY(-2px);border-color:#9ed2e6!important}
.v53-destination.selected{background:linear-gradient(155deg,#223b4b,#102330)!important;border:2px solid #d5d09c!important;box-shadow:0 0 25px #7ddcff36,inset 0 0 18px #80cbe11b}
.v53-destination img{display:block;object-fit:cover;object-position:center;width:min(100%,130px);height:min(100%,136px);max-height:calc(100% - 26px);margin:auto;border-radius:50%;aspect-ratio:1;box-shadow:0 0 19px #0009}
.v53-destination b{font:600 clamp(13px,1.6vw,18px)/1.25 system-ui,sans-serif;white-space:nowrap}
.v53-nav-bottom{display:flex;align-items:center;gap:13px;flex:0 0 auto;justify-content:space-between}
.v53-page-controls{display:flex;align-items:center;gap:8px;color:#a6bcc7;font:12px monospace}.v53-page-controls button{width:38px;min-height:40px;padding:0;font-size:23px}
.v53-confirm-jump{min-height:48px;flex:1;max-width:480px;font-weight:700;letter-spacing:.08em}.v53-confirm-jump:disabled{opacity:.50}
/* Pilot HUD becomes a nearly invisible distance/speed readout plus a pin-dot reticle. */
body.pilot-mode #menuToggle,body.pilot-mode #v33-command,body.pilot-mode #v33-label,body.pilot-mode #v33-buttons{display:none!important}
body.pilot-mode #v53-flight-reticle{display:block!important}
#v53-flight-reticle{display:none;position:fixed;z-index:6;left:50%;top:50%;transform:translate(-50%,-50%);width:4px;height:4px;border-radius:50%;background:#eef9ff;box-shadow:0 0 3px #000,0 0 4px #a6daea80;pointer-events:none}
body.pilot-mode #v33-flight{display:flex;flex-direction:column;gap:3px;position:fixed;left:17px;bottom:18px;top:auto;max-width:fit-content;padding:8px 10px;border:1px solid #89c1d333;background:#03101866;border-radius:5px;backdrop-filter:blur(6px);font:10px/1.2 system-ui,sans-serif;text-shadow:0 1px 3px #000;color:#d2e2e9;pointer-events:none}
body.pilot-mode #v33-flight-status{font:10px/1.35 system-ui,sans-serif;color:#c3d3df;font-weight:400}
body.pilot-mode #v33-flight-speed{font:11px/1.35 system-ui,sans-serif;color:#e9f6fa}
@media(max-width:720px),(pointer:coarse){.v53-navigation{height:min(78dvh,625px)}.v53-destination-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:7px}.v53-destination img{width:min(100%,105px);height:min(100%,105px)}.v53-destination b{font-size:14px}.v53-nav-bottom{gap:8px}.v53-confirm-jump{font-size:11px!important;min-height:45px}.v53-page-controls button{width:29px;min-height:36px}.v53-page-controls{gap:4px;font-size:10px}body.pilot-mode #v33-flight{bottom:10px;left:8px;padding:5px 7px;font-size:9px}}
@media(max-height:560px){.v53-navigation{height:75dvh}.v53-destination img{width:min(100%,75px);height:min(100%,75px)}.v53-destination{padding:4px!important}.v53-nav-title h1{font-size:24px!important}}

/* ==========================================================================
 V54 · A2 · CINEMATIC WORLD-SPACE GLASS INTERACTION SYSTEM
 The luminous glass pane and etched framework also exist as actual 3D meshes
 in the scene; DOM remains the fully accessible, controller-driven control layer.
 ========================================================================== */
body.v54-focusing #prompt, body.v54-focusing #hud .bottom {opacity:0;transition:opacity .19s ease}
#panel.v54-glass-menu{
  background:linear-gradient(112deg,rgba(1,12,21,.19),rgba(5,20,32,.04) 40%,rgba(2,10,22,.24));
  backdrop-filter:blur(2px) saturate(1.1);
  -webkit-backdrop-filter:blur(2px) saturate(1.1);
  padding:clamp(9px,3vw,40px);perspective:1400px;
  isolation:isolate;overflow:hidden;
}
#panel.v54-glass-menu::before{
 content:"";position:absolute;inset:0;pointer-events:none;
 background:radial-gradient(ellipse 66% 58% at 50% 48%,rgba(107,206,238,.065),transparent 75%);
 opacity:0;transition:opacity .7s ease;
}
#panel.v54-glass-menu.v54-visible::before{opacity:1}
/* Flatten inherited solid menu surfaces to reveal both the glass shader and
 the living real-time 3D scene behind each interface. */
#panel.v54-glass-menu .sheet,
#panel.v54-glass-menu .sheet:has(.v39-universal),
#panel.v54-glass-menu .sheet:has(.v39-shell),
#panel.v54-glass-menu .sheet:has(.globe-layout),
#panel.v54-glass-menu .sheet:has(.v53-navigation),
#panel.v54-glass-menu .sheet:has(.chronicle-track),
#panel.v54-glass-menu .sheet:has(.systems-status),
#panel.v54-glass-menu .sheet:has(.transmission-log),
#panel.v54-glass-menu .sheet:has(.artifact-brief){
  --gold:#bfe8f4;
  position:relative;isolation:isolate;
  background:linear-gradient(134deg,rgba(28,76,103,.42) 0%,rgba(6,30,48,.65) 42%,rgba(7,30,47,.48) 84%,rgba(43,91,119,.40) 100%)!important;
  border:1px solid rgba(181,232,249,.56)!important;
  border-top-color:rgba(238,254,255,.8)!important;
  border-left-color:rgba(194,239,252,.72)!important;
  border-radius:clamp(13px,1.45vw,23px)!important;
  box-shadow:0 30px 110px rgba(0,4,11,.54),0 0 45px rgba(89,204,255,.085),
             0 1px 0 rgba(255,255,255,.29) inset,0 0 0 1px rgba(195,240,255,.12) inset,
             0 -25px 60px rgba(3,20,33,.20) inset!important;
  backdrop-filter:blur(19px) saturate(1.23) brightness(.96);
  -webkit-backdrop-filter:blur(19px) saturate(1.23) brightness(.96);
  max-width:1160px!important;
  width:min(1160px,calc(100vw - 60px))!important;
  max-height:min(85dvh,800px)!important;
  transform-origin:50% 55%;
  opacity:0;
  transform:translate3d(0,26px,-135px) scale(.79) rotateX(4.2deg);
  filter:blur(12px) brightness(1.55);
  transition:opacity .32s cubic-bezier(.2,.8,.2,1),
    transform .64s cubic-bezier(.12,.91,.19,1),
    filter .55s cubic-bezier(.16,.8,.25,1);
  will-change:transform,opacity,filter;
}
#panel.v54-glass-menu.v54-visible .sheet,
#panel.v54-glass-menu.v54-visible .sheet:has(.v39-universal),
#panel.v54-glass-menu.v54-visible .sheet:has(.v39-shell),
#panel.v54-glass-menu.v54-visible .sheet:has(.globe-layout),
#panel.v54-glass-menu.v54-visible .sheet:has(.v53-navigation),
#panel.v54-glass-menu.v54-visible .sheet:has(.chronicle-track),
#panel.v54-glass-menu.v54-visible .sheet:has(.systems-status),
#panel.v54-glass-menu.v54-visible .sheet:has(.transmission-log),
#panel.v54-glass-menu.v54-visible .sheet:has(.artifact-brief){
  opacity:1;transform:translate3d(0,0,0) scale(1) rotateX(0);
  filter:blur(0) brightness(1);
}
/* A reflected strip of light travels across the actual glass instead of using
 a generic one-off fade. It follows the physical-panel material's shimmer. */
#panel.v54-glass-menu .sheet::before{content:"";position:absolute;z-index:1;inset:0;pointer-events:none;
 background:linear-gradient(109deg,transparent 10%,rgba(215,248,255,.015) 33%,rgba(207,246,255,.155) 45%,rgba(255,255,255,.035) 50%,transparent 64%);
 transform:translateX(-130%);opacity:.9;mix-blend-mode:screen;
}
#panel.v54-glass-menu.v54-visible .sheet::before{animation:v54GlassLight 1.16s cubic-bezier(.17,.72,.28,1) .07s both}
@keyframes v54GlassLight{from{transform:translateX(-130%)}to{transform:translateX(130%)}}
#panel.v54-glass-menu .sheet::after{content:"";position:absolute;z-index:0;inset:6px;border:1px solid rgba(171,225,246,.11);border-radius:inherit;pointer-events:none;
 background:linear-gradient(112deg,rgba(198,238,255,.048),transparent 27%,transparent 78%,rgba(203,235,255,.022));}
#panel.v54-glass-menu .sheet > *{position:relative;z-index:2}
#panel.v54-glass-menu .sheet .v39-visual,
#panel.v54-glass-menu .sheet .v39-nav,
#panel.v54-glass-menu .v53-destination,
#panel.v54-glass-menu .v39-auto-entry>button,
#panel.v54-glass-menu .systems-status,
#panel.v54-glass-menu .terminal-display,
#panel.v54-glass-menu .setting,
#panel.v54-glass-menu .v39-stats span{
 background:linear-gradient(145deg,rgba(26,61,82,.30),rgba(6,25,43,.37))!important;
 border-color:rgba(130,208,235,.24)!important;
 backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);
}
#panel.v54-glass-menu .sheet button:not(.primary):hover,
#panel.v54-glass-menu .sheet button.selected{background:linear-gradient(127deg,rgba(106,198,229,.8),rgba(160,225,243,.92))!important;color:#081b2a!important;border-color:#d5f4ff!important}
#panel.v54-glass-menu .sheet button:focus-visible,
#panel.v54-glass-menu .sheet input:focus-visible,
#panel.v54-glass-menu .sheet select:focus-visible{
 outline:2px solid #b7f0ff!important;outline-offset:2px;box-shadow:0 0 24px rgba(113,216,247,.22)}
#panel.v54-glass-menu .sheet h1{text-shadow:0 2px 24px rgba(149,227,255,.12);color:#f1faff}
#panel.v54-glass-menu .sheet small,#panel.v54-glass-menu .sheet .eyebrow{color:#9fd4e8}
#panel.v54-glass-menu .v53-destination img{filter:drop-shadow(0 3px 24px rgba(0,0,0,.55))}
#panel.v54-glass-menu #mobileMenuBack{background:rgba(11,31,47,.75);color:#e9faff;border:1px solid rgba(170,229,245,.55);box-shadow:0 0 25px rgba(83,199,241,.12);backdrop-filter:blur(10px)}
/* Subtle deployment of labels after glass frame has had time to exist. */
#panel.v54-glass-menu.v54-deploy .sheet h1,
#panel.v54-glass-menu.v54-deploy .sheet .v39-shell,
#panel.v54-glass-menu.v54-deploy .sheet .v53-navigation,
#panel.v54-glass-menu.v54-deploy .sheet .row{
 transition:opacity .38s ease .20s,translate .46s cubic-bezier(.2,.8,.2,1) .16s;
 opacity:0;translate:0 9px;
}
#panel.v54-glass-menu.v54-visible .sheet h1,
#panel.v54-glass-menu.v54-visible .sheet .v39-shell,
#panel.v54-glass-menu.v54-visible .sheet .v53-navigation,
#panel.v54-glass-menu.v54-visible .sheet .row{opacity:1;translate:0 0}
@media(max-width:740px),(pointer:coarse){
 #panel.v54-glass-menu{padding:8px 7px!important}
 #panel.v54-glass-menu .sheet,
 #panel.v54-glass-menu .sheet:has(.v39-universal),
 #panel.v54-glass-menu .sheet:has(.v39-shell),
 #panel.v54-glass-menu .sheet:has(.globe-layout),
 #panel.v54-glass-menu .sheet:has(.v53-navigation){
 width:calc(100vw - 14px)!important;max-width:calc(100vw - 14px)!important;
 height:calc(100dvh - 18px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
 max-height:calc(100dvh - 18px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
 padding:48px 12px 13px!important;border-radius:13px!important;
 }
 #panel.v54-glass-menu .sheet .v39-universal{max-height:calc(100% - 10px)}
 #panel.v54-glass-menu .sheet:has(.v53-navigation) .v53-navigation{height:calc(100% - 18px)}
}
@media(prefers-reduced-motion:reduce){
 #panel.v54-glass-menu .sheet{transition:none!important;transform:none!important;filter:none!important}
 #panel.v54-glass-menu .sheet::before{animation:none!important}
 #panel.v54-glass-menu .sheet h1,#panel.v54-glass-menu .sheet .v39-shell,#panel.v54-glass-menu .sheet .v53-navigation{transition:none!important}
}

/* Color-focus handoff complements the actual FOV/dolly camera animation. */
body.v54-focusing #world{filter:brightness(.88) saturate(.88);transition:filter .36s ease}
body:has(#panel.v54-glass-menu.v54-visible) #world{filter:brightness(.87) saturate(.87);transition:filter .34s ease}
body:not(.v54-focusing):not(:has(#panel.v54-glass-menu.v54-visible)) #world{filter:none;transition:filter .38s ease}

/* V56: spacecraft boresight guide. Physically projected from +Z flight direction,
   never glued to the screen centre. Offscreen direction is a subdued chevron. */
#v53-flight-reticle{width:5px!important;height:5px!important;border-radius:50%;background:#d9f9ff!important;box-shadow:0 0 1px 1px #05111c,0 0 9px #7edbff9c,0 0 16px #b7eaff44!important;transition:none;will-change:left,top}
#v53-flight-reticle::before{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:19px;height:19px;border:1px solid #aee9ff66;border-radius:50%;box-shadow:0 0 10px #1ca8ff33;pointer-events:none}
#v53-flight-reticle::after{content:"";position:absolute;left:50%;top:50%;width:6px;height:6px;transform:translate(-50%,-50%) rotate(45deg);border-top:1px solid #c0f3ffbb;border-left:1px solid #c0f3ffbb;opacity:.6}
body.pilot-mode #v53-flight-reticle.v56-hidden{display:none!important}
#v53-flight-reticle.v56-offscreen{opacity:.9;background:transparent!important;box-shadow:none!important}
#v53-flight-reticle.v56-offscreen::before{border-color:#aee9ff25;box-shadow:none}
#v53-flight-reticle.v56-offscreen::after{width:10px;height:10px;opacity:1;transform:translate(-50%,-50%) rotate(calc(var(--v56-arrow-angle) + 135deg))}

/* V58 — camera-projected in-world celestial pulse target (no permanent HUD menu). */
#v58-pulse-target{position:fixed;z-index:7;transform:translate(-50%,-50%);width:78px;height:78px;
 pointer-events:none;color:#d8efff;font:600 10px/1.2 system-ui,sans-serif;text-align:center;
 text-shadow:0 1px 6px #000,0 0 12px #061a35;letter-spacing:.12em}
#v58-pulse-target[hidden]{display:none!important}
#v58-pulse-target .v58-target-ring{display:block;width:54px;height:54px;position:absolute;left:12px;top:9px;
 border:1px solid #8bcdec88;box-shadow:0 0 16px #38b5ff3d,inset 0 0 16px #38b5ff28;
 border-radius:50%;background:radial-gradient(circle,transparent 63%,#6dd4ff15 70%,transparent 78%)}
#v58-pulse-target .v58-target-name{position:absolute;top:69px;white-space:nowrap;left:50%;transform:translateX(-50%)}
#v58-pulse-target .v58-target-range{position:absolute;top:83px;white-space:nowrap;left:50%;transform:translateX(-50%);
 font:400 9px/1.2 monospace;color:#b7cfda}
#v58-pulse-target.v58-locked .v58-target-ring{border-color:#d7f9ff;box-shadow:0 0 30px #65e0ff77,inset 0 0 14px #bcefff55}
@media(max-width:720px){#v58-pulse-target{transform:translate(-50%,-50%) scale(.76)}}
@media(prefers-reduced-motion:reduce){#v58-pulse-target *{animation:none!important}}

/* V59: cinematic optical acquisition framing */
#v58-pulse-target.v59-focus .v58-target-ring{animation:btwe59Focus .65s ease-in-out infinite alternate;border-color:#daffff;box-shadow:0 0 18px #76d8ffbb,0 0 50px #329ef855!important}
@keyframes btwe59Focus { from{transform:scale(.91);opacity:.75}to{transform:scale(1.08);opacity:1}}
@media(prefers-reduced-motion:reduce){#v58-pulse-target.v59-focus .v58-target-ring{animation:none}}

/* V102: declutter the scene without removing Start/Escape pause functionality. */
#menuToggle{display:none!important}


/* The legacy EVA modal is hidden; new hull galleries are walked continuously. */
body.v102-hull-gallery #v33-command{display:none!important}

/* V103 legibility: the exact Fly Ship command stays readable in both control modes. */
#sheet #helmEnter,#sheet #helmEnter.primary{color:#fff!important;background:#244755!important;border-color:#bce9f0!important;text-shadow:0 1px 2px #00121d;font-weight:700;opacity:1!important;}
#sheet #helmEnter:focus-visible{outline:3px solid #fff;outline-offset:2px}

/* The inside-hull walkways have no inherited floating Archive title/banners. */
body.v103-hull-immersive #hud header, body.v103-hull-immersive #hud .bottom>div:first-child{display:none!important}

/* V106 — tactile research panels shown inside existing physical archive overlay.
   These panels are OPTIONAL evidence tools; the animated in-world globe remains unchanged. */
#sheet .v106-study-layout{display:grid;grid-template-columns:minmax(190px,.85fr) minmax(280px,1.4fr);gap:16px;align-items:start;margin:18px 0}
#sheet .v106-station-list{display:grid;gap:9px;margin:11px 0}
#sheet button.v106-station{display:block;text-align:left;padding:13px 15px;border:1px solid #59777d;border-radius:9px;background:linear-gradient(130deg,#142a32,#0d1e27);color:#f0f5ef;cursor:pointer;min-height:66px;white-space:normal}
#sheet .v106-station small{display:block;color:#9ac7c7;font:500 10px system-ui;letter-spacing:.06em;margin-bottom:6px}
#sheet .v106-station b{display:block;color:#fff;font:600 14px/1.35 system-ui}
#sheet button.v106-station.selected,#sheet button.v106-station:focus-visible{border-color:#d7d9aa;background:linear-gradient(130deg,#25434b,#132833);box-shadow:inset 3px 0 0 #d7cf96}
#sheet .v106-evidence-detail{border:1px solid #58737b;border-radius:13px;background:linear-gradient(145deg,#112833,#0a1720);padding:20px;min-height:260px;color:#e9f0ee}
#sheet .v106-evidence-detail h2{margin:14px 0;color:#fff;font-size:clamp(21px,2.7vw,28px);line-height:1.2}
#sheet .v106-evidence-detail h3{margin-top:24px;font-size:13px;color:#d9e9e7}
#sheet .v106-evidence-detail p{font-size:14px;line-height:1.65;color:#d5e0df}
#sheet .v106-evidence-detail a{color:#c7f0ff;text-decoration:underline;overflow-wrap:anywhere}
#sheet .v106-tag{display:inline-flex;padding:5px 9px;border:1px solid #718f8c;border-radius:30px;background:#224149;color:#fff;letter-spacing:.08em;font-size:11px}
#sheet .v106-caution{border-left:3px solid #d8b477;background:#332b23a6;padding:12px 15px;color:#fff0d2;line-height:1.6;font-size:13px;margin:14px 0}
#sheet .v106-metric{padding:15px;border:1px solid #9c9975;background:linear-gradient(120deg,#28383a,#171e24);margin:16px 0}
#sheet .v106-metric b{display:block;color:#fff6d5;font-size:22px}
#sheet .v106-metric small{display:block;color:#ddcda0;margin-top:6px;font-size:10px;letter-spacing:.05em}
#sheet .v106-actions{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0 20px}
#sheet .v106-actions button{min-width:175px;flex:1;color:#fff;background:#25404a}
#sheet .v106-setting-stack{display:grid;gap:18px}
#sheet .v106-horizon{display:flex;align-items:center;flex-direction:column;background:linear-gradient(#1b3441,#0a1822);border:1px solid #597b80;border-radius:12px;padding:10px}
#sheet #v106-compass{max-width:100%;height:auto;aspect-ratio:1}
#sheet #v106-sun-readout{max-width:340px;text-align:center;color:#e5efec;font-size:13px}
#sheet #v106-notes{display:block;width:100%;max-width:100%;box-sizing:border-box;background:#101f28;color:#fff;border:1px solid #64848b;border-radius:6px;padding:12px;font:14px/1.5 system-ui}
@media(max-width:680px){#sheet .v106-study-layout{display:flex;flex-direction:column}#sheet .v106-study-layout>div{width:100%;box-sizing:border-box}#sheet .v106-station-list{grid-template-columns:1fr}#sheet .v106-evidence-detail{padding:14px}#sheet .v106-actions button{min-width:100%}}
@media(prefers-reduced-motion:reduce){#sheet .v106-study-layout *{transition:none!important}}
#sheet .v106-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}
#sheet .v106-compare-card{border:1px solid #5c8580;border-radius:13px;background:linear-gradient(135deg,#142e31,#0b1b25);padding:18px;color:#e8f2ef;min-width:0}
#sheet .v106-compare-card h2{font-size:23px;color:#fff;margin:10px 0}
#sheet .v106-compare-card p{color:#d6e5df;font:13px/1.6 system-ui}
#sheet .v106-compare-card a{overflow-wrap:anywhere;color:#c2effb;text-decoration:underline}
#sheet .v106-compare-facts{padding:9px;margin:12px 0;border-top:1px solid #637b76;border-bottom:1px solid #637b76}
#sheet .v106-compare-facts>div{padding:6px 0;display:flex;justify-content:space-between;gap:15px}
#sheet .v106-compare-facts b{color:#fff1cf;font:600 13px system-ui}
#sheet .v106-compare-facts small{color:#c6d1b2;font:10px system-ui}
#sheet .v106-crossnote{grid-column:1/-1}
@media(max-width:680px){#sheet .v106-comparison{grid-template-columns:1fr}}

/* V110: native physical-flight navigators. 3D previews are not the Archive globe. */
#sheet .v110-nav{max-width:min(1060px,94vw);margin:0 auto;color:#f2f8fc;}
#sheet .v110-nav>small{display:block;letter-spacing:.19em;color:#9bd7e6;font-weight:650}
#sheet .v110-nav h1{font-size:clamp(25px,4vw,39px);color:#fff;margin:8px 0}
#sheet .v110-nav>p{color:#d3e5eb;line-height:1.5;margin:8px 0 15px}
#sheet .v110-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(205px,.8fr);gap:13px;align-items:stretch;}
#sheet .v110-visual{position:relative;min-height:300px;overflow:hidden;border:1px solid #578a9b;border-radius:13px;background:radial-gradient(circle at 50% 38%,#173a51 0%,#091723 55%,#030a12 100%);}
#sheet .v110-visual canvas{display:block;width:100%;height:100%;min-height:300px;touch-action:none;cursor:grab;}
#sheet .v110-visual canvas:active{cursor:grabbing}
#sheet .v110-visual span{position:absolute;bottom:9px;left:12px;right:12px;text-align:center;font:600 10px/1.4 system-ui;letter-spacing:.12em;color:#b4e7f1;pointer-events:none;text-shadow:0 1px 6px #000}
#sheet .v110-sites{height:318px;overflow-y:auto;overscroll-behavior:contain;display:grid;align-content:start;gap:7px;padding:5px;border:1px solid #456e7e;border-radius:12px;background:#0b1b25}
#sheet button.v110-site{width:100%;min-height:43px;display:block;text-align:left;padding:10px 12px;border-radius:7px;border:1px solid #416472;background:#112936;color:#ecf8ff;cursor:pointer;white-space:normal}
#sheet button.v110-site b{display:block;color:#fff;font:650 13px/1.3 system-ui}
#sheet button.v110-site small{display:block;color:#b6d5e2;font:11px/1.35 system-ui;margin-top:4px}
#sheet button.v110-site.selected,#sheet button.v110-site:focus-visible{background:#28516b;border-color:#d9f7ff;outline:none;box-shadow:inset 4px 0 0 #f9d48c}
#sheet .v110-destination{border:1px solid #4d7585;background:#142c39;border-radius:9px;padding:11px 14px;margin:13px 0;color:#fff;font:600 12px/1.55 system-ui}
#sheet .v110-nav .row{display:flex;gap:9px;flex-wrap:wrap;align-items:stretch;margin:10px 0}
#sheet .v110-nav .row button{color:#fff;min-height:44px}
#sheet .v110-nav .row button.primary{background:#28546a;color:#fff;border-color:#b9ecf4}
#sheet .v110-nav .fine{color:#c4d5d9;font:11px/1.5 system-ui}
@media(max-width:700px){#sheet .v110-layout{grid-template-columns:1fr}#sheet .v110-visual,#sheet .v110-visual canvas{min-height:215px;height:215px}#sheet .v110-sites{height:175px;grid-template-columns:repeat(2,minmax(0,1fr))}#sheet .v110-nav .row button{flex:1 1 145px}}

#v110-location{font:600 10px/1.4 system-ui;color:#c6e5ea;letter-spacing:.055em;max-width:460px;text-shadow:0 1px 4px #001;overflow-wrap:anywhere;margin-top:5px}


/* V117 CLEAN HUD · uncluttered exterior piloting, screenshot request 2026-11-16.
 * The telemetry block has no container rectangle; its two readouts are independent.
 * Archive, menus, camera modes, controller prompts and flight physics are unchanged. */
body.pilot-mode #v33-flight:not([hidden]) {
  display:contents!important;
  background:transparent!important; border:0!important; padding:0!important;
  box-shadow:none!important; backdrop-filter:none!important;
  width:auto!important; max-width:none!important;
}
body.pilot-mode #v33-flight-status {
  position:fixed; z-index:15;
  left:max(15px,env(safe-area-inset-left));
  bottom:max(17px,env(safe-area-inset-bottom));
  width:max-content; max-width:min(48vw,640px);
  padding:0!important; margin:0!important; border:0!important;
  background:none!important; box-shadow:none!important; backdrop-filter:none!important;
  font:600 12px/1.4 system-ui,sans-serif!important;
  color:#e5edf4!important; text-shadow:0 2px 5px #000,0 0 9px #000c!important;
  overflow-wrap:anywhere; pointer-events:none;
}
body.pilot-mode #v33-flight-speed {
  position:fixed; z-index:15;
  right:max(18px,env(safe-area-inset-right));
  bottom:max(17px,env(safe-area-inset-bottom));
  width:max-content; max-width:min(46vw,570px);
  padding:0!important; margin:0!important; border:0!important;
  background:none!important; box-shadow:none!important; backdrop-filter:none!important;
  font:700 15px/1.3 system-ui,sans-serif!important;
  text-align:right; color:#f2f9ff!important;
  text-shadow:0 2px 5px #000,0 0 9px #000c!important;
  overflow-wrap:anywhere; pointer-events:none;
}
/* Hide the verbose navigation hint/coordinates permanently in piloting view. */
body.pilot-mode #v110-location {display:none!important;}
@media(max-width:720px) {
  body.pilot-mode #v33-flight-status {
    left:max(10px,env(safe-area-inset-left));
    bottom:calc(max(12px,env(safe-area-inset-bottom)) + 44px);
    max-width:calc(100vw - 20px); font-size:10px!important;
  }
  body.pilot-mode #v33-flight-speed {
    right:max(10px,env(safe-area-inset-right));
    bottom:max(12px,env(safe-area-inset-bottom));
    max-width:calc(100vw - 20px); font-size:13px!important;
  }
}
