/* ======================================================
   STYLE-HOME.CSS - Tela Inicial (Menu Principal)
   ====================================================== */

   #screen-home {
    height: 100vh;
    /* Gradiente moderno e escuro */
    background: radial-gradient(circle at center, #2c3e50 0%, #000000 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Efeito de particulas ou textura no fundo (opcional) */
#screen-home::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
    pointer-events: none;
}

/* Título Principal */
.main-title {
    font-size: 5rem;
    margin: 0 0 60px 0;
    letter-spacing: -2px;
    text-shadow: 0 10px 20px rgba(0,0,0,0.5);
    z-index: 2;
}

.main-title span {
    color: var(--gold); /* Usa a variável do global */
    font-style: italic;
    font-family: serif;
}

/* Container dos Cartões */
.mode-cards {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 2;
}

/* Cartões de Seleção de Modo */
.card-mode {
    background: rgba(255,255,255,0.05); /* Vidro escuro */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 24px;
    width: 280px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efeito elástico */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card-mode:hover {
    transform: translateY(-15px) scale(1.05);
    background: rgba(255,255,255,0.15);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(241, 196, 15, 0.2);
}

/* Ícones dentro dos cartões */
.icon-mode {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--gold);
    transition: transform 0.3s;
}

.card-mode:hover .icon-mode {
    transform: scale(1.2) rotate(5deg);
}

.card-mode h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.card-mode p {
    margin: 0;
    color: #bdc3c7;
    font-size: 1rem;
}

/* Botão de voltar (aparece se tiver jogo ativo) */
#btn-voltar-sala-ativa {
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Responsividade */
@media (max-width: 700px) {
    .main-title { font-size: 3rem; }
    .card-mode { width: 90%; padding: 20px; }
    .mode-cards { gap: 20px; }
}