
body {
    margin: 0;
    overflow: hidden;
    height: 100vh;
    font-family: 'Poppins', sans-serif;
    position: relative;
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
    background-size: 400% 400%;
    animation: gradientBG 30s ease infinite;
}

#muteButton {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 10;
    background-color: #ff00cc;
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 0 10px #ff00cc;
    transition: background 0.3s;
}

#muteButton:hover {
    background-color: #e600ac;
}

.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.02);
    pointer-events: none;
    z-index: 1;
}

.word {
    position: absolute;
    top: -50px;
    font-size: 26px;
    animation: fall linear infinite;
    opacity: 0.8;
    font-weight: bold;
    color: #ff00cc;
    text-shadow: 0 0 5px #ff00cc, 0 0 10px #ff00cc, 0 0 20px #ff00cc;
    white-space: nowrap;
    z-index: 2;
    transition: transform 0.4s, filter 0.4s;
}

.word:hover {
    filter: brightness(150%) saturate(150%);
    text-shadow: 0 0 10px #ff00cc, 0 0 20px #ff00cc, 0 0 30px #ff00cc;
}

@keyframes fall {
    0% { transform: translateY(-100px) rotate(0deg) scale(1); }
    100% { transform: translateY(100vh) rotate(360deg) scale(1.2); }
}

@keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

@media (max-width: 768px) {
    .word {
        font-size: 18px;
    }
    #muteButton {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .word {
        font-size: 14px;
    }
    #muteButton {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@keyframes efeitoNeon {
    0% { filter: brightness(1) drop-shadow(0 0 2px #fff); }
    50% { filter: brightness(1.4) drop-shadow(0 0 8px #ff00cc); }
    100% { filter: brightness(1) drop-shadow(0 0 2px #fff); }
}

@keyframes efeitoRosto {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(2deg); }
    100% { transform: scale(1) rotate(-2deg); }
}

.efeito-palavra {
    animation-name: fall, efeitoNeon;
    animation-duration: var(--dur, 8s), 2s;
    animation-iteration-count: infinite, infinite;
    animation-timing-function: linear, ease-in-out;
}

.efeito-rosto {
    animation-name: fall, efeitoRosto;
    animation-duration: var(--dur, 8s), 3s;
    animation-iteration-count: infinite, infinite;
    animation-timing-function: linear, ease-in-out;
}

.explodir {
    animation: none !important;
    transform: scale(1.6) !important;
    transition: transform 0.2s ease;
}

/* Mensagem de boas-vindas */
#boasvindas {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 10px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 18px;
    z-index: 15;
    font-family: 'Poppins', sans-serif;
    animation: slideDown 2s ease forwards;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Rastro de mouse */
.trail {
    position: absolute;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    animation: trailFade 1s forwards;
}

@keyframes trailFade {
    to { opacity: 0; transform: scale(2); }
}

/* Estilo melhorado dos rostos */
.face {
    position: absolute;
    top: -100px;
    width: 64px;
    height: auto;
    animation: fall linear infinite;
    z-index: 3;
    pointer-events: auto;
    user-select: none;
    filter: drop-shadow(0 0 5px #fff);
    border-radius: 12px;
}

/* Partículas de fundo */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
    top: 0;
    left: 0;
}

.filtro-aleatorio {
    animation: filtroRosto 5s infinite alternate ease-in-out;
}

@keyframes filtroRosto {
    0%   { filter: hue-rotate(0deg) saturate(1); }
    50%  { filter: hue-rotate(180deg) saturate(2); }
    100% { filter: hue-rotate(360deg) saturate(1.5); }
}

#pontuacaoHUD {
    position: fixed;
    top: 42px;
    left: 10px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 16px;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    backdrop-filter: blur(4px);
}

.explosaoVisual {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, #ff00cc, transparent);
    pointer-events: none;
    animation: estourar 0.6s ease-out;
    z-index: 99;
}

@keyframes estourar {
    0% { transform: scale(0.2); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

#boasvindas {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 10px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 18px;
    z-index: 15;
    font-family: 'Poppins', sans-serif;
    animation: slideDown 2s ease forwards, brilhoBoas 3s infinite alternate;
}

@keyframes brilhoBoas {
    0% { color: #ffffff; text-shadow: 0 0 4px #fff; }
    100% { color: #ff00cc; text-shadow: 0 0 12px #ff00cc; }
}

#rankingHUD {
    position: fixed;
    top: 80px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 15px;
    border-radius: 12px;
    z-index: 99;
    font-family: 'Poppins', sans-serif;
}
#rankingHUD h3 { margin-top: 0; }
#rankingHUD ol { padding-left: 20px; }
#rankingHUD button {
    margin-top: 10px;
    background: #ff00cc;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

#verRankingBtn {
    position: fixed;
    top: 10px;
    left: 140px;
    z-index: 20;
    background: #222;
    color: white;
    border: 1px solid #555;
    padding: 6px 10px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

#jogadorHitbox {
    position: fixed;
    width: 30px;
    height: 30px;
    background: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
}

#gameOver {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 30px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    z-index: 999;
    border-radius: 12px;
}

#gameOver button, #gameOver a {
    padding: 10px 20px;
    background: #ff00cc;
    color: white;
    border: none;
    border-radius: 8px;
    margin-top: 10px;
    text-decoration: none;
    display: inline-block;
}
