/* ======================================================
   TOKENS
   ====================================================== */
:root{
  --bg:#0E1015;
  --surface:#171A22;
  --surface-2:#1D212B;
  --border:#2B303C;
  --text:#F0F1F5;
  --text-muted:#8B909E;
  --gold:#E7B10A;
  --gold-dim:#8A6C1F;
  --cyan:#35C7C2;
  --magenta:#FF4F81;
  --red:#E2492F;
  --green:#6FCF97;

  --tier-s1:#E7B10A;
  --tier-s2:#E2492F;
  --tier-a:#FF8A3D;
  --tier-b:#F4D35E;
  --tier-c:#6FCF97;
  --tier-d:#6FA8DC;

  --font-display:'Rajdhani', sans-serif;
  --font-body:'Inter', sans-serif;
  --font-mono:'Space Mono', monospace;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:
    radial-gradient(circle at 15% 0%, rgba(231,177,10,0.06), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(53,199,194,0.05), transparent 40%),
    var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{font-family:var(--font-display); margin:0; letter-spacing:0.01em;}
p{margin:0;}
a{color:inherit;}
button{font-family:inherit;}
img{display:block; max-width:100%;}
input,select,textarea{font-family:var(--font-body); font-size:14px;}

.wrap{max-width:1180px; margin:0 auto; padding:0 24px;}

.hud-box{
  position:relative;
  background:var(--surface);
  border:1px solid var(--border);
  clip-path:polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.hud-box::before{
  content:"";
  position:absolute; inset:0;
  pointer-events:none;
  background:linear-gradient(135deg, rgba(231,177,10,0.06), transparent 30%);
}

.eyebrow{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--gold);
  display:flex;
  align-items:center;
  gap:8px;
}
.eyebrow::before{content:"◆"; font-size:10px;}

.tag{
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  padding:3px 9px;
  border-radius:3px;
  border:1px solid currentColor;
  display:inline-flex;
  align-items:center;
  gap:5px;
}
.tag--singles{color:var(--magenta);}
.tag--doubles{color:var(--cyan);}
.tag--live{color:var(--gold); background:rgba(231,177,10,0.08);}

/* ======================================================
   NAV
   ====================================================== */
header.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter:blur(10px);
  background:rgba(14,16,21,0.85);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  max-width:1180px; margin:0 auto; padding:14px 24px;
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-display); font-weight:700; font-size:19px;
  text-transform:uppercase; letter-spacing:0.03em;
}
.brand .dot{width:9px; height:9px; background:var(--gold); border-radius:1px; transform:rotate(45deg); flex-shrink:0;}
nav.links{display:flex; gap:6px; flex-wrap:wrap; align-items:center;}
nav.links a{
  font-family:var(--font-mono);
  font-size:12px; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--text-muted); text-decoration:none;
  padding:8px 14px;
  border:1px solid transparent;
  transition:color .15s, border-color .15s;
}
nav.links a:hover{color:var(--text); border-color:var(--border);}
nav.links a.admin-link{color:var(--gold-dim); border-color:var(--gold-dim);}
nav.links a.admin-link:hover{color:var(--gold); border-color:var(--gold);}

.icon-btn{
  border:1px solid var(--border); background:var(--surface-2); color:var(--text-muted);
  width:26px; height:26px; display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:13px; border-radius:3px; line-height:1;
  transition:color .15s, border-color .15s;
}
.icon-btn:hover{color:var(--text); border-color:var(--gold);}
.icon-btn.danger:hover{color:var(--red); border-color:var(--red);}

/* ======================================================
   HERO
   ====================================================== */
