/* Shared by the first HTML paint and subsequent in-app loading states. */
.startup-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 44%, #171333 0%, #090f21 45%, #050b16 100%);
  color: #f4f0ff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 1;
  transition: opacity 260ms ease;
}

.startup-screen.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.startup-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 280px);
  text-align: center;
}

.startup-halo {
  position: absolute;
  top: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, #914bff24, #713bdb0d 48%, transparent 70%);
  animation: startup-glow 3s ease-in-out infinite alternate;
  pointer-events: none;
}

.startup-logo {
  position: relative;
  width: 104px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px #0008);
}

.startup-title {
  margin: 25px 0 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.startup-track {
  width: 112px;
  height: 2px;
  margin-top: 32px;
  overflow: hidden;
  border-radius: 2px;
  background: #a78bfa22;
}

.startup-track::after {
  content: "";
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #c4a5ff, transparent);
  animation: startup-travel 1.6s ease-in-out infinite;
}

.startup-caption {
  margin: 16px 0 0;
  color: #9d9ab6;
  font-size: 13px;
  letter-spacing: 0.02em;
}

@keyframes startup-travel {
  from { transform: translateX(-110%); }
  to { transform: translateX(330%); }
}

@keyframes startup-glow {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .startup-screen { transition: none; }
  .startup-halo, .startup-track::after { animation: none; }
  .startup-track::after { width: 100%; }
}
