/* 90+ — app mobile-first. Escuro, alto contraste, números tabulares. */
:root {
  --bg: #0B0F17; --card: #131A26; --card2: #182131; --line: #1F2A3A; --text: #F2F5F9; --muted: #9AA8BC;
  --brand: #C6F432; --brand-ink: #0B0F17; --live: #FF4D4F; --up: #2ECC71; --down: #FF6B6B; --wa: #25D366;
  --r: 12px; --shadow: 0 6px 20px rgba(0, 0, 0, .28);
  --font: system-ui, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --top: 56px; --nav: 64px; --safe-b: env(safe-area-inset-bottom, 0px);
  --tb: 0px; /* faixa "Ambiente de teste" (body.test) */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.4 var(--font); min-height: 100vh; overflow-x: hidden; overflow-x: clip; } /* clip não cria contêiner de rolagem: o sticky das colunas funciona */
body.sheet-open { overflow: hidden; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.num, .odd, .score, .money { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.meta { font-size: 12px; color: var(--muted); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--brand); color: var(--brand-ink); padding: 10px 14px; border-radius: var(--r); z-index: 100; }
.skip:focus { top: 8px; }
[hidden] { display: none !important; }
/* textos diferentes no celular e no desktop ("Toque"/"Clique", "Entrar"/"Entrar com WhatsApp") */
.only-desk { display: none; }

/* ---------- estrutura ---------- */
/* faixa fina do ambiente de teste: fixa no topo; o servidor já manda body.test, então o espaço existe desde o primeiro quadro */
body.test { --tb: 22px; padding-top: var(--tb); }
.testbar { position: fixed; top: 0; left: 0; right: 0; z-index: 31; height: var(--tb); margin: 0; padding: 0 8px; background: #2B3A0A; color: var(--brand);
  font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar { position: sticky; top: var(--tb); z-index: 30; height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 14px;
  background: var(--bg); border-bottom: 1px solid var(--line); } /* sem backdrop-filter: a barra inferior (fixed) mora aqui dentro */
.logo { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; }
.logo svg { height: 26px; width: auto; display: block; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 88px; justify-content: flex-end; }
.topbar .btn.wa svg { flex: none; }
.layout { display: block; }
.col-left, .col-right { display: none; }
/* altura mínima de uma tela inteira: o rodapé nunca aparece na primeira tela e depois é empurrado (CLS) */
#main { padding: 12px 12px calc(var(--nav) + 84px + var(--safe-b)); min-height: calc(100vh - var(--top) - var(--tb)); outline: none; }
.foot { padding: 16px 14px calc(var(--nav) + 76px + var(--safe-b)); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }
.foot p { margin: 4px 0; }
.foot .badge18 { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--muted); border-radius: 50%; font-weight: 800; font-size: 11px; color: var(--text); margin-right: 6px; vertical-align: middle; }
.foot .test { color: var(--brand); }
body.has-slip #main { padding-bottom: calc(var(--nav) + 140px + var(--safe-b)); }

/* barra inferior */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav) + var(--safe-b)); padding-bottom: var(--safe-b); background: #0E131D; border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 12px; min-height: 44px; position: relative; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--text); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.tabbar a.tab90 .bubble { display: grid; place-items: center; width: 46px; height: 46px; margin-top: -18px; border-radius: 50%; background: var(--brand); color: var(--brand-ink);
  font-weight: 900; font-size: 15px; letter-spacing: -.5px; box-shadow: 0 4px 14px rgba(198, 244, 50, .35); border: 3px solid #0E131D; }
