/* =====================================================================
   Festa (out/2026): segunda camada visual, por cima de encanto.css.
   Tirar o <link> deste arquivo do index.html volta ao visual anterior.
   Efeitos pequenos rodam sempre: o Windows com "efeitos de animacao" desligado
   tambem pede "reduzir movimento" e o dono do site ficava sem ver nada.
   So o que move a tela inteira depende de html.movimento-total (ver encanto.js).
   ===================================================================== */

:root {
  --casa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2.5 11H5v9a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1v-9h2.5z'/%3E%3C/svg%3E");
  --pessoas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 20c0-4 3-7 7-7s7 3 7 7z'/%3E%3Ccircle cx='17.5' cy='9' r='3'/%3E%3Cpath d='M17.5 13.5c-.7 0-1.3.1-1.900.3 1.800 1.500 2.900 3.700 2.900 6.200h3.500c0-3.700-1.900-6.500-4.500-6.500z'/%3E%3C/svg%3E");
  --doce: linear-gradient(120deg, #e8603c, #e8487f 45%, #8a4fd0);
  --mola: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Fundo vivo ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i {
  position: absolute;
  width: 95vmax;
  height: 95vmax;
  border-radius: 50%;
  opacity: 0.55;
  animation: auroraAnda 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { top: -45vmax; left: -35vmax; background: radial-gradient(closest-side, rgba(240, 120, 170, 0.75), transparent); }
.aurora i:nth-child(2) { top: 10vh; right: -45vmax; background: radial-gradient(closest-side, rgba(90, 170, 245, 0.75), transparent); animation-duration: 32s; animation-delay: -9s; }
.aurora i:nth-child(3) { bottom: -55vmax; left: 5vmax; background: radial-gradient(closest-side, rgba(255, 180, 90, 0.55), transparent); animation-duration: 38s; animation-delay: -17s; }
@keyframes auroraAnda {
  from { transform: translate3d(-5%, -4%, 0) scale(1); }
  to { transform: translate3d(9%, 8%, 0) scale(1.14); }
}
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } }

/* ---------- Barra de progresso com patinha ---------- */
.progresso-pata {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--topo-cabecalho, 64px);
  z-index: 45;
  height: 3px;
  pointer-events: none;
}
.progresso-pata b {
  position: absolute;
  inset: 0;
  background: var(--doce);
  transform: scaleX(var(--progresso, 0));
  transform-origin: left;
}
.progresso-pata i {
  position: absolute;
  top: -8px;
  left: -9px;
  width: 18px;
  height: 18px;
  background: #e8487f;
  -webkit-mask: var(--pata) center / contain no-repeat;
  mask: var(--pata) center / contain no-repeat;
  transform: translateX(calc(var(--progresso, 0) * 100vw)) rotate(90deg);
}

/* ---------- Cortina ao trocar de pagina ---------- */
.cortina {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  place-items: center;
  background: var(--doce);
  pointer-events: none;
}
.cortina.is-ativa { display: grid; animation: cortinaSobe 0.68s cubic-bezier(0.76, 0, 0.24, 1) 0.06s forwards; }
.cortina i {
  width: 74px;
  height: 74px;
  background: #fff;
  -webkit-mask: var(--pata) center / contain no-repeat;
  mask: var(--pata) center / contain no-repeat;
  animation: batida 0.7s ease-in-out infinite;
}
@keyframes cortinaSobe {
  from { transform: translateY(0); }
  to { transform: translateY(-101%); }
}

/* ---------- Entradas com mola ---------- */
.com-animacao.movimento-total .anima-entra { animation: entraMola 0.8s var(--mola) var(--atraso, 0ms) backwards; }
.com-animacao:not(.movimento-total) .anima-entra { animation: paginaEntra 0.6s ease var(--atraso, 0ms) backwards; }
@keyframes entraMola {
  from { opacity: 0; transform: translateY(38px) scale(0.93) rotate(-1.2deg); }
  to { opacity: 1; transform: none; }
}

