/* A bounded, decorative intro; the actual loading/error states stay in main. */
.startup-splash {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: var(--bg, #111115);
  pointer-events: none;
  contain: layout paint;
  animation: startup-splash-exit 130ms cubic-bezier(.2, 0, .2, 1) 280ms forwards;
}
.startup-splash[hidden] {
  display: none !important;
}
.startup-splash__content {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 28px;
  transform: translateY(-12px);
}
.startup-splash__mark {
  position: relative;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
}
.startup-splash__mark::before {
  content: "";
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: radial-gradient(circle, #a74cff24, #a74cff00 70%);
  animation: startup-splash-halo 380ms ease-out both;
}
.startup-splash__logo {
  position: relative;
  display: block;
  width: 220px;
  height: 220px;
  object-fit: contain;
  /* The layer is released when the short intro finishes. */
  will-change: transform, opacity;
  animation: startup-splash-logo 310ms cubic-bezier(.16, 1, .3, 1) both;
}
.startup-splash__name {
  color: var(--text, #f4f2fb);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.02em;
  animation: startup-splash-name 210ms ease-out 45ms both;
}
.startup-splash__track {
  width: 44px;
  height: 3px;
  margin-top: 1px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--accent-soft, #3b2458);
}
.startup-splash__track::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8c3dff, #d99bff);
  transform-origin: left center;
  animation: startup-splash-progress 280ms cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes startup-splash-logo {
  from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.83) rotate(-5deg); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(0); }
}
@keyframes startup-splash-name {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes startup-splash-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes startup-splash-halo {
  from { opacity: .25; transform: scale(.8); }
  to { opacity: 1; transform: scale(1.06); }
}
@keyframes startup-splash-exit {
  to { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .startup-splash {
    display: none;
    animation: none;
  }
  .startup-splash *,
  .startup-splash *::before,
  .startup-splash *::after {
    animation: none !important;
  }
}
