/* ==========================================================================
   MODERN ARMORED WARFARE: TACTICAL COMBAT SIMULATOR — Stylesheet
   Modern military battlefield FCS, gunner optics reticle, digital compass,
   tactical paper doll armor schematic, and realistic military telemetry.
   ========================================================================== */

:root {
    --bg-dark: #0a0d12;
    --panel-bg: rgba(13, 17, 23, 0.94);
    --panel-border: rgba(255, 255, 255, 0.12);
    --panel-border-subtle: rgba(148, 163, 184, 0.18);
    --accent-green: #22c55e;
    --accent-green-bright: #4ade80;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;
    --accent-blue: #38bdf8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --font-telemetry: 'Rajdhani', 'JetBrains Mono', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-ui: 'Inter', 'Rajdhani', -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: var(--font-ui);
    color: var(--text-main);
}

.hidden {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

#game-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* 3D WebGL Canvas */
#game-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

/* FLIR Thermal Night Vision mode filter */
#game-canvas.flir-mode {
    filter: invert(0.9) contrast(1.8) hue-rotate(90deg) brightness(1.1);
}

/* Tactical SVG Icon System */
.tac-svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.tac-svg-lg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: inline-block;
}

.tac-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    background: var(--text-dim);
}

.tac-status-dot.online {
    background: var(--accent-green-bright);
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.8);
}

/* ==========================================================================
   TOP TACTICAL HEADER & COMPASS TAPE
   ========================================================================== */
#tactical-header-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: rgba(13, 17, 23, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-title {
    font-family: var(--font-telemetry);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-title span {
    color: var(--accent-green-bright);
    font-weight: 800;
}

.network-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 3px 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: 3px;
    color: var(--accent-green-bright);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Digital Compass Tape in Header */
.compass-tape {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #f8fafc;
    background: rgba(22, 27, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 4px 14px;
    border-radius: 3px;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.tac-btn {
    background: #161f2e;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    padding: 6px 13px;
    font-family: var(--font-ui);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.tac-btn:hover {
    background: #202b3d;
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.tac-btn.primary {
    background: #1c2738;
    border-color: rgba(74, 222, 128, 0.4);
    color: #4ade80;
}

.tac-btn.primary:hover {
    background: #24334a;
    border-color: #4ade80;
    color: #fff;
}

/* ==========================================================================
   MODERN WARFARE OPTICAL RETICLE SYSTEM
   ========================================================================== */
/* 1. Instant Mouse Aim Crosshair (Gunner Thermal Optic) */
#mouse-aim-reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 60;
}

#mouse-aim-reticle.zoomed {
    left: 50%;
}

#mouse-aim-reticle svg {
    width: 28px;
    height: 28px;
    display: block;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.9));
}

.reticle-telemetry {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: #4ade80;
    background: rgba(13, 17, 23, 0.88);
    padding: 2px 7px;
    border-radius: 2px;
    border: 1px solid rgba(74, 222, 128, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

/* 2. Actual Physical Gun Barrel Nozzle Marker (Hydraulic slewing indicator) */
#barrel-nozzle-reticle {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    pointer-events: none;
    z-index: 75;
    color: #ff3344; /* High-visibility tactical red slewing indicator */
    transition: color 0.1s ease;
    will-change: left, top, transform;
}

#barrel-nozzle-reticle svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 3px rgba(255, 51, 68, 0.45));
}

/* Turns vibrant tactical green when laid directly on target / centered in + */
#barrel-nozzle-reticle.on-target {
    color: #22c55e;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 4px rgba(34, 197, 94, 0.5));
}

body.in-gunner-scope #barrel-nozzle-reticle {
    z-index: 75;
}

body.in-gunner-scope #barrel-nozzle-reticle svg {
    filter: none; /* Razor-sharp in optics mode */
}

/* ==========================================================================
   AUTHENTIC TANK GUNNER PERISCOPE & OPTICAL SIGHT (RIGHT-CLICK AIM)
   ========================================================================== */
/* Hide 3rd-person HUD elements cleanly when aiming down the Gunner Scope */
body.in-gunner-scope #tactical-header-bar,
body.in-gunner-scope #radar-container,
body.in-gunner-scope #bottom-hud,
body.in-gunner-scope #mission-hud-card,
body.in-gunner-scope #target-lock-warning {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(6px);
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

#tactical-header-bar,
#radar-container,
#bottom-hud,
#mission-hud-card,
#target-lock-warning {
    transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

#gunner-scope-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 68;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 1;
    will-change: opacity, transform;
    contain: strict;
    transition: opacity 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

#gunner-scope-overlay.hidden {
    display: flex !important;
    opacity: 0 !important;
    pointer-events: none !important;
    /* Maintained in GPU compositor cache without visibility:hidden for instant 0ms first-click scope response */
}

#gunner-scope-overlay.recoil-jolt {
    animation: scopeRecoilJolt 0.28s cubic-bezier(0.1, 0.9, 0.2, 1);
}

@keyframes scopeRecoilJolt {
    0% {
        filter: brightness(1.4) contrast(1.15);
        transform: scale(1.025);
    }
    100% {
        filter: brightness(1.0) contrast(1.0);
        transform: scale(1.0);
    }
}

#gunner-scope-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    pointer-events: none;
}

/* Reticle Lines & Geometry (Razor-sharp native vector engraving) */
.scope-reticle {
    color: #080c10;
    /* NO drop shadow! Native GPU vector rendering for razor-sharp hairline lines without fuzzy white halo */
}

#scope-reticle-group {
    transform-origin: 0px 0px;
    will-change: transform;
}

.reticle-line {
    stroke: #080c10;
    stroke-width: 0.95px;
    stroke-linecap: square;
    shape-rendering: geometricPrecision;
}

.horizontal-main {
    stroke: #080c10;
    stroke-width: 1.05px;
}

.axis-line {
    stroke: #080c10;
    stroke-width: 0.95px;
}

.rung-line {
    stroke: #080c10;
    stroke-width: 0.95px;
}

.reticle-crosses, .reticle-ticks {
    fill: none;
    stroke: #080c10;
    stroke-width: 0.85px;
    stroke-linecap: square;
    shape-rendering: geometricPrecision;
}

.reticle-tick-sm {
    stroke: #080c10;
    stroke-width: 0.75px;
}

.reticle-dotted-curve {
    fill: none;
    stroke: #080c10;
    stroke-width: 0.85px;
    stroke-dasharray: 2px, 4.5px;
    shape-rendering: geometricPrecision;
}

/* Reticle Text - Authentic Military Technical Typography */
.reticle-text {
    fill: #080c10;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    user-select: none;
    text-rendering: geometricPrecision;
}

.reticle-caliber {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 1.2px;
}

.reticle-num-med {
    font-size: 8.5px;
    font-weight: 500;
}

.reticle-num-sm {
    font-size: 7.5px;
    font-weight: 500;
}

.reticle-coax-title {
    font-size: 7.0px;
    font-weight: 600;
    letter-spacing: 0.6px;
}

.reticle-stadi-label {
    font-size: 6.5px;
    font-weight: 500;
    letter-spacing: 0.4px;
}

.reticle-tiny {
    font-size: 6.0px;
    font-weight: 500;
}

/* Scope In-Sight Telemetry Boxes (Image 2 Authenticity) */
.scope-telemetry-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 69;
}

.scope-fcs-box {
    position: absolute;
    background: rgba(8, 12, 18, 0.82);
    border: 1px solid rgba(74, 222, 128, 0.35);
    border-radius: 3px;
    padding: 3px 8px;
    font-family: var(--font-mono);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.scope-fcs-box.top-left {
    top: 22px;
    left: 28px;
}

.scope-fcs-box.top-right {
    top: 22px;
    right: 28px;
}

.scope-fcs-box.bottom-right,
.scope-fcs-box.bottom-center {
    bottom: 24px;
    right: 28px;
    left: auto;
    transform: none;
    text-align: right;
    border-color: rgba(74, 222, 128, 0.45);
    min-width: 140px;
}

.fcs-label {
    font-size: 0.60rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.fcs-val {
    font-size: 0.80rem;
    color: var(--accent-green-bright);
    font-weight: 700;
}

.fcs-lrf-tag {
    font-size: 0.58rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
}

.fcs-lrf-distance {
    font-size: 1.10rem;
    color: var(--accent-green-bright);
    font-weight: 800;
    letter-spacing: 1.5px;
}

.fcs-status {
    font-size: 0.65rem;
    color: var(--accent-green);
    font-weight: 700;
    letter-spacing: 1px;
}

.fcs-status.loading {
    color: var(--accent-amber);
}

/* Floating Hit Marker & Tactical Status Badges */
#hit-marker {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    font-family: var(--font-telemetry);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s ease, transform 0.12s ease;
    z-index: 60;
}

#hit-marker.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

.tac-marker-badge {
    background: rgba(13, 17, 23, 0.94);
    border: 1px solid currentColor;
    padding: 5px 14px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
    font-size: 0.92rem;
    font-weight: 700;
}

.tac-marker-badge.ricochet {
    color: #f59e0b;
    border-color: #f59e0b;
}

.tac-marker-badge.armor {
    color: #38bdf8;
    border-color: #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
}

.tac-marker-badge.damage {
    color: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.45);
}



/* ==========================================================================
   BOTTOM TACTICAL COMBAT HUD
   ========================================================================== */
#bottom-hud {
    position: absolute;
    bottom: 14px;
    left: 18px;
    right: 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
    z-index: 90;
}

/* 1. Left: Cockpit Flight & Driving Analog Instruments + AERO SYSTEMS */
#radar-container.tactical-left-dock,
.tactical-left-dock {
    position: relative;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 0;
    width: 268px;
    height: auto;
    box-shadow: none;
}

.cockpit-instruments-dock {
    display: flex;
    gap: 8px;
    width: 100%;
}

.analog-gauge-unit {
    position: relative;
    width: 130px;
    height: 130px;
    flex-shrink: 0;
}

