/* Hangman specific styles */
.hangman-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.lives-container {
    display: flex;
    gap: 10px;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-light);
}

.heart {
    transition: all 0.3s ease;
    display: inline-block;
}

.heart.lost {
    opacity: 0.2;
    filter: grayscale(100%);
    transform: scale(0.8);
}

.word-display {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.letter-box {
    width: 50px;
    height: 60px;
    border-bottom: 4px solid var(--text-color);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    text-transform: uppercase;
}

.letter-box.space {
    border-bottom: none;
    width: 30px;
}

.letter-box span {
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.keyboard {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
    max-width: 600px;
}

.key-btn {
    appearance: none;
    border: none;
    background-color: #f0f4f8;
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 45px;
    text-transform: uppercase;
    outline: none;
}

.key-btn:active:not(:disabled) {
    box-shadow: var(--shadow-pressed);
    transform: scale(0.95);
}

.key-btn.correct {
    background-color: var(--success-green);
    color: white;
    box-shadow: inset -3px -3px 5px rgba(0, 0, 0, 0.1), inset 3px 3px 5px rgba(255, 255, 255, 0.2);
}

.key-btn.wrong {
    background-color: var(--secondary-coral);
    color: white;
    opacity: 0.8;
    box-shadow: inset -3px -3px 5px rgba(0, 0, 0, 0.1), inset 3px 3px 5px rgba(255, 255, 255, 0.2);
}

.key-btn:disabled {
    cursor: not-allowed;
    transform: none;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 600px) {
    .key-btn {
        padding: 10px;
        min-width: 35px;
        font-size: 1.2rem;
    }
    
    .letter-box {
        width: 35px;
        height: 45px;
        font-size: 1.8rem;
    }
}
