@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700&display=swap');

:root {
    --green: rgb(38, 236, 38);
    --orange: rgb(243, 130, 24);
    --red: rgb(230, 19, 19);
    --blue: rgb(0, 204, 255);
    --shadow: rgba(0, 0, 0, 0.7);
    --lgray: rgb(255, 255, 255);
    --lock: rgb(255, 196, 0);
}

* {
    box-sizing: border-box;
    font-family: 'Barlow', sans-serif;
}

.main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    pointer-events: none;
}

.hud {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 400px;
    transform: translate(-50%, -50%);
}

.mid-point {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    transform: translate(-50%, -50%);
}

.gun-crosshair,
.missile-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    will-change: left, top;
}

.gun-crosshair {
    width: 34px;
    height: 34px;
    border: 2px dashed var(--lgray);
    border-radius: 50%;
}

.gun-line {
    position: relative;
    width: 100%;
    height: 100%;
}

.gun-line:before {
    position: absolute;
    content: "";
    width: 28px;
    left: -30px;
    top: 50%;
    border-bottom: 2px solid var(--lgray);
    transform: translate(0%, -50%);
}

.gun-line:after {
    position: absolute;
    content: "";
    width: 28px;
    left: 32px;
    top: 50%;
    border-bottom: 2px solid var(--lgray);
    transform: translate(0%, -50%);
}

.missile-info {
    width: 64px;
    height: 64px;
}

.missile-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    border: 2px dashed var(--lgray);
    background: rgba(0, 0, 0, 0.08);
    transform: translate(-50%, -50%);
}

.missile-target {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 26px;
    opacity: 0.95;
    transform: translate(-50%, -50%) rotate(45deg);
}

.missile-info.searching .missile-target {
    animation: none;
    /* Fallback : bordure neutre toujours visible meme si aucune classe de
       couleur (.green/.orange/.red/.blue) n'est appliquee sur le HUD.
       Les regles prefixees par couleur (plus specifiques) prennent le
       dessus quand une couleur est presente. */
    border: 2px dashed var(--lgray);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.30);
}

.missile-info.locking .missile-target {
    width: 30px;
    height: 30px;
    animation: missilePulse 0.65s linear infinite;
}

.missile-info.locked .missile-target {
    width: 38px;
    height: 38px;
    animation: none;
}

.missile-dist {
    position: absolute;
    top: 50%;
    left: calc(100% + 14px);
    transform: translateY(-50%);
    display: inline-block;
    font-weight: 700;
    white-space: nowrap;
}

.pitchroll {
    position: absolute;
    width: 350px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    overflow: hidden;
}

.pitch {
    margin-top: 0;
}

.pitchline {
    padding: 25px 0px;
}

.rightline {
    position: relative;
    display: block;
    margin-left: 206px;
    margin-top: -20px;
    width: 100%;
}

.pitch-number {
    display: inline-block;
    width: 35px;
    text-align: center;
    font-weight: 700;
}

.linedown,
.line {
    position: relative;
    display: inline-block;
    width: 30%;
}

.line.full {
    width: 30%;
}

.leftline .line:before {
    content: "";
    position: absolute;
    height: 12px;
    top: 0px;
    left: 0%;
}

.rightline .line:after {
    content: "";
    position: absolute;
    height: 12px;
    top: 0px;
    left: 100%;
}

.leftline .linedown:before {
    content: "";
    position: absolute;
    height: 12px;
    top: -10px;
    left: 0px;
}

.rightline .linedown:after {
    content: "";
    position: absolute;
    height: 12px;
    top: -10px;
    left: 100%;
}

.stall-warn,
.missile-warn,
.alt-warn {
    position: absolute;
    display: none;
    left: 50%;
    width: 150px;
    padding: 3px;
    color: var(--red);
    text-align: center;
    font-weight: 600;
    border: 2px solid var(--red);
    transform: translate(-50%, 0%);
}

.red .stall-warn,
.red .missile-warn,
.red .alt-warn {
    color: var(--orange);
    border: 2px solid var(--orange);
}

.stall-warn {
    top: 35%;
}

.alt-warn {
    top: calc(35% + 33px);
}

.missile-warn {
    top: calc(60%);
}

.lock-warn {
    position: absolute;
    display: none;
    left: 50%;
    top: calc(35% - 33px);
    width: 150px;
    padding: 3px;
    color: var(--lock);
    text-align: center;
    font-weight: 600;
    border: 2px solid var(--lock);
    transform: translate(-50%, 0%);
}

