.reg-splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 12500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(8, 6, 24, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: reg-splash-fade 0.35s ease;
}

.reg-splash-overlay.reg-splash-out {
  animation: reg-splash-fade-out 0.28s ease forwards;
}

.reg-splash-card {
  position: relative;
  width: min(440px, 100%);
  max-height: min(92vh, 680px);
  overflow: auto;
  padding: 28px 22px 22px;
  border-radius: 22px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background:
    radial-gradient(120% 80% at 10% -10%, rgba(124, 58, 237, 0.35), transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(59, 130, 246, 0.18), transparent 50%),
    linear-gradient(165deg, #14122a 0%, #1a1638 48%, #0f0c29 100%);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5);
  color: #e8e4f8;
  text-align: center;
  animation: reg-splash-up 0.4s ease;
}

.reg-splash-preview {
  position: relative;
  width: min(220px, 58%);
  margin: 0 auto 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.35);
  box-shadow:
    0 0 0 1px rgba(15, 12, 41, 0.4),
    0 16px 40px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(124, 58, 237, 0.25);
  background: #0f0c29;
  aspect-ratio: 9 / 16;
  max-height: 38vh;
}

.reg-splash-preview-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.reg-splash-visual {
  position: relative;
  height: 72px;
  margin: 0 auto 8px;
  pointer-events: none;
}

.reg-splash-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c4b5fd, #7c3aed 55%, #4c1d95);
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.55);
  animation: reg-splash-pulse 2.4s ease-in-out infinite;
}

.reg-splash-orb--2 {
  width: 28px;
  height: 28px;
  margin: -40px 0 0 18px;
  opacity: 0.7;
  animation-delay: 0.4s;
}

.reg-splash-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 12, 41, 0.85);
  color: #cbd5e1;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.reg-splash-close:hover {
  color: #fff;
  background: rgba(30, 27, 60, 0.95);
}

.reg-splash-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a78bfa;
  font-weight: 700;
}

.reg-splash-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 4.2vw, 1.55rem);
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
}

.reg-splash-sub {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #c4b5fd;
}

.reg-splash-body {
  margin: 0 auto 20px;
  max-width: 34em;
  font-size: 14px;
  line-height: 1.55;
  color: #94a3b8;
}

.reg-splash-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.reg-splash-cta {
  width: 100%;
  min-height: 48px;
  font-weight: 700;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.reg-splash-later {
  width: 100%;
}

@media (min-width: 768px) {
  .reg-splash-card {
    width: min(520px, 92vw);
    padding: 36px 32px 28px;
  }

  .reg-splash-preview {
    width: min(200px, 42%);
    max-height: 42vh;
  }

  .reg-splash-actions {
    flex-direction: row;
    justify-content: center;
  }

  .reg-splash-cta,
  .reg-splash-later {
    width: auto;
    min-width: 140px;
  }

  .reg-splash-cta {
    flex: 1.2;
  }

  .reg-splash-later {
    flex: 0.8;
  }
}

@keyframes reg-splash-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes reg-splash-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes reg-splash-up {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes reg-splash-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.92; }
}
