.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(1.25rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 38, 82, 0.28), transparent 18rem),
    radial-gradient(circle at 18% 18%, rgba(242, 198, 109, 0.16), transparent 20rem),
    radial-gradient(circle at 86% 82%, rgba(255, 43, 91, 0.18), transparent 22rem),
    linear-gradient(145deg, #100414 0%, #21071d 38%, #3b0b21 72%, #120414 100%);
  color: var(--text);
  transition:
    opacity var(--dur-slow) var(--ease-standard),
    visibility var(--dur-slow) var(--ease-standard);
}

.splash-screen::before {
  position: absolute;
  inset: -18%;
  content: "";
  background:
    conic-gradient(from 110deg at 50% 50%, transparent 0deg, rgba(255, 42, 84, 0.18) 42deg, transparent 95deg, rgba(242, 198, 109, 0.14) 142deg, transparent 218deg, rgba(255, 75, 108, 0.14) 285deg, transparent 360deg);
  opacity: 0.62;
  filter: blur(18px);
  animation: splash-aurora 8s linear infinite;
}

.splash-screen::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.8), transparent 74%);
  opacity: 0.25;
  pointer-events: none;
}

html.splash-is-hidden .splash-screen,
html.splash-is-hiding .splash-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-bg-logo {
  position: absolute;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0.08;
  filter: blur(1px) saturate(1.08);
}

.splash-bg-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.splash-bg-logo-one {
  width: min(62vw, 640px);
  height: min(62vw, 640px);
  inset-block-start: -11%;
  inset-inline-start: -8%;
  animation: splash-bg-float-one 6.8s ease-in-out infinite;
}

.splash-bg-logo-two {
  width: min(50vw, 480px);
  height: min(50vw, 480px);
  inset-block-end: -13%;
  inset-inline-end: -7%;
  opacity: 0.07;
  animation: splash-bg-float-two 7.4s ease-in-out infinite;
}

.splash-ribbons {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
}

.splash-ribbon,
.splash-heart-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.splash-ribbon {
  stroke: url("#splash-red-gold");
  stroke-width: 2.8;
  stroke-dasharray: 440 1320;
  filter: drop-shadow(0 0 16px rgba(255, 49, 90, 0.54));
  animation: splash-ribbon-flow 2.7s ease-in-out infinite;
}

.splash-ribbon-two {
  stroke-width: 2;
  stroke-dasharray: 320 1140;
  opacity: 0.68;
  animation-delay: 0.35s;
}

.splash-heart-path {
  stroke: url("#splash-soft-red");
  stroke-width: 1.8;
  stroke-dasharray: 920;
  stroke-dashoffset: 920;
  opacity: 0.44;
  filter: drop-shadow(0 0 20px rgba(255, 47, 95, 0.48));
  animation: splash-heart-draw 2.2s ease-in-out infinite;
}

.splash-heart-two {
  transform-origin: 50% 40%;
  opacity: 0.25;
  animation-delay: 0.42s;
}

.splash-card {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(92vw, 440px);
  justify-items: center;
  gap: clamp(0.82rem, 2vw, 1.15rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: clamp(28px, 5vw, 44px);
  padding: clamp(1.25rem, 4vw, 2rem);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 236, 177, 0.15), transparent 14rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(242, 198, 109, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(24px);
  animation: splash-card-rise 720ms var(--ease-standard) both;
}

.splash-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(132px, 28vw, 190px);
  height: clamp(132px, 28vw, 190px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.72), transparent 18%),
    linear-gradient(140deg, #ff2c58, #e62047 46%, #f6c76c);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 0 10px rgba(255, 47, 95, 0.08),
    0 0 54px rgba(255, 47, 95, 0.56),
    0 24px 60px rgba(0, 0, 0, 0.44);
  overflow: visible;
  animation: splash-logo-breathe 1.9s ease-in-out infinite;
}

.splash-logo::before,
.splash-logo::after,
.splash-logo-halo {
  position: absolute;
  inset: -14px;
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.splash-logo::before {
  border: 1px solid rgba(255, 88, 120, 0.42);
  animation: splash-logo-ring 2.2s ease-out infinite;
}

.splash-logo::after {
  inset: -26px;
  border: 1px solid rgba(242, 198, 109, 0.28);
  animation: splash-logo-ring 2.2s 0.45s ease-out infinite;
}

.splash-logo-halo {
  inset: -42px;
  background:
    conic-gradient(from 0deg, transparent, rgba(255, 43, 91, 0.42), rgba(242, 198, 109, 0.34), transparent 62%);
  opacity: 0.68;
  filter: blur(10px);
  animation: splash-halo-spin 4.8s linear infinite;
}

.splash-logo-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 82%;
  height: 82%;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.34);
}

