/* ——— Tokens ——— */
:root {
  --bg: #f4f6f8; --surface: #ffffff; --surface-2: #f1f4f7; --line: #e2e8f0; --line-2: #cbd5e1;
  --text: #0f172a; --muted: #5b6b7f; --accent: #0f5132; --accent-ink: #ffffff; --link: #0b5cad;
  --win: #15803d; --draw: #a16207; --loss: #b91c1c; --live: #dc2626; --warn-bg: #fef3c7; --warn: #92400e;
  --ok-bg: #dcfce7; --ok: #166534; --err-bg: #fee2e2; --err: #991b1b;
  --grass: #1f6f3c; --grass-2: #237a43; --chalk: rgba(255,255,255,.75);
  --team: #0f5132; --team-ink: #fff;
  --r: 12px; --r-sm: 8px; --shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1118; --surface: #121a24; --surface-2: #18222e; --line: #223040; --line-2: #2e3f52;
    --text: #e6edf5; --muted: #93a4b8; --accent: #34d399; --accent-ink: #052e1c; --link: #7cc0ff;
    --win: #22c55e; --draw: #eab308; --loss: #f87171; --warn-bg: #3a2c0a; --warn: #fcd34d;
    --ok-bg: #0f2e1d; --ok: #86efac; --err-bg: #3b1212; --err: #fca5a5;
    --grass: #164f2b; --grass-2: #195731; --shadow: none;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); font-variant-numeric: tabular-nums; }
a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 .4rem; letter-spacing: -.01em; }
h2 { font-size: 1rem; margin: 0 0 .75rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
h2 small, h1 small { font-weight: 400; color: var(--muted); font-size: .8rem; }
h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 .4rem; }
p { margin: 0 0 .6rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--surface); padding: 8px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }
code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .95em; }

/* ——— Layout ——— */
.wrap { max-width: 1240px; margin: 0 auto; padding: 20px 16px 40px; }
.wrap.wide { max-width: 1440px; }
.grid-main { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; }
.grid-main .span-all { grid-column: 1 / -1; }
.grid2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.grid-match { display: grid; gap: 16px; grid-template-columns: minmax(320px, 520px) 1fr; align-items: start; }
.stack { display: grid; gap: 16px; }
@media (max-width: 900px) { .grid-match { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.page-head { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; margin-right: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0 16px; }
.toolbar form { margin: 0; }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 4px; }
.empty { text-align: center; padding: 40px 16px; }

/* ——— Topbar ——— */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 8px 16px;
  background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: .9rem; white-space: nowrap; }
.brand b { display: block; font-size: 1rem; } .brand span { line-height: 1.1; } .brand:hover { text-decoration: none; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav a { padding: 8px 10px; border-radius: 8px; color: var(--muted); white-space: nowrap; font-weight: 500; }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.on { color: var(--text); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }
.search { position: relative; }
.search input { width: 200px; }
.search-results { position: absolute; right: 0; top: calc(100% + 6px); width: 300px; z-index: 30; }
.sr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 8px 30px rgba(0,0,0,.15); padding: 6px; }
.sr a { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 6px; color: var(--text); }
.sr a:hover { background: var(--surface-2); text-decoration: none; } .sr small { margin-left: auto; color: var(--muted); }
.sr p { padding: 8px; margin: 0; }
.usermenu { position: relative; } .usermenu summary { list-style: none; cursor: pointer; } .usermenu summary::-webkit-details-marker { display: none; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: 0 8px 30px rgba(0,0,0,.15); min-width: 220px; padding: 6px; z-index: 30; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--surface-2); text-decoration: none; }
.menu form { margin: 0; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.menu-who { padding: 6px 10px; margin: 0; font-weight: 600; } .menu-who small { display: block; font-weight: 400; color: var(--muted); }
@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; gap: 8px; } .brand span { display: none; }
  .nav { order: 3; flex-basis: 100%; } .search { flex: 1; } .search input { width: 100%; }
  .search-results { width: 100%; }
}

