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

body {
    background: #000;
    color: #fff;
    font-family: Arial, sans-serif;
}

.auth-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background: #111;
    border-radius: 8px;
    text-align: center;
}

.auth-container input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background: #222;
    border: 1px solid #333;
    color: white;
    border-radius: 4px;
}

.auth-container button {
    width: 100%;
    padding: 10px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.auth-container a {
    color: #4CAF50;
    text-decoration: none;
}

.error {
    color: #ff4444;
    margin-bottom: 10px;
}

.success {
    color: #4CAF50;
    margin-bottom: 10px;
}

.game-container {
    text-align: center;
    padding: 20px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 20px;
}

.player-info {
    font-size: 18px;
}

.player-info a {
    color: #4CAF50;
    text-decoration: none;
}

.game-stats {
    display: flex;
    gap: 20px;
    font-size: 18px;
}

#gameCanvas {
    border: 2px solid #333;
    background: #000;
}

.pause-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 20px 40px;
    border-radius: 8px;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    display: none;
    z-index: 10;
}

#gameOver {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.hidden {
    display: none;
}

#gameOver button {
    padding: 10px 20px;
    margin: 10px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#gameOver button:hover {
    background: #45a049;
}

/* Play Now Button Styles */
.play-now-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.blinking-button {
    padding: 20px 40px;
    font-size: 24px;
    font-weight: bold;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    animation: blink 1s infinite;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.5);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.blinking-button:hover {
    background: #45a049;
    animation: none;
}

.game-over-choices {
    margin-top: 20px;
}

.game-over-choices p {
    margin-bottom: 15px;
    font-size: 18px;
}

/* Leaderboard Styles */
.leaderboard-section {
    margin-top: 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.leaderboard-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-table th {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    font-weight: bold;
}

.leaderboard-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.rank-1 { color: gold; font-weight: bold; }
.rank-2 { color: silver; font-weight: bold; }
.rank-3 { color: #cd7f32; font-weight: bold; }