/* game.css — estructura compartida por todas las páginas de juego */

body.game-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ── Header ── */
.game-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.btn-volver {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font);
  font-weight: 900;
  font-size: 1.1rem;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  transition: background var(--tr);
  flex-shrink: 0;
}
.btn-volver:hover { background: rgba(255,255,255,0.32); }

.game-titulo {
  font-size: clamp(1rem, 4vw, 1.3rem);
  font-weight: 900;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nivel-badge {
  background: var(--accent, var(--c-puzzle));
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-weight: 900;
  font-size: 0.9rem;
  cursor: default;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
  transition: transform 0.1s;
}
/* Feedback visual al hacer click (para el truco) */
.nivel-badge:active { transform: scale(0.94); }

/* ── Área de juego ── */
.game-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  overflow: auto;
}

/* ── Footer ── */
.game-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.18);
  flex-wrap: wrap;
}

.btn-accion {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 44px;
  transition: transform var(--tr), box-shadow var(--tr);
  background: rgba(255, 255, 255, 0.88);
  color: var(--dark);
  box-shadow: var(--shadow-sm);
}
.btn-accion:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-accion:active { transform: translateY(1px); }

.btn-siguiente {
  background: var(--c-sort);
  color: var(--white);
}

/* ── Placeholder "en construcción" ── */
.proximamente {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0.6;
  text-align: center;
}
.proximamente .prox-icono {
  font-size: 5rem;
  animation: bounce-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.proximamente p {
  font-size: 1.2rem;
  font-weight: 700;
}

/* ── Responsive ── */
@media (max-width: 380px) {
  .game-footer { gap: 0.5rem; }
  .btn-accion  { font-size: 0.9rem; padding: 0.6rem 1rem; }
}
