/* NightGame — Classement (mondial + amis) */

.hidden { display: none !important; }

.classement-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  position: relative;
  z-index: 2;
}
.classement-title {
  font-family: "Orbitron", sans-serif;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.classement-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.classement-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.classement-tab {
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.classement-tab:hover { color: var(--text); transform: translateY(-1px); }
.classement-tab.active {
  background: linear-gradient(90deg, var(--violet-deep), var(--violet));
  color: #fff;
  border-color: var(--violet);
  box-shadow: 0 0 18px rgba(124, 92, 255, 0.45);
}

.leaderboard {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.lb-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
}
.lb-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}
.lb-row.top1 { border-color: rgba(255, 215, 0, 0.5); background: rgba(255, 215, 0, 0.06); }
.lb-row.top2 { border-color: rgba(192, 192, 192, 0.4); background: rgba(192, 192, 192, 0.05); }
.lb-row.top3 { border-color: rgba(205, 127, 50, 0.4); background: rgba(205, 127, 50, 0.05); }
.lb-rank {
  width: 2rem;
  text-align: center;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  color: var(--text-muted);
  flex: 0 0 auto;
}
.lb-avatar-wrap { flex: 0 0 auto; }
.lb-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--violet);
}
.lb-avatar-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7c5cff, #38e1ff);
  color: #fff;
  font: 700 1.05rem/1 "Orbitron", sans-serif;
}
.lb-pseudo {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  color: #e6e9f5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-level { font-size: 0.82rem; color: var(--cyan); font-family: "Orbitron", sans-serif; flex: 0 0 auto; }
.lb-elo { font-family: "Orbitron", sans-serif; font-weight: 700; color: #e6e9f5; flex: 0 0 auto; }
.lb-wl { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; flex: 0 0 auto; }
.lb-me { color: var(--cyan); font-size: 0.8rem; }
.lb-me-row { border-color: rgba(56, 225, 255, 0.35); background: rgba(56, 225, 255, 0.05); }

/* --- Liste des rangs --- */
.ranks-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rank-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--glass-border);
  border-left-width: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}
.rank-card-icon { font-size: 1.5rem; flex: 0 0 auto; }
.rank-card-name { font-family: "Orbitron", sans-serif; font-weight: 700; font-size: 1.05rem; flex: 1; }
.rank-card-elo { color: var(--text-muted); font-size: 0.9rem; flex: 0 0 auto; }

.leaderboard-guest {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.leaderboard-guest p { margin-bottom: 1rem; }

/* Mode téléphone */
html.mode-phone .classement-tabs { flex-wrap: wrap; }
html.mode-phone .classement-tab { flex: 1; padding: 0.6rem 0.9rem; }
html.mode-phone .lb-wl { display: none; }
html.mode-phone .lb-level { font-size: 0.72rem; }
