.astral-home,.astral-sky{display:none}
html.astral-interface{background:#080f23!important;color-scheme:dark}
html.astral-interface body{background:radial-gradient(ellipse at 70% 25%,#172f48aa,transparent 60%),radial-gradient(ellipse at 15% 85%,#29213a77,transparent 50%),#080f23!important;color:#e8e2d3!important;--paper:#080f23;--ink:#e8e2d3;--line:#ba9c6355;font-family:Georgia,serif!important;isolation:isolate}
html.astral-interface body::before,html.astral-interface body::after{display:none!important}
html.astral-interface .astral-sky{display:block;position:fixed;inset:0;z-index:-1;pointer-events:none;width:100vw;height:100vh;filter:none!important}
html.astral-interface body .frame{background:none!important;border-color:#b59a6238!important}
html.astral-interface .frame::before,html.astral-interface .frame::after,html.astral-interface .orbit-background,html.astral-interface .page-index,html.astral-interface .annotation,html.astral-interface .senti-living-background,html.astral-interface .race-stars{display:none!important}
html.astral-interface body :is(h1,h2,h3){font-family:Georgia,serif!important;font-weight:normal!important;color:#e5c991!important;letter-spacing:.05em!important;line-height:1.3!important;overflow-wrap:anywhere}
html.astral-interface body :is(p,a,button,span,small,strong,figcaption){color:inherit}
html.astral-interface .frame>header{border-bottom:1px solid #b59a6238;padding-bottom:20px}
html.astral-interface .brand{color:#e5c991!important}
html.astral-interface :is(button,input,.outline-button){color:#e8e2d3!important;background:#0b162c88!important;border-color:#b59a6277!important}
html.astral-interface a:hover,html.astral-interface button:hover{color:#f7dca6!important}
html.astral-interface :is(a,button):focus-visible{outline:2px solid #e5c991;outline-offset:5px}
html.astral-interface .hero,html.astral-interface .home-discover{display:none!important}
html.astral-interface .astral-home{display:block;max-width:1250px;margin:25px auto 40px;padding:0 28px}
html.astral-interface .astral-heading{text-align:center;position:relative;z-index:1}
html.astral-interface .astral-heading>p:first-child{font-size:10px;letter-spacing:.35em;color:#bda77d}
html.astral-interface .astral-heading h1{position:static!important;transform:none!important;white-space:normal!important;padding:0!important;font-size:clamp(32px,4vw,62px)!important;margin:20px 0 14px}
html.astral-interface .astral-heading>p:last-child{font-size:16px;color:#b0bdcf}
html.astral-interface .astral-chart{height:510px;position:relative;margin:20px 0}
html.astral-interface .astral-chart>svg{position:absolute;width:480px;max-width:55%;height:430px;left:50%;top:15px;transform:translateX(-50%);color:#bea16a;opacity:.85;pointer-events:none}
html.astral-interface .astral-chart .orbit{transform-origin:300px 210px;animation:astral-orbit 40s linear infinite}.astral-chart .reverse{animation-direction:reverse!important;stroke-dasharray:50 15;opacity:.6}
html.astral-interface .astral-world{position:absolute;display:flex;flex-direction:column;gap:10px;text-decoration:none;width:245px;padding:24px 20px 24px 42px;border-bottom:1px solid #b59a6255;background:linear-gradient(90deg,#101e3399,transparent);transition:background .3s,transform .3s}
html.astral-interface .astral-world::before{content:'';position:absolute;left:12px;top:33px;width:6px;height:6px;border-radius:50%;background:#f7dca6;box-shadow:0 0 15px #e5c991,0 0 40px #e5c99166}
html.astral-interface .astral-world strong{font:22px Georgia,serif;color:#e5c991}.astral-world small{font-size:10px;letter-spacing:.16em;color:#b0bdcf}
html.astral-interface .astral-world:hover{transform:translateY(-4px);background:#1b304b99}
html.astral-interface .astral-world:nth-of-type(1){left:0;top:65px}html.astral-interface .astral-world:nth-of-type(2){right:0;top:65px}html.astral-interface .astral-world:nth-of-type(3){left:4%;top:310px}html.astral-interface .astral-world:nth-of-type(4){right:4%;top:310px}
html.astral-interface .hub-heading,html.astral-interface .atlas-heading{position:static!important;text-align:left!important;margin:15px 0 30px!important}
html.astral-interface .atlas-main{height:auto!important;min-height:0!important;padding:20px 5% 40px!important}
html.astral-interface .atlas-heading h1{font-size:clamp(28px,3vw,46px)!important}
html.astral-interface .atlas-map{position:static!important;transform:none!important;animation:none!important;scale:1!important;width:100%!important;height:auto!important;min-height:0!important;padding:0!important}
html.astral-interface .atlas-map>#galaxy,html.astral-interface .atlas-map canvas[data-scene]{display:block!important;position:relative!important;inset:auto!important;transform:none!important;translate:none!important;width:100%!important;height:300px!important;min-height:0!important;filter:invert(1) sepia(.6)!important;opacity:.9}
html.astral-interface .atlas-ring{display:none!important}.astral-interface .atlas-back{position:static!important;display:inline-block;margin-bottom:15px}
html.astral-interface .atlas-categories{position:static!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
html.astral-interface .atlas-node{position:static!important;transform:none!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;text-align:left!important;width:auto!important;padding:24px!important;border:1px solid #b59a6244;background:linear-gradient(140deg,#172941aa,#0a142899);border-radius:3px}
html.astral-interface .node-icon{background:transparent!important;border-color:#b59a6288!important;color:#e5c991!important;width:52px!important;height:52px!important}.astral-interface .node-copy{text-align:left!important}.astral-interface .node-copy small{color:#b0bdcf!important}
html.astral-interface :is(.breadcrumbs,.dossier-heading,.caste-heading,.race-intro,.dossier-index,.race-sidebar,.dossier-section,.caste-card,.caste-entry,.archive-section,.species-controls,.caste-neighbors,.dossier-pending){background:#0c192cbb!important;border-color:#b59a6244!important;border-radius:4px!important;color:#e8e2d3!important;box-shadow:none!important}
html.astral-interface :is(.dossier-section,.race-intro,.caste-card,.archive-section,.caste-lead) :is(p,span,small,a){color:#c9d2df!important}
html.astral-interface .breadcrumbs{padding:12px 16px!important}.astral-interface .dossier-index a{color:#e5c991!important}.astral-interface .archive-main>p,.astral-interface .archive-status{color:#b0bdcf!important}
html.astral-interface :is(.race-orbit,.dossier-portrait-orbit){--orbit-light:#e5c991!important;border-color:#b59a6266!important}
html.astral-interface main canvas:not(#galaxy){filter:sepia(.6)!important}
html.astral-interface .hub-grid canvas{filter:invert(1) sepia(.6)!important}
html.astral-interface .universe-main>#galaxy{filter:invert(1) sepia(.6)!important}
html.astral-interface #retro-exit{background:#0c192cee!important;color:#e5c991!important;border-color:#b59a6277!important;font:12px Georgia,serif!important;bottom:16px;z-index:10006}
html.astral-interface #site-search,html.astral-interface #panel{background:#0b182de8!important;color:#e8e2d3!important;border-color:#b59a6277!important;box-shadow:0 15px 70px #0007}
html.astral-interface #terminal-query,html.astral-interface .terminal-result,html.astral-interface #search-status{color:#e8e2d3!important}
.astral-opening{background:radial-gradient(circle at center,#263e59,#080f23 70%)!important;color:#e5c991!important;text-align:center;align-items:center;overflow:hidden}
.astral-opening p,.astral-opening pre{font-family:Georgia,serif!important;color:#e8dfca!important;position:relative;z-index:1;line-height:2}
.astral-opening::before{content:'';position:absolute;width:70vmin;height:70vmin;border:1px solid #bda16b66;border-radius:50%;background:radial-gradient(circle at 50% 0,#fff0cd 0 3px,transparent 5px),radial-gradient(circle at 90% 75%,#fff0cd 0 3px,transparent 5px);box-shadow:0 0 0 55px #bda16b0a,0 0 0 110px #bda16b08;animation:astral-orbit 16s linear infinite;opacity:.7}
.astral-opening .retro-boot-progress{position:relative;z-index:1;background:#bda16b33}.astral-opening .retro-boot-progress i{background:#e5c991;box-shadow:0 0 15px #e5c991}
@keyframes astral-orbit{to{transform:rotate(360deg)}}
.nav-veil.astral-flight{opacity:0;background:radial-gradient(ellipse at center,#243e5b,#080f23 65%)!important;transition:opacity .5s;display:grid;place-items:center;overflow:hidden}.nav-veil.astral-flight.show{opacity:1}
.astral-flight::before{content:'';position:absolute;left:12%;top:65%;width:7px;height:7px;border-radius:50%;background:#fff4d8;box-shadow:0 0 25px 8px #e5c99177,0 0 80px 20px #a9c4e244;opacity:0}.astral-flight.show::before{animation:astral-guide 1.4s ease-in-out forwards}
.astral-flight::after{content:'';position:absolute;left:15%;top:50%;width:70%;height:1px;background:linear-gradient(90deg,transparent,#c7aa7066,transparent);transform:rotate(-12deg)}
.astral-flight-label{position:relative;z-index:1;margin-top:160px;text-align:center;max-width:80%;font:clamp(20px,3vw,36px)/1.5 Georgia,serif!important;color:#e5c991!important}
@keyframes astral-guide{0%{opacity:0;transform:translate(0,0) scale(.3)}30%{opacity:1}80%,100%{left:50%;top:45%;opacity:1;transform:scale(2);box-shadow:0 0 60px 20px #e5c99155,0 0 150px 70px #a9c4e244}}
body.paused .astral-chart .orbit,body.paused .astral-opening::before{animation-play-state:paused}
@media(max-width:900px){html.astral-interface .astral-chart{height:auto;padding-top:300px;display:grid;grid-template-columns:1fr 1fr;gap:14px}html.astral-interface .astral-chart>svg{top:0;width:340px;max-width:90%;height:290px}html.astral-interface .astral-world{position:relative!important;inset:auto!important;width:auto;padding:20px 16px 20px 34px}.astral-interface .astral-world strong{font-size:18px!important}html.astral-interface .atlas-categories{grid-template-columns:1fr 1fr}}
@media(max-width:550px){html.astral-interface .astral-home{padding:0 8px}html.astral-interface .astral-chart{grid-template-columns:1fr}html.astral-interface .atlas-categories{grid-template-columns:1fr}html.astral-interface .astral-heading>p:last-child{font-size:14px}html.astral-interface .atlas-main{padding:12px!important}html.astral-interface #retro-exit{font-size:10px!important}}
@media(prefers-reduced-motion:reduce){html.astral-interface .astral-chart .orbit,.astral-opening::before{animation:none!important}}
html.astral-interface .astral-chart>svg.astral-connections{inset:0;transform:none;width:100%;max-width:none;height:100%;opacity:.24;stroke-dasharray:4 8}
@media(max-width:900px){html.astral-interface .astral-chart>svg.astral-connections{display:none}}

.astral-flight::after{display:none}.astral-flight.show::before{animation:astral-varied-flight 1.4s cubic-bezier(.35,.05,.25,1) forwards}
@keyframes astral-varied-flight{0%{left:var(--flight-x0);top:var(--flight-y0);opacity:0;transform:scale(.4)}20%{opacity:1}55%{left:var(--flight-x1);top:var(--flight-y1);transform:scale(1.3);opacity:1}85%,100%{left:var(--flight-x2);top:var(--flight-y2);opacity:1;transform:scale(2);box-shadow:0 0 65px 24px #e5c99166,0 0 160px 85px #a9c4e233}}
