/* public/css/inicio.css — Estilos específicos del mini-juego Elfo Runner */
.juego-layout {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.juego-cabecera {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 2px solid var(--primario);
}

.titulo-seccion h1 {
  margin: 0;
  font-size: 1.6rem;
  color: #4ade80;
  letter-spacing: .5px;
}

.titulo-seccion p {
  margin: .3rem 0 0;
  font-size: .9rem;
}

.marcador-vivo {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  background: #0f172a;
  padding: .6rem 1.2rem;
  border-radius: 10px;
  border: 1px solid var(--borde);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--suave);
}

.stat-valor {
  font-size: 1.2rem;
  font-weight: 800;
  color: #f8fafc;
}

.stat-valor.monedas {
  color: #facc15;
}

.stat-valor.orcos {
  color: #f87171;
}

.stat-valor.vidas {
  letter-spacing: 2px;
  font-size: 1rem;
}

.lienzo-contenedor {
  position: relative;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #090d16;
  border: 2px solid #22c55e;
}

#gameCanvas {
  display: block;
  width: 100%;
  max-width: 850px;
  height: auto;
  aspect-ratio: 850 / 400;
  background: #0b1324;
  outline: none;
}

.pantalla-superpuesta {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.overlay-contenido {
  text-align: center;
  max-width: 480px;
  padding: 1.5rem;
}

.overlay-contenido h2 {
  margin-top: 0;
  color: #4ade80;
}

.overlay-contenido p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.btn-grande {
  font-size: 1.15rem;
  padding: .85rem 2rem;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.controles-tactiles {
  display: none;
  width: 100%;
  padding: .8rem 1rem;
  background: #0f172a;
  border-top: 1px solid var(--borde);
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 768px) {
  .controles-tactiles {
    display: flex;
  }
}

.btn-tactil {
  flex: 1;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 10px;
  border: 1px solid var(--borde);
  background: #1e293b;
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
}

.btn-tactil:active {
  background: #334155;
  transform: scale(0.97);
}

.btn-tactil.btn-atacar {
  background: #b91c1c;
  border-color: #ef4444;
}

.resumen-partida {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  background: #0f172a;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  border: 1px solid var(--borde);
}

.resumen-columna {
  display: flex;
  flex-direction: column;
}

.resumen-columna span {
  font-size: .85rem;
  color: var(--suave);
}

.resumen-columna strong {
  font-size: 1.2rem;
  color: #4ade80;
}

.puntos-badge {
  background: #14532d;
  color: #86efac;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 6px;
  display: inline-block;
}

.text-center {
  text-align: center;
}
