/* MAGENTA 41 — campanha fictícia de aniversário */

:root {
  --vermelho: #C8141B;
  --vermelho-escuro: #7A0B10;
  --creme: #F1E6CF;
  --preto: #0E0B0A;
  --tinta: #1B1512;
  --ouro: #F2C230;

  --f-titulo: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --f-marcador: 'Permanent Marker', 'Comic Sans MS', cursive;
  --f-texto: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;

  --topo-altura: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--topo-altura) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--preto);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 1.25rem;
  line-height: 1.4;
  overflow-x: hidden;
}

html:has(dialog[open]) { overflow: hidden; }

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--ouro); outline-offset: 3px; }

.so-leitor {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.pular {
  position: absolute; left: 8px; top: -80px; z-index: 100;
  background: var(--creme); color: var(--tinta); padding: 8px 14px; font-weight: 700;
}
.pular:focus { top: 8px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container--estreito { width: min(860px, 100% - 32px); }

/* ---------- Botões ---------- */

.btn {
  display: inline-block;
  border: 0;
  background: var(--vermelho);
  color: var(--creme);
  font-family: var(--f-titulo);
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .7em 1.3em;
  transform: skew(-8deg);
  box-shadow: 5px 5px 0 var(--vermelho-escuro);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn > span { display: inline-block; transform: skew(8deg); }
.btn:hover { background: #E0181F; transform: skew(-8deg) translate(-2px, -2px); box-shadow: 7px 7px 0 var(--vermelho-escuro); }
.btn:active { transform: skew(-8deg) translate(4px, 4px); box-shadow: 1px 1px 0 var(--vermelho-escuro); }

.btn--xl { font-size: clamp(1.7rem, 6vw, 2.7rem); padding: .55em 1.2em; }
.btn--creme { background: var(--creme); color: var(--vermelho); box-shadow: 6px 6px 0 var(--preto); }
.btn--creme:hover { background: #fff; box-shadow: 8px 8px 0 var(--preto); }
.btn--creme:active { box-shadow: 1px 1px 0 var(--preto); }

/* ---------- Topo ---------- */

.topo {
  position: sticky; top: 0; z-index: 50;
  background: var(--preto);
  border-bottom: 3px solid var(--vermelho);
}
.topo__linha {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--topo-altura);
}
.topo__logo img { width: auto; height: 46px; }

.topo__menu {
  width: 46px; height: 46px; border: 2px solid rgba(241, 230, 207, .35); background: none;
  display: grid; place-items: center;
}
.topo__barras, .topo__barras::before, .topo__barras::after {
  display: block; width: 22px; height: 3px; background: var(--creme); transition: transform .2s ease, opacity .2s ease;
}
.topo__barras { position: relative; }
.topo__barras::before, .topo__barras::after { content: ''; position: absolute; left: 0; }
.topo__barras::before { top: -7px; }
.topo__barras::after { top: 7px; }
.topo__menu[aria-expanded="true"] .topo__barras { background: transparent; }
.topo__menu[aria-expanded="true"] .topo__barras::before { transform: translateY(7px) rotate(45deg); }
.topo__menu[aria-expanded="true"] .topo__barras::after { transform: translateY(-7px) rotate(-45deg); }

.topo__nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--preto);
  border-bottom: 3px solid var(--vermelho);
  padding: 8px 16px 20px;
  flex-direction: column; gap: 2px;
}
.topo__nav.aberto { display: flex; }
.topo__nav a {
  color: var(--creme); text-decoration: none; text-transform: uppercase;
  font-weight: 600; letter-spacing: .08em; font-size: 1.1rem;
  padding: 12px 4px; border-bottom: 1px solid rgba(241, 230, 207, .12);
}
.topo__nav a:hover { color: #fff; }
.btn--nav { margin-top: 14px; align-self: flex-start; }

@media (min-width: 860px) {
  .topo__menu { display: none; }
  .topo__nav {
    display: flex; position: static; flex-direction: row; align-items: center;
    gap: clamp(12px, 2vw, 28px); padding: 0; border: 0; background: none;
  }
  .topo__nav a { border: 0; padding: 6px 0; font-size: 1rem; position: relative; }
  .topo__nav a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: var(--vermelho); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
  }
  .topo__nav a:hover::after, .topo__nav a:focus-visible::after { transform: scaleX(1); }
  .btn--nav { margin: 0 6px 0 4px; align-self: center; }
}

/* ---------- Hero ---------- */

.hero { background: var(--preto); }
.hero__arte img { width: 100%; max-width: 1886px; margin-inline: auto; }

.hero__faixa {
  position: relative;
  background:
    linear-gradient(180deg, rgba(14, 11, 10, 0) 0%, rgba(14, 11, 10, .55) 100%),
    url('../assets/bg-vermelho.webp') center / cover no-repeat,
    var(--vermelho-escuro);
  border-top: 4px solid var(--creme);
  color: var(--creme);
}
.hero__grade {
  position: relative;
  display: grid; gap: 22px; justify-items: center; text-align: center;
  padding-block: 34px 40px;
}
.selo {
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .95rem;
  color: var(--ouro);
}
.selo--claro { color: var(--creme); }
.hero__chamada {
  font-family: var(--f-titulo); text-transform: uppercase;
  font-size: clamp(1.7rem, 5.2vw, 3rem); line-height: 1.05; margin-top: 8px;
  text-wrap: balance;
}
.hero__chamada span { font-family: var(--f-marcador); text-transform: none; display: block; font-size: .62em; margin-top: 8px; color: #fff; transform: rotate(-1.5deg); }
.hero__aviso {
  display: inline-block; margin-top: 16px; padding: 3px 12px;
  border: 1px solid rgba(241, 230, 207, .5);
  font-size: .9rem; letter-spacing: .14em; text-transform: uppercase;
}
.hero__carimbo {
  position: absolute; right: -4px; top: -52px;
  width: 92px; transform: rotate(12deg);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45));
  pointer-events: none;
}

@media (min-width: 860px) {
  .hero__grade {
    grid-template-columns: 1fr auto auto; justify-items: start; text-align: left;
    align-items: center; gap: 40px; padding-block: 36px;
  }
  .hero__carimbo { position: static; width: clamp(130px, 13vw, 180px); margin-block: -70px -20px; }
}

/* ---------- Letreiro ---------- */

.letreiro {
  background: var(--creme); color: var(--tinta);
  border-block: 4px solid var(--preto);
  overflow: hidden; white-space: nowrap;
}
.letreiro__trilho {
  display: inline-flex; align-items: center; gap: 26px; padding: 10px 13px;
  font-family: var(--f-titulo); text-transform: uppercase; font-size: clamp(1.1rem, 3vw, 1.6rem); letter-spacing: .03em;
  animation: letreiro 28s linear infinite;
}
.letreiro i { color: var(--vermelho); font-style: normal; }
@keyframes letreiro { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */

.secao { padding-block: clamp(56px, 9vw, 110px); position: relative; }
.secao--justa { padding-block: clamp(40px, 6vw, 72px); }
.secao--papel { background: var(--creme) url('../assets/bg-papel.webp') center / cover; color: var(--tinta); }
.secao--preto { background: var(--preto) url('../assets/bg-preto.webp') center / cover; color: var(--creme); }
.secao--vermelho { background: var(--vermelho-escuro) url('../assets/bg-vermelho.webp') center top / cover; color: var(--creme); }

.cabecalho { margin-bottom: clamp(28px, 5vw, 52px); }
.cabecalho--centro { text-align: center; }
.cabecalho__sub { margin-top: 18px; font-size: 1.35rem; font-weight: 500; opacity: .85; }

.titulo {
  font-family: var(--f-titulo); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.6rem, 9vw, 5.4rem); line-height: 1; letter-spacing: .01em;
  transform: rotate(-2deg); transform-origin: left center;
  text-wrap: balance;
}
.cabecalho--centro .titulo { transform-origin: center; }
.titulo--claro { color: var(--creme); }
.titulo--menor { font-size: clamp(2.1rem, 6vw, 3.4rem); margin-bottom: 28px; }
.titulo small {
  display: block; font-family: var(--f-marcador); font-size: .42em; color: var(--vermelho);
  text-transform: none; letter-spacing: 0; margin-bottom: 4px;
}
.titulo mark {
  display: inline-block; color: var(--creme); background: var(--vermelho);
  padding: .02em .22em .06em; margin-inline: -.04em;
  border-radius: 255px 18px 225px 14px / 14px 225px 18px 255px;
  box-shadow: 4px 4px 0 rgba(14, 11, 10, .35);
}
.titulo .mark--preto { background: var(--preto); box-shadow: 4px 4px 0 rgba(241, 230, 207, .3); }

.nota { margin-top: 22px; font-size: 1.05rem; font-style: italic; opacity: .75; }
.nota--escura { text-align: center; }

/* ---------- Quem é ---------- */

.quem { display: grid; gap: 44px; align-items: center; }
.quem__retrato {
  justify-self: center; width: min(340px, 82%);
  background: #fff; padding: 10px 10px 0; transform: rotate(-3deg);
  box-shadow: 0 18px 40px rgba(27, 21, 18, .35), 0 2px 0 rgba(27, 21, 18, .2);
  position: relative;
}
.quem__retrato::before, .quem__retrato::after {
  content: ''; position: absolute; width: 96px; height: 30px; top: -14px;
  background: rgba(200, 20, 27, .78); box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.quem__retrato::before { left: -30px; transform: rotate(-38deg); }
.quem__retrato::after { right: -30px; transform: rotate(38deg); }
.quem__retrato figcaption {
  font-family: var(--f-marcador); text-align: center; padding: 10px 4px 12px; font-size: 1.05rem; color: var(--tinta);
}
.quem__lema { font-family: var(--f-titulo); text-transform: uppercase; font-size: clamp(1.6rem, 4.6vw, 2.4rem); line-height: 1.1; margin-top: 26px; }
.quem__sub { font-size: 1.5rem; font-weight: 600; color: var(--vermelho-escuro); margin-top: 6px; }
.quem__texto > p:not([class]) { margin-top: 18px; max-width: 58ch; }
.quem__citacao {
  margin-top: 28px; padding: 18px 22px; background: var(--tinta); color: var(--creme);
  border-left: 8px solid var(--vermelho); transform: rotate(-1deg); max-width: 520px;
}
.quem__citacao p { font-family: var(--f-marcador); font-size: 1.5rem; line-height: 1.25; }
.quem__citacao p::before { content: '“'; }
.quem__citacao p::after { content: '”'; }
.quem__citacao footer { margin-top: 8px; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.quem__citacao footer::before { content: '— '; }

.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; max-width: 520px; }
.numeros li { border-top: 4px solid var(--vermelho); padding-top: 8px; }
.numeros b { display: block; font-family: var(--f-titulo); font-weight: 400; font-size: clamp(2rem, 7vw, 3rem); line-height: 1; color: var(--vermelho); }
.numeros span { display: block; font-size: 1rem; line-height: 1.15; margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }

@media (min-width: 860px) {
  .quem { grid-template-columns: minmax(280px, 400px) 1fr; gap: 72px; }
  .quem__retrato { width: 100%; }
}

/* ---------- Plano de governo ---------- */

.propostas { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); counter-reset: proposta; }
.proposta {
  counter-increment: proposta; position: relative;
  background: rgba(241, 230, 207, .05); border: 1px solid rgba(241, 230, 207, .16); border-top: 5px solid var(--vermelho);
  padding: 26px 20px 24px;
  transition: transform .2s ease, background-color .2s ease;
}
.proposta:hover { transform: translateY(-6px) rotate(-1deg); background: rgba(241, 230, 207, .09); }
.proposta::before {
  content: '0' counter(proposta); position: absolute; right: 14px; top: 10px;
  font-family: var(--f-titulo); font-size: 1.6rem; color: rgba(241, 230, 207, .18);
}
.proposta svg { width: 54px; height: 54px; fill: var(--vermelho); }
.proposta h3 { font-family: var(--f-titulo); font-weight: 400; text-transform: uppercase; font-size: 1.6rem; line-height: 1.05; margin-top: 16px; }
.proposta p { margin-top: 10px; opacity: .82; }

/* ---------- Bandeiras ---------- */

.bandeiras { display: grid; gap: 34px; }
.bandeira { background: #fff; padding: 8px 8px 0; box-shadow: 0 14px 30px rgba(27, 21, 18, .3); }
.bandeira:nth-child(odd) { transform: rotate(-1.2deg); }
.bandeira:nth-child(even) { transform: rotate(1.2deg); }
.bandeira img { width: 100%; }
.bandeira figcaption { font-family: var(--f-marcador); text-align: center; padding: 10px 6px 12px; font-size: 1.1rem; }
@media (min-width: 860px) { .bandeiras { grid-template-columns: 1fr 1fr; gap: 40px; } }

/* ---------- Inimigos ---------- */

.poster {
  width: min(920px, 100%); margin-inline: auto;
  border: 8px solid var(--creme); box-shadow: 0 24px 50px rgba(0, 0, 0, .5); transform: rotate(-.8deg);
}
.duelo { display: grid; gap: 20px; margin-top: 44px; }
.duelo__lado { padding: 26px 24px 28px; }
.duelo__lado h3 { font-family: var(--f-titulo); font-weight: 400; text-transform: uppercase; font-size: 2rem; line-height: 1; }
.duelo__quem { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-top: 6px; opacity: .75; }
.duelo__lado ul { margin-top: 18px; display: grid; gap: 10px; }
.duelo__lado li { position: relative; padding-left: 34px; font-weight: 600; font-size: 1.3rem; text-transform: uppercase; line-height: 1.15; }
.duelo__lado li::before { position: absolute; left: 0; top: -.08em; font-size: 1.3em; line-height: 1; }
.duelo__lado--real { background: var(--creme); color: var(--tinta); border-bottom: 8px solid var(--vermelho); }
.duelo__lado--real h3 { color: var(--vermelho); }
.duelo__lado--real li::before { content: '★'; color: var(--vermelho); }
.duelo__lado--duvidosa { background: var(--preto); color: var(--creme); border-bottom: 8px solid #5a534c; }
.duelo__lado--duvidosa li { text-decoration: line-through; text-decoration-color: rgba(200, 20, 27, .9); text-decoration-thickness: 2px; }
.duelo__lado--duvidosa li::before { content: '✕'; color: #9a928a; }
.duelo__fecho { text-align: center; margin-top: 40px; font-family: var(--f-marcador); font-size: clamp(1.7rem, 5vw, 2.6rem); transform: rotate(-2deg); color: #fff; }
@media (min-width: 720px) { .duelo { grid-template-columns: 1fr 1fr; width: min(920px, 100%); margin-inline: auto; } }

/* ---------- Pesquisa ---------- */

.pesquisa { background: var(--creme); color: var(--tinta); padding: 8px clamp(14px, 3vw, 28px); border: 4px solid var(--tinta); box-shadow: 8px 8px 0 var(--vermelho); }
.pesquisa__linha {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'nome valor' 'trilho trilho';
  gap: 6px 12px; align-items: center; padding-block: 16px;
}
.pesquisa__linha + .pesquisa__linha { border-top: 2px solid rgba(27, 21, 18, .18); }
.pesquisa__nome { grid-area: nome; font-family: var(--f-titulo); text-transform: uppercase; font-size: 1.35rem; line-height: 1.1; }
.pesquisa__valor { grid-area: valor; font-family: var(--f-titulo); font-size: 2rem; line-height: 1; min-width: 3.2ch; text-align: right; font-variant-numeric: tabular-nums; }
.pesquisa__valor b { font-weight: 400; }
.pesquisa__trilho { grid-area: trilho; height: 26px; background: rgba(27, 21, 18, .1); }
.pesquisa__barra { display: block; height: 100%; width: calc(var(--valor) * 1%); transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.pesquisa__barra--41 { background: var(--vermelho); }
.pesquisa__barra--zero { background: #5a534c; min-width: 5px; }
.pesquisa__barra--mudo { background: repeating-linear-gradient(-45deg, #5a534c 0 10px, #77706a 10px 20px); }
.js .pesquisa:not(.contando) .pesquisa__barra { width: 0; }
@media (min-width: 600px) {
  .pesquisa__linha { grid-template-columns: 230px 1fr auto; grid-template-areas: 'nome trilho valor'; gap: 18px; }
}

/* ---------- Depoimentos ---------- */

.depoimentos { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.depoimento { background: #fff; padding: 10px 10px 18px; box-shadow: 0 12px 28px rgba(27, 21, 18, .28); text-align: center; }
.depoimento:nth-child(1) { transform: rotate(-1.5deg); }
.depoimento:nth-child(2) { transform: rotate(1deg); }
.depoimento:nth-child(3) { transform: rotate(-.6deg); }
.depoimento img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }
.depoimento blockquote { font-weight: 700; font-size: 1.45rem; line-height: 1.15; margin-top: 16px; padding-inline: 6px; }
.depoimento figcaption { margin-top: 12px; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; opacity: .8; }
.estrelas { display: block; color: var(--vermelho); font-size: 1.5rem; letter-spacing: .12em; line-height: 1; margin-bottom: 4px; }
.estrelas i { font-style: normal; color: rgba(27, 21, 18, .18); }

/* ---------- Frases + FAQ ---------- */

.dupla { display: grid; gap: 64px; }
@media (min-width: 860px) { .dupla { grid-template-columns: 1fr 1fr; gap: 72px; } }

.frases ul { display: grid; gap: 18px; }
.frases li { position: relative; padding-left: 58px; font-family: var(--f-marcador); font-size: clamp(1.35rem, 4vw, 1.8rem); line-height: 1.2; }
.frases li::before {
  content: '“'; position: absolute; left: 0; top: -.12em;
  font-family: var(--f-titulo); font-size: 4.2rem; line-height: 1; color: var(--vermelho);
}

.faq details { background: var(--creme); color: var(--tinta); border-left: 8px solid var(--vermelho); }
.faq details + details { margin-top: 12px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative;
  font-weight: 700; font-size: 1.35rem; line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px;
  border-right: 4px solid var(--vermelho); border-bottom: 4px solid var(--vermelho);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 18px 18px; font-family: var(--f-titulo); font-size: 1.7rem; text-transform: uppercase; color: var(--vermelho); line-height: 1.1; }

/* ---------- CTA ---------- */

.cta {
  position: relative; overflow: hidden; color: var(--creme);
  background: var(--vermelho-escuro) url('../assets/bg-vermelho.webp') center / cover;
  border-block: 6px solid var(--creme);
}
.cta__arte {
  position: absolute; right: 0; bottom: 0; height: 100%; width: auto; max-width: none; opacity: .38;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
.cta__texto { position: relative; padding-block: clamp(64px, 11vw, 130px); display: grid; gap: 30px; justify-items: start; }
.cta .titulo { max-width: 13ch; }
@media (min-width: 860px) { .cta__arte { opacity: 1; } }

/* ---------- Rodapé ---------- */

.rodape { background: var(--preto); color: var(--creme); text-align: center; padding-block: 52px 60px; }
.rodape__logo {
  display: inline-block; background: var(--creme) url('../assets/bg-papel.webp') center / cover;
  padding: 14px 26px 10px; transform: rotate(-2deg); box-shadow: 6px 6px 0 var(--vermelho);
}
.rodape__logo img { width: min(280px, 62vw); }
.rodape__lema { font-family: var(--f-titulo); text-transform: uppercase; letter-spacing: .1em; font-size: clamp(.95rem, 4.2vw, 1.2rem); margin-top: 22px; white-space: nowrap; }
.rodape__lema i { color: var(--vermelho); font-style: normal; margin-inline: .3em; }
.rodape p + p { margin-top: 14px; }
.rodape__fino { font-size: 1rem; opacity: .55; max-width: 46ch; margin-inline: auto; }

/* ---------- Revelar ao rolar ---------- */

.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .6s ease, translate .6s ease; }
.js .reveal.visivel { opacity: 1; translate: 0 0; }

/* ---------- Urna ---------- */

.urna-dialog {
  border: 0; padding: 12px; background: transparent; color: var(--tinta);
  width: 100vw; height: 100dvh; max-width: none; max-height: none; overflow: auto;
}
.urna-dialog[open] { display: grid; place-items: center; }
.urna-dialog::backdrop { background: rgba(14, 11, 10, .88); }
.urna-confete { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }

.urna {
  position: relative; width: min(780px, 100%);
  background: linear-gradient(180deg, #E4DFD2, #CFC9BA);
  border: 3px solid var(--tinta); border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 2px 0 rgba(255, 255, 255, .6);
  animation: urna-entra .25s ease-out;
}
.urna:focus { outline: none; }
@keyframes urna-entra { from { opacity: 0; scale: .94; } }
.urna.batendo { animation: urna-treme .32s linear; }
@keyframes urna-treme {
  20% { translate: -5px 3px; } 40% { translate: 5px -3px; } 60% { translate: -3px -2px; } 80% { translate: 3px 2px; }
}

.urna__topo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--tinta); color: var(--creme); border-radius: 10px 10px 0 0;
  padding: 4px 6px 4px 16px;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 1rem;
}
.urna__fechar { width: 44px; height: 44px; border: 0; background: none; color: var(--creme); font-size: 2rem; line-height: 1; }
.urna__fechar:hover { color: #fff; }

.urna__corpo { display: grid; gap: 12px; padding: 12px; }

.urna__visor {
  position: relative; background: #F6F3EA; border: 3px solid #7d776b; border-radius: 4px;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, .18);
  min-height: 214px; padding: 12px 14px; overflow: hidden;
}
.urna__tela { display: flex; flex-direction: column; height: 100%; min-height: 186px; }
.urna__tela[hidden] { display: none; }
.urna__cargo { font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; }
.urna__cargo-nome { font-family: var(--f-titulo); text-transform: uppercase; font-size: 1.5rem; line-height: 1.1; }
.urna__numero { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 1.1rem; font-weight: 600; }
.urna__numero b {
  display: grid; place-items: center; width: 40px; height: 50px; border: 2px solid var(--tinta);
  font-family: var(--f-titulo); font-weight: 400; font-size: 2rem; line-height: 1; background: #fff;
}
.urna__candidato { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.urna__candidato[hidden] { display: none; }
.urna__candidato img { width: 54px; height: 70px; object-fit: cover; object-position: top; border: 2px solid var(--tinta); }
.urna__candidato dl { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; font-size: 1.05rem; line-height: 1.25; }
.urna__candidato dt { font-weight: 500; opacity: .7; }
.urna__candidato dd { font-weight: 700; text-transform: uppercase; }
.urna__candidato--erro { flex-direction: column; align-items: flex-start; gap: 0; }
.urna__candidato--erro strong { font-family: var(--f-titulo); font-weight: 400; text-transform: uppercase; font-size: 1.7rem; line-height: 1.1; color: var(--vermelho); }
.urna__candidato--erro span { font-size: 1.05rem; }
.urna__mensagem { margin-top: 8px; font-weight: 700; color: var(--vermelho); font-size: 1.1rem; line-height: 1.2; min-height: 1.2em; }
.urna__instrucao { margin-top: auto; padding-top: 8px; border-top: 2px solid var(--tinta); font-size: .9rem; line-height: 1.2; }

.urna__tela--fim { align-items: flex-start; justify-content: center; }
.urna__fim { font-family: var(--f-titulo); font-size: clamp(4rem, 16vw, 6.5rem); line-height: .9; }
.urna__parabens { font-family: var(--f-marcador); font-size: clamp(1.5rem, 5vw, 2rem); color: var(--vermelho); line-height: 1.1; margin-top: 6px; }
.urna__registro { font-size: 1.05rem; margin-top: 6px; max-width: 24ch; }
.urna__fim-acoes { display: flex; gap: 18px; margin-top: 12px; }
.urna__link { border: 0; background: none; padding: 6px 0; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; text-decoration: underline; text-underline-offset: 4px; }
.urna__link:hover { color: var(--vermelho); }
.urna__aprovado {
  position: absolute; right: 10px; top: 14px;
  font-family: var(--f-titulo); text-transform: uppercase; font-size: clamp(1.5rem, 6vw, 2.3rem); line-height: 1; letter-spacing: .06em;
  color: var(--vermelho); border: 5px double var(--vermelho); border-radius: 8px; padding: .22em .4em;
  rotate: 12deg; opacity: .88; mix-blend-mode: multiply;
  animation: carimbada .38s cubic-bezier(.3, 1.6, .6, 1) both;
}
@keyframes carimbada { from { scale: 3.2; opacity: 0; } }

.urna__teclado {
  background: var(--tinta); border-radius: 10px; padding: 12px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start;
}
.urna__teclado button[data-digit] {
  height: 44px; border: 0; border-bottom: 4px solid #000; border-radius: 6px;
  background: #33291f; color: #fff; font-family: var(--f-titulo); font-size: 1.4rem; line-height: 1;
  transition: translate .06s ease, border-width .06s ease;
}
.urna__teclado button[data-digit]:hover { background: #45382b; }
.urna__teclado button[data-digit]:active { translate: 0 3px; border-bottom-width: 1px; }
.urna__zero { grid-column: 2; }
.urna__acoes { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px; align-items: end; margin-top: 6px; }
.tecla {
  height: 44px; border: 0; border-bottom: 4px solid rgba(0, 0, 0, .45); border-radius: 6px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; color: #111;
  transition: translate .06s ease, border-width .06s ease;
}
.tecla:active { translate: 0 3px; border-bottom-width: 1px; }
.tecla--branco { background: #fff; }
.tecla--corrige { background: #F08A24; }
.tecla--confirma { background: #2FA654; height: 54px; }

@media (min-width: 640px) {
  .urna__corpo { grid-template-columns: 1.3fr 1fr; gap: 16px; padding: 16px; }
  .urna__visor { min-height: 330px; padding: 18px 20px; }
  .urna__tela { min-height: 290px; }
  .urna__cargo-nome { font-size: 1.9rem; }
  .urna__numero b { width: 50px; height: 62px; font-size: 2.5rem; }
  .urna__candidato img { width: 72px; height: 94px; }
  .urna__teclado { padding: 16px; gap: 10px; }
  .urna__teclado button[data-digit] { height: 54px; font-size: 1.6rem; }
  .tecla { height: 50px; font-size: 1rem; }
  .tecla--confirma { height: 62px; }
  .urna__aprovado { right: 22px; top: 26px; }
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .letreiro__trilho { animation: none; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .pesquisa__barra { transition: none; }
  .urna, .urna.batendo, .urna__aprovado { animation: none; }
  .btn, .proposta { transition: none; }
}
