/* =====================================================================
   TCG des Potes — styles propres à la version en ligne
   ===================================================================== */

/* Le bouton Admin n'apparaît que pour l'admin */
.nav-admin { display: none; }
body.est-admin .nav-admin { display: inline-flex; }

#pseudo-joueur { font-weight: 600; color: var(--text); }

/* ---------- Écran de connexion ---------- */
.ecran-connexion {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 80% 50% at 15% -5%, rgba(139,92,246,.16) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 88% 8%, rgba(201,168,64,.10) 0%, transparent 55%),
    var(--bg);
  padding: 16px;
}
.cx-boite {
  width: 100%; max-width: 360px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 18px;
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.cx-logo { display: flex; align-items: center; gap: 10px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 20px; color: var(--gold-hi); justify-content: center; }
.cx-onglets { display: flex; gap: 6px; background: rgba(0,0,0,.25); padding: 4px; border-radius: 10px; }
.cx-onglet {
  flex: 1; border: 0; background: transparent; color: var(--text-muted);
  padding: 8px; border-radius: 7px; font-size: 13px; font-weight: 600;
}
.cx-onglet.active { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.cx-boite label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text-muted); }
.cx-boite input {
  background: rgba(4,5,15,.95); color: var(--text); border: 1px solid var(--border);
  border-radius: 9px; padding: 10px 12px; font-size: 14px; font-family: inherit;
}
.cx-boite input:focus { outline: none; border-color: var(--gold); }
.cx-boite .btn { justify-content: center; width: 100%; margin-top: 4px; }
.cx-erreur { min-height: 18px; color: #ff6b81; font-size: 12.5px; }

/* ---------- Progression des envois ---------- */
.tcg-progression {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 900;
  background: var(--surface-2); border: 1px solid var(--gold-dim); color: var(--gold-hi);
  padding: 12px 20px; border-radius: 12px; font-family: 'Space Mono', monospace; font-size: 13px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}

/* ---------- Classements ---------- */
#screen-classements { overflow-y: auto; }
.cl-bloc { margin-top: 18px; }
.cl-bloc h3 { margin-bottom: 6px; }
.cl-sous { color: var(--text-muted); font-size: 12.5px; margin: 0 0 12px; }
.cl-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cl-table th { text-align: left; color: var(--text-muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.cl-table td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.cl-table tr.cl-moi td { background: var(--gold-dim); }
.cl-rang { width: 40px; font-size: 16px; }
.cl-barre { display: inline-block; width: 120px; height: 7px; background: rgba(255,255,255,.07); border-radius: 4px; overflow: hidden; vertical-align: middle; margin-right: 8px; }
.cl-barre > div { height: 100%; background: var(--spectrum); }
.cl-pct { font-size: 12px; color: var(--text-muted); }
.cl-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 10px; }
.cl-carte { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.cl-jeu { font-weight: 700; font-size: 14px; }
.cl-quoi { color: var(--text-muted); font-size: 11.5px; margin-bottom: 10px; }
.cl-ligne { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 7px; font-size: 13px; }
.cl-ligne.cl-moi { background: var(--gold-dim); }
.cl-ligne .cl-rang { width: 28px; font-size: 14px; }
.cl-ligne .cl-nom { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-vide { color: var(--text-faint); font-size: 12.5px; }
.cl-admin { font-size: 10.5px; color: var(--gold-hi); border: 1px solid var(--gold-dim); border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
