* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

#game-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
}

#game-canvas {
    width: 100%;
    height: 100%;
}

#game-canvas canvas {
    display: block;
}

#hud {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    color: #fff;
    font-size: 18px;
    text-shadow: 2px 2px 0 #000;
    pointer-events: none;
}

#speed {
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 14px;
    border-radius: 4px;
}

#driving-preset {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    cursor: pointer;
    text-shadow: 2px 2px 0 #000;
    outline: none;
}

#driving-preset option {
    background: #222;
    color: #fff;
}

#race-info {
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 14px;
    border-radius: 4px;
}

#debug {
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    white-space: pre;
}

#race-overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 80px;
    color: #fff;
    text-shadow: 4px 4px 0 #000;
    pointer-events: none;
    z-index: 10;
}
