/* New Split Layout Styles */

.score-card-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface-color);
    border-radius: var(--radius);
}

.player-tabs {
    display: flex;
    background: var(--bg-color);
    overflow-x: auto;
    border-bottom: 1px solid var(--border-color);
    padding: 0 10px;
    flex-shrink: 0;
}

.tab-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}
.tab-btn:hover { color: var(--text-color); }
.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.turn-dot { color: var(--accent-color); margin-left: 4px; }

.score-split-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: grid;
    gap: 20px;
    /* Default single column for mobile */
    grid-template-columns: 1fr; 
}

/* Side-by-Side on wider screens */
@media (min-width: 900px) { /* Split point for Unfolded Fold / Tablet */
    .score-split-container {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.score-section {
    background: var(--surface-color);
}
.score-section h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.score-table {
    width: 100%;
    border-collapse: collapse;
}

.score-table th, .score-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    font-size: 14px;
}
.score-table th:first-child, .score-table td:first-child {
    text-align: left;
    background: var(--surface-color); /* No Sticky needed inside sections usually */
    font-weight: 600;
    width: 120px;
}

/* History vs Current */
.current-game-col {
    background-color: rgba(var(--primary-color), 0.05);
    border-left: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
}
.current-game-cell {
    background-color: rgba(var(--primary-color), 0.02);
    border-left: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    font-weight: bold;
}
.history-cell {
    color: var(--text-secondary);
}

.active-turn {
    background: var(--active-turn-bg);
    cursor: pointer;
}
.active-turn:hover {
    background: var(--highlight-bg);
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    .tab-btn { padding: 10px 15px; font-size: 14px; }
    .score-table th, .score-table td { padding: 8px 4px; font-size: 13px; }
    .score-section h3 { font-size: 12px; }
}