.hero{padding:72px 0 40px; position:relative; overflow:hidden;}
.hero::after{
  content:"";
  position:absolute; top:0; right:-10%; width:60%; height:100%;
  background:repeating-linear-gradient(115deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 34px);
  pointer-events:none;
}
.hero-badge{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:12px; letter-spacing:0.08em;
  color:var(--bg); background:var(--gold);
  padding:6px 12px 6px 10px; margin-bottom:22px;
  clip-path:polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  font-weight:700; text-transform:uppercase;
}
.hero h1{
  font-size:clamp(40px, 7vw, 74px);
  font-weight:700; line-height:0.98; text-transform:uppercase;
  max-width:820px;
}
.hero h1 span{color:var(--gold);}
.hero p.lead{
  margin-top:20px; max-width:600px; color:var(--text-muted);
  font-size:16px;
}
.hero-actions{display:flex; gap:12px; margin-top:32px; flex-wrap:wrap;}
.btn{
  font-family:var(--font-mono); font-size:12px; letter-spacing:0.06em; text-transform:uppercase;
  padding:13px 22px; text-decoration:none; font-weight:700;
  clip-path:polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition:transform .15s;
  display:inline-block; cursor:pointer; border:none;
}
.btn:hover{transform:translateY(-1px);}
.btn--primary{background:var(--gold); color:#14161C;}
.btn--ghost{background:transparent; color:var(--text); border:1px solid var(--border);}
.btn--sm{padding:9px 16px; font-size:11px;}

/* ticker */
.ticker{
  margin-top:48px; border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  padding:12px 0; overflow:hidden; white-space:nowrap; position:relative;
}
.ticker-track{display:inline-flex; gap:48px; animation:scroll 28s linear infinite;}
.ticker span{
  font-family:var(--font-mono); font-size:13px; color:var(--text-muted);
  display:inline-flex; align-items:center; gap:10px;
}
.ticker span b{color:var(--gold); font-weight:700;}
.pulse{width:7px; height:7px; border-radius:50%; background:var(--gold); animation:pulse 1.6s infinite;}
@keyframes pulse{0%,100%{opacity:1;} 50%{opacity:.25;}}
@keyframes scroll{from{transform:translateX(0);} to{transform:translateX(-50%);}}
@media (prefers-reduced-motion: reduce){
  .ticker-track{animation:none;}
  .pulse{animation:none;}
  html{scroll-behavior:auto;}
}

/* ======================================================
   SECTIONS shared
   ====================================================== */
section{padding:64px 0;}
section + section{border-top:1px solid var(--border);}
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:16px;
  margin-bottom:32px;
}
.section-head h2{font-size:clamp(28px,4vw,38px); text-transform:uppercase; margin-top:8px;}
.section-actions{display:flex; align-items:center; gap:12px; flex-wrap:wrap;}

.switch{
  display:inline-flex; border:1px solid var(--border); padding:3px; gap:3px;
  clip-path:polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.switch button{
  background:transparent; border:none; color:var(--text-muted); cursor:pointer;
  font-family:var(--font-mono); font-size:12px; letter-spacing:0.06em; text-transform:uppercase;
  padding:9px 18px; font-weight:700;
}
.switch button.active[data-fmt="singles"]{background:var(--magenta); color:#1a0a10;}
.switch button.active[data-fmt="doubles"]{background:var(--cyan); color:#08201f;}

/* ======================================================
   TORNEOS
   ====================================================== */
.tourney-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(300px,1fr)); gap:18px;}
.tourney-card{padding:22px; display:flex; flex-direction:column; gap:14px;}
.tourney-top{display:flex; justify-content:space-between; align-items:flex-start; gap:10px;}
.tourney-card h3{font-size:21px; text-transform:uppercase;}
.tourney-date{font-family:var(--font-mono); font-size:12px; color:var(--text-muted);}
.tourney-desc{font-size:14px; color:var(--text-muted);}
.tourney-tags{display:flex; gap:8px; flex-wrap:wrap; align-items:center;}
.tourney-link{
  margin-top:auto; font-family:var(--font-mono); font-size:12px; text-transform:uppercase;
  color:var(--gold); text-decoration:none; letter-spacing:0.05em;
}
.tourney-link:hover{text-decoration:underline;}
.tourney-editbar{display:flex; gap:6px; margin-left:auto;}

/* ---------- mejoras visuales: jerarquía y acentos ---------- */
.tourney-card{
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  animation:tourneyIn .5s ease both;
}
.tourney-card:hover{
  transform:translateY(-4px);
  box-shadow:0 22px 44px -26px rgba(0,0,0,.7);
  border-color:var(--card-accent, var(--gold-dim));
}
.tourney-card::before{
  content:"";
  position:absolute; top:0; left:0; right:0; height:3px;
  background:var(--card-accent, var(--border));
}
.tourney-card[data-formato="singles"]{ --card-accent:var(--magenta); }
.tourney-card[data-formato="doubles"]{ --card-accent:var(--cyan); }
.tourney-card[data-formato="ambos"]{ --card-accent:linear-gradient(90deg,var(--magenta),var(--cyan)); }

@keyframes tourneyIn{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:translateY(0); } }
.tourney-grid .tourney-card:nth-child(1){ animation-delay:.02s; }
.tourney-grid .tourney-card:nth-child(2){ animation-delay:.08s; }
.tourney-grid .tourney-card:nth-child(3){ animation-delay:.14s; }
.tourney-grid .tourney-card:nth-child(4){ animation-delay:.2s; }
.tourney-grid .tourney-card:nth-child(5){ animation-delay:.26s; }
.tourney-grid .tourney-card:nth-child(6){ animation-delay:.32s; }