.gauge-bezel {
    position: relative;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #171c23 0%, #0d1015 80%, #06080b 100%);
    border: 2px solid #283342;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Authentic corner screws */
.gauge-bezel .screw {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #475569;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.2);
    z-index: 10;
}
.gauge-bezel .screw.top-left { top: 5px; left: 5px; }
.gauge-bezel .screw.top-right { top: 5px; right: 5px; }
.gauge-bezel .screw.bottom-left { bottom: 5px; left: 5px; }
.gauge-bezel .screw.bottom-right { bottom: 5px; right: 5px; }

/* SVG Gauge face */
.gauge-face-svg {
    width: 116px;
    height: 116px;
    display: block;
}

/* Analog needle */
.analog-needle-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 48px;
    margin-left: -2px;
    margin-top: -38px;
    transform-origin: 2px 38px;
    transition: transform 0.04s ease-out;
    pointer-events: none;
    z-index: 5;
}

.needle-blade {
    width: 100%;
    height: 38px;
    background: linear-gradient(to top, #ea580c, #f97316 60%, #fdba74 100%);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 0 6px rgba(249, 115, 22, 0.6);
}

.needle-counterweight {
    width: 6px;
    height: 10px;
    margin-left: -1px;
    background: #334155;
    border-radius: 0 0 3px 3px;
}

.needle-cap {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    margin-top: -6px;
    background: radial-gradient(circle, #64748b 0%, #1e293b 80%, #0f172a 100%);
    border: 1px solid #94a3b8;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    z-index: 6;
}

/* Embedded Gear badge in gauge */
.gauge-gear-badge {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 3px;
    padding: 2px 7px;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--accent-amber);
    letter-spacing: 0.6px;
    white-space: nowrap;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

/* Digital Speed readout at bottom */
.gauge-digital-speed {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 1px;
    white-space: nowrap;
    z-index: 4;
}

/* Gauge 2: Attitude Indicator (Artificial Horizon) */
.attitude-bezel {
    flex-direction: column;
}

.pull-to-cage-knob {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.pull-to-cage-knob span {
    font-family: var(--font-mono);
    font-size: 0.38rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.3px;
}

.attitude-viewport {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2px solid #334155;
    background: #0f172a;
    overflow: hidden;
    margin-top: 2px;
}

.attitude-horizon-disk {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 240px;
    height: 240px;
    margin-left: -120px;
    margin-top: -120px;
    transform-origin: center center;
    transition: transform 0.05s ease-out;
}

.horizon-sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, #0284c7, #38bdf8);
}

.horizon-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, #78350f, #451a03);
}

.horizon-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
    margin-top: -1px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
}

.pitch-ladder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 70px;
    pointer-events: none;
}

.pitch-line {
    position: absolute;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.45rem;
    font-weight: bold;
    color: #ffffff;
}
.pitch-line.p20 { top: 6px; }
.pitch-line.p10 { top: 20px; }
.pitch-line.m10 { bottom: 20px; }
.pitch-line.m20 { bottom: 6px; }

.pitch-line .bar {
    flex: 1;
    height: 1.5px;
    background: #ffffff;
    margin: 0 4px;
}
.pitch-line .bar.dashed {
    background: repeating-linear-gradient(90deg, #ffffff, #ffffff 3px, transparent 3px, transparent 6px);
}

.attitude-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.roll-pointer-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center center;
    transition: transform 0.05s ease-out;
}

.roll-triangle {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #f97316;
}

.aircraft-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aircraft-wing {
    width: 18px;
    height: 3px;
    background: #f97316;
    border: 1px solid #1e293b;
    border-radius: 1px;
}
.aircraft-wing.left { margin-right: 4px; }
.aircraft-wing.right { margin-left: 4px; }

.aircraft-dot {
    width: 5px;
    height: 5px;
    background: #f97316;
    border-radius: 50%;
    border: 1px solid #1e293b;
}

.attitude-label {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-telemetry);
    font-size: 0.62rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 1px;
}

/* 2. Center: Battlefield Landscape Health & Armor Dashboard (Elevated, Not Touching Bottom) */
.tactical-status-dock {
    pointer-events: auto;
    background: rgba(13, 17, 23, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 6px;
    padding: 10px 18px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.7);
    width: 480px;
    max-width: calc(100vw - 640px);
    margin-bottom: 14px; /* Elevated, NOT touching bottom line */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tac-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 5px;
}

.tac-commander-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tac-rank-icon {
    font-size: 0.8rem;
}

.tac-callsign {
    font-family: var(--font-telemetry);
    font-size: 0.88rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 0.5px;
}

.tac-header-telemetry {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tac-pill-svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    vertical-align: middle;
}

.system-status-pill {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}
.system-status-pill.nominal {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}
.system-status-pill.warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}
.system-status-pill.critical {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #f87171;
}

.tac-bars-container {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.tac-bar-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tac-bar-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
}

.tac-bar-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.tac-bar-value .val-num {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 800;
}

.armor-group .tac-bar-label { color: #7dd3fc; }
.armor-group .val-num { color: #38bdf8; }

.health-group .tac-bar-label { color: #86efac; }
.health-group .val-num { color: #4ade80; }

.tac-bar-track {
    position: relative;
    width: 100%;
    height: 10px;
    background: rgba(15, 23, 42, 0.85);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tac-bar-fill {
    height: 100%;
    width: 100%;
    transition: width 0.15s ease-out, background-color 0.2s ease;
}

.armor-fill {
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.health-fill {
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

/* Ballistic Segment Grid Overlay across bars */
.tac-bar-segments {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    pointer-events: none;
}

.tac-bar-segments span {
    flex: 1;
    border-right: 1px solid rgba(0, 0, 0, 0.45);
}
.tac-bar-segments span:last-child {
    border-right: none;
}

.tac-status-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reload-cluster {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.reload-header {
    display: flex;
    align-items: center;
    gap: 5px;
}

.reload-indicator-dot {
    width: 5px;
    height: 5px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
}

.tac-footer-utility {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tac-util-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 4px;
}
.tac-util-badge kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    padding: 1px 4px;
    color: var(--accent-amber);
    font-size: 0.62rem;
}

/* ==========================================================================
   REALISTIC MILITARY NETWORK LOADING SCREEN (MILNET SATELLITE ASSET UPLINK)
   ========================================================================== */
.military-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, #11161d 0%, #0a0d12 75%, #05070a 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
}

.military-loading-screen.dismissed {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.mil-loading-card {
    background: rgba(15, 20, 26, 0.96);
    border: 1px solid rgba(71, 85, 105, 0.45);
    border-radius: 8px;
    width: 820px;
    max-width: 95vw;
    padding: 24px 28px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

.mil-loading-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.mil-header-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mil-crest-svg {
    width: 26px;
    height: 26px;
    fill: var(--accent-amber);
    flex-shrink: 0;
}

.mil-header-titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mil-title-main {
    font-family: var(--font-telemetry);
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 1px;
}

.mil-title-sub {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #64748b;
    letter-spacing: 0.5px;
}

.mil-header-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mil-status-dot.streaming {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
    animation: pulse-green 1.2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.mil-status-text {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: #86efac;
    letter-spacing: 0.5px;
}

.mil-skip-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 4px 10px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.15s ease;
}
.mil-skip-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.mil-metrics-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.mil-metric-box {
    background: rgba(10, 14, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.mil-metric-box.highlight {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.05);
}

.mil-metric-lbl {
    font-family: var(--font-telemetry);
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
}

.mil-metric-val {
    font-family: var(--font-mono);
    font-size: 0.86rem;
    font-weight: 800;
    color: #f8fafc;
}
.mil-metric-val small {
    font-size: 0.62rem;
    color: #64748b;
    font-weight: 600;
}
.mil-metric-val.security-ok {
    color: #22c55e;
}

.mil-progress-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mil-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
}

.mil-progress-status {
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.mil-progress-pct {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-green-bright);
}

.mil-progress-bar-track {
    position: relative;
    width: 100%;
    height: 14px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(71, 85, 105, 0.4);
    border-radius: 3px;
    overflow: hidden;
}

.mil-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #15803d 0%, #22c55e 100%);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
    transition: width 0.06s ease-out;
}

.mil-progress-segments {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    pointer-events: none;
}

.mil-seg-block {
    flex: 1;
    border-right: 1px solid rgba(0, 0, 0, 0.5);
}
.mil-seg-block:last-child {
    border-right: none;
}

.mil-terminal-console {
    background: #07090d;
    border: 1px solid rgba(51, 65, 85, 0.4);
    border-radius: 4px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 130px;
}

.mil-console-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-telemetry);
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 4px;
}

.terminal-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-amber);
    border-radius: 50%;
}

.mil-console-feed {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
}

.console-log-row {
    display: flex;
    gap: 8px;
    align-items: center;
    line-height: 1.3;
}
.console-log-row .c-time { color: #64748b; }
.console-log-row .c-pkg { color: var(--accent-amber); font-weight: 700; }
.console-log-row .c-name { color: #cbd5e1; flex: 1; }
.console-log-row .c-size { color: #94a3b8; }
.console-log-row .c-status { color: #22c55e; font-weight: 700; }

.mil-footer-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.mil-ready-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    color: #94a3b8;
}

.mil-deploy-btn {
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 4px;
    padding: 8px 18px;
    font-family: var(--font-telemetry);
    font-size: 0.88rem;
    font-weight: 800;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mil-deploy-btn.active {
    background: #15803d;
    border-color: #22c55e;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.4);
}
.mil-deploy-btn.active:hover {
    background: #16a34a;
    box-shadow: 0 0 22px rgba(34, 197, 94, 0.6);
}
.mil-deploy-btn kbd {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    padding: 1px 4px;
    font-size: 0.68rem;
    font-family: var(--font-mono);
}

/* 3. Right: Battlefield-Grade Armament Dock */
.weapon-system-card.battlefield-dock {
    pointer-events: auto;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 4px;
    padding: 10px 14px;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 310px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.65);
}

.bf-weapon-slot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    transition: all 0.15s ease;
}

.bf-weapon-slot.primary {
    border-left: 3px solid var(--accent-green-bright);
    background: rgba(34, 197, 94, 0.06);
}

.bf-slot-key kbd {
    display: inline-block;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--accent-amber);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.bf-weapon-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.bf-ammo-name {
    font-family: var(--font-telemetry);
    font-size: 0.88rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 0.5px;
}

.bf-weapon-type {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent-green-bright);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.bf-status-pill {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.bf-status-pill.ready {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.bf-secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.bf-weapon-slot.secondary {
    padding: 5px 8px;
    gap: 6px;
}

.bf-weapon-slot.secondary#slot-coax {
    border-left: 2px solid var(--accent-blue);
}

.bf-weapon-slot.secondary#slot-roof {
    border-left: 2px solid var(--accent-amber);
}

.bf-gun-name {
    font-family: var(--font-telemetry);
    font-size: 0.74rem;
    font-weight: 700;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bf-gun-sub {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-muted);
    font-weight: 600;
}

.bf-utility-strip {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bf-util-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: #cbd5e1;
}

.bf-util-pill kbd {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--accent-amber);
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 0.65rem;
}

/* Ammo button styling for Armory modal chassis selection */
.ammo-btn {
    background: #151c27;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 12px 14px;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    display: flex;
}

.ammo-btn:hover {
    background: #1c2738;
    border-color: rgba(255, 255, 255, 0.28);
}

.ammo-btn.active {
    background: #1b2636;
    border-color: var(--accent-green-bright);
    color: #fff;
}

.ammo-btn kbd {
    background: rgba(0, 0, 0, 0.4);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: var(--font-mono);
    color: var(--accent-amber);
}

/* ==========================================================================
   TACTICAL BATTLE NETWORK LOBBY & MODALS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 9, 13, 0.88);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
}

.modal-card {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    padding: 28px;
    width: 720px;
    max-width: 94vw;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.modal-title {
    font-family: var(--font-telemetry);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title span {
    color: var(--accent-green-bright);
}

.modal-sub {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.modal-status-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.modal-status-icon.danger {
    color: var(--accent-red);
}

.modal-status-icon.success {
    color: var(--accent-green-bright);
}

.modal-status-icon.warning {
    color: var(--accent-amber);
}

/* Commander Call-sign Bar */
.commander-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 12px 18px;
    margin-bottom: 20px;
}

.commander-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.commander-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.commander-name {
    font-family: var(--font-telemetry);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

/* Create Sector Row */
/* ==========================================================================
   IN-GAME 1V1 DUEL TOP OPPONENT STATUS HUD
   ========================================================================== */
#duel-top-hud {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 95;
    pointer-events: none;
}

.duel-top-hud-card {
    background: rgba(15, 20, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
    border-radius: 6px;
    padding: 8px 18px;
    display: inline-flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.duel-opp-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
}

.duel-hud-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 1px;
}

.duel-hud-opp-name {
    font-family: var(--font-telemetry);
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}

.duel-hud-opp-model {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #94a3b8;
}

.duel-hud-dist-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 2px 7px;
    border-radius: 3px;
}

/* ==========================================================================
   TACTICAL MODAL CARDS (CLEAN MILITARY)
   ========================================================================== */
/* High-Priority Overlays: Always float above 1v1 lobby and hangar */
#outgoing-challenge-modal {
    z-index: 5000 !important;
}

#challenge-modal {
    z-index: 5500 !important;
}

