/* Instant paint before JS — mirrors React SplashScreen */
.min-splash,
#pre-splash {
  --min-splash-bg: #0d0f14;
  --min-splash-accent: #6d83f2;
  --min-splash-text: #f4f6fb;
  --min-splash-muted: rgba(244, 246, 251, 0.62);
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--min-splash-bg);
  color: var(--min-splash-text);
  transition: opacity 0.45s ease;
}

.min-splash--out,
#pre-splash.min-splash--out {
  opacity: 0;
  pointer-events: none;
}

.min-splash__aurora,
#pre-splash .min-splash__aurora {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  overflow: hidden;
}

.min-splash__orb,
#pre-splash .min-splash__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  animation: min-splash-orb 9s ease-in-out infinite;
}

.min-splash__orb--a,
#pre-splash .min-splash__orb--a {
  width: 55vmin;
  height: 55vmin;
  top: -8%;
  left: 18%;
  background: rgba(99, 102, 241, 0.45);
}

.min-splash__orb--b,
#pre-splash .min-splash__orb--b {
  width: 42vmin;
  height: 42vmin;
  right: -6%;
  bottom: 12%;
  background: rgba(61, 90, 254, 0.35);
  animation-delay: -3s;
}

.min-splash__orb--c,
#pre-splash .min-splash__orb--c {
  width: 36vmin;
  height: 36vmin;
  left: -10%;
  bottom: -6%;
  background: rgba(45, 212, 191, 0.22);
  animation-delay: -5.5s;
}

@keyframes min-splash-orb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(4%, 6%) scale(1.06);
  }
  66% {
    transform: translate(-5%, -3%) scale(0.94);
  }
}

.min-splash__content,
#pre-splash .min-splash__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
}

.min-splash__logo-wrap,
#pre-splash .min-splash__logo-wrap {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 1.75rem;
  animation: min-splash-logo-float 4.2s ease-in-out infinite;
}

.min-splash__logo-glow,
#pre-splash .min-splash__logo-glow {
  position: absolute;
  inset: -35%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 131, 242, 0.45) 0%, transparent 68%);
  animation: min-splash-glow 2.8s ease-in-out infinite;
}

.min-splash__logo-ring,
#pre-splash .min-splash__logo-ring {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  border: 1px solid rgba(129, 140, 248, 0.35);
  animation: min-splash-ring-spin 12s linear infinite;
}

.min-splash__logo-core,
#pre-splash .min-splash__logo-core {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 1.25rem;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.35),
    0 12px 40px -8px rgba(61, 90, 254, 0.45);
  overflow: hidden;
}

.min-splash__logo-core img,
#pre-splash .min-splash__logo-core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  animation: min-splash-logo-spin 14s linear infinite;
}

@keyframes min-splash-logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes min-splash-glow {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes min-splash-ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes min-splash-logo-spin {
  to {
    transform: rotate(360deg);
  }
}

.min-splash__title,
#pre-splash h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  animation: min-splash-fade-up 0.7s ease 0.15s both;
}

.min-splash__tagline,
#pre-splash .min-splash__tagline {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--min-splash-muted);
  animation: min-splash-fade-up 0.7s ease 0.28s both;
}

.min-splash__status,
#pre-splash .min-splash__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #34d399;
  animation: min-splash-fade-up 0.7s ease 0.42s both;
}

.min-splash__dots,
#pre-splash .min-splash__dots {
  display: inline-flex;
  gap: 4px;
}

.min-splash__dots span,
#pre-splash .min-splash__dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--min-splash-accent);
  animation: min-splash-dot 1.1s ease-in-out infinite;
}

.min-splash__dots span:nth-child(2),
#pre-splash .min-splash__dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.min-splash__dots span:nth-child(3),
#pre-splash .min-splash__dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes min-splash-dot {
  0%,
  80%,
  100% {
    transform: scale(0.65);
    opacity: 0.45;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes min-splash-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.min-splash__progress,
#pre-splash .min-splash__progress {
  width: min(240px, 62vw);
  height: 3px;
  margin-top: 1.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.min-splash__progress-fill,
#pre-splash .min-splash__progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, var(--min-splash-accent), #a5b4fc);
  animation: min-splash-progress 2.6s ease-in-out infinite;
}

@keyframes min-splash-progress {
  0% {
    width: 0%;
    margin-left: 0%;
  }
  50% {
    width: 72%;
    margin-left: 0%;
  }
  100% {
    width: 28%;
    margin-left: 72%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .min-splash__orb,
  .min-splash__logo-wrap,
  .min-splash__logo-core img,
  .min-splash__logo-ring,
  .min-splash__logo-glow,
  .min-splash__progress-fill,
  #pre-splash .min-splash__orb,
  #pre-splash .min-splash__logo-wrap,
  #pre-splash .min-splash__logo-core img,
  #pre-splash .min-splash__logo-ring,
  #pre-splash .min-splash__logo-glow,
  #pre-splash .min-splash__progress-fill {
    animation: none !important;
  }
}
