#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(229, 9, 20, 0.12), transparent 28%),
    radial-gradient(circle at 50% 110%, rgba(37, 99, 235, 0.12), transparent 42%),
    #07101f;
  color: #fff;
  transition: opacity 500ms ease, visibility 500ms ease;
}

#splash-screen::before,
#splash-screen::after {
  position: absolute;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

#splash-screen::before {
  width: min(72vw, 620px);
  aspect-ratio: 1;
  box-shadow: 0 0 80px rgba(229, 9, 20, 0.08);
}

#splash-screen::after {
  width: min(48vw, 420px);
  aspect-ratio: 1;
  border-color: rgba(255, 255, 255, 0.04);
}

.splash-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: min(90vw, 420px);
  text-align: center;
  animation: splash-content-in 8000ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.splash-logo-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(132px, 30vw, 182px);
  aspect-ratio: 1;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.025));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: perspective(700px) rotateX(4deg) rotateY(-5deg);
  animation: splash-logo-present 2200ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.splash-logo-frame::after {
  position: absolute;
  inset: 12px;
  content: "";
  border-radius: 22%;
  box-shadow: 0 0 42px rgba(229, 9, 20, 0.22);
  pointer-events: none;
}

.splash-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 78%;
  height: 78%;
  border-radius: 20%;
  object-fit: contain;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.35));
}

.splash-logo-fallback {
  position: absolute;
  display: none;
  place-items: center;
  width: 78%;
  height: 78%;
  border-radius: 20%;
  background: linear-gradient(145deg, #ef4444, #9f0712 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.splash-logo-fallback.is-visible { display: grid; }

.splash-fallback-mark {
  font-size: clamp(52px, 13vw, 82px);
  font-weight: 800;
  letter-spacing: -0.06em;
  text-shadow: 0 5px 0 rgba(80, 0, 0, 0.3);
}

.splash-kicker {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.splash-title {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 8vw, 48px);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-indent: 0.12em;
  animation: splash-title-in 800ms 700ms ease both;
}

.splash-title span { color: #ef4444; }

#splash-screen.is-exiting { opacity: 0; visibility: hidden; }

@keyframes splash-content-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes splash-logo-present {
  from { opacity: 0; transform: perspective(700px) rotateX(12deg) rotateY(-14deg) scale(0.82); }
  to { opacity: 1; transform: perspective(700px) rotateX(4deg) rotateY(-5deg) scale(1); }
}

@keyframes splash-title-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .splash-content,
  .splash-logo-frame,
  .splash-title { animation: none; }
}