/* --- ЗАСТАВКА (SPLASH SCREEN) --- */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #2c2c2c;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  color: white;
  /* Блокируем все взаимодействия */
  pointer-events: auto;
  /* Гарантируем, что заставка поверх всего */
  position: fixed;
  width: 100vw;
  height: 100vh;
}

.splash-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ===================================================== */
/* СТАРЫЕ СТИЛИ ЭМОДЗИ КОШЕЛЬКА (ЗАКОММЕНТИРОВАНЫ) */
/* ===================================================== */

.splash-logo {
  font-size: 80px;
  animation: coin-spin 2s linear infinite;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

/* ===================================================== */
/* НОВЫЕ СТИЛИ SVG АНИМАЦИИ ОГНЯ */
/* ===================================================== */

.splash-logo-fire {
  width: 120px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 30px rgba(255, 107, 53, 0.6));
}

.splash-logo-fire svg {
  width: 100%;
  height: auto;
  position: relative;
}

/* Анимация основного пламени */
.flame-main {
  animation-name: flameWobble;
  animation-duration: 5s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.flame-main.one {
  animation-duration: 6s;
  animation-delay: 1s;
}

.flame-main.two {
  animation-duration: 5s;
  animation-delay: 2s;
}

.flame-main.three {
  animation-duration: 4s;
  animation-delay: 3s;
}

.flame-main.four {
  animation-duration: 5.5s;
  animation-delay: 4s;
}

.flame-main.five {
  animation-duration: 4.5s;
  animation-delay: 5s;
}

/* Анимация искр */
.flame {
  animation-name: flamefly;
  animation-duration: 4s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  opacity: 0;
  transform-origin: 50% 50% 0;
}

.flame.one {
  animation-delay: 1s;
  animation-duration: 5s;
}

.flame.two {
  animation-duration: 7s;
  animation-delay: 1s;
}

/* Ключевые кадры анимации */
@keyframes flameWobble {
  50% {
    transform: scale(1,1.2) translate(0, -30px) rotate(-2deg);
  }
}

@keyframes flamefly {
  0%{
    transform: translate(0) rotate(180deg);
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(-20px, -100px) rotate(180deg);
    opacity: 0;
  }
}

.splash-text {
  font-size: 28px;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.splash-version {
  font-size: 14px;
  font-weight: 400;
  color: #cccccc;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  margin-top: 5px;
}

.splash-debug {
  font-size: 12px;
  font-weight: 400;
  color: #888888;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  margin-top: 3px;
}

.splash-script-status {
  font-size: 11px;
  font-weight: 400;
  color: #666666;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  margin-top: 2px;
}

/* Анимация вращения монетки */
@keyframes coin-spin {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* Плавное появление/исчезновение */
#splash-screen {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

#splash-screen.hidden {
  opacity: 0;
  pointer-events: none;
  z-index: -1 !important;
  display: none !important;
} 