/* =========================================================
   t27.css — Camada "Temporada 2027" do BIAScore
   ---------------------------------------------------------
   Carregada POR ÚLTIMO em cada página. Tudo vale só sob html.t27
   (ligado/desligado por /assets/js/t27.js; ?tema=2026 desliga).
   Reversível: remover o <link> e o <script> devolve o site de 2026.

   Não muda cor de marca, fonte, ordem de colunas nem cálculo.
   Padroniza o acabamento: fonte garantida, trilho da navbar,
   cabeçalho de página, foco, celular e leitura das tabelas.

   Índice
     0. Fonte Inter hospedada no próprio site
     1. Tokens 2027 (semânticos)
     2. Base: números tabulares, foco visível
     3. Navbar: trilho, marca, filete de temporada
     4. Cabeçalho de página + selos
     5. Painéis e botão primário
     6. Tabelas: segundo sinal além da cor, legenda, amostra
     7. Celular: barra inferior, filtros recolhidos, alvos de toque
   ========================================================= */

/* ---------- 0. Fonte --------------------------------------------- */
/* A política de segurança do site (CSP) não libera o Google Fonts, então
   a Inter é servida daqui. Mesmo nome de família: nada mais precisa mudar. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

/* ---------- 1. Tokens -------------------------------------------- */
html.t27 {
  /* superfícies (do fundo para a frente) e linhas */
  --s-0: #070c12;
  --s-1: #0c131d;
  --s-2: #111a26;
  --s-3: #172231;
  --line-1: rgba(148, 163, 184, 0.10);
  --line-2: rgba(148, 163, 184, 0.18);
  --line-3: rgba(148, 163, 184, 0.30);

  /* texto */
  --tx-1: #e8edf4;
  --tx-2: #a7b3c4;
  --tx-3: #8291a7;

  /* acento (os mesmos da marca) */
  --t27-accent: #38bdf8;
  --t27-accent-tx: #7dd3fc;
  --t27-ok: #2ee59d;
  --t27-grad: linear-gradient(135deg, #2ee59d 0%, #38bdf8 100%);

  /* raios, alturas, movimento */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  --h-ctl: 36px;
  --t-fast: 120ms;
  --t-base: 200ms;

  /* trilho único: navbar e conteúdo alinhados */
  --rail: min(1408px, 100% - 32px);
  --tabbar-h: 60px;
}

/* ---------- 2. Base ---------------------------------------------- */
html.t27 table,
html.t27 .num,
html.t27 .mono {
  font-variant-numeric: tabular-nums;
}

html.t27 :where(a, button, input, select, textarea, summary, [role="button"], [tabindex]):focus-visible {
  outline: 2px solid var(--t27-accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- 3. Navbar -------------------------------------------- */
html.t27 #navbar-holder .navbar {
  border-bottom-color: transparent;
}
/* filete de temporada: o degradê da marca, fino, sob a navbar */
html.t27 #navbar-holder .navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 229, 157, 0.55) 22%, rgba(56, 189, 248, 0.55) 78%, transparent);
  pointer-events: none;
}
html.t27 #navbar-holder .navbar__inner {
  max-width: none;
  width: var(--rail);
  padding-left: 0;
  padding-right: 0;
}
html.t27 #navbar-holder .navbar__logo {
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: var(--fs-16, 16px);
  font-weight: 700;
  color: var(--tx-1);
}
html.t27 .t27-season {
  margin-left: 2px;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
  color: var(--t27-accent-tx);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

/* ---------- 4. Cabeçalho de página ------------------------------- */
html.t27 .t27-pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: var(--rail);
  margin: 0 auto 16px;
  padding: 0 4px;
}
/* as páginas reservavam ~54px vazios entre a navbar e os filtros */
html.t27.t27-has-pagehead main .wrap,
html.t27.t27-has-pagehead body > .wrap {
  padding-top: 20px !important;
  margin-top: 0 !important;
}
html.t27.t27-has-pagehead .bia-main-wrap {
  padding-top: 0 !important;
}
html.t27 .t27-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--tx-3);
  font-size: var(--fs-12, 12px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
html.t27 .t27-eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--t27-ok);
  box-shadow: 0 0 0 3px rgba(46, 229, 157, 0.14);
}
html.t27 .t27-eyebrow__rodada {
  color: var(--tx-1);
}
html.t27 .t27-eyebrow__upd:not(:empty)::before {
  content: "·";
  margin-right: 8px;
  color: var(--tx-3);
}
html.t27 .t27-eyebrow__upd {
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 500;
}
html.t27 .t27-pagehead__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--tx-1);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
html.t27 .t27-pagehead__sub {
  margin: 4px 0 0;
  color: var(--tx-2);
  font-size: var(--fs-14, 14px);
  line-height: 1.4;
}
/* variante compacta (Escalação: a tela é desenhada para caber sem rolar) */
html.t27 .t27-pagehead--compact { align-items: center; margin-bottom: 10px; }
html.t27 .t27-pagehead--compact .t27-pagehead__main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
html.t27 .t27-pagehead--compact .t27-pagehead__title { order: -1; font-size: 20px; }
html.t27 .t27-pagehead--compact .t27-eyebrow { margin: 0; }
html.t27 .t27-pagehead--compact .t27-pagehead__sub { display: none; }
html.t27.t27-has-pagehead body.page--escalacao:not(.page--biaplus) > .wrap { padding-top: 12px !important; }
html.t27 .t27-seal {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  color: var(--tx-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}
html.t27 .t27-seal--ok {
  border-color: rgba(46, 229, 157, 0.35);
  background: rgba(46, 229, 157, 0.08);
  color: #86efc0;
}

/* ---------- 5. Painéis e botão primário -------------------------- */
html.t27 .page--biaplus .panel,
html.t27 .page--escalacao .panel,
html.t27 .page--escalacao .hbar {
  border-radius: var(--r-lg);
}
/* um só botão primário no site: o degradê da marca (igual ao do login) */
html.t27 .page--escalacao #run:not(:disabled) {
  background: var(--t27-grad) !important;
  border-color: transparent !important;
  color: #04121c !important;
  font-weight: 700;
  text-shadow: none !important;
  box-shadow: 0 6px 18px rgba(46, 229, 157, 0.18) !important;
}
html.t27 .page--escalacao #run:not(:disabled):hover {
  filter: brightness(1.06);
}

