* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 2.5em;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.player-info, .multiplayer-info {
    display: flex;
    gap: 20px;
}

.player-info span, .multiplayer-info span {
    font-weight: bold;
    color: #555;
}

#score, #highScore, #playerCount, #leader {
    color: #667eea;
    font-size: 1.2em;
}

#gameCanvas {
    border: 3px solid #333;
    border-radius: 8px;
    display: block;
    margin: 0 auto 20px;
    background: #f0f0f0;
}

.controls {
    text-align: center;
    margin-bottom: 20px;
}

.controls p {
    margin-bottom: 10px;
    color: #666;
}

#startBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#startBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#startBtn:active {
    transform: translateY(0);
}

.leaderboard {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.leaderboard h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5em;
}

#leaderboardList {
    list-style: none;
}

#leaderboardList li {
    padding: 8px 12px;
    margin-bottom: 5px;
    background: white;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    transition: background 0.2s;
}

#leaderboardList li:hover {
    background: #e9ecef;
}

#leaderboardList li:first-child {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    font-weight: bold;
}