/* torneo en curso: tarjeta destacada de ancho completo */
.tourney-card.is-live{
  grid-column:1 / -1;
  border-color:var(--gold-dim);
  box-shadow:0 0 0 1px rgba(231,177,10,.18), 0 26px 54px -30px rgba(231,177,10,.55);
}
.tourney-card.is-live .tourney-top h3{ font-size:clamp(22px,3vw,30px); }
.tourney-card.is-live .tourney-desc{ max-width:70ch; }
.tag--live{ position:relative; }
.tag--live::after{
  content:""; position:absolute; inset:-1px; border-radius:3px; border:1px solid var(--gold);
  animation:livePulse 1.8s ease-in-out infinite;
}
@keyframes livePulse{
  0%,100%{ opacity:.55; transform:scale(1); }
  50%{ opacity:0; transform:scale(1.18); }
}
@media (prefers-reduced-motion: reduce){
  .tourney-card{ animation:none; }
  .tag--live::after{ animation:none; display:none; }
}

/* ======================================================
   TIER LIST
   ====================================================== */
.tier-row{display:flex; border:1px solid var(--border); margin-bottom:10px; background:var(--surface);}
.tier-label{
  width:76px; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-size:30px; font-weight:700;
  color:#0E1015;
}
.tier-row[data-tier="S"] .tier-label{background:linear-gradient(160deg, var(--tier-s1), var(--tier-s2));}
.tier-row[data-tier="A"] .tier-label{background:var(--tier-a);}
.tier-row[data-tier="B"] .tier-label{background:var(--tier-b);}
.tier-row[data-tier="C"] .tier-label{background:var(--tier-c);}
.tier-row[data-tier="D"] .tier-label{background:var(--tier-d);}

.tier-mons{display:flex; flex-wrap:wrap; gap:0; flex:1;}
.mon-chip{
  display:flex; align-items:center; gap:10px; position:relative;
  padding:10px 14px; border-right:1px solid var(--border); border-bottom:1px solid var(--border);
  min-width:190px; flex:1 1 190px;
}
.mon-chip img{width:42px; height:42px; object-fit:contain; background:var(--surface-2); border-radius:4px;}
.mon-chip .mon-info{min-width:0; flex:1;}
.mon-chip .mon-name{font-weight:600; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.mon-chip .mon-note{font-size:11.5px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.mon-chip .icon-btn{flex-shrink:0;}

/* ======================================================
   EQUIPOS
   ====================================================== */
.team-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(340px,1fr)); gap:20px;}
.team-card{padding:22px;}
.team-head{display:flex; justify-content:space-between; align-items:flex-start; gap:10px; margin-bottom:6px;}
.team-card h3{font-size:20px; text-transform:uppercase;}
.team-archetype{font-family:var(--font-mono); font-size:11.5px; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.05em;}
.team-strategy{font-size:13.5px; color:var(--text-muted); margin:14px 0 16px;}
.team-slots{display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:10px;}
.slot{background:var(--surface-2); border:1px solid var(--border); padding:10px; text-align:center; position:relative;}
.slot img{width:56px; height:56px; margin:0 auto 6px; object-fit:contain;}
.slot .slot-name{font-weight:600; font-size:12.5px;}
.slot .slot-item{font-family:var(--font-mono); font-size:10.5px; color:var(--gold); margin-top:2px;}
.slot .slot-note{font-size:10.5px; color:var(--text-muted); margin-top:4px; line-height:1.3;}
.team-editbar{display:flex; gap:6px;}

/* ======================================================
   POKÉDEX
   ====================================================== */
