/* Menú de juegos - Versión simple que SÍ funciona */

#gamesMenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  
  /* OCULTO por defecto */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  
  /* Animación suave */
  transition: opacity 0.3s, visibility 0.3s;
  
  /* Centrar contenido */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Cuando tiene clase 'show', se muestra */
#gamesMenu.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.games-menu-card {
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  overflow: hidden;
}

.games-menu-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  color: white;
  font-size: 13px;
  letter-spacing: 2px;
}

.close-menu-btn {
  background: transparent;
  border: none;
  color: #666;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
}

.close-menu-btn:hover {
  color: white;
}

.games-grid {
  padding: 24px;
  display: grid;
  gap: 12px;
}

.game-option {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  color: white;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s;
}

.game-option:hover {
  border-color: var(--accent-red);
  background: rgba(30, 30, 30, 0.9);
  transform: translateX(4px);
}

.game-icon {
  font-size: 42px;
  flex-shrink: 0;
}

.game-info {
  flex: 1;
}

.game-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.game-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 600px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .game-option {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }
  
  .game-icon {
    font-size: 48px;
    margin-bottom: 8px;
  }
}