/* Estilo Principal do Container */
.jogo-forca-container {
    font-family: 'Anek Latin', sans-serif;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f4f7f9;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e0e0e0;
}

.jogo-forca-titulo {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Layout Principal: Desenho + Informações */
.jogo-forca-main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.forca-desenho-container {
    flex-shrink: 0;
}

.forca-desenho {
    stroke: #333;
    stroke-width: 4;
    stroke-linecap: round;
    fill: transparent;
}

.forca-parte-corpo {
    display: none; /* Esconde todas as partes do corpo inicialmente */
    stroke: #c9302c;
    stroke-width: 4;
}

.forca-jogo-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Dica e Palavra */
.forca-dica {
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
    min-height: 20px;
}

.palavra-container {
    display: flex;
    gap: 10px;
    margin: 1rem 0;
    min-height: 50px;
}

.letra {
    font-size: 2.5rem;
    font-weight: 600;
    color: #007fbf;
    width: 40px;
    text-align: center;
    border-bottom: 4px solid #333;
    line-height: 1.2;
}

/* Letras Erradas */
.letras-erradas-container {
    font-size: 1rem;
    color: #777;
    min-height: 40px;
}

.letras-erradas-container p {
    margin: 0;
}

#letras-erradas {
    color: #c9302c;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Teclado Virtual */
.teclado-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.tecla {
    font-family: inherit;
    font-weight: bold;
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border: none;
    background-color: #fff;
    color: #333;
    border-radius: 6px;
    box-shadow: 0 3px 0 #ccc;
    transition: all 0.2s ease;
}

.tecla:hover {
    background-color: #e6e6e6;
}

.tecla:disabled {
    cursor: not-allowed;
    box-shadow: 0 3px 0 #aaa;
}

.tecla.correta {
    background-color: #28a745;
    color: white;
    box-shadow: 0 3px 0 #1e7e34;
}

.tecla.incorreta {
    background-color: #dc3545;
    color: white;
    box-shadow: 0 3px 0 #b21f2d;
}

/* Mensagem Final e Botão de Reinício */
.mensagem-final-container {
    display: flex; /* Usado para mostrar/esconder */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(244, 247, 249, 0.85);
    backdrop-filter: blur(5px);
}

#mensagem-final-texto {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

#reiniciar-jogo-btn {
    font-family: inherit;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    margin-top: 1rem;
    cursor: pointer;
    border: none;
    background-color: #007fbf;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 0 #005a87;
    transition: all 0.2s ease;
}

#reiniciar-jogo-btn:hover {
    background-color: #006a9f;
}

/* Responsividade */
@media (max-width: 768px) {
    .jogo-forca-container {
        padding: 1rem;
    }
    .jogo-forca-main {
        flex-direction: column;
    }
    .letra {
        font-size: 2rem;
        width: 30px;
    }
    .tecla {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}