:root {
  --primary: #0e9343;
  --secondary: #09834c;
  --light: #f5fdf7;
  --white: #ffffff;
  --accent: #f16565;
  --text: #063c24;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  overflow: hidden;
  background-color: var(--light);
}

.screen {
  display: none;
  width: 100%;
  height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.screen.is-active {
  display: flex;
}

/* --- ESCENARIOS --- */
#screen-home {
  background-image: url('fondo-letras.png');
}

#screen-game {
  background-image: url('fondo-juego.png');
}

#screen-final {
  background-image: url('fondo-juego.png');
}

/* CONTENIDO DEL JUEGO */
.game-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -60px;
}

/* BOTÓN PRINCIPAL */
.main-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1.5rem 4rem;
  border-radius: 50px;
  font-size: 1.8rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(14, 147, 67, 0.4);
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.main-btn:hover {
  transform: scale(1.1);
  background: var(--secondary);
}

/* PANTALLA FINAL */
.final-card {
  background: transparent;
  padding: 2.5rem;
  text-align: center;
  max-width: 90%;
  box-shadow: none;
}

.final-card h2 {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  text-shadow: 0 0 15px white;
}

.final-card p {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.stats {
  margin-bottom: 2rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 0 10px white;
}

/* PROGRESO */
.progress-container {
  position: absolute;
  top: 30px;
  width: 70%;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 20px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 5px;
}

#progress-fill {
  width: 20%;
  height: 100%;
  background: var(--primary);
  transition: width 0.4s ease;
}

#progress-text {
  font-weight: 700;
  color: var(--primary);
}

/* 🔥 IMAGEN SIN CUADRADO (CLAVE) */
.image-box {
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;

  /* ELIMINAMOS TODO LO QUE GENERABA EL CUADRADO */
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 0;
}

.image-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: transparent;
}

/* TEXTO */
.instruction {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 15px white;
}

/* BOTONES RESPUESTA */
.answers-container {
  display: flex;
  gap: 25px;
}

.answer-btn {
  width: 110px;
  height: 110px;
  background: var(--white);
  border: 4px solid var(--primary);
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.answer-text {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary);
}

.answer-btn:active {
  transform: scale(0.9);
}

/* FEEDBACK */
.correct {
  background-color: var(--primary) !important;
}

.correct .answer-text {
  color: white !important;
}

.wrong {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
}

.wrong .answer-text {
  color: white !important;
}