/* ——— Live strip ——— */
.live-strip { display: flex; gap: 14px; align-items: center; overflow-x: auto; padding: 6px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: .88rem; }
.live-strip a { display: flex; align-items: center; gap: 5px; white-space: nowrap; color: var(--text); }
.live-strip small { color: var(--live); font-weight: 600; }

/* ——— Controles ——— */
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 10px; min-height: 38px; width: 100%; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--link); outline-offset: 0; border-color: transparent; }
label { display: grid; gap: 4px; font-size: .88rem; font-weight: 600; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; } label.check input { width: auto; min-height: 0; }
.opt { font-weight: 400; color: var(--muted); font-size: .8rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
.form { display: grid; gap: 14px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
legend { font-weight: 700; margin-bottom: 8px; font-size: .95rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; min-height: 38px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--loss); border-color: currentColor; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 5px 10px; min-height: 32px; font-size: .88rem; } .btn.xs { padding: 3px 8px; min-height: 28px; font-size: .8rem; }
.btn.block { width: 100%; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg > a, .seg > button { border: 0; background: none; font: inherit; color: var(--muted); padding: 6px 12px; border-radius: 7px; cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.seg > button small { font-weight: 400; }
.seg > .on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg > a:hover { text-decoration: none; color: var(--text); }
.flash { padding: 10px 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 14px; }
.flash.error { background: var(--err-bg); color: var(--err); border-color: transparent; }
.flash.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.flash.ok code { background: rgba(255,255,255,.6); color: #052e16; font-size: 1.05rem; }
.note { background: var(--warn-bg); color: var(--warn); padding: 8px 12px; border-radius: var(--r-sm); font-size: .88rem; }

/* ——— Badges ——— */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge.soft { background: transparent; } .badge.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge.live { background: var(--live); color: #fff; border-color: transparent; }
.badge.live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .badge.live i { animation: none; } }
.pill { background: var(--team); color: var(--team-ink); padding: 1px 8px; border-radius: 999px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.fb { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; font-size: .72rem; font-weight: 800; color: #fff; margin-right: 2px; }
.fb-w { background: var(--win); } .fb-d { background: var(--draw); } .fb-l { background: var(--loss); } .fb-n { background: var(--line-2); }
.crest { object-fit: contain; flex: none; vertical-align: middle; }
.crest-ph { display: inline-grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-size: .6rem; font-weight: 700; color: var(--muted); }
.num { font-style: normal; display: inline-block; min-width: 1.8em; color: var(--muted); font-weight: 700; }

/* ——— Hero equipo ——— */
.hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px; margin-bottom: 16px; border-radius: var(--r);
  background: linear-gradient(120deg, color-mix(in srgb, var(--team) 16%, var(--surface)) 0%, var(--surface) 70%); border: 1px solid var(--line);
  border-left: 6px solid var(--team); }
.hero-txt { flex: 1; min-width: 220px; } .hero h1 { font-size: 2rem; margin: 0; }
.hero-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 6px; color: var(--muted); }
.form-badges { display: inline-flex; gap: 2px; }
.hero-meta b { color: var(--text); font-size: 1.15rem; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ——— Tarjeta de partido destacado ——— */
.card.focus { display: block; color: var(--text); border-top: 4px solid var(--team); position: relative; }
.card.focus:hover { text-decoration: none; border-color: var(--line-2); }
.card.focus.is-live { border-top-color: var(--live); }
.focus-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 8px 0; }
.focus-teams > div:not(.focus-mid) { display: grid; justify-items: center; gap: 6px; text-align: center; font-weight: 700; }
.focus-mid { display: grid; justify-items: center; gap: 4px; }
.big-score { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; } .big-score i { font-style: normal; color: var(--muted); margin: 0 4px; }
.big-time { font-size: 2rem; font-weight: 800; line-height: 1; }
.countdown { font-size: .82rem; color: var(--muted); font-weight: 600; }
.card-cta { display: block; text-align: center; margin-top: 8px; font-weight: 600; color: var(--link); font-size: .9rem; }

/* ——— KPIs, líderes, h2h ——— */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.kpis > div, .h2h-sum > div { background: var(--surface-2); border-radius: var(--r-sm); padding: 10px; display: grid; }
.kpis b, .h2h-sum b { font-size: 1.4rem; line-height: 1.1; } .kpis span, .h2h-sum span { font-size: .75rem; color: var(--muted); }
.h2h-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.leaders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; margin-bottom: 8px; }
.leaders p { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 4px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.leaders p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { .leaders { grid-template-columns: 1fr; } }
.more { margin-left: auto; font-size: .85rem; font-weight: 500; }
.loading::before { content: ""; display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin-right: 8px; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ——— Tablas ——— */
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { padding: 7px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.tbl thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 700; }
.tbl .l { text-align: left; } .tbl .r { text-align: right; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tr.me { background: color-mix(in srgb, var(--accent) 14%, transparent); font-weight: 700; }
.tbl tr.me td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.tbl td a { color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.tbl.compact th, .tbl.compact td { padding: 5px 6px; }
.tbl thead th button { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; text-transform: inherit; letter-spacing: inherit; padding: 0; }
.tbl thead th.sorted { color: var(--text); } .tbl thead th.sorted button::after { content: " ↓"; }
.tbl tr.injured td { color: var(--muted); } .tbl tr.off td { opacity: .55; }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.squad td.l small { font-size: .75rem; }
.standings.full tr[class*="zone-promotion"] td:first-child, .standings.full tr[class*="zone-champions"] td:first-child { box-shadow: inset 3px 0 0 var(--win); }
.standings.full tr[class*="zone-promotion-playoffs"] td:first-child, .standings.full tr[class*="zone-europa"] td:first-child, .standings.full tr[class*="zone-conference"] td:first-child { box-shadow: inset 3px 0 0 #2563eb; }
.standings.full tr[class*="zone-relegation"] td:first-child { box-shadow: inset 3px 0 0 var(--loss); }
.actions { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; } .actions form { margin: 0; }
@media (max-width: 640px) { .hide-sm { display: none; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 12px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }

/* ——— Lista de partidos ——— */
.match-list { display: grid; }
.match-row { display: grid; grid-template-columns: 64px minmax(0,1fr) 54px minmax(0,1fr); align-items: center; gap: 8px; padding: 8px 4px; border-bottom: 1px solid var(--line); color: var(--text); font-size: .9rem; }
.match-row:hover { background: var(--surface-2); text-decoration: none; }
.match-row.is-live { background: color-mix(in srgb, var(--live) 7%, transparent); }
.mr-date { color: var(--muted); font-size: .8rem; display: grid; line-height: 1.2; } .mr-date small { font-size: .7rem; }
.mr-team { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mr-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.mr-team.home { justify-content: flex-end; text-align: right; } .mr-team.me { font-weight: 800; }
.mr-score { text-align: center; font-weight: 600; display: grid; line-height: 1.15; } .live-min { color: var(--live); font-weight: 700; font-size: .72rem; }
@media (max-width: 520px) { .match-row { grid-template-columns: minmax(0,1fr) 50px minmax(0,1fr); } .mr-date { display: none; } }
.day-head { margin: 14px 0 4px; } .day-head:first-child { margin-top: 0; }
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.round-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.round-nav a { min-width: 34px; text-align: center; padding: 5px 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: .85rem; }
.round-nav a.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ——— Marcador del partido ——— */
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.scoreboard.is-live { border-top: 4px solid var(--live); }
.sb-team { display: grid; justify-items: center; gap: 8px; color: var(--text); font-weight: 800; font-size: 1.1rem; text-align: center; }
.sb-mid { display: grid; justify-items: center; gap: 6px; text-align: center; }
.refresh-note { margin-left: auto; }
.statbar { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 2px 8px; margin-bottom: 10px; font-size: .9rem; }
.statbar.head { font-weight: 800; font-size: .8rem; color: var(--muted); margin-bottom: 4px; } .statbar.head span:last-child { text-align: right; }
.sb-v { font-weight: 700; } .sb-v:last-of-type { text-align: right; }
.statbar > .sb-v:nth-of-type(3) { text-align: right; }
.sb-l { text-align: center; color: var(--muted); font-size: .82rem; }
.sb-track { grid-column: 1 / -1; display: flex; gap: 3px; height: 6px; }
.sb-track i { display: block; border-radius: 3px; min-width: 2px; }
.timeline { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow-y: auto; }
.ev { display: grid; grid-template-columns: 44px 26px 1fr; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .9rem; align-items: start; }
.ev-min { font-weight: 800; color: var(--muted); text-align: right; } .ev-ic { text-align: center; }
.ev-txt small { color: var(--muted); }
.ev-away .ev-txt { color: var(--text); } .ev-neutral { color: var(--muted); font-style: italic; }

/* ——— Campo ——— */
.pitch { width: 100%; height: auto; display: block; border-radius: 10px; }
.p-grass { fill: var(--grass); } .p-stripe { fill: var(--grass-2); }
.p-lines { stroke: var(--chalk); stroke-width: .35; } .p-dot { fill: var(--chalk); }
.token .tk-c { stroke: #fff; stroke-width: .35; }
.tk-n { font-size: 2.4px; font-weight: 800; text-anchor: middle; font-family: var(--font); }
.tk-name { font-size: 2.05px; font-weight: 700; text-anchor: middle; fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.55); stroke-width: .5px; font-family: var(--font); }
.tk-ev { font-size: 2.2px; } .tk-sub { font-size: 2.6px; fill: #fca5a5; font-weight: 800; }
.tk-yel { fill: #facc15; } .tk-red { fill: #ef4444; }
.pitch-legend { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; font-weight: 700; margin-bottom: 6px; flex-wrap: wrap; }
.pitch-legend i, .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(255,255,255,.6); }
.benches { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.bench { list-style: none; padding: 0; margin: 0; font-size: .86rem; } .bench li { padding: 3px 0; border-bottom: 1px dashed var(--line); }
.bench li.in { font-weight: 700; } .bench small { color: var(--muted); font-weight: 400; display: block; padding-left: 1.8em; }
.shotmap { width: 100%; height: auto; border-radius: 10px; } .sm-lbl { font-size: 3px; fill: #fff; font-weight: 700; }

/* ——— Editor de alineaciones ——— */
.editor { display: grid; grid-template-columns: minmax(300px, 540px) minmax(320px, 1fr); gap: 16px; align-items: start; }
.ed-bottom { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
@media (max-width: 900px) { .editor { grid-template-columns: 1fr; } }
.ed-pitch { position: sticky; top: 64px; }
.pitch-html { position: relative; aspect-ratio: 72 / 109; border-radius: 12px; overflow: hidden; color: var(--chalk);
  background: repeating-linear-gradient(180deg, var(--grass) 0 6.88%, var(--grass-2) 6.88% 13.76%); touch-action: manipulation; }
.pitch-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tok { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; background: none; border: 0; padding: 2px; cursor: grab; font: inherit; width: 18%; }
.tok-dot { display: grid; place-items: center; width: clamp(28px, 7.5vw, 40px); aspect-ratio: 1; border-radius: 50%; border: 2px solid #fff; font-weight: 800; font-size: clamp(.68rem, 1.9vw, .9rem); box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.tok-name { color: #fff; font-size: clamp(.64rem, 1.6vw, .78rem); font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tok.empty .tok-dot { opacity: .55; border-style: dashed; font-size: .62rem; }
.tok.sel .tok-dot { outline: 3px solid #facc15; outline-offset: 2px; }
.tok.over .tok-dot { transform: scale(1.15); outline: 3px dashed #fff; }
.ed-side .seg { margin-bottom: 12px; display: flex; } .ed-side .seg button { flex: 1; justify-content: center; }
.side-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 12px; }
.row2 { display: grid; grid-template-columns: 140px 1fr; gap: 10px; }
.slot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.slot-list li { display: grid; grid-template-columns: 46px 56px 1fr auto; gap: 6px; align-items: center; padding: 3px; border-radius: 8px; }
.slot-list.bench li { grid-template-columns: 56px 1fr auto; }
.slot-list li.sel { background: color-mix(in srgb, #facc15 22%, transparent); }
.slot-label { font-size: .72rem; font-weight: 800; color: var(--muted); text-align: center; background: var(--surface-2); border-radius: 6px; padding: 6px 0; }
.slot-list input { min-height: 34px; padding: 5px 8px; } .in-num { text-align: center; }
.bench-box summary, .squad-box summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.squad-filter { margin: 6px 0; }
.squad-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px; max-height: 340px; overflow-y: auto; }
.sq { width: 100%; display: grid; grid-template-columns: 30px 1fr auto; gap: 6px; align-items: center; text-align: left; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: .86rem; cursor: pointer; }
.sq:hover { border-color: var(--link); } .sq small { color: var(--muted); font-size: .72rem; }
.sq.used { opacity: .45; } .sq.benched { border-style: dashed; }
.press { background: var(--surface-2); border-radius: var(--r-sm); padding: 10px 12px; margin: 8px 0; font-family: Georgia, "Times New Roman", serif; font-size: .98rem; line-height: 1.5; }

/* ——— Auth / onboarding ——— */
body.auth { min-height: 100vh; display: grid; place-items: center;
  background: radial-gradient(1000px 600px at 10% -10%, color-mix(in srgb, var(--accent) 25%, transparent), transparent), var(--bg); }
body.auth main { width: 100%; }
.auth-card { width: min(420px, 100%); margin: 24px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 10px 40px rgba(0,0,0,.08); }
.auth-card.wide { width: min(520px, 100%); } .auth-card.xwide { width: min(980px, 100%); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: .9rem; } .auth-brand b { display: block; font-size: 1.1rem; }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; counter-reset: s; font-size: .8rem; }
.steps li { counter-increment: s; flex: 1; padding-top: 8px; border-top: 3px solid var(--line); color: var(--muted); font-weight: 600; }
.steps li::before { content: counter(s) ". "; } .steps li.on { border-color: var(--accent); color: var(--text); } .steps li.done { border-color: var(--win); }
.pw-meter { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; transition: width .2s; }
.pw-meter i.weak { background: var(--loss); } .pw-meter i.ok { background: var(--draw); } .pw-meter i.good { background: var(--win); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 16px; }
.team-pick { display: grid; justify-items: center; gap: 8px; padding: 14px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-align: center; transition: border-color .15s, transform .15s; }
.team-pick:hover { border-color: var(--team); transform: translateY(-1px); box-shadow: inset 0 -3px 0 var(--team); }
.team-pick.on { border-color: var(--team); box-shadow: inset 0 -3px 0 var(--team); }
.auth-card .seg { margin-top: 6px; }

/* ——— Comparador ——— */
.compare-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 16px; }
.compare-form select, .compare-form label { flex: 1; min-width: 200px; } .vs { font-weight: 800; color: var(--muted); align-self: center; }
.cmp-head { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 8px; margin-bottom: 8px; }
.cmp-head a { display: grid; justify-items: center; gap: 4px; color: var(--text); text-align: center; } .cmp-head small { color: var(--muted); }
.tbl.cmp th { color: var(--muted); font-weight: 600; font-size: .85rem; } .tbl.cmp td { font-size: 1.05rem; font-weight: 600; width: 38%; }
.tbl.cmp td.win { color: var(--win); font-weight: 800; }
.filters { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 16px; } .filters label { min-width: 200px; }

.foot { max-width: 1240px; margin: 0 auto; padding: 16px 16px 32px; font-size: .78rem; color: var(--muted); }
