/**
 * Splash Screen — MyLiveMGR
 * Печать по буквам, неон на каждой букве, две короны над y и v, 5 сек.
 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600&display=swap');

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, #0f172a 0%, #020617 40%, #0c1222 100%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
  visibility: visible;
  opacity: 1;
}

.splash-screen.splash-screen--hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.splash-container {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0.06) 100%
  );
  border: none;
  border-radius: 28px;
  padding: 2.25rem 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transform: translateZ(0);
}

/* Каждая буква — неон и появление по очереди (печать) */
.splash-logo-wrap {
  position: relative;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: clamp(1.85rem, 5.5vw, 2.75rem);
  letter-spacing: 0.03em;
}

.splash-logo-word {
  display: inline-flex;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* По одной букве появляется с задержкой */
.splash-char {
  display: inline-block;
  opacity: 0;
  color: #f8fafc;
  text-shadow:
    0 0 10px rgba(186, 230, 253, 0.9),
    0 0 22px rgba(186, 230, 253, 0.55),
    0 0 40px rgba(125, 211, 252, 0.4),
    0 0 65px rgba(56, 189, 248, 0.25),
    0 2px 2px rgba(0, 0, 0, 0.4);
  animation: splash-char-in 0.4s ease-out forwards;
  animation-delay: calc(var(--i) * 0.1s);
}

@keyframes splash-char-in {
  from {
    opacity: 0;
    transform: translateY(6px);
    text-shadow: 0 0 0 transparent;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    text-shadow:
      0 0 10px rgba(186, 230, 253, 0.9),
      0 0 22px rgba(186, 230, 253, 0.55),
      0 0 40px rgba(125, 211, 252, 0.4),
      0 0 65px rgba(56, 189, 248, 0.25),
      0 2px 2px rgba(0, 0, 0, 0.4);
  }
}

/* После появления букв — пульсация неона (только text-shadow) */
.splash-logo-wrap .splash-char {
  animation: splash-char-in 0.4s ease-out forwards, splash-neon-pulse 2s ease-in-out 1s infinite;
  animation-delay: calc(var(--i) * 0.1s), 1s;
}

@keyframes splash-neon-pulse {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(186, 230, 253, 0.9),
      0 0 22px rgba(186, 230, 253, 0.55),
      0 0 40px rgba(125, 211, 252, 0.4),
      0 0 65px rgba(56, 189, 248, 0.25),
      0 2px 2px rgba(0, 0, 0, 0.4);
  }
  50% {
    text-shadow:
      0 0 14px rgba(224, 242, 254, 0.95),
      0 0 30px rgba(186, 230, 253, 0.65),
      0 0 50px rgba(125, 211, 252, 0.5),
      0 0 80px rgba(56, 189, 248, 0.3),
      0 2px 2px rgba(0, 0, 0, 0.4);
  }
}

@media (max-width: 400px) {
  .splash-container {
    padding: 1.75rem 2rem;
  }
}
