#splash-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, #1a1a2e 0%, #0f0f23 60%, #1a1030 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.splash-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.splash-logo {
  width: 100px;
  height: auto;
  opacity: 0;
  animation: splashLogoIn 0.8s ease 0.2s forwards;
}

@keyframes splashLogoIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Splash Gradient Text */
.splash-text {
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #d62828, #ff5252);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: splashTextIn 0.6s ease 0.5s forwards;
  position: relative;
}

@keyframes splashTextIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animated loading dots */
.splash-loader {
  display: flex;
  gap: 6px;
  margin-top: 1.5rem;
}

.splash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d62828;
  animation: splashBounce 1.2s ease-in-out infinite;
}

.splash-dot:nth-child(2) {
  animation-delay: 0.15s;
  background: #e53935;
}

.splash-dot:nth-child(3) {
  animation-delay: 0.3s;
  background: #ff5252;
}

@keyframes splashBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-12px);
    opacity: 1;
  }
}

.splash-shine {
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(214, 40, 40, 0.15) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  opacity: 0.7;
  animation: splashShineMove 2s ease-in-out infinite;
}

@keyframes splashShineMove {
  0% {
    left: -50%;
  }
  100% {
    left: 150%;
  }
}

/* Fadeout class added by JS */
#splash-screen.splash-hidden {
  opacity: 0;
  visibility: hidden;
}
