/* Correção de Layout */
body.modo-aniversario {
    overflow-x: hidden; /* Impede a barra branca lateral */
    background-color: #1a002e !important; /* Roxo bem escuro no fundo */
}

/* Efeito Mágico Global */
.modo-aniversario {
    --dourado-niver: #fff3a3;
    filter: saturate(1.2) brightness(1.1); 
    transition: filter 1s ease;
}

/* Forçar o brilho no container principal */
.modo-aniversario .fundo2 {
    background-image: 
        linear-gradient(rgba(46, 0, 77, 0.6), rgba(10, 10, 10, 0.7)), 
        url("imagens/logo.webp") !important;
    box-shadow: inset 0 0 100px rgba(212, 175, 55, 0.4), 0 0 50px rgba(157, 78, 221, 0.3);
    border-left: 1px solid var(--dourado-niver);
    border-right: 1px solid var(--dourado-niver);
}

/* Destaque no Nome da Nori */
.modo-aniversario #lider h2 {
    color: var(--dourado-niver) !important;
    text-shadow: 0 0 15px #fff, 0 0 30px #d4af37;
    animation: brilhoNome 1.5s infinite alternate ease-in-out;
}

@keyframes brilhoNome {
    from { transform: scale(1); text-shadow: 0 0 10px #d4af37; }
    to { transform: scale(1.08); text-shadow: 0 0 25px #fff, 0 0 40px #d4af37; }
}

@keyframes cairParticula {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(105vh) rotate(360deg); opacity: 0; }
}

/* Estilização do Botão Central */
.botao-niver-central {
    display: block;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px double var(--dourado);
    background: black;
    color: var(--dourado);
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    margin: 60px auto;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    z-index: 10;
    position: relative;
}

.botao-niver-central:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px var(--dourado);
}

/* Botão em modo ANIVERSÁRIO */
.modo-aniversario .botao-niver-central {
    background: radial-gradient(circle, #9d4edd, #2e004d);
    color: white;
    border-color: white;
    text-shadow: 0 0 10px white;
    box-shadow: 0 0 60px rgba(157, 78, 221, 0.8);
    animation: pulsarNiver 2s infinite;
}

@keyframes pulsarNiver {
    0% { box-shadow: 0 0 20px #9d4edd; }
    50% { box-shadow: 0 0 60px #d4af37, 0 0 20px #fff; }
    100% { box-shadow: 0 0 20px #9d4edd; }
}

/* Esconder o botão antigo se ele ainda existir por ID ou classe */
.btn-toggle-niver { display: none; }

/* --- CONFETES INFINITOS --- */
.particula-brilhante {
    position: fixed;
    top: -20px;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 9999;
    animation: cairParticula 5s linear infinite; /* Infinite aqui */
}

/* Adicionando o emoji de confete sutil no topo das partículas */
.particula-brilhante::before {
    content: "🎊";
    font-size: 10px;
    opacity: 0.7;
}

@keyframes cairParticula {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}

/* --- LANÇADORES NOS CANTOS 🎉 --- */
.modo-aniversario::before,
.modo-aniversario::after {
    
    content: "🎉";
    position: fixed;
    bottom: 20px;
    font-size: 3rem;
    z-index: 10000;
    animation: vibrarFesta 0.5s infinite alternate;
}

.modo-aniversario::before { left: 20px; }
.modo-aniversario::after { right: 20px; transform: scaleX(-1); }

@keyframes vibrarFesta {
    from { transform: rotate(5deg); }
    to { transform: rotate(-15deg); }
}

/* --- BORDAS COM BRILHO CAMINHANDO --- */
/* Isso será aplicado aos cards e seções no modo niver */
.modo-aniversario .cardM, 
.modo-aniversario .cardV, 
.modo-aniversario .gold-bg,
.modo-aniversario .card-cultista,
.modo-aniversario .card-vigilante {
    position: relative;
    overflow: hidden;
    border: none !important; /* Removemos a borda simples para usar a animada */
    background: #111;
    z-index: 1;
}

/* O efeito da borda que "corre" */
.modo-aniversario .cardM::before, 
.modo-aniversario .cardV::before,
.modo-aniversario .gold-bg::before,
.modo-aniversario .card-cultista::before,
.modo-aniversario .card-vigilante::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        var(--dourado-niver), 
        #9d4edd, 
        transparent 30%
    );
    animation: bordaGira 4s linear infinite;
    z-index: -2;
}

/* Fundo interno para cobrir o centro do gradiente e parecer uma borda */
.modo-aniversario .cardM::after, 
.modo-aniversario .cardV::after,
.modo-aniversario .gold-bg::after,
.modo-aniversario .card-cultista::after,
.modo-aniversario .card-vigilante::after {
    content: '';
    position: absolute;
    inset: 3px; /* Espessura da borda */
    background: #0d0216;
    border-radius: inherit;
    z-index: -1;
}

@keyframes bordaGira {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); z-index: -2; }
}