/* ---------- Titulos: palavra em destaque com traco desenhado ---------- */
em.destaque {
  position: relative;
  font-style: normal;
  white-space: nowrap;
  background: var(--doce);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
em.destaque::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1em;
  height: 0.13em;
  border-radius: 99px;
  background: var(--doce);
  transform-origin: left;
  animation: tracoDesenha 1s var(--curva) 0.5s backwards;
}
@keyframes tracoDesenha {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.home-cta-card em.destaque { background: none; color: #ffe27a; }
.home-cta-card em.destaque::after { background: #ffe27a; }
.home-cta-shop em.destaque { color: var(--doar-escuro); }
.home-cta-shop em.destaque::after { background: var(--doar); }

.eyebrow { gap: 7px; }
.eyebrow::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: var(--pata) center / contain no-repeat;
  mask: var(--pata) center / contain no-repeat;
  animation: pataAcena 2.6s ease-in-out infinite;
}
@keyframes pataAcena {
  0%, 70%, 100% { transform: rotate(0); }
  78% { transform: rotate(-22deg); }
  86% { transform: rotate(16deg); }
}

/* ---------- Fotos reais no topo: polaroides que trocam sozinhas ---------- */
.polaroides {
  position: relative;
  display: block;
  width: 100%;
  height: 268px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.polaroide {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 196px;
  margin-left: -98px;
  padding: 8px 8px 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(50, 30, 80, 0.26);
  transition: transform 0.7s var(--mola), opacity 0.5s ease;
}
.polaroide img { width: 100%; height: 182px; border-radius: 4px; object-fit: cover; object-position: var(--animal-photo-position, 50% 50%); }
.polaroide span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  overflow: hidden;
  color: #2a2430;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}
.polaroide span::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: #e8487f;
  -webkit-mask: var(--coracao) center / contain no-repeat;
  mask: var(--coracao) center / contain no-repeat;
  animation: batida 2.2s ease-in-out infinite;
}
.polaroide.pos-0 { z-index: 3; transform: rotate(-3deg); }
.polaroide.pos-1 { z-index: 2; transform: translateX(-70px) translateY(12px) rotate(-12deg) scale(0.88); }
.polaroide.pos-2 { z-index: 1; transform: translateX(70px) translateY(12px) rotate(11deg) scale(0.88); }
.polaroide.pos-fora { z-index: 4; opacity: 0; transform: translate(150px, -30px) rotate(26deg) scale(1.04); }
.polaroide.sem-transicao { transition: none; opacity: 0; }
html:not(.movimento-total) .polaroide.pos-fora { transform: rotate(-3deg); }
.polaroides-flutua { position: absolute; inset: 0; animation: flutuar 6s ease-in-out infinite; }
.hero-card .polaroides { height: 330px; }
.hero-card .polaroide { width: 236px; margin-left: -118px; }
.hero-card .polaroide img { height: 222px; }
.hero-card .polaroide.pos-1 { transform: translateX(-104px) translateY(14px) rotate(-12deg) scale(0.88); }
.hero-card .polaroide.pos-2 { transform: translateX(104px) translateY(14px) rotate(11deg) scale(0.88); }
.tem-polaroides .hero-card .hero-logo { display: none; }

/* ---------- Numeros da home com icone e cor ---------- */
.stat-card { position: relative; overflow: hidden; padding-left: 58px; min-height: 76px; align-content: center; }
.stat-card::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  background: var(--cor-stat);
  -webkit-mask: var(--icone-stat) center / contain no-repeat;
  mask: var(--icone-stat) center / contain no-repeat;
  animation: batida 3s ease-in-out infinite;
}
.stat-card strong { color: var(--cor-stat); }
.stat-card:nth-child(1) { --cor-stat: #2f67c7; --icone-stat: var(--pata); }
.stat-card:nth-child(2) { --cor-stat: #d9622b; --icone-stat: var(--casa); }
.stat-card:nth-child(3) { --cor-stat: #d63f73; --icone-stat: var(--coracao); }
.stat-card:nth-child(4) { --cor-stat: #7d45c4; --icone-stat: var(--pessoas); }
.stat-card:nth-child(2)::before { animation-delay: 0.4s; }
.stat-card:nth-child(3)::before { animation-delay: 0.8s; }
.stat-card:nth-child(4)::before { animation-delay: 1.2s; }

/* ---------- Chamada de doacao: gradiente quente em movimento ---------- */
.home-cta-donate {
  background: linear-gradient(120deg, #d9532b, #d63f73, #7d45c4, #d9532b);
  background-size: 300% 300%;
  border: 0;
  animation: gradienteAnda 14s ease infinite;
}
.home-cta-donate p { opacity: 1; }
.home-cta-donate::after { background: rgba(255, 255, 255, 0.14); }
.home-cta-donate .btn-primary { color: #c23a2c; }
.home-cta-donate .home-cta-kicker { background: rgba(255, 255, 255, 0.22); }
.home-cta-card .coracao-sobe { background: rgba(255, 255, 255, 0.85); }
@keyframes gradienteAnda {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Borda colorida que anda ---------- */
.shop-hero,
.story-card,
.donation-checkout {
  border: 2px solid transparent;
  background:
    linear-gradient(145deg, #fff, #fff8f2) padding-box,
    linear-gradient(90deg, #f28a3c, #ef6f96, #8a6fe0, #5aaaf5, #f28a3c) border-box;
  background-size: 100% 100%, 300% 100%;
  animation: bordaAnda 9s linear infinite;
}
@keyframes bordaAnda {
  from { background-position: 0 0, 0% 0; }
  to { background-position: 0 0, 300% 0; }
}

/* ---------- Cards ---------- */
.animal-card, .shop-card, .plan-card, .home-cta-card, .story-card {
  transform: perspective(1000px) rotateX(var(--giro-x, 0deg)) rotateY(var(--giro-y, 0deg)) translateY(var(--sobe, 0));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.animal-card:active, .shop-card:active { --sobe: 2px; }
.is-inclinado { --sobe: -5px; box-shadow: 0 26px 54px rgba(60, 40, 110, 0.22); }

.animal-card { border-radius: 24px; box-shadow: 0 14px 34px rgba(60, 40, 110, 0.14); }
.animal-card .animal-content h3 { font-size: 1.28rem; }

@media (max-width: 900px) {
  /* Carrossel: card em foco fica maior, os do lado recuam */
  #animalsGrid > .animal-card { transition: transform 0.4s var(--curva), opacity 0.4s ease; }
  #animalsGrid > .animal-card:not(.em-foco) { --sobe: 6px; opacity: 0.82; }
  #animalsGrid > .animal-card.em-foco { box-shadow: 0 20px 40px rgba(60, 40, 110, 0.22); }
}

/* Toque com onda */
.btn { position: relative; overflow: hidden; }
.onda-toque {
  position: absolute;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  animation: ondaToque 0.6s ease-out forwards;
}
.btn-ghost .onda-toque, .btn-outline .onda-toque, .btn-secondary .onda-toque { background: rgba(78, 143, 216, 0.35); }
@keyframes ondaToque {
  to { opacity: 0; transform: scale(22); }
}

/* Botao de doar com anel pulsando */
.btn-doar { animation: anelDoar 2.4s ease-out infinite; }
@keyframes anelDoar {
  0% { box-shadow: 0 12px 26px rgba(217, 98, 43, 0.32), 0 0 0 0 rgba(232, 72, 127, 0.5); }
  70%, 100% { box-shadow: 0 12px 26px rgba(217, 98, 43, 0.32), 0 0 0 14px rgba(232, 72, 127, 0); }
}
.btn-primary { background: linear-gradient(135deg, #2f67c7, #4c90f1); }
.home-cta-donate .btn-primary { background: #fff; }

/* ---------- Historia em Doacoes: foto em destaque ---------- */
.story-foto { min-height: 340px; }
.story-foto img { position: absolute; inset: 0; height: 100%; }
.story-foto::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(to top, rgba(25, 15, 45, 0.86), transparent);
  pointer-events: none;
}
.story-titulo {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.85rem;
  line-height: 1.12;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.story-nome { top: 12px; bottom: auto; z-index: 2; display: inline-flex; align-items: center; gap: 7px; }
.story-nome.em-tratamento { background: #d63f73; color: #fff; }
.ecg { width: 34px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; animation: ecgDesenha 1.8s linear infinite; }
@keyframes ecgDesenha {
  from { stroke-dashoffset: 60; }
  to { stroke-dashoffset: -60; }
}

/* ---------- Doar: valores e campos ---------- */
.valor-chip.is-active { animation: chipPula 0.45s var(--mola); box-shadow: 0 8px 18px rgba(217, 98, 43, 0.38); }
@keyframes chipPula {
  from { transform: scale(0.84); }
  to { transform: scale(1); }
}
.field input:focus, .field select:focus { border-color: #e8487f; box-shadow: 0 0 0 4px rgba(232, 72, 127, 0.16); outline: none; }
.impact-tile { transition: transform 0.25s ease; }
.impact-tile svg { animation: flutuar 4.5s ease-in-out infinite; }
.impact-tile:nth-child(2) svg { animation-delay: 0.5s; color: #d63f73; }
.impact-tile:nth-child(3) svg { animation-delay: 1s; color: #7d45c4; }
.impact-tile:nth-child(4) svg { animation-delay: 1.5s; color: #2f67c7; }

.donor-plan-card::before { background-size: 200% 100%; background-image: linear-gradient(90deg, var(--level-color), #fff8, var(--level-color)); animation: brilhoPlano 3.5s linear infinite; }
@keyframes brilhoPlano {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
.donor-plan-card strong { font-size: 1.5rem; }

/* ---------- Lojinha ---------- */
.shop-card { border-radius: 22px; box-shadow: 0 14px 32px rgba(60, 40, 110, 0.14); }
.shop-card-image { position: relative; }
.shop-card-image::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-18deg);
  animation: reflexo 5.5s ease-in-out infinite;
  pointer-events: none;
}
.shop-card:nth-child(even) .shop-card-image::after { animation-delay: 1.6s; }
@keyframes reflexo {
  0%, 68% { left: -60%; }
  100% { left: 125%; }
}
.shop-card strong {
  display: inline-block;
  width: fit-content;
  background: var(--doce);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shop-faces-fotos img { animation: rostoEntra 0.6s var(--mola) backwards; transition: transform 0.2s var(--mola); }
.shop-faces-fotos img:nth-child(2) { animation-delay: 0.08s; }
.shop-faces-fotos img:nth-child(3) { animation-delay: 0.16s; }
.shop-faces-fotos img:nth-child(4) { animation-delay: 0.24s; }
.shop-faces-fotos img:nth-child(5) { animation-delay: 0.32s; }
.shop-faces-fotos img:nth-child(6) { animation-delay: 0.4s; }
@keyframes rostoEntra {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: scale(1); }
}
.shop-doar { background: linear-gradient(120deg, #d9532b, #d63f73, #7d45c4, #d9532b); background-size: 300% 300%; animation: gradienteAnda 14s ease infinite; }
.shop-doar .btn-doar { background: #fff; color: #c23a2c; }

/* ---------- Cabecalho e menu ---------- */
.nav-link.is-active { background: var(--doce); color: #fff; }
.mobile-toggle { transition: transform 0.25s var(--mola); }
.mobile-toggle:active { transform: scale(0.92); }

/* ---------- Rodape com onda ---------- */
.rodape-onda { position: relative; height: 46px; margin-top: 30px; margin-bottom: -1px; overflow: hidden; pointer-events: none; }
.rodape-onda svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; animation: ondaAnda 16s linear infinite; }
.rodape-onda svg:first-child { opacity: 0.45; animation-duration: 24s; animation-direction: reverse; }
.rodape-onda path { fill: #3158b4; }
@keyframes ondaAnda {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.site-footer {
  position: relative;
  background: linear-gradient(160deg, #3158b4, #6a45a8 70%, #8a3f96);
  border-top: 0;
  color: #fff;
}
.site-footer h3, .site-footer strong, .site-footer li, .site-footer p, .footer-link { color: #fff; }
.site-footer p, .site-footer li { opacity: 0.92; }
.footer-link { background: none; border: 0; opacity: 0.92; }
.footer-link:hover { opacity: 1; text-decoration: underline; }

/* ---------- Palco do rodape: casinha do Lar Feliz e bichinhos ---------- */
.rodape-palco {
  position: relative;
  height: 84px;
  margin-top: -18px;
  margin-bottom: 20px;
  overflow: hidden;
  overflow: clip visible;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.rodape-casa {
  position: absolute;
  right: max(10px, calc(50% - 590px));
  bottom: -1px;
  z-index: 1;
  width: 96px;
}
.casa-desenho { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 8px rgba(20, 10, 50, 0.3)); }
.casa-janela { animation: janelaAcesa 4s ease-in-out infinite; }
@keyframes janelaAcesa {
  0%, 100% { fill: #ffe27a; }
  50% { fill: #fff3b8; }
}
.casa-porta { transition: fill 0.25s ease; }
.porta-aberta .casa-porta { fill: #2a1a0e; }

.ator { position: absolute; left: 0; bottom: 0; z-index: 2; }
.ator .mascote, .ator svg { display: block; width: 100%; height: auto; }
.vira .ator-corpo svg { transform: scaleX(-1); }
.correndo .m-pata { animation-duration: 0.26s; }
.correndo .m-rabo { animation-duration: 0.3s; }
.parado .m-pata { animation-play-state: paused; }
.saltita .ator-corpo { animation: saltita 0.42s ease-in-out infinite alternate; }
@keyframes saltita {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}
.quica .ator-corpo { animation: quica 0.5s cubic-bezier(0.3, 0, 0.7, 1) infinite alternate; }
.quica .bola-desenho { animation: bolaGira 0.7s linear infinite; }
@keyframes quica {
  from { transform: translateY(0); }
  to { transform: translateY(-34px); }
}
@keyframes bolaGira {
  to { transform: rotate(360deg); }
}
.voa { bottom: 26px; }
.voa .ator-corpo { animation: voaOnda 1.1s ease-in-out infinite alternate; }
@keyframes voaOnda {
  from { transform: translateY(14px) rotate(-8deg); }
  to { transform: translateY(-16px) rotate(8deg); }
}
.asa { transform-box: fill-box; animation: asaBate 0.16s ease-in-out infinite alternate; }
.asa-e { transform-origin: 100% 50%; }
.asa-d { transform-origin: 0% 50%; }
@keyframes asaBate {
  from { transform: scaleX(1); }
  to { transform: scaleX(0.35); }
}
.balao {
  position: absolute;
  left: 50%;
  bottom: 100%;
  margin-bottom: 4px;
  padding: 3px 9px;
  border-radius: 10px;
  background: #fff;
  color: #2a2430;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%);
  animation: balaoSurge 0.3s var(--mola);
}
.balao::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  margin-left: -4px;
  border: 4px solid transparent;
  border-top-color: #fff;
}
@keyframes balaoSurge {
  from { opacity: 0; transform: translateX(-50%) scale(0.5); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}
.coracao-casa {
  position: absolute;
  z-index: 3;
  width: 14px;
  height: 14px;
  background: #ff8fb1;
  -webkit-mask: var(--coracao) center / contain no-repeat;
  mask: var(--coracao) center / contain no-repeat;
  animation: coracaoChamine 1.5s ease-out backwards;
}
@keyframes coracaoChamine {
  from { opacity: 0; transform: translate(0, 4px) scale(0.5); }
  25% { opacity: 1; }
  to { opacity: 0; transform: translate(14px, -46px) scale(1.2); }
}
.gato-telhado {
  position: absolute;
  left: 8%;
  bottom: 78%;
  width: 46px;
  animation: gatoSobe 0.5s var(--mola) backwards;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.gato-telhado.desce { opacity: 0; transform: translateY(18px); }
.gato-telhado .mascote { display: block; width: 100%; height: auto; }
.gato-telhado .m-olho { animation: olhoDorme 7.5s linear forwards; }
@keyframes olhoDorme {
  0%, 18% { transform: scaleY(1); }
  24%, 100% { transform: scaleY(0.1); }
}
@keyframes gatoSobe {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.zzz {
  position: absolute;
  right: -8px;
  top: -2px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  opacity: 0;
  animation: zzzSobe 2.4s ease-out infinite;
}
.zzz:nth-of-type(1) { animation-delay: 1.8s; }
.zzz:nth-of-type(2) { animation-delay: 2.6s; }
.zzz:nth-of-type(3) { animation-delay: 3.4s; }
@keyframes zzzSobe {
  from { opacity: 0; transform: translate(0, 0) scale(0.7); }
  25% { opacity: 1; }
  to { opacity: 0; transform: translate(16px, -30px) scale(1.25); }
}
@media (max-width: 900px) {
  .rodape-casa { width: 84px; }
}

@media (max-width: 900px) {
  /* Icone no canto: ao lado do numero cortava "R$ 19.138,00" */
  .stat-card { padding: 14px; min-height: 86px; align-content: start; }
  .stat-card::before { left: auto; right: 10px; top: 12px; width: 22px; height: 22px; margin-top: 0; }
  .stat-card strong { white-space: nowrap; font-size: 1.2rem; }
  .stat-card span { padding-right: 2px; }
  .hero-copy .eyebrow { letter-spacing: 0.01em; }
  .hero-copy .eyebrow::before { display: none; }
}

/* Celular bem pequeno: valores e fotos cabem sem estourar */
@media (max-width: 360px) {
  .stat-card strong { font-size: 1.02rem; }
  .valor-chip { font-size: 0.9rem; }
  .polaroide { width: 172px; margin-left: -86px; }
  .polaroide img { height: 160px; }
  .polaroides { height: 244px; }
  .polaroide.pos-1 { transform: translateX(-46px) translateY(12px) rotate(-12deg) scale(0.88); }
  .polaroide.pos-2 { transform: translateX(46px) translateY(12px) rotate(11deg) scale(0.88); }
}

/* overflow-x: hidden em html/body quebrava o sticky: no computador o menu sumia ao rolar */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

@media (min-width: 901px) {
  .stat-card { min-height: 96px; }
  .story-titulo { font-size: 2.3rem; }
}

/* ---------- Compartilhar no WhatsApp ---------- */
.btn-whats {
  background: #0f7f52;
  border-color: #0f7f52;
  color: #fff;
  text-decoration: none;
}
.btn-whats:hover { background: #0b6a44; color: #fff; }
.btn-whats::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn-whats .onda-toque { background: rgba(255, 255, 255, 0.5); }
.animal-content .action-group .btn-whats { flex: 1 1 100%; }
.story-acoes .btn-whats { grid-column: 1 / -1; }

/* Faixa em Doacoes: quem nao pode doar agora ainda pode ajudar */
.compartilhar-faixa {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 18px;
  border-radius: 22px;
  background: #e7f7ef;
  border: 1px solid rgba(15, 127, 82, 0.25);
}
.compartilhar-faixa h3 { margin: 0 0 4px; font-family: var(--font-heading); font-size: 1.2rem; }
.compartilhar-faixa p { margin: 0; color: var(--color-text-soft); line-height: 1.5; }
@media (min-width: 720px) {
  .compartilhar-faixa { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 20px 26px; }
}

/* Card aberto por um link compartilhado */
.animal-card { scroll-margin-top: 90px; }
.animal-card.veio-do-link { outline: 3px solid #e8487f; outline-offset: 2px; animation: cardDoLink 1.1s ease-in-out 3; }
@keyframes cardDoLink {
  0%, 100% { box-shadow: 0 14px 34px rgba(60, 40, 110, 0.14); }
  50% { box-shadow: 0 0 0 10px rgba(232, 72, 127, 0.22), 0 18px 40px rgba(60, 40, 110, 0.22); }
}

/* ---------- Faixas: maior doacao, apoiadores e animais reais ---------- */
.ator-faixa { display: flex; align-items: flex-end; width: max-content; }
.faixa {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 250px;
  min-height: 52px;
  margin-bottom: 8px;
  padding: 6px 12px;
  border-radius: 12px;
  background: #fff;
  color: #2a2430;
  box-shadow: 0 6px 16px rgba(20, 10, 50, 0.3);
}
/* O rodape pinta strong de branco: aqui o fundo e claro */
.site-footer .faixa strong { display: block; color: #2a2430; font-size: 0.92rem; font-weight: 800; line-height: 1.15; }
.rodape-casa { transition: opacity 0.4s ease; }
.rodape-casa.casa-recua { opacity: 0.22; }
.faixa small, .faixa span { display: block; color: var(--color-text-soft); font-size: 0.75rem; font-weight: 700; line-height: 1.2; }
.faixa img { flex: none; object-fit: contain; }
.faixa-corda { flex: none; align-self: flex-end; width: 18px; height: 2px; margin-bottom: 30px; background: #fff; }
.faixa-doador .faixa { display: block; background: linear-gradient(120deg, #fff4d6, #ffe0ec); border: 2px solid #f3c93f; }
.faixa-doador .faixa small { color: #8a6500; }
.faixa-doador .faixa span { color: #c23a6a; }
.faixa-apoiador .faixa img { width: 78px; height: 38px; }
.faixa-apoiador.nivel-diamante .faixa { border: 2px solid #5aaaf5; box-shadow: 0 0 0 4px rgba(90, 170, 245, 0.28), 0 6px 18px rgba(20, 10, 50, 0.35); }
.faixa-apoiador.nivel-diamante .faixa img { width: 88px; height: 42px; }
.faixa-apoiador.nivel-ouro .faixa { border: 2px solid #f3c93f; }
.faixa-animal .faixa img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #ef6f96; }
.parado.correndo .m-rabo { animation-duration: 0.3s; animation-play-state: running; }

/* Balao */
.voa-balao { bottom: -2px; z-index: 2; }
.voa-balao .ator-corpo { position: relative; animation: balaoBalanca 3.2s ease-in-out infinite alternate; }
@keyframes balaoBalanca {
  from { transform: translateY(0) rotate(-3deg); }
  to { transform: translateY(-14px) rotate(3deg); }
}
.balao-logo {
  position: absolute;
  left: 50%;
  top: 22%;
  display: grid;
  place-items: center;
  width: 66px;
  height: 40px;
  margin-left: -33px;
  padding: 3px;
  border-radius: 8px;
  background: #fff;
  color: #2a2430;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}
.balao-logo img { width: 100%; height: 100%; object-fit: contain; }

/* Novelo, osso, banho */
.rola .ator-corpo { animation: bolaGira 0.7s linear infinite; }
.cavando .m-pata { animation-duration: 0.12s; }
.cavando .ator-corpo { animation: cavaCorpo 0.18s ease-in-out infinite alternate; }
@keyframes cavaCorpo {
  from { transform: rotate(5deg) translateY(2px); }
  to { transform: rotate(9deg) translateY(4px); }
}
.terra {
  position: absolute;
  left: 8px;
  bottom: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a87346;
  animation: terraVoa 0.55s ease-out backwards;
  opacity: 0;
}
@keyframes terraVoa {
  0% { opacity: 1; transform: translate(0, 0); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)); }
}
.osso-achado { position: absolute; right: -2px; top: 26px; width: 34px; animation: balaoSurge 0.3s var(--mola); transform: none; }
.osso-achado svg { display: block; width: 100%; height: auto; }
.bolha {
  position: absolute;
  bottom: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  opacity: 0;
  animation: bolhaSobe 1.5s ease-out backwards;
}
@keyframes bolhaSobe {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-58px) scale(1.2); }
}
.sacode .ator-corpo { animation: sacode 0.11s linear infinite alternate; }
@keyframes sacode {
  from { transform: rotate(-7deg); }
  to { transform: rotate(7deg); }
}

/* Bichinho vindo para a tela: nao recebe clique, nem atrapalha o que esta embaixo */
.vem-tela { position: fixed; inset: 0; z-index: 90; overflow: hidden; pointer-events: none; }
.vem-bicho {
  position: absolute;
  left: 50%;
  bottom: -1%;
  width: min(74vw, 460px);
  margin-left: calc(min(74vw, 460px) / -2);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 12px 28px rgba(20, 10, 50, 0.35));
}
.vem-bicho .mascote { display: block; width: 100%; height: auto; }
.pata-vidro {
  position: absolute;
  bottom: 30%;
  width: min(20vw, 118px);
  height: min(20vw, 118px);
  background: rgba(80, 45, 25, 0.55);
  -webkit-mask: var(--pata) center / contain no-repeat;
  mask: var(--pata) center / contain no-repeat;
  animation: pataCarimba 2.9s ease-out backwards;
}
.pata-e { left: calc(50% - min(40vw, 250px)); }
.pata-d { right: calc(50% - min(40vw, 250px)); }
@keyframes pataCarimba {
  0% { opacity: 0; transform: rotate(var(--giro)) scale(1.5); }
  10% { opacity: 1; transform: rotate(var(--giro)) scale(1); }
  72% { opacity: 1; transform: rotate(var(--giro)) scale(1); }
  100% { opacity: 0; transform: rotate(var(--giro)) scale(1); }
}
.vem-balao {
  position: absolute;
  left: 50%;
  bottom: calc(min(74vw, 460px) * 0.72);
  padding: 8px 16px;
  border-radius: 16px;
  background: #fff;
  color: #2a2430;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(20, 10, 50, 0.28);
  transform: translateX(-50%);
  animation: balaoSurge 0.35s var(--mola);
}
