/* Container geral para todas as animações */
.paw-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Permite clicar através da animação */
    z-index: 99999;
    overflow: hidden;
    transition: opacity 0.5s ease-out; /* Para o fade out suave */
}

/* Partícula base (usada em todas) */
.paw-particle {
    position: absolute;
    opacity: 0;
    will-change: transform, opacity; /* Otimização de performance */
}

/* --- ESTILOS DAS PARTÍCULAS ESPECÍFICAS --- */

/* BALÃO */
.paw-balao {
    width: 25px;
    height: 35px;
    background-color: #e74c3c;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    top: 105vh; /* Começa logo abaixo da tela */
    animation-name: paw-subir;
    animation-timing-function: ease-in;
    animation-fill-mode: forwards;
}
.paw-balao:nth-child(2n) { background-color: #3498db; }
.paw-balao:nth-child(3n) { background-color: #f1c40f; }
.paw-balao:nth-child(4n) { background-color: #2ecc71; }

/* FOGO DE ARTIFÍCIO */
.paw-fogo {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    top: 50%;
    animation-name: paw-explodir;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    box-shadow: 0 0 15px 4px yellow, 0 0 25px 8px rgba(255, 165, 0, 0.7); /* Mais brilho! */
}

/* CONFETE */
.paw-confete {
    width: 8px;
    height: 15px;
    background-color: #3498db;
    top: -20px;
    animation-name: paw-cair;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}
.paw-confete:nth-child(2n) { background-color: #e74c3c; }
.paw-confete:nth-child(3n) { background-color: #f1c40f; }
.paw-confete:nth-child(4n) { background-color: #2ecc71; }
.paw-confete:nth-child(5n) { background-color: #9b59b6; }

/* ESTRELA */
.paw-estrela {
    width: 3px;
    height: 3px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 8px 2px white;
    top: 50%;
    animation-name: paw-piscar;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

/* --- NOVAS ANIMAÇÕES --- */

/* NEVE */
.paw-neve {
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    top: -20px;
    animation-name: paw-nevar;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

/* BOLHA */
.paw-bolha {
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    top: 105vh;
    animation-name: paw-flutuar;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

/* --- NOVA ANIMAÇÃO: MATRIX --- */

.paw-matrix {
    font-family: 'Courier New', Courier, monospace;
    color: #00ff00; /* Verde Matrix */
    font-size: 20px;
    text-shadow: 0 0 5px #00ff00;
    top: -20px;
    animation-name: paw-matrix-fall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

/* --- KEYFRAMES (AS ANIMAÇÕES EM SI) --- */

@keyframes paw-subir {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-150vh); opacity: 0; }
}

@keyframes paw-explodir {
    0% { transform: scale(0.1); opacity: 1; }
    50% { opacity: 1; }
    100% { transform: scale(4); opacity: 0; } /* Escala maior! */
}

@keyframes paw-cair {
    0% { transform: translateY(0) rotateZ(0); opacity: 1; }
    100% { transform: translateY(100vh) rotateZ(1080deg) translateX(50px); opacity: 1; } /* Mais rotação e movimento lateral */
}

@keyframes paw-piscar {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes paw-nevar {
    0% { transform: translateY(0) translateX(0); opacity: 1; }
    100% { transform: translateY(100vh) translateX(30px); opacity: 1; }
}

@keyframes paw-flutuar {
    0% { transform: translateY(0); opacity: 0.7; }
    100% { transform: translateY(-120vh) translateX(-20px); opacity: 0; }
}

@keyframes paw-matrix-fall {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(100vh); opacity: 1; }
}