/* Splash / Loading Screen Styles */
#splash-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  z-index: 9999; /* Above modals and nav */
  transition: opacity 0.6s ease, visibility 0.6s ease;
  opacity: 1;
  visibility: visible;
}

#splash-screen.dark-mode {
  background: #0f1115;
}

#splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

#splash-screen .splash-inner {
  text-align: center;
  animation: pop-in 0.8s ease;
}

.splash-logo {
  width: 96px;
  height: 96px;
  animation: pulse 1.4s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0.15));
  }
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
  }
}

@keyframes pop-in {
  0% {
    transform: scale(0.85);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .splash-logo {
    animation: none;
  }
  #splash-screen {
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
}
