/* animacoes.css */
.topo { transition: box-shadow .2s ease; view-transition-name: topo; }
.topo.rolado { box-shadow: 0 6px 20px rgb(0 0 0 / .55); }

.esqueleto { aspect-ratio: 3 / 5; background: var(--painel); border: 1px solid var(--borda); border-radius: var(--raio); animation: pulsar 1.2s ease-in-out infinite alternate; }

.revelar { opacity: 0; }
.revelar.visivel { opacity: 1; animation: subir .4s ease backwards; }

.botao, .categorias button { position: relative; overflow: hidden; }
.onda { position: absolute; border-radius: 50%; background: currentColor; opacity: 0; pointer-events: none; transform: scale(0); animation: onda .5s ease-out; }

.janela[open].saindo { animation: fechar .15s ease forwards; }
.janela[open].saindo::backdrop { animation: sumir .15s ease forwards; }

.subirTopo { position: fixed; right: 16px; bottom: 16px; z-index: 20; width: 46px; height: 46px; background: var(--painel); color: var(--ouro); border: 1px solid var(--borda); border-radius: var(--raio); font-size: 1.3rem; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s, transform .2s, visibility .2s, border-color .15s; }
.subirTopo.visivel { opacity: 1; visibility: visible; transform: none; }
.subirTopo:hover { border-color: var(--ouro); }

.notificacao { position: fixed; left: 50%; bottom: 20px; z-index: 30; translate: -50% 0; background: var(--painel); color: var(--texto); border: 1px solid var(--ouro); border-radius: var(--raio); padding: 12px 18px; white-space: nowrap; animation: subir .25s ease; }
.notificacao.saindo { animation: fechar .2s ease forwards; }

.linha.saindo { animation: deslizar .25s ease forwards; }

@keyframes pulsar { to { opacity: .45; } }
@keyframes onda { from { opacity: .3; } to { opacity: 0; transform: scale(1); } }
@keyframes fechar { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes sumir { to { opacity: 0; } }
@keyframes deslizar { to { opacity: 0; transform: translateX(40px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::backdrop { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