/* Verrouillage ETABLI (on est verrouille) : rouge, plus urgent. */
.lock-warn.locked {
    color: var(--red);
    border-color: var(--red);
    box-shadow: 0 0 12px rgba(255, 40, 40, 0.45);
}

/* Indicateur OFFENSIF : c'est NOUS qui verrouillons une cible. */
.tgt-lock {
    position: absolute;
    display: none;
    left: 50%;
    top: calc(50% - 295px);
    width: 170px;
    padding: 2px;
    color: var(--green);
    text-align: center;
    font-weight: 600;
    letter-spacing: 1px;
    transform: translate(-50%, 0%);
    opacity: 0.9;
}

/* Cible VERROUILLEE : plus vif + petit halo. */
.tgt-lock.locked {
    color: var(--green);
    text-shadow: 0 0 8px rgba(38, 236, 38, 0.6);
    opacity: 1;
}

.speed {
    position: absolute;
    width: 80px;
    top: calc(50% - 20px);
    left: calc(50% - 320px);
    transform: translate(-50%, -50%);
}

.speed .text {
    padding: 2px;
    font-size: 20px;
}

.speed .box {
    width: 80px;
}

.speed .arrow {
    width: 22px;
    height: 22px;
    margin-top: -27px;
    margin-left: 69px;
    transform: rotate(45deg);
}

.altitude {
    position: absolute;
    width: 80px;
    top: calc(50% - 20px);
    left: calc(50% + 320px);
    transform: translate(-50%, -50%);
}

.altitude .text {
    padding: 2px;
    font-size: 20px;
    margin-left: 11px;
}

.altitude .box .text {
    padding: 2px;
    font-size: 20px;
    margin-left: none;
    text-align: right;
}

.altitude .box {
    width: 80px;
    margin-left: 11px;
}

.altitude .arrow {
    width: 22px;
    height: 22px;
    margin-top: -27px;
    transform: rotate(-45deg);
}

.altitude-meter {
    position: absolute;
    top: 50%;
    left: calc(50% + 238px);
    width: 10px;
    height: 300px;
    transform: translate(0%, -50%);
}

.altitude-pointer {
    position: relative;
    width: 10px;
    height: 10px;
    margin-left: -2px;
    margin-top: 280px;
    border-top: 2px solid var(--green);
    border-right: 2px solid var(--green);
    transform: rotate(45deg);
}

.gear-info {
    position: absolute;
    padding: 5px;
    top: calc(50% + 200px);
    left: calc(50% + 270px);
    transform: translate(0%, -100%);
}

.vtol-info {
    position: absolute;
    padding: 5px;
    top: calc(50% + 200px);
    left: calc(50% - 270px);
    transform: translate(-100%, -100%);
}

.heading {
    position: absolute;
    left: 50%;
    top: calc(50% - 260px);
    transform: translate(-50%, 0%);
    padding: 2px;
    font-size: 20px;
}

.compass {
    position: absolute;
    left: 50%;
    top: calc(50% - 230px);
    width: 280px;
    height: 40px;
    transform: translate(-50%, 0%);
    text-align: center;
    overflow: hidden;
}

.direction,
.steps {
    width: 2000%;
}

.direction {
    position: absolute;
    transform: translate(-50%, 0%);
    left: 50%;
}

.single-direction {
    position: relative;
    display: inline-block;
    width: 25px;
    height: 15px;
    text-align: center;
    font-weight: 700;
}

.single-direction:before {
    content: "";
    position: absolute;
    width: 1px;
    height: 8px;
    top: calc(100% + 6px);
    left: 50%;
    transform: translate(-50%, 0%);
}

.single-direction.bold:before {
    content: "";
    position: absolute;
    width: 2px;
    height: 14px;
    top: calc(100% + 6px);
    left: 50%;
    transform: translate(-50%, 0%);
}

.w-500 {
    font-weight: 500;
}

.w-600 {
    font-weight: 600;
}

.w-700 {
    font-weight: 700;
}

.green .text,
.green .single-direction,
.green .pitch-number,
.green .gear-info,
.green .vtol-info,
.green .heading {
    color: var(--green);
    text-shadow: 0px 0px 2px var(--shadow);
}

.red .text,
.red .single-direction,
.red .pitch-number,
.red .gear-info,
.red .vtol-info,
.red .missile-dist,
.red .heading {
    color: var(--red);
    text-shadow: 0px 0px 2px var(--shadow);
}