#duel-outcome-modal {
    z-index: 6000 !important;
}

.tactical-modal-card {
    background: #0f141c;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85);
    border-radius: 8px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 480px;
    max-width: 92vw;
}

.tactical-modal-card.alert-border {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85), 0 0 20px rgba(245, 158, 11, 0.15);
}

.modal-status-badge {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.modal-status-badge.warning {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.tactical-modal-title {
    font-family: var(--font-telemetry);
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.tactical-modal-sub {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.5;
}

.challenge-intel-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.challenge-intel-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.challenge-intel-row .intel-lbl {
    color: #64748b;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
}

.challenge-intel-row .intel-val {
    color: #fff;
    font-family: var(--font-telemetry);
    font-weight: 700;
}

.tactical-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.accept-btn {
    flex: 1.4;
    background: #16a34a !important;
    border-color: #22c55e !important;
    color: #fff !important;
    font-weight: 800 !important;
    justify-content: center;
    padding: 12px !important;
}

.accept-btn:hover {
    background: #22c55e !important;
}

.decline-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #cbd5e1 !important;
    justify-content: center;
    padding: 12px !important;
}

.decline-btn:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: #ef4444 !important;
    color: #fff !important;
}

/* Transmitting Challenge Modal */
.transmitting-card {
    text-align: center;
    align-items: center;
    width: 440px;
}

.transmitting-radar-icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    margin-bottom: 4px;
}

.radar-ping {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #38bdf8;
    animation: radarPulseAnim 1.8s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes radarPulseAnim {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(1.6); opacity: 0; }
}

.awaiting-pulse-bar {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 6px 14px;
    border-radius: 4px;
    letter-spacing: 1.5px;
    animation: textBlink 1.4s infinite alternate ease-in-out;
}

@keyframes textBlink {
    0% { opacity: 0.5; }
    100% { opacity: 1.0; }
}

.cancel-btn {
    width: 100%;
    justify-content: center;
    padding: 11px !important;
    margin-top: 6px;
}

/* ==========================================================================
   1V1 DUEL OUTCOME & REMATCH MODAL
   ========================================================================== */
.duel-outcome-card {
    width: 540px;
    max-width: 92vw;
    text-align: center;
    align-items: center;
}

.duel-outcome-title {
    font-family: var(--font-telemetry);
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.duel-outcome-sub {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    margin-top: 4px;
    letter-spacing: 1px;
}

.duel-opp-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 4px;
}

.duel-opp-summary strong {
    color: #fff;
    font-family: var(--font-telemetry);
    font-size: 0.95rem;
}

.opp-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #38bdf8;
}

.duel-actions-row {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 6px;
}

.rematch-btn {
    flex: 1.4;
    justify-content: center;
    padding: 13px !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
}

.leave-btn {
    flex: 1;
    justify-content: center;
    padding: 13px !important;
}

/* ==========================================================================
   CLEAN MODERN MILITARY 1V1 COMBAT LOBBY
   ========================================================================== */
.tactical-lobby-card {
    width: 94vw;
    max-width: 1120px;
    height: 90vh;
    max-height: 880px;
    background: #0f141c;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 20px 24px;
}

.tactical-lobby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

.lobby-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tactical-lobby-title {
    font-family: var(--font-telemetry);
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1.5px;
}

.tactical-lobby-sub {
    font-family: var(--font-mono);
    font-size: 0.70rem;
    color: #94a3b8;
    margin-top: 2px;
}

.tactical-lobby-body {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 20px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.lobby-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.lobby-col.host-col {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.45) rgba(15, 23, 42, 0.6);
    -webkit-overflow-scrolling: touch;
}

.lobby-col.host-col::-webkit-scrollbar {
    width: 6px;
}

.lobby-col.host-col::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 4px;
}

.lobby-col.host-col::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.4);
    border-radius: 4px;
}

.lobby-col.host-col::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.8);
}

#host-setup-container {
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

.col-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Call-sign Bar */
.lobby-callsign-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 10px 14px;
}

.callsign-display-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.callsign-label {
    font-family: var(--font-mono);
    font-size: 0.70rem;
    color: #64748b;
    font-weight: 700;
}

.callsign-name {
    font-family: var(--font-telemetry);
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.callsign-edit-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.callsign-edit-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #38bdf8;
}

/* Form Group & Input */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.form-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.8px;
}

.tactical-input {
    width: 100%;
    background: #141b26;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 5px;
    padding: 10px 12px;
    color: #fff;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    outline: none;
    user-select: text;
    -webkit-user-select: text;
    transition: border-color 0.15s ease;
}

.tactical-input:focus {
    border-color: #38bdf8;
}

/* Mode Selector Pills */
.mode-pills-row {
    display: flex;
    gap: 8px;
}

.mode-pill-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: rgba(22, 28, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 10px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mode-pill-btn strong {
    font-family: var(--font-telemetry);
    font-size: 0.88rem;
    font-weight: 800;
    color: #cbd5e1;
    letter-spacing: 0.5px;
}

.mode-pill-btn span {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: #64748b;
}

.mode-pill-btn:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.25);
}

.mode-pill-btn.active {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
}

.mode-pill-btn.active strong {
    color: #4ade80;
}

.mode-pill-btn.active span {
    color: #86efac;
}

.mode-pill-btn[data-mode="DUEL"].active {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
}

.mode-pill-btn[data-mode="DUEL"].active strong {
    color: #38bdf8;
}

.mode-pill-btn[data-mode="DUEL"].active span {
    color: #7dd3fc;
}

/* Map Selector Pills */
.map-pills-row {
    display: flex;
    gap: 6px;
}

.map-pill-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(22, 28, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 8px 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.map-pill-btn strong {
    font-family: var(--font-telemetry);
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
}

.map-pill-btn span {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: #64748b;
}

.map-pill-btn:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.25);
}

.map-pill-btn.active {
    background: rgba(14, 116, 144, 0.25);
    border-color: #38bdf8;
}

.map-pill-btn.active strong {
    color: #fff;
}

.map-pill-btn.active span {
    color: #38bdf8;
}

.mode-pill-btn[data-map-type="STATIC"].active {
    background: rgba(245, 158, 11, 0.18);
    border-color: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.mode-pill-btn[data-map-type="STATIC"].active strong {
    color: #fbbf24;
}

.mode-pill-btn[data-map-type="STATIC"].active span {
    color: #fde68a;
}

.mode-pill-btn[data-map-type="DYNAMIC"].active {
    background: rgba(56, 189, 248, 0.18);
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.mode-pill-btn[data-map-type="DYNAMIC"].active strong {
    color: #38bdf8;
}

.mode-pill-btn[data-map-type="DYNAMIC"].active span {
    color: #7dd3fc;
}

.dynamic-generator-panel {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    backdrop-filter: blur(8px);
}

.dyn-matrix-row-1 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.dyn-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dyn-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dyn-icon-pills {
    display: flex;
    gap: 4px;
}

.dyn-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 46px;
    height: 46px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 4px 2px;
}

.dyn-icon-btn .dyn-svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dyn-icon-btn span {
    font-family: var(--font-mono);
    font-size: 0.52rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #64748b;
    pointer-events: none;
}

.dyn-icon-btn:hover {
    background: rgba(51, 65, 85, 0.85);
    border-color: rgba(255, 255, 255, 0.25);
    color: #f1f5f9;
}

.dyn-icon-btn.active {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.dyn-icon-btn.active span {
    color: #7dd3fc;
    font-weight: 700;
}

/* Row 2: Location, Road Style, Seed */
.dyn-matrix-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 8px;
    align-items: end;
}

@media (max-width: 600px) {
    .dyn-matrix-row-2 {
        grid-template-columns: 1fr;
    }
}

.dyn-carousel-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dyn-carousel-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    height: 36px;
    padding: 0 4px;
}

