/* Tokens e regras gerais do site. Cores da marca vem do escudo (site/crest.png): vermelho, azul e o dourado da coroa.
   O dourado fica reservado para Premium, MVP e 1o lugar. */
:root {
  --bg: #080d18;
  --surface: #0f1626;
  --raised: #151e31;
  --sunken: #0a101d;
  --line: rgba(160, 180, 220, .13);
  --line-strong: rgba(160, 180, 220, .26);

  --text: #f2f5fa;
  --soft: #b6c1d4;
  --muted: #8f9cb3;
  --dim: #7f8da6;

  --red: #ff5d6c;
  --blue: #2f7bf0;
  --blue-hi: #5aa2ff;
  --blue-deep: #0c3f86;
  /* azul dos botoes com texto branco: 5:1 (o --blue dava 4:1); o hover clareia sem passar de 4,5:1 */
  --btn: #1f6ae0;
  --btn-hi: #2a70e6;
  /* borda dos campos de formulario: 3,5:1 sobre o fundo do campo */
  --field-line: #5f6e88;
  --gold: #f5c542;
  --gold-hi: #ffe08a;
  --ok: #3ddc84;
  --warn: #ffb547;
  --err: #ff5d6c;

  /* a faixa vermelho e azul do escudo: assinatura da barra do topo e dos titulos */
  --split: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50% 100%);
  --gold-text: linear-gradient(180deg, #fff4b8 0%, #f5c542 50%, #b7791f 100%);
  --glass: var(--surface);

  --r-lg: 10px;
  --r-md: 7px;
  --r-sm: 5px;
  --display: "Barlow Condensed", "Bahnschrift", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: .92em ui-monospace, Consolas, monospace; background: rgba(255, 255, 255, .07); padding: 1px 6px; border-radius: var(--r-sm); color: var(--text); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; }
