/* Aviso (modal) sobre a mudança de locais de votação no 2º turno.
   Usa os tokens do site; no celular vira uma folha que sobe de baixo. */
.modal-voto { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal-voto__fundo {
  position: absolute; inset: 0; background: var(--veu);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: modal-voto-fundo var(--medio) var(--ease);
}
.modal-voto__cartao {
  position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 48px); overflow-y: auto;
  padding: 32px 28px 22px; border-radius: var(--raio); background: var(--card); box-shadow: var(--sombra-alta);
  text-align: center; animation: modal-voto-entra var(--medio) var(--ease);
}
.modal-voto__x {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--fill); color: var(--fg-2); cursor: pointer; font-size: 17px;
  transition: background-color var(--rapido) var(--ease), transform var(--rapido) var(--ease);
}
.modal-voto__x:hover { background: var(--line-2); }
.modal-voto__x:active { transform: scale(.94); }
.modal-voto__pilula {
  display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent-text); font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.modal-voto__titulo { font-size: 26px; line-height: 1.15; letter-spacing: -.03em; margin: 14px 0 10px; }
.modal-voto__texto { margin: 0 0 22px; font-size: 17px; color: var(--fg-3); }
.modal-voto__acoes { display: flex; flex-direction: column; gap: 10px; }
.modal-voto__acoes .cta { width: 100%; }
.modal-voto__dica { margin: 12px 0 4px; font-size: 14px; color: var(--fg-4); }
.modal-voto__agora-nao {
  min-height: 44px; padding: 8px 14px; border: 0; background: none; cursor: pointer;
  font-size: 15px; color: var(--fg-3); text-decoration: underline; text-underline-offset: 3px;
}
.modal-voto__agora-nao:hover { color: var(--fg); }
.modal-voto__fonte { margin: 2px 0 0; font-size: 12px; color: var(--fg-4); }

@keyframes modal-voto-fundo { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-voto-entra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes modal-voto-sobe { from { transform: translateY(100%); } to { transform: none; } }

/* Celular: folha que sobe de baixo, botões na largura toda */
@media (max-width: 640px) {
  .modal-voto { place-items: end center; padding: 0; }
  .modal-voto__cartao {
    max-width: none; max-height: 92vh; border-radius: var(--raio) var(--raio) 0 0;
    padding: 30px 20px calc(18px + env(safe-area-inset-bottom, 0px));
    animation-name: modal-voto-sobe;
  }
  .modal-voto__x { width: 44px; height: 44px; top: 8px; right: 8px; }
  .modal-voto__titulo { font-size: 24px; }
}
