/* Fim de Ano em Festa — Compras Mix Atacarejo
   Folha única do site da campanha, na linguagem do KV: vermelho com brilho, dourado em relevo,
   balões metalizados, confete e lâmpadas de letreiro. Cores e tamanhos pelos tokens abaixo. */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;

  /* cores do KV */
  --vermelho: #b3141e;
  --vermelho-vivo: #e3232d;
  --vermelho-escuro: #7e0c14;
  --vermelho-noite: #4f060b;
  --ouro: #f6b12c;
  --ouro-claro: #ffd35a;
  --ouro-escuro: #a5610a;
  --branco: #ffffff;
  --papel: #f2f2ef;
  --tinta: #2a0a0e;
  --tinta-suave: #6b4448;
  --no-vermelho: #fff8f6;
  --no-vermelho-suave: rgba(255, 248, 246, 0.86);
  --linha-ouro: rgba(255, 210, 120, 0.45);
  --whatsapp: #25d366;

  --fonte: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --fonte-festa: "Pacifico", "Brush Script MT", cursive;

  /* fundos e acabamentos do KV */
  --fundo-festa: radial-gradient(130% 90% at 50% 28%, #e3232d 0%, #b3141e 46%, #7e0c14 100%);
  --fundo-noite: radial-gradient(120% 85% at 50% 18%, #a3101a 0%, #7e0c14 48%, #4f060b 100%);
  --ouro-texto: linear-gradient(180deg, #fff6c2 0%, #ffd863 34%, #f7b02e 64%, #d8780f 100%);
  --ouro-metal: linear-gradient(180deg, #ffe596 0%, #f8bc3c 42%, #e3961c 72%, #f7c457 100%);
  --relevo: drop-shadow(0 2px 0 #9e0e17) drop-shadow(0 2px 0 #840b13) drop-shadow(0 2px 0 #6a080e) drop-shadow(0 10px 14px rgba(40, 0, 5, 0.45));

  --passo-pequeno: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --passo-texto: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  --passo-destaque: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  --passo-frase: clamp(1.375rem, 1.1rem + 1vw, 2.125rem);
  --passo-titulo: clamp(2rem, 1.2rem + 3vw, 3.75rem);
  --passo-chamada: clamp(2.5rem, 1.3rem + 4.4vw, 5rem);
  --passo-cartaz: clamp(4.5rem, 1.5rem + 10vw, 11rem);

  /* borda serrilhada do cupom: aberta e recolhida (mesmos vértices, para a impressão animar) */
  --serrilha: polygon(0 0, 100% 0, 100% calc(100% - 12px), 97.727% 100%, 95.455% calc(100% - 12px), 93.182% 100%, 90.909% calc(100% - 12px), 88.636% 100%, 86.364% calc(100% - 12px), 84.091% 100%, 81.818% calc(100% - 12px), 79.545% 100%, 77.273% calc(100% - 12px), 75% 100%, 72.727% calc(100% - 12px), 70.455% 100%, 68.182% calc(100% - 12px), 65.909% 100%, 63.636% calc(100% - 12px), 61.364% 100%, 59.091% calc(100% - 12px), 56.818% 100%, 54.545% calc(100% - 12px), 52.273% 100%, 50% calc(100% - 12px), 47.727% 100%, 45.455% calc(100% - 12px), 43.182% 100%, 40.909% calc(100% - 12px), 38.636% 100%, 36.364% calc(100% - 12px), 34.091% 100%, 31.818% calc(100% - 12px), 29.545% 100%, 27.273% calc(100% - 12px), 25% 100%, 22.727% calc(100% - 12px), 20.455% 100%, 18.182% calc(100% - 12px), 15.909% 100%, 13.636% calc(100% - 12px), 11.364% 100%, 9.091% calc(100% - 12px), 6.818% 100%, 4.545% calc(100% - 12px), 2.273% 100%, 0% calc(100% - 12px));
  --serrilha-fechada: polygon(0 0, 100% 0, 100% 0, 97.727% 0, 95.455% 0, 93.182% 0, 90.909% 0, 88.636% 0, 86.364% 0, 84.091% 0, 81.818% 0, 79.545% 0, 77.273% 0, 75% 0, 72.727% 0, 70.455% 0, 68.182% 0, 65.909% 0, 63.636% 0, 61.364% 0, 59.091% 0, 56.818% 0, 54.545% 0, 52.273% 0, 50% 0, 47.727% 0, 45.455% 0, 43.182% 0, 40.909% 0, 38.636% 0, 36.364% 0, 34.091% 0, 31.818% 0, 29.545% 0, 27.273% 0, 25% 0, 22.727% 0, 20.455% 0, 18.182% 0, 15.909% 0, 13.636% 0, 11.364% 0, 9.091% 0, 6.818% 0, 4.545% 0, 2.273% 0, 0% 0);

  --margem: clamp(1rem, 2.2vw, 2rem);
  --vao: clamp(0.75rem, 1.6vw, 1.5rem);
  --secao: clamp(4.5rem, 9vw, 8rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--branco);
  color: var(--tinta);
  font-family: var(--fonte);
  font-size: var(--passo-texto);
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, dl, dd, ul, ol, fieldset { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 900; text-wrap: balance; hyphens: none; }
p { text-wrap: pretty; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
strong { font-weight: 800; }
:target, section[id] { scroll-margin-top: 4.5rem; }
::selection { background: var(--ouro); color: var(--tinta); }
:focus-visible { outline: 3px solid var(--foco, var(--ouro)); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.pular {
  position: absolute; left: var(--margem); top: 0.5rem; z-index: 100;
  padding: 0.75rem 1rem; background: var(--ouro); color: var(--tinta); font-weight: 700;
  transform: translateY(-150%);
}
.pular:focus { transform: none; }

/* títulos em caixa alta, como no KV; .ouro é o trecho em dourado com relevo */
.titulo {
  font-size: var(--passo-titulo); font-weight: 900; line-height: 0.98;
  letter-spacing: -0.01em; text-transform: uppercase;
}
.ouro {
  display: inline-block;
  background: var(--ouro-texto); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(90, 4, 10, 0.6)) drop-shadow(0 6px 10px rgba(40, 0, 5, 0.3));
}
.destaque { color: var(--vermelho); }
/* linha de cima menor, como o "Tem prêmio" do KV */
.titulo__menor { display: block; font-size: 0.62em; }

.texto-link, .aceite__link {
  font-weight: 700; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em;
}

/* ---------- botões dourados em relevo ---------- */
.botao {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0 1.6rem;
  border: 0; border-radius: 0.8rem;
  background: var(--ouro-metal); color: #3a0c06;
  font-family: var(--fonte); font-weight: 900; font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.1; letter-spacing: 0.02em; text-transform: uppercase;
  text-align: center; text-decoration: none; white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 0 var(--ouro-escuro), 0 10px 22px rgba(70, 8, 0, 0.32), inset 0 2px 0 rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), box-shadow var(--t-press) var(--ease-out), filter var(--t-hover) ease;
}
.botao:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ouro-escuro), 0 4px 10px rgba(70, 8, 0, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.5); }
.botao[disabled] { opacity: 0.65; cursor: progress; }
.botao--grande { min-height: 3.75rem; padding: 0 2.1rem; font-size: clamp(1rem, 0.92rem + 0.3vw, 1.1875rem); }
.botao--largo { width: 100%; }
.botao--claro {
  background: linear-gradient(180deg, #ffffff 0%, #f6eeee 100%); color: var(--vermelho); text-shadow: none;
  box-shadow: 0 4px 0 #d9bfc2, 0 10px 20px rgba(60, 0, 6, 0.25), inset 0 2px 0 #fff;
}
.botao--claro:active { box-shadow: 0 1px 0 #d9bfc2, 0 4px 10px rgba(60, 0, 6, 0.2), inset 0 2px 0 #fff; }
.botao--claro-escuro { background: var(--papel); color: var(--tinta); text-shadow: none; box-shadow: 0 3px 0 #d6d6cf; }
@media (hover: hover) and (pointer: fine) {
  .botao:hover { filter: brightness(1.06) saturate(1.05); transform: translateY(-1px); }
  .botao:active { transform: translateY(3px); }
}

/* ---------- enfeites: bokeh, balões, fita, confete e estrelas ---------- */
.enfeites-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.secao-festa { position: relative; isolation: isolate; overflow: clip; background: var(--fundo-festa); color: var(--no-vermelho); }
.festa { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bokeh {
  position: absolute; left: var(--x); top: var(--y); width: var(--t); aspect-ratio: 1;
  border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 140, 140, var(--o)) 0%, rgba(255, 110, 110, calc(var(--o) * 0.35)) 48%, rgba(255, 110, 110, 0) 70%);
}
.balao { display: block; overflow: visible; transform-origin: 50% 85%; filter: drop-shadow(0 14px 16px rgba(50, 0, 6, 0.35)); }
.balao--solto { position: absolute; left: var(--x); top: var(--y); width: var(--w); }
@media (max-width: 63.99em) { .balao--so-desktop { display: none; } }
.cacho { position: absolute; top: 2.5%; right: -3%; width: clamp(170px, 26vw, 440px); aspect-ratio: 1 / 1.3; }
.cacho .balao { position: absolute; left: var(--x); top: var(--y); width: var(--w); }
.cetim { position: absolute; top: 2%; right: 13%; width: clamp(130px, 18vw, 320px); transform: rotate(4deg); filter: drop-shadow(0 10px 12px rgba(50, 0, 6, 0.3)); }
.chuva { position: absolute; inset: 0; overflow: hidden; }
.confete {
  position: absolute; left: var(--x); top: var(--y);
  width: 0.5rem; height: 0.95rem; border-radius: 2px;
  background: var(--ouro-metal);
  transform: rotate(var(--g)) scale(var(--s));
}
.confete--serpentina { width: 2.5rem; height: 1.25rem; background: none; border-radius: 0; overflow: visible; }
.estrela { position: absolute; left: var(--x); top: var(--y); width: var(--w); filter: drop-shadow(0 4px 6px rgba(60, 0, 6, 0.35)); }

/* ---------- topo: barra branca fixa, com a faixa vermelha e dourada embaixo ---------- */
.topo {
  --foco: var(--vermelho);
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.5rem);
  padding: 0.65rem var(--margem);
  background: rgba(255, 255, 255, 0.97); color: var(--tinta);
  transition: box-shadow var(--t-ui) ease, padding var(--t-ui) var(--ease-out);
}
.topo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; pointer-events: none;
  background: linear-gradient(90deg, var(--vermelho) 0%, var(--ouro) 30%, #ffe596 50%, var(--ouro) 70%, var(--vermelho) 100%);
}
.topo--rolado { box-shadow: 0 10px 26px rgba(60, 0, 6, 0.22); padding-block: 0.4rem; }
.topo__marca { display: flex; align-items: center; margin-right: auto; text-decoration: none; }
.topo__logo { width: clamp(8.5rem, 7rem + 4vw, 11.5rem); transition: width var(--t-ui) var(--ease-out); }
.topo--rolado .topo__logo { width: clamp(8rem, 6.5rem + 3.4vw, 10rem); }
.topo__nav { display: none; gap: clamp(0.4rem, 1.4vw, 1.4rem); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
/* sublinhado que cresce no hover e marca a seção que está na tela */
.topo__nav a { position: relative; padding: 0.55rem 0.25rem; text-decoration: none; transition: color var(--t-hover) ease; }
.topo__nav a::after {
  content: ""; position: absolute; left: 0.25rem; right: 0.25rem; bottom: 0.15rem; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--vermelho), var(--ouro));
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease-out);
}
.topo__nav a[aria-current="true"] { color: var(--vermelho); }
.topo__nav a[aria-current="true"]::after { transform: scaleX(1); }
.topo__acoes { display: flex; align-items: center; gap: 0.6rem; }
.topo__numeros {
  display: none; align-items: center; min-height: 2.6rem; padding: 0 1rem;
  border: 2px solid var(--vermelho); border-radius: 0.6rem; color: var(--vermelho);
  font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.topo__cadastrar { display: none; min-height: 2.6rem; padding: 0 1.1rem; font-size: 0.8125rem; box-shadow: 0 3px 0 var(--ouro-escuro), inset 0 2px 0 rgba(255, 255, 255, 0.6); }
@media (hover: hover) and (pointer: fine) {
  .topo__nav a:hover { color: var(--vermelho); }
  .topo__nav a:hover::after { transform: scaleX(1); }
  .topo__numeros:hover { background: var(--vermelho); color: var(--branco); }
}

.menu summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.9rem;
  border: 2px solid var(--vermelho); border-radius: 0.6rem; color: var(--vermelho);
  font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
}
.menu[open] summary { background: var(--vermelho); color: var(--branco); }
.menu summary::-webkit-details-marker { display: none; }
.menu__fechar, .menu[open] .menu__abrir { display: none; }
.menu[open] .menu__fechar { display: inline; }
.menu__folha {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; padding: 0.75rem var(--margem) 1.75rem;
  background: var(--vermelho-escuro); color: var(--no-vermelho); box-shadow: 0 20px 30px rgba(40, 0, 5, 0.35);
  font-size: var(--passo-destaque); font-weight: 800; text-transform: uppercase;
  --foco: var(--ouro);
}
.menu__folha a, .menu__folha button { display: block; padding: 0.6rem 0; text-align: left; text-decoration: none; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu__folha { animation: folha var(--t-ui) var(--ease-out); }
}
@keyframes folha { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 64em) {
  .topo__nav, .topo__numeros, .topo__cadastrar { display: flex; }
  .menu { display: none; }
}
@media (min-width: 64em) and (max-width: 79.99em) {
  .topo__numeros { display: none; }
}

/* ---------- abertura: o KV em HTML ---------- */
.abertura {
  position: relative; isolation: isolate; overflow: clip;
  padding: clamp(1.5rem, 4.5vh, 3rem) var(--margem) 0;
  background: var(--fundo-festa); color: var(--no-vermelho);
}
.abertura__palco {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr);
  justify-items: center; text-align: center;
  gap: clamp(0.75rem, 2.2vh, 1.5rem); max-width: 96rem; margin-inline: auto;
}
.letreiro { order: 1; position: relative; display: grid; justify-items: center; }
.garagem { order: 2; }
.abertura__chamada { order: 3; display: grid; justify-items: center; gap: 0.9rem; }

/* letreiro "Fim de Ano em Festa": dourado em relevo e o "em Festa" em script, como na arte */
.letreiro__titulo { display: grid; justify-items: center; margin: 0; font-weight: 900; line-height: 1; }
.letreiro__fim {
  display: block; padding: 0.05em 0.08em;
  font-size: var(--tam-fim, 14.2vw); line-height: 0.95; letter-spacing: -0.03em;
  text-transform: uppercase; white-space: nowrap;
  background: var(--ouro-texto); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  /* sem text-stroke: ele contorna cada letra e aparece por dentro onde as letras se encostam */
  filter: drop-shadow(0 -1px 0 rgba(255, 246, 205, 0.7)) var(--relevo);
  transform: rotate(-3deg);
}
.letreiro__festa {
  display: block; margin-top: -0.16em; padding: 0.12em 0.22em 0.16em;
  font-family: var(--fonte-festa); font-weight: 400; font-size: var(--tam-festa, 16vw); line-height: 1.12; white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 0%, #fbf3ec 55%, #e6d3c7 100%); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  /* a borda dourada é feita de sombras em volta da palavra inteira, então as emendas do script ficam limpas */
  filter: drop-shadow(1.5px 0 0 #f2b23a) drop-shadow(-1.5px 0 0 #f2b23a) drop-shadow(0 1.5px 0 #f2b23a) drop-shadow(0 -1.5px 0 #f2b23a)
    drop-shadow(0 2px 0 #c2141f) drop-shadow(0 2px 0 #9e0f18) drop-shadow(0 3px 0 #7a0a11) drop-shadow(0 10px 14px rgba(40, 0, 5, 0.45));
  transform: rotate(-5deg);
}
.letreiro__estrela { z-index: -1; }

/* chamada da esquerda do KV */
.abertura__grito {
  font-weight: 900; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.015em;
  text-shadow: 0 3px 0 rgba(80, 0, 8, 0.45);
}
.abertura__grito span { display: block; }
.abertura__grito span:first-child { font-size: 7.4vw; }
.abertura__grito span:last-child { font-size: 9.8vw; }
.abertura__slogan {
  max-width: 30ch; font-weight: 800; text-transform: uppercase;
  font-size: clamp(0.875rem, 0.8rem + 0.5vw, 1.25rem); line-height: 1.25;
  text-shadow: 0 2px 0 rgba(80, 0, 8, 0.35);
}

/* selos "10 motos" e "1 BYD" com lâmpadas de letreiro na borda */
.selos { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; }
.selo {
  position: relative; display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem 0.55rem 0.8rem; border-radius: 1rem;
  background: linear-gradient(180deg, #ef2a35 0%, #b3141e 55%, #8a0c15 100%);
  border: 3px solid #f6c04a;
  box-shadow: 0 0 0 3px var(--vermelho-escuro), 0 0 24px rgba(255, 196, 70, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.25);
}
.selo::before {
  content: ""; position: absolute; inset: 4px; border-radius: 0.7rem; pointer-events: none;
  border: 3px dotted #fff4c9;
  filter: drop-shadow(0 0 2px #ffd25a) drop-shadow(0 0 4px #ffb02e);
}
.selo__num {
  font-weight: 900; font-size: clamp(2.5rem, 1.6rem + 2.4vw, 3.9rem); line-height: 0.82; letter-spacing: -0.05em;
  background: var(--ouro-texto); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #8a0b13) drop-shadow(0 0 10px rgba(255, 200, 80, 0.55));
}
.selo__txt { font-weight: 900; text-transform: uppercase; font-size: clamp(0.8125rem, 0.65rem + 0.45vw, 1.125rem); line-height: 1; text-align: left; }

/* o BYD no centro e as dez Pop em leque; as da esquerda espelhadas, olhando para fora */
/* cinco Pop em leque à esquerda, olhando para o BYD à direita; a mais perto do carro fica na frente */
.garagem { position: relative; width: 112%; margin-inline: -6%; aspect-ratio: 100 / 33; pointer-events: none; }
.garagem img { position: absolute; bottom: var(--b, 0%); left: var(--l); width: var(--w); height: auto; filter: drop-shadow(0 10px 8px rgba(40, 0, 5, 0.42)); }
.garagem__carro { --l: 41%; --w: 59%; z-index: 20; filter: drop-shadow(0 18px 16px rgba(40, 0, 5, 0.5)); }
.garagem__moto { --de: -48px; }

.garagem__moto--2 { --l: 21.5%; --w: 22%; --b: 4%; --n: 3; z-index: 14; }
.garagem__moto--3 { --l: 14.5%; --w: 21%; --b: 6%; --n: 2; z-index: 13; }
.garagem__moto--4 { --l: 7.5%; --w: 20%; --b: 8%; --n: 1; z-index: 12; }
.garagem__moto--5 { --l: 1%; --w: 19%; --b: 10%; --n: 0; z-index: 11; }
@media (min-width: 64em) {
  .garagem { aspect-ratio: 100 / 27; }
  .garagem__carro { --l: 47%; --w: 48%; }

  .garagem__moto--2 { --l: 27.5%; --w: 18.4%; --b: 3.5%; }
  .garagem__moto--3 { --l: 19%; --w: 17.8%; --b: 5%; }
  .garagem__moto--4 { --l: 10.5%; --w: 17.2%; --b: 6.5%; }
  .garagem__moto--5 { --l: 2%; --w: 16.6%; --b: 8%; }
}

/* faixa com o botão, a regra e as datas */
.abertura__faixa {
  position: relative; z-index: 2;
  display: grid; justify-items: center; gap: 1rem;
  max-width: 96rem; margin: clamp(0.75rem, 2.5vh, 1.5rem) auto 0; text-align: center;
}
.abertura__regra { max-width: 34ch; font-weight: 600; line-height: 1.35; }
.abertura__regra strong { color: var(--ouro-claro); font-weight: 900; }
.abertura__datas { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1.25rem; }
.abertura__datas dt { font-size: var(--passo-pequeno); font-weight: 600; color: var(--no-vermelho-suave); }
.abertura__datas dd { font-size: var(--passo-destaque); font-weight: 900; line-height: 1.15; text-wrap: balance; }

@media (min-width: 48em) {
  .letreiro { --tam-fim: 11.5vw; --tam-festa: 13vw; }
  .abertura__grito span:first-child { font-size: 5vw; }
  .abertura__grito span:last-child { font-size: 6.6vw; }
  .garagem { width: 96%; margin-inline: 2%; }
}
@media (min-width: 64em) {
  .abertura__palco {
    grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--vao);
    justify-items: stretch; align-items: start; text-align: left;
  }
  /* chamada e letreiro medem a própria coluna (container queries), então um nunca invade o outro */
  .abertura__chamada { grid-column: 1 / 5; grid-row: 1; order: 0; justify-items: start; padding-top: 1.25rem; z-index: 3; container-type: inline-size; }
  .abertura .letreiro { grid-column: 5 / 11; grid-row: 1; order: 0; justify-self: stretch; z-index: 3; container-type: inline-size; --tam-fim: min(14.6cqi, 7.5rem); --tam-festa: min(17cqi, 8.6rem); }
  .abertura__grito span:first-child { font-size: min(8.2cqi, 3.1rem); }
  .abertura__grito span:last-child { font-size: min(10.6cqi, 4rem); }
  .selos { justify-content: flex-start; }
  /* em telas baixas (notebooks) o leque encolhe para o botão continuar na primeira tela */
  .garagem { grid-column: 1 / -1; grid-row: 2; order: 0; justify-self: center; width: min(100%, calc((100svh - 29rem) * 3.7)); margin: -2.5vw 0 0; }
  .abertura__faixa {
    grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; justify-items: start; gap: 2rem; text-align: left;
    padding: 1rem 1.25rem; border: 1px solid var(--linha-ouro); border-radius: 1.1rem;
    background: rgba(70, 4, 10, 0.42); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  .abertura__regra { max-width: 46ch; }
  /* as duas datas empilhadas: a faixa fica baixa e o leque de prêmios ganha altura */
  .abertura__datas { grid-template-columns: auto; gap: 0.4rem; justify-self: end; text-align: right; }
  .abertura__datas div { display: flex; align-items: baseline; justify-content: flex-end; gap: 0.6rem; }
  .abertura__datas dd { font-size: clamp(1.0625rem, 0.9rem + 0.4vw, 1.3125rem); }
}

/* régua de marcas, como na base do KV */
.regua { margin: clamp(1.5rem, 4vh, 2.5rem) calc(var(--margem) * -1) 0; padding-bottom: clamp(1rem, 3vh, 2rem); overflow: hidden; }
.regua__faixa { display: flex; width: max-content; }
.regua__trilho { display: flex; gap: 0.5rem; padding-right: 0.5rem; }
.regua__marca { flex: none; width: 3.25rem; aspect-ratio: 1; border-radius: 14%; overflow: hidden; background: var(--branco); box-shadow: 0 4px 10px rgba(50, 0, 6, 0.3); }
.regua__marca img { width: 100%; height: 100%; }
.regua__nome {
  display: grid; place-items: center; width: 100%; height: 100%;
  color: var(--vermelho); font-weight: 900; font-size: 0.85rem; letter-spacing: -0.02em;
}
.regua__faixa:first-child .regua__trilho:first-child { padding-left: var(--margem); }
@media (prefers-reduced-motion: no-preference) {
  .regua__faixa { animation: regua 80s linear infinite; }
  .regua:hover .regua__faixa, .regua:focus-within .regua__faixa { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .regua { overflow-x: auto; }
  .regua__trilho--eco { display: none; }
}
@keyframes regua { to { transform: translateX(-50%); } }
@media (min-width: 64em) {
  .regua { max-width: 96rem; margin-inline: auto; overflow: visible; }
  .regua__faixa { width: auto; animation: none; }
  .regua__trilho { display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); gap: 0.5rem; width: 100%; padding: 0; }
  .regua__faixa:first-child .regua__trilho:first-child { padding-left: 0; }
  .regua__marca { width: auto; }
  .regua__trilho--eco { display: none; }
  .regua__nome { font-size: clamp(0.8125rem, 0.4rem + 0.6vw, 1rem); }
}

/* ---------- prêmios: dois objetos, dois campos ---------- */
.premios { display: grid; --foco: var(--vermelho); }
/* as fotos ficam no fluxo: são cortadas pelas bordas do painel, nunca por cima do texto */
.premio {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: var(--margem) var(--margem) calc(var(--margem) * 1.5);
}
.premio--carro { background: var(--branco); }
.premio--motos { background: var(--ouro); }
.premios__titulo { font-size: var(--passo-titulo); font-weight: 900; line-height: 0.98; letter-spacing: -0.01em; text-transform: uppercase; max-width: 7em; color: var(--vermelho); }
.premio__foto { flex: none; pointer-events: none; }
.premio__foto img { width: 100%; }
.premio--carro .premio__foto { width: 135%; margin: 0 -45% 0 auto; }
.premio--motos .premio__foto { width: 135%; margin: calc(var(--margem) * -1 - 14%) 0 0 -14%; }
.premio__base { margin-top: auto; display: grid; gap: 0.4rem; max-width: 34rem; }
.premio__nome { font-size: var(--passo-destaque); font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; }
.premio__fato { max-width: 38ch; }
@media (min-width: 48em) {
  .premio { min-height: 72svh; }
  .premio--carro .premio__foto { width: 105%; margin-right: -22%; }
  .premio--motos .premio__foto { width: 100%; margin-top: calc(var(--margem) * -1 - 9%); margin-left: auto; margin-right: 0; }
}
@media (min-width: 64em) {
  .premios { grid-template-columns: 1fr 1fr; }
  .premio { min-height: 88svh; }
  .premio--carro .premio__foto { width: 128%; margin-right: -40%; }
  .premio--motos .premio__foto { width: 128%; margin: calc(var(--margem) * -1 - 16%) 0 0 -12%; }
}

/* ---------- como participar: o cupom ---------- */
.passos { display: grid; gap: clamp(2.5rem, 6vw, 4rem); padding: var(--secao) var(--margem); }
.passos__texto { display: grid; gap: 1.5rem; align-content: start; justify-items: start; }
.passos__apoio { font-size: var(--passo-destaque); font-weight: 600; line-height: 1.4; max-width: 30ch; }

/* os três passos: ícone numa moeda dourada, ligados por um pontilhado */
.etapas { display: grid; gap: 1.5rem; width: 100%; max-width: 34rem; margin-block: 0.25rem 0.75rem; counter-reset: etapa; }
.etapa { position: relative; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); column-gap: 1.1rem; align-items: start; }
.etapa:not(:last-child)::before {
  content: ""; position: absolute; left: calc(1.625rem - 1.5px); top: 3.9rem; bottom: -1.1rem;
  border-left: 3px dotted rgba(255, 210, 120, 0.6);
}
.etapa__icone {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--ouro-metal); color: var(--vermelho-escuro);
  box-shadow: 0 3px 0 var(--ouro-escuro), 0 10px 18px rgba(40, 0, 5, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.65);
}
.etapa__icone svg { width: 1.5rem; height: 1.5rem; }
.etapa__texto { display: grid; gap: 0.3rem; padding-top: 0.2rem; }
.etapa__titulo { font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem); font-weight: 900; line-height: 1.2; text-transform: uppercase; }
.etapa__titulo::before { counter-increment: etapa; content: counter(etapa) ". "; color: var(--ouro-claro); }
.etapa p { max-width: 42ch; font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1.0625rem); line-height: 1.5; color: var(--no-vermelho-suave); }
.etapa .texto-link { color: var(--ouro-claro); }

.cupom-saida { width: min(100%, 30rem); justify-self: center; filter: drop-shadow(0 22px 26px rgba(40, 0, 5, 0.4)); }
.cupom {
  padding: 1.75rem clamp(1.1rem, 4vw, 1.75rem) 2.75rem;
  background: var(--papel); color: var(--tinta);
  font-size: var(--passo-texto); line-height: 1.4;
  clip-path: var(--serrilha);
}
.cupom__cabeca { display: grid; justify-items: center; text-align: center; gap: 0.1rem; padding-bottom: 0.5rem; }
.cupom__cabeca strong { font-weight: 900; text-transform: uppercase; letter-spacing: 0.01em; }
.cupom__grupo { margin-top: 1.75rem; margin-bottom: 0.5rem; font-size: var(--passo-texto); font-weight: 900; text-transform: uppercase; }
.cupom__linhas { display: grid; gap: 0.45rem; }
.cupom__linha { display: flex; align-items: baseline; gap: 0.5rem; }
.cupom__linha dt { flex: 0 1 auto; }
.cupom__linha::after {
  content: ""; order: 1; flex: 1 1 1.5rem; min-width: 1.5rem;
  border-bottom: 4px dotted rgba(42, 10, 14, 0.28);
  transform: translateY(-0.3em);
}
.cupom__linha dd { order: 2; flex: none; font-weight: 800; text-align: right; }
.cupom__total {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 2.75rem; margin: 1.75rem calc(clamp(1.1rem, 4vw, 1.75rem) * -1) 0; padding: 0.5rem clamp(1.1rem, 4vw, 1.75rem);
  background: var(--vermelho); color: var(--branco);
  font-size: clamp(0.8125rem, 0.72rem + 0.45vw, 1.0625rem); font-weight: 900; text-transform: uppercase; white-space: nowrap;
}
@media (min-width: 64em) {
  .passos { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--vao); }
  .passos__texto { grid-column: 1 / 6; }
  .cupom-saida { grid-column: 7 / 12; justify-self: start; }
}

