body {
  background-color: #f4f9ff;
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
}

.contenedor-arcade {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px;
  text-align: center;
}

.titulo-juego {
  font-size: 2rem;
  color: #0d47a1;
  margin-bottom: 15px;
}

.info-juego {
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.fraccion-objetivo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2e7d32;
}

.puntaje {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1565c0;
}

.btn-reiniciar {
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #0d47a1;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-reiniciar:hover {
  background-color: #1565c0;
}

.zona-juego {
  position: relative;
  width: 100%;
  height: 400px;
  border: 2px dashed #90caf9;
  border-radius: 10px;
  background: linear-gradient(to bottom, #e3f2fd, #ffffff);
  overflow: hidden;
}

.bloque-fraccion {
  position: absolute;
  padding: 12px 18px;
  background-color: #ffffff;
  border: 2px solid #0d47a1;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.bloque-fraccion:hover {
  background-color: #e3f2fd;
  transform: scale(1.05);
}

.bloque-seleccionado {
  background-color: #c8e6c9 !important;
  border-color: #2e7d32;
}

.feedback {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: 500;
  color: #2e7d32;
}

.animar-entrada {
  animation: zoomIn 0.3s ease;
}

.animar-salida {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes zoomIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

.botones-dificultad {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
}

.btn-dificultad {
  padding: 10px 16px;
  font-size: 1rem;
  background-color: #e3f2fd;
  color: #0d47a1;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-dificultad:hover {
  background-color: #bbdefb;
}

.btn-dificultad.seleccionado {
  background-color: #0d47a1;
  color: white;
  border-color: #0d47a1;
}

.mensaje-final {
  font-size: 1.4rem;
  color: #2e7d32;
  background-color: #e8f5e9;
  padding: 12px 20px;
  border: 2px solid #81c784;
  border-radius: 8px;
  margin-top: 20px;
  font-weight: 600;
  animation: aparecer 0.4s ease-in-out;
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.barra-inferior {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.barra-inferior .puntaje {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

.barra-inferior .btn-reiniciar {
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
}