/* Emojis espalhados pelas laterais */
.emoji-canto {
    position: fixed;
    font-size: 2rem;
    z-index: 9998;
    pointer-events: none;
    animation: saltarEmoji 2s ease-out forwards;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

@keyframes saltarEmoji {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    20% { transform: scale(1.2) rotate(20deg); opacity: 1; }
    100% { transform: scale(1) translateY(-50px); opacity: 0; }
}

/* Bordas Brilhantes "Caminhando" */
.modo-aniversario .cardM, 
.modo-aniversario .cardV, 
.modo-aniversario .gold-bg,
.modo-aniversario .purple-bg,
.modo-aniversario .white-bg {
    position: relative;
    border: none !important;
    z-index: 1;
    overflow: hidden;
}

/* O rastro de luz giratório */
.modo-aniversario .cardM::before, 
.modo-aniversario .cardV::before,
.modo-aniversario .gold-bg::before,
.modo-aniversario .purple-bg::before,
.modo-aniversario .white-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        #d4af37, 
        #ffffff, 
        #9d4edd, 
        transparent 40%
    );
    animation: rotateBorda 4s linear infinite;
    z-index: -2;
}

/* Fundo para criar o efeito de borda fina */
.modo-aniversario .cardM::after, 
.modo-aniversario .cardV::after,
.modo-aniversario .gold-bg::after,
.modo-aniversario .purple-bg::after,
.modo-aniversario .white-bg::after {
    content: '';
    position: absolute;
    inset: 3px; /* Grossura da borda */
    background: #0d0216; /* Cor de fundo interna */
    border-radius: 8px;
    z-index: -1;
}

@keyframes rotateBorda {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Partículas Infinitas com emoji sutil */
.particula-brilhante {
    position: fixed;
    top: -20px;
    width: 8px;
    height: 8px;
    z-index: 9999;
    pointer-events: none;
    border-radius: 2px;
    animation: cairConfete 4s linear forwards;
}

.particula-brilhante::after {
    content: '🎊';
    font-size: 8px;
    position: absolute;
    top: -10px;
    opacity: 0.5;
}

@keyframes cairConfete {
    to { transform: translateY(105vh) rotate(360deg); }
}

/* Animação suave para quando o texto for trocado */
#hero h1, #hero p, #sobre h2, #sobre p, #lider p {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.modo-aniversario #hero h1 {
    animation: bounceIn 1s centered;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Ajuste específico para os cards dos Vigilantes no modo niver */
.modo-aniversario .cardV {
    background: #fdfdfd; /* Mantém o fundo claro original */
    border: none !important;
    z-index: 1;
}

.modo-aniversario .cardV::before {
    background: conic-gradient(
        transparent, 
        #00d4ff, /* Azul Neon */
        #9d4edd, /* Roxo */
        transparent 30%
    );
    animation: bordaGira 3s linear infinite; /* Um pouco mais rápido para parecer tecnológico */
}

/* Força o fundo interno dos cards a ficar escuro no modo niver */
.modo-aniversario .cardV::after, 
.modo-aniversario .white-bg::after {
    content: '';
    position: absolute;
    inset: 3px; /* Grossura da borda */
    background: #0d0216 !important; /* Cor escura do aniversário */
    border-radius: 8px;
    z-index: -1;
}


.modo-aniversario .white-bg {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3); /* Brilho azulado suave na seção branca */
    transition: box-shadow 1s ease;
}



/* Garante que o texto fique branco para aparecer no fundo escuro */
.modo-aniversario .cardV h3, 
.modo-aniversario .cardV p {
    color: white !important;
    position: relative;
    z-index: 2;
}

/* Remove qualquer fundo branco que o card original possa ter */
.modo-aniversario .cardV {
    background: transparent !important;
    box-shadow: none !important;
}

