* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f7f3e8;
  color: #1c2b1a;
  line-height: 1.5;
}
h1, h2, h3, .tagline, .shock, button {
  font-family: "Archivo", "Inter", system-ui, sans-serif;
}

/* ---------- HERO: VERDE ESCURO + BRASÃO DOURADO ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  background: #032b12; color: #fff; padding: 48px 20px 0;
}
.hero-glow {
  position: absolute; left: 50%; top: 90px; width: 560px; height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,223,0,.28), rgba(255,223,0,0) 65%);
  pointer-events: none;
}
.brasao {
  position: relative; width: 190px; max-width: 55vw; height: auto;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.55));
  animation: flutua 5s ease-in-out infinite;
}
@keyframes flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-content { position: relative; padding: 10px 0 36px; }
.hero-content h1 {
  margin: 6px 0 4px; font-size: clamp(3rem, 11vw, 6.5rem); font-weight: 900;
  letter-spacing: -0.02em; line-height: .95; color: #ffdf00;
  text-shadow: 0 4px 0 #0a5c2e, 0 10px 30px rgba(0,0,0,.6);
}
.tagline {
  margin: 10px 0 6px; font-size: clamp(1rem, 3.4vw, 1.5rem); font-weight: 900;
  letter-spacing: .08em; color: #fff;
}
.hero-content .subtitle { max-width: 620px; margin: 0 auto; color: #d8e8d0; font-size: 1.05rem; }
.flagstripe { display: flex; height: 9px; }
.flagstripe span { display: block; }
.flagstripe .verde { flex: 2; background: #009739; }
.flagstripe .amarelo { flex: 1; background: #ffdf00; }
.flagstripe .azul { flex: 1; background: #012169; }

/* ---------- FAIXA DE CHOQUE ---------- */
.shock {
  background: #ffdf00; color: #032b12; text-align: center;
  font-weight: 900; font-size: clamp(1rem, 3.6vw, 1.6rem); letter-spacing: .02em;
  padding: 14px 12px; border-bottom: 4px solid #032b12;
}

