:root {
    --hud-primary: #ffffff; /* White */
    --hud-secondary: #9ca3af; /* Gray 400 */
    --hud-bg: #000000; /* Black */
    --hud-border: rgba(255, 255, 255, 0.3);
}

body {
    margin: 0;
    overflow: hidden;
    background-color: var(--hud-bg);
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
}

/* Custom Scrollbar for HUD */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); border-left: 1px solid rgba(255,255,255,0.1); }
::-webkit-scrollbar-thumb { background: #555; border-radius: 0px; }
::-webkit-scrollbar-thumb:hover { background: #fff; }

/* Tactical Range Slider Styling */
input[type=range] {
    -webkit-appearance: none;
    background: transparent;
    height: 20px;
    width: 100%;
}

/* Track */
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
}

/* Thumb (The Handle) */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 6px;
    background: #000;
    border: 1px solid #fff;
    margin-top: -5px; /* Centers thumb on track */
    cursor: pointer;
    box-shadow: 0 0 0px transparent;
    /* REMOVED transition: all 0.1s; to make sliding feel instant and smooth */
}

input[type=range]:hover::-webkit-slider-thumb {
    background: #fff;
    border-color: #000;
}

input[type=range]:focus {
    outline: none;
}

/* Scanline Effect */
.scanlines {
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.2)
    );
    background-size: 100% 3px;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 10;
    opacity: 0.15;
}

/* HUD Grid Background Pattern */
.hud-grid-bg {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hud-panel {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hud-text-glow {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}
