/* Design tokens — refino "identidade própria" (teal-black premium) */
:root {
  --bg: #0C1A1C;          /* fundo geral, viés no acento */
  --surface: #13282A;     /* cards */
  --surface-2: #183130;   /* cards elevados / header */
  --header: #102123;
  --teal: #17A98E;        /* accent principal */
  --teal-bright: #2ED9B8;
  --text: #EAF7F4;
  --muted: #7d9995;
  --red: #FB7A88;         /* negativo / saídas */
  --pos: #35D6A0;         /* positivo / entradas */
  --gold: #F5C451;        /* destaque / a receber */
  --blue: #6aa9dc;
  --line: rgba(255,255,255,.06);
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; }
html { height: 100%; }
body { min-height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px; padding-bottom: calc(140px + env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration: none; }

/* Em telas largas, mantém a cara de app (coluna estreita centralizada) */
@media (min-width: 560px) {
  body { max-width: 480px; margin: 0 auto; box-shadow: 0 0 40px rgba(0,0,0,.5); }
  .bottomnav { left: 50%; right: auto; transform: translateX(-50%); width: 480px; }
  .fab { right: calc(50% - 240px + 18px); }
}

/* Header */
.appbar { background: var(--header); padding: 18px 20px 14px; position: sticky; top: 0; z-index: 5; }
.appbar h1 { font-size: 24px; font-weight: 600; }
.appbar .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* Tabs (RESUMO | CAIXA | JOGADORES) */
.tabs { display: flex; background: var(--surface-2); }
.tabs a { flex: 1; text-align: center; padding: 14px 6px; font-size: 13px;
  letter-spacing: .08em; color: var(--muted); font-weight: 600;
  border-bottom: 3px solid transparent; }
.tabs a.active { color: var(--text); border-bottom-color: var(--teal); }

/* Cards grid (Financeiro Resumo) */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 18px 16px; }
.card .label { color: var(--muted); font-size: 14px; margin: 8px 0 14px; }
.card .value { font-size: 26px; font-weight: 700; color: var(--teal-bright); }
.card .value.neg { color: var(--red); }
.card .icon { font-size: 20px; }

/* Listas */
.list { padding: 6px 0; }
.row { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #2a3542; }
.row .title { font-size: 17px; }
.row .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.row .amount { color: var(--teal-bright); font-weight: 600; }
.row .amount.neg { color: var(--red); }
.section-h { padding: 14px 20px 6px; color: var(--muted); font-size: 15px;
  display: flex; justify-content: space-between; }

/* Chips / badges */
.chip { display: inline-block; padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--muted); font-size: 15px; margin-right: 8px; }
.chip.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.badge { font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 700;
  white-space: nowrap; }
