body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    text-align: center;
    max-width: 600px;
}

.game-area {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    color: var(--primary-color);
    margin: 0;
}

.status {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: bold;
    color: #2c3e50;
    min-height: 1.5em;
}

/* Scores */
.scores {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.score-badge {
    background: #ecf0f1;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c3e50;
}

/* Hangman Drawing */
.hangman-drawing {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.hangman-svg {
    width: 180px;
    height: 180px;
}

.hangman-part {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hangman-part.visible {
    opacity: 1;
}

/* Wrong guesses counter */
.wrong-count {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-bottom: 15px;
}

/* Word Display */
.word-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.word-letter {
    width: 40px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    border-bottom: 3px solid #2c3e50;
    text-transform: uppercase;
}

.word-letter.revealed {
    color: #27ae60;
    border-bottom-color: #27ae60;
}

/* Letter Buttons */
.letter-buttons {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    max-width: 350px;
    margin: 0 auto 20px;
}

.letter-btn {
    padding: 10px 4px;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    background: white;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s;
}

.letter-btn:hover:not(:disabled) {
    background: #3498db;
    border-color: #3498db;
    color: white;
    transform: translateY(-1px);
}

.letter-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.letter-btn.correct {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

.letter-btn.wrong {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

/* Game buttons */
.game-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

#exit-game-btn {
    padding: 10px 20px;
    font-size: 1rem;
}

/* Online info */
.online-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.opponent-name {
    font-weight: 600;
    color: var(--text-muted, #666);
}

/* Responsive */
@media (max-width: 460px) {
    .word-letter {
        width: 30px;
        height: 40px;
        font-size: 1.4rem;
    }

    .word-display {
        gap: 6px;
    }

    .letter-buttons {
        max-width: 280px;
        gap: 4px;
    }

    .letter-btn {
        padding: 8px 2px;
        font-size: 0.85rem;
    }

    .hangman-svg {
        width: 140px;
        height: 140px;
    }
}
