@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

body {
    margin: 0;
    overflow: hidden;
    background-color: #050505;
    font-family: 'Orbitron', sans-serif;
    user-select: none;
}

canvas {
    display: block;
    filter: contrast(1.2) brightness(1.1);
}

/* --- UI & HUD --- */
#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    padding: 20px;
    box-sizing: border-box;
}

#score-board {
    position: absolute;
    top: 30px;
    left: 30px;
    color: #0ff;
}

#score {
    font-size: 40px;
    font-weight: 900;
    text-shadow: 0 0 10px #0ff;
}

#dash-meter {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 200px;
}

.label {
    font-size: 12px;
    color: #666;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

#dash-bar {
    height: 10px;
    width: 100%;
    background: #333;
    border: 1px solid #555;
    position: relative;
}

#dash-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--width, 100%);
    background: #f0f;
    box-shadow: 0 0 10px #f0f;
    transition: width 0.1s;
}

/* --- MODALS --- */
.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 20;
    background: rgba(0, 0, 0, 0.85);
    padding: 40px;
    border: 1px solid #0ff;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.hidden {
    display: none;
}

h1 {
    font-size: 60px;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #fff;
    text-shadow: 4px 4px 0px #f0f;
}

.controls p {
    font-size: 14px;
    color: #aaa;
    margin: 10px 0;
}

.controls span {
    color: #0ff;
    font-weight: bold;
    border: 1px solid #0ff;
    padding: 2px 6px;
    margin-right: 10px;
    font-size: 12px;
}

button {
    margin-top: 30px;
    background: transparent;
    border: 2px solid #0ff;
    color: #0ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    padding: 15px 50px;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.2s;
    box-shadow: 0 0 15px #0ff;
}

button:hover {
    background: #0ff;
    color: #000;
    box-shadow: 0 0 40px #0ff, inset 0 0 20px #fff;
}

/* --- CRT EFFECTS --- */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.1) 50%,
        rgba(0,0,0,0.1)
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 50;
    opacity: 0.6;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0) 60%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
    z-index: 51;
}