.orange .text,
.orange .single-direction,
.orange .pitch-number,
.orange .gear-info,
.orange .vtol-info,
.orange .missile-dist,
.orange .heading {
    color: var(--orange);
    text-shadow: 0px 0px 2px var(--shadow);
}

.blue .text,
.blue .single-direction,
.blue .pitch-number,
.blue .gear-info,
.blue .vtol-info,
.blue .heading {
    color: var(--blue);
    text-shadow: 0px 0px 2px var(--shadow);
}

.green .altitude-meter {
    border-top: 2px solid var(--green);
    border-bottom: 2px solid var(--green);
}

.orange .altitude-meter {
    border-top: 2px solid var(--orange);
    border-bottom: 2px solid var(--orange);
}

.red .altitude-meter {
    border-top: 2px solid var(--red);
    border-bottom: 2px solid var(--red);
}

.blue .altitude-meter {
    border-top: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
}

.green .hud {
    border-left: 2px solid var(--green);
    border-right: 2px solid var(--green);
}

.orange .hud {
    border-left: 2px solid var(--orange);
    border-right: 2px solid var(--orange);
}

.red .hud {
    border-left: 2px solid var(--red);
    border-right: 2px solid var(--red);
}

.blue .hud {
    border-left: 2px solid var(--blue);
    border-right: 2px solid var(--blue);
}

.green .speed .box {
    border: 2px solid var(--green);
    border-right: 2px solid transparent;
}
.orange .speed .box {
    border: 2px solid var(--orange);
    border-right: 2px solid transparent;
}
.red .speed .box {
    border: 2px solid var(--red);
    border-right: 2px solid transparent;
}
.blue .speed .box {
    border: 2px solid var(--blue);
    border-right: 2px solid transparent;
}

.green .altitude-pointer,
.green .speed .arrow {
    border-right: 2px solid var(--green);
    border-top: 2px solid var(--green);
}

.orange .altitude-pointer,
.orange .speed .arrow {
    border-right: 2px solid var(--orange);
    border-top: 2px solid var(--orange);
}

.red .altitude-pointer,
.red .speed .arrow {
    border-right: 2px solid var(--red);
    border-top: 2px solid var(--red);
}

.blue .altitude-pointer,
.blue .speed .arrow {
    border-right: 2px solid var(--blue);
    border-top: 2px solid var(--blue);
}

.green .altitude .box {
    border: 2px solid var(--green);
    border-left: 2px solid transparent;
}
.orange .altitude .box {
    border: 2px solid var(--orange);
    border-left: 2px solid transparent;
}
.red .altitude .box {
    border: 2px solid var(--red);
    border-left: 2px solid transparent;
}
.blue .altitude .box {
    border: 2px solid var(--blue);
    border-left: 2px solid transparent;
}

.green .altitude .arrow {
    border-left: 2px solid var(--green);
    border-top: 2px solid var(--green);
}

.orange .altitude .arrow {
    border-left: 2px solid var(--orange);
    border-top: 2px solid var(--orange);
}

.red .altitude .arrow {
    border-left: 2px solid var(--red);
    border-top: 2px solid var(--red);
}

.blue .altitude .arrow {
    border-left: 2px solid var(--blue);
    border-top: 2px solid var(--blue);
}

.green .gear-info,
.green .vtol-info {
    border: 2px solid var(--green);
}

.orange .gear-info,
.orange .vtol-info {
    border: 2px solid var(--orange);
}

.red .gear-info,
.red .vtol-info {
    border: 2px solid var(--red);
}

.blue .gear-info,
.blue .vtol-info {
    border: 2px solid var(--blue);
}

.green .single-direction.bold:before,
.green .single-direction:before {
    background: var(--green);
}

.orange .single-direction.bold:before,
.orange .single-direction:before {
    background: var(--orange);
}

.red .single-direction.bold:before,
.red .single-direction:before {
    background: var(--red);
}

.blue .single-direction.bold:before,
.blue .single-direction:before {
    background: var(--blue);
}

.green .missile-info.searching .missile-target {
    border: 2px dashed var(--green);
    box-shadow: 0 0 10px rgba(38, 236, 38, 0.35);
}

.orange .missile-info.searching .missile-target {
    border: 2px dashed var(--orange);
    box-shadow: 0 0 10px rgba(243, 130, 24, 0.35);
}

.red .missile-info.searching .missile-target {
    border: 2px dashed var(--red);
    box-shadow: 0 0 10px rgba(230, 19, 19, 0.35);
}

.blue .missile-info.searching .missile-target {
    border: 2px dashed var(--blue);
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.35);
}