.dyn-carousel-box strong {
    font-family: var(--font-telemetry);
    font-size: 0.78rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.5px;
    text-align: center;
    flex: 1;
}

.dyn-arrow-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.72rem;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.dyn-arrow-btn:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
}

.dyn-seed-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dyn-seed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dyn-randomise-btn {
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    color: #38bdf8;
    cursor: pointer;
    padding: 0;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.dyn-randomise-btn:hover {
    text-decoration: underline;
    color: #7dd3fc;
}

.dyn-seed-input {
    height: 36px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0 8px;
    letter-spacing: 1px;
}

/* Row 3: Code & Actions */
.dyn-matrix-row-3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 8px 12px;
}

.dyn-code-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #94a3b8;
}

.dyn-code-display strong {
    color: #38bdf8;
    letter-spacing: 0.5px;
    font-size: 0.82rem;
}

.dyn-code-actions {
    display: flex;
    gap: 6px;
}

.tac-btn.sm {
    padding: 4px 10px;
    font-size: 0.7rem;
    height: 28px;
}

/* Equipped Tank Badge */
.equipped-tank-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    padding: 8px 12px;
    margin-bottom: 14px;
}

.badge-lbl {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
}

.badge-val {
    font-family: var(--font-telemetry);
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--accent-green-bright);
}

.create-room-btn {
    width: 100%;
    justify-content: center;
    padding: 12px !important;
    font-weight: 800 !important;
}

/* Active Hosting Card */
.host-active-card {
    background: rgba(14, 116, 144, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 6px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.radar-pulse-ring {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
}

.host-active-title {
    font-family: var(--font-telemetry);
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.host-active-details {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
}

.detail-row span {
    color: #64748b;
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.detail-row strong {
    color: #fff;
}

.close-room-btn {
    width: 100%;
    justify-content: center;
    background: rgba(239, 68, 68, 0.18) !important;
    border-color: #ef4444 !important;
    color: #fca5a5 !important;
    padding: 10px !important;
}

.close-room-btn:hover {
    background: rgba(239, 68, 68, 0.3) !important;
    color: #fff !important;
}

/* Right Column: Public Rooms List */
.active-count-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 2px 7px;
    border-radius: 3px;
}

.tactical-rooms-list {
    flex: 1;
    background: #090d14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.empty-rooms-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    color: #94a3b8;
    font-size: 0.88rem;
    padding: 30px;
}

.tactical-room-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #141b26;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 12px 16px;
    transition: all 0.15s ease;
}

.tactical-room-card:hover {
    background: #1c2738;
    border-color: rgba(255, 255, 255, 0.25);
}

.room-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.room-card-title {
    font-family: var(--font-telemetry);
    font-size: 1.02rem;
    font-weight: 800;
    color: #fff;
}

.room-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    color: #94a3b8;
}

.room-card-meta strong {
    color: #38bdf8;
}

.room-tag-mode {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.room-tag-mode.duel {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.room-tag-mode.coop {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.room-tag-chassis {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    padding: 1px 5px;
    border-radius: 2px;
}

.room-tag-map {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #f59e0b;
}

.btn-challenge-room {
    padding: 8px 16px !important;
    font-size: 0.82rem !important;
}

.btn-challenge-room.coop {
    background: #16a34a !important;
    border-color: #22c55e !important;
}

.btn-challenge-room.coop:hover {
    background: #22c55e !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
}

/* Lobby Footer */
.tactical-lobby-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 14px;
}

.solo-fallback-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-family: var(--font-telemetry);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.solo-fallback-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.footer-telemetry {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #64748b;
    letter-spacing: 0.5px;
}

@media (max-width: 920px) {
    .tactical-lobby-card {
        width: 96vw;
        height: 94vh;
        max-height: 94vh;
        padding: 14px 12px;
    }

    .tactical-lobby-body {
        grid-template-columns: 1fr;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .lobby-col.host-col {
        overflow-y: visible;
        max-height: none;
        padding-right: 0;
    }

    .tactical-rooms-list {
        min-height: 260px;
    }
}

@media (max-height: 760px) {
    .tactical-lobby-card {
        height: 96vh;
        max-height: 96vh;
        padding: 12px 18px;
    }
}

/* ==========================================================================
   TACTICAL MISSION HUD PANEL
   ========================================================================== */
#mission-hud-card {
    position: absolute;
    top: 58px;
    right: 18px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 4px;
    padding: 12px 16px;
    backdrop-filter: blur(10px);
    width: 320px;
    z-index: 95;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}

.mission-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 6px;
}

.mission-badge {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--accent-green-bright);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.mission-code {
    font-family: var(--font-telemetry);
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.mission-objectives-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.obj-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.obj-item.done {
    color: var(--accent-green-bright);
}

.obj-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mission-waypoint-row {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--accent-amber);
    display: flex;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   TACTICAL BATTLE FEED (TOP-LEFT CORNER NOTIFICATIONS)
   ========================================================================== */
#tactical-feed-container {
    position: fixed;
    top: 60px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
    z-index: 88;
    max-width: 420px;
}

.tac-feed-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(8, 14, 22, 0.92);
    border-left: 3px solid #22c55e;
    border-radius: 0 4px 4px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #f1f5f9;
    opacity: 0;
    transform: translateX(-20px);
    animation: tacFeedSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.tac-feed-item.fade-out {
    opacity: 0;
    transform: translateX(-16px);
}

@keyframes tacFeedSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   TARGET LOCK WARNING BANNER
   ========================================================================== */
#target-lock-warning {
    position: absolute;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 8px 20px;
    border-radius: 3px;
    font-family: var(--font-telemetry);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    animation: lockBlink 0.35s infinite alternate;
    z-index: 99;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@keyframes lockBlink {
    from { opacity: 0.7; transform: translateX(-50%) scale(0.98); }
    to { opacity: 1.0; transform: translateX(-50%) scale(1.02); }
}

/* Quick Action Hints */
.quick-keys-hint {
    display: flex;
    gap: 10px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 4px 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-keys-hint kbd {
    background: rgba(0, 0, 0, 0.4);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: var(--font-mono);
    color: var(--accent-amber);
}

/* Combat Recap Box */
.combat-recap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.recap-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 12px 10px;
    text-align: center;
}

.recap-val {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.recap-lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rank-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid #f59e0b;
    padding: 6px 20px;
    border-radius: 4px;
    letter-spacing: 1.5px;
}

.defeat-card {
    border-color: #ef4444 !important;
    text-align: center;
}

.victory-card {
    border-color: #22c55e !important;
    text-align: center;
}

/* Missions Grid Modal */
.missions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.mission-card {
    background: #141b26;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 16px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mission-card:hover, .mission-card.active {
    background: #1c2738;
    border-color: var(--accent-green-bright);
}

.mission-card-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-green-bright);
    margin-bottom: 4px;
}

.mission-card-title {
    font-family: var(--font-telemetry);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.mission-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 14px;
}

/* ==========================================================================
   AAA MODERN TANK GAME — MAIN MENU / HANGAR SCREEN
   Clean, authentic military aesthetic: No cyberpunk neon, no confusing text.
   ========================================================================== */
#main-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 32px;
    background: radial-gradient(circle at 50% 50%, rgba(13, 17, 23, 0.1) 0%, rgba(10, 13, 18, 0.6) 100%);
}

#main-menu-overlay * {
    pointer-events: auto;
}

/* Hangar Top Navigation Bar */
.hangar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 17, 23, 0.88);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 22px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.brand-title-lg {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-telemetry);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
}

.brand-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 1px;
}

.hangar-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hangar-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-family: var(--font-telemetry);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hangar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

.hangar-nav-btn.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.hangar-user-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-callsign-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 5px;
    font-family: var(--font-telemetry);
    font-size: 0.85rem;
    font-weight: 700;
    color: #f1f5f9;
    cursor: pointer;
    transition: all 0.15s ease;
}

.user-callsign-tag:hover {
    border-color: var(--accent-green-bright);
}

.hangar-icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    width: 36px;
    height: 36px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hangar-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Hangar Bottom Left Hero Deployment Card */
.hangar-deploy-card {
    background: rgba(13, 17, 23, 0.90);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 22px 28px;
    width: 440px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.55);
}

.deploy-mode-badge {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 10px;
}

.mode-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #38bdf8;
    text-transform: uppercase;
}

.mode-title {
    font-family: var(--font-telemetry);
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.deploy-intel-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #94a3b8;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.deploy-action-row {
    display: flex;
    gap: 12px;
}

.hangar-battle-btn {
    flex: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border: 1px solid #22c55e;
    color: #fff;
    padding: 14px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 18px rgba(34, 197, 94, 0.35);
}

.hangar-battle-btn:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.5);
}

.tac-svg-battle {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.battle-btn-text {
    font-family: var(--font-telemetry);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.hangar-sub-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f1f5f9;
    font-family: var(--font-telemetry);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hangar-sub-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Hangar Bottom Right Vehicle Card */
.hangar-vehicle-card {
    position: absolute;
    bottom: 24px;
    right: 32px;
    background: rgba(13, 17, 23, 0.90);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 20px 24px;
    width: 380px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.55);
}

.vehicle-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.vehicle-model {
    font-family: var(--font-telemetry);
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.vehicle-class-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 7px;
    border-radius: 3px;
}

.vehicle-weapons-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.weapon-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
}