/* Quando estiver no modo aniversário DENTRO da página de vigilantes */
.modo-aniversario .fundo-vigilantes { /* Ajuste para a classe de fundo da sua página */
    background: radial-gradient(circle at center, #001a33 0%, #050505 100%) !important;
    transition: background 1s ease;
}

/* Alterando os títulos para um Neon Azul/Prata */
.modo-aniversario .vigilantes-section h2 {
    color: #00d4ff !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.7), 0 0 20px rgba(0, 212, 255, 0.4);
    animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
    from { opacity: 0.8; }
    to { opacity: 1; text-shadow: 0 0 15px #00d4ff, 0 0 30px #ffffff; }
}

.modo-aniversario .card-vigilante {
    background: rgba(255, 255, 255, 0.05) !important; /* Quase transparente */
    backdrop-filter: blur(10px); /* Efeito de vidro fosco */
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* O brilho caminhando dos Vigilantes (Azul e Branco) */
.modo-aniversario .card-vigilante::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(
        transparent, 
        #00d4ff, /* Azul Neon */
        #ffffff, /* Branco Brilhante */
        transparent 40%
    );
    animation: girarBorda 3s linear infinite;
    z-index: -2;
}

.modo-aniversario .card-vigilante::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #050505; /* Fundo interno do card */
    border-radius: 8px;
    z-index: -1;
}

/* Texto dos cards dos vigilantes */
.modo-aniversario .card-vigilante h3, 
.modo-aniversario .card-vigilante p {
    color: #e0e0e0 !important;
}

/* Título dos Vigilantes no Modo Aniversário */
/* --- AMBIENTAÇÃO VIGILANTE: FESTA HOLOGRÁFICA --- */

.modo-aniversario.tema-vigilante {
    /* Um fundo que não é totalmente escuro: mistura azul profundo com luzes roxas e douradas nas bordas */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(157, 78, 221, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 40%),
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
        url("imagens/logo.webp") !important;
    background-color: #0f021a !important; /* Roxo quase preto em vez de preto puro */
    transition: background 1s ease;
}

/* TÍTULO: DIAMANTE BRILHANTE (MUITO CHAMATIVO) */
.modo-aniversario #txt-vigilantes-titulo {
    color: #fff !important;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: bold;
    
    /* Efeito de arco-íris prateado/holográfico */
    background: linear-gradient(120deg, #fff, #c0c0c0, #fff, #9d4edd, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Brilho que "explode" para fora */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8))
            drop-shadow(0 0 20px rgba(157, 78, 221, 0.4));
            
    animation: brilhoHolografico 3s linear infinite, pulsarTitulo 2s infinite alternate;
    letter-spacing: 8px;
}

@keyframes brilhoHolografico {
    to { background-position: 200% center; }
}

@keyframes pulsarTitulo {
    from { transform: scale(1); filter: brightness(1); }
    to { transform: scale(1.05); filter: brightness(1.4); }
}

/* TEXTO DE DESCRIÇÃO: AGORA VIBRANTE */
.modo-aniversario #txt-vigilantes-desc {
    color: #f0e6ff !important;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.5);
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

/* LINHA DE DIVISÃO: FEIXE DE LUZ */
.modo-aniversario .content-section br + br {
    display: block;
    content: "";
    height: 3px;
    width: 300px;
    background: linear-gradient(90deg, transparent, #fff, #9d4edd, #d4af37, #fff, transparent);
    margin: 25px auto;
    box-shadow: 0 0 20px #fff;
    border-radius: 50%;
}

/* CARDS: EFEITO "FESTA NO DISCORD" */
.modo-aniversario .card-vigilante {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.2) !important;
}

.modo-aniversario .card-vigilante::before {
    /* Borda colorida e rápida */
    background: conic-gradient(
        #fff, #d4af37, #9d4edd, #00d4ff, #fff
    ) !important;
    animation: bordaGira 2s linear infinite !important;
}

/* Estilo do botão de presente */
/* --- BOTÃO DE PRESENTE (SÓ APARECE NO MODO ANIVERSÁRIO) --- */
/* aniversario.css */

/* 1. Estado Base (Escondido) */
.botao-presente-secreto {
    display: none !important; 
    width: 180px;
    height: 180px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: bold;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
    border: 3px solid #fff;
    cursor: pointer;
    position: relative;
    z-index: 999; /* Garante que fique acima de tudo */
    background: linear-gradient(135deg, #9d4edd, #ff00ff, #d4af37);
    background-size: 200% 200%;
    transition: transform 0.3s ease;
}

@keyframes tremerPresente {
    0%, 80% { transform: rotate(0deg) scale(1); }
    85% { transform: rotate(5deg) scale(1.05); }
    90% { transform: rotate(-5deg) scale(1.05); }
    95% { transform: rotate(5deg) scale(1.05); }
    100% { transform: rotate(0deg) scale(1); }
}

@keyframes auraPresente {
    0% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.4); }
    100% { box-shadow: 0 0 40px rgba(255, 0, 255, 0.8), 0 0 20px rgba(212, 175, 55, 0.5); }
}