.tabbar a.tab90[aria-current="page"]::before { display: none; }
.tabbar .count { position: absolute; top: 6px; left: 52%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.tabbar .count.slip { background: var(--text); color: var(--bg); } /* seleções no cupom */
.tabbar .count.live { background: var(--live); color: #fff; } /* jogos ao vivo agora (só aparece com 1 ou mais) */

/* ---------- componentes ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--card2); color: var(--text); font-weight: 600; text-decoration: none; transition: transform .08s, background .15s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 800; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #06210F; font-weight: 800; }
.btn.ghost { background: transparent; }
.btn.danger { background: transparent; border-color: var(--down); color: var(--down); }
.btn.block { display: flex; width: 100%; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: default; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkbtn { background: none; border: 0; color: var(--brand); padding: 10px 4px; min-height: 44px; text-decoration: underline; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: 14px; }
.section { margin: 18px 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.section h2 { margin: 0; font-size: 17px; }
.section .more { font-size: 13px; color: var(--muted); text-decoration: none; padding: 10px 0; }
h1.page { font-size: 22px; margin: 6px 0 12px; }
.livedot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-right: 6px; animation: pulse 1.4s infinite; vertical-align: 1px; }
@keyframes pulse { 50% { opacity: .35; } }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--card2); border: 1px solid var(--line); color: var(--muted); }
.tag.live { color: #fff; background: var(--live); border-color: var(--live); }
.tag.brand { color: var(--brand-ink); background: var(--brand); border-color: var(--brand); }
.tag.won { color: var(--up); border-color: rgba(46, 204, 113, .4); }
.tag.lost { color: var(--down); border-color: rgba(255, 107, 107, .4); }

/* chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -12px; padding-left: 12px; padding-right: 12px; scrollbar-width: none; }
#h-chips { min-height: 50px; } /* período + ligas numa fileira só: as ligas chegam depois sem empurrar nada */
.chip-group { display: flex; gap: 8px; flex: 0 0 auto; }
.chip-sep { flex: 0 0 1px; align-self: center; height: 24px; background: var(--line); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 700; }
.chip .n { color: var(--muted); font-size: 12px; }
.chip[aria-pressed="true"] .n { color: #3A4658; }

/* escudos: tamanho fixo e proporção 1:1 (a imagem nunca muda o layout quando carrega);
   fundo circular claro sutil atrás do logo, para escudos escuros aparecerem no fundo escuro */
.crest { width: 24px; height: 24px; aspect-ratio: 1 / 1; border-radius: 50%; flex: 0 0 24px; object-fit: contain; background: rgba(255, 255, 255, .08); }
img.crest { padding: 2px; }
.crest.ini { display: inline-grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; letter-spacing: -.3px; }
.crest.lg { width: 48px; height: 48px; flex-basis: 48px; font-size: 16px; }

/* cartão de jogo */
.ev { padding: 12px; margin-bottom: 10px; }
.ev-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); min-height: 20px; }
.ev-head .clock { color: var(--live); font-weight: 700; }
.ev-teams { display: block; text-decoration: none; color: var(--text); padding: 6px 0 8px; }
.team-row { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.team-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.team-row .score { font-weight: 800; font-size: 16px; min-width: 20px; text-align: right; }
.odds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.odds.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.odd { position: relative; min-width: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 4px 6px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card2); color: var(--text); transition: background .15s, border-color .15s; }
/* rótulos longos ("Empate ou Palmeiras") quebram em até 2 linhas em vez de alargar a grade */
.odd .lb { font-size: 12px; line-height: 1.2; color: var(--muted); max-width: 100%; overflow: hidden; text-align: center; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.odd .pr { font-size: 16px; font-weight: 800; letter-spacing: .2px; min-width: 4ch; text-align: center; } /* 1,85 -> 12,00 não mexe a largura */
.odd[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.odd[aria-pressed="true"] .lb { color: #2B3A0A; }
.odd[disabled] { cursor: default; background: transparent; }
.odd[disabled] .pr { font-size: 13px; color: var(--muted); font-weight: 700; }
.odd.up { animation: flashUp 1.2s ease-out; } .odd.down { animation: flashDown 1.2s ease-out; }
.odd.up .pr::after { content: " ▲"; color: var(--up); font-size: 10px; } .odd.down .pr::after { content: " ▼"; color: var(--down); font-size: 10px; }
@keyframes flashUp { 0% { background: rgba(46, 204, 113, .45); border-color: var(--up); } 100% { } }
@keyframes flashDown { 0% { background: rgba(255, 107, 107, .45); border-color: var(--down); } 100% { } }
.ev-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; }
.ev-foot a { font-size: 13px; color: var(--muted); text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.ev-foot .room { color: var(--brand); font-weight: 700; }
.league-h { display: flex; align-items: center; gap: 8px; margin: 16px 2px 8px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }

/* skeleton */
.sk { background: linear-gradient(90deg, #151d2a 0%, #1c2637 50%, #151d2a 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); }
@keyframes sk { to { background-position: -200% 0; } }
.sk.ev { height: 208px; border: 0; } /* mesma altura do cartão de jogo com 1/X/2 */
/* listas reservam espaço desde o início: o que vem abaixo não sobe e desce enquanto carregam */
#h-list, #nv { min-height: 660px; }
#h-list:empty { min-height: 0; } /* com filtro, a lista mora em #h-live e esta fica vazia */
.sk.promo-sk { height: 210px; margin-bottom: 10px; }
.empty { padding: 22px 14px; text-align: center; color: var(--muted); }

/* faixa compacta do 90+ na home: 1 card baixo, altura fixa */
.strip90-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 6px; min-height: 32px; }
.strip90-h h2 { margin: 0; font-size: 15px; }
.strip90-h .more { font-size: 13px; color: var(--brand); text-decoration: none; padding: 8px 0; font-weight: 700; }
.room-mini { display: flex; align-items: center; gap: 10px; height: 64px; padding: 8px 12px; margin-bottom: 4px; text-decoration: none; color: var(--text);
  background: linear-gradient(135deg, #1a2410 0%, var(--card) 55%); border-color: #2B3A16; }
.sk.room-mini { background: linear-gradient(90deg, #151d2a 0%, #1c2637 50%, #151d2a 100%); background-size: 200% 100%; border: 0; }
.room-mini .rm-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.room-mini .rm-teams { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; min-width: 0; white-space: nowrap; }
.room-mini .rm-teams .nm { overflow: hidden; text-overflow: ellipsis; }
.room-mini .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* os 3 passos numa linha curta logo abaixo do título "Salas 90+ abrindo": quebra se precisar, vem pronta do servidor (mesma altura) */
.steps-line { display: block; margin: -2px 0 8px; font-size: 13px; line-height: 1.4; color: var(--muted); text-decoration: none; }
.steps-line .how { color: var(--brand); font-weight: 700; white-space: nowrap; }
.pitch { margin: 0; font-size: 14px; line-height: 1.4; color: #D5DCE6; }
.room-mini .rm-cta { flex: none; padding: 8px 12px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 13px; }

/* carrossel 90+ */
.rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -12px; padding: 2px 12px 6px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.room-card { flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; padding: 12px; display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(135deg, #1a2410 0%, var(--card) 55%); border-color: #2B3A16; }
.room-card .teams { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
/* /ao-vivo sem jogos: "O próximo jogo começa às HH:MM" em uma linha com contagem e botão */
.next-up { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 4px; }
.next-up p { flex: 1; min-width: 0; margin: 0; font-size: 14px; }
.next-up .btn { flex: none; }
/* folha "Como funciona o 90+" */
.intro90 .steps li { font-size: 15px; }
.countdown { font-weight: 800; color: var(--brand); }

/* blocos de destaque */
.promo { padding: 14px; margin-bottom: 10px; }
.promo h3 { margin: 0 0 8px; font-size: 15px; display: flex; justify-content: space-between; gap: 8px; }
.promo ul { list-style: none; margin: 0 0 10px; padding: 0; }
.promo li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.promo li:last-child { border-bottom: 0; }
/* múltipla do dia: palpite em negrito, o jogo em cinza na linha de baixo */
.multi li { align-items: center; }
.multi .pk { min-width: 0; display: flex; flex-direction: column; }
.multi .pk .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn.one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; }
.old { text-decoration: line-through; color: var(--muted); font-size: 13px; margin-right: 6px; }
.super { color: var(--brand); }
.suggest-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.field label, .lbl { font-size: 13px; color: var(--muted); }
.input, select.input { min-height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #0E141F; color: var(--text); width: 100%; font-size: 16px; }
.input:focus { border-color: var(--brand); }
.input.big { font-size: 22px; font-weight: 800; text-align: center; letter-spacing: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 6px 0; font-size: 14px; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--brand); flex: 0 0 22px; }
.err { color: var(--down); font-size: 13px; min-height: 18px; margin: 4px 0; }
.ok { color: var(--up); }

/* página do jogo */
.match { padding: 16px 12px; text-align: center; }
.match .teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.match .side { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.match .big { font-size: 34px; font-weight: 900; letter-spacing: 1px; }
.match .state { font-size: 13px; color: var(--muted); margin-top: 6px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 14px -12px 10px; padding: 0 12px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-weight: 600; }
.tabs [role="tab"][aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.mkt { padding: 12px; margin-bottom: 10px; }
.mkt h3 { margin: 0 0 10px; font-size: 14px; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.mkt .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.tip { position: relative; display: inline-flex; }
.tip > button { background: rgba(198, 244, 50, .12); color: var(--brand); border: 1px solid rgba(198, 244, 50, .35); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 0 10px; min-height: 30px; }
.tip .bubble { position: absolute; right: 0; top: calc(100% + 6px); width: min(280px, 80vw); z-index: 20; padding: 10px 12px; background: #202B3D; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 400; color: var(--text); box-shadow: var(--shadow); }
.stats { display: grid; gap: 8px; }
.stat { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; font-size: 14px; }
.stat .bar { height: 6px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.stat .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand); }
.stat .c { text-align: center; font-size: 12px; color: var(--muted); grid-column: 1 / -1; margin-bottom: -6px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.timeline li:last-child { border-bottom: 0; }
.timeline .min { width: 44px; color: var(--muted); font-weight: 700; }
.timeline .ic { width: 22px; text-align: center; }
.yc { display: inline-block; width: 10px; height: 14px; background: #F5C518; border-radius: 2px; }
.rc { display: inline-block; width: 10px; height: 14px; background: var(--live); border-radius: 2px; }

/* cupom */
.slipbar { position: fixed; left: 10px; right: 10px; bottom: calc(var(--nav) + var(--safe-b) + 8px); z-index: 35; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; min-height: 56px;
  background: var(--brand); color: var(--brand-ink); border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); border: 0; width: auto; text-align: left; font-weight: 700; animation: rise .2s ease-out; }
.slipbar .t { flex: 1; min-width: 0; line-height: 1.2; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slipbar .go { flex: none; padding: 10px 14px; border-radius: 10px; background: var(--brand-ink); color: var(--brand); font-weight: 900; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
.sheet-back { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .55); animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 92vh; overflow: auto; background: var(--card); border-radius: 18px 18px 0 0; border-top: 1px solid var(--line);
  padding: 8px 14px calc(16px + var(--safe-b)); animation: up .2s ease-out; overscroll-behavior: contain; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: #3A4658; margin: 4px auto 8px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sheet-head h2 { margin: 0; font-size: 18px; }
.x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card2); color: var(--text); font-size: 20px; display: grid; place-items: center; }
.sel { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sel .what { min-width: 0; }
.sel .what b { display: block; font-size: 14px; }
.sel .what > span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel .pr { font-weight: 800; font-size: 16px; }
.sel .rm { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 18px; }
.sel .chg { grid-column: 1 / -1; font-size: 12px; color: #FFD166; }
.sel .sus { grid-column: 1 / -1; font-size: 12px; color: var(--down); font-weight: 700; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
.quick button { min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2); font-weight: 700; }
.totals { display: grid; gap: 4px; margin: 10px 0; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals b { font-size: 16px; }
.totals .ret b { color: var(--brand); font-size: 20px; }
.warn { padding: 10px 12px; border-radius: 10px; background: rgba(255, 209, 102, .1); border: 1px solid rgba(255, 209, 102, .4); color: #FFD166; font-size: 13px; margin: 8px 0; }
.info { padding: 10px 12px; border-radius: 10px; background: rgba(198, 244, 50, .08); border: 1px solid rgba(198, 244, 50, .3); color: var(--text); font-size: 13px; margin: 8px 0; }
.receipt { text-align: center; padding: 8px 0; }
.receipt .ok-ic { width: 56px; height: 56px; border-radius: 50%; background: rgba(46, 204, 113, .15); color: var(--up); display: grid; place-items: center; margin: 6px auto; font-size: 28px; }
.kv { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: #0E141F; border: 1px solid var(--line); margin-bottom: 10px; }
.seg button { min-height: 40px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font-weight: 700; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--card2); color: var(--text); }

/* minhas apostas */
.bet { padding: 12px; margin-bottom: 10px; }
.bet-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.leg { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.leg:last-of-type { border-bottom: 0; }
.leg .st { width: 14px; height: 14px; border-radius: 50%; margin-top: 3px; border: 2px solid var(--muted); }
.leg .st.won { background: var(--up); border-color: var(--up); } .leg .st.lost { background: var(--down); border-color: var(--down); } .leg .st.void { background: var(--muted); }
.leg small { display: block; color: var(--muted); font-size: 12px; }
.bet-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* 90+ */
.hero90 { padding: 16px; background: radial-gradient(120% 140% at 100% 0%, rgba(198, 244, 50, .18) 0%, rgba(198, 244, 50, 0) 55%), var(--card); }
.hero90 h1 { margin: 0 0 6px; font-size: 22px; }
.steps { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.steps li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.steps .k { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 900; flex: 0 0 30px; }
.room-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding: 12px; margin-bottom: 10px; text-decoration: none; color: var(--text); }
.room-item .ri-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.room-item .lock-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 15px; }
.lg-tag { display: inline-block; max-width: 60%; padding: 1px 8px; margin-right: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); color: var(--text); font-size: 11px; font-weight: 700;
  vertical-align: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-item .teams { font-weight: 700; display: flex; align-items: center; gap: 6px; margin: 4px 0; min-width: 0; }
.room-item .teams .nm { overflow: hidden; text-overflow: ellipsis; }
/* explicação do 90+ fixa no topo da lista */
.steps90 { position: sticky; top: calc(var(--top) + var(--tb)); z-index: 20; padding: 10px 12px; border-color: rgba(198, 244, 50, .4);
  background: radial-gradient(120% 140% at 100% 0%, rgba(198, 244, 50, .14) 0%, rgba(198, 244, 50, 0) 55%), var(--card); }
.steps90 .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 8px; gap: 8px; }
.steps90 .steps li { flex-direction: column; gap: 4px; text-align: center; font-size: 15px; line-height: 1.25; }
.steps90 .steps .k { width: 28px; height: 28px; flex-basis: 28px; font-size: 15px; }
.steps90 .pitch { margin-bottom: 4px; }
.steps90 > a { display: block; text-align: right; }
.pot { text-align: center; padding: 18px 12px; }
.pot .lbl { text-transform: uppercase; letter-spacing: .6px; font-size: 12px; }
.pot .v { font-size: 40px; font-weight: 900; color: var(--brand); line-height: 1.1; margin: 4px 0; }
.pot .lock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.mult { display: flex; justify-content: center; gap: 18px; margin-top: 10px; font-size: 14px; }
.mult b { display: block; font-size: 18px; }
.question { padding: 14px; border-color: rgba(198, 244, 50, .4); }
.question .q { font-size: 18px; font-weight: 800; margin: 6px 0 10px; }
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 8px 0; }
.progress i { display: block; height: 100%; background: var(--brand); transition: width .5s; }
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.yesno button { min-height: 56px; border-radius: 12px; border: 2px solid var(--line); background: var(--card2); font-weight: 800; font-size: 16px; }
.yesno button[aria-pressed="true"] { border-color: var(--brand); background: rgba(198, 244, 50, .12); }
.yesno button span { display: block; font-size: 18px; }
.rank { list-style: none; padding: 0; margin: 0; }
.rank li { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rank li.you { color: var(--brand); font-weight: 700; }
.result90 { text-align: center; padding: 20px 14px; }
.result90 .v { font-size: 30px; font-weight: 900; color: var(--brand); }

/* conta */
.balance { padding: 16px; }
.balance .v { font-size: 32px; font-weight: 900; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.list li .d { min-width: 0; }
.list li > .tag { align-self: center; flex: none; }
.list li .d small { display: block; color: var(--muted); font-size: 12px; }
.pos { color: var(--up); } .neg { color: var(--text); }
.menu a, .menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); text-decoration: none; font-size: 15px; text-align: left; }
.menu > :last-child { border-bottom: 0; }
.prose h2 { font-size: 17px; margin: 22px 0 6px; }
.prose p, .prose li { color: #D5DCE6; font-size: 15px; }
.prose ul { padding-left: 18px; }

/* toasts e diálogo */
.toasts { position: fixed; left: 10px; right: 10px; top: calc(var(--top) + var(--tb) + 8px); z-index: 80; display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 14px; border-radius: 12px; background: #202B3D; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; animation: rise .2s ease-out; }
.toast.win { border-color: var(--up); } .toast.lose { border-color: var(--down); } .toast.brand { border-color: var(--brand); }
.gate { position: fixed; inset: 0; z-index: 90; background: rgba(5, 8, 13, .92); display: grid; place-items: center; padding: 16px; }
.gate .box { max-width: 380px; width: 100%; padding: 22px 18px; text-align: center; }
.gate .q { font-size: 20px; font-weight: 800; margin: 12px 0 6px; }
.gate .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.test-note { color: var(--brand); font-weight: 700; }
.prelaunch { padding: 10px 12px; border-radius: 10px; background: rgba(198, 244, 50, .12); border: 1px dashed var(--brand); color: var(--text); font-weight: 700; margin: 8px 0; }
.prelaunch b { color: var(--brand); letter-spacing: 2px; }
.phone { display: grid; grid-template-columns: 108px 1fr; gap: 8px; }
.nopass { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.nopass svg { color: var(--wa); flex: none; }
.lg-note { margin: 10px 0 0; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 14px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- desktop: ligas | conteúdo | cupom ---------- */
@media (min-width: 1024px) {
  :root { --nav: 0px; }
  .tabbar { position: static; display: flex; height: auto; padding: 0; background: none; border: 0; gap: 4px; }
  .tabbar a { flex-direction: row; padding: 0 12px; font-size: 14px; }
  .tabbar a svg { width: 18px; height: 18px; }
  .tabbar a[aria-current="page"]::before { top: auto; bottom: -6px; }
  .tabbar a.tab90 .bubble { width: 32px; height: 32px; margin: 0; font-size: 12px; border: 0; }
  .tabbar .count { top: -2px; left: auto; right: -4px; }
  .layout { display: grid; grid-template-columns: 240px minmax(0, 1fr) 360px; gap: 20px; max-width: 1400px; margin: 0 auto; padding: 16px 20px 0; align-items: start; }
  .only-mob { display: none; }
  .only-desk { display: inline; }
  .col-left, .col-right { display: block; align-self: start; position: sticky; top: calc(var(--top) + var(--tb) + 16px); max-height: calc(100vh - var(--top) - var(--tb) - 32px); overflow: auto; }
  #main { padding: 0 0 40px; }
  .foot { padding: 16px; }
  .slipbar { display: none !important; }
  .chips, .rail, .tabs { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .room-card { flex-basis: 260px; }
  .side-leagues a { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 14px; }
  .side-leagues a:hover, .side-leagues a[aria-current="true"] { background: var(--card2); }
  /* "Ligas" e "Cupom" das colunas laterais: rótulos (não são títulos da página), com o mesmo estilo */
  .side-h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 6px 12px 8px; }
  .slip-desk .side-h { margin: 0 0 8px; }
  .slip-desk { padding: 14px; }
  .toasts { left: auto; right: 20px; width: 360px; }
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: 440px; border-radius: 18px; border: 1px solid var(--line); animation: fade .15s; }
  .sheet .grab { display: none; }
  /* jogos em linha única (~56px): horário | times | 1 X 2 | links; no celular continuam em cards */
  .ev { display: grid; grid-template-columns: 72px minmax(0, 1fr) 204px; align-items: center; gap: 8px; padding: 6px 10px; margin-bottom: 6px; min-height: 56px; }
  .ev-head { flex-direction: column-reverse; align-items: flex-start; justify-content: center; gap: 0; min-width: 0; min-height: 0; font-size: 11px; line-height: 1.2; }
  .ev-head > span:first-child { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ev-head > span:empty { display: none; }
  .ev-teams { padding: 0; min-width: 0; }
  .ev .team-row { min-height: 22px; font-size: 14px; }
  .ev .crest { width: 18px; height: 18px; flex-basis: 18px; font-size: 8px; }
  .ev .odd { min-height: 40px; padding: 2px 4px; }
  .ev .odd .lb { font-size: 11px; -webkit-line-clamp: 1; line-clamp: 1; }
  .ev .odd .pr { font-size: 15px; }
  .ev-foot { display: none; }
  :is(#h-live, #h-list, #lv, #lv-next) .sk.ev { height: 56px; } /* esqueleto da linha de jogo */
  .slip-desk .promo { box-shadow: none; padding: 12px; }
}
/* 1024 a 1279px: colunas laterais mais estreitas para a linha do jogo caber; os links do card (90+, mercados) entram a partir de 1280px */
@media (min-width: 1024px) and (max-width: 1279px) {
  .layout { grid-template-columns: 200px minmax(0, 1fr) 320px; }
}
@media (min-width: 1280px) {
  .ev { grid-template-columns: 84px minmax(0, 1fr) 204px 104px; gap: 12px; padding: 6px 12px; }
  .ev-foot { display: flex; margin: 0; flex-direction: column; align-items: flex-end; justify-content: center; gap: 0; }
  .ev-foot a { min-height: 22px; font-size: 12px; white-space: nowrap; }
  .ev-foot > span:empty { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
