body {
  background: radial-gradient(circle at top, #1d4ed8 0%, #020617 60%);
  color: #f8fafc;
  font-family: "Poppins", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

.game-container {
  width: 90%;
  max-width: 520px;
  background: rgba(15,23,42,0.96);
  padding: 25px;
  border-radius: 18px;
  border: 2px solid #38bdf8;
  box-shadow: 0 0 18px #38bdf880;
  text-align: center;
}

.title {
  font-family: "Press Start 2P", system-ui;
  font-size: 18px;
  margin-bottom: 18px;
  color: #38bdf8;
  text-shadow: 0 0 6px #0ea5e9;
}

.config {
  margin-bottom: 16px;
}

.config label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.config select {
  padding: 10px;
  margin: 4px 0 8px 0;
  border-radius: 8px;
  background: #020617;
  color: #e5e7eb;
  border: 1px solid #334155;
}

.btn-start, .btn-verificar, .btn-reiniciar {
  margin-top: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #4ade80);
  border: none;
  color: #022c22;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 0 8px #22c55e80;
}

.btn-verificar {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: #eff6ff;
  box-shadow: 0 0 8px #3b82f680;
}

.btn-reiniciar {
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #fff7ed;
  box-shadow: 0 0 8px #f9731680;
}

.btn-start:hover,
.btn-verificar:hover,
.btn-reiniciar:hover {
  transform: translateY(-1px) scale(1.03);
}

.hidden {
  display: none;
}

.juego-area {
  margin-top: 14px;
}

.hud {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}

.hud-item {
  background: #020617;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid #1e293b;
}

.hud-label {
  opacity: 0.7;
  margin-right: 4px;
}

.timer-bar {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: #020617;
  border: 1px solid #1e293b;
  overflow: hidden;
  margin-bottom: 6px;
}

#timerFill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #22c55e, #eab308, #ef4444);
  transition: width 0.1s linear;
}

.combo {
  font-size: 13px;
  margin-bottom: 10px;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: #f97316;
}

.combo.active {
  opacity: 1;
  transform: scale(1.05);
}

.pregunta {
  font-size: 26px;
  margin: 12px 0 8px 0;
}

.juego-area input {
  margin-top: 6px;
  padding: 10px;
  width: 60%;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #020617;
  color: #e5e7eb;
  text-align: center;
  font-size: 18px;
}

#feedback {
  font-size: 18px;
  margin-top: 12px;
  min-height: 28px;
}

.stats {
  margin-top: 12px;
  font-size: 15px;
  display: flex;
  justify-content: space-around;
}

@media (max-width: 480px) {
  .pregunta {
    font-size: 22px;
  }

  .game-container {
    padding: 18px;
  }

  .juego-area input {
    width: 80%;
  }
}
