:root {
  color-scheme: dark;
  --bg: #0e0c0a;
  --surface: #1a1612;
  --surface-2: #221c16;
  --surface-3: #2b231b;
  --line: #3a2f24;
  --line-strong: #5a4732;
  --ink: #efe6d6;
  --ink-2: #c7b9a3;
  --muted: #8f8270;
  --gold: #e8b04a;
  --gold-2: #f6d27a;
  --on-gold: #1b1206;
  --gold-wash: rgba(232, 176, 74, 0.10);
  --good: #3fae4f;
  --bad: #e5533d;
  --good-ink: #6fd17c;
  --bad-ink: #ff8f7a;
  --good-wash: rgba(63, 174, 79, 0.16);
  --bad-wash: rgba(229, 83, 61, 0.16);
  --lane: #1f3b22;
  --lane-2: #2a4a2c;
  --shadow: inset 0 1px 0 rgba(255, 230, 180, 0.06), 0 18px 40px -14px rgba(0, 0, 0, 0.75);
  --font-body: "Alegreya Sans", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-sm: 8px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #e9dfcb;
    --surface: #f6efdf;
    --surface-2: #efe4cc;
    --surface-3: #e6d8bb;
    --line: #d3c3a3;
    --line-strong: #b49b72;
    --ink: #23190f;
    --ink-2: #4d3d2a;
    --muted: #6e5d47;
    --gold: #8a5a00;
    --gold-2: #a8730f;
    --on-gold: #fff7e6;
    --gold-wash: rgba(138, 90, 0, 0.08);
    --good-ink: #1d6b29;
    --bad-ink: #a3241b;
    --good-wash: rgba(29, 107, 41, 0.12);
    --bad-wash: rgba(179, 38, 30, 0.12);
    --lane: #6f8f5a;
    --lane-2: #82a36b;
    --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 26px -14px rgba(60, 40, 15, 0.35);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #e9dfcb; --surface: #f6efdf; --surface-2: #efe4cc; --surface-3: #e6d8bb; --line: #d3c3a3;
  --line-strong: #b49b72; --ink: #23190f; --ink-2: #4d3d2a; --muted: #6e5d47; --gold: #8a5a00; --gold-2: #a8730f;
  --on-gold: #fff7e6; --gold-wash: rgba(138, 90, 0, 0.08); --good-ink: #1d6b29; --bad-ink: #a3241b;
  --good-wash: rgba(29, 107, 41, 0.12); --bad-wash: rgba(179, 38, 30, 0.12); --lane: #6f8f5a; --lane-2: #82a36b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: radial-gradient(1200px 600px at 50% -200px, rgba(232, 176, 74, 0.08), transparent 70%), var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

button, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; border-radius: var(--radius-sm); }

/* Topo */
.topo {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topo-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: end; justify-content: space-between; gap: 16px;
}
.marca-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.marca h1 {
  font-family: var(--font-display); font-weight: 900; font-size: 30px; line-height: 1.1;
  color: var(--gold); letter-spacing: .04em;
}
.voltar {
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px;
  transition: background .15s, color .15s;
}
.voltar:hover { background: var(--gold-wash); color: var(--gold-2); }


/* Página */
.pagina { max-width: 1100px; margin: 0 auto; padding: 24px 16px 40px; }
.aba-conteudo { display: none; }
.aba-conteudo-ativa { display: block; }
.carregando { text-align: center; color: var(--muted); padding: 48px 0; font-style: italic; }

.secao-titulo { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 16px; margin: 8px 0 14px; }
.secao-titulo h2 { font-family: var(--font-display); font-size: 20px; color: var(--ink); letter-spacing: .02em; }
.secao-titulo p { color: var(--muted); font-size: 14px; flex-basis: 100%; }
.secao-titulo + .secao-titulo, .grade-wrap + .secao-titulo { margin-top: 32px; }

.filtro { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.filtro select {
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 6px 10px; color: var(--ink);
}

/* Barra de ordenação */
.barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.barra-desc { color: var(--muted); font-size: 14px; }
.ordem { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer;
}
.chip:hover { border-color: var(--line-strong); }
.chip-ativo { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 700; }

/* Lista de jogadores */
.lista-jogadores { list-style: none; display: grid; gap: 10px; }
.jogador {
  display: grid; align-items: center; gap: 14px 20px;
  grid-template-columns: 36px minmax(150px, 1.3fr) minmax(140px, 1fr) auto auto 216px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow);
}
.jogador-topo { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.pos {
  font-family: var(--font-display); font-weight: 900; font-size: 22px; color: var(--muted); text-align: center;
}
.jogador-topo .pos { color: var(--gold); }
.nome { font-weight: 800; font-size: 17px; overflow-wrap: anywhere; }
.nome small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.wr-num { font-family: var(--font-mono); font-size: 15px; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.wr-num span { color: var(--muted); font-size: 12px; }
.barra-wr { height: 6px; border-radius: 3px; background: var(--bad-wash); overflow: hidden; margin-top: 6px; }
.barra-wr div { height: 100%; background: var(--good); border-radius: 3px; }
.contador { text-align: center; min-width: 58px; background: none; border: 1px solid transparent; border-radius: 10px; padding: 4px 6px; color: inherit; font: inherit; cursor: pointer; }
button.contador:not(:disabled):hover, button.contador[aria-expanded="true"] { border-color: var(--line-strong); background: var(--surface-3); }
button.contador:disabled { cursor: default; opacity: .75; }
button.contador:not(:disabled) b { text-decoration: underline dotted; text-underline-offset: 4px; }
.jogos-do-tipo { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 10px; display: grid; gap: 6px; }
.jogos-tit { margin: 0 0 2px; font-size: 13px; color: var(--muted); }
.jogo-tipo { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; background: var(--surface-3); color: inherit; text-decoration: none; }
.jogo-tipo:hover { outline: 1px solid var(--gold); }
.jogo-tipo img, .jogo-tipo .sem-heroi { width: 48px; height: 27px; border-radius: 4px; object-fit: cover; background: var(--surface-2); }
.jogo-tipo b { display: block; font-size: 14px; }
.jogo-tipo small { color: var(--muted); font-size: 12px; }
.jogo-tipo em { font-style: normal; font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.jogo-tipo .seta { font-size: 12px; color: var(--gold); white-space: nowrap; }
@media (max-width: 560px) { .jogo-tipo { grid-template-columns: 48px minmax(0, 1fr) auto; } .jogo-tipo .seta { display: none; } }
.contador b { display: block; font-family: var(--font-mono); font-size: 20px; line-height: 1.1; }
.contador span { font-size: 12px; color: var(--muted); }
.contador-culpa b { color: var(--bad-ink); }
.contador-craque b { color: var(--good-ink); }
.forma { display: flex; gap: 4px; flex-wrap: wrap; }
.forma-legenda { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; justify-content: space-between; gap: 8px; }
.ponto {
  width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; font-size: 11px; line-height: 1;
}
a.ponto { text-decoration: none; transition: transform .12s; }
a.ponto:hover { transform: translateY(-2px) scale(1.15); outline: 1px solid var(--gold); }
.ponto-v { background: var(--good-wash); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--good) 50%, transparent); }
.ponto-d { background: var(--bad-wash); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 50%, transparent); }
.mmr-pos { color: var(--good-ink); }
.mmr-neg { color: var(--bad-ink); }
.selo {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
  vertical-align: 2px;
}
.selo-culpado { background: var(--bad-wash); color: var(--bad-ink); }
.selo-craque { background: var(--good-wash); color: var(--good-ink); }

