* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a1a1a;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#gameCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.leaderboard {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    border-radius: 10px;
    min-width: 200px;
}

.leaderboard h2 {
    margin-bottom: 10px;
    text-align: center;
}

#leaderboardList {
    font-size: 14px;
}

.player-stats {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    border-radius: 10px;
}

.rpm, .score {
    margin: 5px 0;
    font-size: 16px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #222;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content h2 {
    color: #fff;
    margin-bottom: 16px;
}

.modal-content label {
    color: #fff;
    margin-bottom: 8px;
}

#playerName {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    margin-bottom: 16px;
    font-size: 16px;
}

#startGameBtn {
    padding: 10px 24px;
    background: #ff4747;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

#startGameBtn:hover {
    background: #d32f2f;
}

.connection-error {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #d32f2f;
    color: #fff;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 20px;
    z-index: 2000;
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
    text-align: center;
} 