body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    text-align: center;
    max-width: 700px;
}

.game-area {
    background: white;
    padding: 25px;
    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.1rem;
    margin-bottom: 10px;
    font-weight: bold;
    color: #2c3e50;
    min-height: 1.5em;
}

.game-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.opponents-area {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.opponent-panel {
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 12px 18px;
    min-width: 120px;
    cursor: pointer;
    transition: all 0.2s;
}

.opponent-panel:hover:not(.disabled) {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

.opponent-panel.selected {
    border-color: #e74c3c;
    background: #fff5f5;
}

.opponent-panel.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.opponent-panel .name { font-weight: 600; margin-bottom: 5px; }
.opponent-panel .card-count { font-size: 0.85rem; color: #666; }
.opponent-panel .book-count { font-size: 0.8rem; color: #27ae60; }

.action-log {
    background: #fef9e7;
    border: 1px solid #f9e79f;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    min-height: 2em;
    color: #7d6608;
}

.hand-area { margin-bottom: 15px; }
.hand-area h3, .books-area h3 { font-size: 0.9rem; color: #666; margin-bottom: 8px; }

.hand {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    width: 55px;
    height: 80px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.card:hover { transform: translateY(-5px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
.card.selected { border-color: #e74c3c; background: #fff5f5; transform: translateY(-8px); }
.card .rank { font-size: 1.1rem; font-weight: bold; }
.card .suit { font-size: 1.2rem; }
.card.hearts, .card.diamonds { color: #e74c3c; }
.card.clubs, .card.spades { color: #2c3e50; }

.books-area { margin-bottom: 20px; }
.books {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.book {
    background: #e8f8f5;
    border: 2px solid #27ae60;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #27ae60;
}

.game-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.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);
}

/* Rank picker modal */
.rank-picker-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.rank-picker-content {
    background: white;
    border-radius: 12px;
    padding: 25px;
    max-width: 350px;
    text-align: center;
}

.rank-picker-content h3 { margin-bottom: 15px; }

.rank-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.rank-option {
    padding: 10px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    background: white;
    transition: all 0.2s;
}

.rank-option:hover { border-color: #3498db; background: #eaf2f8; }

@media (max-width: 500px) {
    .card { width: 45px; height: 65px; font-size: 0.8rem; }
    .game-area { padding: 15px; }
}
