/* TeamKit — 🏆 Votes Top-Serveurs : la fenêtre de réglage (27 oct. 2026), commune à Mon espace et au panel. Préfixe ts-.
   Couleurs TeamKit fixes (les deux pages sont sombres) : fond #0a0e17 / #111827, cyan #00e5ff, violet #9b4dff, or #f0a830. */
.ts-fond { position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: 16px; background: rgba(3, 6, 12, .72); backdrop-filter: blur(3px); }
.ts-fond[hidden] { display: none !important; }
html.ts-ouverte { overflow: hidden; }
.ts-fen { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: #111827; color: #e6edf7; border: 1px solid rgba(0, 229, 255, .28);
  border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(0, 229, 255, .08); font-family: Inter, Rajdhani, system-ui, sans-serif; outline: none; }
.ts-tete { position: sticky; top: 0; display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #111827; border-bottom: 1px solid rgba(255, 255, 255, .08); z-index: 1; }
.ts-tete h2 { flex: 1; min-width: 0; margin: 0; font-size: 1.08rem; font-weight: 800; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-x { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: #1f2937; color: #c3cad6; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.ts-x:hover { color: #fff; border-color: #00e5ff; }
.ts-corps { display: grid; gap: 10px; padding: 14px 16px 16px; }
.ts-etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ts-etapes li { display: flex; gap: 9px; align-items: center; font-size: .92rem; color: #c3cad6; }
.ts-etapes li .t { min-width: 0; }
.ts-etapes li .n { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800;
  background: rgba(0, 229, 255, .12); color: #00e5ff; border: 1px solid rgba(0, 229, 255, .4); }
.ts-etapes li.fait .n { background: #19c37d; color: #06120c; border-color: #19c37d; }
.ts-etapes a, .ts-etat a, .ts-muet a { color: #00e5ff; }
.ts-lab { display: block; margin-top: 4px; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #8b95a7; }
.ts-ligne { display: flex; gap: 8px; }
.ts-champ { flex: 1; min-width: 0; width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: #0a0e17; color: #e6edf7; font-size: .95rem; box-sizing: border-box; }
.ts-champ:focus { outline: none; border-color: #00e5ff; box-shadow: 0 0 0 3px rgba(0, 229, 255, .15); }
.ts-mono { font-family: Consolas, "SFMono-Regular", monospace; }
.ts-aide { font-size: .8rem; color: #8b95a7; margin-top: -4px; }
.ts-etat { display: grid; gap: 3px; padding: 10px 12px; border-radius: 10px; font-size: .9rem; background: rgba(25, 195, 125, .10); border: 1px solid rgba(25, 195, 125, .45); }
.ts-etat.ko { background: rgba(240, 168, 48, .10); border-color: rgba(240, 168, 48, .5); }
.ts-etat span { color: #c3cad6; overflow-wrap: anywhere; }
.ts-opts { display: grid; gap: 9px; margin-top: 4px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.ts-sw { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.ts-sw input { position: absolute; opacity: 0; pointer-events: none; }
.ts-sw i { flex: 0 0 auto; position: relative; width: 38px; height: 21px; margin-top: 2px; border-radius: 999px; background: #2a3344; transition: background .15s; }
.ts-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #8b95a7; transition: left .15s, background .15s; }
.ts-sw input:checked + i { background: rgba(0, 229, 255, .35); }
.ts-sw input:checked + i::after { left: 20px; background: #00e5ff; }
.ts-sw input:focus-visible + i { box-shadow: 0 0 0 3px rgba(0, 229, 255, .35); }
.ts-sw span { display: grid; gap: 1px; font-size: .92rem; }
.ts-sw small { color: #8b95a7; font-size: .8rem; }
.ts-sw.off { cursor: default; opacity: .55; }
.ts-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ts-b { padding: 9px 14px; border-radius: 10px; border: 0; font-weight: 800; font-size: .9rem; cursor: pointer; color: #06121a; background: linear-gradient(135deg, #00e5ff, #9b4dff); }
.ts-b.sec { color: #e6edf7; background: #1f2937; border: 1px solid rgba(255, 255, 255, .16); }
.ts-b.dan { color: #ffb4ab; background: transparent; border: 1px solid rgba(255, 107, 107, .55); }
.ts-b:disabled { opacity: .6; cursor: wait; }
.ts-msg { margin: 0; padding: 9px 12px; border-radius: 10px; font-size: .9rem; background: rgba(0, 229, 255, .08); border: 1px solid rgba(0, 229, 255, .3); }
.ts-msg.ok { background: rgba(25, 195, 125, .10); border-color: rgba(25, 195, 125, .45); }
.ts-msg.ko { background: rgba(255, 107, 107, .10); border-color: rgba(255, 107, 107, .5); color: #ffd2cc; }
.ts-muet { margin: 0; font-size: .86rem; color: #8b95a7; }
.ts-pied { margin-top: 4px; font-size: .8rem; }
@media (max-width: 480px) { .ts-fond { padding: 0; place-items: end stretch; } .ts-fen { border-radius: 16px 16px 0 0; max-height: 92dvh; } .ts-btns .ts-b { flex: 1 1 auto; } }
@media (prefers-reduced-motion: reduce) { .ts-sw i, .ts-sw i::after { transition: none; } }
/* Panel : le bloc de la fiche d'un serveur (admin-v3-topserveurs.js) */
.ts-panel-l { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 2px 0 6px; }
.ts-panel-l b { font-weight: 700; }
/* ✏️ Corriger le lien de vote (leur fiche ne dit pas son jeu : le lien est deviné, corrigeable) */
.ts-corr { font-size: .9rem; }
.ts-corr summary { cursor: pointer; color: #c3cad6; font-weight: 700; margin-bottom: 6px; }
.ts-corr[open] summary { margin-bottom: 8px; }
.ts-etat small.ts-muet { overflow-wrap: anywhere; }
/* ═══ Le bloc public (js/top-serveurs-vote.js) : fiche serveur (dans une sidebar-card) et /rust (carte à part) ═══ */
.ts-vote { display: grid; gap: 10px; }
.ts-vote:not(.sidebar-card) { max-width: 560px; padding: 18px; border-radius: 16px; background: #111827; border: 1px solid rgba(0, 229, 255, .25); box-shadow: 0 0 40px rgba(0, 229, 255, .06); color: #e6edf7; }
.ts-v-t { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 1.02rem; }
.ts-v-t h4 { margin: 0; }
.ts-vote:not(.sidebar-card) .ts-v-t h4 { font-size: 1.02rem; color: #fff; }
.ts-v-t small { font-weight: 600; font-size: .78rem; color: #8b95a7; }
.ts-v-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.ts-v-chiffres div { padding: 10px; border-radius: 12px; text-align: center; background: #0a0e17; border: 1px solid rgba(255, 255, 255, .08); }
.ts-v-chiffres b { display: block; font-family: Orbitron, Rajdhani, sans-serif; font-size: 1.7rem; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.ts-v-chiffres span { font-size: .8rem; color: #8b95a7; }
.ts-v-btn { display: block; text-align: center; padding: 12px; border-radius: 12px; font-weight: 800; font-size: 1.1rem; text-decoration: none; color: #06121a !important;
  background: linear-gradient(135deg, #00e5ff, #9b4dff); box-shadow: 0 6px 24px rgba(0, 229, 255, .25); }
.ts-v-btn small { display: block; font-size: .76rem; font-weight: 700; opacity: .85; }
.ts-v-btn:hover, .ts-v-btn:focus-visible { filter: brightness(1.08); }
.ts-v-pseudo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; font-size: .86rem; color: #c3cad6; }
.ts-v-pseudo code { padding: 1px 7px; border-radius: 6px; background: #0a0e17; border: 1px solid rgba(255, 255, 255, .14); color: #e6edf7; font-family: Consolas, monospace; }
.ts-v-mini { padding: 2px 8px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .14); background: #1f2937; color: #c3cad6; font-size: .8rem; cursor: pointer; }
.ts-v-form { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-v-form[hidden] { display: none !important; }
.ts-v-form .ts-champ { flex: 1 1 140px; }
.ts-v-form .ts-aide { flex-basis: 100%; margin: 0; }
.ts-v-co { margin: 0; font-size: .86rem; color: #c3cad6; text-align: center; }
.ts-v-co a { color: #00e5ff; }
.ts-v-msg { margin: 0; padding: 9px 12px; border-radius: 10px; font-size: .88rem; background: rgba(0, 229, 255, .07); border: 1px solid rgba(0, 229, 255, .25); }
.ts-v-msg.ok { background: rgba(25, 195, 125, .10); border-color: rgba(25, 195, 125, .45); }
.ts-v-msg.att { background: rgba(240, 168, 48, .10); border-color: rgba(240, 168, 48, .45); }
.ts-v-msg.ko { background: rgba(255, 107, 107, .10); border-color: rgba(255, 107, 107, .5); }
.ts-v-msg a { color: #00e5ff; }
.ts-v-verif { width: 100%; }
.ts-v-sous { margin-top: 4px; font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8b95a7; }
.ts-v-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ts-v-top li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 9px; background: rgba(255, 255, 255, .03); font-size: .9rem; }
.ts-v-top li span { text-align: center; font-weight: 800; color: #8b95a7; }
.ts-v-top li b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-v-top li em { font-style: normal; font-weight: 800; color: #00e5ff; font-variant-numeric: tabular-nums; }
.ts-v-pied { font-size: .76rem; line-height: 1.4; }
.ru-voter-p { margin: -6px 0 16px; max-width: 70ch; color: #c3cad6; }
/* 🎟️ Les tickets des votes (vague 2) */
.ts-v-tk { margin: 0; display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; text-align: center; font-size: .9rem; color: #e6edf7;
  background: linear-gradient(135deg, rgba(240, 168, 48, .14), rgba(155, 77, 255, .10)); border: 1px solid rgba(240, 168, 48, .35); }
.ts-v-tk b { color: #f6c15a; font-variant-numeric: tabular-nums; }
.ts-v-tk small { font-size: .74rem; color: #c3cad6; }
