/* ============================================================
   PLACAR DA 6X1 — estilos da página /placar
   Carregado depois de ../styles.css (herda fontes, vars e form)
   ============================================================ */

:root {
  --verde-mapa: #4e7a2b;
  --azul-claro: #2b18c9;
  --verde-placar: #1c8c2e;
  --vermelho: #e21b1b;

  /* escala tipográfica padronizada das seções (o hero tem escala própria) */
  --titulo-secao: 1.7rem;
  --titulo-apoio: 0.95rem; /* linha menor que acompanha o título (ex.: VEJA O PLACAR) */
  --texto-secao: 0.4rem;   /* subtítulos e textos corridos */
}

.placar-hero h1,
.placar-kicker,
.placar-pergunta,
.contador,
.mapa-title,
.mapa-legenda,
.estado-nome,
.btn-reset,
.sen-badge,
.sen-ccj,
.mini-nome,
.mini-badge,
.pressione-title,
.uf-label {
  font-family: 'Anybody', sans-serif;
}

/* ---------- Abertura (azul) ---------- */

/* header mais baixo nesta página: libera altura para o hero */
.site-header {
  height: 1.4rem;
}

.header-logo img {
  width: 1.35rem;
}

.placar-hero {
  /* Unidade fluida do hero: vale 1rem em telas altas e encolhe em telas
     baixas para o hero inteiro (header de 1.4rem + ~16.9 unidades) caber
     na janela sem scroll. Tudo dentro do hero usa múltiplos de --u. */
  --u: min(1rem, calc((100vh - 1.4rem) / 16.9));
  --u: min(1rem, calc((100svh - 1.4rem) / 16.9));
  position: relative;
  z-index: 3;
  background: var(--azul);
  /* 1.2rem do fim ficam atrás da seção creme; o visível é 0.8 * --u */
  padding: calc(var(--u) * 0.7) 0 calc(var(--u) * 0.8 + 1.2rem);
  text-align: center;
}

.placar-kicker {
  color: var(--amarelo);
  font-size: calc(var(--u) * 0.42);
  font-weight: 900;
  font-stretch: 90%;
  letter-spacing: 0.22em;
}

.placar-hero h1 {
  color: var(--creme);
  font-size: calc(var(--u) * 2.6);
  font-weight: 900;
  font-stretch: 64%;
  line-height: 0.94;
  margin-top: calc(var(--u) * 0.2);
}

.placar-pergunta {
  /* textos largos: menos linhas, mais respiro entre os blocos do hero */
  width: calc(var(--u) * 18);
  margin: calc(var(--u) * 0.9) auto 0;
  color: var(--creme);
  font-size: calc(var(--u) * 0.74);
  font-weight: 900;
  font-stretch: 68%;
  line-height: 1.08;
}

.placar-texto {
  width: calc(var(--u) * 15.5);
  margin: calc(var(--u) * 0.7) auto 0;
  color: var(--creme);
  font-size: calc(var(--u) * 0.43);
  font-weight: 500;
  line-height: 1.3;
}

/* placar "versus": A FAVOR x CONTRA (quem não se posicionou conta como contra) */
.contadores {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: calc(var(--u) * 1.15);
  margin-top: calc(var(--u) * 0.7);
}

.versus-lado {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--u) * 0.2);
}