/* ---------- cadastro: o bilhete ---------- */
.cadastro {
  --foco: var(--vermelho);
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  padding: var(--secao) var(--margem);
  background: var(--branco);
}
.cadastro__cabeca { display: grid; gap: 1rem; }
.cadastro__cabeca .titulo { color: var(--vermelho); }
.cadastro__cabeca p { font-size: var(--passo-destaque); font-weight: 600; line-height: 1.4; max-width: 36ch; }

.bilhete {
  --foco: var(--ouro);
  --respiro: clamp(1.5rem, 3.5vw, 2.75rem);
  position: relative; display: grid;
  grid-template-areas: "dados" "nota" "envio";
  background: var(--fundo-festa); color: var(--no-vermelho);
  border-radius: 1.25rem;
  box-shadow: 0 0 0 3px var(--ouro), 0 24px 50px rgba(120, 10, 20, 0.28);
}
.bilhete__parte { position: relative; min-width: 0; border: 0; padding: var(--respiro); display: grid; gap: 1.1rem; align-content: start; }
.bilhete__parte--dados { grid-area: dados; }
.bilhete__parte--nota { grid-area: nota; }
.bilhete__legenda { float: left; width: 100%; padding: 0; margin-bottom: 0.25rem; font-size: var(--passo-destaque); font-weight: 900; text-transform: uppercase; }
.bilhete__legenda + * { clear: both; }
/* picote entre "Seus dados" e "Sua nota", com os recortes nas bordas */
.bilhete__parte--nota { border-top: 5px dotted var(--ouro-claro); }
.bilhete__parte--nota::before, .bilhete__parte--nota::after,
.bilhete__envio::after {
  content: ""; position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--branco);
}
.bilhete__parte--nota::before { top: -16.5px; left: -14px; }
.bilhete__parte--nota::after { top: -16.5px; right: -14px; }
.bilhete__envio::after { display: none; }
.bilhete__envio { grid-area: envio; position: relative; display: grid; gap: 1rem; padding: 0 var(--respiro) var(--respiro); }
.bilhete__ajuda { justify-self: start; font-weight: 700; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
.bilhete__status:empty { display: none; }

@media (min-width: 64em) {
  .cadastro { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--vao); }
  .cadastro__cabeca { grid-column: 2 / 12; }
  .bilhete {
    grid-column: 2 / 12;
    grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr;
    grid-template-areas: "dados nota" "dados envio";
  }
  .bilhete__parte--nota, .bilhete__envio { border-top: 0; border-left: 5px dotted var(--ouro-claro); }
  .bilhete__parte--nota::before { top: -14px; left: -16.5px; }
  .bilhete__parte--nota::after { display: none; }
  .bilhete__envio { align-content: end; }
  .bilhete__envio::after { display: block; bottom: -14px; left: -16.5px; }
}

