.fx-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--fx-splash-bg, #0a0034);
  background-image: url('../../images/GradientBG.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 1;
  transition: opacity 420ms ease;
}

.fx-splash--hidden {
  opacity: 0;
  pointer-events: none;
}

.fx-splash-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(74, 237, 196, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 237, 196, 0.35) 1px, transparent 1px);
  background-size: 32px 32px;
}

.fx-splash-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.fx-splash-particle {
  position: absolute;
  border-radius: 999px;
  animation-name: fxSplashFloat;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.fx-splash-radial {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 360px;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(74, 237, 196, 0.08) 0%, transparent 70%);
}

.fx-splash-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 0 24px;
}

.fx-splash-ring-wrap {
  position: relative;
}

.fx-splash-ring {
  width: 128px;
  height: 128px;
  border-radius: 999px;
  border: 3px solid #4aedc4;
  background: rgba(74, 237, 196, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.72);
  opacity: 0;
  animation:
    fxSplashRingIn 520ms cubic-bezier(0.19, 1, 0.22, 1) 60ms forwards,
    fxSplashRingPulse 2.6s ease-in-out 620ms infinite;
}

.fx-splash-ring-glow {
  position: absolute;
  inset: -16px;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(74, 237, 196, 0.15) 0%, transparent 70%);
}

.fx-splash-monogram {
  width: 128px;
  height: 128px;
  object-fit: contain;
  transform: scale(0.84);
  opacity: 0;
  animation: fxSplashMonogramIn 520ms ease-out 160ms forwards;
}

.fx-splash-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.fx-splash-logo {
  width: min(82vw, 290px);
  height: auto;
  object-fit: contain;
  animation: fxSplashLogoIn 560ms ease-out 120ms both;
}

.fx-splash-line-wrap {
  width: min(66vw, 240px);
  overflow: hidden;
}

.fx-splash-line {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, #4aedc4, transparent);
  transform: translateX(-100%);
  animation: fxSplashSweep 800ms ease-out 680ms forwards;
}

.fx-splash-dots {
  position: absolute;
  bottom: 48px;
  display: flex;
  gap: 7px;
}

.fx-splash-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #4aedc4;
}

.fx-splash-dot:nth-child(1) {
  animation: fxSplashPulse 1.5s ease-in-out 0s infinite;
}

.fx-splash-dot:nth-child(2) {
  animation: fxSplashPulse 1.5s ease-in-out 0.3s infinite;
}

.fx-splash-dot:nth-child(3) {
  animation: fxSplashPulse 1.5s ease-in-out 0.6s infinite;
}

@keyframes fxSplashFloat {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-120vh) scale(1.2);
    opacity: 0;
  }
}

@keyframes fxSplashMonogramIn {
  0% {
    transform: scale(0.84);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fxSplashRingIn {
  0% {
    transform: scale(0.72);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fxSplashLogoIn {
  0% {
    transform: translateY(8px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fxSplashSweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes fxSplashRingPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 237, 196, 0.28);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(74, 237, 196, 0.08);
  }
}

@keyframes fxSplashPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (max-width: 420px) {
  .fx-splash-ring,
  .fx-splash-monogram {
    width: 112px;
    height: 112px;
  }
}
