/* NightGame — page liste des jeux */

.games-main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.games-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 0.5rem;
}

.games-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--violet);
  box-shadow: 0 12px 40px rgba(124, 92, 255, 0.25);
}

.game-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.game-card h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.game-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.game-soon {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: 1px dashed var(--glass-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Modale classé / non classé --- */
.hidden { display: none !important; }
.btn-small { padding: 0.45rem 1rem; font-size: 0.85rem; }
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 6, 12, 0.7);
  backdrop-filter: blur(6px);
  padding: 1.5rem;
}
.ranked-modal-box {
  background: #0e1220;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(124, 92, 255, 0.12);
}
.ranked-modal-box h3 { font-family: "Orbitron", sans-serif; font-size: 1.2rem; margin-bottom: 0.5rem; }
.ranked-modal-game { color: var(--text-muted); font-size: 1rem; margin-bottom: 1.25rem; }
.ranked-modal-box .btn { display: block; width: 100%; margin: 0.5rem 0; }
.ranked-note { display: block; font-size: 0.75rem; font-weight: 400; opacity: 0.75; }