.splash-copy {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  text-align: center;
}

.splash-kicker {
  margin: 0;
  color: #ffd2da;
  font-size: clamp(0.72rem, 2vw, 0.82rem);
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.splash-wordmark {
  margin: 0;
  color: #fff7fb;
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 11vw, 5.2rem);
  line-height: 0.92;
  text-shadow:
    0 0 28px rgba(255, 45, 91, 0.32),
    0 8px 34px rgba(0, 0, 0, 0.38);
}

.splash-subtitle {
  margin: 0;
  color: rgba(255, 235, 241, 0.78);
  font-size: clamp(0.92rem, 2.5vw, 1.06rem);
  font-weight: 800;
}

.splash-progress {
  position: relative;
  width: min(280px, 64vw);
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  box-shadow:
    inset 0 1px 4px rgba(0, 0, 0, 0.32),
    0 10px 28px rgba(0, 0, 0, 0.18);
}

.splash-progress span {
  display: block;
  width: 48%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #ff2f5f, #fff0b8 48%, #ff436f);
  box-shadow:
    0 0 18px rgba(255, 47, 95, 0.58),
    0 0 28px rgba(242, 198, 109, 0.26);
  animation: splash-progress 1.6s infinite var(--ease-standard);
}

.splash-orbit {
  position: absolute;
  inset: 50% auto auto 50%;
  width: clamp(230px, 42vw, 360px);
  height: clamp(230px, 42vw, 360px);
  translate: -50% -52%;
  pointer-events: none;
}

.splash-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  animation: splash-pulse 2.2s infinite var(--ease-standard);
}

.splash-ring-one {
  border-color: rgba(255, 47, 95, 0.34);
}

.splash-ring-two {
  border-color: rgba(242, 198, 109, 0.28);
  animation-delay: 0.32s;
}

.splash-ring-three {
  border-color: rgba(255, 132, 154, 0.24);
  animation-delay: 0.64s;
}

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

@keyframes splash-pulse {
  0% {
    opacity: 0.74;
    transform: scale(0.56);
  }
  100% {
    opacity: 0;
    transform: scale(1.42);
  }
}

@keyframes splash-aurora {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.06); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes splash-bg-float-one {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-8deg) scale(1); }
  50% { transform: translate3d(1.2rem, 1rem, 0) rotate(-2deg) scale(1.03); }
}

@keyframes splash-bg-float-two {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(12deg) scale(1); }
  50% { transform: translate3d(-1rem, -1.2rem, 0) rotate(5deg) scale(1.04); }
}

@keyframes splash-ribbon-flow {
  0% {
    stroke-dashoffset: 1320;
    opacity: 0;
  }
  18% { opacity: 0.85; }
  100% {
    stroke-dashoffset: -380;
    opacity: 0;
  }
}

@keyframes splash-heart-draw {
  0% {
    stroke-dashoffset: 920;
    transform: scale(0.96);
    opacity: 0;
  }
  38% { opacity: 0.42; }
  72% {
    stroke-dashoffset: 0;
    opacity: 0.22;
  }
  100% {
    stroke-dashoffset: -260;
    transform: scale(1.04);
    opacity: 0;
  }
}

@keyframes splash-card-rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes splash-logo-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@keyframes splash-logo-ring {
  0% {
    opacity: 0.72;
    transform: scale(0.86);
  }
  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

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

@media (max-width: 520px) {
  .splash-card {
    width: min(92vw, 360px);
    padding-block: 1.25rem 1.35rem;
  }

  .splash-bg-logo-one {
    width: 92vw;
    height: 92vw;
    inset-block-start: -16%;
    inset-inline-start: -34%;
  }

  .splash-bg-logo-two {
    width: 76vw;
    height: 76vw;
    inset-block-end: -16%;
    inset-inline-end: -28%;
  }

  .splash-ribbon {
    stroke-width: 2.2;
  }

  .splash-heart-path {
    stroke-width: 1.4;
  }
}

@media (max-height: 620px) {
  .splash-card {
    gap: 0.65rem;
    padding: 1rem;
  }

  .splash-logo {
    width: clamp(108px, 24vh, 142px);
    height: clamp(108px, 24vh, 142px);
  }

  .splash-wordmark {
    font-size: clamp(2.25rem, 10vh, 3.7rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-screen::before,
  .splash-bg-logo,
  .splash-ribbon,
  .splash-heart-path,
  .splash-card,
  .splash-logo,
  .splash-logo::before,
  .splash-logo::after,
  .splash-logo-halo,
  .splash-progress span,
  .splash-ring {
    animation: none;
  }
}