[hidden] { display: none !important; }
::selection { background: rgba(90, 162, 255, .35); color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
main.wrap { flex: 1; padding-top: 32px; padding-bottom: 56px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.empty { color: var(--muted); margin: 0; }
.gap { margin-top: 28px; }
.gap-s { margin: 10px 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  main.wrap { padding-top: 22px; padding-bottom: 40px; }
}
/* Barra do topo, menu, gaveta do celular e rodape */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); }
.top::after { content: ""; display: block; height: 2px; background: var(--split); }
.bar { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.mini { display: flex; align-items: center; gap: 10px; font: 700 18px/1 var(--display); letter-spacing: .06em; color: var(--text); text-transform: uppercase; white-space: nowrap; }
.mini:hover { text-decoration: none; }
.mini img { width: 34px; height: 34px; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.nav a, .nav-label {
  display: block; padding: 8px 10px; border: 0; border-radius: var(--r-md); background: none; cursor: pointer; white-space: nowrap;
  color: var(--soft); font: 600 14px/1.2 var(--body);
}
.nav a:hover, .nav-label:hover, .nav-group:focus-within .nav-label { color: var(--text); background: rgba(255, 255, 255, .06); text-decoration: none; }
.nav a[aria-current="page"], .nav-group.on .nav-label { color: var(--text); box-shadow: inset 0 -2px 0 var(--blue-hi); border-radius: var(--r-md) var(--r-md) 0 0; }
.nav .gold { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }

/* Loja: abre com o mouse em cima ou com o foco no botao */
.nav-group { position: relative; }
.chev { display: inline-block; width: 7px; height: 7px; margin: 0 2px 2px 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); opacity: .7; }
.nav-drop {
  position: absolute; top: 100%; left: 0; z-index: 20; min-width: 178px; padding: 6px; display: none;
  background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.nav-group:hover .nav-drop, .nav-group:focus-within .nav-drop { display: block; }
/* ponte invisivel entre o botao e o menu, para o mouse nao fechar no caminho */
.nav-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-drop a[aria-current="page"] { box-shadow: none; border-radius: var(--r-md); background: rgba(47, 123, 240, .18); }

.session { display: flex; align-items: center; gap: 14px; order: 2; font-weight: 500; font-size: 14px; }
.session form { margin: 0; }
.session .me { display: none; }
.menu { display: contents; }
.menu-btn, .menu-head, .menu-shade { display: none; }

/* cartao do jogador (link para Minha conta): no computador so nome e saldo; na gaveta vira o topo */
.menu-profile {
  order: 1; display: flex; align-items: center; gap: 9px; min-width: 0; max-width: 200px; flex: none; padding: 4px 12px 4px 4px;
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); color: inherit;
}
.menu-profile:hover, .menu-profile.on { text-decoration: none; border-color: var(--line-strong); background: var(--raised); }
.menu-profile .avatar { width: 30px; height: 30px; font-size: 15px; }
.menu-profile .who b { font-size: 13.5px; line-height: 1.25; }
.menu-profile .who small { font-size: 11.5px; line-height: 1.25; color: var(--muted); font-variant-numeric: tabular-nums; }
.menu-profile .go, .menu-profile .vip, .menu-profile .lbl { display: none; }
@media (min-width: 1041px) and (max-width: 1200px) {
  .menu-profile { padding: 3px; }
  .menu-profile .who { display: none; }
}

/* gaveta do menu (botao de 3 riscos): ate 1040px, onde o menu inteiro nao cabe na barra. O site.js usa o mesmo limite. */
@media (max-width: 1040px) {
  .bar { min-height: 58px; }
  .menu-btn {
    display: grid; place-items: center; margin-left: auto; width: 44px; height: 40px; padding: 0; cursor: pointer;
    border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface);
  }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); position: relative; }
  .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
  .menu-btn span::before { top: -6px; }
  .menu-btn span::after { top: 6px; }
  .menu {
    display: flex; flex-direction: column; gap: 6px; position: fixed; top: 0; right: 0; bottom: 0; z-index: 30;
    width: min(310px, 86vw); padding: 14px 14px 20px; overflow-y: auto; overscroll-behavior: contain;
    background: var(--surface); border-left: 1px solid var(--line-strong); box-shadow: -18px 0 40px rgba(0, 0, 0, .5);
    transform: translateX(100%); visibility: hidden; transition: transform .2s ease, visibility 0s .2s;
  }
  .menu-open .menu { transform: none; visibility: visible; transition: transform .2s ease; }
  .menu-head {
    display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 10px; margin-bottom: 4px;
    border-bottom: 1px solid var(--line); font: 700 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  }
  .menu-close { width: 40px; height: 40px; border: 0; border-radius: var(--r-md); background: var(--raised); color: var(--text); font: 400 26px/1 var(--body); cursor: pointer; }
  .menu-profile { order: 0; max-width: none; gap: 12px; margin: 2px 0 8px; padding: 12px; background: var(--raised); }
  .menu-profile .avatar { width: 40px; height: 40px; font-size: 19px; }
  .menu-profile .who b { font-size: 16px; line-height: 1.5; }
  .menu-profile .who small { color: var(--blue-hi); font-size: 12.5px; line-height: 1.5; }
  .menu-profile .lbl { display: inline; }
  .menu-profile .vip { display: inline-block; }
  .menu-profile .go { display: block; color: var(--blue-hi); font: 400 26px/1 var(--body); }
  .menu .nav { flex: none; flex-direction: column; align-items: stretch; gap: 2px; }
  .menu .nav a { padding: 12px 14px; font-size: 16px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue-hi); border-radius: var(--r-md); background: rgba(47, 123, 240, .14); }
  /* Loja na gaveta: titulo e os links sempre abertos */
  .nav-label { padding: 14px 14px 4px; font: 700 12.5px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
  .nav-label:hover, .nav-group:focus-within .nav-label { background: none; color: var(--muted); }
  .nav-group.on .nav-label { box-shadow: none; }
  .chev { display: none; }
  .nav-drop, .nav-group:hover .nav-drop { display: block; position: static; min-width: 0; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav-drop::before { display: none; }
  .menu .session { order: 0; flex-wrap: wrap; gap: 10px 16px; margin-top: auto; padding: 14px 4px 0; border-top: 1px solid var(--line); font-size: 15px; }
  .menu .session .btn.small { flex: 1; }
  .menu-shade { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(2, 6, 14, .65); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
  .menu-open .menu-shade { opacity: 1; visibility: visible; transition: opacity .2s; }
  body.menu-open { overflow: hidden; }
}

.foot { border-top: 1px solid var(--line); background: var(--sunken); color: var(--muted); font-size: 13px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-top: 18px; padding-bottom: 18px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand img { width: 24px; height: 24px; object-fit: contain; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--soft); }

/* gaveta do celular: o link Entrar (e Sair/Admin) com alvo de toque de 44 px */
@media (max-width: 1040px) {
  .menu .session > a:not(.btn), .menu .session button.link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
}
/* Pecas usadas em varias paginas: botoes, cartoes, titulos, abas, tabelas, listas e formularios */

/* ---- botoes */
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 22px; border: 0; border-radius: var(--r-md); cursor: pointer; white-space: nowrap;
  font: 700 17px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: #fff;
  background: var(--btn); transition: background .15s, transform .1s;
}
.btn:hover { background: var(--btn-hi); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn.big { height: 54px; padding: 0 30px; font-size: 21px; }
.btn.small { height: 36px; padding: 0 16px; font-size: 15px; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn.ghost:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px var(--soft); }
.btn.danger { background: #d92d3f; }
.btn.danger:hover { background: #ec4254; }
.btn.full { width: 100%; margin-top: 6px; }
.btn[disabled] { background: var(--raised); color: var(--dim); cursor: default; }
button.link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
button.link:hover { color: var(--text); text-decoration: underline; }
button.link.danger { color: var(--err); }

/* ---- cartoes e titulos */
.glass, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 0; }
.card { padding: 20px 22px; }
main > .card { margin-bottom: 20px; }
.head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; min-height: 28px;
  font: 700 19px/1.1 var(--display); letter-spacing: .03em; color: var(--text); text-transform: uppercase;
}
/* risquinho vermelho e azul antes do titulo */
.head::before { content: ""; width: 4px; height: 17px; border-radius: 1px; background: linear-gradient(180deg, var(--red) 0 50%, var(--blue) 50% 100%); }
.head.gap { margin-top: 28px; }
.head > a, .head > .seg, .head .count, .head .m-reset { margin-left: auto; }
.head > a { font: 600 13px/1 var(--body); letter-spacing: 0; text-transform: none; }
.head .count { color: var(--dim); }
.page-title { font: 800 46px/1 var(--display); text-transform: uppercase; margin: 0 0 8px; letter-spacing: .005em; }
main > .page-title::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 10px; background: var(--split); }
.page-sub { color: var(--soft); margin: 0 0 24px; max-width: 78ch; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.back { margin: 0 0 14px; }

/* ---- abas */
.seg { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 14px; border-radius: var(--r-md); background: var(--sunken); border: 1px solid var(--line); }
.seg a { padding: 7px 16px; border-radius: var(--r-sm); font: 600 14.5px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--soft); }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a.on { background: var(--btn); color: #fff; }
.seg.small { margin-bottom: 10px; }
.seg.small a { padding: 5px 12px; font-size: 13.5px; }
.head .seg { margin: 0 0 0 auto; }
.seg.wrap-seg { flex-wrap: wrap; max-width: 100%; }

/* ---- numeros grandes */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
.stats.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stats.seven { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.stat { padding: 14px 16px; }
.stat dt { color: var(--muted); font: 600 13px/1.1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.stat dd { margin: 8px 0 0; font: 700 36px/1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 10px; }
.stat dd .led { width: 10px; height: 10px; }
.stat.accent dd { color: var(--blue-hi); }
.updated { color: var(--dim); font-size: 12.5px; }
.led { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--dim); }
.led.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(61, 220, 132, .18); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .55; } }

/* ---- tabela de ranking */
.table-scroll { overflow-x: auto; }
table.rank { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rank th { text-align: left; color: var(--muted); font: 600 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 0 10px 10px; border-bottom: 1px solid var(--line-strong); }
.rank td { padding: 9px 10px; border-top: 1px solid var(--line); }
.rank tbody tr:first-child td { border-top: 0; }
.rank tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.rank .n { text-align: right; }
.rank .pts { font: 700 19px/1 var(--display); color: var(--text); }
.rank .pos { width: 3em; }
.medal { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-sm); font: 700 15px/1 var(--display); color: var(--muted); background: rgba(255, 255, 255, .05); }
.rank tr.top1 .medal { background: linear-gradient(180deg, #ffe08a, #d19a1f); color: #2b1c00; }
.rank tr.top2 .medal { background: linear-gradient(180deg, #eef3fa, #9fb2c9); color: #1a2333; }
.rank tr.top3 .medal { background: linear-gradient(180deg, #f3b98a, #b56d35); color: #1a0b02; }
/* cabecalho que ordena a tabela (site.js troca o texto do th por este botao) */
.rank th .sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.rank th .sort:hover, .rank th[aria-sort] .sort { color: var(--text); }
.rank th .sort:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 3px; }
.rank th .sort::after { content: "▾"; font-size: 10px; letter-spacing: 0; opacity: 0; }
.rank th .sort:hover::after { opacity: .4; }
.rank th[aria-sort] .sort::after { opacity: 1; color: var(--blue-hi); }
.rank th[aria-sort="ascending"] .sort::after { content: "▴"; }
/* colunas de numeros: a seta fica a esquerda do titulo, para nao empurrar a ultima coluna para fora da tabela */
.rank th.n .sort { position: relative; }
.rank th.n .sort::after { position: absolute; right: 100%; margin-right: 3px; }
.rank .team-cell b { display: block; font-weight: 600; color: var(--text); white-space: nowrap; }
.rank .team-cell small { display: block; color: var(--dim); font-size: 12px; white-space: nowrap; }

/* ---- nomes de jogador e selos */
a.plink { color: inherit; }
a.plink:hover { color: var(--blue-hi); }
/* premium: nome em dourado (a cor transparente deixa o degrade aparecer; !important porque cada lista pinta o nome) */
/* premium: nome na cor normal + selo PREMIUM contornado em dourado; o nome corta em ... e o selo fica inteiro */
.pwrap { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-width: 0; vertical-align: middle; }
.pwrap > .plink, .pwrap > .pname-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prem-tag { flex: none; display: inline-block; padding: 3px 5px 2px; border-radius: 4px; border: 1px solid rgba(245, 197, 66, .65); color: var(--gold-hi); font: 600 10.5px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.avatar {
  width: 32px; height: 32px; border-radius: var(--r-md); flex: none; display: grid; place-items: center; position: relative;
  font: 700 17px/1 var(--display); color: #fff; text-transform: uppercase; background: var(--blue-deep);
}
.avatar::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); border: 2px solid var(--surface); }
.avatar.plain::after { display: none; }
.avatar.premium { outline: 2px solid var(--gold); outline-offset: -2px; }
.page-title .prem-tag { vertical-align: 8px; margin-left: 4px; font-size: 13px; padding: 4px 7px 3px; }
.tag { font: 600 12.5px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .07); color: var(--soft); white-space: nowrap; }
.tag.playing { background: rgba(47, 123, 240, .22); color: #bfe0ff; }
.tag.ok { background: rgba(61, 220, 132, .14); color: #a6f0c6; }
.tag.warn { background: rgba(255, 181, 71, .16); color: #ffd9a0; }

/* ---- listas: online, partidas abertas, noticias do admin */
.people, .games, .admin-news, .matches { list-style: none; padding: 0; margin: 0; }
.people li, .games li, .admin-news li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); min-width: 0; }
.people li:first-child, .games li:first-child, .admin-news li:first-child { border-top: 0; }
.admin-news li { justify-content: space-between; }
.admin-news form { margin: 0; }
.who { flex: 1; min-width: 0; }
.who b { display: block; color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { color: var(--muted); font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pitch-ico { width: 32px; height: 32px; border-radius: var(--r-md); flex: none; display: grid; place-items: center; background: rgba(61, 220, 132, .12); }
.pitch-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--ok); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.slots { font: 700 20px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--text); }
.slots small { color: var(--dim); font-size: 15px; }
.bar-mini { display: block; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); margin-top: 6px; overflow: hidden; }
.bar-mini i { display: block; height: 100%; border-radius: inherit; background: var(--blue-hi); }

/* ---- noticias */
.news { padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.news:first-child { padding-top: 2px; }
.news:last-child { border-bottom: 0; }
.news time, .news-card time { display: flex; align-items: center; gap: 8px; font: 600 13px/1 var(--display); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.news h3 { margin: 8px 0 8px; font: 700 26px/1.12 var(--display); color: var(--text); }
.news p { color: var(--soft); margin: 0 0 8px; max-width: 76ch; }
.news.new h3::before { content: "NOVO"; display: inline-block; vertical-align: 4px; margin-right: 8px; padding: 3px 6px 2px; border-radius: var(--r-sm); font: 700 11px/1 var(--display); letter-spacing: .06em; background: var(--btn); color: #fff; }
.new-tag { padding: 3px 6px 2px; border-radius: var(--r-sm); font: 700 11px/1 var(--display); background: var(--btn); color: #fff; }
/* setas das noticias no celular (site.js) */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 0 2px; border-top: 1px solid var(--line); }
.card:has(> [data-pager]) { scroll-margin-top: 80px; }
.pager span { min-width: 52px; text-align: center; font: 600 14px/1 var(--display); color: var(--muted); }
.pager button { width: 42px; height: 38px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--raised); color: var(--text); font: 700 22px/1 var(--display); cursor: pointer; }
.pager button:disabled { opacity: .35; cursor: default; }
.news.page-end { border-bottom: 0; }

/* ---- formularios */
.auth { max-width: 460px; width: 100%; margin: 20px auto; padding: 32px; }
.auth .crest { width: 84px; margin: -4px auto 12px; }
.auth h1 { font: 800 36px/1 var(--display); text-transform: uppercase; text-align: center; }
.auth > p { text-align: center; }
.switch { text-align: center; color: var(--muted); margin: 18px 0 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span { font-weight: 600; font-size: 13.5px; color: var(--soft); }
.field small { color: var(--muted); font-size: 12.5px; }
input, textarea, select { width: 100%; background: var(--sunken); color: var(--text); border: 1px solid var(--field-line); border-radius: var(--r-md); padding: 10px 12px; font: inherit; }
select option { background: var(--raised); color: var(--text); }
input:focus, textarea:focus, select:focus { border-color: var(--blue-hi); box-shadow: 0 0 0 3px rgba(90, 162, 255, .2); outline: none; }
input[aria-invalid="true"] { border-color: var(--err); }
.err { color: var(--err); font-size: 13px; }
.quick-values { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; }
.search { display: flex; align-items: center; gap: 10px; padding: 12px; margin: 0 0 20px; }
.search input { flex: 1; min-width: 0; }
.search a { font-size: 13.5px; font-weight: 600; white-space: nowrap; padding: 0 6px; }
form.inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
form.inline .field { flex: 1; margin: 0; }
/* so campo solto no formulario: dentro de .field (coluna) o flex de 140px viraria a ALTURA do campo */
form.inline > input, form.inline > select { width: auto; flex: 1 1 140px; min-width: 0; }
form.inline .btn { flex: none; }

/* ---- legenda das siglas do ranking */
.rank-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 14px 0 0; color: var(--muted); font-size: 12.5px; }
.rank-legend b { color: var(--soft); font: 700 13px/1 var(--display); letter-spacing: .04em; margin-right: 3px; }
.rank-legend svg.crown { width: 13px; height: 13px; vertical-align: -2px; }
.rank-legend .only-narrow { display: none; }

/* ---- primeiro jogo: baixar, abrir e entrar (boas-vindas e Minha conta enquanto a conta nunca entrou no jogo) */
.first-game { padding: 20px 22px; margin: 0 0 20px; border-color: rgba(90, 162, 255, .4); }
.first-game.big { padding: 28px; }
.fg-steps { list-style: none; counter-reset: fg; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.fg-steps li { counter-increment: fg; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; }
.fg-steps li::before { content: counter(fg); grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font: 800 19px/1 var(--display); color: #fff; background: var(--btn); }
.fg-steps b { font: 700 20px/1.15 var(--display); color: var(--text); padding-top: 6px; }
.fg-steps span { color: var(--soft); font-size: 14px; max-width: 70ch; }
.fg-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.fg-act a:not(.btn) { font-weight: 600; font-size: 14px; }
.switch.note { font-size: 13px; margin-top: 10px; }
.price-note { margin: -8px 0 16px; font-size: 13px; }

/* ---- legenda das siglas do ranking */
.rank-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 14px 0 0; color: var(--muted); font-size: 12.5px; }
.rank-legend b { color: var(--soft); font: 700 13px/1 var(--display); letter-spacing: .04em; margin-right: 3px; }
.rank-legend svg.crown { width: 13px; height: 13px; vertical-align: -2px; }
.rank-legend .only-narrow { display: none; }

/* ---- primeiro jogo: baixar, abrir e entrar (boas-vindas e Minha conta enquanto a conta nunca entrou no jogo) */
.first-game { padding: 20px 22px; margin: 0 0 20px; border-color: rgba(90, 162, 255, .4); }
.first-game.big { padding: 28px; }
.fg-steps { list-style: none; counter-reset: fg; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.fg-steps li { counter-increment: fg; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; }
.fg-steps li::before { content: counter(fg); grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font: 800 19px/1 var(--display); color: #fff; background: var(--btn); }
.fg-steps b { font: 700 20px/1.15 var(--display); color: var(--text); padding-top: 6px; }
.fg-steps span { color: var(--soft); font-size: 14px; max-width: 70ch; }
.fg-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.fg-act a:not(.btn) { font-weight: 600; font-size: 14px; }
.switch.note { font-size: 13px; margin-top: 10px; }
.price-note { margin: -8px 0 16px; font-size: 13px; }

/* ---- avisos */
.notice { border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 18px; border: 1px solid var(--line); }
.notice.ok { background: rgba(61, 220, 132, .1); border-color: rgba(61, 220, 132, .45); color: #c9f5dc; }
.notice.bad { background: rgba(255, 93, 108, .1); border-color: rgba(255, 93, 108, .5); color: #ffd3d7; }
.notice:not(.ok):not(.bad) { background: rgba(90, 162, 255, .08); border-color: rgba(90, 162, 255, .35); color: var(--soft); }

/* ---- escudo: flutua devagar, com o brilho vermelho e azul pulsando atras (capa do inicio e telas de entrar) */
.crest { position: relative; }
.crest::before {
  content: ""; position: absolute; inset: -38%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(239, 68, 68, .26), rgba(37, 99, 235, .2) 55%, rgba(37, 99, 235, 0));
  animation: pulse 5s ease-in-out infinite;
}
.crest img { position: relative; display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .55)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes pulse { 50% { opacity: .6; transform: scale(.94); } }

/* ---- passo a passo (como jogar) */
.steps[start="4"] { counter-reset: step 3; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.steps li { counter-increment: step; padding: 18px 22px 18px 76px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 22px; top: 16px; width: 36px; font: 800 38px/1 var(--display); color: var(--blue-hi); text-align: center; }
.steps h3 { margin-bottom: 4px; font-size: 23px; }
.steps p { margin: 0 0 8px; color: var(--soft); }
.steps p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .stats, .stats.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats.seven { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .grid, .grid.three { grid-template-columns: 1fr; }
  /* Premium: o preco e o botao vem antes da lista de beneficios */
  .grid > .buy-card { order: -1; }
  /* ranking no celular: so #, jogador, pontos, gols e G/P; a legenda diz o resto */
  table.rank .opt, .rank-legend .opt { display: none; }
  .rank th, .rank td { padding-left: 7px; padding-right: 7px; }
  .rank td:has(> .pwrap), .rank.players td:has(.pwrap) { width: 100%; max-width: 0; }
  .rank.players .pname { min-width: 0; overflow: hidden; }
  .rank.players .pname small { overflow: hidden; text-overflow: ellipsis; }
  .prem-tag { font-size: 9.5px; padding: 3px 4px 2px; }
  .pwrap { gap: 5px; }
  .rank-legend .only-narrow { display: block; flex-basis: 100%; }
  /* alvos de toque de 44 px: abas, links dos titulos dos cartoes */
  .seg a { display: inline-flex; align-items: center; min-height: 40px; }
  .seg.small a { min-height: 36px; }
  .head > a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; margin-right: -4px; }
  .first-game, .first-game.big { padding: 18px 16px; }
  .fg-act .btn { width: 100%; }
  .stats, .stats.six, .stats.seven { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stats.seven .stat:last-child { grid-column: 1 / -1; }
  .stat { padding: 12px 14px; }
  .stat dd { font-size: 30px; }
  .card { padding: 16px; }
  .auth { padding: 24px 20px; }
  .page-title { font-size: 38px; }
  .btn.big { height: 50px; font-size: 19px; padding: 0 22px; }
  .news h3 { font-size: 23px; }
  form.inline { flex-direction: column; align-items: stretch; }
  form.inline > input, form.inline > select { flex: none; width: 100%; }
  .search .btn { padding: 0 16px; }
  .steps li { padding: 16px 16px 16px 58px; }
  .steps li::before { left: 12px; top: 14px; }
}
/* Pagina inicial: capa no estadio, placar do servidor, partidas, ranking, online e noticias */

/* ---- capa */
.hero {
  position: relative; overflow: hidden; padding: 56px 0 40px;
  background:
    radial-gradient(70% 90% at 12% -20%, rgba(47, 123, 240, .34), transparent 70%),
    radial-gradient(60% 80% at 90% -20%, rgba(255, 93, 108, .2), transparent 70%),
    linear-gradient(180deg, #0b1426 0%, var(--bg) 100%);
}
.hero-scene { position: absolute; left: 0; right: 0; bottom: 0; height: 74%; pointer-events: none; }
.hero-scene svg { display: block; width: 100%; height: 100%; }
.hero-in { position: relative; text-align: center; }
/* nome e escudo juntos: o escudo mede em em, entao acompanha o tamanho do titulo em qualquer tela */
.brand { display: flex; align-items: center; justify-content: center; gap: .24em; text-align: left; font-size: clamp(58px, 9.4vw, 118px); }
.hero .crest { width: 1.9em; flex: none; }
/* position + z-index: o brilho do escudo fica atras das letras */
.title { position: relative; z-index: 1; font: 800 1em/.86 var(--display); text-transform: uppercase; margin: 0; color: var(--text); letter-spacing: -.005em; }
.title em { display: block; font-style: normal; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { margin: 18px auto 0; color: var(--soft); font-size: 18px; max-width: 600px; text-wrap: balance; }
.actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* pilulas com os numeros do servidor, dentro da capa. Numero e palavra no mesmo texto, para ficarem na mesma linha de base */
.chips { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 5px 14px; border-radius: 999px;
  background: rgba(8, 13, 24, .78); border: 1px solid var(--line-strong); color: var(--soft); font-size: 14px; line-height: 1.2;
}
.chip:hover { text-decoration: none; color: var(--text); border-color: var(--soft); }
.chip b { font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--text); }

/* ---- grade do inicio */
body:has(.hero) main.wrap { padding-top: 28px; }
.home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 32px; }
/* abas uma em cima da outra: o cartao fica com a altura da maior e nao pula ao trocar */
/* e as linhas das partidas crescem ate a altura do cartao, igual a dos vizinhos (com limite, para poucas partidas) */
#partidas { display: flex; flex-direction: column; }
.panels { display: grid; flex: 1; }
.panels > [data-panel] { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; }
.panels > [data-panel][hidden] { display: block !important; visibility: hidden; }

/* ---- ultimas partidas, em linhas curtas: MVP ou artilheiro do vermelho e gols | placar | gols e MVP ou artilheiro do azul.
   O placar fica neutro; a cor do time aparece so na bolinha dos gols. Hora e assistencias ficam no title e nos detalhes. */
.fixtures { list-style: none; padding: 0; margin: 0; flex: 1; display: flex; flex-direction: column; }
.fixtures li { border-top: 1px solid var(--line); }
.fixtures li:not(.day) { flex: 1 1 auto; max-height: 58px; display: flex; }
.fixtures .fx { flex: 1; min-width: 0; }
.fixtures li:first-child, .fixtures li.day, .fixtures li.day + li { border-top: 0; }
.fixtures li.day { padding: 12px 0 4px; font: 600 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fixtures li.day:first-child { padding-top: 2px; }
.fx { display: grid; grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr); align-items: center; gap: 2px 6px; padding: 8px 6px; margin: 0 -6px; border-radius: var(--r-md); color: inherit; }
.fx:hover { text-decoration: none; background: rgba(255, 255, 255, .04); }
.fx-camp { grid-column: 1 / -1; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--warn); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-camp svg { width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.fx-score { display: flex; justify-content: center; align-items: center; gap: 4px; font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--text); }
.fx-score b { font-weight: 700; min-width: .85em; }
.fx-score b:first-child { text-align: right; }
.fx-score i { font-style: normal; font-size: 12px; color: var(--dim); }
.fx-side { display: grid; align-items: center; column-gap: 4px; min-width: 0; font-size: 13px; color: var(--soft); }
.fx-side.red { grid-template-columns: minmax(0, 1fr) 28px; text-align: right; }
.fx-side.blue { grid-template-columns: 28px minmax(0, 1fr); }
.fx-side.blue .nm { order: 2; }
.fx-side.none { display: block; color: var(--dim); font-size: 12px; }
.fx-side .nm { display: flex; align-items: center; min-width: 0; }
.fx-side.red .nm { justify-content: flex-end; }
.fx-side .nm-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-side .st { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.fx-side .st:nth-child(3) { display: none; }
.fx-side.red .st { justify-content: flex-end; }
.fx-side .st svg { width: 12px; height: 12px; fill: none; stroke-width: 1.7; stroke-linejoin: round; }
.fx-side.red .st svg { stroke: var(--red); }
.fx-side.blue .st svg { stroke: var(--blue-hi); }
.fx-side svg.crown { width: 12px; height: 12px; margin: 0 0 0 3px; }

/* ---- noticias do inicio */
.home-news .head { margin-bottom: 14px; }
.news-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-card { display: flex; flex-direction: column; min-width: 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: inherit; transition: border-color .15s; }
.news-card:hover { text-decoration: none; border-color: var(--line-strong); }
.news-card h2 { margin: 10px 0 8px; font: 700 24px/1.12 var(--display); color: var(--text); text-wrap: balance; }
/* corta o texto com um degrade no fim; a integra fica em /noticias */
.news-cut { max-height: 112px; overflow: hidden; color: var(--soft); font-size: 14px; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.news-cut p { margin: 0 0 6px; }
.news-more { margin-top: auto; padding-top: 10px; color: var(--blue-hi); font-size: 13.5px; font-weight: 600; }

/* botao secundario da capa: fundo proprio, para o gramado nao atrapalhar a leitura */
.hero .btn.ghost { background: rgba(8, 13, 24, .65); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .34); }
.hero .btn.ghost:hover { background: rgba(30, 40, 60, .85); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }

@media (max-width: 1040px) {
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-grid #partidas { grid-column: 1 / -1; }
  .news-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card:nth-child(3) { display: none; }
}
@media (max-width: 680px) {
  .hero { padding: 28px 0 28px; }
  .hero-scene { height: 60%; opacity: .7; }
  .brand { font-size: clamp(48px, 14.5vw, 76px); }
  .tagline { font-size: 15.5px; margin-top: 12px; }
  .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
  .actions .btn { width: 100%; height: 50px; padding: 0 8px; font-size: 18px; }
  /* pilulas nas mesmas duas colunas dos botoes; a da temporada, a mais comprida, na largura toda */
  .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; margin-top: 12px; }
  .chip { justify-content: center; min-height: 40px; padding: 5px 8px; font-size: 13.5px; text-align: center; }
  .chip:last-child { grid-column: 1 / -1; }
  .chip b { font-size: 17px; }
  .home-grid { grid-template-columns: 1fr; }
  .news-cards { grid-template-columns: 1fr; gap: 12px; }
  .news-card:nth-child(3) { display: flex; }
}
/* Ranking de jogadores, perfil, minha conta, ultimas partidas, detalhes da partida, grafico e MVP */
.rank.players .pcell { display: flex; align-items: center; gap: 10px; }
.rank.players .pname { white-space: nowrap; }
.rank.players .pname a { font-weight: 600; color: var(--text); }
.rank.players .pname a:hover { color: var(--blue-hi); }
.rank.players .pname small { display: block; font-size: 12px; }
/* posicao no ranking no perfil publico: medalha (ouro/prata/bronze ate o 3o) + lugar, total e pontos; leva ao /ranking */
.rankbox { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 14px; color: inherit; flex: none; transition: border-color .15s, background .15s; }
.rankbox:hover { text-decoration: none; border-color: rgba(74, 163, 255, .35); background: rgba(31, 126, 232, .1); }
.rk-medal {
  width: 54px; height: 54px; border-radius: var(--r-lg); flex: none; display: grid; place-items: center;
  font: 700 30px/1 var(--display); color: var(--text); font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #2a8af0, #0c3f86); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 20px rgba(0, 0, 0, .35);
}
.rankbox.top1 .rk-medal { background: linear-gradient(180deg, #ffe08a, #d19a1f); color: #2b1c00; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 22px rgba(245, 197, 66, .35); }
.rankbox.top2 .rk-medal { background: linear-gradient(180deg, #eef3fa, #9fb2c9); color: #1a2333; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 18px rgba(200, 215, 235, .25); }
.rankbox.top3 .rk-medal { background: linear-gradient(180deg, #f3b98a, #a8622d); color: #2a1406; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 18px rgba(214, 130, 70, .3); }
.rankbox.out .rk-medal { background: rgba(255, 255, 255, .06); color: var(--muted); box-shadow: none; }
.rk-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rk-lbl { color: var(--dim); font: 600 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.rk-info strong { font: 700 25px/1.05 var(--display); color: var(--text); white-space: nowrap; }
.rk-info small { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.rk-go { color: var(--blue-hi); font-size: 26px; line-height: 1; margin-left: 2px; }
@media (max-width: 680px) {
  .rankbox { flex: 1 1 100%; }
  .rk-go { margin-left: auto; }
}

/* time: coluna no computador, embaixo do nome no celular */
.rank.players .m-team { display: none; }
@media (max-width: 680px) {
  .rank.players .col-team { display: none; }
  .rank.players .m-team { display: inline; }
  .search .btn { padding: 0 16px; }
}
/* ultimos jogos de time */
.results { list-style: none; padding: 0; margin: 0; }
.results li { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.results li:first-child { border-top: 0; }
.results .team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; }
.results .team:first-child { text-align: right; }
.results .score { font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--blue-hi); white-space: nowrap; }
.results small { color: var(--dim); font-size: 12px; white-space: nowrap; }
@media (max-width: 560px) { .results li { grid-template-columns: 1fr auto 1fr; } .results small { grid-column: 1 / -1; text-align: center; } }
/* conta */
.profile { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 22px; }
.profile .avatar { width: 64px; height: 64px; border-radius: var(--r-lg); font-size: 30px; }
.profile .avatar::after { display: none; }
.profile .info { flex: 1 1 260px; min-width: 0; }
.profile p { margin: 0; color: var(--muted); }
.balance { padding: 14px 20px; text-align: right; }
.balance span { display: block; color: var(--dim); font: 600 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.balance strong { font: 700 32px/1.2 var(--display); color: var(--blue-hi); font-variant-numeric: tabular-nums; }
.balance a { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; }
.res { width: 28px; height: 28px; border-radius: var(--r-sm); display: grid; place-items: center; font: 700 16px/1 var(--display); color: var(--text); flex: none; }
.res.win { background: var(--ok); color: #03220f; }
.res.draw { background: var(--warn); color: #2a1a00; }
.res.loss { background: var(--err); }
.score { font: 700 19px/1 var(--display); font-variant-numeric: tabular-nums; }
.matches time { margin-left: auto; color: var(--dim); font-size: 12.5px; }
.matches li { padding: 0; }
.matches a { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 10px 6px; margin: 0 -6px; border-radius: var(--r-md); color: inherit; }
.matches a:hover { text-decoration: none; background: rgba(255, 255, 255, .04); }
.matches .more { color: var(--blue-hi); font-size: 12.5px; white-space: nowrap; }
/* placar e gols lado a lado; no celular os gols descem para baixo do placar */
.matches .sum { display: flex; align-items: center; gap: 12px; }
.matches .score, .matches .muted { white-space: nowrap; }
.matches .muted:empty { display: none; }

/* detalhes da partida (/partida) */
.back { margin: 0 0 14px; }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px 20px; padding: 26px 22px 20px; margin-bottom: 22px; text-align: center; }
.scoreboard .team { font: 700 21px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.scoreboard .team:first-child { text-align: right; }
.scoreboard .team.blue { text-align: left; }
/* partida de campeonato: nome do time grande e a cor embaixo */
.scoreboard .team small { display: block; margin-top: 6px; font: 600 11px/1 var(--body); letter-spacing: .06em; color: var(--muted); }
.scoreboard .team.red, .scoreboard .team.red small { overflow-wrap: anywhere; }
.match-camp { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 14px; color: inherit; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(245, 197, 66, .3); }
.match-camp:hover { text-decoration: none; box-shadow: inset 0 0 0 1px rgba(245, 197, 66, .6); }
.match-camp > span:nth-child(2) { flex: 1; display: grid; gap: 3px; min-width: 0; }
.match-camp small { color: #e8c35a; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.match-camp b { font: 700 19px/1.2 var(--display); color: var(--text); }
.match-camp em { font-style: normal; font-size: 12px; color: var(--warn, #ffb547); }
.match-camp .more { color: var(--soft); font-size: 13px; white-space: nowrap; }
@media (max-width: 520px) { .match-camp .more { display: none; } }
.team.red, .side.red .head { color: var(--err); }
.team.blue, .side.blue .head { color: var(--blue-hi); }
.big-score { font: 700 68px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.big-score i { font-style: normal; color: var(--dim); font-size: .6em; vertical-align: .15em; }
.scoreboard p { grid-column: 1 / -1; margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.side.red { border-top: 3px solid var(--err); }
.side.blue { border-top: 3px solid var(--blue); }
.side-score { margin-left: auto; font-size: 22px; letter-spacing: 0; color: var(--text); }
.lineup { list-style: none; padding: 0; margin: 0; }
.lineup li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); min-width: 0; }
.lineup li:first-child { border-top: 0; }
.lineup li b { flex: 1; min-width: 0; color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lineup li.me b { color: var(--blue-hi); }
.goals { display: inline-flex; align-items: center; gap: 5px; font: 700 17px/1 var(--display); color: var(--text); white-space: nowrap; }
.goals svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.bots { margin: 10px 0 0; color: var(--dim); font-size: 12.5px; }
.bots svg { width: 14px; height: 14px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
@media (max-width: 560px) {
  .scoreboard { gap: 6px 10px; padding: 20px 14px 16px; }
  .scoreboard .team { font-size: 14px; letter-spacing: .08em; }
  .big-score { font-size: 46px; }
}
.rank .season-cell small { display: block; font-size: 12px; }

/* estatisticas do perfil: numeros menores + grafico de gols e assistencias das ultimas partidas */
.pstats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.pstats > div { padding: 12px 14px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); min-width: 0; }
.pstats dt { color: var(--dim); font: 600 12px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.pstats dd { margin: 6px 0 0; font: 700 21px/1.15 var(--display); color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pstats dd a { color: var(--blue-hi); }
.chart { margin: 0; --c-goal: #3987e5; --c-assist: #c28526; }
.chart figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; color: var(--soft); font-size: 13px; margin: 0 0 6px; }
.chart .legend { display: inline-flex; gap: 14px; color: var(--soft); font-size: 12.5px; }
.chart .legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart .legend i { width: 10px; height: 10px; border-radius: var(--r-sm); display: inline-block; }
.chart .legend i.g, .chart path.g { background: var(--c-goal); fill: var(--c-goal); }
.chart .legend i.a, .chart path.a { background: var(--c-assist); fill: var(--c-assist); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .gl { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.chart .gl.zero { stroke: rgba(255, 255, 255, .22); }
.chart .ax { fill: var(--dim); font: 11px var(--body); text-anchor: end; font-variant-numeric: tabular-nums; }
.chart .hit { fill: transparent; }
.chart .col:hover .hit { fill: rgba(255, 255, 255, .05); }
.chart a:focus-visible { outline: none; }
.chart a:focus-visible .hit { fill: rgba(74, 163, 255, .14); }
.chart .rt { font: 700 12px var(--display); text-anchor: middle; }
.chart .rt.win { fill: var(--ok); }
.chart .rt.draw { fill: var(--warn); }
.chart .rt.loss { fill: var(--err); }
.chart-note { font-size: 12px; margin: 6px 0 0; }
@media (max-width: 1040px) { .pstats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .pstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart .rt { font-size: 15px; }
  .chart .ax { font-size: 14px; }
}

/* MVP da partida (so no site): coroa dourada no nome, etiqueta nas partidas da conta e quadro nos detalhes */
svg.crown { fill: #f5c542; stroke: none; width: 1em; height: 1em; flex: none; filter: drop-shadow(0 0 4px rgba(245, 197, 66, .45)); }
.pstats dt svg.crown { width: 12px; height: 12px; vertical-align: -1px; margin-right: 4px; }
.tag.mvp { display: inline-flex; align-items: center; gap: 4px; color: #ffe08a; background: rgba(245, 197, 66, .14); box-shadow: inset 0 0 0 1px rgba(245, 197, 66, .4); }
.tag.mvp svg.crown { width: 12px; height: 12px; }
/* coluna MVPs nas tabelas de ranking: a coroa no cabecalho */
.rank th.mvp-h svg.crown { width: 13px; height: 13px; vertical-align: -2px; }
.lineup .mvp-c { display: inline-flex; vertical-align: -2px; margin-left: 8px; }
.lineup .mvp-c svg.crown { width: 18px; height: 18px; }
.mvpbox { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin: 0 0 22px; border-color: rgba(245, 197, 66, .35);
  background: radial-gradient(420px 140px at 0% 50%, rgba(245, 197, 66, .16), transparent 70%), var(--glass); }
.mvpbox > svg.crown { width: 44px; height: 44px; }
.mvpbox > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.mvp-k { color: #ffe08a; font: 600 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.mvpbox strong { font: 700 25px/1.1 var(--display); color: var(--text); }
.mvpbox strong a { color: var(--text); }
.mvpbox small { color: var(--muted); font-size: 12.5px; }
.mvp-prize { font: 700 19px/1 var(--display); color: #ffe08a; white-space: nowrap; padding: 8px 12px; border-radius: var(--r-md); background: rgba(245, 197, 66, .12); border: 1px solid rgba(245, 197, 66, .35); }
@media (max-width: 560px) { .mvpbox { flex-wrap: wrap; } .mvpbox > div { flex-basis: calc(100% - 60px); } .mvp-prize { margin-left: 60px; } }
@media (max-width: 680px) {
  .matches time { display: none; }
  .matches .more { margin-left: auto; }
  .matches .sum { flex-direction: column; align-items: flex-start; gap: 3px; min-width: 96px; }
  .matches .sum .muted { font-size: 12px; }
  .matches .more-t { display: none; }
  .balance { text-align: left; }
  /* perfil no celular: avatar e nome na mesma linha, saldo embaixo ocupando a largura toda */
  .profile { gap: 14px; }
  .profile .avatar { width: 52px; height: 52px; font-size: 26px; }
  .profile .info { flex: 1 1 0; }
  .profile .page-title { font-size: 32px; overflow-wrap: anywhere; }
  .profile p { font-size: 13px; }
  .profile .balance { flex: 1 1 100%; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 12px; }
  .profile .balance span { grid-column: 1 / -1; }
  .profile .balance strong { font-size: 28px; }
  .profile .balance a { margin: 0; }
}
/* Premium, comprar moeda, doacao e Pix */
.price { font: 700 42px/1 var(--display); color: #ffd35a; margin: 4px 0 16px; }
.price small { font: 500 15px var(--body); color: var(--muted); }
.perks { margin: 0 0 14px; padding-left: 18px; }
.perks li { margin-bottom: 8px; color: var(--soft); }
.perks strong { color: var(--text); }
.pix .price { text-align: center; }
.pix .qr { display: block; margin: 0 auto 14px; width: 240px; max-width: 100%; height: auto; background: #fff; border-radius: var(--r-lg); padding: 8px; }
.pix [data-pix-ok], .pix [data-pix-fail], .pix [data-pix-wait] > p { text-align: center; }
.pix textarea { font: 12px/1.4 ui-monospace, Consolas, monospace; word-break: break-all; resize: none; }
.pay-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.pay-buttons .btn.big { font-size: 18px; padding: 0 26px; }
.pay-method { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; padding: 0; border: 0; }
.pay-method legend { width: 100%; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.pay-method label { flex: 1 1 260px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); cursor: pointer;
  background: rgba(12, 22, 40, .7); border: 1px solid var(--line); transition: border-color .15s, background .15s; }
.pay-method label:hover { border-color: rgba(124, 192, 255, .4); }
.pay-method label:has(input:checked) { border-color: rgba(255, 211, 90, .6); background: rgba(40, 32, 10, .55); }
/* bolinha propria: o estilo geral de input (caixa de texto) nao vale para o radio */
.pay-method input[type=radio] { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0; padding: 0;
  border-radius: 50%; border: 2px solid #56657d; background: transparent; box-shadow: none; cursor: pointer; }
.pay-method input[type=radio]:checked { border-color: #f5c542; background: radial-gradient(circle, #f5c542 0 4px, transparent 5px); }
.pay-method input[type=radio]:focus-visible { outline: 2px solid rgba(124, 192, 255, .8); outline-offset: 2px; }
.pay-method span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pay-method strong { color: var(--text); }
.pay-method small { color: var(--muted); font-size: 12.5px; }
.packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 6px 0 22px; }
.pack { position: relative; padding: 26px 18px 18px; text-align: center; }
.pack.best { box-shadow: inset 0 0 0 1px rgba(255, 211, 90, .55), 0 18px 40px rgba(0, 0, 0, .3); }
.pack-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  font: 700 13px/1 var(--display); letter-spacing: .08em; color: #2e2003; background: linear-gradient(180deg, #ffd35a, #d49a2a); }
.pack-coins { color: var(--muted); font: 600 16px/1 var(--display); letter-spacing: .06em; }
.pack-coins strong { display: block; margin-top: 8px; color: #ffd35a; font: 700 36px/1 var(--display); font-variant-numeric: tabular-nums; }
.pack-price { margin: 12px 0 14px; color: var(--text); font: 600 19px/1 var(--display); }
.pack .btn[disabled] { filter: grayscale(1) brightness(.7); cursor: default; }
@media (max-width: 900px) { .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* missoes diarias e semanais (/missoes): icone | texto + barra de progresso | premio */
.head .m-reset { order: 3; font: 500 12px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--dim); }
.missions { list-style: none; padding: 0; margin: 0; }
.mission { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.mission:first-child { border-top: 0; padding-top: 4px; }
.m-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--r-lg); background: rgba(31, 126, 232, .12); box-shadow: inset 0 0 0 1px rgba(74, 163, 255, .25); }
.m-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--blue-hi); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.m-ico svg.crown { fill: #f5c542; stroke: none; }
.m-body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.m-body b { color: var(--text); font-weight: 600; }
.m-body small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.m-body small svg { width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; fill: none; stroke: var(--ok); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.m-bar { display: block; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.m-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1f7ee8, #4aa3ff); }
.m-prize { flex: none; font: 700 17px/1 var(--display); color: #ffe08a; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mission.done .m-bar i, .mission.claimed .m-bar i { background: linear-gradient(90deg, #22a35a, var(--ok)); }
.mission.done small { color: var(--ok); }
.mission.claimed .m-ico { background: rgba(61, 220, 132, .12); box-shadow: inset 0 0 0 1px rgba(61, 220, 132, .3); }
.mission.claimed .m-prize { color: var(--ok); }
@media (max-width: 680px) { .mission { gap: 10px; } .m-ico { width: 34px; height: 34px; } .m-prize { font-size: 14px; } }
/* Campeonatos */
.t-status { display: inline-block; font: 700 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px 4px; border-radius: var(--r-sm); white-space: nowrap; vertical-align: 2px; }
.t-status.open { background: rgba(61, 220, 132, .14); color: #a6f0c6; box-shadow: inset 0 0 0 1px rgba(61, 220, 132, .35); }
.t-status.closed { background: rgba(255, 181, 71, .12); color: #ffd9a0; box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .35); }
.t-status.live { background: rgba(31, 126, 232, .22); color: #bfe0ff; box-shadow: inset 0 0 0 1px rgba(74, 163, 255, .4); }
.t-status.done { background: rgba(255, 255, 255, .07); color: var(--soft); }
.tag.ok { background: rgba(61, 220, 132, .14); color: #a6f0c6; }
.tag.warn { background: rgba(255, 181, 71, .16); color: #ffd9a0; }
.t-list { display: grid; gap: 12px; margin-bottom: 22px; }
.t-sub { font: 700 23px/1 var(--display); text-transform: uppercase; color: var(--soft); margin: 8px 0 12px; }
.t-card { display: flex; align-items: center; gap: 16px; padding: 16px 20px; color: inherit; transition: border-color .2s; }
.t-card:hover { text-decoration: none; border-color: rgba(74, 163, 255, .45); }
.t-card .more { color: var(--blue-hi); font-size: 26px; line-height: 1; }
.t-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(245, 197, 66, .22), rgba(183, 121, 31, .12)); box-shadow: inset 0 0 0 1px rgba(245, 197, 66, .35); }
.t-ico svg { width: 26px; height: 26px; fill: none; stroke: #ffd35a; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.t-ico.big { width: 64px; height: 64px; border-radius: var(--r-lg); }
.t-ico.big svg { width: 34px; height: 34px; }
.t-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.t-info b { font: 700 23px/1.1 var(--display); color: var(--text); }
.t-info b small, .page-title small { font-size: .55em; color: var(--dim); letter-spacing: .1em; }
.t-info small { color: var(--muted); font-size: 12.5px; }
.t-info p { margin: 4px 0 0; color: var(--muted); }
.t-info .t-idle { color: #ffd9a0; font-weight: 600; }
/* selo: a direita no computador; no celular em cima do nome, para o texto usar a largura toda */
.t-top { display: none; }
.t-side { flex: none; }
.t-info .t-idle { color: #ffd9a0; font-weight: 600; }
/* selo: a direita no computador; no celular em cima do nome, para o texto usar a largura toda */
.t-top { display: none; }
.t-side { flex: none; }
.t-hero { display: flex; align-items: center; gap: 18px; padding: 20px 24px; margin-bottom: 22px; flex-wrap: wrap; }
.t-hero .page-title { margin: 0; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: var(--r-md); background: var(--err); color: var(--text); font: 700 11px/1 var(--body); letter-spacing: 0; }
.t-invites { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.t-invites li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.t-invites li > span { flex: 1 1 260px; color: var(--soft); }
.inline-act { display: inline; margin: 0; }
.row-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.steps.compact li { padding: 0 0 0 40px; }
.steps.compact li::before { width: 28px; height: 28px; font-size: 15px; top: 0; left: 0; }
.steps.compact b { color: var(--text); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 16px; }
label.check { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--soft); cursor: pointer; }
label.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
/* premio do campeonato: valor + tipo (FL$, premium, R$) na mesma linha */
.prize-in { display: flex; gap: 8px; }
.prize-in input { flex: 0 1 84px; width: auto; min-width: 0; }
.prize-in select { flex: 1 1 0; width: auto; min-width: 0; }
details > summary { cursor: pointer; color: var(--blue-hi); font-weight: 600; margin: 4px 0 10px; }
/* proximo jogo do time de quem esta vendo */
.t-next { padding: 18px 22px; margin-bottom: 22px; border-color: rgba(74, 163, 255, .45); box-shadow: 0 0 0 1px rgba(74, 163, 255, .15), 0 12px 36px rgba(31, 126, 232, .18); }
.t-next-k { font: 700 13px/1 var(--display); letter-spacing: .06em; color: var(--blue-hi); text-transform: uppercase; }
.t-next strong { display: block; font: 700 30px/1.1 var(--display); color: var(--text); margin: 6px 0; }
.t-next strong i { color: var(--dim); font-style: normal; margin: 0 6px; }
.t-next p { margin: 0; color: var(--soft); }
button.link.copy { color: var(--blue-hi); font-weight: 600; margin-left: 6px; }
/* podio */
.podium { display: flex; gap: 12px; padding: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.pod { flex: 1 1 160px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; align-content: start; padding: 12px 14px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .04); }
.pod .medal { grid-row: span 2; width: 38px; height: 38px; border-radius: var(--r-md); font-size: 18px; }
.pod b { font: 700 21px/1.1 var(--display); color: var(--text); }
.pod small { color: var(--muted); }
/* jogadores do time colocado: linha inteira embaixo da medalha e do nome */
.pod-players { grid-column: 1 / -1; list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.pod-players li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 13px; }
.pod-players a { color: var(--soft); }
.pod.top1 .pod-players a { color: #ffe9a8; }
.pod.top1 { background: rgba(245, 197, 66, .1); box-shadow: inset 0 0 0 1px rgba(245, 197, 66, .35); }
.t-prizes .top1 .medal, .pod.top1 .medal { background: linear-gradient(180deg, #ffe08a, #d19a1f); color: #2b1c00; }
.t-prizes .top2 .medal, .pod.top2 .medal { background: linear-gradient(180deg, #eef3fa, #9fb2c9); color: #1a2333; }
.t-prizes .top3 .medal, .pod.top3 .medal { background: linear-gradient(180deg, #f3b98a, #a8622d); color: #2a1406; }
.t-prizes { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.t-prizes li { flex: 1 1 160px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .04); }
.t-prizes b { display: block; font: 700 19px/1.1 var(--display); color: #ffd35a; }
.t-prizes small { color: var(--muted); }
/* chave: uma coluna por fase; os confrontos de cada fase se espalham na altura da 1a (ficam entre os dois que alimentam) */
.bracket-scroll { overflow-x: auto; margin: 0 -6px; padding: 0 6px 6px; }
.bracket { display: flex; gap: 22px; min-width: min-content; }
.b-round { display: flex; flex-direction: column; flex: 1 0 220px; max-width: 280px; }
.b-round h3, .b-third h3 { font: 700 14px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin: 0 0 10px; }
.b-list { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 12px; }
.b-match { border-radius: var(--r-lg); background: rgba(4, 9, 20, .55); border: 1px solid var(--line); overflow: hidden; }
.b-match.ready { border-color: rgba(74, 163, 255, .35); }
.b-match.mine { box-shadow: 0 0 0 2px rgba(245, 197, 66, .55); }
.b-team { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.b-team + .b-team { border-top: 1px solid var(--line); }
.b-team .seed, .t-team-h .seed { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .06); color: var(--dim); font: 700 13px/1 var(--display); }
.b-team .seed:empty { visibility: hidden; }
.b-team .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.b-team .nm i { color: var(--dim); font-weight: 400; }
.b-team .nm small { color: var(--dim); font-size: 11px; }
.b-team b { font: 700 19px/1 var(--display); min-width: 16px; text-align: right; color: var(--soft); }
.b-team.win { background: rgba(61, 220, 132, .08); }
.b-team.win .nm { color: var(--text); }
.b-team.win b { color: var(--ok); }
.b-team.lose .nm, .b-team.lose b { color: var(--dim); }
.b-team.mine .nm { color: #ffe08a; }
.b-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 7px 10px 8px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .02); font-size: 12px; }
.b-room { display: flex; align-items: center; width: 100%; min-width: 0; }
.b-room code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
.b-games { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.b-games li.ignorado a { text-decoration: line-through; color: var(--dim); }
.b-third { margin-top: 18px; max-width: 280px; }
/* times */
.t-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.t-team, .adm-team { padding: 12px 14px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.t-team.mine { border-color: rgba(245, 197, 66, .45); }
.t-team.incomplete { opacity: .75; }
.t-team-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.t-team-h b { display: flex; align-items: center; gap: 8px; font: 700 19px/1.1 var(--display); color: var(--text); }
.t-team-h small { color: var(--dim); font: 600 13px/1 var(--display); letter-spacing: .1em; }
.roster { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.roster li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.roster li.pending > a { color: var(--muted); }
.cap { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: var(--r-sm); background: #ffd35a; color: #2b1c00; font: 700 13px/1 var(--display); }
.r-acts { display: inline-flex; gap: 10px; margin-left: auto; font-size: 12.5px; }
.t-rules p { color: var(--soft); margin: 0 0 8px; }
/* gerenciar */
.adm-matches { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.adm-match { padding: 10px 14px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.adm-match.done { opacity: .85; }
.adm-m-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-m-h b { font-weight: 600; }
.adm-games { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.adm-games li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-tools { display: grid; gap: 8px; margin-top: 8px; }
.score-in { width: 4.2em; text-align: center; }
/* grupos e pontos corridos: tabela por grupo e os jogos por rodada */
[data-show][hidden], [data-show-mode][hidden] { display: none; }
.t-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 18px; }
.t-groups.one { grid-template-columns: 1fr; }
.t-group h3 { font: 700 15px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--gold, #ffd35a); margin: 0 0 8px; }
.g-table td { padding: 8px 10px; }
.g-table tr.q td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
.g-table tr.q .medal { background: rgba(61, 220, 132, .16); color: var(--ok); }
.g-table tr.mine .team-cell b { color: #ffe08a; }
.g-rounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 10px; }
.g-round h4 { font: 700 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin: 0 0 6px; }
.g-round ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.g-game { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 7px 10px; border-radius: var(--r-md); background: rgba(4, 9, 20, .55); border: 1px solid var(--line); font-size: 13px; }
.g-game:not(.done) { border-color: rgba(74, 163, 255, .3); }
.g-line { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; }
.g-line span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.g-line span:last-child { text-align: right; }
.g-line span.mine { color: #ffe08a; }
.g-line b { flex: none; font: 700 17px/1 var(--display); color: var(--text); }
.g-line a { flex: none; }
.g-line a:hover { text-decoration: none; }
.g-line a:hover b { color: var(--blue-hi); }
.g-game:not(.done) .g-line b { color: var(--dim); }
.t-tiebreak { margin: 8px 0 0; padding-left: 20px; color: var(--soft); font-size: 13.5px; display: grid; gap: 3px; }
.adm-team { margin-bottom: 10px; }
/* campeonato rapido: uma linha por time (numero, nome, jogadores) */
.q-teams { display: grid; gap: 8px; margin-bottom: 10px; }
.q-team { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 2fr); gap: 8px; align-items: center; }
.q-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .06); color: var(--dim); font: 700 15px/1 var(--display); }
@media (max-width: 680px) { .q-team { grid-template-columns: 28px minmax(0, 1fr); } .q-team input:last-child { grid-column: 2; } }
/* campeonato de jogadores: campo que poe o apelido na lista e a lista de inscritos */
.q-add { margin-bottom: 8px; }
.q-add input, #q-inscritos { width: 100%; }
.t-entries { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.t-entries li { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 14px; }
.t-entries li.mine { border-color: rgba(245, 197, 66, .45); }
.t-entries form { display: inline; }
.t-entries .link { padding: 0 2px; font-size: 16px; line-height: 1; }
@media (max-width: 680px) {
  .t-card { padding: 14px; gap: 12px; align-items: flex-start; }
  .t-card .more { align-self: center; }
  .t-top { display: block; margin-bottom: 4px; }
  .t-side { display: none; }
  .t-ico { width: 40px; height: 40px; }
  .t-hero { padding: 16px; gap: 14px; align-items: flex-start; }
  .t-hero .t-info { flex: 1 1 200px; }
  .t-hero .page-title { font-size: 30px; }
  .t-ico.big { width: 44px; height: 44px; border-radius: var(--r-lg); }
  .t-ico.big svg { width: 26px; height: 26px; }
  .t-next strong { font-size: 22px; }
  .r-acts { margin-left: 0; width: 100%; }
}
/* campeonato: tempo de jogo por fase */
.t-minutes { margin: 6px 0 16px; padding: 0; border: 0; min-width: 0; }
.t-minutes legend { margin-bottom: 4px; font-weight: 600; }
.t-minutes > p { margin: 0 0 10px; font-size: 13px; }