/* Grade de sinergia */
.grade-wrap { overflow-x: auto; }
.grade { border-collapse: separate; border-spacing: 4px; margin: 0 auto; }
.grade th {
  font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 4px 6px; max-width: 110px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.grade thead th { writing-mode: vertical-rl; transform: rotate(180deg); text-align: left; height: 110px; vertical-align: bottom; }
.grade tbody th { text-align: right; }
.casa {
  width: 64px; height: 52px; border-radius: var(--radius-sm); text-align: center; font-family: var(--font-mono);
  font-size: 15px; font-weight: 500; cursor: pointer; border: 1px solid transparent; line-height: 1.15;
}
.casa small { display: block; font-size: 11px; opacity: .75; }
.casa:hover { border-color: var(--gold); }
.casa-vazia { background: var(--surface); color: var(--muted); cursor: default; }
.casa-vazia:hover { border-color: transparent; }
.casa-eu { background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 4px, var(--surface-2) 4px, var(--surface-2) 8px); cursor: default; }
.casa-eu:hover { border-color: transparent; }

/* Cartões */
.cartoes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); }
.cartao {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
  scroll-margin-top: 130px;
}
.cartao-poucos { opacity: .72; }
.cartao-destaque { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(232, 176, 74, .45), 0 0 28px rgba(232, 176, 74, .22); }
.cartao-topo { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.cartao-titulo { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.25; }
.cartao-sub { color: var(--muted); font-size: 14px; }
.wr-grande { font-family: var(--font-mono); font-size: 28px; font-weight: 500; line-height: 1; }
.bom { color: var(--good-ink); }
.ruim { color: var(--bad-ink); }
.bloco-titulo {
  margin: 16px 0 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

/* Lane: faixa com os heróis da dupla em cada partida */
.lane {
  position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 12px 10px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--lane-2), var(--lane));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), inset 0 6px 16px -8px rgba(0, 0, 0, .5);
  scrollbar-width: thin;
}
.lane-vazia { color: var(--ink-2); font-size: 14px; padding: 4px; }
.par {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: rgba(0, 0, 0, .28); border-radius: var(--radius-sm); padding: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.par-v { box-shadow: inset 0 -3px 0 var(--good), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.par-d { box-shadow: inset 0 -3px 0 var(--bad), inset 0 0 0 1px rgba(255, 255, 255, .06); opacity: .8; }
.par-herois { display: flex; gap: 3px; }
.par-rotulo { font-family: var(--font-mono); font-size: 11px; color: #efe6d6; }
.heroi {
  width: 56px; height: 32px; border-radius: 4px; object-fit: cover; background: #000; display: block;
}
.heroi-g { width: 72px; height: 40px; }
.heroi-falta {
  width: 56px; height: 32px; border-radius: 4px; background: rgba(0, 0, 0, .4); color: #c7b9a3;
  display: grid; place-items: center; font-size: 10px; text-align: center; overflow: hidden;
}
.legenda-par { display: flex; justify-content: space-between; gap: 4px; width: 100%; font-size: 11px; color: #c7b9a3; }

.sinergias { display: grid; gap: 8px; }
.sinergia {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm);
  background: var(--surface-3);
}
.sinergia-herois { display: flex; gap: 4px; flex: none; }
.sinergia-txt { flex: 1; font-size: 14px; min-width: 0; }
.sinergia-txt b { display: block; }
.sinergia-num { font-family: var(--font-mono); font-size: 14px; text-align: right; }

.rotas { display: flex; flex-wrap: wrap; gap: 6px; }
.rota {
  font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2);
}
.rota b { color: var(--ink); }
.rota-boa { background: var(--good-wash); }
.rota-ruim { background: var(--bad-wash); }

/* Composições */
.membros { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.membro { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--gold-wash); color: var(--gold-2); }
.formacao { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.slot {
  border-radius: var(--radius-sm); padding: 6px 4px; text-align: center; background: var(--surface-3);
  min-width: 0;
}
.slot span { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.slot b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-vazio b { color: var(--muted); font-weight: 400; }
.formacao-num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-top: 6px; }
.time-partida { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.time-partida:first-child { border-top: 0; }
.time-res { flex: none; width: 22px; text-align: center; font-family: var(--font-mono); font-weight: 500; }
.time-herois { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.time-heroi { flex: none; text-align: center; font-size: 11px; color: var(--muted); max-width: 64px; }
.time-heroi span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.time-heroi .heroi { width: 56px; height: 32px; }

/* Meta */
.insight { border-left: 3px solid var(--gold); padding: 8px 12px; margin-top: 10px; background: var(--surface-3); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.insight p { font-size: 15px; }
.insight-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--muted); }

.rodape { max-width: 1100px; margin: 0 auto; padding: 0 16px 32px; color: var(--muted); font-size: 13px; text-align: right; }

@media (max-width: 860px) {
  .jogador {
    grid-template-columns: 34px 1fr auto auto;
    grid-template-areas: "pos nome culpa craque" "pos wr wr wr" "pos forma forma forma" "lista lista lista lista";
    padding: 12px 14px; gap: 10px 14px;
  }
  .jogador .pos { grid-area: pos; align-self: start; font-size: 18px; }
  .jogador .nome { grid-area: nome; }
  .jogador .col-wr { grid-area: wr; }
  .jogador .contador-culpa { grid-area: culpa; }
  .jogador .contador-craque { grid-area: craque; }
  .jogador .col-forma { grid-area: forma; }
  .jogador .jogos-do-tipo { grid-area: lista; }
  .casa { width: 48px; height: 44px; font-size: 13px; }
  .grade thead th { height: 90px; }
  .formacao { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .slot b { font-size: 12px; }
}

/* Feedback */
.fb-botao {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; min-height: 44px; padding: 10px 16px;
  border-radius: 999px; border: 1px solid var(--gold); background: var(--gold); color: var(--on-gold);
  font-weight: 800; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.fb-caixa {
  position: fixed; right: 16px; bottom: 72px; z-index: 60; width: min(340px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--radius);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.fb-caixa[hidden] { display: none; }
.fb-caixa strong { font-family: var(--font-display); }
.fb-caixa textarea, .fb-caixa input {
  width: 100%; padding: 8px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--surface-2); color: inherit; font: inherit; resize: vertical;
}
.fb-enviar {
  min-height: 44px; border-radius: var(--radius-sm); border: 0; background: var(--gold); color: var(--on-gold);
  font-weight: 800; cursor: pointer;
}
.fb-enviar:disabled { opacity: .6; cursor: wait; }
.fb-status { font-size: 14px; min-height: 1.2em; color: var(--ink-2); }
.rodape { padding-bottom: 80px; }

/* Abas: blocos grandes */
.abas {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin: 0 0 28px;
}
.aba {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 108px; padding: 14px 8px 12px; cursor: pointer; text-align: center;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s, box-shadow .18s, background .18s;
}
.aba:hover { transform: translateY(-3px); border-color: var(--gold); }
.aba:active { transform: translateY(0) scale(.98); }
.aba-icone { font-size: 30px; line-height: 1.1; transition: transform .25s ease; }
.aba:hover .aba-icone { transform: scale(1.15) rotate(-6deg); }
.aba-nome { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); line-height: 1.2; }
.aba-sub { font-size: 13px; color: var(--muted); line-height: 1.25; }
.aba-ativa {
  background: linear-gradient(160deg, var(--gold-2), var(--gold) 60%);
  border-color: var(--gold-2);
  box-shadow: 0 0 0 1px rgba(232, 176, 74, .5), 0 10px 30px -6px rgba(232, 176, 74, .55);
  transform: translateY(-3px);
}
.aba-ativa .aba-nome, .aba-ativa .aba-sub { color: var(--on-gold); }
.aba-ativa .aba-icone { animation: pulo .5s ease; }
.aba-novo {
  position: absolute; top: -9px; right: 8px; padding: 1px 8px; border-radius: 999px;
  background: var(--bad); color: #fff; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 0 0 0 rgba(229, 83, 61, .6); animation: brilho 1.8s ease-out infinite;
}
@keyframes pulo { 0% { transform: scale(1); } 40% { transform: scale(1.35) rotate(-8deg); } 100% { transform: scale(1); } }
@keyframes brilho { 0% { box-shadow: 0 0 0 0 rgba(229, 83, 61, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(229, 83, 61, 0); } }
.aba-conteudo-ativa { animation: entrar .3s ease; }
@keyframes entrar { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Montador de time */
.escolha { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.escolha button {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-2); font-weight: 700; font-size: 15px;
  transition: background .15s, color .15s, transform .15s;
}
.escolha button::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 2px solid currentColor; }
.escolha button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.escolha button[aria-pressed="true"]::before { background: currentColor; box-shadow: inset 0 0 0 2px var(--gold); }
.escolha button:hover { transform: translateY(-1px); }
.escolha-aviso { flex-basis: 100%; font-size: 13px; color: var(--bad-ink); min-height: 1.2em; }

.time {
  background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--gold);
  border-radius: var(--radius); padding: 18px; box-shadow: 0 0 0 1px rgba(232, 176, 74, .3), 0 0 32px rgba(232, 176, 74, .14);
}
.time-cab { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.time-cab h3 { font-family: var(--font-display); font-size: 19px; color: var(--gold); }
.time-cab p { font-size: 14px; color: var(--muted); }
.escalacao { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pick {
  border-radius: var(--radius-sm); background: var(--surface-3); padding: 10px 8px 12px; text-align: center; min-width: 0;
  animation: entrar .35s ease both;
}
.pick:nth-child(2) { animation-delay: .06s; } .pick:nth-child(3) { animation-delay: .12s; }
.pick:nth-child(4) { animation-delay: .18s; } .pick:nth-child(5) { animation-delay: .24s; }
.pick-pos { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pick .heroi { width: 100%; max-width: 128px; height: auto; aspect-ratio: 16 / 9; margin: 6px auto; border-radius: 6px; }
.pick-heroi { font-weight: 800; font-size: 15px; line-height: 1.2; }
.pick-quem { font-size: 14px; color: var(--gold-2); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.pick-alt { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.3; }
.pick-vazio { opacity: .5; }
.sinergia-time { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.sinergia-time b { color: var(--good-ink); }
.time-nota { margin-top: 10px; font-size: 13px; color: var(--muted); }

.cartoes-pool { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.pool-lista { display: grid; gap: 6px; }
.pool-item { display: flex; align-items: center; gap: 10px; }
.pool-item .heroi { flex: none; }
.pool-txt { flex: 1; min-width: 0; font-size: 14px; }
.pool-txt b { display: block; }
.pool-txt span { color: var(--muted); font-size: 13px; }
.pool-num { font-family: var(--font-mono); font-size: 13px; text-align: right; }
.slot .heroi { width: 100%; max-width: 72px; height: auto; aspect-ratio: 16 / 9; margin: 4px auto 2px; border-radius: 4px; }
.slot small { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 860px) {
  .abas { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .aba { min-height: 92px; }
  .aba-icone { font-size: 26px; }
  .aba-nome { font-size: 14px; }
  .aba-sub { font-size: 11.5px; }
  .escalacao { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Meta do patch */
.cartoes-meta { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.meta-topo { display: flex; align-items: center; gap: 12px; }
.meta-pos { font-family: var(--font-display); font-weight: 900; font-size: 20px; color: var(--gold); min-width: 22px; text-align: center; }
.meta-nome { flex: 1; min-width: 0; }
.meta-nome b { display: block; font-size: 17px; }
.meta-nome span { font-size: 13px; color: var(--muted); }
.meta-wr { text-align: right; }
.meta-wr b { display: block; font-family: var(--font-mono); font-size: 22px; font-weight: 500; line-height: 1.1; }
.meta-wr span { font-size: 12px; color: var(--muted); }
.build { display: grid; gap: 6px; }
.fase { display: flex; align-items: center; gap: 8px; }
.fase > span { width: 56px; flex: none; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fase > div { display: flex; flex-wrap: wrap; gap: 4px; }
.item { width: 44px; height: 32px; border-radius: 4px; object-fit: cover; background: #000; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.no-grupo { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.no-grupo span { font-weight: 700; }
.subindo { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.subindo-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px;
}
.subindo-item .heroi { width: 48px; height: 27px; border-radius: 999px; }
.subindo-item small { color: var(--muted); }
.cartoes-listas { margin-top: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pool-num small { color: var(--muted); font-size: 11px; }
.insight a { color: var(--gold-2); }

/* Atualizar agora */
.atualizacao {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin: -8px 0 18px; padding: 10px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.att-quando { font-size: 15px; color: var(--ink-2); }
.att-quando b { color: var(--ink); font-family: var(--font-mono); font-weight: 500; }
.att-quando span { color: var(--muted); font-size: 13px; }
.att-acao { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.att-botao {
  min-height: 40px; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 800;
  background: var(--gold); color: var(--on-gold); border: 1px solid var(--gold);
  transition: transform .15s, opacity .15s;
}
.att-botao:hover:not(:disabled) { transform: translateY(-1px); }
.att-botao:disabled { cursor: not-allowed; opacity: .5; background: var(--surface-2); color: var(--ink-2); border-color: var(--line-strong); }
.att-status { font-size: 13px; color: var(--muted); }
.att-pendentes { flex-basis: 100%; order: 3; font-size: 13px; color: var(--muted); }
.att-pendentes:empty { display: none; }

/* ---------- Período ---------- */
.periodo {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px 10px; margin: 0 0 18px; box-shadow: var(--shadow);
}
.periodo-topo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.periodo-topo label { font-size: 15px; color: var(--ink-2); }
.periodo-topo b { font-family: var(--font-display); color: var(--gold-2); font-size: 18px; }
.periodo-info { color: var(--muted); font-size: 13px; font-family: var(--font-mono); }
.periodo input[type="range"] {
  --p: 100%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; margin: 14px 0 6px; border-radius: 4px; cursor: pointer;
  background: linear-gradient(90deg, var(--gold) var(--p), var(--surface-3) var(--p));
}
.periodo input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-2);
  border: 3px solid var(--on-gold); box-shadow: 0 0 0 2px var(--gold), 0 2px 8px rgba(0, 0, 0, .5); transition: transform .15s;
}
.periodo input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--gold-2); border: 3px solid var(--on-gold); box-shadow: 0 0 0 2px var(--gold);
}
.periodo input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.periodo input[type="range"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.periodo-marcas { display: flex; justify-content: space-between; gap: 2px; }
.periodo-marcas button {
  background: none; border: 0; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; padding: 2px 0;
  flex: 1; text-align: center;
}
.periodo-marcas button:first-child { text-align: left; }
.periodo-marcas button:last-child { text-align: right; }
.periodo-marcas button.ativo { color: var(--gold-2); font-weight: 800; }
@media (max-width: 520px) { .periodo-marcas button { font-size: 10.5px; } }

/* ---------- Duo lane ---------- */
.duo-lane { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; }
.duo-lane-num { display: flex; flex-direction: column; line-height: 1.1; }
.duo-lane-num b { font-family: var(--font-mono); font-size: 24px; font-weight: 500; }
.duo-lane-num span { font-size: 12px; color: var(--muted); }
.duo-lane-barra { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--surface-3); }
.dl-v { background: var(--good); }
.dl-e { background: var(--line-strong); }
.dl-d { background: var(--bad); }
.duo-lane-legenda { grid-column: 1 / -1; display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.duo-lane-rotas { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.par-lane { font-family: var(--font-mono); font-size: 10.5px; text-align: center; border-radius: 4px; padding: 0 4px; }
.par-lane-v { color: #6fd17c; }
.par-lane-d { color: #ff8f7a; }
.par-lane-e { color: #c7b9a3; }

/* ---------- Corrida de elo ---------- */
.regua-wrap {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px 34px 0; margin-bottom: 14px; overflow-x: auto;
}
.regua { position: relative; min-width: 560px; }
.faixa {
  position: absolute; bottom: 0; height: 26px; border-top: 3px solid var(--line-strong);
  background: linear-gradient(180deg, var(--surface-2), transparent);
}
.faixa + .faixa { box-shadow: inset 2px 0 0 var(--line-strong); }
.faixa i { position: absolute; top: -3px; width: 1px; height: 7px; background: var(--line-strong); }
.faixa-nome {
  position: absolute; left: 50%; top: 2px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--ink-2); white-space: nowrap;
}
.faixa-nome img { width: 22px; height: 22px; }
.faixa-1 { border-top-color: #8c7853; } .faixa-2 { border-top-color: #6f8f6b; } .faixa-3 { border-top-color: #5f9aa6; }
.faixa-4 { border-top-color: #4f8fc9; } .faixa-5 { border-top-color: #8d6bd8; } .faixa-6 { border-top-color: #4fb3e8; }
.faixa-7 { border-top-color: #e8b04a; } .faixa-8 { border-top-color: #e5533d; }
.palito {
  position: absolute; bottom: 26px; width: 0; z-index: 1;
  transition: left 1.8s cubic-bezier(.3, .05, .2, 1);
}
.palito:hover { z-index: 3; }
.palito-haste {
  position: absolute; bottom: 0; left: -1.5px; width: 3px; height: var(--alto); border-radius: 2px;
  background: linear-gradient(180deg, var(--cor), color-mix(in srgb, var(--cor) 30%, transparent));
}
.palito::after {
  content: ""; position: absolute; bottom: -5px; left: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cor); box-shadow: 0 0 0 2px var(--surface);
}
.palito-cara {
  position: absolute; bottom: var(--alto); left: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.palito-cara .elo-avatar { width: 40px; height: 40px; box-shadow: 0 0 0 3px var(--cor), 0 4px 12px rgba(0, 0, 0, .5); transition: transform .2s; }
.palito:hover .elo-avatar { transform: scale(1.25); }
.palito-nome {
  font-size: 11.5px; font-weight: 800; white-space: nowrap; max-width: 110px; overflow: hidden; text-overflow: ellipsis;
  background: var(--surface); padding: 0 5px; border-radius: 6px; order: -1; color: var(--ink);
}
.rastro {
  position: absolute; height: 4px; border-radius: 2px; transform: scaleX(0); opacity: .75; z-index: 0;
  transition: transform 1.8s cubic-bezier(.3, .05, .2, 1);
}
.rastro.sobe { background: linear-gradient(90deg, transparent, var(--good)); transform-origin: left; }
.rastro.desce { background: linear-gradient(270deg, transparent, var(--bad)); transform-origin: right; }
.rastro-vai { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .palito, .rastro { transition: none; } }

.elo-lista { list-style: none; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.elo-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--cor);
  animation: elo-entra .45s both;
}
.elo-item:nth-child(2) { animation-delay: .05s; } .elo-item:nth-child(3) { animation-delay: .1s; }
.elo-item:nth-child(4) { animation-delay: .15s; } .elo-item:nth-child(5) { animation-delay: .2s; }
.elo-item:nth-child(n+6) { animation-delay: .25s; }
@keyframes elo-entra { from { opacity: 0; transform: translateY(6px); } }
.elo-lider { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); border-left-color: var(--cor); }
.elo-pos { font-family: var(--font-display); font-weight: 900; color: var(--gold); width: 24px; text-align: center; font-size: 18px; }
.elo-avatar { border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--cor); object-fit: cover; }
.elo-inicial { display: grid; place-items: center; background: var(--cor); color: var(--on-gold); font-weight: 800; font-size: 18px; }
.elo-nome { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.elo-nome b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.elo-medalha { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.elo-mmr { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.elo-delta { text-align: right; display: flex; flex-direction: column; }
.elo-delta b { font-family: var(--font-mono); font-size: 20px; font-weight: 500; }
.elo-delta span { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- Trocar pick ---------- */
.pick-trocar {
  position: relative; display: block; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; color: inherit;
}
.pick-trocar .heroi { transition: transform .15s, box-shadow .15s; }
.pick-trocar:hover .heroi, .pick-aberto .pick-trocar .heroi { transform: scale(1.05); box-shadow: 0 0 0 2px var(--gold); }
.pick-trocar-txt {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); font-size: 11px; font-weight: 800;
  background: rgba(0, 0, 0, .7); color: #f6d27a; padding: 1px 7px; border-radius: 999px; opacity: 0; transition: opacity .15s;
}
.pick-trocar:hover .pick-trocar-txt, .pick-trocar:focus-visible .pick-trocar-txt, .pick-aberto .pick-trocar-txt { opacity: 1; }
@media (hover: none) { .pick-trocar-txt { opacity: .85; } }
.pick-fixo { box-shadow: inset 0 0 0 2px var(--gold); }
.pick-aberto { box-shadow: inset 0 0 0 2px var(--gold-2), 0 0 18px rgba(232, 176, 74, .25); }
.pick-soltar { margin-top: 6px; background: none; border: 1px solid var(--line-strong); color: var(--muted); border-radius: 999px; font: inherit; font-size: 11px; padding: 1px 9px; cursor: pointer; }
.pick-soltar:hover { color: var(--ink); border-color: var(--gold); }
.opcoes {
  margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2);
  border: 1px solid var(--line-strong); animation: elo-entra .25s both;
}
.opcoes-cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.opcoes-fechar { background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; padding: 2px 6px; }
.opcoes-lista { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.opcao {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font: inherit; cursor: pointer; text-align: center;
  transition: border-color .15s, transform .15s;
}
.opcao:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-2px); }
.opcao:disabled { opacity: .4; cursor: not-allowed; }
.opcao-atual { border-color: var(--gold); background: var(--gold-wash); }
.opcao .heroi { width: 100%; max-width: 96px; height: auto; aspect-ratio: 16 / 9; border-radius: 4px; }
.opcao b { font-size: 13px; line-height: 1.2; }
.opcao span { font-size: 11.5px; color: var(--muted); }
.opcao .opcao-num { font-family: var(--font-mono); font-size: 11.5px; }
.opcao .opcao-num.bom { color: var(--good-ink); } .opcao .opcao-num.ruim { color: var(--bad-ink); }
.selo-meta { display: inline-block; margin-top: 4px; font-size: 11px; font-family: var(--font-mono); color: var(--muted); }
.opcao .selo-meta { margin-top: 0; }
.opcao .selo-meta.bom { color: var(--good-ink); } .opcao .selo-meta.ruim { color: var(--bad-ink); }

/* ---------- Traços e sinergias (estilo TFT) ---------- */
.pick-trocar, .opcao-img { position: relative; display: block; }
.power {
  position: absolute; top: 2px; right: 4px; font-size: 13px; line-height: 1; padding: 3px 5px; border-radius: 999px;
  background: rgba(10, 8, 4, .82); box-shadow: 0 0 0 1px rgba(246, 210, 122, .55);
}
.power-2 { box-shadow: 0 0 0 1px #f6d27a, 0 0 12px rgba(246, 210, 122, .8); animation: power-pulsa 1.8s ease-in-out infinite; }
.power-fraco { box-shadow: 0 0 0 1px rgba(120, 180, 255, .6); }
@keyframes power-pulsa { 50% { box-shadow: 0 0 0 1px #f6d27a, 0 0 20px rgba(246, 210, 122, 1); } }
.opcao-img .power { top: 0; right: 0; font-size: 11px; padding: 2px 4px; }
.tracos { display: flex; justify-content: center; flex-wrap: wrap; gap: 3px; margin: 4px 0 2px; }
.traco {
  width: 24px; height: 24px; display: grid; place-items: center; font-size: 13px; border-radius: 6px;
  background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: help;
}
.opcao .traco { width: 20px; height: 20px; font-size: 11px; }
.sinergias-time { margin-top: 14px; }
.sinergia-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sinergia-chip {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line); min-width: 150px;
}
.sinergia-chip b { display: block; font-size: 13px; line-height: 1.2; }
.sinergia-icone {
  width: 32px; height: 32px; display: grid; place-items: center; font-size: 17px; flex: none;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: var(--surface-3);
}
.nivel-bronze { border-color: #b0773f; } .nivel-bronze .sinergia-icone { background: linear-gradient(135deg, #c98a4f, #7a4a22); }
.nivel-prata { border-color: #b9c3cc; } .nivel-prata .sinergia-icone { background: linear-gradient(135deg, #e3e9ee, #7b8791); }
.nivel-ouro { border-color: #f6d27a; box-shadow: 0 0 14px rgba(246, 210, 122, .3); }
.nivel-ouro .sinergia-icone { background: linear-gradient(135deg, #ffe7a3, #c48a1c); }
.inativa { opacity: .5; }
.pips { display: flex; gap: 3px; margin-top: 2px; }
.pips i { font-style: normal; font-family: var(--font-mono); font-size: 10px; color: var(--muted); padding: 0 4px; border-radius: 3px; background: var(--surface-3); }
.pips i.on { color: var(--on-gold); background: var(--gold); }
.alertas-time { list-style: none; margin-top: 10px; display: grid; gap: 4px; font-size: 13px; color: var(--bad-ink); }
.visitas { margin-bottom: 4px; cursor: help; }
.visitas-online { color: var(--good-ink); font-weight: 700; }
.visitas-online i {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); margin-right: 5px;
  box-shadow: 0 0 0 0 var(--good); animation: online-pulsa 2s infinite;
}
@keyframes online-pulsa { 70% { box-shadow: 0 0 0 6px transparent; } }

/* ---------- Time fechado ---------- */
.tf-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; }
.tf-placar-num { display: flex; align-items: baseline; gap: 10px; }
.tf-placar-num b { font-family: var(--font-mono); font-size: 34px; font-weight: 500; }
.tf-placar-num span { color: var(--muted); font-size: 14px; }
.tf-forma { display: flex; gap: 4px; }
.tf-forma i { width: 14px; height: 22px; border-radius: 3px; background: var(--good); }
.tf-forma i.d { background: var(--bad); opacity: .85; }
.tf-diagnostico { margin-bottom: 14px; border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.tf-diagnostico ul { list-style: none; margin: 10px 0 8px; display: grid; gap: 8px; font-size: 15px; line-height: 1.4; }
.tf-diagnostico li button { font: inherit; font-weight: 800; border: 0; border-radius: 999px; padding: 1px 10px; cursor: pointer; }
.tf-diagnostico li.ruim button { background: var(--bad-wash); color: var(--bad-ink); }
.tf-diagnostico li.bom button { background: var(--good-wash); color: var(--good-ink); }
.tf-diagnostico li b { color: var(--ink); }
.tf-filtros { display: grid; gap: 10px; margin-bottom: 16px; }
.tf-grupo { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: start; }
.tf-grupo-nome { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 7px; }
@media (max-width: 600px) { .tf-grupo { grid-template-columns: 1fr; gap: 4px; } .tf-grupo-nome { padding-top: 0; } }
.tf-marcadores { display: flex; flex-wrap: wrap; gap: 6px; }
.tf-marcador {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font: inherit; font-size: 13px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); cursor: pointer; transition: transform .15s, border-color .15s;
}
.tf-marcador:hover { transform: translateY(-1px); border-color: var(--gold); }
.tf-marcador small { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); margin-left: 2px; }
.tf-marcador small.bom { color: var(--good-ink); } .tf-marcador small.ruim { color: var(--bad-ink); }
.tm-draft { border-color: color-mix(in srgb, #4f9dff 55%, var(--line)); }
.tm-inimigo { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); border-style: dashed; }
.tm-pessoa { border-color: color-mix(in srgb, #c38bf0 55%, var(--line)); }
.tf-marcador.ativo { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.tf-marcador.ativo small { color: var(--on-gold); }
.tf-lista-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 10px; color: var(--muted); font-size: 14px; scroll-margin-top: 80px; }
.tf-lista-cab b { color: var(--ink); }
.tf-lista { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.tf-jogo {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--good); border-radius: var(--radius); padding: 10px 12px; min-width: 0;
}
.tf-d { border-left-color: var(--bad); }
.tf-res { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.tf-res b { font-family: var(--font-display); font-size: 26px; line-height: 1; }
.tf-v .tf-res b { color: var(--good-ink); } .tf-d .tf-res b { color: var(--bad-ink); }
.tf-res small { font-size: 11.5px; color: var(--muted); }
.tf-meio { min-width: 0; display: grid; gap: 8px; }
.tf-times { display: flex; align-items: center; gap: 10px; overflow-x: auto; scrollbar-width: thin; }
.tf-lado { display: flex; gap: 6px; flex: none; }
.tf-eles { opacity: .6; }
.tf-eles .heroi-mini { width: 44px; height: 25px; }
.tf-vs { font-family: var(--font-display); color: var(--muted); flex: none; font-size: 13px; }
.tf-heroi { display: flex; flex-direction: column; align-items: center; width: 62px; font-size: 11px; color: var(--muted); text-align: center; }
.tf-eles .tf-heroi { width: 46px; }
.tf-heroi small { max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-kda { font-family: var(--font-mono); color: var(--ink-2); }
.heroi-mini { width: 60px; height: 34px; border-radius: 4px; }
.tf-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.tf-linha .tf-marcador { font-size: 12px; padding: 2px 8px; }
.tf-ouro { font-family: var(--font-mono); font-size: 12px; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); }
.tf-ouro small { color: var(--muted); margin-right: 3px; }
.tf-julgar { align-self: start; text-decoration: none; font-size: 18px; opacity: .7; }
.tf-julgar:hover { opacity: 1; }
@media (max-width: 600px) { .tf-jogo { grid-template-columns: 44px minmax(0, 1fr); } .tf-julgar { display: none; } .tf-res b { font-size: 20px; } }

/* ---------- Time fechado: gráficos ---------- */
.tf-graficos { display: grid; gap: 14px; margin-bottom: 20px; }
.tf-grafico { min-width: 0; }
.tf-graf-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.tf-graf-cab h3 { font-family: var(--font-display); font-size: 18px; color: var(--gold-2); }
.tf-graf-sub { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.tf-legenda { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.tf-legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.tf-grafico svg { width: 100%; height: auto; display: block; margin-top: 8px; overflow: visible; }
.tf-eixo { fill: var(--muted); font: 11px var(--font-mono); }
.tf-eixo-t { fill: var(--muted); font: 11.5px var(--font-body); }
.tf-eixo-l { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 5; }
.tf-zero { stroke: var(--line-strong); stroke-width: 1.5; }
.tf-media { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 6 5; }
.tf-media-t { fill: var(--gold); font: 11.5px var(--font-mono); }
.tf-corte { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.q-cara, .q-arma, .q-vicio { pointer-events: none; }
.q-cara { fill: rgba(63, 174, 79, .07); } .q-arma { fill: rgba(63, 174, 79, .12); } .q-vicio { fill: rgba(229, 83, 61, .13); }
.tf-quad-t { font: 700 12px var(--font-body); letter-spacing: .08em; text-transform: uppercase; fill: var(--muted); }
.tf-quad-t.bom { fill: var(--good-ink); } .tf-quad-t.ruim { fill: var(--bad-ink); }
.tf-bolha { cursor: pointer; transition: opacity .2s; }
.tf-bolha circle { fill-opacity: .35; stroke-width: 2; stroke: currentColor; transition: fill-opacity .15s; }
.tf-bolha circle { stroke: var(--ink-2); stroke-opacity: .5; }
.tf-bolha:hover circle, .tf-bolha:focus circle, .tf-bolha.ativa circle { fill-opacity: .75; stroke: var(--gold-2); stroke-opacity: 1; }
.tf-bolha.apagada { opacity: .25; }
.tf-bolha-ic { font-size: 14px; pointer-events: none; }
.tf-bolha-nome { fill: var(--ink); font: 600 12px var(--font-body); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; pointer-events: none; }
.tf-leituras { display: grid; gap: 6px; margin-top: 8px; }
.tf-leituras p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.tf-leituras b { min-width: 74px; }
.tf-leituras p.ruim b { color: var(--bad-ink); } .tf-leituras p.bom b { color: var(--good-ink); }
.tf-leituras button { font: inherit; font-size: 13px; padding: 2px 10px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); }
.tf-leituras button small { font-family: var(--font-mono); color: var(--muted); }
.tf-leituras p.ruim button { border-color: color-mix(in srgb, var(--bad) 60%, var(--line)); }
.tf-leituras p.bom button { border-color: color-mix(in srgb, var(--good) 60%, var(--line)); }
.tf-grade-wrap { overflow-x: auto; margin-top: 10px; }
.tf-grade { border-collapse: separate; border-spacing: 3px; font-size: 13px; }
.tf-grade th { font-weight: 600; color: var(--ink-2); vertical-align: bottom; }
.tf-grade thead th { min-width: 74px; text-align: center; padding: 0 2px 4px; }
.tf-grade thead th span { display: block; font-size: 11.5px; line-height: 1.2; }
.tf-grade .tf-col-ic { font-size: 18px; }
.tf-grade .tf-canto span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; text-align: left; }
.tf-grade tbody th { text-align: left; padding-right: 8px; white-space: nowrap; }
.tf-grade tbody th span { display: block; }
.tf-grade tbody th small { color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.tf-grade td { position: relative; text-align: center; border-radius: 6px; padding: 6px 4px; min-width: 64px; }
.tf-grade td b { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 14px; color: var(--ink); }
.tf-grade td small { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); }
.tf-grade td.tf-pouco { opacity: .6; }
.tf-grade td.tf-vazio { color: var(--muted); background: var(--surface-2); opacity: .5; }
.tf-grade td.tf-melhor { box-shadow: inset 0 0 0 2px var(--gold); }
.tf-grade td i { position: absolute; top: 1px; right: 4px; font-style: normal; color: var(--gold-2); font-size: 12px; }
.tf-jogo-l { fill: none; stroke-width: 1.6; stroke-opacity: .32; transition: stroke-opacity .2s; }
.tf-jogo-l.v { stroke: var(--good); } .tf-jogo-l.d { stroke: var(--bad); }
.tf-jogo-l.dest { stroke-opacity: .95; stroke-width: 2.4; } .tf-jogo-l.apag { stroke-opacity: .07; }
.tf-jogo-l:hover { stroke-opacity: 1; stroke-width: 3; }
.tf-media-v, .tf-media-d { fill: none; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.tf-media-v { stroke: var(--good-ink); } .tf-media-d { stroke: var(--bad-ink); }

.tf-svg-wrap { overflow-x: auto; scrollbar-width: thin; }
@media (max-width: 640px) { .tf-svg-wrap svg { min-width: 640px; } }
.tf-dica { color: var(--muted); font-size: 13px; margin-top: 6px; }
.tf-selecionado { position: relative; margin-top: 8px; padding: 10px 90px 10px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--gold); }
.tf-selecionado b { font-size: 15px; }
.tf-selecionado span { color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; margin-left: 6px; }
.tf-selecionado p { margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.tf-selecionado button { position: absolute; top: 8px; right: 8px; font: inherit; font-size: 12px; padding: 2px 10px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); }
.tf-explica { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.tf-glossario summary { cursor: pointer; font-weight: 800; color: var(--gold-2); list-style: none; }
.tf-glossario summary::-webkit-details-marker { display: none; }
.tf-glossario summary::after { content: " ▾"; color: var(--muted); }
.tf-glossario[open] summary::after { content: " ▴"; }
.tf-gl-bloco { margin-top: 14px; }
.tf-gl-bloco h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tf-gl-nota { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tf-gl-bloco ul { list-style: none; margin-top: 6px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.tf-gl-bloco li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.tf-gl-ic { font-size: 18px; line-height: 1.2; flex: none; min-width: 24px; text-align: center; }
.tf-gl-bloco b { font-size: 14px; }
.tf-gl-bloco li p { color: var(--ink-2); font-size: 13px; line-height: 1.4; margin-top: 2px; }
/* grade com os jogos ao lado */
.tf-grade-e-jogos { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; margin-top: 10px; }
.tf-grade-e-jogos .tf-grade-wrap { margin-top: 0; flex: 0 1 auto; max-width: 100%; }
.tf-grade td[data-casa], .tf-grade th[data-casa] { cursor: pointer; transition: transform .12s, box-shadow .12s; }
.tf-grade td[data-casa]:hover { transform: scale(1.06); box-shadow: 0 0 0 2px var(--gold-2); z-index: 1; }
.tf-grade th[data-casa]:hover span { color: var(--gold-2); }
.tf-grade .tf-casa-ativa { box-shadow: 0 0 0 3px var(--gold-2) !important; }
.tf-grade th.tf-casa-ativa { border-radius: 6px; }
.tf-casa-painel { flex: 1 1 300px; min-width: min(100%, 300px); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; }
.tf-casa-painel.vazio { color: var(--muted); font-size: 13.5px; display: grid; place-items: center; min-height: 120px; text-align: center; border-style: dashed; }
.tf-casa-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tf-casa-cab b { font-size: 14px; }
.tf-casa-cab button { font: inherit; font-size: 13px; background: none; border: 0; color: var(--muted); cursor: pointer; }
.tf-casa-placar { color: var(--muted); font-size: 12.5px; margin: 2px 0 8px; }
.tf-casa-placar span { font-family: var(--font-mono); font-weight: 700; }
.tf-casa-jogos { list-style: none; display: grid; gap: 4px; max-height: 420px; overflow-y: auto; scrollbar-width: thin; }
.tf-casa-jogos li { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 6px; background: var(--surface); border-left: 3px solid var(--good); }
.tf-casa-jogos li.d { border-left-color: var(--bad); }
.tf-casa-res { font-family: var(--font-display); font-weight: 900; width: 14px; text-align: center; font-size: 13px; }
.tf-casa-jogos li.v .tf-casa-res { color: var(--good-ink); } .tf-casa-jogos li.d .tf-casa-res { color: var(--bad-ink); }
.tf-icos { display: inline-flex; gap: 2px; flex: none; }
.tf-icos.eles { opacity: .7; }
.ico { width: 24px; height: 24px; border-radius: 50%; display: inline-block; background: var(--surface-3); object-fit: cover; }
.ico-falta { display: inline-grid; place-items: center; font-size: 9px; font-weight: 800; color: var(--ink-2); }
.tf-casa-vs { color: var(--muted); font-size: 12px; }
.tf-casa-jogos a { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.tf-casa-jogos a:hover { color: var(--gold-2); }
/* grade mais compacta pra caber os jogos do lado */
.tf-grade thead th { min-width: 58px; max-width: 76px; }
.tf-grade td { min-width: 54px; padding: 5px 2px; }
.tf-grade td b { font-size: 13px; }
.tf-grade tbody th { max-width: 150px; white-space: normal; }
@media (max-width: 640px) {
  .ico { width: 20px; height: 20px; }
  .tf-icos { gap: 1px; }
  .tf-casa-jogos li { overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .tf-casa-jogos a { font-size: 10.5px; }
}
@media (min-width: 1000px) {
  .tf-grade-e-jogos { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .tf-casa-painel { min-width: 0; align-self: stretch; }
  .tf-casa-jogos { max-height: 360px; }
  .tf-casa-jogos li { flex-wrap: wrap; row-gap: 3px; }
  .ico { width: 21px; height: 21px; }
}
/* coluna de vocês: os heróis da categoria */
.tf-hcs { list-style: none; display: grid; gap: 8px; max-height: 520px; overflow-y: auto; scrollbar-width: thin; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.tf-hc { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: grid; gap: 5px; }
.tf-hc-topo { display: flex; align-items: center; gap: 8px; }
.ico.ico-g { width: 34px; height: 34px; }
.tf-hc-nome { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tf-hc-nome b { font-size: 14px; }
.tf-hc-nome small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-hc-wr { text-align: right; display: flex; flex-direction: column; }
.tf-hc-wr b { font-family: var(--font-mono); font-size: 16px; font-weight: 500; }
.tf-hc-wr small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.tf-hc-barra { height: 4px; border-radius: 2px; background: var(--bad-wash); overflow: hidden; }
.tf-hc-barra i { display: block; height: 100%; background: var(--good); }
.tf-hc-imp { font-size: 12px; color: var(--ink-2); font-family: var(--font-mono); }
.tf-hc-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 11.5px; }
.tf-hc-linha > span { min-width: 76px; color: var(--muted); }
.tf-hc-linha.bom > span { color: var(--good-ink); } .tf-hc-linha.ruim > span { color: var(--bad-ink); }
.tf-contra { display: inline-flex; align-items: center; gap: 2px; }
.tf-contra small { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.tf-hc { min-width: 0; overflow: hidden; }
.tf-hc-wr { flex: none; }

.jogos-mais summary { cursor: pointer; color: var(--gold); font-size: 13px; padding: 4px 2px; }
.jogos-mais[open] { display: grid; gap: 6px; }

.jogador-voce { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.voce { margin-left: 6px; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--gold); color: var(--on-gold); vertical-align: middle; }

/* ---------- Patch notes: quadradinho com rolagem à direita do topo (lê ../patch-notes.json) ---------- */
.ranking-topo { display: grid; gap: 18px; }
.ranking-topo:has(.notas:not([hidden])) { grid-template-columns: minmax(0, 1fr) 290px; align-items: stretch; }
.ranking-topo-esq { min-width: 0; }
@media (min-width: 901px) { .notas { contain: size; } } /* a altura vem da coluna da esquerda; o resto rola */
.notas { position: relative; margin: -8px 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.notas h2 { margin: 0; padding: 10px 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-family: var(--font-display); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-2); border-bottom: 1px solid var(--line); }
.notas h2 small { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.notas-lista { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 14px 12px; scrollbar-width: thin; }
.notas-dia { margin: 10px 0 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.notas-lista ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.notas-lista li { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.notas-tag { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--gold); font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
@media (max-width: 900px) {
  .ranking-topo:has(.notas:not([hidden])) { grid-template-columns: 1fr; }
  .notas { margin-top: 0; height: 220px; }
}
