/* The original black-hole scene, confined to the dark palette. */
html:root[data-sirinova-theme="dark"] body.sirinova-ambient {
  --ambient-paper:#07090d;
  --ambient-surface:#171a20;
  --ambient-panel:#292c33;
  --ambient-panel-soft:#20232a;
  --ambient-line:#666971;
  --ambient-ink:#f4f2ed;
  --ambient-muted:#c8c9cd;
  --ambient-gold:#f0d6a3;
  background:#07090d !important;
  background-image:none !important;
}
html[data-sirinova-theme="dark"] .sirinova-ambient .ambient-header {
  background:linear-gradient(110deg,#090b10f7,#181b21f7) !important;
  border-color:#ffffff24;
}
.legacy-cosmos-scene {display:none;pointer-events:none;}
.light-cosmos-scene {display:none;pointer-events:none;}
html[data-sirinova-theme="light"] .observatory-hero .light-cosmos-scene {display:block;position:absolute;inset:0;z-index:-3;overflow:hidden;background:#f6f7f7;}
.light-cosmos-image {position:absolute;inset:0 2% 0 auto;width:48%;height:100%;object-fit:contain;object-position:center;}
.light-cosmos-scene::after {content:"";position:absolute;inset:0;background:linear-gradient(0deg,#f7f8f9 0%,#f7f8f9ad 14%,transparent 36%),radial-gradient(ellipse at 50% 52%,#ffffff9c,transparent 55%);}
.legacy-background-stars {display:none;}
html[data-sirinova-theme="dark"] .sirinova-ambient > .legacy-background-stars {display:block;position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;}
.legacy-background-stars i,.legacy-cosmos-stars i {position:absolute;display:block;width:var(--star-size);height:var(--star-size);border-radius:50%;background:#fff;box-shadow:0 0 5px 1px #fffc,0 0 12px #fff9;animation:legacy-star-twinkle var(--star-duration) ease-in-out var(--star-delay) infinite;}
html[data-sirinova-theme="dark"] .observatory-hero .legacy-cosmos-scene {
  display:block;position:absolute;inset:0;z-index:-3;overflow:hidden;background:#000;
}
.legacy-cosmos-video {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;}
.legacy-play-control {position:absolute;z-index:5;right:24px;top:22px;padding:10px 16px;border:1px solid #fff9;border-radius:999px;background:#111722eb;color:#fff;font:600 13px/1.3 sans-serif;cursor:pointer;}
.legacy-play-control[hidden] {display:none;}
.legacy-play-control:focus-visible {outline:3px solid #fff;outline-offset:3px;}
.legacy-cosmos-scene::after {content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 58%,#000b 0%,#0007 28%,transparent 62%),linear-gradient(90deg,#000e8 0%,#000a 32%,transparent 76%),linear-gradient(0deg,#07090d 0%,transparent 27%,#0003 100%);}
html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .olympus-shade {background:transparent;}
.legacy-cosmos-stars {position:absolute;inset:0;z-index:1;pointer-events:none;}
@keyframes legacy-star-twinkle {0%,100%{opacity:.12;transform:translate3d(0,0,0) scale(.55)}25%{opacity:1;transform:translate3d(3px,-4px,0) scale(1.35)}55%{opacity:.25;transform:translate3d(6px,-8px,0) scale(.8)}75%{opacity:.95;transform:translate3d(3px,-4px,0) scale(1.2)}}
html[data-sirinova-theme="dark"] .sirinova-sparkles {--sparkle-outline:#fff;--sparkle-glow:#ffffffbf;color:#fff;}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 html[data-sirinova-theme="dark"] .sirinova-ambient :is(.feature-card,.alevel-cover-card,.store-book,.journal-card,.library-action) {transition:transform .32s cubic-bezier(.2,.8,.2,1),box-shadow .32s ease,border-color .32s ease;}
 html[data-sirinova-theme="dark"] .sirinova-ambient :is(.feature-card,.alevel-cover-card,.store-book,.journal-card,.library-action):hover {transform:translateY(-7px);box-shadow:0 16px 32px #0009,0 0 24px #ffffff1c;}
}
@media(max-width:700px){
 .legacy-cosmos-video{object-position:center}
 .legacy-cosmos-scene::after{background:radial-gradient(ellipse at 50% 53%,#000b,transparent 75%),linear-gradient(0deg,#07090d 0%,#000a 30%,#0006 65%,#0005 100%)}
 html[data-sirinova-theme="dark"] .sirinova-ambient .observatory-hero .olympus-copy{bottom:calc(9% + 48px)}
}
@media(prefers-reduced-motion:reduce){.legacy-cosmos-stars i,.legacy-background-stars i{animation:none;opacity:.45}.legacy-cosmos-video{display:none}.legacy-cosmos-scene{background:#000 url('/cosmos-portrait-v1.jpg') center/contain no-repeat !important}}
@media(prefers-reduced-motion:reduce){html.cosmos-motion-allowed .legacy-cosmos-video{display:block}}
