:root {
  --bg: #f4f5f7; --card: #ffffff; --card2: #f8f9fb; --text: #121826; --muted: #5d6675; --line: #e3e6eb;
  --accent: #0d6e63; --accent-soft: #e2f2ef; --live: #d92d20; --warn: #b54708; --warn-soft: #fef0c7;
  --ok: #067647; --ok-soft: #dcfae6; --verde: #12a85f; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --radius: 14px; --gut: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1117; --card: #141b24; --card2: #10161e; --text: #e8ebf0; --muted: #98a2b3; --line: #253041;
    --accent: #3cc9b4; --accent-soft: #10302c; --live: #ff5a4f; --warn: #fdb022; --warn-soft: #3a2a0a;
    --ok: #47cd89; --ok-soft: #0c2f1f; --verde: #32d583; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1117; --card: #141b24; --card2: #10161e; --text: #e8ebf0; --muted: #98a2b3; --line: #253041;
  --accent: #3cc9b4; --accent-soft: #10302c; --live: #ff5a4f; --warn: #fdb022; --warn-soft: #3a2a0a;
  --ok: #47cd89; --ok-soft: #0c2f1f; --verde: #32d583; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
a { color: var(--accent); }
button { font: inherit; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* topo */
header.topo { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topo .linha { display: flex; align-items: center; gap: 12px; min-height: 58px; flex-wrap: wrap; padding: 8px 0; }
.marca { display: flex; flex-direction: column; line-height: 1.15; margin-right: auto; }
.marca b { font-size: 18px; letter-spacing: -.01em; }
.marca span { font-size: 12px; color: var(--muted); }
.vivo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); }
.vivo i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.vivo.on { color: var(--verde); }
.vivo.on i { background: var(--verde); animation: pulso 1.6s infinite; }
.online { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); color: var(--muted); }
.online b { color: var(--text); font-weight: 800; }
.online svg { width: 15px; height: 15px; color: var(--verde); }
.vivo.demo { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.vivo.demo i { background: var(--warn); }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(18, 183, 106, .6); } 70% { box-shadow: 0 0 0 8px rgba(18, 183, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0); } }
.atualizado { font-size: 12px; color: var(--muted); }

nav.abas { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 10px; scrollbar-width: none; }
nav.abas::-webkit-scrollbar { display: none; }
.aba, .chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 14px; cursor: pointer; white-space: nowrap; font-weight: 600; font-size: 14px; }
.aba[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--text); color: var(--card); border-color: var(--text); }
.chip { font-weight: 500; font-size: 13px; padding: 6px 12px; }
.modo { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.modo select { font: inherit; font-size: 13px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); }

main { padding: 22px 0 40px; }
h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -.02em; }
h2 { font-size: 20px; margin: 30px 0 12px; letter-spacing: -.01em; }
h3 { margin: 0; font-size: 16px; }

