/* Pre-React boot screen — works before JS bundle loads */
.boot-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #07060f;
  color: #f4f4f8;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.boot-screen::before,
.boot-screen::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.35;
  pointer-events: none;
}

.boot-screen::before {
  width: min(52vw, 280px);
  height: min(52vw, 280px);
  top: 12%;
  left: -8%;
  background: #7c3aed;
  animation: boot-orb-a 5.5s ease-in-out infinite;
}

.boot-screen::after {
  width: min(44vw, 240px);
  height: min(44vw, 240px);
  bottom: 8%;
  right: -6%;
  background: #ec4899;
  animation: boot-orb-b 6.8s ease-in-out infinite;
}

.boot-screen__ring {
  position: relative;
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
  z-index: 1;
}

.boot-screen__orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(167, 139, 250, 0.85);
  border-right-color: rgba(236, 72, 153, 0.35);
  animation: boot-spin 1.15s linear infinite;
}

.boot-screen__orbit--inner {
  inset: 12px;
  border-top-color: rgba(45, 212, 191, 0.7);
  border-right-color: rgba(167, 139, 250, 0.25);
  animation-duration: 1.65s;
  animation-direction: reverse;
}

.boot-screen__core {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.14), rgba(8, 10, 18, 0.92) 70%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.15), 0 12px 40px rgba(0, 0, 0, 0.35);
  animation: boot-pulse 2.4s ease-in-out infinite;
}

.boot-screen__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: transparent;
}

.boot-screen__brand {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  z-index: 1;
}

.boot-screen__brand-hell {
  color: #fff;
}

.boot-screen__brand-o {
  color: #c084fc;
}

.boot-screen__stage {
  position: relative;
  z-index: 1;
}

.boot-screen__progress {
  position: relative;
  z-index: 1;
  width: min(11rem, 56vw);
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.boot-screen__progress-bar {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a78bfa, #f472b6, #22d3ee);
  animation: boot-progress 1.35s ease-in-out infinite;
}

.boot-screen__hint {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.48);
  z-index: 1;
}

.boot-screen__dots {
  display: inline-flex;
  gap: 0.35rem;
  margin-left: 0.15rem;
  vertical-align: middle;
}

.boot-screen__dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c084fc;
  animation: boot-dot 1.2s ease-in-out infinite;
}

.boot-screen__dots span:nth-child(2) { animation-delay: 0.15s; }
.boot-screen__dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes boot-spin {
  to { transform: rotate(360deg); }
}

@keyframes boot-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.15), 0 12px 40px rgba(0, 0, 0, 0.35); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.28), 0 16px 48px rgba(124, 58, 237, 0.22); }
}

@keyframes boot-orb-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(18px, -14px); }
}

@keyframes boot-orb-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-14px, 12px); }
}

@keyframes boot-dot {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

@keyframes boot-progress {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

@media (prefers-reduced-motion: reduce) {
  .boot-screen::before,
  .boot-screen::after,
  .boot-screen__orbit,
  .boot-screen__core,
  .boot-screen__dots span,
  .boot-screen__progress-bar {
    animation: none !important;
  }
}