/* 2. Ativação (Quando o body tem a classe) */
body.modo-aniversario .botao-presente-secreto {
    display: flex !important; /* FORÇA a aparição */
    animation: 
        tremerPresente 2s infinite ease-in-out, 
        auraPresente 1.5s infinite alternate ease-in-out !important;
}

/* 3. Efeito de Confete no Hover */


/* Animações (Certifique-se que elas não estão duplicadas com nomes diferentes) */


/* --- EFEITO DE BORDAS ANIMADAS (PARA CARDS) --- */
/* Esta classe deve ser adicionada aos cards no modo niver */
.modo-aniversario .cardM, 
.modo-aniversario .cardV, 
.modo-aniversario .gold-bg {
    position: relative;
    border: none !important;
    background: #0d0216 !important; /* Fundo escuro interno */
    z-index: 1;
    overflow: hidden;
    padding: 20px;
}

/* --- ANIMAÇÕES --- */
@keyframes rotateBorda {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* O rastro de luz giratório */
.modo-aniversario .cardM::before, 
.modo-aniversario .cardV::before,
.modo-aniversario .gold-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        #d4af37, 
        #ffffff, 
        #9d4edd, 
        transparent 40%
    );
    animation: rotateBorda 4s linear infinite;
    z-index: -2;
}

/* Camada interna para dar o efeito de borda fina */
.modo-aniversario .cardM::after, 
.modo-aniversario .cardV::after,
.modo-aniversario .gold-bg::after {
    content: '';
    position: absolute;
    inset: 4px; /* Grossura da borda */
    background: #0d0216;
    border-radius: 8px;
    z-index: -1;
}

.botao-presente-secreto:active {
    transform: scale(0.9); /* O botão "afunda" ao clicar */
    filter: brightness(1.5);
}

.musica-pop-up {
    position: fixed; /* Fixa em relação à tela (viewport) */
    top: 20px;       /* Distância do topo da tela */
    left: -400px;    /* Escondido à esquerda */
    background: rgba(13, 2, 22, 0.95);
    border-left: 4px solid #9d4edd;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.6);
    transition: left 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 99999; /* Garante que fique acima de tudo */
    backdrop-filter: blur(10px);
    pointer-events: none; /* Evita que o mouse atrapalhe se ela aparecer sobre algo clicável */
}

.musica-pop-up.mostrar {
    left: 0; /* Desliza para dentro da tela */
}

.nota-musical { font-size: 1.5rem; animation: pular 1s infinite alternate; }

.info-musica { display: flex; flex-direction: column; }

.info-musica .label { font-size: 0.7rem; color: #d4af37; text-transform: uppercase; letter-spacing: 1px; }

.info-musica .nomeMusica { color: white; font-weight: bold; font-family: 'Cinzel', serif; }

.info-musica .autorMusica { color: #bbb; font-size: 0.8rem; }

@keyframes pular {
    from { transform: scale(1); }
    to { transform: scale(1.2); filter: drop-shadow(0 0 5px #fff); }
}


/* ----------------------------------------------------------------------------
   RESPONSIVIDADE MOBILE — aniversario.css (até 768px)
   ---------------------------------------------------------------------------- */
@media (max-width: 768px) {

    /* Botão central de aniversário menor para não ocupar a tela toda */
    .botao-niver-central {
        width: 140px;
        height: 140px;
        font-size: 0.85rem;
        margin: 30px auto;
    }

    /* Botão presente secreto: evita que encoste nas bordas */
    .botao-presente-secreto {
        font-size: 0.8rem;
        padding: 12px 18px;
        max-width: 90vw;
        text-align: center;
    }

    /* Pop-up de música: no mobile aparece vindo de cima (não da esquerda),
       pois a tela é estreita demais para o deslize lateral */
    .musica-pop-up {
        top: -120px;   /* Escondido acima da tela */
        left: 0;
        right: 0;
        width: 100%;
        border-left: none;
        border-bottom: 4px solid #9d4edd;
        border-radius: 0 0 10px 10px;
        justify-content: center;
        transition: top 0.5s ease;
    }

    .musica-pop-up.mostrar {
        top: 0;
        left: 0;
    }
}