.aviso { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius); padding: 12px 16px; margin: 12px 0 16px; font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.aviso b { color: inherit; }
.aviso button { margin-left: auto; border: 0; background: var(--warn); color: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 600; cursor: pointer; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* bloco principal */
.hero { padding: 18px; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.15fr 1fr; padding: 22px; } }
.hero-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.progresso { height: 8px; background: var(--card2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.progresso > i { display: block; height: 100%; background: var(--accent); transition: width .6s ease; }
.cand { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.cand:first-of-type { border-top: 0; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: .02em; flex: none; }
.avatar.p { width: 30px; height: 30px; font-size: 12px; }
.cand .nome { font-weight: 700; font-size: 17px; line-height: 1.2; }
.cand .partido { font-size: 12px; color: var(--muted); }
.cand .pct { font-size: 28px; font-weight: 800; letter-spacing: -.02em; text-align: right; line-height: 1.1; }
.cand .votos { font-size: 12px; color: var(--muted); text-align: right; }
.selo { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: var(--ok-soft); color: var(--ok); margin-left: 6px; vertical-align: middle; }

.split { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--card2); position: relative; margin: 10px 0 4px; }
.split > i { display: block; height: 100%; transition: width .6s ease; }
.split .meio { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--text); opacity: .55; }
.legenda-split { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

.proj { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.proj-tit { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.proj-tit b { font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.situacao { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.situacao.provavel { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.situacao.decidido { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.proj-linha { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: baseline; }
.proj-linha .n { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.proj-linha .v { font-size: 22px; font-weight: 800; text-align: right; }
.proj-linha .f { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.bolinha { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.chance { font-size: 13px; }
.chance b { font-size: 15px; }
.faixa { position: relative; height: 26px; margin: 4px 0; }
.faixa .eixo { position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: var(--line); }
.faixa .meio { position: absolute; left: 50%; top: 2px; bottom: 2px; width: 2px; background: var(--text); opacity: .4; }
.faixa .banda { position: absolute; top: 6px; height: 14px; border-radius: 7px; opacity: .25; }
.faixa .ponto { position: absolute; top: 5px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line); }
.faixa-rot { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--accent); color: var(--accent); background: transparent; border-radius: 10px; padding: 9px 14px; font-weight: 700; cursor: pointer; font-size: 14px; }
.btn:hover { background: var(--accent-soft); }
.btn.cheio { background: var(--accent); color: #fff; }
.btn.cheio:hover { filter: brightness(1.08); }
.btn.peq { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.link { background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; padding: 0; font-size: 13px; }

/* mapa em ladrilhos */
.mapa-bloco { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 900px) { .mapa-bloco { grid-template-columns: 380px 1fr; } }
.mapa { padding: 16px; }
.ladrilhos { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 360px; margin: 8px auto 0; }
.ladrilho { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; cursor: pointer; border: 0; padding: 0; transition: transform .15s; }
.ladrilho:hover, .ladrilho:focus-visible { transform: scale(1.08); outline: 2px solid var(--text); }
.ladrilho.vazio { background: transparent; cursor: default; }
.ladrilho.sem { background: var(--card2); color: var(--muted); border: 1px dashed var(--line); }
.leg-mapa { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--muted); margin-top: 12px; justify-content: center; }
.leg-mapa span { display: inline-flex; align-items: center; gap: 6px; }

/* cartões por estado */
.filtros { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.grade { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.regiao-tit { grid-column: 1 / -1; font-size: 15px; font-weight: 800; margin: 10px 0 0; }
.uf { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.uf-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.uf-top h3 { color: var(--accent); font-size: 16px; }
.uf-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.uf-c { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; font-size: 14px; }
.uf-c .nm { font-weight: 600; line-height: 1.2; }
.uf-c .pc { font-weight: 800; font-size: 16px; text-align: right; }
.uf-c .pj { grid-column: 2 / -1; font-size: 12px; color: var(--muted); margin-top: -6px; display: flex; justify-content: space-between; }
.uf .split { height: 8px; margin: 2px 0 0; }
.uf-rod { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }

/* governadores */
.gov-grade { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.gov { padding: 16px; display: flex; flex-direction: column; gap: 10px; }

/* modal */
dialog.detalhe { border: 0; padding: 0; border-radius: 18px; width: min(980px, calc(100vw - 16px)); max-height: calc(100vh - 16px); background: var(--card); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
dialog.detalhe::backdrop { background: rgba(10, 14, 20, .55); }
.det-cab { position: sticky; top: 0; background: var(--card); border-bottom: 1px solid var(--line); padding: 14px 18px; display: flex; align-items: center; gap: 10px; z-index: 2; }
.det-cab h2 { margin: 0; font-size: 18px; margin-right: auto; }
.fechar { border: 1px solid var(--line); background: var(--card2); border-radius: 10px; width: 36px; height: 36px; cursor: pointer; font-size: 20px; line-height: 1; }
.det-corpo { padding: 16px 18px 22px; display: flex; flex-direction: column; gap: 18px; }
.det-resumo { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.det-cand { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.det-cand .topo-c { display: flex; align-items: center; gap: 10px; }
.det-cand dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 4px 0 0; font-size: 14px; }
.det-cand dt { color: var(--muted); }
.det-cand dd { margin: 0; text-align: right; font-weight: 700; }
.det-sec h3 { font-size: 15px; margin: 0 0 8px; }
.grafico { width: 100%; position: relative; }
.grafico svg { width: 100%; height: auto; display: block; overflow: visible; }
.grafico .dica { position: absolute; pointer-events: none; background: var(--text); color: var(--card); font-size: 12px; padding: 8px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -100%); opacity: 0; transition: opacity .1s; line-height: 1.5; }
.leg-graf { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.leg-graf span { display: inline-flex; align-items: center; gap: 6px; }
.leg-graf svg { width: 26px; height: 10px; }
.tabela-rolo { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; max-height: 420px; overflow-y: auto; }
table.tab { border-collapse: collapse; width: 100%; font-size: 13px; }
table.tab th, table.tab td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.tab th:first-child, table.tab td:first-child { text-align: left; }
table.tab thead th { position: sticky; top: 0; background: var(--card2); font-size: 12px; color: var(--muted); font-weight: 700; z-index: 1; }
table.tab tbody tr:hover { background: var(--card2); }
details.metodo { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
details.metodo summary { cursor: pointer; font-weight: 700; }
details.metodo p { margin: 8px 0; color: var(--muted); }

/* demonstração */
.player { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin: 0 0 14px; }
.player input[type=range] { flex: 1; min-width: 160px; accent-color: var(--accent); }

footer { border-top: 1px solid var(--line); padding: 22px 0 40px; font-size: 13px; color: var(--muted); background: var(--card); }
footer p { margin: 6px 0; max-width: 900px; }

.vazio-msg { padding: 28px; text-align: center; color: var(--muted); }
.esqueleto { background: linear-gradient(90deg, var(--card2), var(--line), var(--card2)); background-size: 200% 100%; animation: brilho 1.2s infinite; border-radius: 8px; min-height: 18px; }
@keyframes brilho { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (max-width: 520px) {
  h1 { font-size: 21px; }
  .cand .pct { font-size: 24px; }
  .cand { grid-template-columns: 44px 1fr auto; }
  .avatar { width: 44px; height: 44px; font-size: 15px; }
  .modo { margin-left: 0; width: 100%; }
  .modo select { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* publicidade: 70% anúncio + 30% "divulgue sua empresa" */
.publicidade { display: grid; grid-template-columns: 7fr 3fr; gap: 12px; margin: 10px 0 18px; }
.pub-anuncio { position: relative; min-height: 110px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.pub-rotulo { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 4px 10px 0; }
.pub-anuncio ins.adsbygoogle { display: block; width: 100%; min-height: 90px; }

.cookies { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); padding: 12px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.cookies p { margin: 0; flex: 1; min-width: 220px; }
.cookies button { border-radius: 999px; padding: 7px 14px; font-weight: 700; cursor: pointer; border: 1px solid var(--line); background: var(--card2); }
.cookies button.sim { background: var(--accent); color: #fff; border-color: var(--accent); }


/* ===== banner FarejaPreço ===== */
.pub-anuncio:has(.fpb) { background: none; border: 0; overflow: visible; }
.pub-anuncio:has(.fpb) .pub-rotulo { position: absolute; bottom: 9px; right: 0; z-index: 3; color: #98a2b3; background: #fff; padding: 0 12px 0 10px; }
.fpb {
  --fp1: #ff7a18; --fp2: #f03e3e; --fp3: #a61e4d; --fpy: #ffd43b;
  position: relative; display: grid; grid-template-columns: 182px minmax(0, 1fr) 200px; grid-template-areas: 'duelo duelo duelo' 'esq hero lista' 'lojas lojas lojas';
  gap: 12px 14px; padding: 14px 14px 0; border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(120% 140% at 0% 0%, var(--fp1) 0%, var(--fp2) 52%, var(--fp3) 100%);
  box-shadow: 0 8px 24px rgba(166, 30, 77, .28);
}
.fpb::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1.2px); background-size: 14px 14px; mask-image: linear-gradient(90deg, #000, transparent 70%); }
.fpb a { color: inherit; text-decoration: none; }
.fpb-esq { grid-area: esq; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fpb-logo { display: inline-flex; align-items: center; gap: 7px; font-weight: 900; font-size: 18px; letter-spacing: -.02em; }
.fpb-logo svg { width: 26px; height: 26px; flex: none; }
.fpb-logo b { color: var(--fpy); }
.fpb-tit { font-size: 25px; line-height: .98; font-weight: 900; letter-spacing: -.03em; text-transform: uppercase; text-shadow: 0 2px 0 rgba(0,0,0,.12); }
.fpb-tit em { font-style: normal; color: var(--fpy); display: block; }
.fpb-sub { font-size: 12px; line-height: 1.3; opacity: .95; }
.fpb-sub b { font-size: 13px; }
.fpb-cta { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: var(--fpy); color: #1b1b1b !important; font-weight: 900; font-size: 13px; padding: 9px 13px; border-radius: 10px; box-shadow: 0 4px 0 #c99a00; transition: transform .12s; white-space: nowrap; }
.fpb-cta:hover { transform: translateY(-2px); }
.fpb-cta span { transition: transform .2s; } .fpb-cta:hover span { transform: translateX(3px); }

.fpb-hero { grid-area: hero; position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 12px; align-items: center;
  background: #fff; color: #1d1d1f !important; border-radius: 14px; padding: 12px 14px 8px; box-shadow: 0 10px 22px rgba(0,0,0,.18); min-width: 0; }
.fpb-hero.entra { animation: fpbEntra .5s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes fpbEntra { from { opacity: 0; transform: translateX(18px) scale(.98); } to { opacity: 1; transform: none; } }
.fpb-img { width: 96px; height: 96px; border-radius: 12px; background: #f4f5f7; display: grid; place-items: center; overflow: hidden; grid-row: span 2; }
.fpb-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.fpb-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding-right: 54px; }
.fpb-loja { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #667085; font-weight: 600; }
.fpb-loja img { height: 15px; max-width: 54px; object-fit: contain; }
.fpb-nome { font-size: 13.5px; font-weight: 700; line-height: 1.22; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fpb-precos { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.fpb-de { font-size: 12px; color: #98a2b3; } .fpb-de s { text-decoration-color: #f03e3e; text-decoration-thickness: 2px; }
.fpb-por { font-size: 13px; font-weight: 800; color: #087f5b; } .fpb-por b { font-size: 26px; letter-spacing: -.02em; }
.fpb-tag { font-size: 10.5px; font-weight: 800; color: #087f5b; background: #e6fcf5; border-radius: 6px; padding: 2px 6px; }
.fpb-selo { position: absolute; top: -10px; right: -8px; width: 68px; height: 68px; display: grid; place-items: center; text-align: center;
  background: var(--fpy); color: #c92a2a; font-weight: 900; line-height: .9; font-size: 19px; transform: rotate(-10deg);
  clip-path: polygon(50% 0%, 61% 13%, 77% 7%, 79% 24%, 95% 27%, 88% 42%, 100% 54%, 87% 64%, 92% 80%, 76% 81%, 70% 97%, 56% 88%, 44% 99%, 35% 85%, 19% 92%, 18% 75%, 2% 69%, 12% 55%, 0% 42%, 15% 34%, 11% 17%, 27% 17%, 34% 2%);
  filter: drop-shadow(0 3px 2px rgba(0,0,0,.25)); }
.fpb-selo small { display: block; font-size: 9px; color: #1b1b1b; letter-spacing: .02em; }
.fpb-hero.entra .fpb-selo { animation: fpbSelo .6s .2s both cubic-bezier(.2, 1.4, .4, 1); }
@keyframes fpbSelo { from { transform: rotate(-30deg) scale(0); } to { transform: rotate(-10deg) scale(1); } }
.fpb-graf { grid-column: 2; position: relative; height: 40px; }
.fpb-graf svg { width: 100%; height: 40px; display: block; overflow: visible; }
.fpb-graf .linha { stroke-dasharray: 600; stroke-dashoffset: 0; }
.fpb-hero.entra .fpb-graf .linha { animation: fpbLinha 1.2s .15s ease-out both; }
@keyframes fpbLinha { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
.fpb-graf .rot { position: absolute; font-size: 9.5px; color: #98a2b3; font-weight: 600; }
.fpb-graf .rot.ini { left: 0; top: -2px; } .fpb-graf .rot.fim { right: 0; bottom: -2px; color: #087f5b; font-weight: 800; }
.fpb-pulso { animation: fpbPulso 1.6s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes fpbPulso { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(3); } }

.fpb-lista { grid-area: lista; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fpb-lista-tit { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.fpb-lista a { display: grid; grid-template-columns: 38px 1fr auto; gap: 8px; align-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 10px; padding: 4px 8px 4px 4px; transition: background .15s; backdrop-filter: blur(2px); }
.fpb-lista a:hover { background: rgba(255,255,255,.26); }
.fpb-lista img { width: 38px; height: 38px; border-radius: 8px; background: #fff; object-fit: contain; }
.fpb-lista .n { font-size: 11.5px; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fpb-lista .v { text-align: right; line-height: 1.1; }
.fpb-lista .v em { display: block; font-style: normal; font-size: 11px; font-weight: 900; color: var(--fpy); }
.fpb-lista .v b { font-size: 12px; white-space: nowrap; }

.fpb-lojas { grid-area: lojas; margin: 0 -14px; background: #fff; display: flex; align-items: center; gap: 14px; padding: 7px 14px; overflow: hidden; position: relative; }
.fpb-lojas > span { font-size: 10.5px; font-weight: 800; color: #667085; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; flex: none; }
.fpb-trilho { display: flex; gap: 18px; align-items: center; animation: fpbTrilho 28s linear infinite; flex: none; }
.fpb-trilho img { height: 22px; width: 80px; object-fit: contain; flex: none; }
@keyframes fpbTrilho { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.fpb-lojas:hover .fpb-trilho { animation-play-state: paused; }
.fpb-esqueleto { grid-area: hero; border-radius: 14px; background: rgba(255,255,255,.18); min-height: 128px; }

/* ===== "Divulgue aqui" ===== */
.pub-lateral { display: flex; flex-direction: column; min-width: 0; }
.pub-nossa { position: relative; overflow: hidden; isolation: isolate; flex: 1; border-radius: var(--radius); color: #fff; padding: 14px 16px; display: flex; flex-direction: column; gap: 7px; justify-content: center;
  background: radial-gradient(130% 120% at 100% 0%, #1fb89a 0%, #0d6e63 45%, #06302b 100%); box-shadow: 0 8px 24px rgba(6, 48, 43, .35); }
.pub-nossa::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%); transform: translateX(-100%); animation: brilhoAnuncie 4.5s 1s infinite; }
@keyframes brilhoAnuncie { 0% { transform: translateX(-100%); } 35%, 100% { transform: translateX(100%); } }
.pub-nossa .cobrir { position: absolute; inset: 0; z-index: 1; }
.pub-nossa-topo { display: flex; align-items: center; gap: 10px; }
.seta-lado { width: 54px; height: 28px; flex: none; animation: setaLado 1s ease-in-out infinite; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.seta-lado svg { width: 100%; height: 100%; }
@keyframes setaLado { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-9px); } }
.divulgue { font-size: 24px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; color: #ffd43b; line-height: 1; text-shadow: 0 2px 0 rgba(0,0,0,.2); }
.pub-nossa b { font-size: 17px; line-height: 1.15; } .pub-nossa b em { font-style: normal; color: #ffd43b; }
.pub-nossa .sub { font-size: 12.5px; opacity: .9; }
.pub-nossa-rodape { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pub-nossa .cta { display: inline-flex; align-items: center; gap: 7px; background: #ffd43b; color: #1b1b1b; border-radius: 10px; padding: 9px 13px; font-weight: 900; font-size: 13.5px; box-shadow: 0 4px 0 #c99a00; transition: transform .12s; position: relative; overflow: hidden; }
.pub-nossa .cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%); transform: translateX(-120%); animation: fpbBrilho 2.8s 2s infinite; }
.pub-nossa:hover .cta { transform: translateY(-2px); }
.pub-nossa .zap { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 5px; color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; opacity: .9; }
.pub-nossa .zap svg { width: 18px; height: 18px; color: #25d366; }
.pub-nossa .zap:hover { opacity: 1; text-decoration: underline; }
/* anúncios pagos */
.pago { display: block; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pago img { display: block; width: 100%; height: auto; }
.pago-rotulo { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 4px 2px 0; }
.pago-rotulo a { color: var(--accent); text-transform: none; letter-spacing: 0; font-size: 11px; font-weight: 700; }
.pago.entra img { animation: fpbEntra .5s ease; }
@media (max-width: 1120px) {
  .fpb { grid-template-columns: 170px minmax(0, 1fr); grid-template-areas: 'duelo duelo' 'esq hero' 'lojas lojas'; }
  .fpb-lista { display: none; }
}
@media (max-width: 760px) {
  .publicidade { grid-template-columns: 1fr; gap: 10px; }
  .fpb { grid-template-columns: 1fr; grid-template-areas: 'duelo' 'hero' 'lojas'; padding: 8px 10px 0; gap: 6px; }
  .fpb-esq { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; }
  .fpb-tit { font-size: 19px; grid-column: 1; } .fpb-tit em { display: inline; }
  .fpb-logo { grid-column: 1 / -1; font-size: 16px; } .fpb-logo svg { width: 22px; height: 22px; }
  .fpb-sub { display: none; }
  .fpb-cta { grid-column: 2; grid-row: 2; margin: 0; padding: 8px 10px; font-size: 12px; }
  .fpb-hero { grid-template-columns: 76px minmax(0, 1fr); padding: 10px 12px 6px; }
  .fpb-img { width: 76px; height: 76px; }
  .fpb-por b { font-size: 22px; }
  .fpb-selo { width: 58px; height: 58px; font-size: 16px; }
  .fpb-lojas { margin: 0 -12px; }
  .pub-nossa { padding: 12px 14px; gap: 6px; }
  .pub-nossa .sub { display: none; }
  .pub-nossa b { font-size: 15px; }
  .divulgue { font-size: 21px; }
  .seta-lado { transform: rotate(90deg); animation: setaCima 1s ease-in-out infinite; width: 40px; }
  @keyframes setaCima { 0%, 100% { transform: rotate(90deg) translateX(0); } 50% { transform: rotate(90deg) translateX(-7px); } }
}

/* reforços de atenção */
.fpb-hero { grid-template-columns: 112px minmax(0, 1fr); }
.fpb-img { width: 112px; height: 112px; }
.fpb-eco { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: 3px; background: #d3f9d8; color: #087f5b; border: 1px solid #b2f2bb; border-radius: 8px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.fpb-eco b { font-weight: 900; }
.fpb-eco svg { width: 13px; height: 13px; }
.fpb-tit .seta { display: inline-block; width: .8em; height: .8em; vertical-align: -.05em; margin-left: 2px; animation: fpbSeta 1.1s ease-in-out infinite; }
@keyframes fpbSeta { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
.fpb-cta { position: relative; overflow: hidden; }
.fpb-cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%); transform: translateX(-120%); animation: fpbBrilho 2.8s 1.2s infinite; }
@keyframes fpbBrilho { 0% { transform: translateX(-120%); } 40%, 100% { transform: translateX(120%); } }
.fpb-lista .v small { display: block; font-size: 9.5px; color: #d3f9d8; font-weight: 700; }
@media (max-width: 760px) { .fpb-hero { grid-template-columns: 84px minmax(0, 1fr); } .fpb-img { width: 84px; height: 84px; } }

.fpb-lojas > span { position: relative; z-index: 2; background: #fff; padding-right: 4px; }
.fpb-janela { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 92%, transparent); }
.pub-anuncio:has(.fpb) .pub-rotulo { display: none; }
.fpb-esq::before { content: 'Publicidade'; position: absolute; top: 4px; right: 10px; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.pub-anuncio:has(.pago) { background: none; border: 0; overflow: visible; min-height: 0; }

/* faixa dos candidatos no banner */
.fpb-duelo { grid-area: duelo; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; background: rgba(0,0,0,.22); border-radius: 10px; padding: 6px 10px; font-weight: 800; font-size: 14px; }
.fpb-duelo em { font-style: normal; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fpy); }
.fpb-duelo i { font-style: normal; opacity: .7; }
.fpb-cand { display: inline-flex; align-items: center; gap: 6px; }
.fpb-cand b { background: #fff; color: #1d1d1f; border-radius: 6px; padding: 1px 7px; font-size: 15px; font-weight: 900; }
/* celular: publicidade mais discreta (só a faixa dos candidatos e a oferta, sem título, gráfico nem parceiros) */
@media (max-width: 760px) {
  .publicidade { margin: 6px 0 12px; gap: 6px; }
  .pub-anuncio { min-height: 0; }
  .fpb { box-shadow: none; }
  .fpb-esq, .fpb-graf, .fpb-lojas, .fpb-eco, .fpb-selo { display: none; }
  .fpb-duelo { font-size: 12.5px; padding: 5px 8px; } .fpb-duelo em { flex-basis: 100%; text-align: center; }
  .fpb-cand b { font-size: 13px; }
  .fpb-hero { grid-template-columns: 52px minmax(0, 1fr); padding: 8px 10px; margin-bottom: 8px; }
  .fpb-img { width: 52px; height: 52px; grid-row: auto; }
  .fpb-info { padding-right: 0; } .fpb-nome { font-size: 12px; -webkit-line-clamp: 1; } .fpb-por b { font-size: 18px; }
  
}

/* destaque do % de urnas apuradas */
.urnas-pct { display: inline-flex; align-items: baseline; gap: 6px; background: var(--accent); color: #fff; border-radius: 12px; padding: 4px 12px; }
.urnas-pct b { font-size: 24px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.urnas-pct small { font-size: 11.5px; font-weight: 700; opacity: .95; text-transform: uppercase; letter-spacing: .04em; }
.progresso.grande { height: 16px; box-shadow: inset 0 1px 3px rgba(0,0,0,.12); }
.progresso.grande > i { background: linear-gradient(90deg, var(--accent), #12b886); }
@media (max-width: 760px) { .urnas-pct b { font-size: 21px; } .urnas-pct small { font-size: 10.5px; } }

/* celular: card de venda de publicidade, em destaque e fácil de tocar */
@media (max-width: 760px) {
  .pub-nossa { padding: 14px; gap: 8px; text-align: center; align-items: stretch; border: 2px solid #ffd43b; }
  .pub-nossa-topo { justify-content: center; }
  .seta-lado { transform: rotate(90deg); width: 36px; height: 22px; animation: none; }
  .divulgue { font-size: 26px; }
  .pub-nossa b { font-size: 16px; }
  .pub-nossa .sub { display: block; font-size: 12.5px; }
  .pub-nossa-rodape { flex-direction: column; gap: 8px; }
  .pub-nossa .cta { width: 100%; justify-content: center; padding: 13px 14px; font-size: 16px; position: relative; z-index: 2; }
  .pub-nossa .zap { font-size: 12.5px; }
}

/* celular: card de venda pequeno, mas legível (uma linha de título + botão ao lado) */
@media (max-width: 760px) {
  .pub-nossa { padding: 10px 12px; gap: 6px; text-align: left; border-width: 1px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; }
  .pub-nossa-topo { grid-column: 1; justify-content: flex-start; gap: 6px; }
  .seta-lado { display: none; }
  .divulgue { font-size: 17px; }
  .pub-nossa b { grid-column: 1; font-size: 13px; line-height: 1.2; font-weight: 700; }
  .pub-nossa b em { color: #ffd43b; }
  .pub-nossa .sub { display: none; }
  .pub-nossa-rodape { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: stretch; gap: 3px; }
  .pub-nossa .cta { width: auto; padding: 9px 12px; font-size: 13.5px; white-space: nowrap; }
  .pub-nossa .zap { justify-content: center; font-size: 11px; }
  .pub-nossa .zap svg { width: 14px; height: 14px; }
}