/* Linha de jogador no Financeiro: pílula sempre no mesmo lugar */
.fin-jrow { display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  border-bottom: 1px solid #2a3542; color: var(--text); scroll-margin-top: 90px; }
.fin-jrow:target { background: rgba(46,217,184,.10); }
.fin-jrow .who { flex: 1; min-width: 0; }
.fin-jrow .who .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-jrow .badge { flex: 0 0 auto; min-width: 74px; text-align: center; }
.fin-jrow .chev { flex: 0 0 auto; color: var(--muted); font-size: 20px; }
.badge.ok { background: rgba(53,214,160,.15); color: var(--pos); }
.badge.late { background: rgba(251,122,136,.15); color: var(--red); }
.badge.favor { background: rgba(46,217,184,.18); color: var(--teal-bright); }
.badge.diretoria { background: rgba(212,175,55,.16); color: var(--gold); }

/* Resumo de devedores (topo da aba Jogadores) */
.dev-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 20px 4px; }
.ds-card { border-radius: 18px; padding: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.ds-card.devendo { background: linear-gradient(160deg, rgba(251,122,136,.14), var(--surface)); }
.ds-card.emdia { background: linear-gradient(160deg, rgba(53,214,160,.14), var(--surface)); }
.ds-card .ds-k { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ds-card .ds-n { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 2px;
  font-variant-numeric: tabular-nums; }
.ds-card.devendo .ds-n { color: var(--red); }
.ds-card.emdia .ds-n { color: var(--pos); }
.ds-card .ds-v { font-size: 14px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums; }

/* Botões e formulários */
.btn { display: block; width: calc(100% - 40px); margin: 18px 20px;
  background: var(--teal); color: #fff; border: 0; border-radius: 999px;
  padding: 16px; font-size: 17px; font-weight: 600; text-align: center; }
.btn.secondary { background: transparent; border: 1px solid var(--muted); }
.btn-sm { background: var(--teal); color: #fff; border: 0; border-radius: 999px;
  padding: 8px 16px; font-size: 14px; font-weight: 600; }
.btn-sm.outline { background: transparent; border: 1px solid var(--muted); color: var(--text); }
input[type=file], select, input, textarea {
  width: calc(100% - 40px); margin: 8px 20px; padding: 14px;
  background: var(--surface); border: 1px solid var(--teal);
  border-radius: var(--radius); color: var(--text); font-size: 16px; }

/* Conciliação — autocomplete + split */
.splitrow { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.ac-wrap { position: relative; flex: 1; min-width: 0; }
.splitrow input { margin: 0; padding: 12px 14px; }
.ac-wrap .ac { width: 100%; }
.splitval { width: 84px; flex: 0 0 84px; text-align: center; }
.acbox { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30;
  background: var(--surface-2); border: 1px solid var(--teal); border-radius: 12px;
  overflow: hidden; max-height: 280px; overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.acitem { padding: 12px 14px; border-bottom: 1px solid #2a3542; font-size: 15px; cursor: pointer; }
.acitem:active { background: rgba(0,163,150,.2); }
.actag { color: var(--muted); font-size: 11px; float: right; }
.addsplit { background: transparent; border: 0; color: var(--teal-bright);
  font-size: 14px; padding: 8px 0; cursor: pointer; }

/* Info box (azul, como nas telas de configuração) */
.info { padding: 14px 20px; color: var(--blue); font-size: 15px; line-height: 1.5; }
.info code { background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 5px;
  font-size: 13px; word-break: break-word; }

/* Bottom nav — itens iguais, destaque (pill + ponto) só na aba ativa */
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  background: var(--header);
  transform: translateZ(0); -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden; will-change: transform;
  display: flex; justify-content: space-around; align-items: center;
  padding: 8px 6px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); }
.bottomnav a { color: var(--muted); display: flex; flex-direction: column;
  align-items: center; gap: 4px; flex: 1; font-size: 10px; }
.bottomnav a .ico { width: 46px; height: 34px; border-radius: 13px; display: grid;
  place-items: center; position: relative; transition: background .2s; }
.bottomnav a svg { width: 24px; height: 24px; fill: currentColor; opacity: .6;
  transition: opacity .2s; }
.bottomnav a.active { color: var(--teal-bright); }
.bottomnav a.active .ico { background: rgba(46,217,184,.15); }
.bottomnav a.active svg { opacity: 1; }
.bottomnav a.active .ico::after { content: ""; position: absolute; bottom: 3px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--teal-bright);
  box-shadow: 0 0 8px var(--teal-bright); }

/* App bar com ações à direita (share/kebab) */
.appbar-row { display: flex; align-items: center; justify-content: space-between; }
.appbar-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.appbar-left h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.backbtn { font-size: 30px; line-height: 1; color: var(--text); padding: 0 6px 4px 0;
  margin-left: -4px; flex: 0 0 auto; }
.appbar-actions { display: flex; gap: 16px; color: var(--muted); }
.appbar-actions svg { width: 22px; height: 22px; fill: currentColor; }

/* Saldo em caixa + gráfico de barras (herói refinado) */
.saldocard { display: block; margin: 16px 20px; padding: 20px 20px 16px;
  border-radius: 22px; color: var(--text); position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(46,217,184,.26), transparent 60%),
    linear-gradient(160deg, #16302f, var(--surface));
  box-shadow: inset 0 0 0 1px rgba(46,217,184,.14); }
.saldocard::before, .saldocard::after { content: ""; position: absolute;
  border-radius: 50%; pointer-events: none; }
.saldocard::before { right: -40px; bottom: -70px; width: 180px; height: 180px;
  border: 1.5px solid rgba(46,217,184,.14); }
.saldocard::after { right: -10px; bottom: -30px; width: 120px; height: 120px;
  border: 1.5px solid rgba(46,217,184,.09); }
.saldocard .sc-top { color: #bfe9e0; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; }
.saldocard .sc-val { font-size: 38px; font-weight: 800; color: #fff;
  letter-spacing: -.02em; margin: 8px 0 10px; font-variant-numeric: tabular-nums; }
.sc-trend { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px;
  font-weight: 700; color: var(--pos); background: rgba(53,214,160,.12);
  padding: 4px 10px; border-radius: 20px; }
.sc-trend.neg { color: var(--red); background: rgba(251,122,136,.12); }
.bars { display: flex; align-items: flex-end; justify-content: space-between;
  gap: 8px; height: 104px; margin-top: 16px; position: relative; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center;
  height: 100%; justify-content: flex-end; gap: 5px; }
.bar-val { font-size: 9.5px; color: var(--muted); font-weight: 600;
  font-variant-numeric: tabular-nums; }
.bar-col.on .bar-val { color: var(--teal-bright); }
.bar { width: 100%; max-width: 30px; min-height: 6px; border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #3a5250, #24403f); transition: height .3s; }
.bar.atual { background: linear-gradient(180deg, var(--teal-bright), var(--teal));
  box-shadow: 0 0 18px rgba(46,217,184,.45); }
.bar-lb { color: var(--muted); font-size: 10.5px; font-weight: 600; }
.bar-col.on .bar-lb { color: var(--text); }

/* Stat card com ícone (Financeiro Resumo) */
.stat { display: block; background: var(--surface); border-radius: 18px; padding: 15px;
  color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.stat .ic { width: 32px; height: 32px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; background: rgba(46,217,184,.14);
  color: var(--teal-bright); font-size: 17px; }
.stat .ic.pos { background: rgba(53,214,160,.14); color: var(--pos); }
.stat .ic.neg { background: rgba(251,122,136,.14); color: var(--red); }
.stat .ic.gold { background: rgba(245,196,81,.16); color: var(--gold); }
.stat .k { color: var(--muted); font-size: 12.5px; margin: 12px 0 4px; }
.stat .v { font-size: 21px; font-weight: 800; color: var(--teal-bright);
  letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat .v.pos { color: var(--pos); }
.stat .v.neg { color: var(--red); }
.stat .v.warn { color: var(--gold); }

/* Card PIX destacado */
.pixcard { display: flex; align-items: center; gap: 12px; margin: 16px 20px;
  padding: 16px; background: var(--surface); border-radius: var(--radius); }
.pixcard .ic { color: var(--teal-bright); font-size: 22px; }
.pixcard .k { color: var(--muted); font-size: 13px; }
.pixcard .val { color: var(--teal-bright); font-weight: 600; word-break: break-all; }

/* Resenha — grade de cards de recurso */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px; }
.feat { background: var(--surface); border-radius: var(--radius); padding: 18px 16px;
  min-height: 150px; display: flex; flex-direction: column; position: relative; }
.feat .fi { width: 40px; height: 40px; color: var(--text); font-size: 24px; }
.feat h3 { font-size: 18px; margin: 14px 0 8px; font-weight: 600; }
.feat p { color: var(--muted); font-size: 13px; line-height: 1.4; }
.feat.soon { opacity: .55; }
.tagpro { position: absolute; top: 16px; right: 16px; background: var(--teal);
  color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.tag-soon { position: absolute; top: 16px; right: 16px; background: var(--surface-2);
  color: var(--muted); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }

/* Mural — post estilo card */
.post { margin: 16px 20px; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; }
.post .head { display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: var(--surface-2); }
.post .head .who { font-weight: 600; }
.post .head .when { color: var(--muted); font-size: 12px; }
.post .body { padding: 16px; white-space: pre-wrap; line-height: 1.5; font-size: 15px; }

/* Avatar section header (Jogadores / Próxima pelada) */
.section-band { background: var(--surface-2); padding: 12px 20px; color: var(--muted);
  display: flex; justify-content: space-between; font-size: 15px; }

/* Lançar diárias */
.diaria-row { display: flex; align-items: center; gap: 10px; padding: 10px 20px;
  border-bottom: 1px solid #2a3542; }
.dr-check { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.dr-check input { width: auto; margin: 0; flex: 0 0 auto; transform: scale(1.3); }
.dr-check .conf { color: var(--teal-bright); font-size: 12px; }
.conv-sel { margin: 0; width: 150px; flex: 0 0 150px; padding: 10px; font-size: 13px; }

/* Lançar resultado */
.statshead { display: grid; grid-template-columns: 1fr 44px 44px 60px; gap: 8px;
  padding: 10px 20px; color: var(--muted); font-size: 13px; align-items: center; }
.statshead span:not(:first-child) { text-align: center; }
.statsrow { display: grid; grid-template-columns: 1fr 44px 44px 60px; gap: 8px;
  padding: 6px 20px; align-items: center; }
.statsrow .who { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.statsrow .who .avatar { width: 34px; height: 34px; margin: 0; }
.statsrow input { width: 100%; margin: 0; padding: 10px 6px; text-align: center; }

/* Cartões: 3 colunas a mais estouram a grade no celular, então a súmula
   guarda amarelo/azul/vermelho numa sub-linha que só abre quando precisa
   (quase toda pelada tem zero cartão). Quem já tem cartão salvo abre sozinho. */
.statsrow .whosub { display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  color: var(--muted); font-size: 12px; margin-top: 2px; }
.statsrow .whosub label { display: flex; align-items: center; gap: 6px; }
.statsrow .whosub input[type=checkbox] { width: auto; margin: 0; transform: scale(1.1); }
.cardtog { padding: 2px 8px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--surface-2); color: var(--muted); font-size: 11.5px;
  font-weight: 600; line-height: 1.7; }
.cardtog.on { background: rgba(240,190,60,.18); color: #F0BE3C; }
.cardrow { display: none; gap: 10px; padding: 0 20px 8px 64px; }
.cardrow.on { display: flex; }
.cardrow label { display: flex; align-items: center; gap: 5px; font-size: 15px; }
.cardrow input { width: 48px; margin: 0; padding: 8px 4px; text-align: center; }

/* Destaques / Seleção */
.dcard { display: flex; align-items: center; gap: 10px; background: var(--surface-2);
  border-radius: 12px; padding: 12px; }
.dcard.big { flex-direction: column; text-align: center; min-height: 110px;
  justify-content: center; gap: 6px; }
.dcard .de { font-size: 22px; }
.dcard .dl { color: var(--muted); font-size: 12px; text-transform: uppercase;
  letter-spacing: .04em; }
.dcard .dp { font-weight: 600; font-size: 15px; margin-top: 2px; }

/* Rótulo de campo em formulários */
.fld { display: block; color: var(--muted); font-size: 13px; margin: 14px 20px 0; }

/* Extrato do jogador (conta-corrente: cobrança + / pagamento -) */
.ledrow { display: flex; align-items: center; gap: 12px; padding: 13px 20px;
  border-bottom: 1px solid #2a3542; }
.ledrow .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.ledval { font-weight: 700; font-size: 15px; white-space: nowrap; }
.ledval.pay { color: var(--teal-bright); }
.ledval.bill { color: var(--muted); }

/* Rankings */
.rankrow { display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  border-bottom: 1px solid #2a3542; }
.rankrow .rank { width: 28px; text-align: center; font-weight: 700; color: var(--muted); font-size: 16px; }
.rankrow .rankval { font-size: 20px; font-weight: 700; color: var(--teal-bright); }

/* Ajustes (hub) */
.hub { display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  border-bottom: 1px solid #2a3542; color: var(--text); font-size: 16px; }
.hub .hi { width: 26px; text-align: center; color: var(--teal-bright); font-size: 18px; }
.hub .chev { color: var(--muted); font-size: 22px; }
.hub.pro { background: linear-gradient(90deg, rgba(0,163,150,.18), transparent);
  gap: 12px; }

/* Caixa (accordion por ano) */
.caixa-total { padding: 18px 20px; }
.caixa-total .k { color: var(--muted); font-size: 14px; }
.caixa-total .v { font-size: 30px; font-weight: 700; color: var(--teal-bright); margin-top: 4px; }
.caixa-total .v.neg { color: var(--red); }
.acc { border-bottom: 1px solid #2a3542; }
.acc summary { display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; font-size: 18px; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "▾"; color: var(--muted); margin-left: 10px; }
.acc[open] summary::after { content: "▴"; }
.acc .amt { color: var(--teal-bright); font-weight: 600; }
.acc .amt.neg { color: var(--red); }
.accrow { display: flex; justify-content: space-between; padding: 12px 20px 12px 32px;
  color: var(--muted); border-top: 1px solid #232f3c; }

/* Jogadores (roster) */
#busca { width: calc(100% - 40px); }
.jrow { display: flex; align-items: center; gap: 14px; padding: 14px 20px;
  border-bottom: 1px solid #2a3542; color: var(--text); }
.jrow .nome { font-weight: 600; }
.jrow .apelido { color: var(--muted); font-size: 14px; }
.jrow .meta { color: var(--muted); font-size: 12px; margin-top: 3px; }
.jrow .chev { color: var(--muted); font-size: 22px; }

/* Próxima pelada */
.datehead { padding: 16px 20px 6px; }
.datehead .d { font-size: 20px; font-weight: 600; }
.datehead .t { color: var(--muted); margin-top: 2px; font-size: 14px; }
.locrow { display: flex; align-items: center; gap: 12px; margin: 8px 20px 4px;
  padding: 14px 16px; background: var(--surface); border-radius: var(--radius); }
.locrow .ic { color: var(--teal-bright); font-size: 18px; }
.locrow .k { color: var(--muted); font-size: 12px; }
.weather { display: flex; align-items: center; gap: 14px; margin: 8px 20px 4px;
  padding: 16px; background: var(--surface); border-radius: var(--radius); }
.weather .cond { color: var(--muted); font-size: 13px; }
.weather .temp { font-size: 24px; font-weight: 700; }
.chips { display: flex; gap: 10px; padding: 10px 20px 6px; overflow-x: auto; }
.chips .chip { white-space: nowrap; cursor: pointer; padding: 9px 18px; }
.status-dot { width: 13px; height: 13px; border-radius: 50%; flex: 0 0 auto; margin-left: 8px; }
.status-dot.in { background: var(--teal-bright); }
.status-dot.out { background: var(--red); }
.status-dot.wait { border: 2px solid var(--muted); }
.prow { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid #2a3542; }
.prow .conf { color: var(--teal-bright); font-size: 13px; margin-top: 2px; }
.prow .pos { color: var(--muted); font-size: 13px; margin-top: 2px; }
.prow .motivo { color: var(--muted); font-size: 12px; }
.fab { position: fixed; right: 18px; bottom: 96px; width: 58px; height: 58px;
  border-radius: 50%; background: var(--teal); color: #fff; display: flex;
  align-items: center; justify-content: center; border: 0; z-index: 9;
  box-shadow: 0 6px 16px rgba(0,163,150,.5); }
.fab svg { width: 28px; height: 28px; fill: #fff; }

/* Mensagens */
.flash { margin: 12px 20px; padding: 14px; border-radius: var(--radius);
  background: var(--surface); border-left: 4px solid var(--teal); font-size: 15px; }
.flash.error { border-left-color: var(--red); }

.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--teal-bright); margin-right: 12px; }
.row-left { display: flex; align-items: center; }

/* Detalhe de transação (editar/reatribuir) */
/* ---- Transação (classificação) — compacto ---- */
.txc { padding: 12px 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.txcard { background: var(--card); border: 1px solid #2a3542; border-radius: 14px;
  padding: 12px 14px; border-left: 3px solid var(--pos); }
.txcard.out { border-left-color: var(--red); }
.txcard .txval { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--pos); }
.txcard.out .txval { color: var(--red); }
.txcard .txmeta { color: var(--muted); font-size: 13px; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txtags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.txtag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: rgba(53,214,160,.15); color: var(--pos); }
.txtag.muted { background: rgba(255,255,255,.06); color: var(--muted); }
.txblock { background: var(--card); border: 1px solid #2a3542; border-radius: 14px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.txblock select, .txblock input[type=text], .txblock input:not([type]),
.txblock .splitrow input { width: 100%; margin: 0; padding: 11px 12px; }
.txlab { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); }
.txblock .splitrows { display: flex; flex-direction: column; gap: 6px; }
.txblock .splitrow { margin: 0; }
.txlink { background: none; border: 0; color: var(--teal-bright); font-size: 13px;
  font-weight: 600; padding: 0; text-align: left; cursor: pointer; }
.txchk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.txchk input { width: auto; margin: 0; }
.txbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.txbtns .btn-sm { flex: 1; min-width: 92px; padding: 11px 12px; white-space: nowrap; }
.txhint { font-size: 12px; color: var(--muted); }

/* Chip de categoria nas transações (Caixa do mês) */
.txchip { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; margin-right: 6px; letter-spacing: .01em; vertical-align: middle; }
.txchip.chip-mens  { background: rgba(59,130,246,.18);  color: #7fb0ff; }
.txchip.chip-diar  { background: rgba(16,185,129,.18);  color: #35d6a0; }
.txchip.chip-camp  { background: rgba(245,196,81,.18);  color: var(--gold); }
.txchip.chip-desp  { background: rgba(236,72,153,.18);  color: #f472b6; }
.txchip.chip-multa { background: rgba(139,92,246,.20);  color: #b79cff; }
.txchip.chip-rec   { background: rgba(46,217,184,.18);  color: var(--teal-bright); }
.txchip.chip-warn  { background: rgba(245,196,81,.20);  color: var(--gold); }
.txchip.chip-transf{ background: rgba(100,116,139,.22); color: #a8b7c7; }

/* Extrato do jogador: rótulo em vez de sinal (+/− confunde vs extrato de banco) */
.ledtag { display: inline-block; font-size: 9.5px; font-weight: 800; padding: 1.5px 7px;
  border-radius: 999px; margin-right: 5px; letter-spacing: .04em; text-transform: uppercase;
  vertical-align: 2px; }
.ledtag.bill { background: rgba(251,122,136,.16); color: var(--red); }
.ledtag.pay  { background: rgba(46,217,184,.16);  color: var(--teal-bright); }

/* Encontro de contas — lançamentos (razão do jogador) */
.lanc { padding: 12px 20px; display: flex; flex-direction: column; gap: 14px; }
.lanc-card { background: var(--surface); border-radius: 18px; padding: 16px;
  box-shadow: inset 0 0 0 1px var(--line); }
.lanc-h { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px;
  margin-bottom: 14px; }
.lanc-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; }
.lanc-ic.bill { background: rgba(251,122,136,.16); color: var(--red); }
.lanc-ic.pay { background: rgba(53,214,160,.16); color: var(--pos); }
.lanc-ic.tl { background: rgba(46,217,184,.16); color: var(--teal-bright); }
.lanc-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.lanc-span2 { grid-column: span 2; }
.lanc label { display: flex; flex-direction: column; gap: 5px; color: var(--muted);
  font-size: 12px; font-weight: 600; }
.lanc-full { margin-top: 10px; }
.lanc-card input, .lanc-card select { width: 100%; margin: 0; padding: 11px 12px;
  font-size: 15px; border: 1px solid var(--line); background: var(--bg);
  border-radius: 11px; color: var(--text); -webkit-appearance: none; }
.lanc-card .btn { width: 100%; margin: 14px 0 0; padding: 13px; }
.lanc-hint { color: var(--muted); font-size: 12.5px; margin-top: 10px; line-height: 1.4; }

/* Regulamento */
.regsec{background:var(--card);border-radius:14px;padding:14px 16px;margin-bottom:12px;}
.reghead{font-weight:700;font-size:14px;letter-spacing:.3px;color:var(--teal-bright,#2fbfa0);
  text-transform:uppercase;margin-bottom:8px;}
.regline{font-size:14px;line-height:1.55;color:var(--fg);margin:3px 0;padding-left:2px;}

/* ============================================================
   REFINO OPÇÃO 2 — Caixa, Jogadores, Pelada, Mural, Resenha, Ajustes
   ============================================================ */

/* ---- CAIXA: herói de dois potes ---- */
.pothero { margin: 16px 20px; padding: 18px 18px 16px; border-radius: 22px;
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 88% -10%, rgba(46,217,184,.26), transparent 60%),
    linear-gradient(160deg, #16302f, var(--surface));
  box-shadow: inset 0 0 0 1px rgba(46,217,184,.14); }
.pothero::after { content: ""; position: absolute; right: -40px; bottom: -70px;
  width: 180px; height: 180px; border-radius: 50%;
  border: 1.5px solid rgba(46,217,184,.13); pointer-events: none; }
.pothero .ph-lab { color: #bfe9e0; font-size: 12.5px; font-weight: 600;
  display: flex; align-items: center; gap: 7px; }
.pothero .ph-val { font-size: 34px; font-weight: 800; color: #fff; letter-spacing: -.02em;
  margin: 6px 0 14px; font-variant-numeric: tabular-nums; }
.pothero .ph-val.neg { color: var(--red); }
.ph-split { display: flex; gap: 10px; position: relative; }
.ph-split .pot { flex: 1; background: rgba(6,18,18,.42); border-radius: 13px; padding: 10px 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); color: var(--text); }
.ph-split .pot .pk { display: flex; align-items: center; gap: 6px; font-size: 11px;
  color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.ph-split .pot .pk i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-bright); }
.ph-split .pot.rf .pk i { background: var(--gold); }
.ph-split .pot .pn { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ph-split .pot.rf .pn { color: var(--gold); }

/* ---- CAIXA: atalhos rápidos ---- */
.qact { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 0 20px; }
.qbtn { display: flex; align-items: center; gap: 11px; background: var(--surface);
  border-radius: 16px; padding: 13px; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.qbtn .qi { width: 34px; height: 34px; border-radius: 11px; flex: 0 0 auto;
  background: rgba(46,217,184,.14); color: var(--teal-bright); display: grid; place-items: center;
  font-size: 16px; }
.qbtn .qt b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.1; }
.qbtn .qt small { font-size: 11px; color: var(--muted); }

/* ghost button (Lançar despesa) */
.ghost-sum { display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 11px 20px 0; padding: 12px; border-radius: 14px; cursor: pointer;
  border: 1.4px dashed rgba(46,217,184,.32); background: rgba(46,217,184,.04);
  color: var(--teal-bright); font-size: 13.5px; font-weight: 700; list-style: none; }
.ghost-sum::-webkit-details-marker { display: none; }

/* banda de seção discreta */
.miniband { display: flex; justify-content: space-between; align-items: center;
  margin: 14px 24px 2px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; }

/* período — linhas de mês com sparkline */
.acc .mo { display: flex; align-items: center; gap: 12px; padding: 11px 20px;
  border-top: 1px solid #232f3c; color: var(--text); }
.acc .mo .mname { flex: 1; font-size: 14px; font-weight: 600; text-transform: capitalize; }
.acc .mo .spark { width: 46px; height: 20px; flex: 0 0 auto; }
.acc .mo .spark polyline { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acc .mo .spark.pos polyline { stroke: var(--pos); }
.acc .mo .spark.neg polyline { stroke: var(--red); }
.acc .mo .mnet { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums;
  min-width: 84px; text-align: right; }
.acc .mo .mnet.pos { color: var(--pos); } .acc .mo .mnet.neg { color: var(--red); }
.acc .mo .go { color: var(--muted); opacity: .5; font-size: 16px; }

/* ---- JOGADORES: avatar quadrado com gradiente + busca ---- */
.fin-jrow .avatar { width: 38px; height: 38px; border-radius: 12px; margin: 0;
  background: linear-gradient(150deg, var(--teal-bright), var(--teal)); color: #0C1A1C;
  font-size: 15px; }
.fin-jrow.late .avatar { background: linear-gradient(150deg, #f79aa4, #e46a78); color: #3a0d13; }
.fin-jrow .who .sub { color: var(--muted); font-size: 11.5px; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Pagar prestadores — trilho de ação uniforme (valor tabular + pill fixa) */
.pp-val { flex: 0 0 auto; min-width: 92px; text-align: right; font-weight: 700;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-val.out { color: var(--red); }
.paybtn { flex: 0 0 auto; width: 96px; padding: 9px 0; text-align: center; }

.searchbar { display: flex; align-items: center; gap: 9px; margin: 14px 20px 20px;
  padding: 11px 14px; background: var(--surface); border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }

/* Card "Sua conta" no topo dos Jogadores (saldo do usuário logado) */
.minha-conta { display: flex; align-items: center; gap: 13px; margin: 16px 20px 4px;
  padding: 15px 16px; border-radius: 18px; color: var(--text);
  background: radial-gradient(120% 100% at 88% -10%, rgba(46,217,184,.22), transparent 60%),
    linear-gradient(160deg, #16302f, var(--surface));
  box-shadow: inset 0 0 0 1px rgba(46,217,184,.16); }
.minha-conta .avatar { width: 42px; height: 42px; border-radius: 13px; margin: 0;
  background: linear-gradient(150deg, var(--teal-bright), var(--teal)); color: #0C1A1C; }
.minha-conta .mc-who { flex: 1; min-width: 0; }
.minha-conta .mc-nome { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.minha-conta .mc-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.minha-conta .mc-saldo { font-size: 17px; font-weight: 800; color: var(--pos);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.minha-conta .mc-saldo.deve { color: var(--red); }
.minha-conta .mc-saldo.fav { color: var(--teal-bright); }
.minha-conta .chev { color: var(--muted); font-size: 20px; }
.searchbar svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; flex: 0 0 auto; }
.searchbar input { flex: 1; width: auto; margin: 0; padding: 0; border: 0; background: transparent;
  color: var(--text); font-size: 14px; }
.searchbar input::placeholder { color: var(--muted); }

/* ---- PELADA: herói de data com glow ---- */
.datehero { margin: 14px 20px 4px; padding: 15px 17px; border-radius: 20px;
  position: relative; overflow: hidden;
  background: radial-gradient(120% 100% at 90% -20%, rgba(46,217,184,.24), transparent 60%),
    linear-gradient(160deg, #16302f, var(--surface));
  box-shadow: inset 0 0 0 1px rgba(46,217,184,.14); }
.datehero .dk { font-size: 11px; color: #bfe9e0; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; }
.datehero .dd { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: #fff;
  margin: 2px 0; }
.datehero .dt { font-size: 13px; color: #cdeee7; font-weight: 600; }
.datehero .loc { display: flex; align-items: center; gap: 6px; margin-top: 9px;
  font-size: 12.5px; color: #a9d8cf; }
/* prow refinado */
.prow .avatar { width: 37px; height: 37px; border-radius: 12px;
  background: linear-gradient(150deg, var(--teal-bright), var(--teal)); color: #0C1A1C;
  font-size: 14px; margin-right: 11px; }
.status-dot.in { background: var(--pos); box-shadow: 0 0 8px rgba(53,214,160,.6); }
.status-dot.wait { border: 0; background: var(--gold); }

/* ---- MURAL: post em card + compositor ---- */
.post { margin: 14px 20px; background: var(--surface); border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line); overflow: visible; }
.post .head { background: transparent; padding: 14px 15px 8px; }
.post .head .avatar { width: 34px; height: 34px; border-radius: 11px; margin-right: 0;
  background: linear-gradient(150deg, var(--teal-bright), var(--teal)); color: #0C1A1C; font-size: 14px; }
.post .head .pin { margin-left: auto; color: var(--gold); font-size: 15px; }
.post .body { padding: 0 15px 15px; }
.post .body b { display: block; margin-bottom: 3px; font-size: 15px; color: var(--text); }
.compose { margin: 14px 20px; background: var(--surface); border-radius: 18px; padding: 14px;
  box-shadow: inset 0 0 0 1px var(--line); }
.compose input, .compose textarea { width: 100%; margin: 0 0 9px; padding: 11px 13px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.compose .btn { width: 100%; margin: 4px 0 0; }

/* ---- RESENHA: card com ícone tintado ---- */
.feat { min-height: 128px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line);
  padding: 15px 14px; }
.feat .fi { width: 42px; height: 42px; border-radius: 13px; background: rgba(46,217,184,.12);
  display: grid; place-items: center; font-size: 21px; margin-bottom: 8px; }
.feat h3 { font-size: 15px; margin: 0 0 5px; font-weight: 800; letter-spacing: -.01em; }
.feat p { font-size: 12px; line-height: 1.45; }
.feat .go { margin-top: auto; color: var(--teal-bright); font-size: 12px; font-weight: 700; padding-top: 8px; }

/* ---- AJUSTES: hub em tiles ---- */
.hub { border-bottom: 0; margin: 8px 20px; padding: 13px 15px; border-radius: 14px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.hub .hi { width: 30px; height: 30px; border-radius: 10px; background: rgba(46,217,184,.12);
  display: grid; place-items: center; font-size: 15px; color: var(--teal-bright); }
.hub .ht { flex: 1; font-weight: 600; }
.hub .ht .warn { color: var(--gold); font-weight: 700; font-size: 12px; }
.prohub { display: flex; align-items: center; gap: 12px; margin: 14px 20px 8px;
  padding: 14px 15px; border-radius: 16px; color: var(--text);
  background: radial-gradient(120% 120% at 90% 0, rgba(245,196,81,.16), transparent 60%),
    linear-gradient(160deg, #1c2b1f, #12201a);
  box-shadow: inset 0 0 0 1px rgba(245,196,81,.24); }
.prohub .pt { flex: 1; font-size: 14.5px; font-weight: 800; }
.prohub .tag { font-size: 10px; font-weight: 800; letter-spacing: .06em; color: #0C1A1C;
  background: var(--gold); padding: 3px 7px; border-radius: 6px; }
.prohub .chev { color: var(--muted); font-size: 20px; }
.hub.exit { box-shadow: inset 0 0 0 1px rgba(251,122,136,.24); background: rgba(251,122,136,.06);
  width: calc(100% - 40px); border: 0; text-align: left; }
.hub.exit .hi { background: rgba(251,122,136,.14); color: var(--red); }
.hub.exit .ht { color: var(--red); }

/* Botão excluir cobrança no razão (multa/diária lançada por engano) */
.led-del { flex: 0 0 auto; margin-left: 12px; width: 34px; height: 34px;
  border: 0; border-radius: 11px; background: rgba(251,122,136,.14); color: var(--red);
  font-size: 16px; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.led-del:active { background: rgba(251,122,136,.28); }

/* Próxima pelada — modelo Chega+: anel de status + menu por jogador + speed-dial */
.prow { cursor: pointer; }
.prow .row-left { flex: 1; min-width: 0; }
.prow .pwho { min-width: 0; }
.prow .pwho .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .st { font-size: 11.5px; margin-top: 1px; font-weight: 600; }
.prow .st.in { color: var(--pos); }
.prow .st.out { color: var(--red); }
.prow .st.wait { color: var(--gold); }
.prow .st.none { color: var(--muted); }
.prow .diar { color: var(--blue); font-size: 11.5px; font-weight: 600; }
.sring { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; box-sizing: border-box;
  border: 2.5px solid var(--muted); }
.sring.in { background: var(--pos); border-color: var(--pos); }
.sring.out { background: var(--red); border-color: var(--red); }
.sring.wait { background: var(--gold); border-color: var(--gold); }

/* overlay + bottom sheet (menu do jogador / quem é você) */
.ovl { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 40;
  opacity: 0; pointer-events: none; transition: opacity .2s; }
.ovl.open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 43; margin: 0 auto;
  max-width: 480px; background: var(--surface-2); border-radius: 22px 22px 0 0;
  padding: 10px 18px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform .28s cubic-bezier(.2,.85,.25,1);
  box-shadow: 0 -12px 40px rgba(0,0,0,.5); }
.sheet.open { transform: translateY(0); }
.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px;
  background: var(--line); margin: 2px auto 14px; }
.sheet-h { font-size: 18px; font-weight: 800; margin: 0 4px 12px; }
.sheet-btn { display: flex; align-items: center; gap: 12px; width: 100%; margin: 8px 0 0;
  padding: 15px 16px; border: 0; border-radius: 14px; font-size: 16px; font-weight: 700;
  cursor: pointer; background: var(--surface); color: var(--text); text-align: left; }
.sheet-btn.in { background: var(--pos); color: #06231a; }
.sheet-btn.out { background: var(--red); color: #2a0d10; }
.sheet-close { width: 100%; margin-top: 12px; padding: 12px; border: 0; background: transparent;
  color: var(--muted); font-size: 15px; cursor: pointer; }
.sheet select { width: 100%; margin: 6px 0 4px; }

/* FAB speed-dial (meu check-in) — canto inferior direito */
.speeddial { position: fixed; right: 18px; bottom: 96px; z-index: 42;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
@media (min-width: 560px) { .speeddial { right: calc(50% - 240px + 18px); } }
.sd-opt { display: flex; align-items: center; gap: 10px; margin: 0;
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .18s, transform .18s; }
.speeddial.open .sd-opt { opacity: 1; transform: none; pointer-events: auto; }
.sd-lbl { background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 700;
  padding: 7px 12px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.sd-mini { width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.sd-mini svg { width: 26px; height: 26px; fill: #fff; }
.sd-mini.in { background: var(--pos); } .sd-mini.out { background: var(--red); }
.speeddial .fab { position: static; }
.speeddial.open .fab { background: #7d9995; }
.speeddial .fab .ic-x { display: none; }
.speeddial.open .fab .ic-boot { display: none; }
.speeddial.open .fab .ic-x { display: block; }

/* ============================================================
   AJUSTES — lista estilo Chega+ (linhas full-width, ícones, seções)
   ============================================================ */
.set-h { padding: 24px 20px 6px; color: var(--muted); font-size: 14px; letter-spacing: .01em; }
.setrow { display: flex; align-items: center; gap: 16px; padding: 17px 20px;
  border-top: 1px solid var(--line); background: var(--surface); color: var(--text); }
.setrow:last-of-type { border-bottom: 1px solid var(--line); }
.setrow .si { width: 24px; height: 24px; flex: 0 0 auto; color: var(--muted); }
.setrow .si svg { width: 23px; height: 23px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.setrow .sl { flex: 1; font-size: 16.5px; letter-spacing: -.01em; }
.setrow .sr { color: var(--muted); font-size: 16px; font-variant-numeric: tabular-nums; }
.setrow .sc { color: var(--muted); opacity: .5; font-size: 20px; margin-left: 2px; }
.setrow.warn .sr { color: var(--gold); font-weight: 700; }

/* faixa destacada (Grupo PRO) */
.set-hl { display: flex; align-items: center; gap: 15px; margin: 16px 0; padding: 18px 20px;
  color: var(--text); background: linear-gradient(90deg, rgba(46,217,184,.18), rgba(46,217,184,.03));
  box-shadow: inset 0 1px 0 rgba(46,217,184,.35), inset 0 -1px 0 rgba(46,217,184,.35); }
.set-hl .si { color: var(--teal-bright); }
.set-hl .sl { flex: 1; font-size: 17px; font-weight: 700; }
.set-tag { background: var(--teal); color: #06231a; font-size: 11px; font-weight: 800;
  padding: 3px 8px; border-radius: 6px; letter-spacing: .04em; }

/* ação centralizada (adicionar) + sair */
.set-action { display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 20px; color: var(--teal-bright); font-weight: 700; font-size: 14.5px;
  letter-spacing: .05em; text-transform: uppercase; }
.set-exit { display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 22px; margin: 10px 0 0; border: 0; background: transparent; cursor: pointer;
  color: var(--red); font-weight: 700; font-size: 14.5px; letter-spacing: .05em; text-transform: uppercase; }
.set-action svg, .set-exit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; }

/* Meu Perfil */
.perfil-foto { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 20px 6px; }
.avatar-lg { width: 100px; height: 100px; border-radius: 30px; display: grid; place-items: center;
  font-size: 40px; font-weight: 800; color: #0C1A1C; overflow: hidden;
  background: linear-gradient(150deg, var(--teal-bright), var(--teal));
  box-shadow: 0 12px 30px -8px rgba(46,217,184,.5); }
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.perfil-troca { color: var(--teal-bright); font-size: 14px; font-weight: 700; cursor: pointer; }
.nivel-wrap { margin-top: 16px; }
.nivel-label { color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.nivel-label span { font-weight: 400; }
.nivel-stars { display: flex; gap: 8px; }
.nivel-stars .star { flex: 1; padding: 12px 0; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--bg); color: var(--muted); font-size: 24px; box-shadow: inset 0 0 0 1px var(--line); }
.nivel-stars .star.on { color: var(--gold); background: rgba(245,196,81,.12);
  box-shadow: inset 0 0 0 1px rgba(245,196,81,.3); }

/* Avatar com foto (mostra a imagem no lugar da inicial) */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Cropper de foto (arrastar + zoom) */
.cropbox { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#cropCanvas { width: 220px; height: 220px; border-radius: 30px; touch-action: none; cursor: grab;
  background: var(--bg); box-shadow: 0 12px 30px -8px rgba(46,217,184,.5); }
#cropCanvas:active { cursor: grabbing; }
#cropbox input[type=range] { width: 220px; margin: 0; padding: 0; border: 0; background: transparent;
  accent-color: var(--teal-bright); }
.crop-hint { color: var(--muted); font-size: 12px; }

/* Cobranças — compacto */
.cobr-sum { display: flex; justify-content: space-between; align-items: center;
  margin: 14px 20px 6px; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(251,122,136,.12), var(--surface));
  box-shadow: inset 0 0 0 1px var(--line); }
.cobr-sum .cs-k { color: var(--muted); font-size: 12px; font-weight: 600; }
.cobr-sum .cs-n { color: var(--red); font-size: 24px; font-weight: 800; }
.cobr-sum .cs-v { color: var(--red); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cobr-card { margin: 10px 20px; background: var(--surface); border-radius: 16px; padding: 13px 14px;
  box-shadow: inset 0 0 0 1px var(--line); }
.cobr-top { display: flex; align-items: center; gap: 12px; }
.cobr-top .avatar { width: 40px; height: 40px; border-radius: 12px; margin: 0; }
.cobr-who { flex: 1; min-width: 0; }
.cobr-who .title { font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cobr-who .sub { color: var(--muted); font-size: 11.5px; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cobr-tot { font-size: 16.5px; font-weight: 800; color: var(--red); white-space: nowrap;
  font-variant-numeric: tabular-nums; }
.cobr-acts { margin-top: 11px; }
.cobr-wa { display: block; text-align: center; background: var(--pos); color: #06231a;
  font-weight: 700; padding: 11px; border-radius: 12px; font-size: 14.5px; }
.cobr-notel { color: var(--muted); font-size: 13px; }
/* Tela de Acesso — linha compacta: 29 mensalistas têm de caber na rolagem */
.acc-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.acc-row .avatar { width: 34px; height: 34px; font-size: 14px; }
.acc-mid { min-width: 0; }
.acc-nome { font-weight: 700; font-size: 15px; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-sub { display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  margin-top: 2px; font-size: 12px; color: var(--muted); }
.acc-ok { opacity: .55; }
.acc-act { flex: 0 0 auto; }
.acc-sep { margin: 14px 0 2px; padding: 0 12px; font-size: 11.5px;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); }
.acc-btn { padding: 7px 12px; font-size: 13px; font-weight: 700; border: 0;
  border-radius: 10px; cursor: pointer; white-space: nowrap;
  color: var(--teal-bright); background: rgba(46, 217, 184, .14); }
.acc-btn.wa { color: #06231e; background: var(--teal-bright); }
.acc-mini { font-size: 12px; color: var(--muted); white-space: nowrap; }
/* sugestao de convidado ja conhecido (datalist nao abre no iOS) */
.sug { margin-top: 6px; border-radius: 12px; overflow: hidden;
  background: var(--surface, #10201f);
  box-shadow: inset 0 0 0 1px var(--line, rgba(255,255,255,.08)); }
.sug-item { display: block; width: 100%; text-align: left; border: 0;
  padding: 11px 13px; cursor: pointer; background: transparent; color: var(--fg);
  border-bottom: 1px solid var(--line, rgba(255,255,255,.06)); }
.sug-item:last-child { border-bottom: 0; }
.sug-item b { display: block; font-size: 15px; font-weight: 700; }
.sug-item span { font-size: 12px; color: var(--muted); }
.tag-alerta, .tag-morno { font-size: 11px; font-weight: 700; padding: 1px 7px;
  border-radius: 999px; white-space: nowrap; }
.tag-alerta { color: #ffd7d7; background: rgba(220, 70, 70, .22); }
.tag-morno { color: #ffe6b8; background: rgba(224, 168, 0, .20); }
.acesso-link { grid-column: 1 / -1; margin: 4px 0 0; padding: 6px 8px;
  font-size: 11px; font-family: ui-monospace, monospace; }
.cobr-tel { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cobr-tel .cobr-notel { flex: 0 0 auto; }
.cobr-tel input { margin: 0; flex: 1 1 130px; min-width: 130px;
  padding: 11px 12px; font-size: 15px; }
.cobr-baixa summary { list-style: none; margin-top: 9px; color: var(--teal-bright);
  font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 0; }
.cobr-baixa summary::-webkit-details-marker { display: none; }
.cobr-form { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.cobr-form input { margin: 0; padding: 11px 12px; font-size: 15px; }
.cobr-form .v { width: 88px; flex: 0 0 88px; }
.cobr-form button { flex: 0 0 auto; }

/* linha do convidado: de quem ele é e se é a estreia (não se cobra a 1ª) */
.cobr-host { margin-top: 8px; font-size: 13px; color: var(--muted); }
.cobr-host b { color: var(--text); font-weight: 600; }
.cobr-novo { color: var(--teal-bright); font-weight: 600; white-space: nowrap; }
/* emoji sem folga cola no texto — a fonte de emoji não tem sidebearing */
.cobr-ico { margin-right: 5px; }
/* "Isentar": no celular o rótulo não cabe ao lado do campo — ele toma a
   primeira linha inteira e o motivo + botão descem pra segunda */
.cobr-form-isen { flex-wrap: wrap; }
.cobr-isen-q { font-size: 13px; color: var(--muted); flex: 1 0 100%;
  line-height: 1.3; }
.cobr-form-isen input { flex: 1 1 auto; min-width: 0; }

/* ============================================================
   DESKTOP (≥1100px) — sidebar à esquerda + coluna de conteúdo larga.
   Mantém o design do app; só reorganiza (mobile permanece intocado).
   Geometria: sidebar 240 + gap 36 + conteúdo 760 = 1036 centralizado.
   ============================================================ */
@media (min-width: 1100px) {
  body { max-width: 760px; margin: 0 0 0 calc(50% - 242px);
    box-shadow: 0 0 60px rgba(0,0,0,.45);
    padding-bottom: 48px; min-height: 100vh; }

  /* nav de baixo vira sidebar fixa */
  .bottomnav { left: calc(50% - 518px); right: auto; top: 40px; bottom: auto;
    transform: none; width: 240px;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 20px 12px 14px; border-radius: 20px;
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .bottomnav::before { content: "⚽  Pelada dos Amigos"; display: block;
    font-size: 15px; font-weight: 800; color: var(--text);
    padding: 2px 10px 14px; letter-spacing: -.01em;
    border-bottom: 1px solid var(--line); margin-bottom: 10px; }
  .bottomnav a { flex-direction: row; justify-content: flex-start; gap: 12px;
    padding: 10px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 600; }
  .bottomnav a .ico { width: 34px; height: 34px; border-radius: 10px; }
  .bottomnav a.active { background: rgba(46,217,184,.12); }
  .bottomnav a.active .ico::after { display: none; }

  /* FAB e speed-dial ancorados na borda direita da coluna de conteúdo */
  .fab { right: calc(50% - 518px + 18px); }
  .speeddial { right: calc(50% - 518px + 18px); bottom: 48px; }

  /* bottom-sheets centralizados na coluna de conteúdo */
  .sheet { left: calc(50% - 102px); right: auto; width: 480px; margin: 0; }

  /* grades respiram na largura extra */
  .grid2 { grid-template-columns: repeat(3, 1fr); }
  .dev-summary { padding-left: 20px; padding-right: 20px; }
}

/* ===== VOTAÇÃO DO CAMPEONATO (nota 1-10 sem reload) ===== */
.vote-row { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.vote-row .vhead { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vote-row .avatar { width: 38px; height: 38px; border-radius: 12px; margin: 0;
  font-size: 16px; flex: 0 0 auto; }
.vote-row .vname { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.vote-check { flex: 0 0 auto; color: var(--teal-bright); font-size: 15px;
  font-weight: 700; opacity: 0; transition: opacity .2s; }
.vote-row.voted .vote-check { opacity: 1; }
.vote-btns { display: flex; gap: 4px; margin-top: 10px; }
.vote-btn { flex: 1; min-width: 0; padding: 11px 0; border-radius: 10px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vote-btn.sel { background: var(--teal); border-color: var(--teal); color: #fff;
  box-shadow: 0 0 12px rgba(46,217,184,.35); }
@media (prefers-reduced-motion: no-preference) {
  .vote-btn { transition: background .15s, border-color .15s, color .15s; }
  .vote-btn.sel { animation: votepop .18s ease; }
  @keyframes votepop { 50% { transform: scale(1.12); } }
}
.vote-progress { height: 4px; background: rgba(255,255,255,.08);
  border-radius: 999px; overflow: hidden; margin-top: 12px; }
.vote-progress i { display: block; height: 100%; width: 0;
  background: var(--teal-bright); border-radius: 999px; transition: width .25s; }

/* votação: badge "votou", concluir + celebração */
.vt-done { display: inline-block; margin-left: 6px; padding: 2px 8px;
  font-size: 11px; font-weight: 700; color: var(--teal-bright);
  background: rgba(46,217,184,.12); border: 1px solid rgba(46,217,184,.25);
  border-radius: 999px; vertical-align: 2px; }
.vote-flash { animation: voteneed 1.2s ease; }
@keyframes voteneed { 30% { background: rgba(244,180,90,.16); } }
.vote-overlay { position: fixed; inset: 0; z-index: 60; padding: 24px;
  display: grid; place-items: center; background: rgba(4,14,14,.85);
  backdrop-filter: blur(4px); }
.vote-overlay[hidden] { display: none; }
.vo-card { max-width: 320px; width: 100%; text-align: center;
  background: var(--surface-2); border: 1px solid rgba(46,217,184,.25);
  border-radius: 22px; padding: 28px 22px; box-shadow: 0 18px 60px rgba(0,0,0,.5); }
.vo-cup { font-size: 56px; display: block; margin-bottom: 8px; }
.vo-title { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.vo-sub { color: var(--muted); font-size: 14px; line-height: 1.45; margin-bottom: 18px; }
.vo-card .btn { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .vo-card { animation: vocardin .3s ease; }
  .vo-cup { animation: vocup .7s ease; }
  @keyframes vocardin { from { transform: scale(.9); opacity: 0; } }
  @keyframes vocup { 0% { transform: scale(0) rotate(-20deg); }
    60% { transform: scale(1.25) rotate(6deg); } 100% { transform: scale(1); } }
}

/* hub do campeonato: cobrança direta no WhatsApp */
.wa-btn { background: #1DAA61; flex: 0 0 auto; text-decoration: none;
  display: inline-block; white-space: nowrap; }
.fin-jrow .vt-done { flex: 0 0 auto; margin-left: 0; }

/* votação: "não vi jogar" (voto nulo) */
.vote-btns { flex-wrap: wrap; }
.vote-nc { flex: 1 1 100%; margin-top: 2px; padding: 9px 0; font-size: 13px; }
.vote-nc.sel { background: rgba(245,196,81,.15); border-color: var(--gold);
  color: var(--gold); box-shadow: none; }

/* ===== RANKINGS COMPACTO (estilo Flashscore) ===== */
.rt { background: var(--surface); border-radius: 14px; overflow: hidden; }
.rt-h, .rt-r { display: flex; align-items: center; gap: 6px; padding: 7px 10px; }
.rt-h { font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .3px; background: var(--surface-2); }
.rt-r { border-top: 1px solid rgba(255,255,255,.05); }
.rt-rank { width: 24px; flex: none; text-align: center; color: var(--muted);
  font-size: 12px; }
.rt-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; font-size: 14px; font-weight: 600; }
.rt-c { width: 32px; flex: none; text-align: center; font-size: 13px;
  color: var(--muted); font-variant-numeric: tabular-nums; }
.rt-c.on { color: var(--teal-bright); font-weight: 700; }
.rt-badge { display: inline-block; min-width: 30px; padding: 2px 3px;
  border-radius: 6px; font-weight: 700; font-size: 12px; color: #0b1512;
  text-align: center; }
.rt-badge.good { background: #4caf50; }
.rt-badge.mid { background: #cdd84a; }
.rt-badge.low { background: #ff9800; }
.rt-r .avatar { width: 24px; height: 24px; font-size: 11px; flex: none; }

/* Rankings: seletor compacto — categorias em 1 linha rolável, anos segmentados */
.rank-cats { display: flex; gap: 8px; padding: 10px 20px 8px; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rank-cats::-webkit-scrollbar { display: none; }
.rcat { flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--muted); background: var(--surface);
  border: 1px solid rgba(255,255,255,.08); text-decoration: none;
  white-space: nowrap; }
.rcat .rcat-i { font-size: 14px; }
.rcat.on { background: var(--teal); border-color: var(--teal); color: #06231d; }
.seg { display: inline-flex; background: rgba(255,255,255,.06);
  border-radius: 9px; padding: 2px; gap: 2px; }
.seg a { padding: 3px 10px; border-radius: 7px; font-size: 12px;
  font-weight: 700; color: var(--muted); text-decoration: none; }
.seg a.on { background: var(--teal); color: #06231d; }

/* Rankings: ano em dropdown + botão Geral */
.yrpick { display: inline-flex; align-items: center; gap: 6px; }
.yr-dd { background: rgba(255,255,255,.08); color: var(--text);
  border: 1px solid rgba(255,255,255,.12); border-radius: 9px;
  padding: 4px 8px; font-size: 13px; font-weight: 700; }
.yr-geral { padding: 4px 12px; border-radius: 9px; font-size: 12px;
  font-weight: 700; color: var(--muted); text-decoration: none;
  background: rgba(255,255,255,.06); }
.yr-geral.on { background: var(--teal); color: #06231d; }

/* ============================================================
   CAMPEONATO AO VIVO + SÚMULA — DESKTOP-FIRST
   Quem preenche a súmula é o time que está de fora, num computador na quadra,
   entre partidas de 10 min; a tela ao vivo ainda vai pro projetor. Só essas
   duas telas ganham .telao no <body> (base.html, via sem_desktop_gate) — o
   resto do app segue mobile-first, intocado.
   ============================================================ */
.aovivo { display: grid; gap: 14px; }

/* --- tela ao vivo --- */
.av-jogo { display: grid; grid-template-columns: 72px 1fr 58px 58px auto;
  gap: 8px; align-items: center; padding: 8px 12px; margin: 0 20px 6px;
  border-radius: 12px; background: var(--surface); font-size: 14px; }
.av-jogo.fim { opacity: .72; }
/* jogo com a bola rolando: o unico da lista que precisa ser achado de longe */
.av-jogo.emcampo { box-shadow: inset 0 0 0 1px var(--teal-bright); }
.av-live { display: block; color: var(--teal-bright); font-weight: 800;
  font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.btn-sm.start { white-space: nowrap; }
.av-fase { font-size: 10.5px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .04em; }
.av-times { min-width: 0; font-weight: 600; }
.av-times i { color: var(--muted); font-weight: 500; }
.av-placar { text-align: center; font-weight: 800;
  font-variant-numeric: tabular-nums; }
.av-placar small { display: block; font-size: 10px; font-weight: 600;
  color: var(--muted); }
/* "Em campo / Próximo": as duas perguntas que mais chegam, respondidas antes
   da lista pra não obrigar a varrer 14 linhas com gente esperando resposta */
.av-agora { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px; margin: 0 20px 14px; }
.agora-bloco { background: var(--surface); border-radius: var(--radius);
  padding: 10px 14px; }
.agora-bloco.live { box-shadow: inset 0 0 0 1px var(--teal-bright); }
.agora-rot { display: block; font-size: 10px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.agora-bloco.live .agora-rot { color: var(--teal-bright); }
.agora-bloco b { display: block; font-size: 17px; margin: 2px 0 3px; }
.agora-sub { font-size: 12px; color: var(--muted); }

/* Cenários de classificação. Cada linha é uma REGRA que dá pra gritar na
   quadra, não uma probabilidade — por isso a frase pesa mais que o número. */
.cen { margin: 0 20px; }
.cen-linha { display: grid; grid-template-columns: 108px 1fr; gap: 12px;
  align-items: start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cen-linha:last-child { border-bottom: 0; }
.cen-time { display: flex; align-items: center; gap: 6px; font-weight: 700;
  font-size: 14px; }
.cen-txt { font-size: 13px; }
.cen-txt b { display: block; font-weight: 600; margin-top: 2px; }
.cen-txt em { display: block; margin-top: 3px; color: var(--gold);
  font-style: normal; font-size: 12px; }
.cen-pill { display: inline-block; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px;
  border-radius: 5px; }
.cen-pill.classificado { background: rgba(46,217,184,.16); color: var(--teal-bright); }
.cen-pill.depende { background: rgba(245,196,81,.16); color: var(--gold); }
.cen-pill.eliminado { background: rgba(251,122,136,.16); color: var(--red); }

/* deduzido dos gols da súmula: parece placar, mas não se confunde com um */
.av-dedu { color: var(--muted); font-weight: 700; font-style: italic; }
/* Mandante: marca o time da esquerda sem gastar uma coluna da tabela projetada.
   Era um ⚽ com grayscale e no projetor virou uma florzinha cinza irreconhecível
   — emoji filtrado não sobrevive a 4 metros de distância. Letra sobrevive. */
.av-casa { display: inline-block; min-width: 14px; margin-right: 5px;
  padding: 0 3px; border-radius: 4px; font-size: 10px; font-weight: 800;
  line-height: 15px; text-align: center; color: var(--bg);
  background: var(--muted); vertical-align: 1px; }
.av-hora { font-size: 12px; color: var(--muted); text-align: right;
  font-variant-numeric: tabular-nums; }
/* duas ações na linha (▶ Start + Súmula) sem uma empurrar a outra pra fora */
.av-acao { display: flex; gap: 6px; justify-content: flex-end; }
.av-nota { font-size: 12px; color: var(--muted); margin: 8px 20px 0; }
.av-cor { display: inline-block; width: 8px; height: 8px; border-radius: 3px;
  margin-right: 6px; vertical-align: middle; }
/* a lista inteira de confrontos pendentes fica clicável — "chegou tem que
   começar", a diretoria escolhe na hora; só o primeiro da régua vem destacado */
.av-proximo .btn { text-align: left; margin: 10px 20px; }
.av-proximo .btn.secondary { padding: 10px 16px; font-size: 15px; }
.av-proximo .btn small { display: block; font-size: 12px; font-weight: 500;
  opacity: .8; }
/* 11 colunas numa tabela de campeonato não cabem na largura do celular:
   dentro da classificação as células andam mais juntas */
.av-tabela .rt { margin: 0 20px; }
.av-tabela .rt-h, .av-tabela .rt-r { gap: 2px; padding: 7px 8px; }
.av-tabela .rt-c { width: 24px; font-size: 12px; }

/* --- súmula --- */
.sum-placar { display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 16px 20px; }
.sum-placar label { display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; }
.sum-placar input { width: 74px; margin: 0; padding: 8px; font-size: 24px;
  font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.sum-x { color: var(--muted); font-size: 18px; }
.sum-times { display: grid; gap: 14px; }
.sum-row { display: grid; grid-template-columns: 1fr repeat(5, 44px); gap: 4px;
  align-items: center; padding: 5px 20px; }
.sum-row + .sum-row { border-top: 1px solid var(--line); }
.sum-row input { width: 100%; margin: 0; padding: 6px 2px; font-size: 15px;
  text-align: center; font-variant-numeric: tabular-nums; }
.sum-head { font-size: 12px; color: var(--muted); text-align: center; }
.sum-head .sum-nome { text-align: left; text-transform: uppercase;
  letter-spacing: .04em; font-weight: 600; }
.sum-nome { font-size: 14px; font-weight: 600; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }

/* 1260 e não 1100: medido, entre 1100 e 1250 as duas colunas entram antes de
   caber — a sidebar come 300px e a coluna dos jogos sobrava 22px pro nome do
   confronto ("Inglaterra × Espanha" pede 69). Abaixo daqui uma coluna só, que
   funciona bem até 1050. */
@media (min-width: 1260px) {
  /* a coluna de 760px do app não segura uma súmula de 14 jogadores nem uma
     tabela projetada: aqui a sidebar encosta na esquerda e o conteúdo toma o
     resto da largura da janela */
  body.telao { max-width: none; margin: 0 28px 0 300px; }
  body.telao .bottomnav { left: 24px; }
  body.telao .btn { max-width: 420px; }
  .aovivo { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start; }
  .av-jogos { grid-row: span 2; }
  .av-jogo { font-size: 15px; padding: 10px 14px; }
  .av-tabela .rt-h, .av-tabela .rt-r { gap: 5px; padding: 9px 12px; }
  .av-tabela .rt-c { width: 30px; font-size: 14px; }
  /* o nome do time NÃO pode reticenciar aqui: esta tabela vai pro projetor e
     "A..." x "Fr..." não diz quem está liderando. O piso vem antes das 9
     colunas de estatística, que cedem largura primeiro. */
  .av-tabela .rt-name { font-size: 15px; min-width: 118px; }
  .sum-times { grid-template-columns: 1fr 1fr; gap: 24px; }
  .sum-row { grid-template-columns: 1fr repeat(5, 62px); gap: 8px; }
  .sum-row input { padding: 9px 2px; font-size: 17px; }
  .sum-placar input { width: 96px; font-size: 32px; }
}

/* --- reordenar os jogos (só a diretoria vê) ---
   A alça ganha uma COLUNA própria na linha, e ela existe também nos jogos
   encerrados (vazia): sem isso as linhas arrastáveis e as encerradas ficariam
   desalinhadas entre si numa lista que vai pro projetor. */
.av-lista.ordenavel .av-jogo { grid-template-columns: 16px 72px 1fr 58px 58px auto; }
.av-grab { color: var(--muted); font-size: 14px; line-height: 1; text-align: center;
  cursor: grab; user-select: none; -webkit-user-select: none; }
.av-jogo[draggable="true"] { cursor: grab; }
.av-jogo.arrastando { opacity: .4; box-shadow: inset 0 0 0 1px var(--teal-bright); }
/* GRUDADA no rodapé da janela enquanto há ordem por salvar. Nasceu embaixo dos
   14 jogos, fora da tela: a diretoria arrastava, não via o botão, entrava na
   súmula e voltava — a lista tinha voltado pra ordem do banco e parecia que o
   sistema tinha desfeito sozinho. Agora o "não salvou ainda" fica na cara. */
.ordem-acoes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  position: sticky; bottom: 0; z-index: 5; margin: 10px 0 2px;
  padding: 10px 20px; background: var(--surface);
  border-top: 1px solid var(--teal-bright);
  box-shadow: 0 -6px 16px rgba(0, 0, 0, .35); }
/* .ordem-acoes é flex, e flex GANHA do display:none que o atributo hidden traz
   por padrão: sem esta linha o botão apareceria antes de a ordem mudar */
.ordem-acoes[hidden] { display: none; }
.ordem-dica { color: var(--muted); font-size: 12px; }
/* Placar + ações GRUDADOS no topo. Com 14 linhas de jogador a tela rolava e os
   botões ficavam embaixo de tudo, longe do placar que eles gravam; agora a
   súmula inteira cabe numa tela e operar é olhar pra um lugar só. */
.sum-topo { position: sticky; top: 0; z-index: 20; display: flex;
  align-items: center; justify-content: center; gap: 10px 26px;
  flex-wrap: wrap; padding: 10px 20px 12px; margin-bottom: 4px;
  background: var(--bg); border-bottom: 1px solid var(--line); }
.sum-acoes { display: flex; gap: 8px; }
.sum-topo .sum-placar { margin: 0; }
.sum-topo .sum-placar input { width: 62px; padding: 5px; font-size: 22px; }

/* ordem de chegada dos times (tela ao vivo, começo de noite) */
.av-chegada form { margin: 0 20px; }
.chegada-linha { display: grid; grid-template-columns: 34px 1fr; gap: 10px;
  align-items: center; margin-bottom: 8px; }
.chegada-pos { font-weight: 800; color: var(--teal-bright);
  font-variant-numeric: tabular-nums; text-align: right; }
.chegada-linha select { width: 100%; margin: 0; }
.av-chegada .btn { margin-top: 10px; }

/* ============================================================
   AO VIVO — RESPIRO E LAYOUT DE CELULAR
   Medido num iframe de 390px: em linha única as colunas fixas da linha de
   jogo (alça 16 + fase 72 + placar 58 + hora 58 + botão 82 + gaps + padding)
   comiam 350 dos 355px e sobravam 4,5px pro nome do confronto — a informação
   principal, invisível justo pra quem vê pelo celular. No celular a linha
   passa a ter DUAS linhas: o confronto e o placar em cima, o resto embaixo.
   ============================================================ */

/* respiro: a faixa de título encostava no primeiro cartão e as áreas
   encostavam entre si */
.aovivo { gap: 24px; }
.aovivo .section-band { margin: 0 20px 12px; border-radius: 12px;
  padding: 11px 15px; font-size: 14px; }
.av-nota { margin-top: 12px; }

/* Tudo o que é de celular fica DENTRO do max-width: o layout de linha única e
   os ajustes de ≥1100px continuam exatamente como estavam. */
@media (max-width: 719px) {
  /* --- linha de jogo em duas linhas: confronto e placar em cima --- */
  .av-jogo { grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 5px 8px; padding: 10px 12px; margin: 0 20px 8px; }
  .av-times { grid-area: 1 / 1 / 2 / 3; font-size: 15px; }
  .av-placar { grid-area: 1 / 3 / 2 / 4; text-align: right; }
  .av-fase { grid-area: 2 / 1 / 3 / 2; align-self: center; }
  .av-hora { grid-area: 2 / 2 / 3 / 3; }
  .av-acao { grid-area: 2 / 3 / 3 / 4; }
  /* com alça de arraste (diretoria) entra uma coluna na frente */
  .av-lista.ordenavel .av-jogo {
    grid-template-columns: 16px minmax(0, 1fr) auto auto; }
  .av-lista.ordenavel .av-grab { grid-area: 1 / 1 / 3 / 2; align-self: center; }
  .av-lista.ordenavel .av-times { grid-area: 1 / 2 / 2 / 4; }
  .av-lista.ordenavel .av-placar { grid-area: 1 / 4 / 2 / 5; }
  .av-lista.ordenavel .av-fase { grid-area: 2 / 2 / 3 / 3; }
  .av-lista.ordenavel .av-hora { grid-area: 2 / 3 / 3 / 4; }
  .av-lista.ordenavel .av-acao { grid-area: 2 / 4 / 3 / 5; }

  /* --- a classificação rola na horizontal em vez de esmagar o nome ---
     nove colunas de estatística não cabem em 390px; sem isso "Argentina"
     virava "Arg..." justo pra quem só vê pelo celular. */
  .av-tabela .rt { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .av-tabela .rt-h, .av-tabela .rt-r { min-width: max-content; }
  .av-tabela .rt-name { min-width: 108px; }
}

/* item de grade não encolhe abaixo do próprio conteúdo (min-width: auto), então
   a classificação com min-width:max-content inflava a COLUNA toda e a página
   passava a rolar na horizontal em vez de a tabela rolar por dentro */
.aovivo > section { min-width: 0; }

/* aviso de dia de campeonato na tela da próxima pelada */
.campday { margin: 16px 20px; padding: 20px 18px; border-radius: var(--radius);
  text-align: center; background:
    radial-gradient(120% 120% at 50% 0%, rgba(46,217,184,.22), transparent 65%),
    linear-gradient(160deg, #16302f, #10201f);
  box-shadow: inset 0 0 0 1px rgba(46,217,184,.28); }
.cd-tit { font-size: 19px; font-weight: 800; letter-spacing: .01em;
  color: var(--teal-bright); }
.cd-sub { margin-top: 6px; font-size: 14.5px; font-weight: 600; }
.campday .btn { margin: 16px auto 0; max-width: 320px; }
.cd-nota { margin-top: 12px; font-size: 12.5px; line-height: 1.5;
  color: var(--muted); }

/* "Últimos ajustes" — quem mexeu no quê, na própria tela do campeonato */
.ajuste-linha { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px;
  align-items: baseline; margin: 0 20px 6px; padding: 8px 12px;
  border-radius: 10px; background: var(--surface); font-size: 13px; }
.aj-quem { font-weight: 700; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.aj-oq { color: var(--muted); }
.aj-oq i { color: var(--text); font-style: normal; }
.aj-quando { color: var(--muted); font-size: 12px;
  font-variant-numeric: tabular-nums; }
@media (max-width: 719px) {
  .ajuste-linha { grid-template-columns: 1fr auto; }
  .aj-oq { grid-column: 1 / span 2; }
}

/* "Última alteração" na súmula — quem salvou por último */
.sum-ultima { margin: 12px 20px 0; padding: 8px 12px; border-radius: 10px;
  background: var(--surface-2); color: var(--muted); font-size: 13px; }
.sum-ultima b { color: var(--text); }

/* Histórico do hub: os links de uma edição encerrada.
   Chips do mesmo desenho das abas de ranking (.rcat), recuados sob a linha da
   edição a que pertencem — soltos na margem eles pareceriam navegação do hub,
   e não daquele campeonato. */
.hist-links { display: flex; flex-wrap: wrap; gap: 8px;
  padding: 2px 20px 14px 20px; }
.hist-links a { display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--muted); background: var(--surface);
  border: 1px solid rgba(255,255,255,.08); text-decoration: none;
  white-space: nowrap; }
.hist-links a:hover { color: var(--text); border-color: rgba(255,255,255,.18); }
