/* ── SPLASH SCREEN ── */
#splashOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: all;
  overflow: hidden;
}

.splash-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: #0a0a0a;
  transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}
.splash-left  { left: 0; }
.splash-right { right: 0; }

.splash-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  z-index: 2;
  opacity: 0;
  animation: splashLogoIn 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s forwards;
  pointer-events: none;
  text-align: center;
}

.splash-logo img {
  width: min(240px, 58vw);
  height: auto;
  filter: drop-shadow(0 0 32px rgba(232,160,32,0.35));
}

@keyframes splashLogoIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.82); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1);    }
}

/* Open state: panels slide apart */
#splashOverlay.splash-open .splash-left  { transform: translateX(-100%); }
#splashOverlay.splash-open .splash-right { transform: translateX(100%);  }
#splashOverlay.splash-open .splash-logo  {
  animation: splashLogoOut 0.4s ease forwards;
}

@keyframes splashLogoOut {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1);    }
  to   { opacity: 0; transform: translate(-50%, -50%) scale(1.08); }
}

/* Thin golden line in the center seam */
#splashOverlay::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(232,160,32,0.5);
  transform: translateX(-50%);
  z-index: 3;
  transition: opacity 0.3s ease;
}
#splashOverlay.splash-open::before { opacity: 0; }