.weapon-role {
    font-family: var(--font-mono);
    color: #64748b;
    font-size: 0.70rem;
    font-weight: 700;
}

.weapon-val {
    color: #e2e8f0;
    font-weight: 600;
}

.hangar-customize-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-family: var(--font-telemetry);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hangar-customize-btn:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: #38bdf8;
}

/* ==========================================================================
   CLEAN MILITARY ARMORY & 2-WINDOW LOADOUT SYSTEM
   ========================================================================== */
.clean-armory-card {
    width: 94vw;
    max-width: 1280px;
    height: 88vh;
    max-height: 820px;
    display: flex;
    flex-direction: column;
    background: #0f141c;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85);
    border-radius: 8px;
    overflow: hidden;
    padding: 20px 24px;
}

.clean-armory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    margin-bottom: 16px;
}

.clean-armory-title {
    font-family: var(--font-telemetry);
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1.5px;
}

.clean-armory-sub {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 2px;
}

.clean-armory-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.clean-tab-group {
    display: flex;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 3px;
    gap: 3px;
}

.clean-tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-family: var(--font-telemetry);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.clean-tab-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.clean-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    width: 34px;
    height: 34px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.clean-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fff;
}

/* 3-Column Clean Armory Workspace */
.clean-armory-body {
    display: grid;
    grid-template-columns: 330px 1fr 340px;
    gap: 18px;
    flex: 1;
    min-height: 0;
}

/* Column 1: The 2 Clean Rectangular Windows */
.clean-armory-slots-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    position: relative;
}

.clean-slots-header {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #64748b;
    text-transform: uppercase;
}

/* The 2 Rectangular Weapon Windows requested by the user */
.clean-slot-window {
    background: rgba(22, 28, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.18s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.clean-slot-window:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(28, 36, 48, 0.95);
}

.clean-slot-window.selected {
    border-color: #38bdf8;
    background: rgba(14, 116, 144, 0.18);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.18);
}

.slot-window-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 0.5px;
}

.slot-window-name {
    font-family: var(--font-telemetry);
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.slot-window-stats {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: #94a3b8;
}

.slot-window-status {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    margin-top: 4px;
}

.slot-window-status.active {
    color: #4ade80;
}

.slot-window-status.locked {
    color: #f59e0b;
}

/* Selection Drawer */
.clean-drawer {
    background: rgba(13, 17, 23, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    padding: 14px;
    margin-top: 6px;
}

.drawer-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-heading {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: #cbd5e1;
}

.drawer-close-link {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.9rem;
    cursor: pointer;
}

.drawer-close-link:hover {
    color: #fff;
}

.drawer-gun-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.drawer-gun-item:hover, .drawer-gun-item.selected {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
}

.drawer-gun-empty {
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

/* Column 2: 3D Studio Turntable Viewport */
.clean-armory-viewport-col {
    display: flex;
    flex-direction: column;
    background: #080b0f;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.clean-viewport-header {
    display: flex;
    justify-content: space-between;
    padding: 8px 14px;
    background: rgba(18, 24, 34, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--font-mono);
    font-size: 0.70rem;
    color: #94a3b8;
}

#clean-armory-viewport {
    flex: 1;
    width: 100%;
    min-height: 0;
    cursor: grab;
}

#clean-armory-viewport:active {
    cursor: grabbing;
}

.clean-viewport-footer {
    padding: 10px 16px;
    background: rgba(18, 24, 34, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: center;
}

.clean-audio-test-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f1f5f9;
    font-family: var(--font-telemetry);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.clean-audio-test-btn:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: #38bdf8;
    color: #fff;
}

/* Column 3: Clean Specs & Confirmation */
.clean-armory-specs-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.clean-spec-card {
    background: rgba(18, 24, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    padding: 16px;
}

.clean-spec-title {
    font-family: var(--font-telemetry);
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.clean-spec-desc {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.45;
    margin-bottom: 14px;
}

/* The 4 Clean Numeric Spec Boxes */
.clean-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.clean-spec-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    padding: 10px 12px;
}

.spec-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 3px;
}

.spec-value {
    font-family: var(--font-telemetry);
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.clean-chassis-card {
    background: rgba(18, 24, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    padding: 14px 16px;
}

.clean-spec-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 8px;
}

.clean-chassis-buttons {
    display: flex;
    gap: 6px;
}

.clean-chassis-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    font-family: var(--font-telemetry);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.clean-chassis-btn:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

.clean-chassis-btn.active {
    background: rgba(34, 197, 94, 0.18);
    border-color: #22c55e;
    color: #4ade80;
}

.clean-save-box {
    margin-top: auto;
}

.clean-save-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #16a34a;
    border: 1px solid #22c55e;
    color: #fff;
    font-family: var(--font-telemetry);
    font-size: 0.95rem;
    font-weight: 800;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.clean-save-btn:hover {
    background: #22c55e;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
}

/* ==========================================================================
   CLEAN SETTINGS MODAL
   ========================================================================== */
.clean-settings-card {
    width: 520px;
    max-width: 92vw;
    background: #0f141c;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85);
    border-radius: 8px;
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.clean-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.clean-settings-title {
    font-family: var(--font-telemetry);
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.clean-settings-sub {
    font-family: var(--font-mono);
    font-size: 0.70rem;
    color: #94a3b8;
    margin-top: 2px;
}

.clean-settings-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 60vh;
    overflow-y: auto;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-group-title {
    font-family: var(--font-mono);
    font-size: 0.70rem;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 1px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #cbd5e1;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 200px;
}

.clean-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    outline: none;
}

.clean-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #22c55e;
    cursor: pointer;
    border: 1px solid #fff;
}

.slider-wrapper span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #94a3b8;
    width: 38px;
    text-align: right;
}

.clean-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #22c55e;
}

.keybinds-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 10px 14px;
}

.keybind-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    color: #94a3b8;
}

.keybind-row strong {
    font-family: var(--font-mono);
    color: #f1f5f9;
}

.clean-settings-footer {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   CYBERPUNK / MODERN TACTICAL CIRCULAR 10-SECOND REPAIR HUD
   ========================================================================== */
#repair-circular-hud {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 120;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#repair-circular-hud.hidden {
    display: none !important;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
}

.repair-hud-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 28px 18px 28px;
    background: radial-gradient(circle at center, rgba(14, 28, 42, 0.92) 0%, rgba(6, 12, 20, 0.96) 100%);
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 12px;
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.25), 0 0 60px rgba(34, 197, 94, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 280px;
    animation: repairHudAppear 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes repairHudAppear {
    from { opacity: 0; transform: scale(0.90); }
    to { opacity: 1; transform: scale(1.0); }
}

/* Cyberpunk Corner Brackets */
.repair-bracket {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: #00f0ff;
    border-style: solid;
    pointer-events: none;
}
.repair-bracket.top-left {
    top: 6px; left: 6px;
    border-width: 2px 0 0 2px;
}
.repair-bracket.top-right {
    top: 6px; right: 6px;
    border-width: 2px 2px 0 0;
}
.repair-bracket.bottom-left {
    bottom: 6px; left: 6px;
    border-width: 0 0 2px 2px;
}
.repair-bracket.bottom-right {
    bottom: 6px; right: 6px;
    border-width: 0 2px 2px 0;
}

.repair-hud-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-telemetry);
    font-size: 0.72rem;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.repair-pulse {
    background: #00f0ff;
    box-shadow: 0 0 8px #00f0ff;
    animation: repairDotPulse 0.8s infinite alternate;
}

@keyframes repairDotPulse {
    from { transform: scale(0.85); opacity: 0.6; }
    to { transform: scale(1.25); opacity: 1.0; }
}

/* Radial Meter Container */
.repair-radial-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.repair-radial-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: rotate(-90deg);
}

.repair-bg-disk {
    fill: rgba(8, 16, 26, 0.75);
}

.repair-track-circle {
    fill: none;
    stroke: rgba(0, 240, 255, 0.12);
    stroke-width: 8;
}

.repair-deco-outer {
    fill: none;
    stroke: rgba(74, 222, 128, 0.20);
    stroke-width: 1.5;
    stroke-dasharray: 4 6;
    animation: repairDecoRotate 30s linear infinite;
    transform-origin: center;
}

@keyframes repairDecoRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.repair-fill-circle {
    fill: none;
    stroke: url(#repair-circ-grad);
    stroke-width: 8.5;
    stroke-linecap: round;
    stroke-dasharray: 515.22;
    stroke-dashoffset: 515.22;
    filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.8));
    transition: stroke-dashoffset 0.08s linear;
}

.repair-inner-ring {
    fill: none;
    stroke: rgba(0, 240, 255, 0.18);
    stroke-width: 1;
    stroke-dasharray: 2 4;
}

.repair-core-ring {
    fill: rgba(10, 22, 34, 0.6);
    stroke: rgba(34, 197, 94, 0.35);
    stroke-width: 1.2;
}

/* Center Telemetry Readout */
.repair-center-telemetry {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.repair-wrench-icon {
    color: #4ade80;
    margin-bottom: 2px;
    animation: wrenchBob 1.5s ease-in-out infinite alternate;
}
.repair-wrench-icon svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.6));
}

@keyframes wrenchBob {
    from { transform: translateY(-2px); }
    to { transform: translateY(2px); }
}

.repair-percent-text {
    font-family: var(--font-telemetry);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.8), 0 0 24px rgba(74, 222, 128, 0.6);
    letter-spacing: -0.5px;
}

.repair-countdown-text {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 700;
    color: #38bdf8;
    margin-top: 3px;
    letter-spacing: 1px;
}

/* Directive & Nanite Stages Footer */
.repair-directive-wrap {
    text-align: center;
    margin-top: 14px;
    width: 100%;
}

.repair-directive-main {
    font-family: var(--font-telemetry);
    font-size: 0.85rem;
    font-weight: 700;
    color: #4ade80;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.repair-directive-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 2px;
}

.repair-kbd {
    background: rgba(0, 240, 255, 0.15);
    border: 1px solid #00f0ff;
    color: #00f0ff;
    padding: 1px 5px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-weight: 700;
}

