/* Reset e Fontes - Mantidos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #050608; /* Preto Onyx Profundo */
    /* Modificado: Removido o gradient estático para usar o particles.js */
    color: #f3f4f6; /* Branco Suave */
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 30px 20px;
    overflow-x: hidden; /* Evita scrollbars com partículas */
}

/* Novo: Estilos para o contêiner de partículas */
.particles-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1; /* Fica atrás de tudo */
    background-color: #050608;
    background-image: radial-gradient(circle at center, #0e1410 0%, #050608 100%);
}

/* Molduras e Containers - Modificados para Revelação Controlada */
.lobby-container {
    background: #0b0d10;
    border: 2px solid #c5a85c; /* Borda de Ouro Envelhecido */
    border-radius: 4px; /* Cantos mais retos trazem ar medieval/nobre */
    max-width: 850px;
    width: 100%;
    padding: 45px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), inset 0 0 40px rgba(197, 168, 92, 0.05);
    z-index: 1; /* Garante que fique acima das partículas */
    
    /* Novo: Preparando para a revelação controlsada pelo JS */
    opacity: 0;
    transform: translateY(20px);
}

/* Nova Classe para Revelar */
.js-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Detalhe superior em Ouro */
.noble-border-top {
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #c5a85c, #e5c168, #c5a85c, transparent);
    /* Novo: Animação sutil na borda */
    animation: nobleBorderShine 4s linear infinite;
    background-size: 200% 100%;
}

/* Controlador de Música Flutuante - Mantido e Preparado */
.audio-controller {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(11, 13, 16, 0.9);
    border: 1px solid #c5a85c;
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #e5c168;
    font-family: 'Cinzel', serif;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    
    /* Novo: Preparando para a revelação controlada pelo JS */
    opacity: 0;
    transform: translateY(-20px);
}

.audio-controller.js-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.audio-controller:hover {
    background: #c5a85c;
    color: #050608;
    box-shadow: 0 0 15px rgba(197, 168, 92, 0.4);
}

.audio-controller.playing {
    border-color: #10b981; /* Fica verde quando ativa */
}

/* Cabeçalho */
.lobby-header {
    text-align: center;
    margin-bottom: 35px;
    /* Novo: Preparando para a revelação controlada pelo JS */
    opacity: 0;
    transform: translateY(10px);
}

.warning-badge-noble {
    border: 1px solid #c5a85c;
    color: #c5a85c;
    display: inline-block;
    padding: 4px 18px;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    background: rgba(197, 168, 92, 0.05);
}

.rpg-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.subtitle {
    color: #9ca3af;
    font-size: 1rem;
    font-style: italic;
    /* Novo: Preparando para a revelação controlada pelo JS */
    opacity: 0;
    transform: translateY(10px);
}

/* Contexto e Cards */
.intro-text {
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: center;
    color: #e5e7eb;
    margin-bottom: 35px;
    /* Novo: Preparando para a revelação controlada pelo JS */
    opacity: 0;
    transform: translateY(10px);
}

.features-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 35px;
    /* Novo: Preparando para a revelação controlada pelo JS */
    opacity: 0;
    transform: translateY(10px);
}

.preview-card {
    background: #11141a;
    padding: 25px;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Animação suave no hover */
    position: relative;
    overflow: hidden; /* Necessário para o card-shine */
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.preview-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.preview-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #9ca3af;
}

/* Novo: Efeito de brilho no hover do card */
.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.6s;
    z-index: 2;
}

/* Variante Ouro (P2W) */
.noble-gold {
    border: 1px solid rgba(197, 168, 92, 0.3);
}
.noble-gold h3 {
    color: #e5c168; /* Dourado Vivo */
}

/* Modificado: Hover do Card Ouro mais complexo */
.noble-hover-gold:hover {
    border-color: #e5c168;
    box-shadow: 0 10px 25px rgba(197, 168, 92, 0.2), inset 0 0 15px rgba(197, 168, 92, 0.1);
    transform: translateY(-5px);
}
.noble-hover-gold:hover .card-shine {
    left: 100%;
}

