/* ==========================================================================
   RESET E CONFIGURAÇÃO DA SPLASH SCREEN (TELA DE ENTRADA)
   ========================================================================== */
.splash-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #064e3b 100%);
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center;     /* Centraliza verticalmente */
    text-align: center;
    color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    cursor: pointer;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

/* Força os elementos a ficarem um embaixo do outro */
.splash-content {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    max-width: 500px;
    width: 100%;
}

/* LOGO EMOTICON COM ANIMAÇÃO DE PULSAÇÃO */
.splash-logo {
    font-size: 5rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: pulseSuave 2.5s infinite ease-in-out;
}

/* TÍTULO PRINCIPAL COM GRADIENTE CORRIGIDO */
.splash-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: -0.05em;
    background: linear-gradient(to right, #ffffff, #a7f3d0);
    
    /* Suporte completo para renderização de texto vazado com gradiente */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback de segurança para navegadores antigos */
}

/* SUBTÍTULO */
.splash-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    margin: 0 0 40px 0;
    font-weight: 400;
    line-height: 1.5;
}

/* SPINNER DE CARREGAMENTO DISCRETO */
.splash-loader {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* PROMPT DE CLIQUE INTERMITENTE (CALL TO ACTION) */
.click-prompt {
    font-size: 0.95rem;
    color: #a7f3d0;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: piscar 1.8s infinite ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.finger-icon {
    font-size: 1.1rem;
}

/* ==========================================================================
   KEYFRAMES DAS ANIMAÇÕES (EFEITOS VISUAIS)
   ========================================================================== */

/* Suavidade no surgimento dos elementos */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Efeito pulsação com brilho na maçã */
@keyframes pulseSuave {
    0%, 100% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 0px rgba(16, 185, 129, 0)); 
    }
    50% { 
        transform: scale(1.06); 
        filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.4)); 
    }
}

/* Rotação contínua do Loader */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Efeito piscante no texto de instrução */
@keyframes piscar {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* TRANSICÃO DE SAÍDA (EFEITO DISPARADO VIA JS AO CLICAR) */
.splash-fade-out {
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none; /* Evita cliques duplos durante a transição */
}