/* 5 Nanite Stages Progress Bars */
.repair-nanite-stages {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    width: 100%;
}

.nanite-stage {
    flex: 1;
    height: 14px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all 0.25s ease;
}

.nanite-stage span {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 700;
    color: #64748b;
    z-index: 2;
}

.nanite-stage.active {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.35);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.nanite-stage.active span {
    color: #ffffff;
    text-shadow: 0 0 4px #22c55e;
}

/* Repair Completion Flash Animation */
.repair-hud-card.completed {
    border-color: #22c55e;
    box-shadow: 0 0 50px rgba(34, 197, 94, 0.8), 0 0 100px rgba(34, 197, 94, 0.5);
    animation: repairCompleteFlash 0.4s ease-out;
}

@keyframes repairCompleteFlash {
    0% { transform: scale(1.0); }
    50% { transform: scale(1.06); filter: brightness(1.4); }
    100% { transform: scale(1.0); }
}

/* Repair Kit Count Badge in Top Header */
.tac-kit-badge {
    margin-left: 6px;
    padding: 2px 6px;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    color: #4ade80;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.tac-kit-badge.empty {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #f87171;
}

/* Bottom HUD Key Hint Status */
.kit-indicator-ready {
    color: #4ade80;
    font-weight: 700;
    margin-left: 2px;
}

.kit-indicator-empty {
    color: #ef4444;
    font-weight: 700;
    margin-left: 2px;
}

/* ==========================================================================
   UNREAL ENGINE DEV VIEWPORT & LEVEL INSPECTOR OVERLAY
   ========================================================================== */
#unreal-viewport-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
}

#unreal-viewport-overlay.hidden {
    display: none !important;
}

.vp-panel {
    position: absolute;
    background: rgba(10, 16, 24, 0.88);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 6px;
    padding: 14px 18px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    font-family: var(--font-mono, monospace);
    pointer-events: auto;
}

.vp-telemetry-box {
    top: 64px;
    left: 20px;
    min-width: 320px;
}

.vp-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-family: var(--font-title, sans-serif);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #38bdf8;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.vp-dot {
    width: 8px;
    height: 8px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 10px #38bdf8;
    animation: vpPulse 1.4s infinite;
}

@keyframes vpPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.vp-metric {
    font-size: 0.78rem;
    color: #cbd5e1;
    margin-bottom: 4px;
    letter-spacing: 0.04em;
}

.vp-target-metric {
    color: #4ade80;
    font-weight: 700;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.vp-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.vp-crosshair-center {
    width: 4px;
    height: 4px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 8px #38bdf8;
}

.vp-crosshair-ring {
    position: absolute;
    top: -14px;
    left: -14px;
    width: 32px;
    height: 32px;
    border: 1px dashed rgba(56, 189, 248, 0.5);
    border-radius: 50%;
}

.vp-controls-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 16, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 8px 20px;
    font-family: var(--font-mono, monospace);
    font-size: 0.74rem;
    color: #94a3b8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.vp-key {
    color: #38bdf8;
    font-weight: 700;
}

.vp-tools-box {
    top: 64px;
    right: 20px;
    width: 290px;
}

.vp-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
}

.vp-close-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.vp-control-group {
    margin-bottom: 12px;
}

.vp-control-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 700;
}

.vp-slider {
    width: 100%;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    outline: none;
}

.vp-slider::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #38bdf8;
    cursor: pointer;
    box-shadow: 0 0 8px #38bdf8;
}

.vp-button-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.vp-btn {
    flex: 1;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    padding: 7px 10px;
    font-family: var(--font-mono, monospace);
    font-size: 0.70rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.vp-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #38bdf8;
}

.vp-btn.active {
    background: rgba(14, 165, 233, 0.25);
    border-color: #38bdf8;
    color: #38bdf8;
}

.vp-btn-primary {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #4ade80;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
}

.vp-btn-primary:hover {
    background: rgba(34, 197, 94, 0.35);
    border-color: #4ade80;
    color: #86efac;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.3);
}

/* ==========================================================================
   FLIGHT WINGS 300+ KM/H TACTICAL DEPLOY BUTTON & CIRCULAR GAUGE
   ========================================================================== */
#flight-wings-circle {
    display: none !important;
    top: 68px;
    left: 20px;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.94) 0%, rgba(6, 10, 18, 0.98) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75), inset 0 0 14px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    z-index: 120;
    pointer-events: auto;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s ease,
                box-shadow 0.25s ease,
                opacity 0.25s ease;
}

#flight-wings-circle:hover {
    transform: scale(1.05);
}

#flight-wings-circle:active {
    transform: scale(0.96);
}

/* SVG Circular Speed Arc */
.fw-ring-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fw-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 5;
}

.fw-ring-bar {
    fill: none;
    stroke: #38bdf8;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 276.46;
    stroke-dashoffset: 276.46;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.1s linear, stroke 0.25s ease;
}

/* Corner Key Badge (The "T" Key at the Corner) */
.fw-key-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono, monospace);
    font-size: 0.76rem;
    font-weight: 900;
    background: #0f172a;
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #94a3b8;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.8);
    transition: all 0.25s ease;
    z-index: 5;
}

/* Inner Icon & Speed/Deploy Text */
.fw-inner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    z-index: 2;
    pointer-events: none;
}

.fw-wings-icon {
    width: 32px;
    height: 32px;
    fill: #64748b;
    transition: fill 0.25s ease, filter 0.25s ease, transform 0.3s ease;
}

.fw-status-text {
    font-family: var(--font-mono, monospace);
    font-size: 0.62rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

/* Expanding Radar Wave Pulse */
.fw-pulse-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid #38bdf8;
    opacity: 0;
    pointer-events: none;
}

@keyframes fwSonicExpand {
    0% {
        transform: scale(0.96);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

/* State: LOCKED (Speed < 250 km/h) */
#flight-wings-circle.locked {
    opacity: 0.55;
    filter: grayscale(0.5);
}

#flight-wings-circle.locked:hover {
    opacity: 0.8;
    filter: grayscale(0.2);
}

/* State: READY (Speed >= 250 km/h, ready for deployment) */
#flight-wings-circle.ready {
    opacity: 1.0;
    filter: none;
    border-color: #38bdf8;
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.65), inset 0 0 16px rgba(56, 189, 248, 0.25);
    animation: fwReadyThrob 1.2s infinite alternate ease-in-out;
}

@keyframes fwReadyThrob {
    from { transform: scale(1.02); }
    to { transform: scale(1.08); }
}

#flight-wings-circle.ready .fw-ring-bar {
    stroke: #38bdf8;
}

#flight-wings-circle.ready .fw-key-badge {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 14px #38bdf8;
}

#flight-wings-circle.ready .fw-wings-icon {
    fill: #38bdf8;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.9));
    transform: scale(1.08);
}

#flight-wings-circle.ready .fw-status-text {
    color: #7dd3fc;
}

#flight-wings-circle.ready .fw-pulse-ring {
    border-color: #38bdf8;
    animation: fwSonicExpand 1.2s infinite ease-out;
}

/* State: ACTIVE (Wings Deployed & Flying) */
#flight-wings-circle.active {
    opacity: 1.0;
    filter: none;
    border-color: #22c55e;
    box-shadow: 0 0 32px rgba(34, 197, 94, 0.7), inset 0 0 20px rgba(34, 197, 94, 0.3);
}

#flight-wings-circle.active .fw-ring-bar {
    stroke: #22c55e;
}

#flight-wings-circle.active .fw-key-badge {
    background: #16a34a;
    border-color: #4ade80;
    color: #ffffff;
    box-shadow: 0 0 14px #22c55e;
}

#flight-wings-circle.active .fw-wings-icon {
    fill: #4ade80;
    filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.95));
    transform: scale(1.12);
}

#flight-wings-circle.active .fw-status-text {
    color: #86efac;
}

#flight-wings-circle.active .fw-pulse-ring {
    border-color: #22c55e;
    animation: fwSonicExpand 0.9s infinite ease-out;
}

/* ========================================================================= */
/* TACTICAL AERO-FLIGHT & TWIN ROCKET BOOSTER TELEMETRY (WAR THUNDER SPEC)   */
/* ========================================================================= */

.aero-booster-telemetry-dock {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.aero-telemetry-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    width: 100%;
}

.aero-row-label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.aero-row-label kbd {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    padding: 1px 4px;
    font-size: 0.65rem;
    color: #fff;
}

.aero-svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.aero-gauge-bar-wrapper {
    position: relative;
    flex: 1;
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin: 0 4px;
}

.aero-gauge-bar {
    width: 0%;
    height: 100%;
    background: #f97316;
    transition: width 0.06s ease, background-color 0.2s ease;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
}

.aero-gauge-bar.stage2 {
    background: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.9);
}

.aero-mach-diamonds {
    position: absolute;
    right: 4px;
    font-size: 8px;
    color: #38bdf8;
    opacity: 0;
    transition: opacity 0.2s ease;
    letter-spacing: 1px;
}

.aero-mach-diamonds.active {
    opacity: 1;
}

.aero-val-badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 800;
    font-size: 0.68rem;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

.aero-val-badge.idle {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

.aero-val-badge.stage1 {
    background: rgba(249, 115, 22, 0.22);
    border-color: #f97316;
    color: #fdba74;
}

.aero-val-badge.stage2 {
    background: rgba(56, 189, 248, 0.24);
    border-color: #38bdf8;
    color: #bae6fd;
    animation: pulse-aero 0.6s infinite alternate;
}

.aero-val-badge.deployed {
    background: rgba(34, 197, 94, 0.22);
    border-color: #22c55e;
    color: #86efac;
}

.aero-wings-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #cbd5e1;
    white-space: nowrap;
    flex: 1;
}

.wing-span-tag {
    font-weight: 700;
    color: #38bdf8;
}

.wing-tilt-tag {
    color: #94a3b8;
}



/* Vehicle Component Damage Silhouette Panel */
#vehicle-damage-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    padding: 8px 12px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 268px;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}

.veh-schematic-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.veh-schematic-svg {
    width: 60px;
    height: 76px;
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.veh-status-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #cbd5e1;
}