/* Variante Verde (Adulto) */
.noble-emerald {
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.noble-emerald h3 {
    color: #10b981; /* Verde Esmeralda Nobre */
}

/* Modificado: Hover do Card Verde mais complexo */
.noble-hover-emerald:hover {
    border-color: #10b981;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2), inset 0 0 15px rgba(16, 185, 129, 0.1);
    transform: translateY(-5px);
}
.noble-hover-emerald:hover .card-shine {
    left: 100%;
}

/* O Decreto Real - Aviso Pesado ("O buraco é mais embaixo") */
.disclaimer-box-noble {
    background: linear-gradient(135deg, #11141a 0%, #0c1812 100%); /* Mix de preto com fundo verde esmeralda bem escuro */
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-left: 4px solid #10b981;
    padding: 25px;
    border-radius: 4px;
    margin-bottom: 40px;
    /* Novo: Preparando para a revelação controlada pelo JS */
    opacity: 0;
    transform: translateY(10px);
}

.alert-heading {
    font-family: 'Cinzel', serif;
    color: #10b981;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.disclaimer-box-noble p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #d1d5db;
}

.heavy-warning {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 600;
}

/* Ações e Botões Nobres */
.lobby-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-top: 1px solid rgba(197, 168, 92, 0.2);
    padding-top: 35px;
    flex-wrap: wrap;
    /* Novo: Preparando para a revelação controlada pelo JS */
    opacity: 0;
    transform: translateY(10px);
}

.enter-options {
    display: flex;
    gap: 15px;
    /* Novo: Preparando para a revelação controlada pelo JS */
    opacity: 0;
    transform: translateY(10px);
}

.btn {
    font-family: 'Cinzel', serif;
    display: inline-block;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden; /* Necessário para efeitos de hover no botão */
}

.btn-exit-noble {
    background: transparent;
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.4);
}

.btn-exit-noble:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: #ffffff;
}

.btn-p2w-noble {
    background: #c5a85c;
    color: #050608;
    border: 1px solid #c5a85c;
}

.btn-p2w-noble:hover {
    background: #e5c168;
    border-color: #e5c168;
    box-shadow: 0 0 20px rgba(229, 193, 104, 0.3);
}

.btn-adult-noble {
    background: transparent;
    color: #10b981;
    border: 1px solid #10b981;
}

.btn-adult-noble:hover {
    background: #10b981;
    color: #050608;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

/* Responsividade - Mantida */
@media (max-width: 768px) {
    .features-preview {
        grid-template-columns: 1fr;
    }
    .lobby-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .enter-options {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
    .audio-controller {
        position: static;
        margin: 0 auto 20px auto;
        width: max-content;
    }
}

/* ========================================= */
/*       NOVAS ANIMAÇÕES (OS FRUFRUS)       */
/* ========================================= */

/* 1. Efeito de Brilho Metálico Sutil (Títulos e Badges) */
.noble-shine {
    position: relative;
    overflow: hidden;
}

.noble-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: nobleTextShine 6s infinite;
    z-index: 1;
}

@keyframes nobleTextShine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

/* 2. Pulsação Sutil nos Ícones (Coroa e Rosa) */
.noble-pulse {
    animation: iconPulse 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes iconPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* 3. Borda Pulsante Sutil (Decreto) */
.noble-border-pulse {
    animation: borderPulse 4s infinite;
}

@keyframes borderPulse {
    0% { border-color: rgba(16, 185, 129, 0.3); }
    50% { border-color: rgba(16, 185, 129, 0.6); box-shadow: 0 0 10px rgba(16, 185, 129, 0.2); }
    100% { border-color: rgba(16, 185, 129, 0.3); }
}

/* 4. Pulsação de Energia nos Botões de Entrada */
.noble-pulse-gold {
    box-shadow: 0 0 10px rgba(197, 168, 92, 0.3);
    animation: buttonPulseGold 2s infinite;
}

@keyframes buttonPulseGold {
    0% { box-shadow: 0 0 10px rgba(197, 168, 92, 0.3); }
    50% { box-shadow: 0 0 15px rgba(197, 168, 92, 0.5), 0 0 5px rgba(197, 168, 92, 0.2); }
    100% { box-shadow: 0 0 10px rgba(197, 168, 92, 0.3); }
}

.noble-pulse-emerald {
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
    animation: buttonPulseEmerald 2s infinite;
}

@keyframes buttonPulseEmerald {
    0% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.5), 0 0 5px rgba(16, 185, 129, 0.2); }
    100% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.3); }
}

/* 5. Texto que Falha/Treme (Fuga e Aviso Pesado) */
.text-flicker {
    animation: textFlicker 5s infinite;
}

@keyframes textFlicker {
    0%, 100% { opacity: 1; }
    41% { opacity: 1; }
    42% { opacity: 0.8; }
    43% { opacity: 1; }
    45% { opacity: 1; }
    46% { opacity: 0.8; }
    47% { opacity: 1; }
}

/* Efeito de Flicker apenas no Hover */
.text-flicker-hover:hover {
    animation: textFlickerSimple 0.3s;
}

@keyframes textFlickerSimple {
    0% { opacity: 1; }
    50% { opacity: 0.5; transform: translateX(1px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* 6. Animação de Brilho da Borda Superior */
@keyframes nobleBorderShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}