/* menu.css — menú principal */

.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.25rem 3rem;
  min-height: 100dvh;
}

/* Título */
.titulo {
  font-size: clamp(2.2rem, 9vw, 4.5rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  letter-spacing: -1px;
  line-height: 1.1;
}

.titulo-sub {
  display: block;
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  font-weight: 700;
  opacity: 0.8;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* Grid de juegos */
.juegos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: 560px;
}

/* Cada card de juego */
.juego-card {
  background: var(--card-color, var(--c-puzzle));
  border-bottom: 6px solid var(--card-dark, rgba(0,0,0,0.2));
  border-radius: var(--radius-lg);
  padding: 1.75rem 1rem 1.5rem;
  text-decoration: none;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow);
  transition: transform var(--tr), box-shadow var(--tr), border-bottom-width var(--tr);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.juego-card:hover,
.juego-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
  outline: none;
}

.juego-card:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}

.juego-icono {
  font-size: clamp(2.5rem, 9vw, 4rem);
  line-height: 1;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
}

.juego-nombre {
  font-size: clamp(1rem, 4vw, 1.25rem);
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,0.2);
  line-height: 1.2;
}

.juego-nivel {
  margin-top: 0.4rem;
  background: rgba(255, 255, 255, 0.28);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Animación de entrada escalonada */
.juego-card {
  animation: pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.juego-card:nth-child(1) { animation-delay: 0.06s; }
.juego-card:nth-child(2) { animation-delay: 0.12s; }
.juego-card:nth-child(3) { animation-delay: 0.18s; }
.juego-card:nth-child(4) { animation-delay: 0.24s; }

/* Versión reducida para pantallas muy pequeñas */
@media (max-width: 380px) {
  .juegos-grid { gap: 0.85rem; }
  .juego-card  { padding: 1.25rem 0.6rem 1rem; }
}
