body fuse-splash-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  background: #ffffff; /* plain white background */
  color: #0f172a;
  z-index: 999999;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo with floating animation */
body fuse-splash-screen img {
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.6));
  animation: logoFloat 3s ease-in-out infinite;
}

/* Cinematic Shimmering Project Name */
body fuse-splash-screen h1 {
  margin-top: 24px;
  font-size: 1.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: linear-gradient(
    115deg,
    #1e3a8a 0%,
    #3b82f6 20%,
    #60a5fa 45%,
    #93c5fd 60%,
    #2563eb 80%,
    #1e3a8a 100%
  );
  background-size: 300% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2.5s linear infinite, fadeIn 1.2s ease-in-out;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.25),
               0 0 20px rgba(37, 99, 235, 0.15);
}

/* Double Spinner (outer + inner) */
body fuse-splash-screen .spinner {
  position: relative;
  margin-top: 40px;
  width: 60px;
  height: 60px;
}

body fuse-splash-screen .spinner::before,
body fuse-splash-screen .spinner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 4px solid transparent;
}

body fuse-splash-screen .spinner::before {
  inset: 0;
  border-top-color: #3b82f6;
  border-right-color: rgba(59, 130, 246, 0.6);
  animation: spin 1.1s linear infinite;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

body fuse-splash-screen .spinner::after {
  inset: 8px;
  border-bottom-color: #60a5fa;
  border-left-color: rgba(59, 130, 246, 0.5);
  animation: spinReverse 1.6s linear infinite;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
}

/* Animations */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes spinReverse {
  to { transform: rotate(-360deg); }
}
@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Disable scroll while loading */
body:not(.fuse-splash-screen-hidden) {
  overflow: hidden;
}

/* Hide splash screen when loaded */
body.fuse-splash-screen-hidden fuse-splash-screen {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}
