/* ===================== ESTILOS ESPECÍFICOS VIEW-GAME ===================== */
/* Nota: Estilos base (fonts, reset, body, animaciones comunes) están en yonunca_base.css */

/* ===================== CONTAINER ESPECÍFICO GAME ===================== */
#view-game .container {
  text-align: center;
  color: white;
  padding: 20px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  width: 80%;
  position: relative;
  margin-top: 5vh;
  margin-bottom: 0;
}

/* ===================== LOTTIE CONTAINER ESPECÍFICO GAME ===================== */
#view-game #lottie-container {
  width: 60vw;
  height: 5vh;
  background-color: rgba(240, 240, 240, 0);
  border-radius: 1.5vh;
  position: fixed;
  transform: translateX(-50%);
  bottom: 10vh;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: zoomInOut 4s ease-in-out infinite;
  display: inline-block;
  z-index: 5;
}

/* ===================== CONTENEDOR PARA LOTTIE Y PLAY/PAUSE ===================== */
/* Contenedor wrapper para posicionar el Lottie y el botón juntos */
#view-game .lottie-controls-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  margin-top: 6vh;
  margin-bottom: 1vh;
  position: relative;
  z-index: 5;
}

#view-game #lottie-container-game {
  width: 60vw;
  height: 5vh;
  background-color: rgba(240, 240, 240, 0);
  border-radius: 1.5vh;
  position: relative;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: zoomInOut 4s ease-in-out infinite;
  display: inline-block;
  flex-shrink: 0;
}

/* ===================== LOGO CONTAINER ESPECÍFICO GAME ===================== */
/* Logo container único para game - sin herencia */
.logo-container_game {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  margin: 0 auto;
  /* La visibilidad se controla desde spa_transitions.css cuando la vista está activa */
  /* La animación moveUpDown se controla desde spa_transitions.css */
}

/* Logo visible cuando la vista está activa o entrando */
#view-game.spa-view.active .logo-container_game,
#view-game.spa-view.entering .logo-container_game {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Logo único para game - sin herencia */
.logo_game {
  margin-top: 2vh;
  margin-bottom: 4vh;
  width: 40vw;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  display: block;
  font-size: 8vw;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  opacity: 1; /* Logo siempre opaco, el contenedor controla la visibilidad */
  /* La animación se aplica al logo-container, no al logo */
}

/* ===================== FRASE ESPECÍFICA GAME ===================== */
#view-game .phrase {
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

#view-game .phrase.enter {
  animation: fadeIn 0.8s ease forwards;
}

#view-game .phrase.exit {
  animation: fadeOut 0.8s ease forwards;
}

#view-game .phrase p {
  font-size: 4vw;
  font-weight: bold;
  color: white;
  margin-bottom: 4vh;
  margin-top: 6vh;
  font-family: 'ChauPhilomeneOne-Italic', sans-serif;
  letter-spacing: 0.3vw;
  text-shadow: 0.1vw 0.1vw 0.2vw rgb(244, 29, 29), -0.1vw -0.1vw 0.2vw rgb(0, 255, 255);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  line-height: 1.2;
}

/* ===================== BOTÓN PLAY/PAUSE ESPECÍFICO GAME ===================== */
#view-game .play-pause-btn {
  background: linear-gradient(90deg, #2563eb 60%, #38bdf8 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 3em;
  height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(56,189,248,0.10);
  transition: background 0.2s, transform 0.1s;
  position: relative;
  flex-shrink: 0;
  z-index: 10;
}

#view-game .play-pause-btn:hover { 
  transform: scale(1.04); 
}

#view-game .play-pause-icon { 
  width: 1.2em; 
  height: 1.2em; 
  object-fit: contain; 
}

/* ===================== BOTÓN REINICIAR ESPECÍFICO GAME ===================== */
#view-game .reiniciar {
  position: fixed !important;
  bottom: 3em !important;
  left: 2.5em !important;
  padding: 0.7em 1.6em;
  background: linear-gradient(90deg, #ef4444 60%, #fca5a5 100%);
  color: #fff;
  border: none;
  border-radius: 1.5em;
  font-family: 'ChauPhilomeneOne-Italic', sans-serif;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(239,68,68,0.18);
  cursor: pointer;
  z-index: 1200;
  transition: background 0.2s, transform 0.1s;
  width: auto !important;
  max-width: none !important;
  min-width: auto !important;
}

#view-game .reiniciar:hover {
  background: linear-gradient(90deg, #b91c1c 60%, #f87171 100%);
  transform: scale(1.05);
}

/* ===================== ICONO ESPECÍFICO GAME ===================== */
#view-game .icon {
  position: absolute;
  bottom: 20px;
  right: 20px;
}

#view-game .icon img {
  width: 5vw;
  height: auto;
}

/* ===================== TÍTULO ESPECÍFICO GAME ===================== */
#view-game .title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 40px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  #view-game .reiniciar {
    bottom: 3em;
    left: 1em;
    padding: 0.6em 1.4em;
    font-size: 0.9em;
  }
}
