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;
}

/* Scoreboard */
.scoreboard {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.score-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.score-name {
    font-size: 0.9rem;
    color: var(--text-muted, #666);
    font-weight: 600;
}

.score-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.score-vs {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-muted, #999);
}

.score-player.active .score-name {
    color: var(--primary-color);
}

/* Round indicator */
.round-indicator {
    font-size: 1rem;
    color: var(--text-muted, #666);
    margin-bottom: 10px;
    font-weight: 600;
}

/* Status */
.status {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: bold;
    color: #2c3e50;
    min-height: 1.5em;
}

/* Choice buttons */
.choices {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.choice-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 25px;
    background: #f8f9fa;
    border: 3px solid #e9ecef;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.choice-btn:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.choice-btn:active {
    transform: translateY(0);
}

.choice-btn.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.choice-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.choice-emoji {
    font-size: 3rem;
    margin-bottom: 8px;
}

.choice-label {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Cover screen for local mode */
.cover-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color, #2c3e50));
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 10;
}

.cover-screen h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.game-area {
    position: relative;
}

/* Result display */
.result-display {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.result-choices {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.result-player {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-name {
    font-size: 0.85rem;
    color: var(--text-muted, #666);
    margin-bottom: 5px;
}

.result-emoji {
    font-size: 3rem;
    animation: resultReveal 0.5s ease-out;
}

@keyframes resultReveal {
    from {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.result-vs {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-muted, #999);
}

.result-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.result-text.tie {
    color: var(--text-muted, #999);
}

.result-text.win {
    color: #27ae60;
}

/* Round history */
.round-history {
    margin: 15px 0;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.round-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #f0f0f0;
    color: #666;
}

.round-badge.p1-win {
    background: #d5f5e3;
    color: #27ae60;
}

.round-badge.p2-win {
    background: #fadbd8;
    color: #e74c3c;
}

.round-badge.tie {
    background: #fef9e7;
    color: #f39c12;
}

/* Game buttons */
.game-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

#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: 400px) {
    .choice-btn {
        padding: 15px;
        min-width: 80px;
    }

    .choice-emoji {
        font-size: 2.2rem;
    }

    .scoreboard {
        gap: 10px;
    }
}
