body {
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    color: #eee;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* Auth Styles */
#auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#auth-card {
    background: #252525;
    padding: 40px;
    border-radius: 12px;
    border: 2px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 350px;
    text-align: center;
}

#auth-card h2 {
    color: #4CAF50;
    margin-bottom: 10px;
}

#auth-card p {
    margin-bottom: 20px;
    font-size: 0.9em;
    opacity: 0.8;
}

#auth-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    color: white;
    box-sizing: border-box;
}

#auth-card button {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

#auth-card button:hover {
    background: #45a049;
}

.auth-footer {
    margin-top: 20px;
    font-size: 0.85em !important;
}

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

.auth-footer a:hover {
    text-decoration: underline;
}

.error-msg {
    color: #ff4444;
    margin-top: 15px;
    font-size: 0.85em;
    min-height: 1em;
}

/* Game Styles */
#game-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#ui {
    margin-bottom: 20px;
    text-align: center;
}

h1 {
    margin: 0 0 10px 0;
    color: #4CAF50;
}

p {
    margin: 5px 0;
    opacity: 0.8;
}

#status {
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 10px;
}

#main-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

canvas {
    border: 4px solid #333;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    background-color: #000;
}

#leaderboard-container {
    background: #252525;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #333;
    min-width: 250px;
}

#leaderboard-container h2 {
    margin-top: 0;
    color: #4CAF50;
    font-size: 1.4em;
    text-align: center;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

#leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#leaderboard-list li {
    padding: 8px 0;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
}

#leaderboard-list li:last-child {
    border-bottom: none;
}

.lb-username {
    font-weight: bold;
    color: #fff;
}

.lb-score {
    color: #4CAF50;
    font-weight: bold;
}