.pokedex-toolbar{display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-bottom:22px;}
.pokedex-search{
  flex:1; min-width:220px; background:var(--surface-2); border:1px solid var(--border); color:var(--text);
  padding:11px 14px; font-family:var(--font-mono); font-size:13px;
  clip-path:polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.pokedex-search::placeholder{color:var(--text-muted);}
.pokedex-stats{font-family:var(--font-mono); font-size:12px; color:var(--text-muted); white-space:nowrap;}
.pokedex-stats b{color:var(--gold);}
.pokedex-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(118px,1fr)); gap:10px;}
.poke-card{
  background:var(--surface); border:1px solid var(--border); padding:12px 8px 10px;
  text-align:center; cursor:pointer; transition:border-color .15s, transform .15s; position:relative;
}
.poke-card:hover{border-color:var(--gold); transform:translateY(-2px);}
.poke-card img{width:52px; height:52px; margin:0 auto 6px; object-fit:contain;}
.poke-card .poke-dex{font-family:var(--font-mono); font-size:10px; color:var(--text-muted);}
.poke-card .poke-name{font-weight:600; font-size:12.5px; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.poke-card .poke-status{
  position:absolute; top:6px; right:6px; width:8px; height:8px; border-radius:50%;
  background:var(--border);
}
.poke-card.has-build .poke-status{background:var(--green);}
.pokedex-empty{color:var(--text-muted); font-size:14px; padding:30px 0; text-align:center; font-family:var(--font-mono);}

/* ======================================================
   MODAL
   ====================================================== */
.modal-overlay{
  display:none; position:fixed; inset:0; z-index:200;
  background:rgba(8,9,12,0.78); backdrop-filter:blur(3px);
  align-items:flex-start; justify-content:center; padding:5vh 16px; overflow-y:auto;
}
.modal-overlay.open{display:flex;}
.modal-box{
  background:var(--surface); border:1px solid var(--border); max-width:520px; width:100%;
  padding:28px; position:relative;
  clip-path:polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.modal-box h3{font-size:22px; text-transform:uppercase; margin-bottom:18px;}
.modal-close{
  position:absolute; top:16px; right:18px; background:none; border:none; color:var(--text-muted);
  font-size:20px; cursor:pointer; line-height:1;
}
.modal-close:hover{color:var(--text);}
.field{margin-bottom:14px;}
.field label{
  display:block; font-family:var(--font-mono); font-size:11px; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--text-muted); margin-bottom:6px;
}
.field input, .field select, .field textarea{
  width:100%; background:var(--surface-2); border:1px solid var(--border); color:var(--text);
  padding:10px 12px;
}
.field textarea{resize:vertical; min-height:56px;}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
.field-row-4{display:grid; grid-template-columns:1fr 1fr; gap:10px;}
.modal-actions{display:flex; justify-content:flex-end; gap:10px; margin-top:22px; flex-wrap:wrap;}
.modal-poke-head{display:flex; align-items:center; gap:14px; margin-bottom:18px;}
.modal-poke-head img{width:64px; height:64px; object-fit:contain; background:var(--surface-2); border-radius:6px;}
.build-view dl{display:grid; grid-template-columns:110px 1fr; gap:8px 12px; margin:0;}
.build-view dt{font-family:var(--font-mono); font-size:11px; text-transform:uppercase; color:var(--text-muted);}
.build-view dd{margin:0; font-size:14px;}
.build-empty{color:var(--text-muted); font-size:14px; font-family:var(--font-mono); text-align:center; padding:20px 0;}

/* ======================================================
   FOOTER
   ====================================================== */
footer{padding:40px 0 60px; border-top:1px solid var(--border);}
.footer-inner{display:flex; justify-content:space-between; flex-wrap:wrap; gap:14px;}
footer p{font-family:var(--font-mono); font-size:12px; color:var(--text-muted);}
footer .note{max-width:520px;}

/* ======================================================
   ADMIN-ONLY EXTRAS (usados solo en admin.html)
   ====================================================== */
.admin-banner{
  font-family:var(--font-mono); font-size:12px; letter-spacing:0.05em;
  background:rgba(231,177,10,0.1); color:var(--gold); border-bottom:1px solid var(--gold-dim);
  text-align:center; padding:8px 12px;
}
.config-box{padding:22px; margin-bottom:32px;}
.config-box h3{font-size:18px; text-transform:uppercase; margin-bottom:6px;}
.config-box .hint{font-size:13px; color:var(--text-muted); margin-bottom:16px;}
.status-line{
  font-family:var(--font-mono); font-size:12px; padding:10px 14px; margin-bottom:20px;
  border:1px solid var(--border); display:flex; align-items:center; gap:8px; flex-wrap:wrap;
}
.status-line.ok{color:var(--green); border-color:var(--green);}
.status-line.err{color:var(--red); border-color:var(--red);}
.mons-editor{display:flex; flex-direction:column; gap:10px; margin-bottom:8px;}
.mons-editor-row{
  display:grid; grid-template-columns:1fr 1fr 1fr auto; gap:8px; align-items:center;
  background:var(--surface-2); border:1px solid var(--border); padding:8px;
}
.mons-editor-row select, .mons-editor-row input{padding:8px;}
.species-list{max-height:220px; overflow-y:auto; border:1px solid var(--border); margin-top:10px;}
.species-list-row{
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  padding:8px 12px; border-bottom:1px solid var(--border); font-size:13px;
}
.species-list-row:last-child{border-bottom:none;}

/* ======================================================
   LIGA
   ====================================================== */
.liga-header{padding:22px; margin-bottom:24px; display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap;}
.liga-header h3{font-size:22px; text-transform:uppercase; margin-bottom:6px;}
.liga-sub{font-family:var(--font-mono); font-size:12px; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.05em;}
.liga-meta{display:flex; gap:18px; flex-wrap:wrap; font-family:var(--font-mono); font-size:12px; color:var(--text-muted); align-self:center;}
.liga-meta b{color:var(--gold);}

.fecha-grid{display:flex; flex-direction:column; gap:16px;}
.fecha-card{padding:20px;}
.fecha-card-head{display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; gap:10px; flex-wrap:wrap;}
.fecha-card-head h4{font-size:18px; text-transform:uppercase;}
.fecha-status{font-family:var(--font-mono); font-size:11px; letter-spacing:0.06em; text-transform:uppercase; padding:3px 10px; border-radius:3px; border:1px solid currentColor;}
.fecha-status--abierta{color:var(--gold);}
.fecha-status--completa{color:var(--green);}

.partidos-list{display:grid; grid-template-columns:repeat(auto-fill, minmax(250px,1fr)); gap:10px;}
.partido-row{background:var(--surface-2); border:1px solid var(--border); padding:12px 14px; display:flex; flex-direction:column; gap:6px;}
.partido-jugadores{display:flex; justify-content:space-between; align-items:center; gap:8px; font-weight:600; font-size:13.5px;}
.partido-jugadores .vs{color:var(--text-muted); font-family:var(--font-mono); font-size:10.5px; flex-shrink:0;}
.partido-resultado{font-family:var(--font-mono); font-size:12px; color:var(--text-muted);}
.partido-resultado b{color:var(--gold);}
.partido-pendiente{color:var(--text-muted); font-style:italic;}
.partido-ganador{color:var(--green); font-weight:700;}

.fecha-locked{position:relative; padding:34px 20px; text-align:center; opacity:.75;}
.fecha-locked .lock-icon{font-size:26px; margin-bottom:8px; color:var(--text-muted);}
.fecha-locked h4{text-transform:uppercase; margin-bottom:6px; font-size:18px;}
.fecha-locked p{font-family:var(--font-mono); font-size:12.5px; color:var(--text-muted);}

/* captura de resultados en admin */
.liga-admin-row{display:grid; grid-template-columns:1.4fr 1.2fr 110px; gap:8px; align-items:center; background:var(--surface-2); border:1px solid var(--border); padding:10px; margin-bottom:8px;}
.liga-admin-row .lbl{font-size:13px; font-weight:600;}
.liga-admin-row select, .liga-admin-row input{padding:8px;}
.playoffs-admin-row{grid-template-columns:1.6fr 1fr 100px auto;}

/* ======================================================
   SUBTÍTULOS DE SUBSECCIÓN (dentro de Liga, Playoffs, etc.)
   ====================================================== */
.subsection-title{
  font-family:var(--font-mono); font-size:12.5px; text-transform:uppercase; letter-spacing:0.1em;
  color:var(--text-muted); margin:36px 0 14px; display:flex; align-items:center; gap:8px;
}
.subsection-title::before{content:"◆"; color:var(--gold); font-size:9px;}

/* ======================================================
   TABLA GENERAL DE POSICIONES
   ====================================================== */
.standings-scroll{
  overflow-x:auto; -webkit-overflow-scrolling:touch;
  border:1px solid var(--border); background:var(--surface);
}
.standings-table{width:100%; border-collapse:collapse; min-width:460px; font-size:13.5px;}
.standings-table th, .standings-table td{padding:11px 14px; text-align:left; white-space:nowrap;}
.standings-table thead th{
  font-family:var(--font-mono); font-size:10.5px; text-transform:uppercase; letter-spacing:0.07em;
  color:var(--text-muted); background:var(--surface-2); border-bottom:1px solid var(--border);
  position:sticky; top:0;
}
.standings-table tbody tr{border-bottom:1px solid var(--border); transition:background .15s;}
.standings-table tbody tr:last-child{border-bottom:none;}
.standings-table tbody tr:hover{background:var(--surface-2);}
.standings-table td:first-child{font-family:var(--font-mono); color:var(--text-muted); width:34px;}
.standings-table tr.is-qualified{background:rgba(231,177,10,0.05);}
.standings-table tr.is-qualified td:first-child{color:var(--gold); font-weight:700;}
.standings-table .tag--live{margin-left:8px; white-space:nowrap;}

/* ======================================================
   PLAYOFFS
   ====================================================== */
.playoffs-locked{padding:38px 24px; text-align:center;}
.playoffs-locked .lock-icon{font-size:28px; margin-bottom:10px; color:var(--text-muted);}
.playoffs-locked h3{font-size:20px; text-transform:uppercase; margin-bottom:8px;}
.playoffs-locked p{font-family:var(--font-mono); font-size:12.5px; color:var(--text-muted); max-width:440px; margin:0 auto; line-height:1.6;}
.playoffs-progress{
  height:6px; background:var(--surface-2); border:1px solid var(--border);
  margin:18px auto 0; max-width:320px; overflow:hidden;
}
.playoffs-progress-bar{height:100%; background:linear-gradient(90deg, var(--gold-dim), var(--gold));}

.bracket{display:flex; gap:32px; align-items:center; overflow-x:auto; padding:10px 4px 18px;}
.bracket-round{display:flex; flex-direction:column; gap:20px; min-width:230px; justify-content:center; flex-shrink:0;}
.bracket-round--final{justify-content:space-evenly;}
.bracket-round-label{
  font-family:var(--font-mono); font-size:11px; text-transform:uppercase; letter-spacing:0.09em;
  color:var(--gold); text-align:center;
}
.bracket-round-label--3rd{margin-top:12px; color:var(--text-muted);}
.bracket-match{background:var(--surface); border:1px solid var(--border); position:relative;}
.bracket-slot{
  padding:12px 14px; font-size:13.5px; font-weight:600; display:flex; align-items:center; gap:8px;
  border-bottom:1px solid var(--border);
}
.bracket-slot:last-of-type{border-bottom:none;}
.bracket-slot .seed{font-family:var(--font-mono); font-size:10.5px; color:var(--text-muted); flex-shrink:0;}
.bracket-slot.is-winner{color:var(--green);}
.bracket-slot .pend{color:var(--text-muted); font-style:italic; font-weight:400;}
.bracket-score{
  position:absolute; top:50%; right:-13px; transform:translateY(-50%);
  background:var(--gold); color:#14161C; font-family:var(--font-mono); font-size:11px; font-weight:700;
  padding:3px 9px; border-radius:2px; white-space:nowrap; z-index:1;
}
.bracket-round--champion{align-items:center;}
.champion-card{
  min-width:160px; padding:24px 18px; text-align:center; border:1px solid var(--gold-dim);
  background:rgba(231,177,10,0.06); font-family:var(--font-display); font-size:19px; font-weight:700;
  text-transform:uppercase; color:var(--text-muted); display:flex; flex-direction:column; gap:6px; align-items:center;
}
.champion-card.is-decided{
  color:var(--gold); border-color:var(--gold);
  box-shadow:0 0 0 1px rgba(231,177,10,.2), 0 20px 40px -24px rgba(231,177,10,.6);
}
.champion-card .pend{font-family:var(--font-mono); font-size:12px; font-style:italic; text-transform:none;}

@media (max-width:900px){
  .team-grid, .tourney-grid{grid-template-columns:repeat(auto-fill, minmax(260px,1fr));}
}

@media (max-width:640px){
  .nav-inner{flex-direction:column; align-items:flex-start; gap:12px;}
  .tier-label{width:56px; font-size:22px;}
  .mon-chip{min-width:100%;}
  .field-row{grid-template-columns:1fr;}
  .mons-editor-row{grid-template-columns:1fr;}
  .liga-admin-row{grid-template-columns:1fr;}
  .playoffs-admin-row{grid-template-columns:1fr;}
  .standings-table{min-width:0; font-size:12.5px;}
  .standings-table th, .standings-table td{padding:9px 8px;}
  .bracket{flex-direction:column; align-items:stretch; gap:22px;}
  .bracket-round{min-width:0; width:100%;}
  .bracket-score{position:static; transform:none; display:inline-block; margin:6px 0 10px 14px;}
  .champion-card{width:100%;}
}

@media (max-width:420px){
  .wrap{padding:0 16px;}
  .hero{padding:52px 0 30px;}
  section{padding:44px 0;}
  .hero-badge{font-size:11px;}
}
