.game-container {
    display: flex;          /* Align children horizontally */
    flex-direction: row; /* Side-by-side */
    align-items: flex-start; /* Align them to the top */
    gap: 20px;              /* Create a 20px gap between canvas and sidebar */
    padding: 20px;
    max-width: 1200px; /* Adjust based on your screen target */
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

#game-canvas {
    flex-shrink: 0; /* Prevents the board from getting squished */
    border: 2px solid #333;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sidebar {
    flex-grow: 1; /* Sidebar takes up all remaining space */
    min-width: 350px; /* Ensures history doesn't get too cramped */
    max-height: 600px; /* Matches canvas height */
    overflow-y: auto; /* Adds scrollbar for long history */
    padding: 15px;
    background-color: #f4f4f4;
    border-radius: 8px;
    border: 1px solid #ddd;
    min-height: 600px; /* Match canvas height */
}


#player-list {
    list-style: none;
    padding: 0;
}

#player-list li {
    padding: 10px;
    margin-bottom: 8px;
    background: white;
    border-radius: 4px;
    border-left: 5px solid #007bff; /* Nice blue accent for players */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.score-entry {
    padding: 10px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-left: 4px solid #4a90e2;
    border-radius: 4px;
}

.score-header {
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 5px;
}

.synergy-box {
    margin-top: 5px;
    font-size: 0.9em;
    color: #555;
    font-style: italic;
}

.player-card {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    min-width: 350px
}

.player-card h3 {
    margin-top: 0;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 8px;
    color: #2c3e50;
}

.player-card dl {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 8px 16px; /* Vertical and horizontal spacing */
    margin: 0;
}

.player-card dt {
    font-weight: bold;
    color: #586069;
    text-align: left;
}

.player-card dd {
    margin: 0; /* Important: removes default browser indent */
    text-align: right;
    color: #24292e;
}