.missile-info.locking .missile-target {
    border: 3px solid var(--orange);
    box-shadow: 0 0 14px rgba(243, 130, 24, 0.85), inset 0 0 8px rgba(243, 130, 24, 0.45);
}

.missile-info.locked .missile-target {
    border: 3px solid var(--red);
    box-shadow: 0 0 16px rgba(230, 19, 19, 0.95), inset 0 0 10px rgba(230, 19, 19, 0.45);
}

.missile-info.locking .missile-dist {
    color: var(--orange);
}

.missile-info.locked .missile-dist {
    color: var(--red);
}

.green .gun-crosshair,
.green .missile-crosshair,
.green .gun-line:before,
.green .gun-line:after {
    border-color: var(--green);
}

.orange .gun-crosshair,
.orange .missile-crosshair,
.orange .gun-line:before,
.orange .gun-line:after {
    border-color: var(--orange);
}

.red .gun-crosshair,
.red .missile-crosshair,
.red .gun-line:before,
.red .gun-line:after {
    border-color: var(--red);
}

.blue .gun-crosshair,
.blue .missile-crosshair,
.blue .gun-line:before,
.blue .gun-line:after {
    border-color: var(--blue);
}

.green .missile-crosshair {
    box-shadow: 0 0 10px rgba(38, 236, 38, 0.18);
}

.orange .missile-crosshair {
    box-shadow: 0 0 10px rgba(243, 130, 24, 0.18);
}

.red .missile-crosshair {
    box-shadow: 0 0 10px rgba(230, 19, 19, 0.18);
}

.blue .missile-crosshair {
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.18);
}

.green .rightline .linedown,
.green .leftline .linedown,
.green .rightline .line,
.green .leftline .line {
    border-bottom: 2px dashed var(--green);
}

.orange .rightline .linedown,
.orange .leftline .linedown,
.orange .rightline .line,
.orange .leftline .line {
    border-bottom: 2px dashed var(--orange);
}

.red .rightline .linedown,
.red .leftline .linedown,
.red .rightline .line,
.red .leftline .line {
    border-bottom: 2px dashed var(--red);
}

.blue .rightline .linedown,
.blue .leftline .linedown,
.blue .rightline .line,
.blue .leftline .line {
    border-bottom: 2px dashed var(--blue);
}

.green .rightline .linedown:after,
.green .rightline .line:after {
    border-right: 2px solid var(--green);
}

.orange .rightline .linedown:after,
.orange .rightline .line:after {
    border-right: 2px solid var(--orange);
}

.red .rightline .linedown:after,
.red .rightline .line:after {
    border-right: 2px solid var(--red);
}

.blue .rightline .linedown:after,
.blue .rightline .line:after {
    border-right: 2px solid var(--blue);
}

.green .leftline .linedown:before,
.green .leftline .line:before {
    border-left: 2px solid var(--green);
}

.orange .leftline .linedown:before,
.orange .leftline .line:before {
    border-left: 2px solid var(--orange);
}

.red .leftline .linedown:before,
.red .leftline .line:before {
    border-left: 2px solid var(--red);
}

.blue .leftline .linedown:before,
.blue .leftline .line:before {
    border-left: 2px solid var(--blue);
}

.green .line.full {
    border-bottom: 2px solid var(--green);
}

.orange .line.full {
    border-bottom: 2px solid var(--orange);
}

.red .line.full {
    border-bottom: 2px solid var(--red);
}

.blue .line.full {
    border-bottom: 2px solid var(--blue);
}

.green .mid-point {
    background-image: url("./img/green-mid.png");
    background-size: cover;
}

.orange .mid-point {
    background-image: url("./img/orange-mid.png");
    background-size: cover;
}

.red .mid-point {
    background-image: url("./img/red-mid.png");
    background-size: cover;
}

.blue .mid-point {
    background-image: url("./img/blue-mid.png");
    background-size: cover;
}

.fade {
    -webkit-animation-name: fade;
    animation-name: fade;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    animation-iteration-count: infinite;
}

@keyframes missilePulse {
    0% { transform: translate(-50%, -50%) rotate(45deg) scale(0.92); opacity: 0.75; }
    50% { transform: translate(-50%, -50%) rotate(45deg) scale(1.04); opacity: 1; }
    100% { transform: translate(-50%, -50%) rotate(45deg) scale(0.92); opacity: 0.75; }
}

@keyframes fade {
    0% {opacity: 0;}
    20% {opacity: 1;}
    80% {opacity: 1;}
    100% {opacity: 0;}
}

