#devMenuWrap {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 9999;
}

#devMenuPanel {
    margin-top: 8px;
    min-width: 190px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.devLink {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-main);
    background: rgba(50, 50, 50, 0.85);
    border: 1px solid var(--border);
}

.devLink:hover {
    background: var(--accent);
    color: #111;
    border-color: var(--accent);
}

#devMenuWrap {
    position: absolute;
    top: 16px;
    right: 16px;
}

/* =========================
   MOBILE CONTROLS
========================= */

.mobileControls {

    position: fixed;

    inset: 0;

    z-index: 50;

    pointer-events: none;
}

.mobileControlsRow {

    position: absolute;

    left: 0;
    right: 0;
    bottom: 20px;

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    padding: 0 24px;

    pointer-events: none;
}

/* =========================
   DRIVE / REVERSE BUTTONS
========================= */

.controlColumn {

    display: flex;

    flex-direction: column;

    gap: 12px;

    pointer-events: all;
}

.controlColumn button {

    width: 72px;
    height: 72px;

    border-radius: 18px;

    border: 1px solid rgba(255, 255, 255, 0.25);

    background: rgba(90, 90, 90, 0.28);

    backdrop-filter: blur(8px);

    color: white;

    font-size: 22px;

    box-shadow:
        inset 0 2px 6px rgba(255, 255, 255, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.35);

    pointer-events: all;
}

/* =========================
   COCKPIT OVERLAY
========================= */

#cockpitOverlay {

    position: fixed;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 20;
}

#cockpitOverlay img {

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;

    height: auto;

    pointer-events: none;
}

/* =========================
   STEERING SLIDER
========================= */

#steerSlider {

    position: absolute;

    left: 80%;
    bottom: 72px;

    transform: translateX(-50%);

    width: 260px;
    height: 18px;

    -webkit-appearance: none;
    appearance: none;

    background: rgba(100, 100, 100, 0.22);

    border: 1px solid rgba(255, 255, 255, 0.22);

    border-radius: 999px;

    backdrop-filter: blur(8px);

    outline: none;

    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.28);

    pointer-events: all;
}

/* =========================
   SLIDER TRACK
========================= */

#steerSlider::-webkit-slider-runnable-track {

    height: 18px;

    background: transparent;

    border-radius: 999px;
}

/* =========================
   SLIDER THUMB
========================= */

#steerSlider::-webkit-slider-thumb {

    -webkit-appearance: none;
    appearance: none;

    width: 56px;
    height: 56px;

    margin-top: -19px;

    border-radius: 50%;

    background: rgba(180, 180, 180, 0.45);

    border: 2px solid rgba(255, 255, 255, 0.35);

    backdrop-filter: blur(10px);

    cursor: pointer;

    box-shadow:
        inset 0 2px 8px rgba(255, 255, 255, 0.14),
        0 4px 18px rgba(0, 0, 0, 0.35);
}

/* =========================
   FIREFOX
========================= */

#steerSlider::-moz-range-track {

    height: 18px;

    background: transparent;

    border-radius: 999px;
}

#steerSlider::-moz-range-thumb {

    width: 56px;
    height: 56px;

    border-radius: 50%;

    border: 2px solid rgba(255, 255, 255, 0.35);

    background: rgba(180, 180, 180, 0.45);

    cursor: pointer;
}

html,
body {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
}