/* Genesis 0.9.8.1 · visual layer only, no physics or account changes. */
:root{--cine-blue:#9bc5ff;--cine-line:#7497ce50;--cine-ease:cubic-bezier(.22,.75,.22,1)}
.fc-dialog.fc-intro,.fc-dialog.fc-load{background:#050a14;isolation:isolate;overflow:auto}
.fc-dialog[data-fc-scene=explore]{--fc-poster:url('assets/first-contact/explore.webp')}
.fc-dialog[data-fc-scene=social]{--fc-poster:url('assets/first-contact/social.webp')}
.fc-dialog[data-fc-scene=sim]{--fc-poster:url('assets/first-contact/sim.webp')}
.fc-dialog[data-fc-scene=login]{--fc-poster:url('assets/first-contact/login.webp')}
.fc-intro::before,.fc-load::before{content:'';position:fixed;inset:0;background:#050a14 var(--fc-poster,none) center/cover no-repeat;z-index:-3;pointer-events:none}
.fc-intro::after,.fc-load::after{content:'';position:fixed;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(90deg,#050914ed 0%,#050914bf 37%,#05091428 100%),linear-gradient(0deg,#050914d9,transparent 35%,transparent 68%,#050914ad)}
.fc-dialog>.fc-video{position:fixed;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:0;z-index:-2;opacity:0;transition:opacity .55s ease;pointer-events:none}
.fc-dialog>.fc-video.fc-video-ready{opacity:1}.fc-intro .fc-stars,.fc-intro .fc-nebula,.fc-load .fc-stars,.fc-load .fc-nebula{z-index:-2;opacity:.16}
.fc-intro .fc-shell{min-height:100%;width:min(1360px,100%);padding:clamp(24px,5vw,76px)}
.fc-intro .fc-top{justify-content:flex-start}.fc-intro .fc-brand{margin-right:auto}.fc-intro .fc-intro-grid{display:flex;align-items:center;min-height:45vh;justify-content:flex-start}.fc-intro .fc-visual{display:none}.fc-intro .fc-copy{max-width:min(620px,100%);text-shadow:0 2px 18px #000b}.fc-intro h2{font-size:clamp(42px,7vw,94px);line-height:1.01;margin-bottom:22px}.fc-intro .fc-description{color:#f0f5ff;max-width:34em;font-size:clamp(16px,1.8vw,22px)}.fc-intro .fc-kicker{color:#badbff}.fc-intro .fc-dots button{height:5px;width:45px}.fc-intro .fc-actions button{background:#0b1528dc}.fc-intro .fc-actions .fc-primary{background:#3765a9}.fc-intro .fc-quiet{background:#091423e0}.fc-intro footer{color:#d0def3}
.fc-copy-enter{animation:cine-copy .48s var(--cine-ease) both}.fc-copy-enter .fc-description{animation:cine-copy .55s .07s var(--cine-ease) both}.fc-copy-enter .fc-actions{animation:cine-copy .5s .13s var(--cine-ease) both}
.fc-load::after{background:radial-gradient(ellipse at center,#04091088,#040910b8 72%),linear-gradient(0deg,#030711d9,transparent 40%)}.fc-load .fc-loading-inner{position:relative;width:min(620px,calc(100% - 32px));padding:clamp(20px,4vw,48px);background:#091323b5;border:1px solid #8aadd34d;border-radius:24px;box-shadow:0 25px 100px #0007}.fc-load .fc-spinner{width:95px;height:95px;margin-bottom:22px}.fc-load h2{font-size:clamp(30px,5vw,51px);text-wrap:balance}.fc-load .fc-loading-line{height:4px}.fc-load .fc-loading-line i{box-shadow:0 0 15px #8cbeff}.fc-load .fc-loading-inner{animation:cine-copy .4s var(--cine-ease) both}
.cx-landing{background:#07101e url('assets/first-contact/explore.webp') center top/cover fixed no-repeat!important;position:relative;isolation:isolate}.cx-landing::before{content:'';position:fixed;inset:0;background:linear-gradient(90deg,#050b16ed,#050b16ba 60%,#050b168a),linear-gradient(0deg,#07101e,transparent 70%);z-index:-1;pointer-events:none}.cx-landing .cx-welcome{position:relative;z-index:0}.cx-landing .cx-card{background:#101b2aef;border-color:#7899c65e;box-shadow:0 20px 70px #0006;animation:cine-copy .48s var(--cine-ease) both}.cx-landing .cx-intro{animation:cine-copy .5s var(--cine-ease) both}.cx-landing .cx-public{background:#0b1423f2;position:relative}.cx-landing [data-fc-motion]{margin-left:14px}
/* Native dialog lifecycle stays synchronous; CSS transitions are progressive enhancement. */
body.ux-ready dialog:not(.fc-dialog)[open]{animation:cine-dialog .24s var(--cine-ease) both}body.ux-ready dialog:not(.fc-dialog)::backdrop{animation:cine-backdrop .22s ease both}
@supports (transition-behavior:allow-discrete){body.ux-ready dialog:not(.fc-dialog){animation:none;opacity:0;scale:.985;transition:opacity .19s ease,scale .19s ease,display .19s allow-discrete,overlay .19s allow-discrete}body.ux-ready dialog:not(.fc-dialog)[open]{animation:none;opacity:1;scale:1}body.ux-ready dialog:not(.fc-dialog):not([open]){pointer-events:none}body.ux-ready dialog:not(.fc-dialog)::backdrop{animation:none;opacity:0;transition:opacity .19s ease,display .19s allow-discrete,overlay .19s allow-discrete}body.ux-ready dialog:not(.fc-dialog)[open]::backdrop{opacity:1}body.ux-ready dialog:not(.fc-dialog):not([open])::backdrop{pointer-events:none}@starting-style{body.ux-ready dialog:not(.fc-dialog)[open]{opacity:0;scale:.985}body.ux-ready dialog:not(.fc-dialog)[open]::backdrop{opacity:0}}}
/* Animated scene entrances are limited to UI wrappers, not the WebGL canvas. */
body.ux-ready #missionRoot:not([hidden]) .mc-hero-copy,body.ux-ready #missionRoot:not([hidden]) .ux-home{animation:cine-copy .3s var(--cine-ease) both}
body.ux-ready .ux-item,body.ux-ready .ux-home-card,body.ux-ready .ux-nav-primary,body.ux-ready .ux-shortcuts button{transition:background .18s,border-color .18s,box-shadow .18s,translate .18s}
body.ux-ready .ux-item:hover,body.ux-ready .ux-home-card:hover{translate:0 -2px;box-shadow:0 8px 26px #0003}
body.ux-ready .ux-home-card{isolation:isolate;position:relative;overflow:hidden;min-height:156px;background:#111f32;justify-content:flex-end}.ux-home-card::before{content:'';position:absolute;inset:0;z-index:-2;background:var(--ux-card-image,none) center/cover;opacity:.47;transition:opacity .2s,scale .3s}.ux-home-card::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#08101ff5,#08101fb8 46%,#08101f28)}.ux-home-card:hover::before{opacity:.68;scale:1.04}.ux-home-card[data-ux-category=explore]{--ux-card-image:url('assets/first-contact/explore.webp')}.ux-home-card[data-ux-category=simulate]{--ux-card-image:url('assets/first-contact/sim.webp')}.ux-home-card[data-ux-category=play]{--ux-card-image:url('assets/first-contact/social.webp')}.ux-home-card[data-ux-category=learn]{--ux-card-image:url('assets/first-contact/explore.webp')}.ux-home-card[data-ux-category=personal]{--ux-card-image:url('assets/first-contact/login.webp')}.ux-home-card .ux-symbol{font-size:22px}.ux-home-card .ux-home-link{margin-top:5px}.ux-utility{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}.ux-directory .ux-item{animation:cine-copy .2s var(--cine-ease) both}.ux-directory .ux-item:nth-child(2){animation-delay:.025s}.ux-directory .ux-item:nth-child(3){animation-delay:.05s}.ux-directory .ux-catalog-toggle{border-color:#7296cc;background:#1a3352}
body.ux-ready[data-astro-ux-mode=discovery] .top .nav>.ux-nav-primary{display:none}body.ux-ready[data-astro-ux-mode=expert] .top .nav>.ux-friends-nav{display:none}body.ux-ready[data-astro-ux-mode=discovery] .top #currentModule{display:none}body.ux-ready .ux-friends-nav{background:#1b3354;border-color:#46658d}.ux-ready .top #modulesBtn{background:#284e80;color:#f0f5ff}.ux-ready .top .nav #cxOpen{white-space:nowrap}
@keyframes cine-copy{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}@keyframes cine-dialog{from{opacity:0;scale:.985}to{opacity:1;scale:1}}@keyframes cine-backdrop{from{opacity:0}to{opacity:1}}
@media(max-width:750px){.fc-intro .fc-shell{padding:20px;gap:14px}.fc-intro .fc-top{gap:7px}.fc-intro .fc-brand{width:100%;margin-bottom:4px}.fc-intro .fc-intro-grid{min-height:50vh;align-items:flex-end}.fc-intro h2{font-size:clamp(38px,11vw,62px)}.fc-intro::after{background:linear-gradient(0deg,#050914fa,#050914af 58%,#0509144d)}.fc-load .fc-loading-inner{border-radius:16px}.cx-landing{background-attachment:scroll!important}.ux-utility{margin-left:0}.ux-ready .ux-home-card{min-height:140px}.ux-ready .top .nav>.ux-friends-nav{display:none}}
@media(prefers-reduced-motion:reduce){.fc-dialog,.fc-dialog *, .fc-dialog::before,.fc-dialog::after,.cx-landing .cx-card,.cx-landing .cx-intro,body.ux-ready dialog,body.ux-ready dialog::backdrop,body.ux-ready .ux-home,body.ux-ready .mc-hero-copy,body.ux-ready .ux-item,body.ux-ready .ux-home-card,body.ux-ready .ux-home-card::before{animation:none!important;transition:none!important;translate:none!important;scale:none!important}.fc-dialog>.fc-video{display:none!important}}
html[data-astro-motion=off] .fc-dialog,html[data-astro-motion=off] .fc-dialog *,html[data-astro-motion=off] .fc-dialog::before,html[data-astro-motion=off] .fc-dialog::after,html[data-astro-motion=off] .cx-card,html[data-astro-motion=off] .cx-intro,html[data-astro-motion=off] body.ux-ready dialog,html[data-astro-motion=off] body.ux-ready dialog::backdrop,html[data-astro-motion=off] .ux-home,html[data-astro-motion=off] .mc-hero-copy,html[data-astro-motion=off] .ux-item,html[data-astro-motion=off] .ux-home-card,html[data-astro-motion=off] .ux-home-card::before{animation:none!important;transition:none!important;translate:none!important;scale:none!important}html[data-astro-motion=off] .fc-dialog>.fc-video{display:none!important}
.fc-intro[open],.fc-load[open]{animation:cine-backdrop .32s ease both}
@media(prefers-reduced-motion:reduce){.fc-intro[open],.fc-load[open]{animation:none!important}}html[data-astro-motion=off] :is(.fc-intro,.fc-load)[open]{animation:none!important}
body.ux-ready :is(#deepRoot,#sandboxRoot,#journeyRoot,#stellarRoot,#academyRoot,#obsRoot,#personalRoot,#trackerRoot,#eclipseRoot,#dataRoot,#liveRoot,#gravityRoot,#extremeRoot,#proRoot).active{animation:cine-scene .26s ease both}@keyframes cine-scene{from{opacity:.35}to{opacity:1}}@media(prefers-reduced-motion:reduce){body.ux-ready :is(#deepRoot,#sandboxRoot,#journeyRoot,#stellarRoot,#academyRoot,#obsRoot,#personalRoot,#trackerRoot,#eclipseRoot,#dataRoot,#liveRoot,#gravityRoot,#extremeRoot,#proRoot).active{animation:none!important}}html[data-astro-motion=off] body.ux-ready :is(#deepRoot,#sandboxRoot,#journeyRoot,#stellarRoot,#academyRoot,#obsRoot,#personalRoot,#trackerRoot,#eclipseRoot,#dataRoot,#liveRoot,#gravityRoot,#extremeRoot,#proRoot).active{animation:none!important}
.fc-tutorial::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#08101ff2,#08101fbc),var(--fc-poster,none) center/cover;pointer-events:none;z-index:-3;opacity:.8}
@supports (transition-behavior:allow-discrete){.fc-dialog{animation:none!important;opacity:0;transition:opacity .2s ease,display .2s allow-discrete,overlay .2s allow-discrete}.fc-dialog[open]{opacity:1}.fc-dialog:not([open]){pointer-events:none}.fc-dialog:not([open])::backdrop{pointer-events:none}@starting-style{.fc-dialog[open]{opacity:0}}}