.campo { display: grid; gap: 0.4rem; }
.campo__rotulo { font-weight: 700; }
.campo__entrada {
  width: 100%; min-height: 3.25rem; padding: 0.75rem 0.9rem;
  border: 0; border-radius: 0.6rem; background: var(--branco); color: var(--tinta);
  font-size: max(1rem, var(--passo-texto)); font-weight: 500;
  box-shadow: inset 0 2px 0 rgba(42, 10, 14, 0.08);
}
.campo__entrada::placeholder { color: #8d7477; }
/* a chave inteira à vista, quebrando em blocos como no cupom */
.campo__entrada--chave { display: block; resize: none; line-height: 1.45; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
@media (min-width: 64em) { .campo__entrada--chave { height: calc(2 * 1.45em + 1.5rem); } }
.campo__entrada[aria-invalid="true"] { outline: 3px solid var(--ouro); outline-offset: 0; }
.campo__erro {
  padding: 0.45rem 0.7rem; border-radius: 0.5rem; background: var(--vermelho-noite); color: var(--branco);
  font-size: var(--passo-pequeno); font-weight: 700; line-height: 1.4;
}
.busca .campo__erro { background: var(--vermelho); }

/* leitura da chave: a nota se apresenta enquanto é digitada */
.leitura { display: grid; gap: 0.35rem; line-height: 1.4; }
.leitura__conta { font-weight: 900; font-variant-numeric: tabular-nums; }
.leitura__dica { color: var(--no-vermelho-suave); max-width: 40ch; }
.leitura__nota { display: grid; gap: 0.3rem; padding: 0.9rem 1rem; border-radius: 0.6rem; background: var(--branco); color: var(--tinta); }
.leitura__nota dl { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; }
.leitura__nota dt { color: var(--tinta-suave); }
.leitura__nota dd { font-weight: 700; }
.leitura__estado { font-weight: 900; text-transform: uppercase; color: var(--vermelho); }
.leitura__aviso { padding: 0.75rem 1rem; border-radius: 0.6rem; background: var(--ouro); color: var(--tinta); font-weight: 700; }
.leitura__problema { padding: 0.75rem 1rem; border-radius: 0.6rem; background: var(--vermelho-noite); color: var(--branco); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .leitura__nota, .leitura__aviso, .leitura__problema { animation: imprime 420ms var(--ease-out); transform-origin: top; }
}
@keyframes imprime { from { opacity: 0; transform: translateY(-8px); } }

.aceite { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; line-height: 1.4; }
.aceite input { width: 1.375rem; height: 1.375rem; margin: 0.05rem 0 0; accent-color: var(--ouro); }
.aceite__link { color: inherit; }

.status { padding: 1rem 1.1rem; border-radius: 0.75rem; font-weight: 700; line-height: 1.4; }
.status--ok { background: var(--branco); color: var(--tinta); }
.status--ok strong { display: block; font-size: var(--passo-destaque); font-weight: 900; text-transform: uppercase; color: var(--vermelho); }
.status--erro, .status--enviando { background: var(--vermelho-noite); color: var(--branco); }

.encerrado { display: grid; gap: 1.5rem; justify-items: start; font-size: var(--passo-destaque); max-width: 36ch; }

/* ---------- o sorteio: dourado, com os números e a contagem ---------- */
.sorteio {
  position: relative; isolation: isolate; overflow: clip;
  display: grid; gap: 2.5rem;
  padding: var(--secao) var(--margem);
  background: linear-gradient(180deg, #ffd768 0%, #f6b12c 45%, #e6951b 100%); color: var(--tinta);
}
.sorteio .confete { background: linear-gradient(180deg, #ff5a5f 0%, #b3141e 100%); }
.sorteio .confete:nth-child(3n) { background: var(--branco); }
/* o confete parado fica nas bordas, longe da frase */
.sorteio .chuva { -webkit-mask-image: linear-gradient(90deg, #000 0 9%, transparent 22% 78%, #000 91%); mask-image: linear-gradient(90deg, #000 0 9%, transparent 22% 78%, #000 91%); }
.sorteio__frase { max-width: 40ch; font-size: var(--passo-frase); font-weight: 600; line-height: 1.25; color: rgba(42, 10, 14, 0.82); }
.sorteio__frase strong { font-weight: 900; color: var(--vermelho-escuro); }
.sorteio__contagem { display: grid; justify-items: start; }
.sorteio__numero {
  display: inline-block; padding: 0 0.04em;
  font-size: var(--passo-cartaz); font-weight: 900; line-height: 0.85; letter-spacing: -0.05em;
  background: linear-gradient(180deg, #ff4d55 0%, #c3141f 55%, #7e0c14 100%); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 #5c070d) drop-shadow(0 12px 14px rgba(110, 50, 0, 0.35));
}
.sorteio__rotulo { font-size: var(--passo-destaque); font-weight: 900; text-transform: uppercase; color: var(--vermelho-escuro); }
@media (min-width: 64em) {
  .sorteio { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--vao); align-items: end; }
  .sorteio__frase { grid-column: 1 / 8; }
  .sorteio__contagem { grid-column: 9 / 13; justify-items: end; text-align: right; }
}

/* ---------- marcas: em dobro ---------- */
.marcas { display: grid; gap: clamp(2rem, 5vw, 3.5rem); padding: var(--secao) var(--margem); }
.marcas__cabeca { display: grid; gap: 1.5rem; justify-items: center; text-align: center; }
.marcas__textos { display: grid; gap: 1rem; justify-items: center; }
.marcas__dobro {
  position: relative; display: grid; place-items: center;
  width: clamp(6.5rem, 5rem + 6vw, 10rem); aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(180deg, #ef2a35 0%, #a80f19 100%);
  border: 4px solid #f6c04a;
  box-shadow: 0 0 0 4px var(--vermelho-escuro), 0 0 30px rgba(255, 196, 70, 0.5);
  transform: rotate(-8deg);
}
.marcas__dobro::before {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; pointer-events: none;
  border: 3px dotted #fff4c9; filter: drop-shadow(0 0 3px #ffd25a);
}
.marcas__dobro span {
  font-weight: 900; font-size: clamp(2.5rem, 1.9rem + 3vw, 4.5rem); line-height: 1; letter-spacing: -0.04em;
  background: var(--ouro-texto); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; filter: var(--relevo);
}
.marcas__apoio { max-width: 40ch; font-size: var(--passo-destaque); font-weight: 600; line-height: 1.4; }
.marcas__grade { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5rem; width: 100%; max-width: 76rem; margin-inline: auto; }
.marcas__item {
  aspect-ratio: 1; border-radius: 14%; overflow: hidden; background: var(--branco);
  box-shadow: 0 6px 14px rgba(50, 0, 6, 0.32);
  transition: transform var(--t-hover) var(--ease-out);
}
.marcas__item img { width: 100%; height: 100%; }
.marcas__nomes { max-width: 62ch; margin-inline: auto; text-align: center; font-size: var(--passo-pequeno); color: var(--no-vermelho-suave); }
@media (hover: hover) and (pointer: fine) {
  .marcas__item:hover { transform: translateY(-3px) rotate(-2deg); }
}
@media (min-width: 48em) {
  .marcas__grade { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0.65rem; }
}
@media (min-width: 64em) {
  .marcas__cabeca { grid-template-columns: auto 1fr; align-items: center; justify-items: start; column-gap: 2.5rem; text-align: left; width: 100%; max-width: 76rem; margin-inline: auto; }
  .marcas__textos { justify-items: start; }
  .marcas__grade { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0.75rem; }
}

/* ---------- lojas e datas: cartões por loja e o calendário em linha do tempo ---------- */
.lojas {
  --foco: var(--vermelho);
  position: relative; isolation: isolate; overflow: clip;
  display: grid; gap: clamp(2.5rem, 5vw, 4rem);
  padding: var(--secao) var(--margem);
  background: linear-gradient(180deg, #ffffff 0%, #fbf4f1 100%);
}
.lojas .chuva { -webkit-mask-image: linear-gradient(90deg, #000 0 7%, transparent 18% 82%, #000 93%); mask-image: linear-gradient(90deg, #000 0 7%, transparent 18% 82%, #000 93%); }
.lojas .confete { background: linear-gradient(180deg, #ff5a5f 0%, #b3141e 100%); }
.lojas .confete:nth-child(3n) { background: var(--ouro-metal); }
.lojas__cabeca { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.lojas__cabeca .titulo { color: var(--tinta); }
.lojas__cabeca p { max-width: 46ch; font-size: var(--passo-destaque); font-weight: 600; line-height: 1.4; }

.lojas__cartoes { display: grid; gap: 1.25rem; width: 100%; max-width: 76rem; margin-inline: auto; }
.loja {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  border-radius: 1.25rem; background: var(--branco);
  box-shadow: 0 0 0 2px rgba(246, 177, 44, 0.55), 0 18px 36px rgba(120, 10, 20, 0.14);
  transition: transform var(--t-ui) var(--ease-out), box-shadow var(--t-ui) ease;
}
.loja__topo {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1.1rem 1.25rem; background: var(--fundo-festa); color: var(--branco);
}
.loja__pino {
  flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--ouro-metal); color: var(--vermelho-escuro);
  box-shadow: 0 3px 0 var(--ouro-escuro), inset 0 2px 0 rgba(255, 255, 255, 0.6);
}
.loja__pino svg { width: 1.4rem; height: 1.4rem; }
.loja__nome { font-size: var(--passo-destaque); font-weight: 900; line-height: 1.15; text-transform: uppercase; }
.loja__corpo { display: grid; gap: 0.9rem; align-content: start; padding: 1.25rem; }
.loja__selo {
  justify-self: start; padding: 0.3rem 0.7rem; border-radius: 999px;
  background: #133d93; color: var(--branco); font-size: var(--passo-pequeno); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
}
.loja__endereco { color: var(--tinta-suave); line-height: 1.5; }
.loja__mapa {
  justify-self: start; display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 2.75rem; margin-top: auto; padding: 0 1.1rem; border-radius: 0.7rem;
  border: 2px solid var(--vermelho); color: var(--vermelho);
  font-size: 0.875rem; font-weight: 900; text-transform: uppercase; text-decoration: none;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .loja:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--ouro), 0 24px 44px rgba(120, 10, 20, 0.2); }
  .loja__mapa:hover { background: var(--vermelho); color: var(--branco); }
}

/* calendário: três marcos ligados por uma linha pontilhada dourada */
.agenda { display: grid; gap: 1.25rem; width: 100%; max-width: 76rem; margin-inline: auto; }
.agenda__titulo { text-align: center; font-size: var(--passo-pequeno); font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--vermelho); }
.agenda .agenda__linha { position: relative; display: grid; gap: 1.5rem; padding-left: 2.25rem; }
.agenda__linha::before { content: ""; position: absolute; left: 0.7rem; top: 0.6rem; bottom: 0.6rem; border-left: 4px dotted var(--ouro); }
.agenda__item { position: relative; display: grid; gap: 0.15rem; }
.agenda__item::before {
  content: ""; position: absolute; left: -2.25rem; top: 0.15rem; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--branco); border: 4px solid var(--vermelho); box-shadow: 0 0 0 4px rgba(246, 177, 44, 0.35);
}
.agenda__data { font-size: var(--passo-destaque); font-weight: 900; color: var(--tinta); }
.agenda__texto { color: var(--tinta-suave); font-weight: 600; }
.agenda__item--final::before { background: var(--ouro-metal); border-color: var(--vermelho); }
.agenda__item--final .agenda__data { color: var(--vermelho); }

@media (min-width: 48em) {
  .lojas__cartoes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agenda .agenda__linha { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 2.75rem 0 0; text-align: center; }
  .agenda__linha::before { left: 16.6%; right: 16.6%; top: 0.85rem; bottom: auto; border-left: 0; border-top: 4px dotted var(--ouro); }
  .agenda__item { justify-items: center; }
  .agenda__item::before { left: 50%; top: -2.75rem; transform: translateX(-50%); }
}

/* ---------- dúvidas ---------- */
.duvidas { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); padding: var(--secao) var(--margem); background: var(--fundo-noite); }
.duvidas__cabeca { display: grid; gap: 1rem; align-content: start; justify-items: start; }
.duvidas__titulo { font-size: var(--passo-titulo); }
.duvidas__apoio { max-width: 26ch; font-weight: 600; color: var(--no-vermelho-suave); }
.duvidas__contato {
  display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.45rem 1.25rem 0.45rem 0.45rem;
  border: 1px solid var(--linha-ouro); border-radius: 999px; background: rgba(60, 4, 9, 0.35);
  text-decoration: none; transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease;
}
.duvidas__contato svg { width: 2.5rem; height: 2.5rem; padding: 0.5rem; border-radius: 50%; background: var(--whatsapp); color: var(--branco); }
.duvidas__contato span { display: grid; font-size: 0.9375rem; font-weight: 700; line-height: 1.25; }
.duvidas__contato strong { font-size: var(--passo-pequeno); font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ouro-claro); }
@media (hover: hover) and (pointer: fine) {
  .duvidas__contato:hover { background: rgba(60, 4, 9, 0.6); border-color: rgba(255, 210, 120, 0.8); }
}
.duvidas__lista { display: grid; gap: 0.5rem; }
.pergunta {
  padding: 0.75rem 1rem; border-radius: 0.8rem;
  border: 1px solid var(--linha-ouro); background: rgba(60, 4, 9, 0.35);
  transition: background-color var(--t-ui) ease, border-color var(--t-ui) ease;
}
.pergunta[open] { background: rgba(60, 4, 9, 0.6); border-color: rgba(255, 210, 120, 0.8); }
.pergunta summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-size: clamp(0.96875rem, 0.93rem + 0.18vw, 1.0625rem); font-weight: 800; line-height: 1.3;
}
.pergunta summary::-webkit-details-marker { display: none; }
.pergunta summary::after {
  content: ""; flex: none; width: 0.55em; height: 0.55em; margin-right: 0.2em;
  border-right: 3px solid var(--ouro-claro); border-bottom: 3px solid var(--ouro-claro);
  transform: translateY(-0.2em) rotate(45deg);
  transition: transform var(--t-ui) var(--ease-out);
}
.pergunta[open] summary::after { transform: translateY(0.1em) rotate(225deg); }
.pergunta__resposta { padding: 0.5rem 0 0.1rem; }
.pergunta__resposta p { max-width: 62ch; font-size: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem); line-height: 1.55; color: var(--no-vermelho-suave); }
.pergunta__resposta a, .pergunta__resposta .texto-link { color: var(--ouro-claro); }
@media (min-width: 64em) {
  .duvidas { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--vao); }
  /* desce o bastante para não passar por baixo do topo fixo */
  .duvidas__cabeca { grid-column: 1 / 5; align-self: start; position: sticky; top: 6.5rem; }
  .duvidas__lista { grid-column: 5 / 12; }
}

/* ---------- corrida: a seção azul da prova, com a moto saindo da arte ---------- */
.corrida {
  --foco: var(--ouro);
  position: relative; isolation: isolate; overflow: clip;
  display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center;
  padding: var(--secao) var(--margem) calc(var(--secao) * 1.1);
  background: radial-gradient(120% 90% at 25% 20%, #2058c4 0%, #133d93 46%, #0a2257 100%);
  color: var(--no-vermelho);
}
.corrida .bokeh { background: radial-gradient(circle, rgba(130, 180, 255, var(--o)) 0%, rgba(120, 170, 255, calc(var(--o) * 0.35)) 48%, rgba(120, 170, 255, 0) 70%); }
.corrida__arte { position: relative; margin-bottom: clamp(3rem, 12vw, 6rem); }
.corrida__poster {
  width: 100%; border-radius: 1.25rem;
  box-shadow: 0 0 0 3px var(--ouro), 0 28px 60px rgba(0, 10, 40, 0.5);
  transform: rotate(-1.5deg);
}
/* a Pop vermelha sai da arte, grande, na frente */
.corrida__moto {
  position: absolute; right: -4%; bottom: -24%; width: 58%;
  filter: drop-shadow(0 22px 22px rgba(0, 8, 30, 0.55));
}
.corrida__selo {
  position: absolute; left: -2%; bottom: -14%;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.1rem 0.6rem 0.85rem; border-radius: 1rem;
  background: linear-gradient(180deg, #ff8a2a 0%, #e8541a 100%);
  border: 3px solid #f6c04a;
  box-shadow: 0 0 0 3px #0a2257, 0 0 26px rgba(255, 170, 60, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.3);
  transform: rotate(-4deg);
}
.corrida__selo::before {
  content: ""; position: absolute; inset: 4px; border-radius: 0.7rem; pointer-events: none;
  border: 3px dotted #fff4c9; filter: drop-shadow(0 0 2px #ffd25a);
}
.corrida__selo-num {
  font-weight: 900; font-size: clamp(2.6rem, 1.8rem + 2.4vw, 4rem); line-height: 0.82; letter-spacing: -0.04em;
  background: var(--ouro-texto); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #8a2a05) drop-shadow(0 0 10px rgba(255, 200, 80, 0.5));
}
.corrida__selo-txt { font-weight: 900; text-transform: uppercase; font-size: clamp(0.8125rem, 0.7rem + 0.4vw, 1.0625rem); line-height: 1.05; color: var(--branco); }
.corrida__texto { position: relative; z-index: 2; display: grid; gap: 1.5rem; justify-items: start; }
.corrida .titulo__menor { font-size: 0.42em; letter-spacing: 0.03em; margin-bottom: 0.35em; color: var(--ouro-claro); }
.corrida__apoio { max-width: 40ch; font-size: var(--passo-destaque); font-weight: 600; line-height: 1.4; }
.corrida__apoio strong { color: var(--ouro-claro); font-weight: 900; }
.corrida__dados { display: grid; gap: 0.75rem; width: 100%; max-width: 32rem; }
.corrida__dado {
  display: grid; gap: 0.15rem; padding: 0.8rem 1rem; border-radius: 0.9rem;
  border: 1px solid rgba(255, 210, 120, 0.4); background: rgba(5, 20, 60, 0.35);
}
.corrida__dado dt { display: flex; align-items: center; gap: 0.5rem; font-size: var(--passo-pequeno); font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ouro-claro); }
.corrida__dado dt svg { width: 1.1rem; height: 1.1rem; }
.corrida__dado dd { font-weight: 700; line-height: 1.35; }
.corrida__acao { display: grid; gap: 0.6rem; justify-items: start; }
.corrida__nota { font-size: var(--passo-pequeno); color: rgba(255, 248, 246, 0.75); }
@media (min-width: 64em) {
  .corrida { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--vao); }
  .corrida__arte { grid-column: 1 / 8; margin-bottom: 4rem; }
  .corrida__texto { grid-column: 8 / 13; }
  .corrida__moto { right: -3%; bottom: -24%; width: 50%; }
}

/* ---------- rodapé ---------- */
.rodape { --foco: var(--ouro); background: var(--vermelho-noite); color: var(--no-vermelho); overflow: clip; }
/* chamada final: o letreiro volta, com os balões e o botão */
.rodape__chamada {
  display: grid; justify-items: center; gap: 1.25rem; text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) var(--margem) clamp(4rem, 8vw, 6rem);
}
.letreiro--fecho { --tam-fim: clamp(2.4rem, 1rem + 5.4vw, 5.5rem); --tam-festa: clamp(2.8rem, 1.2rem + 6.2vw, 6.4rem); margin-bottom: 0.5rem; }
/* o letreiro do fecho não segue a grade do hero */
.rodape__chamada .letreiro { grid-column: auto; grid-row: auto; order: 0; justify-self: center; }
.rodape__frase { font-size: var(--passo-titulo); }
.rodape__apoio { max-width: 44ch; font-size: var(--passo-destaque); font-weight: 600; line-height: 1.4; }

/* base: marca, lojas, contato e campanha em colunas, com o texto legal num quadro */
.rodape__base { display: grid; gap: 2.5rem; max-width: 96rem; margin-inline: auto; padding: clamp(3rem, 6vw, 4.5rem) var(--margem) 2rem; }
.rodape__grade { display: grid; gap: 2.25rem; }
.rodape__col { display: grid; gap: 1rem; align-content: start; }
.rodape__col--marca { justify-items: start; }
.rodape__logo img { width: clamp(9rem, 8rem + 3vw, 11rem); }
.rodape__col--marca p { max-width: 34ch; color: var(--no-vermelho-suave); line-height: 1.5; }
.rodape__titulo { font-size: var(--passo-pequeno); font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ouro-claro); }
.rodape__lista { display: grid; gap: 0.85rem; }
.rodape__lista a, .rodape__lista button { display: flex; align-items: flex-start; gap: 0.75rem; text-align: left; text-decoration: none; }
.rodape__lista svg {
  flex: none; width: 2.25rem; height: 2.25rem; padding: 0.45rem; border-radius: 50%;
  background: rgba(255, 210, 120, 0.14); color: var(--ouro-claro);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.rodape__lista span { display: grid; gap: 0.1rem; font-size: 0.9375rem; line-height: 1.35; color: var(--no-vermelho-suave); }
.rodape__lista strong { font-weight: 800; color: var(--no-vermelho); }
.rodape__lista--simples { gap: 0.55rem; }
.rodape__lista--simples a, .rodape__lista--simples button { font-weight: 700; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .rodape__lista a:hover svg { background: var(--ouro); color: var(--vermelho-noite); }
  .rodape__lista a:hover strong { text-decoration: underline; text-underline-offset: 0.2em; }
  .rodape__lista--simples a:hover, .rodape__lista--simples button:hover { text-decoration-color: var(--ouro-claro); }
}
.rodape__legal {
  padding: 1.1rem 1.25rem; border-radius: 1rem;
  border: 1px solid rgba(255, 210, 120, 0.3); background: rgba(0, 0, 0, 0.18);
  font-size: var(--passo-pequeno); line-height: 1.55; color: rgba(255, 248, 246, 0.72);
}
.rodape__fim { padding: 1.25rem 4.5rem 0 0; border-top: 1px solid rgba(255, 210, 120, 0.2); font-size: var(--passo-pequeno); color: rgba(255, 248, 246, 0.65); }
@media (min-width: 48em) {
  .rodape__grade { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}
@media (min-width: 64em) {
  .rodape__grade { grid-template-columns: 1.25fr 1.2fr 1fr 0.9fr; column-gap: 3rem; }
}

/* ---------- whatsapp ---------- */
.whats {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--whatsapp); color: var(--branco);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transition: transform var(--t-press) var(--ease-out);
}
.whats:active { transform: scale(0.94); }
/* fica fora do caminho enquanto a abertura está na tela */
.js .whats:not(.whats--visivel) { translate: 0 calc(100% + 1.5rem); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .whats { transition: transform var(--t-press) var(--ease-out), translate 420ms var(--ease-out); }
}
@media (hover: hover) and (pointer: fine) { .whats:hover { transform: scale(1.06); } }

/* ---------- janelas ---------- */
.janela {
  --foco: var(--vermelho);
  --respiro-janela: clamp(1.25rem, 3vw, 2rem);
  width: min(100% - 2rem, 34rem); max-height: min(88svh, 52rem);
  padding: var(--respiro-janela); border: 0; border-radius: 1.1rem;
  background: var(--branco); color: var(--tinta);
  box-shadow: 0 0 0 3px var(--ouro), 0 30px 80px rgba(20, 0, 3, 0.45);
  overflow-y: auto; overscroll-behavior: contain;
}
.janela[open] { display: grid; gap: 1.1rem; align-content: start; }
.janela::backdrop { background: rgba(42, 10, 14, 0.66); }
.janela--larga { width: min(100% - 2rem, 56rem); }
/* o título e o "Fechar" ficam à vista enquanto o texto rola */
.janela__topo {
  position: sticky; top: calc(var(--respiro-janela) * -1); z-index: 1;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin: calc(var(--respiro-janela) * -1) calc(var(--respiro-janela) * -1) 0;
  padding: var(--respiro-janela) var(--respiro-janela) 0.5rem;
  background: var(--branco);
}
.janela__titulo { font-size: var(--passo-destaque); font-weight: 900; line-height: 1.15; text-transform: uppercase; color: var(--vermelho); }
.janela__fechar { flex: none; min-height: 2.75rem; font-weight: 700; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
@media (prefers-reduced-motion: no-preference) {
  .janela[open] { animation: janela-entra 280ms var(--ease-out); }
  .janela[open]::backdrop { animation: fundo-entra 280ms ease; }
}
@keyframes janela-entra { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes fundo-entra { from { opacity: 0; } }

.recorte { position: relative; background: var(--branco); }
.recorte img { width: 100%; }
.recorte--qr { width: min(60%, 14rem); }
.recorte__marca { position: absolute; left: 0; right: 0; background: var(--ouro); mix-blend-mode: multiply; }
.recorte__marca--linha1 { top: 58%; height: 21%; }
.recorte__marca--linha2 { top: 79%; height: 20%; left: 36%; right: 36%; }

.leitor { width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 0.75rem; background: var(--tinta); }
.leitor video { width: 100% !important; height: 100% !important; object-fit: cover; }
.leitor__mensagem:empty { display: none; }
.leitor__mensagem { padding: 0.75rem 1rem; border-radius: 0.6rem; background: var(--papel); font-weight: 700; }
.leitor__foto { position: relative; }
.leitor__foto:focus-within { outline: 3px solid var(--vermelho); outline-offset: 3px; }

.busca { display: grid; gap: 0.5rem; }
.busca__linha { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; }
.busca .campo__entrada { background: var(--papel); }
.resultado:empty { display: none; }
.resultado { display: grid; gap: 1rem; }
.resultado__nome { font-weight: 900; font-size: var(--passo-destaque); }
.resultado__nota { display: grid; gap: 0.5rem; padding: 1rem; border-radius: 0.75rem; background: var(--papel); }
.resultado__origem { color: var(--tinta-suave); font-size: var(--passo-pequeno); }
.resultado__numeros { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.resultado__numero { padding: 0.35rem 0.6rem; border-radius: 0.5rem; background: var(--branco); font-weight: 900; font-variant-numeric: tabular-nums; color: var(--vermelho); }
.resultado__vazio { padding: 1rem; border-radius: 0.75rem; background: var(--papel); }

/* regulamento dentro da janela */
.regulamento { display: grid; gap: 0.75rem; line-height: 1.55; }
.regulamento h3 { font-size: var(--passo-destaque); line-height: 1.2; }
.regulamento h4, .regulamento h5 { margin: 0; font-weight: 800; line-height: 1.3; }
.regulamento h4 { margin-top: 1.25rem; }
.regulamento h5 { margin-top: 0.5rem; }
.regulamento ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.35rem; }
.regulamento p, .regulamento li { max-width: 72ch; }
.regulamento__assinatura { margin-top: 1.5rem; }

/* ---------- movimento ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* a festa: balões flutuando, confete caindo, estrelas e lâmpadas piscando */
  .js .balao { animation: flutua var(--d, 6s) ease-in-out infinite alternate; animation-delay: var(--a, 0s); }
  .js .chuva:not(.chuva--parada) .confete { top: -8%; animation: cai var(--d) linear infinite; animation-delay: var(--a); }
  .js .estrela { animation: brilha 2.6s ease-in-out infinite; animation-delay: var(--a, 0s); }
  .js .selo::before, .js .marcas__dobro::before { animation: lampadas 1.1s steps(1) infinite; }
  .js .selo:nth-child(2)::before { animation-delay: -0.55s; }
  .aba-oculta .balao, .aba-oculta .confete, .aba-oculta .estrela, .aba-oculta .regua__faixa,
  .aba-oculta .selo::before, .aba-oculta .marcas__dobro::before { animation-play-state: paused; }

  /* entrada da abertura: o letreiro, o carro chegando e as motos abrindo em leque */
  .js .abertura .letreiro { animation: letreiro-entra 1000ms var(--ease-out) 100ms both; }
  .js .abertura__chamada > * { animation: sobe var(--t-reveal) var(--ease-out) both; animation-delay: calc(320ms + var(--i, 0) * 90ms); }
  .js .abertura__chamada > :nth-child(2) { --i: 1; }
  .js .abertura__chamada > :nth-child(3) { --i: 2; }
  .js .garagem__carro { animation: carro-chega 1000ms var(--ease-out) 250ms both; }
  .js .garagem__moto { animation: moto-abre 900ms var(--ease-out) both; animation-delay: calc(500ms + var(--n, 0) * 80ms); }
  .js .abertura__faixa { animation: sobe var(--t-reveal) var(--ease-out) 750ms both; }
  .js .abertura .regua { animation: aparece 900ms ease 900ms both; }

  /* entrada das seções, uma parte de cada vez */
  .js [data-reveal] {
    opacity: 0; transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .premio__foto[data-reveal] { transform: translateY(40px) scale(0.97); transition-duration: 900ms, 1300ms; }
  .js .premio__foto[data-reveal].is-in { transform: none; }
  /* o cupom sai da impressora: a borda serrilhada desce até o fim */
  .js .cupom[data-reveal] { opacity: 1; transform: none; clip-path: var(--serrilha-fechada); transition: clip-path 950ms var(--ease-out); }
  .js .cupom[data-reveal].is-in { clip-path: var(--serrilha); }
}
@keyframes flutua { from { transform: translateY(0) rotate(-2.5deg); } to { transform: translateY(-14px) rotate(2.5deg); } }
@keyframes cai {
  from { transform: translate3d(0, -10vh, 0) rotate(0deg) scale(var(--s)); }
  to { transform: translate3d(var(--dx), 150vh, 0) rotate(var(--g)) scale(var(--s)); }
}
@keyframes brilha { 0%, 100% { transform: scale(0.82) rotate(0deg); opacity: 0.8; } 50% { transform: scale(1) rotate(14deg); opacity: 1; } }
@keyframes lampadas { 50% { opacity: 0.35; } }
@keyframes letreiro-entra { from { opacity: 0; transform: translateY(14px) scale(0.92); } }
@keyframes carro-chega { from { opacity: 0; transform: translateY(36px) scale(0.94); } }
@keyframes moto-abre { from { opacity: 0; translate: var(--de, 0) 0; } }
@keyframes sobe { from { opacity: 0; transform: translateY(28px); } }
@keyframes aparece { from { opacity: 0; } }
