* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

h1 {
    color: #333;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.dica-container {
    background: linear-gradient(135deg, #ffeaa7, #fab1a0);
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #e17055;
    min-width: 250px;
}

.dica-label {
    background: #e17055;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9em;
    white-space: nowrap;
}

.dica-texto {
    font-weight: bold;
    color: #2d3436;
    font-size: 1em;
    text-align: center;
    flex: 1;
}

.game-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
}

.forca {
    flex: 1;
    min-width: 200px;
    display: flex;
    justify-content: center;
}

.game-info {
    flex: 2;
    min-width: 300px;
}

.palavra {
    font-size: 2em;
    letter-spacing: 10px;
    text-align: center;
    margin: 20px 0;
    font-weight: bold;
    color: #333;
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.letra {
    display: inline-block;
    margin: 0 5px;
    min-width: 30px;
    text-align: center;
}

.letras-erradas {
    margin: 20px 0;
    text-align: center;
}

.letras-erradas h3 {
    color: #e74c3c;
    margin-bottom: 10px;
}

#letras-erradas-container {
    font-size: 1.5em;
    letter-spacing: 5px;
    color: #e74c3c;
    font-weight: bold;
    min-height: 30px;
}

.tentativas {
    text-align: center;
    margin: 15px 0;
    font-size: 1.2em;
    color: #333;
}

.tentativas span {
    font-weight: bold;
    color: #e74c3c;
}

.teclado {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin: 20px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.tecla {
    padding: 12px;
    font-size: 1.1em;
    font-weight: bold;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tecla:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.tecla:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.tecla.errada {
    background: #e74c3c;
}

.tecla.correta {
    background: #27ae60;
}

.controles {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

button {
    padding: 12px 25px;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

#novo-jogo {
    background: #27ae60;
    color: white;
}

#novo-jogo:hover {
    background: #219a52;
    transform: translateY(-2px);
}

#dica {
    background: #f39c12;
    color: white;
}

#dica:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.mensagem {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 30px 50px;
    border-radius: 10px;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    display: none;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.mensagem.mostrar {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .dica-container {
        min-width: 200px;
    }
    
    .game-container {
        flex-direction: column;
        align-items: center;
    }
    
    .teclado {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .palavra {
        font-size: 1.5em;
        letter-spacing: 5px;
    }
    
    h1 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .teclado {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .container {
        padding: 15px;
    }
    
    .palavra {
        font-size: 1.2em;
        letter-spacing: 3px;
    }
    
    .dica-container {
        flex-direction: column;
        gap: 8px;
        padding: 15px;
    }
    
    .dica-label {
        align-self: center;
    }
}