/* ---------- 6. Tabelas ------------------------------------------- */
/* legenda de uma linha */
html.t27 .t27-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin: 0 0 12px;
  color: var(--tx-2);
  font-size: var(--fs-12, 12px);
}
html.t27 body:not(.heat-on) #grid:not(.heat-on) ~ .t27-legend,
html.t27 body:not(.heat-on):not(:has(#grid.heat-on)) .t27-legend {
  display: none;
}
html.t27 .t27-legend__i {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
html.t27 .t27-legend__i--muted { color: var(--tx-3); }
html.t27 .t27-legend__sw {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-style: normal;
  font-size: 7px;
}
html.t27 .t27-legend__sw--best { background: rgba(34, 197, 94, 0.18); color: #bbf7d0; }
html.t27 .t27-legend__sw--worst { background: rgba(239, 68, 68, 0.17); color: #fecaca; }

/* ajuste de amostra pequena: antes era invisível */
html.t27 #grid tbody td.is-shrunk {
  text-decoration: underline dotted rgba(148, 163, 184, 0.38);
  text-underline-offset: 3px;
  cursor: help;
}
html.t27 .t27-tip {
  position: fixed;
  z-index: 9998;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--s-3);
  color: var(--tx-1);
  font-size: var(--fs-12, 12px);
  line-height: 1.45;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

/* ---------- 7. Celular ------------------------------------------- */
html.t27 .t27-tabbar { display: none; }

@media (max-width: 720px) {
  html.t27 { --rail: calc(100% - 32px); }

  html.t27 .t27-pagehead { margin-bottom: 12px; padding: 0; }
  html.t27 .t27-pagehead__title { font-size: 22px; }
  html.t27 .t27-pagehead__sub { font-size: 13px; }

  /* barra inferior: os destinos principais sempre à vista */
  html.t27 .t27-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(5, 11, 18, 0.97);
    border-top: 1px solid var(--line-1);
  }
  html.t27 .t27-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: 0 2px;
    border: 0;
    background: none;
    color: var(--tx-3);
    font: 600 11px/1.1 var(--font-sans, "Inter", system-ui, sans-serif);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  html.t27 .t27-tab__label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html.t27 .t27-tab.is-active { color: var(--t27-accent-tx); }
  html.t27 .t27-tab.is-active svg { filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.45)); }
  html.t27.t27-has-tabbar body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  /* o menu completo abre pelo "Mais"; o hambúrguer do topo sai */
  html.t27.t27-has-tabbar .navbar__burger { display: none !important; }

  /* filtros: fechados por padrão; busca e resumo do que está aplicado ficam */
  html.t27 #filters#filters:not(.is-open-mobile) .filters-body,
  html.t27 #filters#filters:not(.is-open-mobile) .toolbar .control.slider,
  html.t27 #filters#filters:not(.is-open-mobile) .toolbar .toolbar-right {
    display: none !important;
  }
  html.t27 #filters#filters .filters-toggle { display: none !important; }
  html.t27 #filters#filters .bia-mobile-filter-toggle {
    min-height: 44px;
    margin-top: 10px;
  }
  html.t27 #filters#filters.is-open-mobile .bia-mobile-filter-toggle .chev { transform: rotate(180deg); }

  /* alvos de toque */
  html.t27 #filters .chip,
  html.t27 #filters .badge {
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.t27 * { scroll-behavior: auto; }
}

/* ---------- 8. Faixa de visitante única --------------------------- */
/* Cedimento usava a faixa âmbar antiga; passa ao modelo da BIA+ e da
   Regularidade (visitor-mode.css). */
html.t27 #ced-visitor-banner.vx-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 14px;
  padding: 14px 18px;
  border: 1px solid var(--vx-line, rgba(148, 163, 184, 0.14));
  border-radius: 14px;
  background: var(--vx-bg, rgba(10, 18, 28, 0.6));
  color: var(--vx-text, #a7b3c4);
  font-size: var(--fs-14, 14px);
}

/* painel da tabela no mesmo raio do painel de filtros */
html.t27 #bia-ranking.panel,
html.t27 #table-panel.panel { border-radius: var(--r-lg); }

