body {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    padding: 20px;
}

.game-container {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

.game-area {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.leaderboard {
    flex: 1;
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#game-board {
    width: 500px;
    height: 500px;
    position: relative;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.board-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.point {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ddd;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 10;
}

.point:hover {
    background-color: #ccc;
}

.point.player1 {
    background-color: #ff4444;
}

.point.player2 {
    background-color: #4444ff;
}

#reset-button {
    padding: 15px 30px;
    font-size: 1.2em;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

#reset-button:hover {
    background-color: #45a049;
}

#reset-confirm {
    padding: 15px 30px;
    font-size: 1.2em;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    display: none;
}

.game-over .point {
    cursor: not-allowed;
}

#turn-info.winner {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.5em;
}

#turn-info {
    font-weight: bold;
    font-size: 1.2em;
    margin: 10px 0;
}

.turn-red {
    color: #ff4444;
}

.turn-blue {
    color: #4444ff;
}

#player-setup {
    margin-bottom: 20px;
    text-align: center;
}

#player-name {
    padding: 8px;
    font-size: 1em;
    margin-right: 10px;
    width: 200px;
}

#confirm-name {
    padding: 8px 15px;
    font-size: 1em;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#game-id-input {
    padding: 8px;
    font-size: 1em;
    margin-right: 10px;
    width: 100px;
}

#create-game-btn, #join-game-btn {
    padding: 8px 15px;
    font-size: 1em;
    margin-right: 10px;
    margin-bottom: 10px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#leaderboard-list {
    list-style-type: none;
    padding: 0;
}

#leaderboard-list li {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.game-title {
    text-align: center;
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 1.5em;
    line-height: 1.2;
}

.game-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.reset-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reset-pending {
    color: #FF9800;
    font-weight: bold;
    margin-top: 10px;
    display: none;
}

.error-message {
    color: #f44336;
    font-weight: bold;
    margin: 10px 0;
}