.veh-status-title {
    font-weight: 800;
    color: #fff;
    font-size: 0.74rem;
    letter-spacing: 0.5px;
}

.veh-zone-tag {
    color: #22c55e;
    font-weight: 700;
}

.veh-zone-tag.ricochet {
    color: #f59e0b;
}

.veh-zone-tag.damaged {
    color: #ef4444;
}

/* =========================================================================
   HEAT-SEEKING AA MISSILE LOCK RETICLE & WARNING BANNER
   ========================================================================= */
#scope-missile-status-box {
    border-left: 2px solid #38bdf8;
}

#missile-lock-reticle {
    position: absolute;
    width: 160px;
    height: 160px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 120;
    transition: transform 0.08s ease-out, opacity 0.15s ease;
}

#missile-lock-reticle.hidden {
    display: none !important;
}

.lock-circle-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.lock-ring-dotted {
    fill: none;
    stroke: rgba(239, 68, 68, 0.72);
    stroke-width: 2.4;
    stroke-dasharray: 6, 6;
    animation: lockRingSpin 14s linear infinite;
    transform-origin: center;
}

.lock-ring-progress {
    fill: none;
    stroke: #ef4444;
    stroke-width: 3.8;
    stroke-dasharray: 427.25;
    stroke-dashoffset: 427.25;
    stroke-linecap: round;
    transform-origin: center;
    transform: rotate(-90deg);
    transition: stroke-dashoffset 0.08s linear;
}

.lock-tick {
    stroke: #ef4444;
    stroke-width: 2.5;
}

.lock-prompt-box {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    font-family: var(--font-telemetry);
    text-shadow: 0 0 10px rgba(0,0,0,0.95), 0 0 20px rgba(239, 68, 68, 0.8);
}

.lock-status-title {
    font-size: 0.80rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #fca5a5;
}

.lock-fire-action {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 38, 38, 0.92);
    border: 1.5px solid #fecaca;
    border-radius: 4px;
    padding: 4px 12px;
    color: #fff;
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.85);
    animation: lockActionPulse 0.4s ease-in-out infinite alternate;
}

.lock-fire-action.hidden {
    display: none !important;
}

.lock-fire-key {
    background: #fff;
    color: #b91c1c;
    font-weight: 900;
    font-size: 0.85rem;
    padding: 1px 7px;
    border-radius: 3px;
    font-family: var(--font-mono);
}

.lock-fire-text {
    font-size: 0.84rem;
    letter-spacing: 1.5px;
    font-weight: 900;
}

@keyframes lockRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes lockActionPulse {
    from { transform: scale(1.0); box-shadow: 0 0 14px rgba(239, 68, 68, 0.7); }
    to { transform: scale(1.06); box-shadow: 0 0 28px rgba(239, 68, 68, 1.0); }
}

/* Incoming Missile Alert Banner (Defending Flying Tank) */
#missile-warning-banner {
    position: fixed;
    top: 76px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: auto;
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.96), rgba(153, 27, 27, 0.94));
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 10px 22px;
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.85);
    animation: warningFlash 0.45s ease-in-out infinite alternate;
}

#missile-warning-banner.hidden {
    display: none !important;
}

.mwb-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mwb-icon {
    font-size: 1.6rem;
}

.mwb-text-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mwb-headline {
    font-family: var(--font-telemetry);
    font-size: 1.05rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1.5px;
}

.mwb-subtext {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #fecaca;
    letter-spacing: 1px;
    font-weight: 700;
}

.mwb-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #991b1b;
    border: none;
    border-radius: 4px;
    padding: 7px 14px;
    font-family: var(--font-telemetry);
    font-weight: 900;
    font-size: 0.84rem;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.1s ease;
}

.mwb-action-btn:hover {
    transform: scale(1.05);
}

.mwb-key {
    background: #991b1b;
    color: #fff;
    padding: 1px 6px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.78rem;
}

@keyframes warningFlash {
    from {
        border-color: #ef4444;
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
    }
    to {
        border-color: #fef08a;
        box-shadow: 0 0 45px rgba(239, 68, 68, 0.95), 0 0 15px rgba(254, 240, 138, 0.8);
    }
}

/* ==========================================================================
   GUIDED MISSILE 3RD-PERSON CHASE OPTICAL MONITOR (PICTURE-IN-PICTURE)
   ========================================================================== */
#missile-pip-monitor {
    position: fixed;
    top: 68px;
    left: 24px;
    width: 480px;
    height: 290px;
    background: transparent;
    border: 2px solid rgba(0, 240, 255, 0.75);
    border-radius: 8px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 240, 255, 0.35);
    z-index: 96;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1);
    opacity: 1;
}

#missile-pip-monitor.hidden {
    display: none !important;
}

#missile-pip-monitor.anim-in {
    animation: pipOpen 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pipOpen {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(-6px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pip-header {
    height: 28px;
    background: rgba(10, 16, 26, 0.92);
    border-bottom: 1.5px solid rgba(0, 240, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    font-family: var(--font-mono);
    backdrop-filter: blur(8px);
}

.pip-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pip-rec-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    animation: pipBlink 0.9s infinite alternate;
}

@keyframes pipBlink {
    0% { opacity: 0.25; }
    100% { opacity: 1; }
}

.pip-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: 0.9px;
}

.pip-status-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 3px;
    background: rgba(34, 197, 94, 0.22);
    border: 1px solid rgba(34, 197, 94, 0.6);
    color: #4ade80;
    letter-spacing: 0.6px;
}

.pip-status-badge.decoyed {
    background: rgba(245, 158, 11, 0.28);
    border-color: rgba(245, 158, 11, 0.7);
    color: #fbbf24;
}

.pip-status-badge.impact {
    background: rgba(239, 68, 68, 0.38);
    border-color: rgba(239, 68, 68, 0.85);
    color: #f87171;
}

.pip-viewport-frame {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: transparent;
}

/* ==========================================================================
   TARGET RECTANGULAR BOX: SIDES CUT, ONLY CORNERS SHOWN
   ========================================================================== */
.pip-target-box {
    position: absolute;
    pointer-events: none;
    box-sizing: border-box;
    filter: drop-shadow(0 0 5px rgba(34, 197, 94, 0.85));
    transition: width 0.08s linear, height 0.08s linear;
    z-index: 5;
}

.pip-corner {
    position: absolute;
    width: 9px;
    height: 9px;
    border-color: #22c55e;
    border-style: solid;
    box-shadow: 0 0 4px rgba(34, 197, 94, 0.8);
}

.pip-corner-tl {
    top: 0;
    left: 0;
    border-width: 2.5px 0 0 2.5px;
}

.pip-corner-tr {
    top: 0;
    right: 0;
    border-width: 2.5px 2.5px 0 0;
}

.pip-corner-bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 2.5px 2.5px;
}

.pip-corner-br {
    bottom: 0;
    right: 0;
    border-width: 0 2.5px 2.5px 0;
}

.pip-target-label {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.60rem;
    font-weight: 800;
    color: #22c55e;
    letter-spacing: 0.8px;
    white-space: nowrap;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
}

.pip-target-box.decoyed .pip-corner {
    border-color: #f59e0b;
    box-shadow: 0 0 4px rgba(245, 158, 11, 0.8);
}

.pip-target-box.decoyed .pip-target-label {
    color: #f59e0b;
}

/* Impact Terminal Overlay */
#pip-impact-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    background: transparent;
}

#pip-impact-overlay.hidden {
    display: none !important;
}

.pip-impact-flash {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    animation: impactFlash 0.35s ease-out forwards;
}

@keyframes impactFlash {
    0% { opacity: 0.75; }
    100% { opacity: 0; }
}

.pip-impact-content {
    position: relative;
    z-index: 2;
    text-align: center;
    font-family: var(--font-mono);
    background: rgba(10, 16, 26, 0.78);
    border: 1.5px solid rgba(239, 68, 68, 0.7);
    border-radius: 6px;
    padding: 10px 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.85), 0 0 15px rgba(239, 68, 68, 0.25);
    backdrop-filter: blur(4px);
}

.pip-impact-icon {
    font-size: 1.8rem;
    margin-bottom: 2px;
}

.pip-impact-headline {
    font-size: 0.88rem;
    font-weight: 800;
    color: #22c55e;
    letter-spacing: 1px;
}

.pip-impact-sub {
    font-size: 0.62rem;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

/* Footer Telemetry Dock */
.pip-footer {
    height: 30px;
    background: rgba(10, 16, 26, 0.90);
    border-top: 1px solid rgba(0, 240, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    font-family: var(--font-mono);
    backdrop-filter: blur(6px);
}

.pip-metric {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pip-metric-lbl {
    font-size: 0.58rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
}

.pip-metric-val {
    font-size: 0.74rem;
    font-weight: 800;
    color: #00f0ff;
    letter-spacing: 0.5px;
}

.pip-metric-val small {
    font-size: 0.58rem;
    font-weight: 600;
    color: #94a3b8;
}

body.has-active-pip #tactical-feed-container {
    top: 385px;
}

@media (max-width: 768px) {
    #missile-pip-monitor {
        top: 54px;
        left: 10px;
        right: auto;
        width: 320px;
        height: 198px;
    }

    body.has-active-pip #tactical-feed-container {
        top: 275px;
    }
}

/* ========================================================================== */
/* SLOW ROADS AUTHENTIC WORLD & GRAPHICS SETTINGS DOCK & MODAL UI             */
/* ========================================================================== */
/* Hover Trigger Zone in bottom-left corner */
#sr-dock-hover-zone {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 460px;
    height: 120px;
    z-index: 9999;
    pointer-events: none;
    background: transparent;
}

#sr-dock-hover-zone.hidden {
    display: none !important;
}

#slowroads-dock-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    background: transparent;
    user-select: none;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#slowroads-dock-container.hidden {
    display: none !important;
}

/* Panels Area: slides up / expands only when active */
.sr-dock-panels {
    position: absolute;
    bottom: 38px;
    left: 0;
    width: 100%;
    padding: 0 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(28, 34, 26, 0.94) 0%, rgba(14, 18, 13, 0.98) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(200, 187, 142, 0.25);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.75);
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, padding 0.3s ease;
}

