/* The browser and both native shells use this stage. */
.nex-splash-page, .nex-splash {
  --launch-night: #020714;
  --launch-blue: #31b9ff;
  --launch-gold: #ffc477;
  --launch-silver: #eaf3ff;
  color: var(--launch-silver);
  background:
    radial-gradient(ellipse at 38% 40%, #082655aa, transparent 54%),
    radial-gradient(ellipse at 68% 51%, #5530184a, transparent 38%),
    var(--launch-night);
  font-family: system-ui, 'Segoe UI', sans-serif;
}
.nex-splash-page { display: grid; min-height: 100vh; margin: 0; place-items: center; }
.nex-splash { display: none; }
html[data-splash] .nex-splash {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity .36s ease;
}
html[data-splash] .nex-splash.is-leaving { opacity: 0; pointer-events: none; }
.nex-splash-stage { display: grid; justify-items: center; gap: clamp(10px, 4vh, 26px); padding: 12px; text-align: center; }
.nex-splash-mark {
  position: relative;
  width: min(62vw, 54vh, 258px);
  aspect-ratio: 1;
  border-radius: 22%;
  isolation: isolate;
  background: #04102a;
  box-shadow: -20px 5px 70px #006bff4a, 20px 12px 58px #e48a3130, 0 24px 66px #0009;
  animation: nex-launch-rise .85s cubic-bezier(.2,.75,.25,1) both;
}
.nex-splash-mark img { display: block; width: 100%; height: 100%; border-radius: inherit; }
.nex-splash-mark::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  content: '';
  background: linear-gradient(118deg, transparent 40%, #9eeaff4d 48%, #fff5dc66 51%, transparent 60%) 110% 0 / 280% 100% no-repeat;
  box-shadow: inset 0 0 0 1px #c6dcff2b;
  animation: nex-launch-sweep .95s ease-in-out .48s both;
}
.nex-splash-word {
  padding-inline-start: .28em;
  font-size: clamp(1.04rem, 5vw, 1.72rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .28em;
  animation: nex-launch-rise .65s ease-out .43s both;
}
.nex-splash-line {
  width: min(70%, 176px);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--launch-blue) 28%, var(--launch-gold) 72%, transparent);
  box-shadow: 0 0 16px #31b9ff77;
  animation: nex-launch-line .73s ease-out .86s both;
}
.nex-splash-status { margin: 0; color: #aabbd7; font-size: .8rem; }
.nex-splash-status:empty { display: none; }
@keyframes nex-launch-rise {
  from { opacity: 0; transform: translateY(12px) scale(.94); }
  to { opacity: 1; transform: none; }
}
@keyframes nex-launch-sweep {
  from { background-position: 110% 0; }
  to { background-position: -10% 0; }
}
@keyframes nex-launch-line {
  from { opacity: 0; transform: scaleX(.2); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nex-splash-stage *, .nex-splash-mark::after { animation: none; }
  html[data-splash] .nex-splash { transition: none; }
}
html:is([data-motion="off"], [data-saver="on"]) .nex-splash-stage *,
html:is([data-motion="off"], [data-saver="on"]) .nex-splash-mark::after { animation: none; }
html[data-motion="off"] .nex-splash, html[data-saver="on"] .nex-splash { transition: none; }
