        @font-face {
      font-family: 'Geist';
      src: url('/Geist.ttf') format('truetype-variations'), url('/Geist.ttf') format('truetype');
      font-weight: 100 900;
      font-style: normal;
      font-display: swap;
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    html, body { min-height: 100vh; background: #000; color: var(--wc-text); font-family: var(--wc-police); }
    .bg-glow {
      position: fixed; inset: 0; z-index: 0; pointer-events: none;
      background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(var(--wc-accent-rgb),0.10) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 85% 100%, rgba(175,82,222,0.07) 0%, transparent 55%);
    }

    /* Tabs */
    .tabs { position: sticky; top: 56px; z-index: 90; background: rgba(8,14,26,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(26,45,74,0.4); display: flex; padding: 0 20px; }
    .tab { padding: 14px 20px; font-size: 14px; font-weight: 500; color: var(--wc-gris-ardoise); cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.15s; white-space: nowrap; }
    .tab.active { color: var(--wc-bleu-clair); border-bottom-color: var(--wc-bleu-vif); }
    .tab:hover { color: var(--wc-texte-doux); }

    .page { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; padding: 28px 20px 60px; }
    .tab-panel { display: none; } .tab-panel.active { display: block; }

    /* Cards */
    .card {
      background: rgba(15,26,46,0.7); border: 1px solid rgba(46,77,112,0.4);
      border-radius: var(--wc-r-l); padding: 20px; margin-bottom: 16px;
    }

    /* Roster list */
    .roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
    .roster-card {
      background: rgba(15,26,46,0.7); border: 1px solid rgba(46,77,112,0.4);
      border-radius: var(--wc-r-l); padding: 16px; display: flex; flex-direction: column; gap: 14px;
      position: relative;
    }
    .roster-card-top { display: flex; gap: 14px; align-items: flex-start; }
    .roster-thumb {
      width: 64px; height: 80px; border-radius: var(--wc-r-m); object-fit: cover; object-position: top;
      background: rgba(26,45,74,0.4); flex-shrink: 0; cursor: pointer;
      display: flex; align-items: center; justify-content: center; overflow: hidden;
      border: 1px dashed rgba(46,77,112,0.4);
    }
    .roster-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
    .roster-thumb .ph { font-size: 22px; opacity: 0.3; }
    .roster-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
    .roster-name { font-size: 16px; font-weight: 700; color: var(--wc-texte-bleute); }
    .roster-sub { font-size: 12px; color: var(--wc-gris-ardoise); }
    .roster-stats { font-size: 12px; color: var(--wc-gris-bleu-clair); }
    .roster-accent { width: 4px; height: 100%; position: absolute; left: 0; top: 0; border-radius: var(--wc-r-l) 0 0 var(--wc-r-l); }
    .roster-actions { display: flex; gap: 8px; }

    /* Add button */
    .add-btn {
      display: flex; align-items: center; justify-content: center; gap: 8px;
      padding: 14px; border-radius: var(--wc-r-l); border: 1px dashed rgba(var(--wc-bleu-vif-rgb),0.4);
      background: rgba(var(--wc-bleu-vif-rgb),0.06); color: var(--wc-bleu-clair); font-size: 15px; font-weight: 500;
      cursor: pointer; width: 100%; font-family: inherit; transition: all 0.15s; margin-bottom: 20px;
    }
    .add-btn:hover { background: rgba(var(--wc-bleu-vif-rgb),0.12); }

    /* Form */
    .form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
    .form-label { font-size: var(--wc-etiquette-taille); font-weight: var(--wc-etiquette-graisse); color: var(--wc-etiquette-couleur); letter-spacing: var(--wc-etiquette-espacement); text-transform: var(--wc-etiquette-casse); }
    .form-input {
      padding: 11px 14px; border-radius: var(--wc-r-m); border: 1px solid rgba(46,77,112,0.45);
      background: rgba(11,15,26,0.5); color: var(--wc-texte-bleute); font-size: 15px; font-family: inherit;
    }
    .form-input:focus { outline: none; border-color: var(--wc-bleu-vif); }
    .form-input::placeholder { color: rgba(200,216,240,0.25); }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .stats-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
    .stat-input {
      padding: 11px 8px; border-radius: var(--wc-r-m); border: 1px solid rgba(46,77,112,0.45);
      background: rgba(11,15,26,0.5); color: var(--wc-texte-bleute); font-size: 20px; font-weight: 700;
      font-family: inherit; text-align: center; -moz-appearance: textfield;
    }
    .stat-input::-webkit-outer-spin-button, .stat-input::-webkit-inner-spin-button { -webkit-appearance: none; }
    .stat-input:focus { outline: none; border-color: var(--wc-bleu-vif); }
    .stat-lbl { font-size: 11px; color: var(--wc-gris-ardoise); text-align: center; margin-top: 4px; letter-spacing: 0.1em; text-transform: uppercase; }
    .color-row { display: flex; align-items: center; gap: 12px; }
    .color-swatch { width: 36px; height: 36px; border-radius: var(--wc-r-s); border: 1px solid rgba(46,77,112,0.5); cursor: pointer; overflow: hidden; flex-shrink: 0; }
    .color-swatch input[type=color] { width: 150%; height: 150%; margin: -25%; cursor: pointer; border: none; padding: 0; background: none; }
    .color-hex { font-size: 13px; color: var(--wc-gris-bleu-clair); }

    /* Buttons */
    .btn {
      padding: 10px 18px; border-radius: var(--wc-r-m); border: 1px solid rgba(46,77,112,0.5);
      background: rgba(26,45,74,0.3); color: var(--wc-texte-doux); font-size: 13px; font-weight: 500;
      cursor: pointer; font-family: inherit; transition: all 0.15s;
    }
    .btn:hover { background: rgba(26,45,74,0.6); }
    .btn.primary { background: linear-gradient(135deg, var(--wc-bleu-vif), var(--wc-bleu-fonce)); border-color: var(--wc-bleu-clair); color: #fff; }
    .btn.primary:hover { opacity: 0.88; }
    .btn.danger { border-color: rgba(220,38,38,0.3); color: var(--wc-rouge-clair); background: rgba(220,38,38,0.08); }
    .btn.sm { padding: 7px 12px; font-size: 12px; }
    .btn.icon { padding: 7px 10px; }

    /* Fights list */
    .fight-item {
      background: rgba(15,26,46,0.7); border: 1px solid rgba(46,77,112,0.4);
      border-radius: var(--wc-r-l); padding: 16px 20px; margin-bottom: 12px;
      display: flex; align-items: center; gap: 14px;
    }
    .fight-order { font-size: 22px; font-weight: 800; color: rgba(255,255,255,0.15); min-width: 30px; text-align: center; }
    .fight-main { flex: 1; }
    .fight-title { font-size: 15px; font-weight: 600; color: var(--wc-texte-bleute); }
    .fight-category { font-size: 12px; color: var(--wc-gris-ardoise); margin-top: 2px; }
    .fight-fighters { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
    .fight-fighter {
      display: flex; align-items: center; gap: 8px;
      background: rgba(26,45,74,0.4); border-radius: var(--wc-r-s); padding: 6px 12px;
    }
    .fight-fighter-photo {
      width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: top;
      background: rgba(26,45,74,0.6); flex-shrink: 0; display: flex; align-items: center; justify-content: center;
      overflow: hidden;
    }
    .fight-fighter-photo img { width: 100%; height: 100%; object-fit: cover; }
    .fight-fighter-name { font-size: 13px; font-weight: 600; color: var(--wc-texte-doux); }
    .fight-vs { font-size: 11px; font-weight: 800; color: var(--wc-gris-ardoise); letter-spacing: 0.1em; }
    .fight-status {
      padding: 4px 10px; border-radius: var(--wc-r-xl); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    }
    .fight-status.upcoming { background: rgba(100,116,139,0.2); color: #94a3b8; border: 1px solid rgba(100,116,139,0.3); }
    .fight-status.live { background: rgba(34,197,94,0.15); color: var(--wc-vert-clair); border: 1px solid rgba(34,197,94,0.3); animation: pulse 1.5s infinite; }
    .fight-status.done { background: rgba(148,163,184,0.1); color: #64748b; border: 1px solid rgba(148,163,184,0.2); }
    @keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.6; } }

    /* Show buttons in fight */
    .fight-show-btns { display: flex; flex-direction: column; gap: 6px; }
    .show-btn {
      padding: 8px 14px; border-radius: var(--wc-r-s); font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
      border: 1px solid rgba(46,77,112,0.5); background: rgba(26,45,74,0.3); color: var(--wc-gris-bleu-clair); white-space: nowrap;
      transition: all 0.15s;
    }
    .show-btn.active { background: rgba(var(--wc-bleu-vif-rgb),0.2); border-color: var(--wc-bleu-vif); color: var(--wc-bleu-clair); }
    .show-btn:hover { background: rgba(26,45,74,0.6); }

    /* Result selector */
    .result-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
    .result-btn {
      padding: 5px 12px; border-radius: var(--wc-r-s); font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
      border: 1px solid rgba(46,77,112,0.4); background: rgba(26,45,74,0.2); color: var(--wc-gris-bleu-clair); transition: all 0.15s;
    }
    .result-btn.win-a { border-color: rgba(var(--wc-bleu-vif-rgb),0.5); }
    .result-btn.win-b { border-color: rgba(239,68,68,0.5); }
    .result-btn.active { background: rgba(var(--wc-bleu-vif-rgb),0.2); color: var(--wc-bleu-clair); border-color: var(--wc-bleu-vif); }
    .result-btn.active.win-b { background: rgba(239,68,68,0.2); color: var(--wc-rouge-clair); border-color: var(--wc-rouge-vif); }
    .result-btn.active.draw { background: rgba(234,179,8,0.2); color: var(--wc-ambre); border-color: #eab308; }

    /* OBS */
    .obs-section {
      background: rgba(15,26,46,0.7); border: 1px solid rgba(46,77,112,0.4);
      border-radius: var(--wc-r-l); padding: 18px 20px;
      display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    }
    .obs-label { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--wc-gris-ardoise); white-space: nowrap; }
    .obs-url { flex: 1; min-width: 200px; padding: 9px 14px; border-radius: var(--wc-r-s); border: 1px solid rgba(46,77,112,0.4); background: rgba(11,15,26,0.5); color: var(--wc-gris-bleu-clair); font-size: 13px; font-family: var(--wc-police-mono); }
    .copy-btn { padding: 9px 16px; border-radius: var(--wc-r-s); border: 1px solid rgba(var(--wc-bleu-vif-rgb),0.4); background: rgba(var(--wc-bleu-vif-rgb),0.12); color: var(--wc-bleu-clair); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
    .copy-btn.copied { background: rgba(52,211,153,0.12); border-color: rgba(52,211,153,0.4); color: var(--wc-emeraude); }

    /* Modal */
    .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 500; padding: 20px; }
    .modal-overlay.show { display: flex; }
    .modal { background: #0f1a2e; border: 1px solid rgba(var(--wc-bleu-vif-rgb),0.3); border-radius: var(--wc-r-xl); padding: 28px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; }
    .modal-title { font-size: 18px; font-weight: 700; color: var(--wc-texte-bleute); margin-bottom: 20px; }
    .modal-actions { display: flex; gap: 10px; margin-top: 20px; }
    .modal-actions button { flex: 1; }

    /* Fighter selector in fight modal */
    .fighter-select {
      display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px;
    }
    .fighter-option {
      display: flex; align-items: center; gap: 8px; padding: 10px 12px;
      border-radius: var(--wc-r-m); border: 1px solid rgba(46,77,112,0.4);
      background: rgba(26,45,74,0.2); cursor: pointer; transition: all 0.15s;
    }
    .fighter-option.selected { border-color: var(--wc-bleu-vif); background: rgba(var(--wc-bleu-vif-rgb),0.15); }
    .fighter-option img, .fighter-option .fo-ph {
      width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: top;
      background: rgba(26,45,74,0.5); display: flex; align-items: center; justify-content: center;
      font-size: 14px; flex-shrink: 0; overflow: hidden;
    }
    .fighter-option img { display: block; }
    .fighter-option-name { font-size: 13px; font-weight: 600; color: var(--wc-texte-doux); }

    /* Photo modal */
    .photo-upload-zone {
      border: 2px dashed rgba(var(--wc-bleu-vif-rgb),0.3); border-radius: var(--wc-r-m); padding: 24px;
      text-align: center; cursor: pointer; transition: all 0.15s; margin-bottom: 12px;
    }
    .photo-upload-zone:hover { border-color: var(--wc-bleu-vif); background: rgba(var(--wc-bleu-vif-rgb),0.05); }
    .photo-preview-large {
      width: 100px; height: 124px; border-radius: var(--wc-r-m); object-fit: cover; object-position: top;
      margin: 0 auto 12px; display: block; background: rgba(26,45,74,0.4);
    }

    .empty-state { text-align: center; padding: 48px 20px; color: var(--wc-gris-ardoise); font-size: 14px; }
    .empty-state .icon { font-size: 40px; margin-bottom: 12px; opacity: 0.4; }

    @media (max-width: 768px) {
      .tabs { padding: 0 10px; overflow-x: auto; }
      .tab { padding: 12px 14px; font-size: 13px; }
      .page { padding: 16px 12px 60px; }
      .roster-grid { grid-template-columns: 1fr; }
      .form-row { grid-template-columns: 1fr; }
      .fighter-select { grid-template-columns: 1fr; }
      .fight-item { flex-wrap: wrap; gap: 10px; }
      .fight-show-btns { flex-direction: row; }
      .obs-section { flex-direction: column; align-items: flex-start; }
      .obs-url { min-width: 0; width: 100%; }
      .modal { padding: 20px 16px; }
    }

    @media (max-width: 480px) {
      .stats-row { grid-template-columns: 1fr 1fr; }
      .show-btn { font-size: 11px; padding: 7px 10px; }
      .fight-fighter-name { font-size: 12px; }
      .card { padding: 14px; }
    }
  
    /* ─── Standard Nav (logo | titre | id) ─── */
    nav {
      position: sticky; top: 0; z-index: 1000;
      height: 64px;
      display: grid; grid-template-columns: 1fr auto 1fr;
      align-items: center;
      padding: 0 24px;
      background: rgba(0,0,0,0.75);
      backdrop-filter: saturate(180%) blur(20px);
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    nav .brand { justify-self: start; display: inline-flex; align-items: center; height: 100%; }
    nav .brand img { height: 24px; display: block; }
    nav .nav-pill {
      justify-self: center;
      display: inline-flex; align-items: center;
      padding: 6px 14px;
      font-size: 12px; font-weight: 500;
      color: var(--wc-text-secondary);
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: var(--wc-r-pilule);
      max-width: 60vw;
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
      line-height: 1;
    }
    nav .nav-user {
      justify-self: end;
      display: inline-flex; align-items: center; gap: 8px;
      padding: 6px 14px;
      border-radius: var(--wc-r-pilule);
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.08);
      font-size: 12px; font-weight: 500;
      color: var(--wc-text-secondary);
      cursor: pointer;
      transition: all .15s;
      line-height: 1;
    }
    nav .nav-user:hover { background: rgba(255,69,58,0.15); border-color: rgba(255,69,58,0.3); color: var(--wc-red); }
    nav .nav-user .x { opacity: 0.5; font-size: 10px; }
    nav .nav-clock {
      justify-self: end;
      font-size: 18px; font-weight: 700;
      font-variant-numeric: tabular-nums;
      letter-spacing: 0.04em;
      color: var(--wc-texte-bleute);
      text-shadow: 0 0 8px rgba(var(--wc-bleu-clair-rgb),0.45), 0 0 40px rgba(var(--wc-bleu-vif-rgb),0.35);
      line-height: 1;
    }
    nav .nav-timer {
      justify-self: center;
      font-size: 22px; font-weight: 700;
      font-variant-numeric: tabular-nums;
      color: var(--wc-texte-bleute); letter-spacing: 0.04em;
      line-height: 1;
    }
    @media (max-width: 600px) {
      nav { padding: 0 14px; height: 56px; }
      nav .brand img { height: 13px; }
      nav .nav-pill { font-size: 9px; padding: 4px 8px; max-width: 50vw; }
      nav .nav-user { font-size: 10px; padding: 4px 11px; }
    }
    /* ─── Footer ─── */
    .page-footer {
      padding: 18px 32px;
      border-top: 1px solid rgba(255,255,255,0.07);
      display: flex; justify-content: center; align-items: center;
      font-size: 12px; color: rgba(255,255,255,0.3);
      margin-top: auto;
    }
    .page-footer a { color: rgba(255,255,255,0.3); text-decoration: none; }
    .page-footer a:hover { color: rgba(255,255,255,0.6); }

    /* Téléphone (audit 21/10) : boutons du combat en rangée sous le combat, plus en colonne étroite. */
    @media (max-width: 600px) {
      .fight-item { flex-wrap: wrap; }
      .fight-show-btns { flex: 1 1 100%; }
      .fight-show-btns .show-btn { flex: 1; }
      .fight-actions { flex: 1 1 100%; flex-direction: row !important; justify-content: flex-end; }
      .fight-actions .btn { min-height: 40px; min-width: 44px; }
    }