/* ====================== Menu F6 — Quentin'Prod (style qp-fuel) ====================== */
.vol-menu {
    --qp-mint: #00d7bd;
    --qp-mint-hi: #37f0d6;
    --qp-paper: #eef3f2;
    --qp-mute: #97a1aa;
    --qp-line: rgba(30, 36, 43, 0.65);
    --qp-line-2: rgba(42, 50, 59, 0.7);
    --qp-panel-bg: rgba(14, 17, 20, 0.72);
    --qp-panel-bg-2: rgba(19, 23, 28, 0.68);
    --qp-radius-sm: 8px;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 94vw);
    display: none;
    background: transparent;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    z-index: 50;
    pointer-events: auto;
}
.vol-menu .vol-panel {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--qp-panel-bg);
    border-left: 1px solid rgba(0, 215, 189, 0.28);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        -8px 0 32px rgba(0, 0, 0, 0.25);
    color: var(--qp-paper);
    animation: vol-slide-in 0.25s ease;
}
@keyframes vol-slide-in {
    from { transform: translateX(100%); opacity: 0.6; }
    to { transform: translateX(0); opacity: 1; }
}
.vol-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--qp-line);
    background: var(--qp-panel-bg-2);
}
.vol-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.vol-brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: cover;
    object-position: 48% 22%;
    background: #0e1114;
    border: 1px solid var(--qp-line);
}
.vol-head {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--qp-paper);
    line-height: 1.2;
}
.vol-brand-sub {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    color: var(--qp-mint);
    letter-spacing: 0.04em;
}
.vol-close-x {
    width: 32px;
    height: 32px;
    border: 1px solid var(--qp-line-2);
    border-radius: var(--qp-radius-sm);
    background: rgba(23, 28, 34, 0.55);
    color: var(--qp-paper);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}
.vol-close-x:hover { background: rgba(255, 107, 107, 0.2); }
.vol-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px 8px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.vol-body::-webkit-scrollbar { width: 6px; }
.vol-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}
.vol-section-title {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--qp-mute);
}
.vol-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    padding: 10px 12px;
    border-radius: var(--qp-radius-sm);
    border: 1px solid var(--qp-line);
    background: rgba(23, 28, 34, 0.35);
}
.vol-label {
    width: 108px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--qp-paper);
}
.vol-slider {
    flex: 1;
    height: 4px;
    appearance: none;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    outline: none;
    cursor: pointer;
}
.vol-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--qp-mint);
    box-shadow: 0 0 8px rgba(0, 215, 189, 0.45);
}
.vol-pct {
    width: 48px;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
    color: var(--qp-mint);
    font-variant-numeric: tabular-nums;
}
.vol-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid var(--qp-line);
    background: var(--qp-panel-bg-2);
}
.vol-hint {
    font-size: 12px;
    color: var(--qp-mute);
}
.vol-close {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #04110e;
    background: var(--qp-mint);
    border: 1px solid var(--qp-mint);
    border-radius: var(--qp-radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}
.vol-close:hover { background: var(--qp-mint-hi); }

.pref-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0 0 12px;
}
.pref-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--qp-paper);
}
.pref-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pref-opt {
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 600;
    color: var(--qp-paper);
    background: rgba(23, 28, 34, 0.45);
    border: 1px solid var(--qp-line-2);
    border-radius: var(--qp-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}
.pref-opt:hover { border-color: rgba(0, 215, 189, 0.3); }
.pref-opt.active {
    color: #04110e;
    background: var(--qp-mint);
    border-color: var(--qp-mint);
    box-shadow: inset 0 0 0 1px rgba(0, 215, 189, 0.35);
}
.pref-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    vertical-align: middle;
}
.swatch-green { background: var(--green); }
.swatch-blue { background: var(--blue); }
.swatch-red { background: var(--red); }
.swatch-orange { background: var(--orange); }
.unit-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    opacity: 0.85;
    white-space: nowrap;
}
/* Vitesse : unite a DROITE du nombre. Altitude : unite a GAUCHE du nombre. */
.speed .box {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.altitude .box {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px;
}
.green .unit-label { color: var(--green); text-shadow: 0px 0px 2px var(--shadow); }
.orange .unit-label { color: var(--orange); text-shadow: 0px 0px 2px var(--shadow); }
.red .unit-label { color: var(--red); text-shadow: 0px 0px 2px var(--shadow); }
.blue .unit-label { color: var(--blue); text-shadow: 0px 0px 2px var(--shadow); }
