/* ============================================================
   NÉBULANIME — Écran de lancement (splash)
   Identique à nebulafr.site : voile noir pur plein écran, logo snake/katana
   qui surgit, nom "NébulAnime", et barre de progression violette.
   ============================================================ */

.splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: #000000;
  opacity: 1;
  transition: opacity .45s cubic-bezier(.4, 0, .2, 1);
  animation: nbl-splash-auto .5s ease 2.8s forwards;
}

.splash.is-leaving {
  opacity: 0;
  pointer-events: none;
}

html.nb-splash-seen .splash {
  display: none;
}

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

.splash-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  animation: nbl-splash-pop .55s cubic-bezier(.4, 0, .2, 1) both;
}

.splash-name {
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: nbl-splash-up .5s cubic-bezier(.4, 0, .2, 1) .12s both;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
  text-transform: uppercase;
}

.splash-name .logo-part-violet {
  color: #8b5cf6;
}

.splash-bar {
  display: block;
  width: 190px;
  height: 3.5px;
  margin-top: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.splash-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
  animation: nbl-splash-fill 1.15s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes nbl-splash-pop {
  0% { opacity: 0; transform: scale(.82); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes nbl-splash-up {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: none; }
}

@keyframes nbl-splash-fill {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes nbl-splash-auto {
  to { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .splash-logo,
  .splash-name,
  .splash-bar > span { animation: none !important; }
  .splash-bar > span { width: 100%; }
}
