.pwa-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 2147483000; display: flex; align-items: center; gap: 12px;
  max-width: 480px; margin: 0 auto; padding: 12px 14px; box-sizing: border-box;
  background: #000; color: #f2f2f4; border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,0.45);
  font: 0.9rem/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.pwa-banner img { width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0; }
.pwa-banner-texto { flex: 1; min-width: 0; }
.pwa-banner-texto b { display: block; font-size: 0.95rem; }
.pwa-banner-texto span { color: #b3b6bd; }
/* width/margin/hover explícitos de propósito: algumas páginas (ex.: inscricao.css) têm
   regra global em `button` (width 100%, margin-top, hover) que vazaria pro banner. */
.pwa-banner-instalar {
  width: auto; margin: 0; padding: 9px 16px; border: 0; border-radius: 8px; background: #e0332a; color: #fff;
  font: inherit; font-weight: 700; cursor: pointer; flex-shrink: 0;
}
.pwa-banner-instalar:hover { background: #e0332a; }
.pwa-banner-fechar {
  width: auto; margin: 0; padding: 4px 8px; border: 0; background: none; color: #b3b6bd;
  font-size: 1.2rem; line-height: 1; cursor: pointer; flex-shrink: 0;
}
.pwa-banner-fechar:hover { background: none; }

/* Splash animada do app instalado (ver public/js/splash.js). O ícone fica cravado no centro,
   como na splash nativa, e o nome/trilho ficam absolutos embaixo pra não deslocá-lo. */
.splash-pwa {
  position: fixed; inset: 0; z-index: 2147483647; background: #000; color: #f4f5f3;
  transition: opacity .35s ease, transform .35s ease;
}
.splash-pwa-saindo { opacity: 0; transform: scale(1.05); pointer-events: none; }
.splash-pwa-logo {
  position: absolute; left: 50%; top: 50%; width: 128px; height: 128px; margin: -64px 0 0 -64px; overflow: visible;
}
.splash-pwa-logo g { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; }
.splash-pwa-barra { stroke: #fff; animation: splash-pwa-respira 1.8s ease-in-out infinite; }
.splash-pwa-linha {
  stroke: #e0332a; stroke-dasharray: 1; stroke-dashoffset: 0;
  animation: splash-pwa-redesenha 1.8s ease-in-out infinite;
}
.splash-pwa-nome {
  position: absolute; left: 0; right: 0; top: calc(50% + 84px); text-align: center;
  font: 700 1.25rem/1 "Chakra Petch", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .06em;
  opacity: 0; animation: splash-pwa-entra .45s ease .35s forwards;
}
.splash-pwa-nome b { color: #e0332a; font-weight: 700; }
.splash-pwa-trilho {
  position: absolute; left: 50%; top: calc(50% + 122px); width: 64px; height: 3px; margin-left: -32px;
  border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden;
  opacity: 0; animation: splash-pwa-entra .4s ease .6s forwards;
}
.splash-pwa-trilho::after {
  content: ""; display: block; width: 40%; height: 100%; border-radius: 3px; background: #e0332a;
  animation: splash-pwa-corre 1.1s ease-in-out infinite;
}
@keyframes splash-pwa-redesenha {
  0%, 10%   { stroke-dashoffset: 0; }
  30%, 35%  { stroke-dashoffset: 1; }
  70%, 100% { stroke-dashoffset: 0; }
}
@keyframes splash-pwa-respira { 0%, 10%, 70%, 100% { opacity: 1; } 30%, 35% { opacity: .55; } }
@keyframes splash-pwa-entra { to { opacity: 1; } }
@keyframes splash-pwa-corre { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) {
  .splash-pwa * { animation: none !important; }
  .splash-pwa-nome, .splash-pwa-trilho { opacity: 1; }
}
