* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: radial-gradient(circle at 50% 30%, #2d1b4e 0%, #0a0a1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Segoe UI', sans-serif;
    color: #fff;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 900px;
    height: 600px;
    box-shadow: 0 0 60px rgba(110, 231, 255, 0.35), 0 0 120px rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(110, 231, 255, 0.2);
}

#gameCanvas {
    display: block;
    background: transparent;
    cursor: pointer;
}

#hud {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 20px;
    font-size: 17px;
    background: rgba(10, 10, 30, 0.7);
    padding: 10px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(110, 231, 255, 0.3);
    z-index: 5;
}

#hud b { color: #6ee7ff; text-shadow: 0 0 10px #6ee7ff; }

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 20, 0.94);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.overlay.hidden { display: none; }

h1 {
    color: #6ee7ff;
    text-shadow: 0 0 30px rgba(110, 231, 255, 0.8);
    font-size: 42px;
    letter-spacing: 2px;
}

.sub {
    color: #a855f7;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

p { color: #c0c0e0; }

button {
    padding: 14px 40px;
    font-size: 18px;
    background: linear-gradient(135deg, #6ee7ff, #a855f7);
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(110, 231, 255, 0.4);
}

button:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 30px rgba(110, 231, 255, 0.6);
}

button:disabled { opacity: 0.5; cursor: not-allowed; }

input {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 10px;
    border: 2px solid #6ee7ff;
    background: rgba(10, 10, 30, 0.9);
    color: #fff;
    text-align: center;
    outline: none;
    width: 220px;
}

input:focus { border-color: #a855f7; box-shadow: 0 0 15px rgba(168, 85, 247, 0.5); }

#leaderboard {
    margin-top: 15px;
    background: rgba(110, 231, 255, 0.08);
    padding: 18px 30px;
    border-radius: 10px;
    min-width: 280px;
    border: 1px solid rgba(110, 231, 255, 0.25);
}

#leaderboard h3 { color: #6ee7ff; margin-bottom: 12px; text-align: center; }
#leaderboard div { padding: 5px 0; text-align: left; font-size: 15px; }