body {
    margin: 0;
    overflow: hidden;
    background-color: #000;
    font-family: Arial, sans-serif;
}
#ui {
    position: absolute;
    top: 15px;
    left: 15px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 8px;
    pointer-events: none;
}
#controls-info {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    pointer-events: none;
}
#car-dashboard {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 22px;
    color: #fff;
    background: rgba(8, 10, 14, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-family: Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 24px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.dashboard-speed {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

#speed-value {
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
    min-width: 70px;
    text-align: right;
    color: #fff;
}

.dashboard-unit {
    font-size: 12px;
    color: #aeb8c4;
    letter-spacing: 1px;
}

.dashboard-divider {
    height: 42px;
    width: 1px;
    background: rgba(255, 255, 255, 0.22);
}

.dashboard-label {
    display: block;
    margin-bottom: 5px;
    font-size: 9px;
    color: #aeb8c4;
    letter-spacing: 2px;
}

#distance-value {
    font-size: 19px;
    font-weight: 700;
}

@media (max-width: 600px) {
    #car-dashboard {
        right: 10px;
        bottom: 10px;
        gap: 10px;
        padding: 10px 12px;
    }

    #speed-value {
        font-size: 32px;
        min-width: 54px;
    }
}


#speedometer {
    position: fixed;
    right: 24px;
    bottom: 20px;
    width: 220px;
    z-index: 1000;
    pointer-events: none;
}

#speedometer-svg {
    display: block;
    width: 100%;
    overflow: visible;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.65));
}

.gauge-border {
    fill: #111;
    stroke: #888;
    stroke-width: 2;
}

.gauge-face {
    fill: #101010;
    stroke: #333;
    stroke-width: 1;
}

.gauge-tick {
    stroke: #eee;
    stroke-width: 1.5;
}

.gauge-tick.major {
    stroke-width: 2.5;
}

.gauge-label {
    fill: #fff;
    font: bold 10px Arial, sans-serif;
    text-anchor: middle;
    dominant-baseline: middle;
}

.gauge-unit {
    fill: #ddd;
    font: 10px Arial, sans-serif;
    text-anchor: middle;
}

.gauge-needle {
    fill: #e52222;
    stroke: #ff5555;
    stroke-width: 0.8;
}

.gauge-hub {
    fill: #aaa;
    stroke: #222;
    stroke-width: 2;
}

.gauge-hub-center {
    fill: #d71920;
}

.gauge-digital {
    fill: #fff;
    font: bold 23px monospace;
    text-anchor: middle;
}


/* Logo du jeu - style OutRun annees 80 */
#game-logo {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    width: min(420px, 55vw);
    text-align: center;
    pointer-events: none;
    user-select: none;
    line-height: 0.8;
    filter: drop-shadow(0 0 12px rgba(255, 0, 180, 0.35));
}

.logo-sun {
    position: absolute;
    z-index: -1;
    width: 100px;
    height: 50px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 100px 100px 0 0;
    background: linear-gradient(
            to bottom,
            #ffe66d 0%,
            #ff9b4a 45%,
            #ff398c 100%
    );
    opacity: 0.85;
    -webkit-mask-image: repeating-linear-gradient(
            to bottom,
            #000 0 7px,
            transparent 7px 10px
    );
    mask-image: repeating-linear-gradient(
            to bottom,
            #000 0 7px,
            transparent 7px 10px
    );
}

.logo-ferrari {
    position: relative;
    color: #ff2b9d;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(34px, 5vw, 58px);
    font-style: italic;
    font-weight: 900;
    letter-spacing: -3px;
    transform: skewX(-8deg);
    text-shadow:
            2px 2px 0 #8c145f,
            0 0 8px #ff168e,
            0 0 22px rgba(255, 0, 170, 0.65);
}

.logo-model {
    position: relative;
    margin-top: 5px;
    color: #fff;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(42px, 6vw, 76px);
    font-style: italic;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(
            to bottom,
            #ffffff 5%,
            #55f5ff 35%,
            #168aff 60%,
            #e83cff 90%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(3px 3px 0 #5b168f)
    drop-shadow(0 0 8px #00cfff);
}

.logo-speed-lines {
    width: 90%;
    height: 3px;
    margin: 8px auto 0;
    background: linear-gradient(
            90deg,
            transparent,
            #ff2b9d 20%,
            #00dfff 80%,
            transparent
    );
    box-shadow: 0 0 10px #ff2b9d;
}

@media (max-width: 600px) {
    #game-logo {
        top: 12px;
        width: 55vw;
    }
}
