body { overflow: hidden; height: 100vh; height: 100dvh; background: #0e1a0d; color: var(--texto); user-select: none; -webkit-user-select: none; }

#video {
  position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scaleX(-1); background: #0e1a0d;
}
.veu {
  position: fixed; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 50, 18, 0.55) 0%, rgba(20, 50, 18, 0) 28%, rgba(20, 50, 18, 0) 50%, rgba(20, 50, 18, 0.85) 100%);
}
/* Telas de formulário escondem a câmera atrás de um fundo da marca. */
body:not([data-tela='inicio']):not([data-tela='foto']) .veu {
  background: radial-gradient(circle at 20% 10%, #5aa354 0%, var(--verde) 35%, var(--verde-escuro) 100%);
}

.topo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; padding: 18px 28px;
}
.topo img { height: 64px; }
.topo .evento { color: var(--branco); font-weight: 900; font-size: 1.4rem; letter-spacing: 0.02em; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }

[data-tela] { display: none; position: fixed; inset: 0; z-index: 2; }
[data-tela].ativa { display: flex; }
.centro { align-items: center; justify-content: center; flex-direction: column; padding: 110px 24px 24px; color: var(--branco); text-align: center; }
.centro > p { font-size: 1.3rem; font-weight: 700; }

/* O oval ocupa o espaço que sobra acima do texto: funciona em 7" deitado e em 12" em pé. */
.inicio { flex-direction: column; padding-top: 96px; }
.guia { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; pointer-events: none; padding: 8px 0; }
.oval {
  height: 100%; max-height: 560px; max-width: 70vw; aspect-ratio: 3 / 4; border-radius: 50%;
  border: 5px dashed rgba(255, 255, 255, 0.75); transition: border-color 0.2s, transform 0.2s;
}
.oval.ok { border-style: solid; border-color: #7be36f; transform: scale(1.03); }
.contagem { position: absolute; font-size: 9rem; font-weight: 900; color: var(--branco); text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); }
.rodape { position: relative; padding: 0 28px 28px; text-align: center; color: var(--branco); }
.rodape h1 { font-size: clamp(1.8rem, 4.2vw, 3rem); font-weight: 900; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.dica { font-size: 1.2rem; margin: 0 0 18px; opacity: 0.95; }

.acoes { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.acoes.col { flex-direction: column; align-items: stretch; }
.btn.grande { font-size: 1.25rem; padding: 0.95em 1.9em; }
.btn { font-size: 1.1rem; }

.painel { width: min(640px, 100%); color: var(--texto); text-align: center; padding: 32px; }
.painel.largo { width: min(820px, 100%); }
.painel h2 { font-size: 1.9rem; color: var(--verde-escuro); }
.passo { color: var(--marrom); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; margin: 0 0 6px; }
.rodape .passo { color: #ffe2c8; }
.painel .campo input { font-size: 1.35rem; text-align: center; }

.mic {
  width: 120px; height: 120px; border-radius: 50%; border: 0; margin: 12px auto 6px; display: grid; place-items: center;
  background: var(--verde); color: var(--branco); cursor: pointer; box-shadow: 0 0 0 0 rgba(65, 135, 61, 0.5);
}
.mic.ouvindo { background: #c0392b; animation: pulso 1.2s infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.55); } 100% { box-shadow: 0 0 0 28px rgba(192, 57, 43, 0); } }

.candidatos { display: grid; gap: 12px; margin: 18px 0; }
.candidatos button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 18px 22px; border-radius: 14px; cursor: pointer;
  border: 2px solid var(--borda); background: var(--branco); text-align: left;
}
.candidatos button:active, .candidatos button:hover { border-color: var(--verde); background: var(--verde-claro); }
.candidatos strong { font-size: 1.35rem; }
.candidatos span { color: var(--texto-suave); font-size: 1.05rem; }

.termo { text-align: left; max-height: 52vh; overflow-y: auto; padding-right: 10px; font-size: 1.08rem; line-height: 1.5; }
.termo h3 { color: var(--verde-escuro); font-size: 1.4rem; }

.boas-vindas { width: min(760px, 100%); padding: 40px 36px; text-align: center; animation: entrar 0.45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes entrar { from { transform: scale(0.85); opacity: 0; } }
.boas-vindas h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; color: var(--verde-escuro); }
.boas-vindas .sub { font-size: 1.5rem; color: var(--marrom); font-weight: 800; margin: 0 0 18px; }
.foto-agro { width: 170px; height: 170px; border-radius: 50%; object-fit: cover; border: 6px solid var(--verde-claro); margin-bottom: 14px; background: var(--verde-claro); }
.foto-agro.simbolo { object-fit: contain; padding: 22px; }
.agro { font-size: 1.3rem; line-height: 1.45; }
.agro strong { color: var(--verde-escuro); }

.giro { width: 72px; height: 72px; border-radius: 50%; border: 7px solid rgba(255, 255, 255, 0.3); border-top-color: var(--branco); animation: girar 0.9s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

@media (max-height: 640px) {
  .topo { padding: 10px 20px; }
  .topo img { height: 44px; }
  .inicio { padding-top: 64px; }
  .rodape h1 { font-size: 1.7rem; margin-bottom: 0.2em; }
  .dica { font-size: 1rem; margin-bottom: 8px; }
  .boas-vindas { padding: 22px; }
  .foto-agro { width: 120px; height: 120px; }
  .painel { padding: 20px; }
  .mic { width: 92px; height: 92px; }
}
