/* ===== Tournoi Warzone — styles front-end (scopés .wzt) ===== */
.wzt{
  --wzt-bg:#0f141c; --wzt-bg2:#141a24; --wzt-panel:#1a212e; --wzt-line:rgba(255,255,255,.09);
  --wzt-line2:rgba(255,255,255,.16); --wzt-ink:#e9edf4; --wzt-muted:#8b95a7;
  --wzt-amber:#ff7a1a; --wzt-amber-soft:rgba(255,122,26,.14); --wzt-teal:#16c2b3;
  --wzt-gold:#ffcb45; --wzt-silver:#c8d1dc; --wzt-bronze:#d98b4a; --wzt-danger:#ff5d5d; --wzt-ok:#2ecf8f;
  color:var(--wzt-ink); background:var(--wzt-bg); border:1px solid var(--wzt-line); border-radius:14px;
  padding:20px; margin:18px 0; font-family:"Inter",system-ui,Segoe UI,Roboto,sans-serif; line-height:1.5;
}
.wzt *{box-sizing:border-box}
.wzt-loading{color:var(--wzt-muted);padding:24px;text-align:center}
.wzt h2,.wzt h3{font-family:"Rajdhani","Oswald",sans-serif;letter-spacing:.02em;color:#fff;margin:0 0 6px}
.wzt .wzt-num,.wzt-table td.num{font-variant-numeric:tabular-nums}

.wzt-cl-head{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:14px}
.wzt-title{font-family:"Rajdhani","Oswald",sans-serif;font-size:24px;font-weight:700;color:#fff}
.wzt-statusrow{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.wzt-pill{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;border:1px solid var(--wzt-line2);
  background:var(--wzt-panel);font-family:"Rajdhani",sans-serif;font-weight:600;text-transform:uppercase;letter-spacing:.07em;font-size:12px}
.wzt-dot{width:8px;height:8px;border-radius:50%;background:var(--wzt-muted)}
.wzt-pill.live{border-color:rgba(46,207,143,.5);color:#bff7df}
.wzt-pill.live .wzt-dot{background:var(--wzt-ok);animation:wztpulse 1.6s infinite}
.wzt-pill.upcoming,.wzt-pill.ready{color:#ffd9b3;border-color:rgba(255,122,26,.45)} .wzt-pill.upcoming .wzt-dot,.wzt-pill.ready .wzt-dot{background:var(--wzt-amber)}
.wzt-pill.config{color:var(--wzt-muted)}
.wzt-pill.ended{color:var(--wzt-muted)}
@keyframes wztpulse{0%{box-shadow:0 0 0 0 rgba(46,207,143,.55)}70%{box-shadow:0 0 0 9px rgba(46,207,143,0)}100%{box-shadow:0 0 0 0 rgba(46,207,143,0)}}
.wzt-cd{font-family:"Rajdhani","Oswald",sans-serif;font-weight:700;font-size:18px}
.wzt-cd small{display:block;font-size:10px;color:var(--wzt-muted);text-transform:uppercase;letter-spacing:.14em}

.wzt-tablewrap{overflow-x:auto;border:1px solid var(--wzt-line);border-radius:12px}
.wzt-scoreboard{width:100%;border-collapse:collapse;min-width:720px;color:var(--wzt-ink)}
.wzt-scoreboard th{font-family:"Rajdhani","Oswald",sans-serif;font-weight:600;text-transform:uppercase;letter-spacing:.05em;
  font-size:12px;color:var(--wzt-muted);text-align:center;padding:11px 9px;background:var(--wzt-bg2);border-bottom:1px solid var(--wzt-line2);white-space:nowrap}
.wzt-scoreboard th.l,.wzt-scoreboard td.l{text-align:left}
.wzt-scoreboard td{padding:11px 9px;text-align:center;border-bottom:1px solid var(--wzt-line);font-size:14px}
.wzt-scoreboard tbody tr:last-child td{border-bottom:none}
.wzt-scoreboard tbody tr:hover{background:rgba(255,255,255,.02)}
.wzt-rank{font-family:"Rajdhani","Oswald",sans-serif;font-weight:700;font-size:18px;width:44px}
.wzt-r1{color:var(--wzt-gold)} .wzt-r2{color:var(--wzt-silver)} .wzt-r3{color:var(--wzt-bronze)}
.wzt-tn{font-weight:600} .wzt-tp{font-size:12px;color:var(--wzt-muted)}
.wzt-pts{font-family:"Rajdhani","Oswald",sans-serif;font-weight:700;font-size:16px}
.wzt-final{font-family:"Rajdhani","Oswald",sans-serif;font-weight:700;font-size:18px;color:var(--wzt-amber)}
.wzt-c{color:var(--wzt-muted)} .wzt-c.has{color:var(--wzt-ink)} .wzt-win{color:var(--wzt-gold)}

.wzt-legend{margin-top:14px;font-size:13px;color:var(--wzt-muted);line-height:1.7}
.wzt-legend b{color:var(--wzt-ink)}

.wzt-teams{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px;margin-top:8px}
.wzt-team{background:var(--wzt-panel);border:1px solid var(--wzt-line);border-radius:11px;padding:15px}
.wzt-team h3{font-size:18px;margin:0 0 8px}
.wzt-team ul{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:5px}
.wzt-team li{font-size:13px;color:#cfd6e2;display:flex;gap:8px;align-items:center}
.wzt-team li::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--wzt-teal);flex:none}
.wzt-cap{display:inline-block;font-size:11px;font-weight:600;padding:2px 9px;border-radius:999px;background:var(--wzt-amber-soft);color:var(--wzt-amber)}

.wzt-form-field{margin-bottom:13px}
.wzt label{display:block;font-size:13px;font-weight:600;margin-bottom:6px;color:#cfd6e2}
.wzt input[type=text],.wzt input[type=tel]{width:100%;background:var(--wzt-bg2);border:1px solid var(--wzt-line2);color:var(--wzt-ink);
  padding:10px 12px;border-radius:9px;font-size:14px;font-family:inherit}
.wzt input:focus{outline:none;border-color:var(--wzt-amber);box-shadow:0 0 0 3px var(--wzt-amber-soft)}
.wzt-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.wzt-btn{cursor:pointer;border:1px solid var(--wzt-amber);background:var(--wzt-amber);color:#10141c;font-weight:700;
  padding:11px 18px;border-radius:9px;font-size:14px;font-family:inherit}
.wzt-btn:hover{filter:brightness(1.08)}
.wzt-msg{font-size:13px;margin-top:8px}
.wzt-msg.err{color:var(--wzt-danger)} .wzt-msg.ok{color:var(--wzt-ok)}

.wzt-match{background:var(--wzt-panel);border:1px solid var(--wzt-line);border-radius:11px;padding:13px 15px;margin-bottom:10px}
.wzt-match .mh{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center}
.wzt-match .when{font-size:12px;color:var(--wzt-muted)}
.wzt-pods{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}
.wzt-pod{font-size:13px;padding:5px 10px;border-radius:8px;border:1px solid var(--wzt-line);background:var(--wzt-bg2)}
.wzt-pod b{font-family:"Rajdhani","Oswald",sans-serif;margin-right:6px}
.wzt-pod.p1{border-color:rgba(255,203,69,.5);color:var(--wzt-gold)}
.wzt-pod.p2{border-color:rgba(200,209,220,.4)} .wzt-pod.p3{border-color:rgba(217,139,74,.5)}
.wzt-archive{margin-top:22px;padding-top:18px;border-top:1px solid var(--wzt-line)}
.wzt-empty{text-align:center;color:var(--wzt-muted);padding:34px 16px}

@media(max-width:640px){ .wzt-two{grid-template-columns:1fr} }

/* ----- Console de saisie arbitre ----- */
.wzt-saisie-locked{text-align:center}
.wzt-saisie-locked h2{margin-bottom:10px}
.wzt-saisie-locked p{color:var(--wzt-muted);max-width:460px;margin:0 auto 18px}
.wzt-console h2{font-size:21px}
.wzt-saisie select.wzt-place{width:100%;background:var(--wzt-bg2);border:1px solid var(--wzt-line2);color:var(--wzt-ink);
  padding:8px 10px;border-radius:8px;font-size:14px;font-family:inherit}
.wzt-saisie select.wzt-place:focus{outline:none;border-color:var(--wzt-amber);box-shadow:0 0 0 3px var(--wzt-amber-soft)}
.wzt-saisie input.wzt-proof{width:18px;height:18px;accent-color:var(--wzt-amber);cursor:pointer}
.wzt-saisie .wzt-scoreboard td{padding:9px}
.wzt-saisie .wzt-scoreboard td.l{min-width:150px}
.wzt-del{background:transparent;border:1px solid rgba(255,93,93,.5);color:var(--wzt-danger);
  font-size:12px;font-weight:600;padding:5px 11px;border-radius:7px;cursor:pointer}
.wzt-del:hover{background:var(--wzt-danger);color:#fff}
.wzt-del:disabled{opacity:.5;cursor:default}
.wzt-match .mh{align-items:center}

/* ----- Bandeau de statut ----- */
.wzt-banner{border:1px solid var(--wzt-line2);border-radius:10px;padding:12px 15px;margin-bottom:16px;font-size:14px;
  background:var(--wzt-panel);color:var(--wzt-ink)}
.wzt-banner.ok{border-color:rgba(46,207,143,.45)}
.wzt-banner.err{border-color:rgba(255,93,93,.55);background:rgba(255,93,93,.08)}
.wzt-banner strong{color:#fff}

/* ----- Règles du jeu ----- */
.wzt-rules h3{font-family:"Rajdhani","Oswald",sans-serif;font-size:20px;color:#fff;margin:24px 0 8px}
.wzt-rules h4{font-family:"Rajdhani","Oswald",sans-serif;font-size:18px;color:#fff;margin:0}
.wzt-rintro{font-size:15px}
.wzt-rnote{font-size:13px;color:var(--wzt-muted);margin-top:8px}
.wzt-formula{display:inline-block;font-family:"Rajdhani","Oswald",sans-serif;font-size:16px;font-weight:600;color:var(--wzt-amber);
  background:var(--wzt-amber-soft);border:1px solid rgba(255,122,26,.3);border-radius:8px;padding:7px 13px;margin:6px 0}
.wzt-modes{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:10px}
.wzt-mode{background:var(--wzt-panel);border:1px solid var(--wzt-line);border-radius:11px;padding:15px}
.wzt-mode.on{border-color:var(--wzt-amber);box-shadow:0 0 0 1px rgba(255,122,26,.3)}
.wzt-mode-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.wzt-mode p{font-size:14px}
.wzt-active{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;padding:3px 9px;border-radius:999px;
  background:var(--wzt-amber);color:#10141c}
.wzt-rlist{margin:6px 0 0;padding-left:20px}
.wzt-rlist li{font-size:14px;margin-bottom:7px}
.wzt-rules .wzt-scoreboard td.l,.wzt-rules .wzt-scoreboard th.l{text-align:left}
@media(max-width:640px){ .wzt-modes{grid-template-columns:1fr} }

.wzt-dates{display:flex;flex-wrap:wrap;gap:14px;margin-top:8px;font-size:13px;color:var(--wzt-muted)}
.wzt-dates strong{color:var(--wzt-ink)}

/* ----- Import IA d'une capture ----- */
.wzt-ai-import{margin:6px 0 14px;padding:10px 12px;border:1px dashed var(--wzt-line);border-radius:10px;background:var(--wzt-bg2)}
.wzt-ai-btn{display:inline-block;cursor:pointer;background:linear-gradient(135deg,#7a4dff,#16c2b3);color:#fff;
  font-family:"Rajdhani","Oswald",sans-serif;font-weight:600;letter-spacing:.3px;padding:8px 14px;border-radius:9px}
.wzt-ai-btn:hover{filter:brightness(1.08)}
.wzt-ai-msg{margin-left:10px;font-size:14px}
.wzt-ai-msg.ok{color:var(--wzt-ok)}
.wzt-ai-msg.err{color:var(--wzt-bad,#ff6b6b)}

/* ----- Saisie des éliminations (console) ----- */
.wzt-killteam{border:1px solid var(--wzt-line);border-radius:10px;padding:8px 10px;margin:8px 0;background:var(--wzt-bg2)}
.wzt-killteam-h{font-family:"Rajdhani","Oswald",sans-serif;font-weight:600;color:#fff;margin-bottom:4px}
.wzt-killrow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:3px 0}
.wzt-killrow span{font-size:14px;color:var(--wzt-ink)}
.wzt-killrow input{width:74px;text-align:center;background:var(--wzt-panel);border:1px solid var(--wzt-line);
  border-radius:8px;color:#fff;padding:5px 6px}

/* ----- Albums équipes / joueurs ----- */
.wzt-album{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}
.wzt-al-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;
  background:var(--wzt-panel);border:1px solid var(--wzt-line);border-radius:14px;padding:18px 14px;
  text-decoration:none;color:var(--wzt-ink);transition:.15s}
.wzt-al-card:hover{border-color:var(--wzt-amber);transform:translateY(-2px)}
.wzt-al-logo{width:96px;height:96px;border-radius:14px;overflow:hidden;display:grid;place-items:center;background:var(--wzt-bg2);flex:none}
.wzt-al-logo--round{border-radius:50%}
.wzt-al-img{width:100%;height:100%;object-fit:cover;display:block}
.wzt-al-ph{font-family:"Rajdhani","Oswald",sans-serif;font-weight:700;font-size:40px;color:var(--wzt-amber)}
.wzt-al-ph--round{color:var(--wzt-teal)}
.wzt-al-name{font-family:"Rajdhani","Oswald",sans-serif;font-weight:600;font-size:17px;color:#fff;line-height:1.1}
.wzt-al-meta{font-size:12px;color:var(--wzt-muted)}

/* ----- Upload image en façade (fiches) ----- */
.wzt-upload{margin:14px 0}
.wzt-upload .wzt-up-btn{display:inline-flex;align-items:center;gap:8px;cursor:pointer;
  background:var(--wzt-panel);border:1px dashed var(--wzt-line);border-radius:10px;padding:9px 14px;
  color:var(--wzt-ink);font-size:14px;font-weight:600;transition:.15s}
.wzt-upload .wzt-up-btn:hover{border-color:var(--wzt-amber);color:var(--wzt-amber)}
.wzt-upload input[type=file]{display:none}
.wzt-up-msg{margin-left:10px;font-size:13px}
.wzt-up-msg.ok{color:var(--wzt-ok)}
.wzt-up-msg.err{color:var(--wzt-err)}

/* ----- Sélecteur d'arbitres (console saisie) ----- */
.wzt-reflist{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:4px 14px;
  max-height:180px;overflow:auto;background:var(--wzt-bg2);border:1px solid var(--wzt-line);border-radius:10px;padding:10px 12px}
.wzt-refitem{display:flex;align-items:center;gap:7px;font-size:14px;color:var(--wzt-ink);cursor:pointer;padding:2px 0}
.wzt-refitem input{accent-color:var(--wzt-amber)}

/* ----- Pages de présentation (CPT équipe / joueur) ----- */
.wzt-profile{padding:0;border:none;background:transparent;margin:18px 0}
.wzt-profile h3{font-family:"Rajdhani","Oswald",sans-serif;font-size:20px;color:#fff;margin:20px 0 10px}
.wzt-profile .wzt-cap{margin-bottom:10px}
.wzt-muted{color:var(--wzt-muted)}
.wzt-roster{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.wzt-pcard{display:flex;align-items:center;gap:10px;background:var(--wzt-panel);border:1px solid var(--wzt-line);
  border-radius:11px;padding:9px 12px;text-decoration:none;color:var(--wzt-ink)}
.wzt-pcard:hover{border-color:var(--wzt-amber)}
.wzt-pavatar{width:38px;height:38px;border-radius:50%;object-fit:cover;flex:none;background:var(--wzt-bg2)}
.wzt-pcard span{font-weight:600;font-size:14px}
.wzt-statgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin-top:6px}
.wzt-stat{background:var(--wzt-panel);border:1px solid var(--wzt-line);border-radius:11px;padding:14px;text-align:center}
.wzt-stat.wzt-stat-wide{grid-column:span 2}
.wzt-stat b{display:block;font-family:"Rajdhani","Oswald",sans-serif;font-size:26px;color:var(--wzt-amber);line-height:1.1}
.wzt-stat b a{color:var(--wzt-amber);text-decoration:none}
.wzt-stat span{display:block;font-size:12px;color:var(--wzt-muted);margin-top:3px}
