:root {
  color-scheme: dark;
  --splash-bg: #2b292b;
  --splash-text: #ffffff;
  --splash-muted: #c8c3c6;
  --splash-orange: #ff5f12;
  --splash-pink: #ed255c;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

.splash-page {
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 53% 66%, rgba(255, 95, 18, 0.08), transparent 25rem),
    linear-gradient(180deg, #2d2b2d 0%, var(--splash-bg) 100%);
  color: var(--splash-text);
  font-family: Inter, Roboto, Arial, Helvetica, sans-serif;
}

.splash-page::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: max(10px, env(safe-area-inset-top));
  background: #3f4141;
}

.splash-shell {
  width: min(100%, 720px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(52px, env(safe-area-inset-top)) 24px max(36px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: translateY(-2vh);
}

.splash-logo {
  display: block;
  width: min(78vw, 350px);
  height: auto;
  margin-bottom: clamp(34px, 6vh, 58px);
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.18));
  animation: splash-logo-in 520ms ease-out both;
}

.splash-copy h1 {
  margin: 0;
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.splash-copy p {
  margin: 14px 0 0;
  color: var(--splash-muted);
  font-size: clamp(15px, 2.6vw, 18px);
  line-height: 1.35;
}

.splash-progress {
  width: min(78vw, 376px);
  height: 5px;
  margin-top: clamp(34px, 5vh, 42px);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.splash-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--splash-pink), var(--splash-orange));
  animation: splash-progress 1.35s ease-in-out infinite;
}

.splash-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.splash-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  animation: splash-dot 1.05s ease-in-out infinite;
}

.splash-dots span:nth-child(2) {
  background: var(--splash-orange);
  animation-delay: 140ms;
}

.splash-dots span:nth-child(3) {
  animation-delay: 280ms;
}

@keyframes splash-logo-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes splash-progress {
  0% { transform: translateX(-115%); }
  55% { transform: translateX(105%); }
  100% { transform: translateX(245%); }
}

@keyframes splash-dot {
  0%, 70%, 100% { opacity: 0.45; transform: scale(0.9); }
  35% { opacity: 1; transform: scale(1.18); }
}

@media (max-width: 480px) {
  .splash-shell {
    padding-inline: 20px;
    transform: translateY(-1vh);
  }

  .splash-logo {
    width: min(84vw, 310px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-logo,
  .splash-progress span,
  .splash-dots span {
    animation: none;
  }

  .splash-progress span {
    width: 68%;
  }
}