/* ---------- 9. Raio-X do jogador (gaveta da BIA+) ------------------ */
#raiox { display: none; }
html.t27 #raiox:not([hidden]) { display: block; margin: 0 0 18px; }
html.t27 .rx-kicker {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  color: var(--tx-3); font-size: var(--fs-12, 12px); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
html.t27 .rx-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--t27-ok); }
html.t27 .rx-top {
  display: flex; align-items: center; gap: 18px; padding: 14px 16px;
  border: 1px solid var(--line-1); border-radius: var(--r-md); background: var(--s-1);
}
html.t27 .rx-score { display: flex; flex-direction: column; align-items: center; min-width: 76px; }
html.t27 .rx-score__n {
  font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  background: var(--t27-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
html.t27 .rx-score__l { margin-top: 4px; color: var(--tx-3); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
html.t27 .rx-meta { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
html.t27 .rx-meta__jogo { flex-basis: 100%; color: var(--tx-1); font-size: var(--fs-14, 14px); font-weight: 600; }
html.t27 .rx-meta__amostra { flex-basis: 100%; color: var(--tx-2); font-size: var(--fs-12, 12px); }
html.t27 .rx-pill {
  margin-top: 4px; padding: 3px 9px; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  color: var(--tx-2); font-size: 11px; font-weight: 600; cursor: help;
}
html.t27 .rx-sec { margin-top: 16px; }
html.t27 .rx-h {
  display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 8px;
  color: var(--tx-3); font-size: var(--fs-12, 12px); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
html.t27 .rx-h__n { letter-spacing: 0.02em; text-transform: none; font-weight: 500; }
html.t27 .rx-h--sep { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-1); }
html.t27 .rx-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 40px; align-items: center; gap: 10px; padding: 5px 0; }
html.t27 .rx-row__l { color: var(--tx-1); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.t27 .rx-row__l small { margin-left: 4px; color: var(--tx-3); font-size: 12px; }
html.t27 .rx-row__v { color: var(--tx-1); font-size: 13px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
html.t27 .rx-bar { position: relative; height: 6px; border-radius: 3px; background: rgba(148, 163, 184, 0.12); overflow: hidden; }
html.t27 .rx-bar i { display: block; height: 100%; border-radius: 3px; background: var(--t27-grad); }
html.t27 .rx-bar i.is-neg { background: #b4636b; }
html.t27 .rx-bar--pct i { background: var(--t27-accent); }
html.t27 .rx-bar--pct b { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.35); }
html.t27 .rx-chart { padding: 14px 70px 10px 14px; border: 1px solid var(--line-1); border-radius: var(--r-md); background: var(--s-1); }
html.t27 .rx-chart__plot { position: relative; height: 120px; }
html.t27 .rx-chart__zero { position: absolute; left: 0; right: 0; height: 1px; background: rgba(148, 163, 184, 0.22); }
html.t27 .rx-chart__bar {
  position: absolute; width: min(26px, calc(100% / var(--n) * 0.5)); transform: translateX(-50%);
  border-radius: 4px 4px 1px 1px; background: rgba(56, 189, 248, 0.26);
}
html.t27 .rx-chart__bar.is-neg { border-radius: 1px 1px 4px 4px; background: rgba(180, 99, 107, 0.6); }
html.t27 .rx-chart__bar:hover { background: rgba(56, 189, 248, 0.5); }
html.t27 .rx-chart__bar.is-best { background: rgba(56, 189, 248, 0.62); }
html.t27 .rx-chart__avg { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed rgba(56, 189, 248, 0.55); pointer-events: none; }
html.t27 .rx-chart__avg em {
  position: absolute; left: 100%; top: 0; transform: translateY(-50%); padding-left: 10px; white-space: nowrap;
  font-style: normal; font-size: 15px; font-weight: 700; line-height: 1.05; color: #7dd3fc; font-variant-numeric: tabular-nums;
}
html.t27 .rx-chart__avg small { display: block; color: var(--tx-3); font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
html.t27 .rx-chart__axis span.is-best b { color: #7dd3fc; }
html.t27 .rx-chart__axis { display: grid; grid-template-columns: repeat(var(--n), 1fr); margin-top: 8px; }
html.t27 .rx-chart__axis span { display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--tx-3); font-size: 11px; font-variant-numeric: tabular-nums; }
html.t27 .rx-chart__axis b { color: var(--tx-1); font-size: 12px; font-weight: 600; }
/* contexto do jogo: uma linha só, à direita do Score */
html.t27 .rx-top { flex-wrap: wrap; }
html.t27 .rx-ctx { display: flex; margin: 0 0 0 auto; }
html.t27 .rx-ctx > div { padding: 2px 22px; border-left: 1px solid var(--line-1); text-align: center; }
html.t27 .rx-ctx > div:last-child { padding-right: 6px; }
html.t27 .rx-ctx dd { margin: 0; color: var(--tx-1); font-size: 22px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
html.t27 .rx-ctx dt { margin-top: 3px; color: var(--tx-3); font-size: 11px; letter-spacing: 0.02em; white-space: nowrap; }
html.t27 .rx-grid2 { display: flex; flex-direction: column; justify-content: space-between; flex: 1 1 auto; padding: 10px 16px; border: 1px solid var(--line-1); border-radius: var(--r-md); background: var(--s-1); }
html.t27 .rx-grid2 .rx-row { padding: 7px 0; }
html.t27 .rx-sec--perfil { display: flex; flex-direction: column; }
html.t27 .rx-foto { position: relative; flex: 0 0 auto; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #0c1622; box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.45), 0 0 0 6px rgba(56, 189, 248, 0.07); }
html.t27 .rx-foto span { color: var(--tx-2); font-size: 22px; font-weight: 300; }
html.t27 .rx-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
html.t27 .rx-chart__axis img { width: 18px; height: 18px; margin-top: 4px; object-fit: contain; }
html.t27 .rx-chart__bar { width: min(22px, calc(100% / var(--n) * 0.56)); }
/* gráfico à esquerda, perfil à direita */
@media (min-width: 900px) {
  html.t27 #raiox:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 24px; }
  html.t27 #raiox > * { grid-column: 1 / -1; }
  html.t27 #raiox > .rx-sec--half { grid-column: auto; }
  html.t27 #raiox > .rx-sec--half .rx-chart { padding-right: 62px; }
}
@media (max-width: 760px) {
  html.t27 .rx-ctx { flex-basis: 100%; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--line-1); justify-content: space-between; }
  html.t27 .rx-ctx > div { padding: 0 8px; border-left: 0; }
  html.t27 .rx-ctx dd { font-size: 18px; }
  html.t27 .rx-grid2 { grid-template-columns: minmax(0, 1fr); }
  html.t27 .rx-chart { padding-right: 58px; }
}

/* ---------- Pontuações na temporada: uma linha por jogo ---------- */
html.t27 #mando-drawer .mando-wrap { gap: 20px; }
html.t27 .mando-col { padding: 14px 16px 6px; border: 1px solid var(--line-1); border-radius: var(--r-md); background: var(--s-1); box-shadow: none; }
html.t27 .mando-col > h3 {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 6px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line-1); color: var(--tx-2); font: 600 12px/1.2 "Inter", system-ui, sans-serif; letter-spacing: 0.1em;
}
html.t27 .mando-col > h3::after { content: none; }
html.t27 .mando-sum { display: inline; color: var(--tx-3); font-weight: 500; letter-spacing: 0.02em; text-transform: none; }
html.t27 .mando-sum b { color: var(--tx-1); font-weight: 700; font-variant-numeric: tabular-nums; }
html.t27 .mando-col { padding-bottom: 10px; }
html.t27 .mando-col > h3 { margin-bottom: 10px; }
html.t27 .mando-item {
  align-items: center; gap: 12px; margin: 0 0 6px; padding: 10px 14px; border: 1px solid rgba(148, 163, 184, 0.07);
  border-radius: 10px; background: rgba(148, 163, 184, 0.045); box-shadow: none;
}
html.t27 .mando-col .mando-item:last-child { margin-bottom: 0; }
html.t27 .mando-item:hover { border-color: rgba(56, 189, 248, 0.28); background: rgba(148, 163, 184, 0.07); }
html.t27 .mando-op .mtl { min-width: 112px; justify-content: space-between; box-sizing: border-box; }
html.t27 .scout.scout-key { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; }
html.t27 .mando-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
html.t27 .mando-top { flex: 0 0 auto; }
html.t27 .mando-op { gap: 8px; font-size: 13px; }
html.t27 .mando-op .logo { width: 20px; height: 20px; border: 0; border-radius: 0; background: none; }
html.t27 .mando-op strong { width: 34px; color: var(--tx-1); font-weight: 600; }
html.t27 .mando-tag.tag-rd { width: 30px; height: auto; padding: 0; border: 0; background: none; color: var(--tx-3); font-size: 11px; font-weight: 500; letter-spacing: 0.02em; }
html.t27 .mando-scouts { flex: 1 1 auto; min-width: 0; gap: 5px; padding: 0; scrollbar-width: none; }
html.t27 .mando-scouts::-webkit-scrollbar { display: none; }
html.t27 .scout { padding: 3px 7px; border: 0; border-radius: 6px; background: rgba(148, 163, 184, 0.08); color: var(--tx-2); font: 600 11px/1.2 "Inter", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
html.t27 .scout-pos { background: rgba(34, 197, 94, 0.10); color: #86efac; }
html.t27 .scout-neg { background: rgba(239, 68, 68, 0.10); color: #fca5a5; }
html.t27 .mando-pts { min-width: 46px; font: 700 15px/1 "Inter", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  html.t27 .mando-left { flex-direction: column; align-items: flex-start; gap: 6px; }
  html.t27 .mando-scouts { flex-wrap: wrap; white-space: normal; }
}

/* ---------- 10. Selo de confiança da prévia ------------------------ */
/* Quatro segmentos = quanto do número já vem de jogos de 2027. Tom neutro
   de propósito: incerteza não é "ruim", e vermelho já significa "pior". */
html.t27 .bia-conf {
  display: inline-flex; gap: 2px; margin-left: 8px; vertical-align: middle; cursor: help;
}
html.t27 .bia-conf i { width: 4px; height: 10px; border-radius: 1px; background: rgba(148, 163, 184, 0.22); }
html.t27 .bia-conf--1 i:nth-child(-n + 1),
html.t27 .bia-conf--2 i:nth-child(-n + 2),
html.t27 .bia-conf--3 i:nth-child(-n + 3) { background: #8fa3bd; }

/* a mesma informação, em texto, no Raio-X e no Comparador */
html.t27 .rx-meta__conf { flex-basis: 100%; margin-top: 6px; }
html.t27 .c2-conf { margin-top: 8px; }
html.t27 .c2-side-B .c2-conf .bia-prev { flex-direction: row-reverse; }
html.t27 .bia-prev { display: flex; align-items: center; gap: 10px; color: var(--tx-2); font: 500 12px/1.2 "Inter", system-ui, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; cursor: help; }
html.t27 .bia-prev__l { color: var(--tx-3); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
html.t27 .bia-prev__bar { flex: none; width: 96px; height: 5px; border-radius: 999px; background: rgba(148, 163, 184, 0.18); overflow: hidden; }
html.t27 .bia-prev__bar i { display: block; height: 100%; border-radius: 999px; background: #8fa3bd; }



html.t27 .t27-showpw { display: block; margin: 6px 0 2px auto; font-size: var(--fs-12, 12px); }

/* ---------- 11. Contagem ao lado do % em amostra curta ------------- */
/* Desligada em 03/12/2026: aparecia em "40% 2/5" mas não em "50%" (2,5 de 5),
   e a coluna ficava desigual. Fica só o percentual. */
.bia-frac, html.t27 .bia-frac { display: none; }

/* ---------- 12. Landing: bloco "Quem faz" -------------------------- */
.t27-only { display: none; }
html.t27 .t27-only { display: block; }
html.t27 .who-makes { margin: 56px auto; max-width: 1040px; padding: 0 16px; }
html.t27 .who-card {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center;
  margin-top: 20px; padding: 28px; border: 1px solid var(--line-1); border-radius: var(--r-lg); background: var(--s-1);
}
html.t27 .who-lead { margin: 0; color: var(--tx-1); font-size: var(--fs-18, 18px); line-height: 1.5; }
html.t27 .who-sub { margin: 10px 0 0; color: var(--tx-2); font-size: var(--fs-14, 14px); line-height: 1.55; }
html.t27 .who-facts { display: grid; gap: 12px; margin: 0; }
html.t27 .who-facts > div { display: flex; align-items: baseline; gap: 12px; }
html.t27 .who-facts dt {
  min-width: 56px; font-size: var(--fs-32, 32px); font-weight: 800; line-height: 1; letter-spacing: -0.02em;
  background: var(--t27-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
html.t27 .who-facts dd { margin: 0; color: var(--tx-2); font-size: var(--fs-14, 14px); line-height: 1.4; }
@media (max-width: 720px) {
  html.t27 .who-card { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
}

html.t27 .who-card--solo { grid-template-columns: 1fr; }

/* ---------- 13. BIA+: colunas "Jogo" e "Últ. 5" -------------------- */
.bia-spark { display: none; }
html.t27 .bia-spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; margin-right: 8px; vertical-align: -2px; }
html.t27 .bia-spark i { width: 3px; border-radius: 1px; background: currentColor; opacity: 0.55; }
html.t27 .bia-spark i.is-neg { background: #b4636b; opacity: 0.9; }


/* celular: scouts e escudo voltam a aparecer na lista de jogos; eixo do gráfico mais compacto */
@media (max-width: 640px) {
  html.t27 .mando-scouts { display: flex !important; flex-wrap: wrap; white-space: normal; }
  html.t27 .mando-op .logo { display: block; }
  html.t27 .mando-item { align-items: flex-start; }
  html.t27 .rx-chart__axis b { font-size: 10px; letter-spacing: -0.02em; }
  html.t27 .rx-chart__axis span { font-size: 9px; }
}

/* ---------- janela de jogador das outras abas (jogador-drawer.js) ---------- */
#bj-drawer { display: none; }
html.t27 #bj-drawer {
  position: fixed; inset: 0; z-index: 9999; align-items: flex-start; justify-content: center; padding-top: 72px;
  background: rgba(3, 7, 18, 0.72); backdrop-filter: blur(4px);
}
html.t27 #bj-drawer.open { display: flex; }
html.t27 .bj-panel {
  width: min(1400px, 96vw); max-height: min(760px, 85vh); overflow-y: auto; border-radius: 20px;
  background: #020617; border: 1px solid var(--line-1); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9);
}
html.t27 .bj-head {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  height: 56px; padding: 0 26px; background: linear-gradient(90deg, #0f172a, #020617 80%); border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}
html.t27 .bj-head h2 { margin: 0; color: #e5f1ff; font-size: 14px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
html.t27 .bj-head h2 span { color: #f9fafb; font-weight: 700; }
html.t27 #bj-close {
  padding: 8px 18px; border-radius: 999px; border: 1px solid #2a3952; background: linear-gradient(180deg, #1a2535, #111827);
  color: #dbeafe; font: 600 12px/1 "Inter", system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
}
html.t27 .bj-body { padding: 22px 26px 26px; }
html.t27 #bj-drawer .mando-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: flex-start; }
html.t27 tr[data-id] > td[data-k="Nome"], html.t27 tr[data-id] > td.ced-jogador { cursor: pointer; }
html.t27 tr[data-id] > td[data-k="Nome"]:hover, html.t27 tr[data-id] > td.ced-jogador:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  html.t27 #bj-drawer { padding-top: 16px; }
  html.t27 .bj-panel { width: 100vw; max-height: calc(100vh - 28px); border-radius: 14px; }
  html.t27 .bj-head { padding: 0 16px; }
  html.t27 .bj-body { padding: 16px 14px 20px; }
  html.t27 #bj-drawer .mando-wrap { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* ---------- Bola Parada: cartões dos cobradores ---------- */
html.t27 .page--bola-parada .bp-cell { gap: 6px; }
html.t27 .page--bola-parada .bp-player {
  align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 10px; background: rgba(148, 163, 184, 0.045); cursor: default; transition: border-color 0.15s, background 0.15s;
}
html.t27 .page--bola-parada .bp-player:hover { border-color: rgba(56, 189, 248, 0.28); background: rgba(148, 163, 184, 0.07); }
html.t27 .page--bola-parada .bp-player.is-primary { border-color: rgba(56, 189, 248, 0.30); background: rgba(56, 189, 248, 0.06); }
html.t27 .page--bola-parada .bp-player.is-out { opacity: 0.5; }
html.t27 .page--bola-parada .bp-player.is-out .bp-player__name { text-decoration: line-through; text-decoration-color: rgba(148, 163, 184, 0.5); }
html.t27 .page--bola-parada .bp-ord { display: block; flex: 0 0 18px; color: var(--tx-3); font-size: 11px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
html.t27 .page--bola-parada .bp-player.is-primary .bp-ord { color: #7dd3fc; }
html.t27 .page--bola-parada .bp-foto { display: block; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #0c1622; box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.18); }
html.t27 .page--bola-parada .bp-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
html.t27 .page--bola-parada .bp-player__left { flex: 1 1 auto; text-align: left; }
html.t27 .page--bola-parada .bp-player__name { color: var(--tx-1); font-size: 13px; font-weight: 600; text-shadow: none; text-align: left; }
html.t27 .page--bola-parada .bp-player.is-primary .bp-player__name { color: #fff; font-weight: 700; text-shadow: none; }
html.t27 .page--bola-parada .bp-player__meta { justify-content: flex-start; gap: 5px; }
html.t27 .page--bola-parada .bp-badge, html.t27 .page--bola-parada .bp-st { padding: 2px 7px; border: 0; border-radius: 6px; font-size: 11px; font-weight: 600; }
html.t27 .page--bola-parada .bp-badge { background: rgba(148, 163, 184, 0.10); color: var(--tx-2); }
html.t27 .page--bola-parada .bp-stats { gap: 3px; color: var(--tx-2); font-size: 12px; font-variant-numeric: tabular-nums; }
html.t27 .page--bola-parada .bp-empty { padding: 8px 12px; border-radius: 10px; border-color: rgba(148, 163, 184, 0.10); color: var(--tx-3); font-size: 12px; }
html.t27.t27-auth .page--bola-parada .bp-player { cursor: pointer; }
/* celular: um bloco por clube, com Pênalti / Falta / Escanteio empilhados */
@media (max-width: 720px) {
  html.t27 .page--bola-parada #grid, html.t27 .page--bola-parada #grid tbody, html.t27 .page--bola-parada #grid tr, html.t27 .page--bola-parada #grid td { display: block !important; width: auto !important; min-width: 0 !important; }
  html.t27 .page--bola-parada #grid tr, html.t27 .page--bola-parada #grid td { height: auto !important; max-height: none !important; }
  html.t27 .page--bola-parada #grid thead, html.t27 .page--bola-parada #grid colgroup { display: none !important; }
  html.t27 .page--bola-parada .table-wrap { overflow: visible; }
  html.t27 .page--bola-parada .table-wrap::after { content: none; }
  html.t27 .page--bola-parada #grid tr { margin: 0 0 14px; padding: 12px; border: 1px solid var(--line-1); border-radius: var(--r-md); background: var(--s-1); }
  html.t27 .page--bola-parada #grid td { padding: 0 !important; border: 0 !important; background: none !important; position: static !important; }
  html.t27 .page--bola-parada #grid td.club { display: flex !important; align-items: center; margin-bottom: 4px; }
  html.t27 .page--bola-parada #grid td.club strong { font-size: 15px; }
  html.t27 .page--bola-parada #grid td[data-label]::before {
    content: attr(data-label); display: block; margin: 12px 0 6px; color: var(--tx-3); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  }
  html.t27 .page--bola-parada .bp-cell { min-width: 0 !important; }
  html.t27 .page--bola-parada .bp-player__name { font-size: 13px; }
}

/* ---------- Escalação Otimizada: cartões do campo ---------- */
@media (min-width: 921px) {
  html.t27 .page--escalacao .pitch .player { max-width: 132px; }
  html.t27 .page--escalacao .pitch .info {
    padding: 6px 10px 7px; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 10px;
    background: rgba(7, 12, 20, 0.96); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45); backdrop-filter: none;
  }
  html.t27 .page--escalacao .pitch .name { color: #fff; font: 600 11px/1.2 "Inter", system-ui, sans-serif; letter-spacing: 0; }
  html.t27 .page--escalacao .pitch .meta { margin-top: 4px; }
  html.t27 .page--escalacao .pitch .tag { padding: 0; border: 0; background: none; color: var(--tx-2); font: 500 10px/1 "Inter", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
  html.t27 .page--escalacao .pitch .perc {
    right: -14px; bottom: auto; top: calc(42px * var(--card-scale) - 10px); min-width: 30px; padding: 3px 7px; border-radius: 8px; border-width: 1px;
    font: 700 11px/1.1 "Inter", system-ui, sans-serif; letter-spacing: 0; font-variant-numeric: tabular-nums; text-align: center;
  }
  html.t27 .page--escalacao .pitch .perc.p-green { background: #0b2416; border-color: rgba(34, 197, 94, 0.55); color: #86efac; }
  html.t27 .page--escalacao .pitch .perc.p-amber { background: #2a2208; border-color: rgba(250, 204, 21, 0.55); color: #fde68a; }
  html.t27 .page--escalacao .pitch .perc.p-red { background: #2a0f0f; border-color: rgba(239, 68, 68, 0.55); color: #fca5a5; }
  /* banco: compacto, sem a linha do adversário */
  html.t27 .page--escalacao .pitch .bench-player .name { font-size: 9.5px; }
  html.t27 .page--escalacao .pitch .bench-player .perc { min-width: 0; padding: 2px 5px; font-size: 9px; right: -9px; top: auto; bottom: -6px; }
}
html.t27.t27-auth .page--escalacao .pitch .bench-player { cursor: pointer; }
html.t27 .esc-pop-actions { flex-wrap: wrap; }
html.t27 .esc-pop-actions [data-act="rx"] { grid-column: 1 / -1; flex: 1 1 100%; justify-content: center; color: #7dd3fc; border-color: rgba(56, 189, 248, 0.35); }
/* celular: resumo em uma linha, adversário sob o nome, linha clicável */
html.t27.t27-auth .page--escalacao #mobile-table tbody tr[data-id] { cursor: pointer; }
@media (max-width: 720px) {
  html.t27 .page--escalacao .resumo-mobile { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  html.t27 .page--escalacao .resumo-mobile .card { display: flex !important; flex-direction: column; align-items: center; gap: 4px; margin: 0 !important; padding: 10px 6px !important; color: var(--tx-3); font-size: 11px; text-align: center; }
  html.t27 .page--escalacao .resumo-mobile .card b { color: var(--tx-1); font-size: 17px; font-weight: 700; }
  html.t27 .page--escalacao #site-footer, html.t27 .page--escalacao footer { padding-bottom: 76px; }
}

/* Escalação em monitores menores (921–1240 px): o painel lateral deixa de ser
   cortado e os cartões encolhem para não encostar uns nos outros */
@media (min-width: 921px) and (max-width: 1240px) {
  html.t27 .page--escalacao .grid { grid-template-columns: minmax(0, 1fr) 320px; }
  html.t27 .page--escalacao .pitch .player { min-width: 0; max-width: 104px; }
  html.t27 .page--escalacao .pitch .info { padding: 5px 7px 6px; }
  html.t27 .page--escalacao .pitch .name { font-size: 10px; }
  html.t27 .page--escalacao .pitch .tag { font-size: 9px; }
  html.t27 .page--escalacao .pitch .perc { right: -8px; min-width: 0; padding: 2px 5px; font-size: 10px; }
}
/* abaixo de 1100 px o campo fica pequeno: cartão só com nome e Score */
@media (min-width: 921px) and (max-width: 1100px) {
  html.t27 .page--escalacao .pitch .player { max-width: 80px; }
  html.t27 .page--escalacao .pitch .meta { display: none; }
  html.t27 .page--escalacao .pitch .info { padding: 4px 6px; }
}

/* ---------- carregando, vazio e erro: o mesmo desenho em todas as abas ---------- */
html.t27 .load-overlay { background: rgba(3, 7, 18, 0.62); backdrop-filter: blur(3px); }
html.t27 .load-box {
  min-width: min(420px, 86vw); padding: 18px 20px; gap: 14px; border: 1px solid var(--line-1); border-radius: var(--r-md);
  background: var(--s-1); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6); color: var(--tx-1); font: 500 14px/1.3 "Inter", system-ui, sans-serif;
}
html.t27 .load-spinner { width: 18px; height: 18px; border-width: 2px; border-color: rgba(56, 189, 248, 0.22); border-top-color: #38bdf8; }
html.t27 .load-bar { height: 4px; border: 0; border-radius: 999px; background: rgba(148, 163, 184, 0.14); overflow: hidden; }
html.t27 .load-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #22c55e, #38bdf8); }
html.t27 #empty { display: none !important; }
html.t27 .t27-estado {
  display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 18px auto 8px; padding: 34px 20px; max-width: 520px;
  border: 1px dashed rgba(148, 163, 184, 0.22); border-radius: var(--r-md); text-align: center;
}
html.t27 .t27-estado[hidden] { display: none; }
html.t27 .t27-estado h4 { margin: 0; color: var(--tx-1); font: 600 16px/1.3 "Inter", system-ui, sans-serif; }
html.t27 .t27-estado p { margin: 0; color: var(--tx-3); font-size: 13px; }
html.t27 .t27-estado button {
  margin-top: 8px; padding: 9px 18px; border: 1px solid rgba(56, 189, 248, 0.4); border-radius: 999px; background: rgba(56, 189, 248, 0.10);
  color: #7dd3fc; font: 600 13px/1 "Inter", system-ui, sans-serif; cursor: pointer;
}
html.t27 .t27-estado button:hover { background: rgba(56, 189, 248, 0.18); }
html.t27 .t27-estado--erro { border-color: rgba(239, 68, 68, 0.35); }

/* avisos na página (no lugar do alert do navegador) */
html.t27 .t27-avisos { position: fixed; right: 16px; bottom: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 32px)); }
html.t27 .t27-aviso {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-1); border-left: 3px solid #38bdf8; border-radius: var(--r-md);
  background: var(--s-2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); color: var(--tx-1); font: 500 13px/1.45 "Inter", system-ui, sans-serif;
}
html.t27 .t27-aviso--erro { border-left-color: #ef4444; }
html.t27 .t27-aviso span { flex: 1 1 auto; }
html.t27 .t27-aviso button { flex: none; padding: 2px 0; border: 0; background: none; color: var(--tx-3); font: 600 12px/1.45 "Inter", system-ui, sans-serif; cursor: pointer; }
html.t27 .t27-aviso button:hover { color: var(--tx-1); }
@media (max-width: 720px) { html.t27 .t27-avisos { left: 16px; right: 16px; bottom: 84px; width: auto; } }

/* Escalação: estado do campo antes de montar, carregando e erro */
html.t27 .page--escalacao .pitch .t27-estado--campo {
  position: absolute; left: 50%; top: 50%; z-index: 6; transform: translate(-50%, -50%); width: min(340px, 78%); margin: 0; padding: 22px 18px;
  border-style: solid; border-color: rgba(148, 163, 184, 0.18); background: rgba(7, 12, 20, 0.92); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
html.t27 .page--escalacao .pitch .t27-estado--erro { border-color: rgba(239, 68, 68, 0.4); }
html.t27 .page--escalacao .pitch.computing .t27-estado { display: none; }
html.t27 .t27-estado--carregando h4 { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
html.t27 .t27-estado--carregando h4::before {
  content: ""; width: 16px; height: 16px; border: 2px solid rgba(56, 189, 248, 0.22); border-top-color: #38bdf8; border-radius: 50%; animation: t27-gira 0.8s linear infinite;
}
@keyframes t27-gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { html.t27 .t27-estado--carregando h4::before { animation: none; } }
@media (max-width: 920px) { html.t27 .page--escalacao .pitch .t27-estado--campo { top: 30%; } }
/* uma aba só não precisa de barra de abas */
html.t27 .page--escalacao .side-tabs:has(.side-tab:only-child) { display: none; }

/* ---------- landing: abas Comparador e Raio-X em "Por dentro" ---------- */
html:not(.t27) .v2-t27 { display: none !important; }
html.t27 .v2-tabs { flex-wrap: wrap; border-radius: 26px; }
html.t27 .m27 {
  height: 100%; box-sizing: border-box; display: flex; flex-direction: column; padding: 18px 20px; border: 1px solid var(--line-1); border-radius: var(--r-md);
  background: #070c14; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); color: var(--tx-1); font-family: "Inter", system-ui, sans-serif; overflow: hidden;
}
html.t27 .m27-top { display: flex; align-items: center; justify-content: space-between; color: var(--tx-3); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; }
html.t27 .m27-lbl { color: var(--tx-3); font-size: 10px; font-weight: 600; letter-spacing: 0.16em; }
html.t27 .m27-blur { filter: blur(7px); user-select: none; }
html.t27 .m27-a { color: #6cc4ee; }
html.t27 .m27-b { color: #eea65a; }
html.t27 .m27-h { display: flex; justify-content: space-between; margin: 16px 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line-1); color: var(--tx-2); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; }
html.t27 .m27-h span { color: var(--tx-3); font-weight: 500; letter-spacing: 0.02em; }
/* comparador */
html.t27 .m27-duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 18px; }
html.t27 .m27-pl { display: flex; flex-direction: column; gap: 3px; }
html.t27 .m27-pl--b { align-items: flex-end; text-align: right; }
html.t27 .m27-pl i, html.t27 .m27-rxtop > i { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 50%; background: #0c1622; font-style: normal; font-size: 18px; font-weight: 300; color: var(--tx-2); }
html.t27 .m27-pl--a i { box-shadow: 0 0 0 2px #6cc4ee; }
html.t27 .m27-pl--b i { box-shadow: 0 0 0 2px #eea65a; }
html.t27 .m27-pl b { font-size: 15px; font-weight: 600; }
html.t27 .m27-pl small, html.t27 .m27-score small { color: var(--tx-3); font-size: 11px; }
html.t27 .m27-score { display: flex; flex-direction: column; align-items: center; gap: 4px; }
html.t27 .m27-score div { display: flex; align-items: baseline; gap: 12px; }
html.t27 .m27-score b { font-size: 44px; font-weight: 300; line-height: 1; }
html.t27 .m27-score em { color: var(--tx-3); font-style: normal; font-size: 12px; }
html.t27 .m27-row { display: grid; grid-template-columns: 1fr 118px 1fr; align-items: center; gap: 10px; padding: 9px 0; }
html.t27 .m27-row span { color: var(--tx-2); font-size: 12.5px; text-align: center; }
html.t27 .m27-bar { position: relative; height: 7px; border-radius: 4px; background: rgba(148, 163, 184, 0.12); overflow: hidden; }
html.t27 .m27-bar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
html.t27 .m27-bar--a i { right: 0; background: linear-gradient(270deg, #6cc4ee, rgba(108, 196, 238, 0.55)); }
html.t27 .m27-bar--b i { left: 0; background: linear-gradient(90deg, #eea65a, rgba(238, 166, 90, 0.55)); }
html.t27 .m27-bar.is-lose i { opacity: 0.38; }
/* raio-x */
html.t27 .m27-rxtop { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line-1); border-radius: 12px; background: rgba(148, 163, 184, 0.04); }
html.t27 .m27-rxtop > i { margin: 0; box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.5); }
html.t27 .m27-rxscore { display: flex; flex-direction: column; gap: 2px; }
html.t27 .m27-rxscore b { font-size: 30px; font-weight: 700; line-height: 1; color: #6ee7b7; }
html.t27 .m27-rxmeta { display: flex; flex-direction: column; gap: 3px; padding-left: 16px; border-left: 1px solid var(--line-1); }
html.t27 .m27-rxmeta b { font-size: 14px; font-weight: 600; }
html.t27 .m27-rxmeta small { color: var(--tx-3); font-size: 12px; }
html.t27 .m27-chart { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 96px; margin: 18px 0 0; padding-right: 64px; border-bottom: 1px solid var(--line-1); }
html.t27 .m27-chart i { position: relative; flex: 1 1 0; max-width: 20px; margin: 0 auto; border-radius: 4px 4px 0 0; background: rgba(56, 189, 248, 0.28); }
html.t27 .m27-chart i.is-best { background: rgba(56, 189, 248, 0.65); }
html.t27 .m27-chart i b { position: absolute; left: 50%; bottom: calc(100% + 3px); transform: translateX(-50%); color: var(--tx-3); font-size: 9.5px; font-weight: 500; font-style: normal; }
html.t27 .m27-chart i.is-best b { color: #7dd3fc; font-weight: 700; }
html.t27 .m27-chart u { position: absolute; left: 0; right: 64px; height: 0; border-top: 1px dashed rgba(56, 189, 248, 0.55); text-decoration: none; }
html.t27 .m27-chart u em { position: absolute; left: 100%; top: -7px; padding-left: 8px; color: #7dd3fc; font-size: 11px; font-weight: 700; font-style: normal; white-space: nowrap; }
html.t27 .m27-prow { display: grid; grid-template-columns: 118px 1fr 26px; align-items: center; gap: 10px; padding: 6px 0; }
html.t27 .m27-prow span { color: var(--tx-2); font-size: 12.5px; }
html.t27 .m27-prow .m27-bar--a i { right: auto; left: 0; background: #38bdf8; }
html.t27 .m27-prow b { font-size: 12.5px; font-weight: 700; text-align: right; }
html.t27 .m27-forma { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
html.t27 .m27-chart--mini { height: 74px; margin-top: 16px; padding-right: 0; }
html.t27 .m27-chart--mini i { max-width: 22px; }
html.t27 .m27-fa i { background: rgba(108, 196, 238, 0.32); }
html.t27 .m27-fa i.is-best { background: #6cc4ee; }
html.t27 .m27-fb i { background: rgba(238, 166, 90, 0.32); }
html.t27 .m27-fb i.is-best { background: #eea65a; }
html.t27 .m27-fb i.is-best b { color: #eea65a; }
@media (max-width: 900px) {
  html.t27 .v2-tabs { width: auto; }
  html.t27 .v2-visual .m27 { height: auto; }
  html.t27 .m27-score b { font-size: 34px; }
  html.t27 .m27-row { grid-template-columns: 1fr 104px 1fr; }
}

/* ---------- landing: títulos de seção e tipografia num padrão só ---------- */
/* título de seção: mesmo tamanho, peso, cor e alinhamento em toda a página */
html.t27 .page--index .v2-inside h2,
html.t27 .page--index .how-title,
html.t27 .page--index .pricing h2,
html.t27 .page--index .bia-faq h2 {
  margin-left: auto; margin-right: auto; background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor;
  color: var(--tx-1); font: 700 28px/1.2 "Inter", system-ui, sans-serif; letter-spacing: -0.01em; text-align: center;
}
html.t27 .page--index .how-title { margin-bottom: 20px; }
html.t27 .page--index .free-preview h2 { font: 700 20px/1.25 "Inter", system-ui, sans-serif; letter-spacing: -0.01em; color: var(--tx-1); }
/* Inter com algarismos tabulares no lugar da fonte de código */
html.t27 .page--index .how-when,
html.t27 .page--index .v2-inside :is(.v2-eyebrow, .v2-pl__pos, .v2-chip-demo, .v2-rank__club, .v2-rank__n, .v2-rank__price, .js-v2-cost, .v2-tabs button, .v2-pitch span, .v2-pitch b, .v2-rank span, .v2-rank b) {
  font-family: "Inter", system-ui, sans-serif; font-variant-numeric: tabular-nums;
}
html.t27 .page--index .how-num { font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  html.t27 .page--index .v2-inside h2, html.t27 .page--index .how-title, html.t27 .page--index .pricing h2, html.t27 .page--index .bia-faq h2 { font-size: 22px; }
}

/* landing: campo de exemplo no desenho do cartão da Escalação
   (uma cor só, goleiro no centro do gol, técnico fora das quatro linhas) */
html.t27 .page--index .v2-pl { gap: 5px; }
html.t27 .page--index .v2-pl__shirt { border: 1px solid rgba(148, 163, 184, 0.28); background: #0c1622; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45); }
html.t27 .page--index .v2-pl__name {
  padding: 4px 8px; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 8px; background: rgba(7, 12, 20, 0.96);
  color: #fff; font: 600 11px/1.2 "Inter", system-ui, sans-serif;
}
html.t27 .page--index .v2-pl__pos { color: var(--tx-3); font: 500 10px/1 "Inter", system-ui, sans-serif; letter-spacing: 0.06em; }
html.t27 .page--index .v2-line--gol { position: relative; justify-content: center; }
/* técnico sai do gramado e vai para a faixa de baixo (03/12/2026) */
html.t27 .page--index .v2-pl--tec { display: none; }
html.t27 .page--index .v2-pitch__bar { flex-wrap: wrap; gap: 6px 14px; }
/* o campo é em perspectiva (afunila em cima): cada fileira recua o bastante
   para pontas e laterais ficarem dentro das riscas; respiro no topo */
html.t27 .page--index .v2-visual .v2-pitch__grid { top: 30px; }
html.t27 .page--index .v2-line:nth-child(1) { padding-inline: 12%; }
html.t27 .page--index .v2-line:nth-child(2) { padding-inline: 9%; }
html.t27 .page--index .v2-line:nth-child(3) { padding-inline: 8%; }
/* preço no lugar da sigla e Score borrado, como no cartão da Escalação */
html.t27 .page--index .v2-pl { position: relative; }
html.t27 .page--index .v2-pl__pos { display: none; }
html.t27 .page--index .v2-pl__price { color: var(--tx-2); font: 500 10px/1 "Inter", system-ui, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
html.t27 .page--index .v2-pl__score {
  position: absolute; top: 12px; left: calc(50% + 12px); min-width: 26px; padding: 3px 6px; border: 1px solid rgba(34, 197, 94, 0.55); border-radius: 8px;
  background: #0b2416; color: #86efac; font: 700 11px/1.1 "Inter", system-ui, sans-serif; font-style: normal; text-align: center; user-select: none; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* landing, aba Comparador: o exemplo tem mais blocos que os outros; aperta
   os espaços para o gráfico de forma caber inteiro na moldura */
html.t27 .m27:has(.m27-duel) { padding: 14px 20px 12px; }
html.t27 .m27:has(.m27-duel) .m27-duel { margin-top: 10px; }
html.t27 .m27:has(.m27-duel) .m27-pl i { width: 38px; height: 38px; font-size: 16px; }
html.t27 .m27:has(.m27-duel) .m27-score b { font-size: 36px; }
html.t27 .m27:has(.m27-duel) .m27-h { margin: 10px 0 4px; padding-bottom: 6px; }
html.t27 .m27:has(.m27-duel) .m27-row { padding: 5px 0; }
html.t27 .m27:has(.m27-duel) .m27-chart--mini { height: 70px; margin-top: 16px; margin-bottom: 20px; border-bottom-color: rgba(148, 163, 184, 0.28); }
/* rodada sob cada barra: sem o rótulo, a barra parecia cortada na base */
html.t27 .m27-chart i s { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); color: var(--tx-3); font: 500 9.5px/1 "Inter", system-ui, sans-serif; font-style: normal; text-decoration: none; white-space: nowrap; }

/* ---------- landing: Onda 1 das melhorias de conversão (03/12/2026) ---------- */
/* hero aparece no primeiro quadro: sem partir de invisível, sem cascata */
html.t27 .page--index .hero-sub,
html.t27 .page--index .hero-cta-row,
html.t27 .page--index .hero-visual { opacity: 1; transform: none; animation: none; }
/* demais seções: entrada curta */
html.t27 .page--index .reveal { transition-duration: 280ms; }
html.t27 .page--index .reveal:not(.is-visible) { transform: translateY(10px); }
@media (max-width: 900px) {
  html.t27 .page--index .v2-pos button { min-height: 44px; }
}
/* Score do topo: valores fictícios de exemplo, à mostra (03/12/2026) */
/* acabamento */
html.t27 .page--index .how-grid::before { display: none; }
html.t27 .page--index .sb-close { min-width: 44px; min-height: 44px; }
html.t27 .page--index .hv-foot-cta { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- landing: Onda 2 das melhorias de conversão (03/12/2026) ---------- */
/* cartão de preço: lista do que o plano inclui */
html:not(.t27) .plan-includes { display: none; }
html.t27 .plan-includes { text-align: left; }
html.t27 .plan-includes h3 { margin: 0 0 14px; color: var(--tx-1); font: 700 20px/1.25 "Inter", system-ui, sans-serif; letter-spacing: -0.01em; }
html.t27 .plan-includes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
html.t27 .plan-includes li { position: relative; padding-left: 28px; color: var(--tx-2); font: 400 15px/1.45 "Inter", system-ui, sans-serif; }
html.t27 .plan-includes li b { color: var(--tx-1); font-weight: 600; }
html.t27 .plan-includes li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(34, 197, 94, 0.14); color: #4ade80; font-size: 11px; font-weight: 700; }
/* cartão da promoção sozinho e centralizado, com todo o destaque (03/12/2026) */
@media (min-width: 901px) {
  html.t27 .page--index .pricing-grid--single { grid-template-columns: minmax(0, 500px); justify-content: center; }
}
@media (max-width: 900px) {
  html.t27 .plan-includes { order: 2; margin-top: 8px; padding: 18px 16px; border: 1px solid var(--line-1); border-radius: var(--r-md); background: var(--s-1); }
  html.t27 .plan-includes h3 { font-size: 17px; }
}
html.t27 .page--index .bfx-trust { flex-wrap: nowrap; gap: 6px 12px; }
html.t27 .page--index .bfx-trust li { white-space: nowrap; }
@media (max-width: 400px) { html.t27 .page--index .bfx-trust { flex-wrap: wrap; } }

/* barra fixa: no celular vai para baixo, em uma linha, e some sobre os Planos */
html.t27 #bia-sticky-cta .sb-short { display: none; }
html.t27 #bia-sticky-cta.is-over-plans { transform: translateY(-100%); }
@media (max-width: 900px) {
  html.t27 #bia-sticky-cta {
    display: flex; top: auto; bottom: 0; justify-content: space-between; gap: 10px; min-height: 54px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)) 14px;
    background: #0b131c; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; border-top: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45); font-size: 13px; transform: translateY(100%);
  }
  html.t27 #bia-sticky-cta.is-visible { transform: translateY(0); }
  html.t27 #bia-sticky-cta.is-over-plans { transform: translateY(100%); }
  html.t27 #bia-sticky-cta .sb-dot, html.t27 #bia-sticky-cta .sb-long { display: none; }
  html.t27 #bia-sticky-cta .sb-short { display: inline; }
  html.t27 #bia-sticky-cta .sb-text { flex: 1 1 auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
  html.t27 #bia-sticky-cta .sb-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; white-space: nowrap; }
  html.t27 .page--index footer, html.t27 .page--index .bia-footer { padding-bottom: 70px; }
}

/* "Por dentro" no celular: abas em uma linha com rolagem lateral, exemplo logo
   abaixo das abas, e o campinho com espaço para as quatro fileiras */
@media (max-width: 900px) {
  html.t27 .page--index .v2-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; border-radius: 999px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  html.t27 .page--index .v2-tabs::-webkit-scrollbar { display: none; }
  html.t27 .page--index .v2-tabs .v2-tab { flex: none; min-height: 44px; white-space: nowrap; scroll-snap-align: start; }
  html.t27 .page--index .v2-stage .v2-visual { order: -1; }
  html.t27 .page--index .v2-stage .v2-visual:has(.v2-pitch) { height: auto; min-height: 500px; }
  html.t27 .page--index .v2-visual .v2-pitch { height: 500px; min-height: 500px; }
  html.t27 .page--index .v2-line:nth-child(1) { padding-inline: 9%; }
  html.t27 .page--index .v2-line:nth-child(2) { padding-inline: 6%; }
  html.t27 .page--index .v2-line:nth-child(3) { padding-inline: 1%; }
  html.t27 .page--index .v2-pl { flex: 1 1 0; width: auto; min-width: 0; }
  html.t27 .page--index .v2-pl__name { max-width: 100%; padding: 3px 5px; font-size: 10px; overflow: hidden; text-overflow: ellipsis; }
  html.t27 .page--index .v2-pl__score { top: 8px; left: calc(50% + 9px); min-width: 20px; padding: 2px 4px; font-size: 9px; }
}

/* "INÍCIO": o acento do Í era cortado pela altura de linha do título dourado */
html.t27 .bfx .bfx-wordmark, html.t27 .bia-offer--bf .bfx .bfx-wordmark, html.t27 .gbf-wordmark, html.t27 .rn-wordmark { padding-top: 0.2em !important; }

/* prova da rodada: respiro entre o título e os cartões (o subtítulo saiu em 03/12/2026) */
html.t27 .bia-home-proof .hp-card { margin-top: 36px; }

/* ---------- tela de entrar: só o necessário (03/12/2026) ---------- */
html.t27 .auth .auth-eyebrow { display: none; }
html.t27 .auth #step-email .auth-hint { display: none; }
html.t27 .auth #step-email .hero-title { font-size: 28px; }
html.t27 .auth #step-email .auth-sub { max-width: 30em; margin-left: auto; margin-right: auto; color: var(--tx-3); font-size: 14px; }
html.t27 .auth .auth-alt-code { margin-bottom: 0; }
html.t27 .auth .auth-alt { gap: 6px; }
html.t27 .auth .auth-alt .auth-help, html.t27 .auth .auth-alt .auth-other { color: var(--tx-3); font-size: 12px; }
html.t27 .auth .auth-alt .auth-other summary { font-size: 12px; }
/* Google abaixo do formulário, com a condição dita em uma linha */
.auth-google-note { margin: 8px 0 0; text-align: center; font-size: 12px; color: #8291a7; }
html.t27 .auth #google-block .auth-or { margin: 18px 0 14px; }
html.t27 .auth .auth-alt-code { margin-top: 14px; }

/* "Por dentro" no celular: os exemplos não podem passar da largura da tela */
@media (max-width: 900px) {
  html.t27 .page--index .v2-stage { grid-template-columns: minmax(0, 1fr); }
  html.t27 .page--index .v2-stage > *, html.t27 .page--index .v2-visual > * { min-width: 0; max-width: 100%; }
  html.t27 .page--index .m27 { padding-left: 14px; padding-right: 14px; }
  html.t27 .page--index .m27-duel { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
  html.t27 .page--index .m27-row { grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); gap: 8px; }
  html.t27 .page--index .m27-forma { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
  html.t27 .page--index .m27-chart { min-width: 0; gap: 4px; }
  html.t27 .page--index .m27-h { gap: 8px; }
  html.t27 .page--index .m27-h span { white-space: nowrap; }
  html.t27 .page--index .v2-rank { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 900px) {
  /* a moldura acompanha a altura do exemplo (antes o cartão cobria o título abaixo) */
  html.t27 .page--index .v2-stage .v2-visual { height: auto; }
  html.t27 .page--index .v2-visual .m27 { height: auto; }
  /* etiquetas quebram em duas linhas em vez de sair da tela */
  html.t27 .page--index .v2-stage .v2-copy ul.v2-feats { flex-wrap: wrap !important; justify-content: center; max-width: 100%; }
}

/* Cedimento: os dois grupos de botões (posição/lado e janela/recorte/mando)
   na mesma linha, para o painel de filtros ter a altura das outras abas */
@media (min-width: 1100px) {
  html.t27 #filters:not(.is-collapsed) .filters-body:has(> .ced-row) { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; column-gap: 28px; }
  html.t27 #filters .filters-body:has(> .ced-row) > .ced-row + .ced-row { margin-top: 0; }
  html.t27 #filters .filters-body:has(> .ced-row) > .ced-row { flex: 0 0 auto; width: auto; }
  html.t27 #filters .filters-body:has(> .ced-row) > :not(.ced-row) { flex: 0 0 100%; }
}

/* estado do campo: no computador a frase cabe em uma linha */
@media (min-width: 921px) {
  html.t27 .page--escalacao .pitch .t27-estado--campo { width: max-content; max-width: 90%; padding-left: 28px; padding-right: 28px; }
  html.t27 .page--escalacao .pitch .t27-estado--campo p { white-space: nowrap; }
}

/* Escalação: foto do jogador no círculo, escudo pequeno na borda inferior
   esquerda; o Score segue à direita e o "C" do capitão em cima */
html.t27 .page--escalacao .player .mini-escudo { display: none; }
html.t27 .page--escalacao .player.tem-foto .circle { background: #0c1622; }
html.t27 .page--escalacao .player.tem-foto .circle img.foto { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; filter: none; }
html.t27 .page--escalacao .pitch .player.tem-foto:not(.bench-player) .mini-escudo {
  display: block; position: absolute; z-index: 3; left: calc(50% - var(--avatar-size) * 0.5 - 3px); top: calc(var(--avatar-size) * 0.5 - 21px);
  width: 22px; height: 22px; padding: 2px; border-radius: 50%; background: #070c14; border: 1px solid rgba(148, 163, 184, 0.28); object-fit: contain; box-sizing: border-box;
}