.contador {
  width: calc(var(--u) * 2.9);
  height: calc(var(--u) * 2.9);
  border-radius: calc(var(--u) * 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  box-shadow: calc(var(--u) * 0.08) calc(var(--u) * 0.1) 0 rgba(0, 0, 0, 0.35);
}

.contador-favor { background: var(--verde-placar); color: #fff; }
.contador-contra { background: var(--vermelho); color: #fff; }

.contador strong {
  display: block;
  font-size: calc(var(--u) * 2);
  font-weight: 900;
  font-stretch: 75%;
  line-height: 0.9;
}

.contador span {
  display: block;
  margin-top: calc(var(--u) * 0.08);
  font-size: calc(var(--u) * 0.3);
  font-weight: 900;
  font-stretch: 80%;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.versus-x {
  color: #fff;
  font-family: 'Anybody', sans-serif;
  font-size: var(--u);
  font-weight: 900;
  font-stretch: 75%;
  height: calc(var(--u) * 2.9);
  display: flex;
  align-items: center;
}

.btn-conheca {
  background: #fff;
  color: var(--preto);
  font-family: 'Anybody', sans-serif;
  font-size: calc(var(--u) * 0.24);
  font-weight: 900;
  font-stretch: 80%;
  letter-spacing: 0.06em;
  padding: calc(var(--u) * 0.09) calc(var(--u) * 0.34);
  border-radius: calc(var(--u) * 0.06);
  border: calc(var(--u) * 0.026) solid;
  box-shadow: calc(var(--u) * 0.05) calc(var(--u) * 0.06) 0 rgba(0, 0, 0, 0.35);
}

.btn-conheca:hover { background: var(--amarelo); }

.conheca-favor { border-color: var(--verde-placar); }
.conheca-contra { border-color: var(--vermelho); }

.placar-atualizado {
  margin-top: calc(var(--u) * 0.32);
  color: var(--creme);
  opacity: 0.7;
  font-size: calc(var(--u) * 0.28);
  font-weight: 500;
}

.placar-fonte {
  margin-top: calc(var(--u) * 0.08);
  color: var(--creme);
  opacity: 0.55;
  font-size: calc(var(--u) * 0.25);
  font-weight: 500;
}

/* ---------- Mapa (creme) ---------- */

.mapa {
  position: relative;
  z-index: 3; /* acima da seção final: a borda arredondada de baixo mostra o amarelo atrás */
  background-color: var(--creme);
  background-image: radial-gradient(rgba(19, 19, 18, 0.07) 0.018rem, transparent 0.02rem);
  background-size: 0.26rem 0.26rem;
  border-radius: 0 0 1rem 1rem;
  padding: 0.45rem 0 1.9rem;
  text-align: center;
}

/* divisor entre o formulário e o mapa: as duas seções são creme e emendam direto */
.divisor-secao {
  width: min(16rem, calc(100% - 2.4rem));
  margin: 0 auto 0.85rem;
  border: 0;
  border-top: 0.02rem solid var(--preto);
  opacity: 0.35;
}

.mapa-title {
  line-height: 1;
}

.mapa-title .linha-verde {
  display: block;
  color: var(--verde);
  font-size: var(--titulo-apoio);
  font-weight: 900;
  font-stretch: 63.5%;
  line-height: 0.9;
}

.mapa-title .linha-azul {
  display: block;
  color: var(--azul);
  font-size: var(--titulo-secao);
  font-weight: 900;
  font-stretch: 64%;
  line-height: 0.92;
}

.mapa-sub {
  width: 9.8rem;
  margin: 0.3rem auto 0;
  color: var(--preto);
  font-size: var(--texto-secao);
  font-weight: 500;
  line-height: 1.25;
}

/* ---------- Layout de duas colunas: mapa no card + lista ao lado ---------- */

.mapa-flex {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin: 0.75rem 0.9rem 0;
  text-align: left;
}

.mapa-card {
  flex: 0 0 9.6rem;
  background: #fff;
  border: 0.022rem solid var(--preto);
  border-radius: 0.5rem;
  box-shadow: 0.14rem 0.14rem 0 var(--amarelo);
  padding: 0.5rem 0.45rem 0.45rem;
  display: flex;
  flex-direction: column;
}

/* mapa real do Brasil (malha do IBGE), estilo claro */
.mapa-svg {
  width: 100%;
  margin: 0 auto;
}

.mapa-svg svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.uf {
  fill: #f0ead4;
  stroke: #97917c;
  stroke-width: 1.6;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill 0.15s ease;
  outline: none;
}

.uf:hover,
.uf:focus-visible { fill: #f3dd9a; }

.uf:focus-visible {
  stroke: var(--preto);
  stroke-width: 3;
}

.uf.sel {
  fill: var(--amarelo);
  stroke: var(--preto);
  stroke-width: 3;
}

.uf-label {
  font-size: 24px;
  font-weight: 800;
  font-stretch: 85%;
  fill: #4d493c;
  text-anchor: middle;
  pointer-events: none;
  user-select: none;
}

.uf-label.sel {
  fill: var(--preto);
  font-weight: 900;
}

/* bolhas dos estados pequenos do litoral + DF */
.uf-bolha {
  cursor: pointer;
  outline: none;
}

.uf-bolha circle {
  fill: #f0ead4;
  stroke: #97917c;
  stroke-width: 1.6;
  transition: fill 0.15s ease;
}

.uf-bolha:hover circle,
.uf-bolha:focus-visible circle { fill: #f3dd9a; }

.uf-bolha:focus-visible circle {
  stroke: var(--preto);
  stroke-width: 3;
}

.uf-bolha.sel circle {
  fill: var(--amarelo);
  stroke: var(--preto);
  stroke-width: 3;
}

.uf-bolha text {
  font-family: 'Anybody', sans-serif;
  font-size: 21px;
  font-weight: 800;
  font-stretch: 85%;
  fill: #4d493c;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  user-select: none;
}

.uf-bolha.sel text {
  fill: var(--preto);
  font-weight: 900;
}

.mapa-topo {
  margin-bottom: 0.6rem;
}

.uf-select-wrap {
  text-align: center;
}

#uf-select {
  width: 100%;
  height: 0.68rem;
  border: 0.024rem solid var(--preto);
  border-radius: 1rem;
  background-color: #fff;
  padding: 0 0.38rem;
  color: var(--preto);
  font-family: 'PP Neue Machina', sans-serif;
  font-size: 0.3rem;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23131312' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.32rem center;
  background-size: 0.22rem;
  cursor: pointer;
}

/* ---------- Lista ao lado do mapa ---------- */

.mapa-lista {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 0.5rem;
}

.resultado-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  flex-wrap: wrap;
  padding: 0.08rem 0.05rem 0.3rem;
}

.estado-nome {
  color: var(--azul);
  font-size: 0.62rem;
  font-weight: 900;
  font-stretch: 64%;
  line-height: 1;
}

.btn-reset {
  background: none;
  border: 0.02rem solid var(--preto);
  border-radius: 1rem;
  padding: 0.1rem 0.3rem;
  color: var(--preto);
  font-size: 0.26rem;
  font-weight: 800;
  font-stretch: 80%;
  cursor: pointer;
  white-space: nowrap;
}

.btn-reset:hover {
  background: var(--amarelo);
}

/* área rolável, com a mesma altura do card do mapa */
.lista-scroll {
  flex: 1;
  min-height: 0;
  max-height: 10.2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.04rem 0.16rem 0.04rem 0.04rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(19, 19, 18, 0.4) transparent;
}

.lista-scroll::-webkit-scrollbar {
  width: 0.09rem;
}

.lista-scroll::-webkit-scrollbar-thumb {
  background: rgba(19, 19, 18, 0.35);
  border-radius: 1rem;
}

/* cards grandes do estado selecionado (estilo da referência) */
.sen-card {
  background: #fff;
  border: 0.022rem solid var(--preto);
  border-radius: 0.4rem;
  box-shadow: 0.1rem 0.1rem 0 var(--amarelo);
  padding: 0.4rem 0.42rem;
  margin: 0.06rem 0.16rem 0.12rem 0.06rem;
}

.sen-topo {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.sen-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sen-foto,
.sen-avatar {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  border: 0.028rem solid var(--preto);
  object-fit: cover;
  object-position: top center; /* enquadra o rosto, não o peito */
  flex-shrink: 0;
}

.sen-avatar {
  background: var(--azul);
  color: var(--creme);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anybody', sans-serif;
  font-size: 0.46rem;
  font-weight: 900;
}

.sen-card h4 {
  color: var(--preto);
  font-family: 'Anybody', sans-serif;
  font-size: 0.44rem;
  font-weight: 900;
  font-stretch: 68%;
  line-height: 1.05;
  text-wrap: balance; /* nomes longos quebram de forma equilibrada */
}

.sen-partido {
  margin-top: 0.08rem;
  color: var(--preto);
  opacity: 0.75;
  font-size: 0.28rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.sen-badge {
  border-radius: 1rem;
  padding: 0.1rem 0.28rem;
  font-size: 0.25rem;
  font-weight: 900;
  font-stretch: 80%;
  letter-spacing: 0.03em;
  white-space: nowrap;
  align-self: flex-start;
}

.sen-badge.favor { background: var(--verde); color: var(--creme); }
.sen-badge.contra { background: var(--vermelho); color: #fff; }
.sen-badge.indefinido { background: var(--amarelo); color: var(--preto); }

.sen-ccj {
  margin-top: 0.12rem;
  border: 0.018rem solid var(--azul);
  color: var(--azul);
  border-radius: 1rem;
  padding: 0.05rem 0.2rem;
  font-family: 'Anybody', sans-serif;
  font-size: 0.22rem;
  font-weight: 800;
  font-stretch: 85%;
  letter-spacing: 0.04em;
}

.sen-ccj-contra {
  border-color: var(--vermelho);
  color: var(--vermelho);
}

/* tag "votou contra na CCJ" no card compacto da lista geral */
.mini-ccj {
  display: inline-block;
  margin-top: 0.06rem;
  border: 0.016rem solid var(--vermelho);
  color: var(--vermelho);
  border-radius: 1rem;
  padding: 0.03rem 0.16rem;
  font-family: 'Anybody', sans-serif;
  font-size: 0.19rem;
  font-weight: 800;
  font-stretch: 85%;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ressalva editorial ("favorável, mas defende transição", etc.) */
.sen-nota {
  margin-top: 0.24rem;
  padding-left: 0.24rem;
  border-left: 0.05rem solid var(--amarelo);
  color: var(--preto);
  opacity: 0.8;
  font-size: 0.27rem;
  font-weight: 500;
  line-height: 1.22;
}

/* CTA preto de largura total, como na referência */
.sen-cta {
  display: block;
  margin-top: 0.3rem;
  background: var(--preto);
  color: var(--creme);
  border-radius: 1rem;
  padding: 0.24rem 0.3rem;
  text-align: center;
  font-family: 'Anybody', sans-serif;
  font-size: 0.3rem;
  font-weight: 900;
  font-stretch: 75%;
  letter-spacing: 0.04em;
}

.sen-cta:hover {
  background: var(--azul);
}

.mini-card {
  background: #fff;
  border: 0.018rem solid var(--preto);
  border-left-width: 0.1rem;
  border-radius: 0.2rem;
  padding: 0.2rem 0.26rem;
  display: flex;
  align-items: center;
  gap: 0.24rem;
  text-align: left;
  min-width: 0;
}

.mini-card.pos-favor { border-left-color: var(--verde); }
.mini-card.pos-contra { border-left-color: var(--vermelho); }
.mini-card.pos-indefinido { border-left-color: var(--amarelo); }

.mini-foto,
.mini-card .sen-avatar {
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  border: 0.02rem solid var(--preto);
  object-fit: cover;
  object-position: top center; /* enquadra o rosto, não o peito */
  flex-shrink: 0;
}

.mini-card .sen-avatar {
  font-size: 0.28rem;
}

/* nome + partido de um lado, badge encostado à direita */
.mini-info {
  flex: 1;
  min-width: 0;
}

.mini-nome {
  display: block;
  color: var(--preto);
  font-size: 0.32rem;
  font-weight: 900;
  font-stretch: 76%;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-meta {
  display: block;
  color: var(--preto);
  opacity: 0.7;
  font-size: 0.24rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-top: 0.04rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-badge {
  flex-shrink: 0;
  border-radius: 1rem;
  padding: 0.08rem 0.22rem;
  font-size: 0.22rem;
  font-weight: 900;
  font-stretch: 85%;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.mini-badge.favor { background: var(--verde); color: var(--creme); }
.mini-badge.contra { background: var(--vermelho); color: #fff; }
.mini-badge.indefinido { background: var(--amarelo); color: var(--preto); }

.btn-cobrar {
  width: 100%;
  margin-top: 0.35rem;
}

/* ---------- Formulário (herda .cadastro do styles.css) ---------- */

.cadastro {
  margin-top: -1.2rem; /* encaixa sob o azul do hero */
  z-index: 2;
  border-radius: 0; /* emenda direto na seção creme do mapa, logo abaixo */
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.pressione-title {
  margin-top: 0;
  text-align: center;
  color: var(--verde);
  font-size: var(--titulo-secao);
  font-weight: 900;
  font-stretch: 64%;
  line-height: 0.98;
}

.pressione-title .destaque-azul {
  color: var(--azul);
}

.pressione-sub {
  width: 9.8rem;
  margin: 0.3rem auto 0.75rem;
  text-align: center;
  color: var(--preto);
  font-size: var(--texto-secao);
  font-weight: 500;
  line-height: 1.25;
}

.btn-grupo {
  width: 6rem;
  margin: 0.4rem auto 0;
}

/* ---------- Final (amarelo) — alinhada à escala da página ---------- */

.final h2 {
  font-size: var(--titulo-secao);
}

.final p {
  font-size: var(--texto-secao);
}

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  :root {
    --titulo-secao: 1.15rem;
    --titulo-apoio: 0.68rem;
    --texto-secao: 0.38rem;
  }

  .header-logo img {
    width: 1.1rem;
  }

  .placar-hero {
    /* no mobile os textos quebram em mais linhas: o hero soma ~17.9 unidades */
    --u: min(1rem, calc((100vh - 1.4rem) / 17.9));
    --u: min(1rem, calc((100svh - 1.4rem) / 17.9));
    padding: calc(var(--u) * 0.9) 0 calc(var(--u) * 0.8 + 1.2rem);
  }

  .placar-hero h1 {
    font-size: calc(var(--u) * 1.6);
  }

  .placar-kicker {
    font-size: calc(var(--u) * 0.3);
    letter-spacing: 0.16em;
  }

  .placar-pergunta {
    width: auto;
    padding: 0 0.35rem;
    font-size: calc(var(--u) * 0.48);
  }

  .placar-texto {
    width: auto;
    padding: 0 0.4rem;
  }

  .contadores {
    gap: calc(var(--u) * 0.42);
    padding: 0 0.2rem;
  }

  .versus-x {
    font-size: calc(var(--u) * 0.9);
  }

  .btn-conheca {
    font-size: calc(var(--u) * 0.26);
  }

  .mapa-sub {
    width: auto;
    padding: 0 0.55rem;
  }

  /* colunas empilham: mapa em cima, lista embaixo */
  .mapa-flex {
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.6rem 0.32rem 0;
  }

  .mapa-card {
    flex: none;
    width: 100%;
    padding: 0.4rem 0.32rem 0.35rem;
  }

  .uf {
    stroke-width: 2;
  }

  .uf-label {
    font-size: 28px;
  }

  .uf-bolha text {
    font-size: 24px;
  }

  .uf-bolha circle {
    r: 31;
  }

  #uf-select {
    height: 0.8rem;
    font-size: 0.34rem;
  }

  .estado-nome {
    font-size: 0.56rem;
  }

  .btn-reset {
    font-size: 0.26rem;
  }

  .lista-scroll {
    max-height: 9rem;
  }

  .mini-nome {
    font-size: 0.26rem;
  }

  .pressione-sub {
    width: auto;
    padding: 0 0.5rem;
  }
}
