:root {
    --primary: #ffcc00;
    /* Street racing yellow */
    --accent: #ff0040;
    /* Redlining */
    --bg-dark: #111;
    --hud-bg: rgba(0, 0, 0, 0.7);
    --font-race: 'Russo One', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    background: #000;
    font-family: var(--font-race);
    overflow: hidden;
    color: white;
}

#game-canvas {
    display: block;
    width: 100vw;
    height: 100vh;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.hud-top {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    font-size: 24px;
    text-shadow: 2px 2px 0 #000;
}

.dashboard {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--hud-bg);
    padding: 20px;
    border-radius: 10px;
    border-right: 5px solid var(--primary);
    transform: skewX(-10deg);
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.speedometer {
    text-align: right;
}

.speed-value {
    font-size: 64px;
    line-height: 1;
    color: var(--primary);
}

.speed-label {
    font-size: 14px;
    color: #aaa;
}

.tachometer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.bar-container {
    width: 20px;
    height: 60px;
    background: #333;
    border: 1px solid #555;
    position: relative;
}

.bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, green, yellow, red);
    transition: height 0.1s;
}

.gear {
    font-size: 32px;
    color: white;
    background: #c00;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

/* Screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
}

.screen h1 {
    font-size: 64px;
    color: var(--primary);
    font-style: italic;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 4px 4px 0 var(--accent);
}

.key {
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
}

button {
    margin-top: 40px;
    padding: 15px 40px;
    font-size: 24px;
    font-family: var(--font-race);
    background: var(--primary);
    border: none;
    cursor: pointer;
    transform: skewX(-10deg);
    transition: transform 0.2s, background 0.2s;
}

button:hover {
    transform: skewX(-10deg) scale(1.1);
    background: #fff;
}