:root {
    --neon-blue: #00d2ff;
    --neon-yellow: #f1c40f;
    --dark-bg: #0a0a0c;
    --glass-bg: rgba(0, 0, 0, 0.6);
}

body,
html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--dark-bg);
    font-family: 'Rajdhani', sans-serif;
    color: white;
}

#game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* HUD Styling */
#hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.top-left {
    position: absolute;
    top: 40px;
    left: 40px;
}

.lap-counter {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--neon-yellow);
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

.timer {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-top: 5px;
}

.bottom-center {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.speedometer-container {
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 210, 255, 0.1) 0%, transparent 70%);
    padding: 20px;
}

.speed-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.8;
}

.speed-unit {
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--neon-blue);
}

.gear-info {
    font-weight: bold;
    margin-top: 10px;
}

.nitro-bar-container {
    width: 300px;
    text-align: center;
}

.nitro-label {
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.bar-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #00d2ff, #3a1c71);
    box-shadow: 0 0 15px var(--neon-blue);
    transition: width 0.1s;
}

.controls-hint {
    position: absolute;
    bottom: 30px;
    right: 40px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Overlay Styling */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.menu-box {
    background: var(--glass-bg);
    padding: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    margin: 0;
    letter-spacing: -2px;
}

.logo-text span {
    color: var(--neon-yellow);
}

.tagline {
    letter-spacing: 5px;
    color: var(--neon-blue);
    margin-bottom: 40px;
}

.specs {
    margin-bottom: 40px;
    text-align: left;
    display: inline-block;
    padding: 20px;
    border-left: 2px solid var(--neon-yellow);
    background: rgba(255, 255, 255, 0.05);
}

button {
    background: white;
    color: black;
    border: none;
    padding: 18px 50px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 2px;
}

button:hover {
    background: var(--neon-yellow);
    transform: perspective(500px) translateZ(20px);
}

.hidden {
    display: none !important;
}