#slowroads-dock-container.sr-menu-open .sr-dock-panels {
    max-height: 380px;
    opacity: 1;
    padding: 16px 20px 14px 20px;
    pointer-events: auto;
}

.sr-panel {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sr-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* World Options Grid */
.wld-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.wld-option {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 250px;
}

.wld-option-label {
    font-family: 'Sono', 'Inter', monospace;
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    color: #9da394;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wld-option-label-btn {
    font-size: 0.72rem;
    color: #c8bb8e;
    cursor: pointer;
    text-transform: lowercase;
    transition: color 0.15s;
}

.wld-option-label-btn:hover {
    color: #fff;
    text-decoration: underline;
}

.wld-option-tile {
    position: relative;
    height: 48px;
    background: rgba(14, 18, 13, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sono', 'Inter', monospace;
    font-size: 1.02rem;
    letter-spacing: 2px;
    color: #f4f2ed;
    text-transform: uppercase;
    transition: all 0.2s;
    box-sizing: border-box;
}

.wld-option-tile:hover {
    border-color: rgba(200, 187, 142, 0.35);
}

.wld-option-arrows {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    pointer-events: none;
}

.wld-option-arrow {
    pointer-events: auto;
    cursor: pointer;
    color: #7e8576;
    font-size: 1.25rem;
    padding: 4px 8px;
    transition: all 0.15s;
    user-select: none;
}

.wld-option-arrow:hover {
    color: #f4f2ed;
    transform: scale(1.2);
}

.wld-option-seed {
    text-align: center;
    outline: none;
    width: 100%;
}

.wld-option-seed:focus {
    border-color: #c8bb8e;
    box-shadow: 0 0 12px rgba(200, 187, 142, 0.3);
}

.seed-warn {
    font-family: 'Sono', 'Inter', monospace;
    font-size: 0.68rem;
    color: #ef4444;
    min-height: 14px;
    text-align: right;
}

.wld-generate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 8px auto 2px auto;
    gap: 16px;
    flex-wrap: wrap;
}

.wld-hash-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(14, 18, 13, 0.7);
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wld-code-label {
    font-family: 'Sono', 'Inter', monospace;
    font-size: 0.76rem;
    letter-spacing: 2px;
    color: #8fa080;
}

.wld-code-input {
    background: transparent;
    border: none;
    outline: none;
    color: #f4f2ed;
    font-family: 'Sono', 'Inter', monospace;
    font-size: 0.92rem;
    letter-spacing: 1px;
    width: 210px;
}

.sr-btn-copy {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #c8bb8e;
    font-family: 'Sono', 'Inter', monospace;
    font-size: 0.74rem;
    padding: 5px 14px;
    border-radius: 3px;
    cursor: pointer;
    letter-spacing: 1.5px;
    transition: all 0.2s;
}

.sr-btn-copy:hover {
    background: rgba(200, 187, 142, 0.2);
    border-color: #c8bb8e;
    color: #fff;
}

.sr-btn-generate {
    background: rgba(200, 187, 142, 0.18);
    border: 1px solid #c8bb8e;
    color: #f4f2ed;
    font-family: 'Sono', 'Inter', monospace;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 10px 32px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 16px rgba(200, 187, 142, 0.18);
}

.sr-btn-generate:hover {
    background: #c8bb8e;
    color: #161c14;
    box-shadow: 0 0 28px rgba(200, 187, 142, 0.45);
}

/* Style Options (Season, Time, Weather) */
.style-main {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 4px 0 8px 0;
}

.style-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.style-subtitle {
    font-family: 'Sono', 'Inter', monospace;
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: #9da394;
    text-transform: uppercase;
}

.style-selection {
    display: flex;
    gap: 8px;
}

.style-selection-option {
    width: 52px;
    height: 52px;
    background: rgba(14, 18, 13, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s;
}

.style-selection-option:hover {
    background: rgba(38, 44, 34, 0.9);
    border-color: rgba(200, 187, 142, 0.35);
}

.style-selection-option-selected {
    background: #343c3e !important;
    border-color: #c8bb8e !important;
    box-shadow: 0 0 16px rgba(200, 187, 142, 0.35);
}

.option-icon {
    width: 26px;
    height: 26px;
    opacity: 0.65;
    pointer-events: none;
    transition: opacity 0.2s, filter 0.2s;
    filter: invert(0.9);
}

.style-selection-option:hover .option-icon {
    opacity: 0.9;
}

.style-selection-option-selected .option-icon {
    opacity: 1;
    filter: invert(1) brightness(1.2);
}

/* Vehicle Panel */
.sr-veh-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 820px;
    margin: 4px auto;
    padding: 8px 16px;
    background: rgba(14, 18, 13, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    gap: 16px;
    flex-wrap: wrap;
}

.sr-veh-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 1px;
}

.sr-veh-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 2px;
}

.sr-veh-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sr-veh-btn {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid #38bdf8;
    color: #38bdf8;
    font-family: 'Sono', 'Inter', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 1px;
}

.sr-veh-btn:hover {
    background: #38bdf8;
    color: #0f172a;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
}

.sr-veh-btn.warn {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #fca5a5;
}

.sr-veh-btn.warn:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.4);
}

/* Dock Bottom Navigation Bar */
/* Dock Bottom Navigation Bar */
.sr-dock-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 24px 8px 24px;
    height: 38px;
    box-sizing: border-box;
    pointer-events: auto;
    background: transparent;
    border-top: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease;
}

#slowroads-dock-container.sr-menu-open .sr-dock-bar {
    background: rgba(14, 18, 13, 0.96);
    border-top: 1px solid rgba(200, 187, 142, 0.2);
}

.sr-dock-nav-left {
    display: flex;
    gap: 14px;
    align-items: center;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

#slowroads-dock-container.sr-hovered .sr-dock-nav-left,
#slowroads-dock-container.sr-menu-open .sr-dock-nav-left {
    opacity: 1;
    transform: translateY(0);
}

.sr-dock-tab {
    position: relative;
    background: none;
    border: none;
    color: #8a9082;
    font-family: 'Sono', 'Inter', monospace;
    font-size: 0.84rem;
    letter-spacing: 3px;
    cursor: pointer;
    padding: 6px 14px;
    transition: all 0.18s;
}

.sr-dock-tab:hover {
    color: #f4f2ed;
    text-shadow: 0 0 10px rgba(244, 242, 237, 0.6);
}

.sr-dock-tab.active {
    color: #f4f2ed;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(244, 242, 237, 0.75);
}

.sr-dock-nav-right {
    display: flex;
    gap: 8px;
    align-items: center;
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: auto;
}

#slowroads-dock-container.sr-hovered .sr-dock-nav-right,
#slowroads-dock-container.sr-menu-open .sr-dock-nav-right {
    opacity: 1;
}

.sr-dock-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a9082;
    transition: all 0.2s;
    border-radius: 4px;
}

.sr-dock-btn:hover {
    color: #f4f2ed;
    background: rgba(255, 255, 255, 0.05);
}

.sr-dock-icon {
    width: 18px;
    height: 18px;
    filter: invert(0.8);
    transition: filter 0.15s;
}

.sr-dock-btn:hover .sr-dock-icon {
    filter: invert(1);
}

/* Graphics Settings Modal */
.sr-graphics-card {
    background: linear-gradient(180deg, rgba(28, 34, 26, 0.96) 0%, rgba(16, 20, 15, 0.98) 100%);
    border: 1px solid rgba(200, 187, 142, 0.25);
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    max-width: 650px;
    width: 92%;
    color: #f4f2ed;
    font-family: 'Sono', 'Inter', monospace;
    padding: 24px;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
}

.sr-graphics-header {
    text-align: center;
    margin-bottom: 20px;
}

.sr-graphics-tabs {
    font-size: 1.15rem;
    letter-spacing: 4px;
    color: #f4f2ed;
    font-weight: 700;
    margin-bottom: 8px;
}

.sr-graphics-subtitle {
    font-family: 'Space', 'Inter', sans-serif;
    font-style: italic;
    font-size: 0.82rem;
    color: #a3a89e;
    letter-spacing: 0.5px;
    margin: 0;
}

.sr-conf-section {
    margin-bottom: 22px;
}

.sr-conf-sec-header {
    background: rgba(14, 18, 13, 0.7);
    padding: 6px 12px;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    letter-spacing: 3px;
    color: #c8bb8e;
    margin-bottom: 12px;
}

.sr-conf-reset-btn {
    background: none;
    border: none;
    color: #8fa080;
    font-family: inherit;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: color 0.15s;
}

.sr-conf-reset-btn:hover {
    color: #f4f2ed;
    text-decoration: underline;
}

.sr-conf-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sr-conf-label {
    font-size: 0.85rem;
    color: #d2d1cd;
}

.sr-conf-selector {
    position: relative;
    width: 220px;
    height: 34px;
    background: rgba(14, 18, 13, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    box-sizing: border-box;
}

.sr-sel-arrow {
    cursor: pointer;
    color: #7e8576;
    font-size: 1.15rem;
    user-select: none;
    transition: all 0.15s;
}

.sr-sel-arrow:hover {
    color: #f4f2ed;
    transform: scale(1.2);
}

.sr-sel-val {
    font-size: 0.88rem;
    color: #f4f2ed;
    letter-spacing: 1px;
}

.sr-conf-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #c8bb8e;
    cursor: pointer;
}

.sr-slider-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    width: 220px;
}

.sr-slider-val {
    font-size: 0.85rem;
    color: #c8bb8e;
}

.sr-slider {
    width: 100%;
    accent-color: #c8bb8e;
    cursor: pointer;
}

.sr-graphics-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sr-btn-debug {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #9da394;
    font-family: inherit;
    font-size: 0.74rem;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.sr-btn-debug:hover {
    color: #fff;
    border-color: #c8bb8e;
}

.sr-btn-close {
    background: rgba(200, 187, 142, 0.2);
    border: 1px solid #c8bb8e;
    color: #f4f2ed;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    padding: 8px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.sr-btn-close:hover {
    background: #c8bb8e;
    color: #161c14;
}