/* ---------- FAIXA DINÂMICA DE ESTADOS ---------- */
.marquee { background: #012169; color: #fff; overflow: hidden; white-space: nowrap; padding: 10px 0; }
.marquee-track { display: inline-block; animation: desliza 60s linear infinite; }
.marquee-track span { margin: 0 18px; font-weight: 600; }
.marquee-track .amarelo { color: #ffdf00; }
@keyframes desliza { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- CONTEÚDO ---------- */
main { max-width: 880px; margin: 0 auto; padding: 24px 20px; }
.card {
  background: #fff; border: 1.5px solid #ddd5bd; border-radius: 16px;
  padding: 24px; margin-bottom: 22px; box-shadow: 0 4px 18px rgba(3,43,18,.08);
}
.card h2 {
  margin-top: 0; color: #0a5c2e; font-weight: 900; text-transform: uppercase;
  letter-spacing: .01em; padding-bottom: 8px; border-bottom: 4px solid #ffdf00;
}
.fonte, .nota { color: #5a6b58; font-size: .92rem; }
a { color: #0a5c2e; font-weight: 600; }

/* Compromisso: 3 cartões escuros */
.compromisso { margin-bottom: 22px; }
.compromisso h2 {
  color: #032b12; font-weight: 900; text-transform: uppercase; text-align: center;
  font-size: clamp(1.4rem, 4.5vw, 2rem); margin: 8px 0 16px;
}
.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.comp-grid .comp-item:last-child { grid-column: 1 / -1; }
.comp-item {
  background: #0a3d1e; color: #fff; border-radius: 14px; padding: 20px;
  border-top: 6px solid #ffdf00; box-shadow: 0 4px 16px rgba(3,43,18,.25);
}
.comp-num { font-family: "Archivo", sans-serif; font-weight: 900; font-size: 2rem; color: #ffdf00; }
.comp-item h3 { margin: 4px 0 6px; font-weight: 900; text-transform: uppercase; font-size: 1.02rem; }
.comp-item p { margin: 0; color: #d8e8d0; font-size: .92rem; }

/* Placar oficial */
.placar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.cand { border: 2px solid #e3e9e0; border-radius: 12px; padding: 14px; text-align: center; }
.cand.eleito { border-color: #009739; background: #f0faf1; box-shadow: 0 0 0 3px rgba(255,223,0,.6); }
.cand .nome { display: block; font-weight: 700; }
.cand .pct { display: block; font-family: "Archivo", sans-serif; font-size: 2.4rem; font-weight: 900; color: #0a5c2e; }
.cand .votos { font-size: .85rem; color: #5a6b58; }
.barra-oficial { display: flex; height: 28px; border-radius: 14px; overflow: hidden; border: 2px solid #032b12; }
.barra-oficial .seg.lula { background: #d42b1e; }
.barra-oficial .seg.flavio { background: #1a6fb5; }

/* Timeline */
.timeline { padding-left: 20px; }
.timeline li { margin-bottom: 10px; }

/* Mapa esquemático */
.mapa { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; margin: 16px 0; }
.uf {
  background: #eef3e6; border: 2px solid #b9d2b4; border-radius: 10px;
  padding: 10px 2px; text-align: center; cursor: pointer; font-weight: 700;
  animation: surge .5s ease both;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.uf small { display: block; font-weight: 400; font-size: .7rem; color: #4c5f49; }
.uf:hover { transform: translateY(-3px); background: #d3e8cf; }
.uf.destaque {
  background: #ffdf00; border-color: #d4a900;
  box-shadow: 0 0 0 3px rgba(254,221,0,.5), 0 4px 14px rgba(0,0,0,.25);
  transform: scale(1.08);
}
.uf.selecionado { background: #012169; color: #fff; border-color: #012169; }
.uf.selecionado small { color: #cfe0ff; }
@keyframes surge { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.painel-estado { border-top: 1px solid #e3e9e0; padding-top: 14px; }
.cidades { columns: 2; list-style: none; padding: 0; font-size: .9rem; }
.cidades li { padding: 2px 0; }

/* Votação em destaque */
.card-voto { border: 3px solid #ffdf00; }
.card-voto h2 { font-size: clamp(1.7rem, 5.5vw, 2.4rem); }
form label { display: block; margin-bottom: 12px; font-weight: 600; }
form input[type="text"] {
  width: 100%; padding: 12px; margin-top: 4px; font-size: 1rem;
  border: 1.5px solid #c3d2bf; border-radius: 10px;
}
form select {
  width: 100%; padding: 12px; margin-top: 4px; font-size: 1rem;
  border: 1.5px solid #c3d2bf; border-radius: 10px; background: #fff;
}
fieldset { border: 1.5px solid #c3d2bf; border-radius: 10px; margin: 0 0 14px; }
fieldset legend { font-weight: 700; padding: 0 6px; }
.radio { display: block; font-weight: 400; margin: 8px 0; cursor: pointer; }
.radio input { transform: scale(1.4); margin-right: 8px; accent-color: #0a5c2e; }
.voto-lula, .voto-flavio, .voto-nao { font-size: 1.45rem; font-weight: 800; padding: 18px 18px; border-radius: 12px; border: 2px solid transparent; }
.voto-lula { background: #fdecea; border-color: #d42b1e; color: #8f130c; }
.voto-flavio { background: #e8f1fa; border-color: #1a6fb5; color: #0d4a7d; }
.voto-nao { background: #eef0ee; border-color: #9aa89a; color: #3c4c3a; }
button {
  background: #0a5c2e; color: #fff; border: none; border-radius: 12px;
  padding: 18px 34px; font-size: 1.2rem; font-weight: 900; letter-spacing: .04em;
  cursor: pointer; box-shadow: 0 4px 0 #032b12;
}
button:hover { background: #032b12; }
button:active { transform: translateY(3px); box-shadow: none; }
.msg { font-weight: 600; min-height: 1.4em; }
.msg.ok { color: #0a5c2e; }
.msg.erro { color: #b00020; }

/* Barras da votação do site */
.res-linha { margin: 10px 0; }
.res-linha .rotulo { display: flex; justify-content: space-between; font-weight: 600; }
.res-barra { height: 18px; background: #e8eee6; border-radius: 9px; overflow: hidden; }
.res-barra div { height: 100%; }
.res-barra div.v-lula { background: #d42b1e; }
.res-barra div.v-flavio { background: #1a6fb5; }
.res-barra div.v-nao { background: #9aa89a; }
.oficial { font-size: .85rem; color: #3c4c3a; margin: 2px 0 6px; }

/* Congresso Nacional 2027 */
.casa { border: 1.5px solid #c3d2bf; border-radius: 14px; padding: 16px; margin: 16px 0; }
.casa h3 { margin-top: 0; }
.hemi { display: flex; flex-direction: column; align-items: center; gap: 5px; margin: 14px 0; }
.hemi .fileira { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.hemi.senado .dot { width: 12px; height: 12px; border-radius: 2px; }
.hemi.camara .dot { width: 7px; height: 7px; border-radius: 50%; }
.dot.azul { background: #1a6fb5; }
.dot.ouro { background: #d9a821; }
.dot.vermelho { background: #d42b1e; }
.legenda { list-style: none; padding: 0; }
.legenda li { margin: 6px 0; font-weight: 600; }
.chip { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 8px; vertical-align: -2px; }
.chip.azul { background: #1a6fb5; }
.chip.ouro { background: #d9a821; }
.chip.vermelho { background: #d42b1e; }
.limites { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.limites div { background: #f2f6f0; border-radius: 10px; padding: 10px 8px; text-align: center; }
.limites b { display: block; font-size: 1.4rem; color: #0a5c2e; }
.limites span { font-size: .8rem; color: #3c4c3a; }
.pratica li { margin: 8px 0; }

/* Glossário */
.glossario dt { font-weight: 700; color: #0a5c2e; margin-top: 12px; }
.glossario dd { margin: 2px 0 0 0; color: #3c4c3a; }

footer { background: #032b12; color: #d8e8d0; text-align: center; font-size: .85rem; padding: 22px 16px; }

/* ---------- NÚMEROS DE IMPACTO ---------- */
.impacto { background: #032b12; color: #fff; border-top: 6px solid #ffdf00; border-bottom: 6px solid #ffdf00; padding: 44px 20px; }
.impacto-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.impacto h2 { color: #ffdf00; font-weight: 900; text-transform: uppercase; font-size: clamp(1.5rem, 5vw, 2.4rem); margin: 0 0 26px; }
.impacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { border: 2px solid rgba(255,255,255,.18); border-radius: 14px; padding: 20px 12px; }
.stat .num { display: block; font-family: "Archivo", sans-serif; font-weight: 900; font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1; letter-spacing: -0.02em; }
.stat .rot { display: block; margin-top: 8px; color: #d8e8d0; font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; }
.stat.destaque { background: #ffdf00; border-color: #ffdf00; }
.stat.destaque .num { color: #032b12; }
.stat.destaque .rot { color: #032b12; }
.punch { font-family: "Archivo", sans-serif; font-weight: 900; font-size: clamp(1.2rem, 4vw, 1.8rem); letter-spacing: .06em; margin: 28px 0 0; color: #fff; }

@media (max-width: 600px) {
  .placar { grid-template-columns: 1fr; }
  .comp-grid { grid-template-columns: 1fr; }
  .impacto-grid { grid-template-columns: 1fr; }
  .mapa { grid-template-columns: repeat(3, 1fr); }
  .cidades { columns: 1; }
}

/* Contador de votos em tempo real */
.contador-votos { font-size: 1.9rem; font-weight: 900; text-align: center; color: #032b12; background: #ffdf00; padding: 18px 12px; border-radius: 12px; margin: 12px 0; }

/* Mapa do Brasil (SVG) */
.mapa-wrap { max-width: 560px; margin: 0 auto; }
.mapa-svg { width: 100%; height: auto; display: block; }
.mapa-svg path { cursor: pointer; stroke: #fff; stroke-width: 1.5; }
.mapa-svg path:hover { opacity: .8; }
.mapa-svg path.selecionado { stroke: #032b12; stroke-width: 3; }
.mapa-tooltip {
  position: fixed; z-index: 50; pointer-events: none;
  background: #032b12; color: #fff; padding: 8px 12px; border-radius: 10px;
  font-size: .85rem; line-height: 1.4; max-width: 260px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.cidades li.cidade-item { cursor: pointer; }
.cidades li.cidade-item:hover { background: #f2f6f0; }
#buscaCidadeGlobal {
  width: 100%; padding: 12px; margin-bottom: 8px; font-size: 1rem;
  border: 1.5px solid #c3d2bf; border-radius: 10px;
}
.atalhos { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; justify-content: center; }
.chip-estado { background: #f2f6f0; border: 1.5px solid #c3d2bf; color: #032b12; padding: 8px 12px; border-radius: 20px; font-size: .85rem; font-weight: 700; box-shadow: none; }
.chip-estado:hover { background: #ffdf00; }

/* Compartilhar — a máquina de viralizar */
.btn-share { display: inline-block; margin: 6px 6px 6px 0; padding: 12px 18px; border-radius: 999px; font-weight: 800; font-size: 1rem; text-decoration: none; color: #fff; }
.btn-share.whatsapp { background: #25d366; }
.btn-share.telegram { background: #229ed9; }
.btn-share.copiar { background: #032b12; border: none; cursor: pointer; }

/* Mosaico do Brasil — fundo do topo */
.mosaico { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(3, 1fr); gap: 4px; z-index: 0; }
.mosaico::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(3,43,18,.45), rgba(3,43,18,.88)); }
.mosaico .mos { margin: 0; position: relative; overflow: hidden; background: #0a3d1f; }
.mosaico img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transform: scale(1.08); transition: opacity .2s; }
.mosaico .mos:nth-child(odd) img { transform: scale(1.08) rotate(-1.5deg); }
.mosaico figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.65); color: #fff; font-size: .7rem; padding: 3px 5px; opacity: 0; transition: opacity .2s; z-index: 1; }
.mosaico .mos:hover img { opacity: .9; }
.mosaico .mos:hover figcaption { opacity: 1; }
.hero-content, .brasao, .flagstripe { position: relative; z-index: 2; }
@media (max-width: 640px) { .mosaico { grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(6, 1fr); } }

/* Presidentes */
.era { margin: 18px 0; }
.era h3 { color: #032b12; margin-bottom: 8px; }
.pres { columns: 2; column-gap: 24px; margin: 0; padding-left: 18px; }
.pres li { margin-bottom: 4px; break-inside: avoid; }
@media (max-width: 640px) { .pres { columns: 1; } }

/* Idade do Brasil — selo no topo */
.idade-brasil { display: inline-block; border: 2px solid #ffdf00; border-radius: 999px; padding: 6px 14px; font-weight: 800; margin: 8px 0 0; }

/* Nome do país no selo de idade — letras pequenas */
.idade-pais { font-size: .7em; letter-spacing: .12em; }
