/* 3LITE Dedicated Game CSS - Classic Elite Style */

:root {
    --elite-green: #4af626;
    --elite-green-border: rgba(74, 246, 38, 0.4);
    --elite-gray: #aaaaaa;
    --elite-white: #ffffff;
    --dark-bg: #000000;
    
    /* Futuristic Sci-Fi Devaluator Palette */
    --accent-cyan: #00f0ff;
    --accent-cyan-glow: rgba(0, 240, 255, 0.4);
    --accent-violet: #7000ff;
    --accent-pink: #d63384;
    --scifi-glass-bg: rgba(6, 12, 18, 0.82);
    --scifi-border: rgba(0, 240, 255, 0.28);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body {
    margin: 0;
    overflow: hidden;
    background-color: var(--dark-bg);
    color: var(--elite-gray);
    font-family: "Courier New", Courier, monospace;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
}

#game-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1920px;
    height: 1080px;
    transform-origin: center center;
    background-color: #000;
    overflow: hidden;
}

#game-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#game-container canvas {
    position: absolute;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* ---------------------------
   COCKPIT OVERLAYS
--------------------------- */
#cockpit-panel {
    display: none;
    position: absolute;
    bottom: 0;
    left: -1%;
    width: 102%;
    height: 25%;
    z-index: 5;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    padding: 20px 4vw;
    transform: perspective(1500px) rotateX(10deg) scale(1.02);
    transform-origin: bottom center;
}

#top-cockpit-panel {
    display: none;
    pointer-events: auto;
    position: absolute;
    top: 0; left: -1%;
    width: 102%;
    height: 250px;
    z-index: 5;
    box-sizing: border-box;
    transform: perspective(1500px) rotateX(-10deg) scale(1.02);
    transform-origin: top center;
    clip-path: polygon(
        0% 0%,
        100% 0%,
        100% 238px,
        calc(50% + 730px) 238px,
        calc(50% + 715px) 237.4px,
        calc(50% + 700px) 235.6px,
        calc(50% + 685px) 232.5px,
        calc(50% + 670px) 228.2px,
        calc(50% + 510px) 182.8px,
        calc(50% + 495px) 178.5px,
        calc(50% + 480px) 175.4px,
        calc(50% + 465px) 173.6px,
        calc(50% + 450px) 173px,
        calc(50% - 450px) 173px,
        calc(50% - 465px) 173.6px,
        calc(50% - 480px) 175.4px,
        calc(50% - 495px) 178.5px,
        calc(50% - 510px) 182.8px,
        calc(50% - 670px) 228.2px,
        calc(50% - 685px) 232.5px,
        calc(50% - 700px) 235.6px,
        calc(50% - 715px) 237.4px,
        calc(50% - 730px) 238px,
        0% 238px
    );
}

#top-cockpit-panel-bg-wrapper {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: -1;
}

#top-cockpit-panel-seal {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, 
        #1c222b 0%, 
        #3b4856 18%, 
        #181e26 35%, 
        #526274 50%, 
        #181e26 65%, 
        #3b4856 82%, 
        #1c222b 100%
    );
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), inset 0 -1px 1px rgba(255, 255, 255, 0.15);
    clip-path: polygon(
        0% 0%,
        100% 0%,
        100% 238px,
        calc(50% + 730px) 238px,
        calc(50% + 715px) 237.4px,
        calc(50% + 700px) 235.6px,
        calc(50% + 685px) 232.5px,
        calc(50% + 670px) 228.2px,
        calc(50% + 510px) 182.8px,
        calc(50% + 495px) 178.5px,
        calc(50% + 480px) 175.4px,
        calc(50% + 465px) 173.6px,
        calc(50% + 450px) 173px,
        calc(50% - 450px) 173px,
        calc(50% - 465px) 173.6px,
        calc(50% - 480px) 175.4px,
        calc(50% - 495px) 178.5px,
        calc(50% - 510px) 182.8px,
        calc(50% - 670px) 228.2px,
        calc(50% - 685px) 232.5px,
        calc(50% - 700px) 235.6px,
        calc(50% - 715px) 237.4px,
        calc(50% - 730px) 238px,
        0% 238px
    );
}

#top-cockpit-panel-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(180deg, rgba(6, 10, 16, 0.72) 0%, rgba(10, 16, 26, 0.58) 70%, rgba(14, 24, 38, 0.65) 100%),
        radial-gradient(ellipse at 50% 0%, rgba(0, 240, 255, 0.08) 0%, transparent 70%),
        url('/images/carbon_fiber.png');
    background-repeat: no-repeat, no-repeat, repeat;
    background-size: auto, auto, 48px 48px;
    box-shadow: inset 0 -1px 2px rgba(180, 205, 230, 0.25), inset 0 10px 30px rgba(0, 0, 0, 0.85);
    clip-path: polygon(
        0% 0%,
        100% 0%,
        100% 235px,
        calc(50% + 730px) 235px,
        calc(50% + 715px) 234.4px,
        calc(50% + 700px) 232.6px,
        calc(50% + 685px) 229.5px,
        calc(50% + 670px) 225.2px,
        calc(50% + 510px) 179.8px,
        calc(50% + 495px) 175.5px,
        calc(50% + 480px) 172.4px,
        calc(50% + 465px) 170.6px,
        calc(50% + 450px) 170px,
        calc(50% - 450px) 170px,
        calc(50% - 465px) 170.6px,
        calc(50% - 480px) 172.4px,
        calc(50% - 495px) 175.5px,
        calc(50% - 510px) 179.8px,
        calc(50% - 670px) 225.2px,
        calc(50% - 685px) 229.5px,
        calc(50% - 700px) 232.6px,
        calc(50% - 715px) 234.4px,
        calc(50% - 730px) 235px,
        0% 235px
    );
}

#cockpit-panel-bg-wrapper {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: -1;
    filter: drop-shadow(0px -3px 6px rgba(0, 0, 0, 0.95)) drop-shadow(0px -20px 45px rgba(0, 0, 0, 0.9));
}

#cockpit-panel-seal {
    position: absolute;
    top: -3px; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, 
        #1a2029 0%, 
        #384452 20%, 
        #161c24 38%, 
        #4e5e70 50%, 
        #161c24 62%, 
        #384452 80%, 
        #1a2029 100%
    );
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.9), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    clip-path: polygon(
        0% 0%,
        calc(50% - 495px) 0px,
        calc(50% - 480px) 0.5px,
        calc(50% - 465px) 1.8px,
        calc(50% - 451px) 4.1px,
        calc(50% - 436px) 7.2px,
        calc(50% - 422px) 11.3px,
        calc(50% - 408px) 16.3px,
        calc(50% - 75px) 146px,
        calc(50% - 56px) 159px,
        calc(50% - 37px) 168px,
        calc(50% - 19px) 173px,
        50% 175px,
        calc(50% + 19px) 173px,
        calc(50% + 37px) 168px,
        calc(50% + 56px) 159px,
        calc(50% + 75px) 146px,
        calc(50% + 408px) 16.3px,
        calc(50% + 422px) 11.3px,
        calc(50% + 436px) 7.2px,
        calc(50% + 451px) 4.1px,
        calc(50% + 465px) 1.8px,
        calc(50% + 480px) 0.5px,
        calc(50% + 495px) 0px,
        100% 0%,
        100% 100%,
        0% 100%
    );
}

#cockpit-panel-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(to bottom, rgba(14, 24, 38, 0.68) 0%, rgba(8, 14, 22, 0.72) 45%, rgba(4, 7, 12, 0.82) 100%),
        radial-gradient(circle at 50% 100%, rgba(0, 240, 255, 0.08) 0%, transparent 60%),
        url('/images/carbon_fiber.png');
    background-repeat: no-repeat, no-repeat, repeat;
    background-size: auto, auto, 48px 48px;
    box-shadow: inset 0 2px 3px rgba(180, 205, 230, 0.2), inset 0 15px 40px rgba(0, 0, 0, 0.9);
    clip-path: polygon(
        0% 0%,
        calc(50% - 495px) 0px,
        calc(50% - 480px) 0.5px,
        calc(50% - 465px) 1.8px,
        calc(50% - 451px) 4.1px,
        calc(50% - 436px) 7.2px,
        calc(50% - 422px) 11.3px,
        calc(50% - 408px) 16.3px,
        calc(50% - 75px) 146px,
        calc(50% - 56px) 159px,
        calc(50% - 37px) 168px,
        calc(50% - 19px) 173px,
        50% 175px,
        calc(50% + 19px) 173px,
        calc(50% + 37px) 168px,
        calc(50% + 56px) 159px,
        calc(50% + 75px) 146px,
        calc(50% + 408px) 16.3px,
        calc(50% + 422px) 11.3px,
        calc(50% + 436px) 7.2px,
        calc(50% + 451px) 4.1px,
        calc(50% + 465px) 1.8px,
        calc(50% + 480px) 0.5px,
        calc(50% + 495px) 0px,
        100% 0%,
        100% 100%,
        0% 100%
    );
}

/* Realistic Ambient Lighting from Game Scene */
.cockpit-ambient-light {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 98;
    background: radial-gradient(ellipse at 50% -50%, rgba(255,255,255,0.0) 0%, transparent 80%);
    opacity: 0.8;
    mix-blend-mode: screen;
    transition: background 0.1s ease-out, opacity 0.1s ease-out;
}

#cockpit-panel .cockpit-ambient-light {
    clip-path: polygon(
        0% 0%,
        calc(50% - 495px) 0px,
        calc(50% - 480px) 0.5px,
        calc(50% - 465px) 1.8px,
        calc(50% - 451px) 4.1px,
        calc(50% - 436px) 7.2px,
        calc(50% - 422px) 11.3px,
        calc(50% - 408px) 16.3px,
        calc(50% - 75px) 146px,
        calc(50% - 56px) 159px,
        calc(50% - 37px) 168px,
        calc(50% - 19px) 173px,
        50% 175px,
        calc(50% + 19px) 173px,
        calc(50% + 37px) 168px,
        calc(50% + 56px) 159px,
        calc(50% + 75px) 146px,
        calc(50% + 408px) 16.3px,
        calc(50% + 422px) 11.3px,
        calc(50% + 436px) 7.2px,
        calc(50% + 451px) 4.1px,
        calc(50% + 465px) 1.8px,
        calc(50% + 480px) 0.5px,
        calc(50% + 495px) 0px,
        100% 0%,
        100% 100%,
        0% 100%
    );
}

#cockpit-panel.laser-flash .cockpit-ambient-light {
    background: radial-gradient(ellipse at 50% -50%, rgba(50, 255, 50, 0.6) 0%, transparent 80%) !important;
    opacity: 1 !important;
    transition: background 0.05s ease-out, opacity 0.05s ease-out;
}

#cockpit-panel.damage-flash .cockpit-ambient-light {
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 0, 0, 0.8) 0%, rgba(255, 0, 0, 0.3) 80%) !important;
    opacity: 1 !important;
    mix-blend-mode: color-dodge !important;
    transition: background 0.05s ease-out, opacity 0.05s ease-out;
}

/* Dashboard Glossy Reflection */
.cockpit-glare {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 99;
    /* Sharp diagonal shine */
    background: linear-gradient(105deg, 
                transparent 0%, 
                rgba(255,255,255,0.01) 20%, 
                rgba(255,255,255,0.08) 40%, 
                rgba(255,255,255,0.0) 42%, 
                transparent 100%);
    box-shadow: inset 0 2px 10px rgba(255,255,255,0.05);
    background-size: 200% 100%;
    background-position: 50% 0;
    transition: background-position 0.1s ease-out;
}

#cockpit-panel .cockpit-glare {
    clip-path: polygon(
        0% 0%,
        calc(50% - 495px) 0px,
        calc(50% - 480px) 0.5px,
        calc(50% - 465px) 1.8px,
        calc(50% - 451px) 4.1px,
        calc(50% - 436px) 7.2px,
        calc(50% - 422px) 11.3px,
        calc(50% - 408px) 16.3px,
        calc(50% - 75px) 146px,
        calc(50% - 56px) 159px,
        calc(50% - 37px) 168px,
        calc(50% - 19px) 173px,
        50% 175px,
        calc(50% + 19px) 173px,
        calc(50% + 37px) 168px,
        calc(50% + 56px) 159px,
        calc(50% + 75px) 146px,
        calc(50% + 408px) 16.3px,
        calc(50% + 422px) 11.3px,
        calc(50% + 436px) 7.2px,
        calc(50% + 451px) 4.1px,
        calc(50% + 465px) 1.8px,
        calc(50% + 480px) 0.5px,
        calc(50% + 495px) 0px,
        100% 0%,
        100% 100%,
        0% 100%
    );
}

#top-cockpit-panel .cockpit-glare {
    box-shadow: none !important;
}

#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

/* Menu Overlay */
#menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(8, 14, 11, 0.70), rgba(6, 10, 8, 0.88)), url('/images/hangar_background.jpg') no-repeat center center / cover #080e14;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    pointer-events: auto;
}

.menu-card {
    background: transparent;
    padding: 20px;
    border: none;
    text-align: center;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.game-title {
    font-size: 3.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #e5f0ea;
    letter-spacing: 8px;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.game-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #8fa89b;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.input-field {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: rgba(14, 22, 18, 0.85);
    border: 1px solid rgba(140, 175, 155, 0.25);
    color: #e5f0ea;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.95rem;
    text-align: left;
    outline: none;
    border-radius: 4px;
    box-shadow: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.menu-button-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
}

.menu-btn {
    flex: 0 0 auto;
    padding: 10px 20px;
    font-family: "Courier New", Courier, monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: #000000;
    background: var(--elite-gray);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s;
    white-space: nowrap;
}

.menu-btn:hover {
    background: var(--elite-white);
}

.station-btn {
    display: block;
    text-align: center;
    padding: 25px 15px;
    font-family: "Courier New", Courier, monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--elite-green);
    background: rgba(0, 20, 0, 0.8);
    border: 2px solid var(--elite-green-border);
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
    box-shadow: inset 0 0 15px rgba(74,246,38,0.15), 0 5px 15px rgba(0,0,0,0.8);
    border-radius: 8px;
    background: rgba(8, 14, 10, 0.94);
}
.station-btn i {
    display: block;
    margin: 0 auto 12px auto;
    font-size: 2.2rem;
    color: var(--elite-green);
    transition: all 0.2s ease;
}
.station-btn:hover {
    background: rgba(74, 246, 38, 0.15);
    box-shadow: inset 0 0 25px rgba(74,246,38,0.3), 0 0 20px rgba(74,246,38,0.4);
    transform: translateY(-3px);
    color: #fff;
    border-color: #fff;
}

.station-btn.compact {
    padding: 6px 12px;
    font-size: 1rem;
    min-width: 100px;
    display: inline-block;
    margin: 0;
}
.station-btn.compact i {
    display: inline-block;
    margin: 0 8px 0 0;
    font-size: 1.1rem;
}

.station-btn:hover i {
    color: #fff;
    text-shadow: 0 0 15px var(--elite-green);
    transform: scale(1.1);
}

.input-field:focus {
    background: rgba(20, 32, 26, 0.95);
    border-color: rgba(180, 215, 195, 0.55);
    box-shadow: none;
}

.input-field::placeholder {
    color: #6b8276;
}

.start-btn {
    position: relative;
    width: 100%;
    margin-top: 15px;
    padding: 12px 18px;
    font-family: "Courier New", Courier, monospace;
    font-size: 1.05rem;
    font-weight: 600;
    color: #d6ede1;
    background: rgba(18, 30, 24, 0.85);
    border: 1px solid rgba(98, 176, 138, 0.5);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.start-btn i {
    font-size: 1.15rem;
    color: #62b08a;
}

.start-btn:hover:not(:disabled) {
    background: rgba(28, 46, 36, 0.95);
    box-shadow: none;
    transform: none;
    color: #ffffff;
    border-color: rgba(180, 215, 195, 0.6);
}

.start-btn:disabled {
    background: rgba(14, 20, 17, 0.6);
    color: #555;
    border-color: rgba(140, 175, 155, 0.15);
    box-shadow: none;
    cursor: not-allowed;
}

#btn-fullscreen-toggle:hover {
    background: var(--elite-green) !important;
    color: #000000 !important;
    box-shadow: 0 0 18px rgba(74, 246, 38, 0.7) !important;
}


/* Monitor Header Titles */
.monitor-title {
    background: transparent;
    color: #00f0ff;
    border-bottom: 1px solid rgba(0, 240, 255, 0.25);
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-align: center;
    padding: 3px 0;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.7);
    text-transform: uppercase;
}

/* Crosshair */
#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    display: none;
    pointer-events: none;
    z-index: 100;
}

#crosshair::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 40px; height: 40px;
    transform: translate(-50%, -50%);
    border: 1px dashed var(--elite-green-border);
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 15px rgba(74,246,38,0.2);
}

#crosshair::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 4px; height: 4px;
    background: var(--elite-green);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px var(--elite-green);
}

.crosshair-line {
    position: absolute;
    background: var(--elite-green);
    box-shadow: 0 0 8px var(--elite-green);
    opacity: 0.8;
}

.ch-top { top: 0; left: 50%; width: 2px; height: 12px; transform: translateX(-50%); }
.ch-bottom { bottom: 0; left: 50%; width: 2px; height: 12px; transform: translateX(-50%); }
.ch-left { top: 50%; left: 0; width: 12px; height: 2px; transform: translateY(-50%); }
.ch-right { top: 50%; right: 0; width: 12px; height: 2px; transform: translateY(-50%); }

#crosshair.hover .crosshair-line, #crosshair.hover::after {
    background: #ffaa00 !important;
    box-shadow: 0 0 12px #ffaa00 !important;
}
#crosshair.hover::before {
    border-color: #ffaa00 !important;
    box-shadow: 0 0 15px rgba(255,170,0,0.5) !important;
}

#crosshair.hit .crosshair-line, #crosshair.hit::after {
    background: #ff3300 !important;
    box-shadow: 0 0 12px #ff3300 !important;
}
#crosshair.hit::before {
    border-color: #ff3300 !important;
    box-shadow: 0 0 15px rgba(255,51,0,0.5) !important;
}

/* 3D Beveled Panels */
.hud-panel-beveled {
    border: 2px solid #222 !important;
    border-top-color: #555 !important;
    border-left-color: #444 !important;
    border-bottom-color: #050505 !important;
    border-right-color: #111 !important;
    box-shadow: 2px 4px 8px rgba(0,0,0,0.9), inset 1px 1px 3px rgba(255,255,255,0.05), inset -1px -1px 3px rgba(0,0,0,0.8) !important;
    position: relative;
}

.hud-panel-beveled-top {
    border: 1px solid rgba(0, 240, 255, 0.25) !important;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.08), inset 0 0 15px rgba(0, 240, 255, 0.04) !important;
    position: relative;
}

/* Ensure inset shadows render OVER canvas elements */
div.hud-panel-beveled-top::after, div.hud-panel-beveled::after {
    display: none;
}

/* HUD */
.hud-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    gap: 10px;
}

/* FUTURISTIC SCI-FI COCKPIT DASHBOARD (OPTION 5) */
.hud-section-scifi {
    background: linear-gradient(135deg, rgba(8, 14, 22, 0.88) 0%, rgba(12, 20, 32, 0.75) 100%);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.08), inset 0 0 15px rgba(0, 240, 255, 0.04);
    backdrop-filter: blur(12px);
    position: relative;
    gap: 6px;
}

.hud-section-scifi::before {
    content: '';
    position: absolute;
    top: -1px; left: 12px; right: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.7), transparent);
}

.hud-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 240, 255, 0.18);
    padding-bottom: 4px;
    margin-bottom: 2px;
}

.hud-subsystem-title {
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    color: #00f0ff;
    text-shadow: 0 0 6px rgba(0, 240, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hud-telemetry-tag {
    font-size: 0.6rem;
    color: #8fa89b;
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 1px 4px;
    border-radius: 2px;
    letter-spacing: 1px;
}

.futuristic-gauge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.gauge-meta-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gauge-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1;
}

.gauge-name {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #8fa89b;
    font-family: 'Courier New', monospace;
}

.gauge-unit {
    font-size: 0.58rem;
    color: rgba(0, 240, 255, 0.75);
    font-family: 'Courier New', monospace;
}

.hud-label {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(8, 16, 26, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.35);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    flex-shrink: 0;
    color: #00f0ff;
    transition: all 0.2s ease;
}

.hud-label i {
    color: #00f0ff;
    font-size: 0.95rem;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
    transition: color 0.15s ease;
}

.radar-zoom-btn {
    background: linear-gradient(180deg, #242d38 0%, #161c24 100%);
    border: 1px solid rgba(82, 98, 116, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    color: #9cb0c5;
}

.radar-zoom-btn i {
    color: #9cb0c5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.radar-zoom-btn:hover {
    background: linear-gradient(180deg, #323e4d 0%, #1c242e 100%);
    border-color: rgba(180, 205, 230, 0.6);
    box-shadow: 0 0 8px rgba(180, 205, 230, 0.35);
    color: #e5effa;
}

.radar-zoom-btn:hover i {
    color: #e5effa;
}

@keyframes pulseRedAnim {
    0% { color: #ff2244; text-shadow: 0 0 16px #ff2244, 0 0 24px rgba(255, 34, 68, 0.8); transform: scale(1.25); }
    50% { color: #880015; text-shadow: 0 0 3px #ff2244; transform: scale(1.0); }
    100% { color: #ff2244; text-shadow: 0 0 16px #ff2244, 0 0 24px rgba(255, 34, 68, 0.8); transform: scale(1.25); }
}

@keyframes pulseGreenAnim {
    0% { color: #39ff14; text-shadow: 0 0 16px #39ff14, 0 0 24px rgba(57, 255, 20, 0.8); transform: scale(1.25); }
    50% { color: #0a440a; text-shadow: 0 0 3px #39ff14; transform: scale(1.0); }
    100% { color: #39ff14; text-shadow: 0 0 16px #39ff14, 0 0 24px rgba(57, 255, 20, 0.8); transform: scale(1.25); }
}

@keyframes pulseCyanAnim {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 12px #00f0ff; }
    50% { opacity: 0.4; transform: scale(0.8); box-shadow: 0 0 3px #00f0ff; }
}

.hud-label i.pulse-red, i.pulse-red {
    animation: pulseRedAnim 0.35s infinite !important;
}

.hud-label i.pulse-green, i.pulse-green {
    animation: pulseGreenAnim 0.5s infinite !important;
}

#cockpit-panel {
    transform-origin: center bottom;
    will-change: transform;
}

#top-cockpit-panel {
    transform-origin: top center;
    will-change: transform;
}

.hud-bar-container {
    width: 100%;
    height: 12px;
    min-height: 12px;
    max-height: 12px;
    flex: none;
    background: rgba(4, 8, 14, 0.9);
    border: 1px solid rgba(0, 240, 255, 0.35);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 240, 255, 0.15);
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    box-sizing: border-box;
}

/* Futuristic Fine Tick-Mark Grid */
.hud-bar-container::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        /* Major Ticks at 25%, 50%, 75% */
        linear-gradient(to bottom, rgba(0, 240, 255, 0.8) 0%, rgba(0, 240, 255, 0.8) 2px, transparent 2px, transparent 8px, rgba(0, 240, 255, 0.8) 8px, rgba(0, 240, 255, 0.8) 12px) 25% 0 / 1px 100% no-repeat,
        linear-gradient(to bottom, #00f0ff 0%, #00f0ff 3px, transparent 3px, transparent 7px, #00f0ff 7px, #00f0ff 12px) 50% 0 / 1.5px 100% no-repeat,
        linear-gradient(to bottom, rgba(0, 240, 255, 0.8) 0%, rgba(0, 240, 255, 0.8) 2px, transparent 2px, transparent 8px, rgba(0, 240, 255, 0.8) 8px, rgba(0, 240, 255, 0.8) 12px) 75% 0 / 1px 100% no-repeat,
        /* Micro-Segments */
        repeating-linear-gradient(90deg, transparent 0px, transparent 4px, rgba(4, 8, 14, 0.6) 4px, rgba(4, 8, 14, 0.6) 6px);
    z-index: 6;
    pointer-events: none;
}

.hud-bar-fill {
    display: block;
    height: 100% !important;
    min-height: 100% !important;
    background: var(--accent-cyan);
    width: 0%;
    transition: width 0.08s linear, left 0.08s linear;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.4), 0 0 10px rgba(0, 240, 255, 0.5);
    position: relative;
    z-index: 2;
}

.hud-missile-bay {
    width: 100%;
    height: 14px;
    min-height: 14px;
    max-height: 14px;
    flex: none;
    background: rgba(4, 8, 14, 0.9);
    border: 1px solid rgba(0, 240, 255, 0.25);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 240, 255, 0.1);
    position: relative;
    border-radius: 2px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0 4px;
    box-sizing: border-box;
    overflow: hidden;
}

.missile-slot {
    width: 9px;
    height: 12px;
    background: rgba(10, 20, 30, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.missile-led {
    width: 5px;
    height: 8px;
    border-radius: 1px;
    background: rgba(0, 40, 50, 0.5);
    transition: all 0.15s ease-in-out;
    position: relative;
}

.missile-led.active {
    background: #00f0ff;
    box-shadow: 0 0 8px #00f0ff, 0 0 14px rgba(0, 240, 255, 0.8);
}

#bar-speed {
    background: #00f0ff;
    box-shadow: 0 0 10px #00f0ff;
}

#bar-roll, #bar-pitch {
    background: #00e5ff;
    box-shadow: 0 0 10px #00e5ff;
}

/* For pitch/roll that start from center */
.center-origin .hud-bar-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 100% !important;
    z-index: 2;
}

.center-tick {
    position: absolute;
    left: 50%;
    top: -2px;
    bottom: -2px;
    width: 2px;
    background: #00f0ff;
    box-shadow: 0 0 6px #00f0ff;
    z-index: 12;
}

/* Futuristic Radar Holoplate with Dark Metallic Gunmetal Bezel */
.radar-holoplate-wrap {
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        #1c222b 0%, 
        #3b4856 25%, 
        #181e26 48%, 
        #526274 65%, 
        #181e26 82%, 
        #323d4a 100%
    );
    border: 1px solid rgba(82, 98, 116, 0.45);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.95), 
                inset 0 1px 2px rgba(255, 255, 255, 0.18),
                inset 0 -2px 4px rgba(0, 0, 0, 0.9);
}

#scanner-glass-dome {
    position: absolute;
    top: -4px; left: -4px;
    width: 508px; height: 196px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 12%, rgba(180, 205, 230, 0.08) 0%, transparent 60%),
                linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 0%, transparent 45%, rgba(0, 0, 0, 0.5) 100%);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8), 0 1px 1px rgba(255, 255, 255, 0.1);
}

#scanner {
    border: none;
    background: radial-gradient(ellipse at 50% 50%, #0c1218 0%, #070a0e 70%, #030508 100%);
    border-radius: 50%;
    margin-top: 0;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.95);
}

/* Missiles */
#missiles {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.missile {
    width: 20px;
    height: 20px;
    border: 2px solid var(--elite-gray);
    background: transparent;
}
.missile.active {
    background: var(--elite-gray);
}
.missile.locked {
    background: #ff3300;
    border-color: #ff3300;
    animation: blink-fast 0.2s infinite alternate;
}

#target-lock-box {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid red;
    pointer-events: none;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px red;
    border-radius: 4px;
    display: none;
}

/* Kill Feed */
#kill-feed {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 1.2rem;
}

.feed-item {
    background: transparent;
    padding: 8px 15px;
    border: none;
    color: var(--elite-gray);
    text-shadow: 0 0 5px var(--elite-gray);
    animation: fadeOutTop 5s forwards;
}

@keyframes fadeOutTop {
    0% { opacity: 1; transform: translateY(-10px); }
    10% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* Galactic Map Overlay */
#map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
}

.map-container {
    position: relative;
    box-sizing: border-box;
}

#galaxy-map {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

#map-info {
    position: relative;
    box-sizing: border-box;
}

#current-system-marker {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid #00ff00;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 0 20px #00ff00, inset 0 0 10px #00ff00;
    animation: pulseMarker 1.0s infinite alternate;
}

@keyframes pulseMarker {
    0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 1; box-shadow: 0 0 30px #00ff00, inset 0 0 15px #00ff00; }
}

#in-game-chat {
    position: absolute;
    bottom: 26%;
    left: 20px;
    width: 350px;
    height: 300px;
    background-color: rgba(0, 20, 0, 0.85);
    border: 2px solid #33cc33;
    border-radius: 8px;
    z-index: 50;
    display: none;
    flex-direction: column;
    pointer-events: none;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 10px rgba(51, 204, 51, 0.2);
    overflow: hidden;
}



#chat-messages-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    color: #4af626;
    font-size: 14px;
    font-family: 'Courier New', Courier, monospace;
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 246, 38, 0.5) transparent;
    display: flex;
    flex-direction: column;
    gap: 5px;
    pointer-events: auto;
}

#chat-messages-container div {
    text-shadow: 0 0 2px #4af626;
}

.chat-sender {
    color: #4af626;
    font-weight: bold;
    margin-right: 5px;
}

.chat-input-wrapper {
    display: none;
    padding: 10px;
    border-top: 1px solid #33cc33;
    background: transparent;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    pointer-events: auto;
}

#in-game-chat-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #4af626;
    font-family: 'Courier New', Courier, monospace;
    outline: none;
}
#in-game-chat-input::placeholder {
    color: rgba(74, 246, 38, 0.4);
}

#help-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95); z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow-y: auto; }
.help-container { max-width: 800px; padding: 20px; font-family: 'Courier New', Courier, monospace; font-size: 1.2rem; color: var(--elite-white); text-align: left; }
.help-container ul { list-style: none; padding-left: 0; }
.help-container li { margin-bottom: 10px; }

/* ==========================================================================
   VECTORIA RETRO SCI-FI SCROLLBAR STYLING
   ========================================================================== */

/* Universal WebKit Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 16, 8, 0.85);
    border: 1px solid rgba(74, 246, 38, 0.25);
    border-radius: 4px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(74, 246, 38, 0.75) 0%, rgba(30, 160, 15, 0.9) 50%, rgba(74, 246, 38, 0.75) 100%);
    border: 1px solid rgba(74, 246, 38, 0.7);
    border-radius: 4px;
    box-shadow: 0 0 6px rgba(74, 246, 38, 0.5), inset 0 0 4px rgba(74, 246, 38, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4af626 0%, #00ff66 50%, #4af626 100%);
    border: 1px solid #4af626;
    box-shadow: 0 0 12px #4af626, inset 0 0 6px #ffffff;
}

::-webkit-scrollbar-thumb:active {
    background: #00ff66;
    box-shadow: 0 0 16px #4af626, inset 0 0 8px #ffffff;
}

::-webkit-scrollbar-corner {
    background: rgba(0, 16, 8, 0.95);
}

/* Firefox & Standard Scrollbar Property */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 246, 38, 0.75) rgba(0, 16, 8, 0.85);
}

/* Dedicated Sci-Fi Glowing Scrollable Containers */
#menu-content-area,
.menu-card,
#start-screen-texts,
#auth-box,
#galactic-news-card,
#patchnotes-container,
#inventory-content,
#market-content,
#shipyard-content,
#system-content,
#map-content,
#help-content,
#ranking-content,
#squadron-content,
#ide-content,
#achievements-content,
#chat-messages-container,
#ai-chat-messages,
.chat-container,
.tab-content,
.manual-content-wrapper,
.code-editor,
.pyodide-terminal {
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 246, 38, 0.75) rgba(0, 16, 8, 0.85);
}


.missile.locked {
    background: #ff3300;
    border-color: #ff3300;
    animation: blink-fast 0.2s infinite alternate;
}

#target-lock-box {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid red;
    pointer-events: none;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px red;
    border-radius: 4px;
    display: none;
}

/* Kill Feed */
#kill-feed {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 1.2rem;
}

.feed-item {
    background: transparent;
    padding: 8px 15px;
    border: none;
    color: var(--elite-gray);
    text-shadow: 0 0 5px var(--elite-gray);
    animation: fadeOutTop 5s forwards;
}

@keyframes fadeOutTop {
    0% { opacity: 1; transform: translateY(-10px); }
    10% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* Galactic Map Overlay */
#map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
}

.map-container {
    position: relative;
    box-sizing: border-box;
}

#galaxy-map {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

#map-info {
    position: relative;
    box-sizing: border-box;
}

#in-game-chat {
    position: absolute;
    bottom: 26%;
    left: 20px;
    width: 350px;
    height: 300px;
    background-color: rgba(0, 20, 0, 0.85);
    border: 2px solid #33cc33;
    border-radius: 8px;
    z-index: 50;
    display: none;
    flex-direction: column;
    pointer-events: none;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 10px rgba(51, 204, 51, 0.2);
    overflow: hidden;
}


/* LED Styles */
.led-off { background-color: transparent; box-shadow: none; }
.led-blink-green { background-color: #0f0; box-shadow: 0 0 10px #0f0; animation: ledblink 1s infinite; }
.led-on-yellow { background-color: #ff0; box-shadow: 0 0 10px #ff0; }
@keyframes ledblink { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
@keyframes pulse-amber {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.pulsing-script {
    animation: pulse-amber 1.5s infinite ease-in-out;
}

/* Cinematic Lens Flares */
.flare-element { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); opacity: 0; transition: opacity 0.2s; pointer-events: none; mix-blend-mode: screen; }
.flare-halo { width: 800px; height: 800px; background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,200,100,0.05) 30%, transparent 70%); }
.flare-ring { width: 600px; height: 600px; border: 2px solid rgba(255,255,255,0.05); background: transparent; }
.flare-hex { width: 100px; height: 100px; background: rgba(100,200,255,0.2); clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); border-radius: 0; }
.flare-hex-1 { width: 120px; height: 120px; background: rgba(50,255,50,0.1); }
.flare-hex-2 { width: 60px; height: 60px; background: rgba(255,100,100,0.15); }
.flare-hex-3 { width: 200px; height: 200px; background: rgba(100,150,255,0.05); }
.flare-streak { width: 200vw; height: 4px; background: radial-gradient(ellipse at center, rgba(255,255,255,0.4) 0%, rgba(255,200,100,0.1) 40%, transparent 70%); border-radius: 0; }

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-size: 1.05rem;
    color: #9cb5a8;
    background: rgba(18, 28, 23, 0.75);
    border: 1px solid rgba(140, 175, 155, 0.25);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    border-radius: 4px;
    box-shadow: none;
    backdrop-filter: none;
}
.back-btn:hover {
    background: rgba(28, 42, 34, 0.9);
    border-color: rgba(180, 215, 195, 0.5);
    box-shadow: none;
    color: #ffffff;
}

/* Unified Menu Header */
.menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(140, 175, 155, 0.22);
    background: rgba(14, 22, 18, 0.85);
    box-shadow: none;
    margin: -20px -20px 16px -20px;
    border-radius: 6px 6px 0 0;
}
.map-header {
    margin: 0 0 20px 0; /* map overlay doesn't have 20px padding like contents */
    border-radius: 0;
}
.wiki-header {
    margin: -40px -40px 20px -40px; /* wiki overlay has 40px padding */
}
.menu-header-left {
    display: flex;
    align-items: center;
    width: 25%;
}
.menu-header-center {
    flex-grow: 1;
    text-align: center;
}
.menu-header-title {
    color: #e5f0ea;
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: none;
    font-weight: 600;
}
.menu-header-title i {
    color: #62b08a;
    margin-right: 8px;
}
.menu-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 25%;
    font-size: 0.95rem;
    gap: 4px;
}
.menu-stat {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 220px;
}
.menu-stat-label {
    color: #7b9487;
    font-size: 0.82rem;
    font-weight: 600;
}
.menu-stat-value {
    color: #d1ded7;
    font-weight: 600;
}

.toolbar-btn {
    background: rgba(14, 22, 18, 0.75);
    border: 1px solid rgba(140, 175, 155, 0.25);
    color: #9cb5a8;
    cursor: pointer;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 0.95rem;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.toolbar-btn:hover {
    background: rgba(26, 38, 32, 0.9);
    border-color: rgba(180, 215, 195, 0.5);
    color: #ffffff;
    box-shadow: none;
}

.cr-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    margin-top: -2px;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.45));
    transition: transform 0.2s ease, filter 0.2s ease;
}
.cr-icon:hover {
    transform: scale(1.15) rotate(10deg);
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.8));
}

/* Settings Sub-Menu Styles */
.settings-card {
    background: rgba(0, 15, 0, 0.65);
    border: 1px solid var(--elite-green-border);
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5), inset 0 0 15px rgba(74,246,38,0.05);
}
.settings-card-title {
    color: var(--elite-green);
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--elite-green-border);
    padding-bottom: 8px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 8px var(--elite-green);
}
.settings-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.settings-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--elite-white);
}
.settings-val {
    color: var(--elite-green);
    font-weight: bold;
    font-family: 'Courier New', monospace;
}
.retro-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(0, 40, 0, 0.8);
    border: 1px solid var(--elite-green-border);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.8);
}
.retro-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--elite-green);
    border: 2px solid #000;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--elite-green);
    transition: transform 0.1s ease;
}
.retro-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
.retro-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--elite-green);
    border: 2px solid #000;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--elite-green);
}
.retro-select {
    background: rgba(0, 20, 0, 0.9);
    color: var(--elite-green);
    border: 1px solid var(--elite-green-border);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.6);
}
.retro-select:focus {
    border-color: var(--elite-green);
    box-shadow: 0 0 10px rgba(74,246,38,0.4);
}
.settings-toggle-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--elite-white);
    user-select: none;
}
.retro-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.retro-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid #555;
    border-radius: 12px;
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.retro-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #888;
    border-radius: 50%;
    transition: all 0.25s ease;
}
.retro-checkbox:checked + .retro-switch {
    background: rgba(0, 60, 0, 0.9);
    border-color: var(--elite-green-border);
    box-shadow: 0 0 10px rgba(74,246,38,0.3);
}
.retro-checkbox:checked + .retro-switch::after {
    left: 23px;
    background: var(--elite-green);
    box-shadow: 0 0 8px var(--elite-green);
}

/* CRT Overlay Effect */
body.crt-active #game-container::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 999;
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
}

/* =========================================
   LEADERBOARD & PILOT DOSSIER STYLES
   ========================================= */
.leaderboard-tab-btn {
    background: rgba(0, 20, 0, 0.6);
    border: 1px solid rgba(74, 246, 38, 0.3);
    color: var(--elite-gray);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.leaderboard-tab-btn:hover {
    background: rgba(0, 40, 0, 0.8);
    color: var(--elite-white);
    border-color: var(--elite-green-border);
}

.leaderboard-tab-btn.active {
    background: rgba(0, 60, 0, 0.9);
    color: var(--elite-green);
    border-color: var(--elite-green-border);
    box-shadow: 0 0 10px rgba(74, 246, 38, 0.3);
}

.leaderboard-row {
    border-bottom: 1px solid rgba(74, 246, 38, 0.12);
    transition: background 0.15s ease;
}

.leaderboard-row:hover {
    background: rgba(0, 40, 0, 0.4);
}

.leaderboard-row.is-me {
    background: rgba(0, 60, 0, 0.35);
    border: 1px solid var(--elite-green-border);
    font-weight: bold;
}

.leaderboard-row.is-me td {
    color: var(--elite-green);
}

.rank-badge-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rank-badge-0 { background: rgba(80, 80, 80, 0.4); color: #aaa; border: 1px solid #666; }
.rank-badge-1 { background: rgba(50, 100, 50, 0.4); color: #88cc88; border: 1px solid #448844; }
.rank-badge-2 { background: rgba(40, 120, 80, 0.4); color: #66ddaa; border: 1px solid #33aa77; }
.rank-badge-3 { background: rgba(30, 100, 160, 0.4); color: #66bbff; border: 1px solid #3388dd; }
.rank-badge-4 { background: rgba(80, 60, 160, 0.4); color: #aa88ff; border: 1px solid #7744dd; }
.rank-badge-5 { background: rgba(160, 60, 120, 0.4); color: #ff88dd; border: 1px solid #dd44aa; }
.rank-badge-6 { background: rgba(180, 100, 20, 0.4); color: #ffaa33; border: 1px solid #dd7711; }
.rank-badge-7 { background: rgba(200, 40, 40, 0.4); color: #ff5555; border: 1px solid #ee2222; text-shadow: 0 0 6px #ff4444; }
.rank-badge-8 { background: rgba(180, 150, 0, 0.5); color: #ffd700; border: 1px solid #ffd700; text-shadow: 0 0 10px #ffd700; animation: elite-pulse 2s infinite; }

@keyframes elite-pulse {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.9); }
}

.status-online-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #4af626;
    font-size: 0.75rem;
    background: rgba(0, 40, 0, 0.6);
    border: 1px solid rgba(74, 246, 38, 0.4);
    padding: 2px 8px;
    border-radius: 10px;
}

.status-offline-pill {
    display: inline-block;
    color: #888;
    font-size: 0.75rem;
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid #444;
    padding: 2px 8px;
    border-radius: 10px;
}

.status-dot-pulse {
    width: 7px;
    height: 7px;
    background: #4af626;
    border-radius: 50%;
    box-shadow: 0 0 6px #4af626;
    animation: status-blink 1.5s infinite;
}

@keyframes status-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Bulk Trade Styles */
.btn-trade-qty {
    transition: all 0.15s ease;
    border-color: rgba(74, 246, 38, 0.4);
    color: #ccc;
}
.btn-trade-qty.active {
    background: rgba(74, 246, 38, 0.25) !important;
    border-color: var(--elite-green) !important;
    color: var(--elite-green) !important;
    box-shadow: 0 0 8px rgba(74, 246, 38, 0.4);
}

/* Mission System Styles */
.mission-card {
    background: rgba(0, 15, 0, 0.65);
    border: 1px solid rgba(74, 246, 38, 0.3);
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.mission-card:hover {
    border-color: var(--elite-green);
    background: rgba(0, 25, 0, 0.85);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(74, 246, 38, 0.15);
}
.mission-card.bounty-card {
    border-color: rgba(255, 68, 68, 0.4);
}
.mission-card.bounty-card:hover {
    border-color: #ff4444;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 68, 68, 0.15);
}
.mission-card.cargo-card {
    border-color: rgba(0, 229, 255, 0.4);
}
.mission-card.cargo-card:hover {
    border-color: #00e5ff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(0, 229, 255, 0.15);
}
.mission-card.mining-card {
    border-color: rgba(255, 215, 0, 0.4);
}
.mission-card.mining-card:hover {
    border-color: #ffd700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 215, 0, 0.15);
}

.danger-badge {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 1px;
}
.danger-leicht { background: rgba(74, 246, 38, 0.2); color: #4af626; border: 1px solid #4af626; }
.danger-mittel { background: rgba(255, 170, 0, 0.2); color: #ffaa00; border: 1px solid #ffaa00; }
.danger-gefaehrlich { background: rgba(255, 68, 68, 0.25); color: #ff4444; border: 1px solid #ff4444; }
.danger-toedlich { background: rgba(255, 0, 0, 0.4); color: #ff0000; border: 1px solid #ff0000; text-shadow: 0 0 8px #ff0000; animation: pulseRedAnim 1s infinite; }

/* Lead Indicator */
#lead-indicator-hud.lead-locked {
    border-color: #4af626 !important;
    box-shadow: 0 0 18px rgba(74, 246, 38, 0.9) !important;
}
#lead-indicator-hud.lead-locked #lead-indicator-text {
    color: #4af626 !important;
    text-shadow: 0 0 8px #4af626 !important;
}
#lead-indicator-hud.lead-locked div:first-child {
    background: #4af626 !important;
    box-shadow: 0 0 6px #4af626 !important;
}

/* --- Retro Blast Doors Docking Sequence (Option 4) --- */
#docking-blast-doors {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
}

.blast-door {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(180deg, #0d1210 0%, #151d18 50%, #090c0a 100%);
    box-shadow: inset 0 0 40px rgba(0,0,0,0.95), 0 0 25px rgba(74, 246, 38, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: 3px solid rgba(74, 246, 38, 0.5);
    border-bottom: 3px solid rgba(74, 246, 38, 0.5);
    box-sizing: border-box;
    transition: transform 0.65s cubic-bezier(0.85, 0, 0.15, 1);
    will-change: transform;
}

.blast-door-left {
    left: 0;
    transform: translateX(-100%);
    border-right: 4px solid var(--elite-green);
    border-left: 2px solid rgba(74, 246, 38, 0.3);
}

.blast-door-right {
    right: 0;
    transform: translateX(100%);
    border-left: 4px solid var(--elite-green);
    border-right: 2px solid rgba(74, 246, 38, 0.3);
}

#docking-blast-doors.doors-closed .blast-door-left {
    transform: translateX(0);
}

#docking-blast-doors.doors-closed .blast-door-right {
    transform: translateX(0);
}

.blast-door-hazard {
    position: absolute;
    top: 0;
    width: 100%;
    height: 14px;
    background: repeating-linear-gradient(
        -45deg,
        #f59e0b,
        #f59e0b 15px,
        #111 15px,
        #111 30px
    );
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.blast-door-hazard.bottom {
    top: auto;
    bottom: 0;
}

.blast-door-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px 30px;
    background: rgba(0, 20, 5, 0.75);
    border: 1px solid rgba(74, 246, 38, 0.35);
    border-radius: 4px;
    box-shadow: inset 0 0 20px rgba(74, 246, 38, 0.2), 0 5px 20px rgba(0,0,0,0.8);
}

.blast-door-label {
    color: var(--elite-green);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 8px var(--elite-green);
    font-weight: bold;
}

.blast-door-lock-icon {
    color: var(--elite-yellow);
    font-size: 2rem;
    animation: lock-blink 0.4s infinite alternate;
}

@keyframes lock-blink {
    from { opacity: 0.4; filter: drop-shadow(0 0 2px var(--elite-yellow)); }
    to { opacity: 1; filter: drop-shadow(0 0 12px var(--elite-yellow)); }
}

/* Green Terminal CRT Scanline Boot Wipe */
.dock-scanline-wipe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(74, 246, 38, 0.3) 0%, rgba(74, 246, 38, 0.05) 50%, rgba(74, 246, 38, 0) 100%);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-100%);
    box-shadow: 0 5px 30px rgba(74, 246, 38, 0.7);
}

#docking-blast-doors.scanline-active .dock-scanline-wipe {
    animation: scanline-wipe-anim 0.55s ease-out forwards;
}

@keyframes scanline-wipe-anim {
    0% { transform: translateY(-100%); opacity: 0.8; }
    50% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}



.station-btn.slim {
    padding: 12px 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-width: 1px;
    border-radius: 4px;
}
.station-btn.slim i {
    display: inline-block;
    margin: 0;
    font-size: 1.4rem;
}

.station-btn.btn-slim {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    font-size: 0.95rem;
    border-width: 1px;
    box-shadow: inset 0 0 10px rgba(74,246,38,0.1), 0 3px 10px rgba(0,0,0,0.6);
}
.station-btn.btn-slim i {
    display: inline-block;
    margin: 0 10px 0 0;
    font-size: 1.2rem;
}


/* --- Symmetric Top Cockpit Layout & Slim Buttons (v1.2) --- */
.hud-wing-cluster {
    position: absolute;
    top: 20px;
    height: 120px;
    background: linear-gradient(135deg, rgba(8, 14, 22, 0.88) 0%, rgba(12, 20, 32, 0.75) 100%);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.08), inset 0 0 15px rgba(0, 240, 255, 0.04);
    backdrop-filter: blur(12px);
    padding: 6px 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 40;
    overflow: hidden;
}

.hud-wing-cluster::before {
    content: '';
    position: absolute;
    top: -1px; left: 8px; right: 8px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.7), transparent);
}
.hud-wing-left {
    right: calc(50% + 510px);
    width: 250px;
}
.hud-wing-right {
    left: calc(50% + 510px);
    width: 210px;
}
.hud-cluster-title {
    font-family: 'Courier New', monospace;
    font-size: 0.70rem;
    font-weight: bold;
    color: #00f0ff;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.25);
    padding-bottom: 3px;
    margin-bottom: 2px;
    text-shadow: 0 0 6px rgba(0, 240, 255, 0.6);
    white-space: nowrap;
}
.hud-ctrl-row {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    height: 25px;
}
.hud-icon-badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 8, 14, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 3px;
    color: #00f0ff;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.hud-input-compact {
    flex: 1;
    min-width: 0;
    background: rgba(4, 8, 14, 0.9);
    color: #00f0ff;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.74rem;
    height: 24px;
    outline: none;
    padding: 0 4px;
    box-sizing: border-box;
}
.hud-btn-icon {
    background: rgba(0, 240, 255, 0.12);
    color: #00f0ff;
    border: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: 3px;
    cursor: pointer;
    height: 24px;
    width: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.70rem;
    flex-shrink: 0;
    transition: all 0.15s ease;
}
.hud-btn-icon:hover {
    background: rgba(0, 240, 255, 0.35);
    transform: scale(1.08);
}
.hud-btn-icon.btn-run {
    background: rgba(0, 240, 255, 0.2);
    color: #00f0ff;
    border-color: #00f0ff;
}
.hud-btn-icon.btn-run:hover {
    background: rgba(0, 240, 255, 0.45);
    box-shadow: 0 0 8px #00f0ff;
}
.hud-btn-icon.btn-stop {
    background: rgba(255, 68, 68, 0.15);
    color: #ff4444;
    border-color: #ff4444;
}
.hud-btn-icon.btn-stop:hover {
    background: rgba(255, 68, 68, 0.35);
}
.voice-compact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 0 6px;
    border-radius: 3px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    background: rgba(4, 8, 14, 0.9);
    cursor: pointer;
    height: 24px;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}
#voice-status-text {
    color: #8fa89b;
    font-family: 'Courier New', monospace;
    font-size: 0.74rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}
.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #555;
    flex-shrink: 0;
}
.hud-status-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    padding: 2px 0;
}
.status-lbl {
    color: #888;
}
.status-val {
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Symmetric Top Monitors */
.top-monitor {
    position: absolute;
    top: 20px;
    height: 120px;
    background: linear-gradient(135deg, rgba(8, 14, 22, 0.88) 0%, rgba(12, 20, 32, 0.75) 100%);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 6px;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.08), inset 0 0 15px rgba(0, 240, 255, 0.04);
    backdrop-filter: blur(12px);
}

.top-monitor::before {
    content: '';
    position: absolute;
    top: -1px; left: 8px; right: 8px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.7), transparent);
    z-index: 10;
}
.top-mon-center {
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
}
.top-mon-left-inner {
    right: calc(50% + 170px);
    width: 190px;
}
.top-mon-left-outer {
    right: calc(50% + 370px);
    width: 130px;
}
.top-mon-right-inner {
    left: calc(50% + 170px);
    width: 320px;
}
.top-mon-right-outer {
    left: calc(50% + 500px);
    width: 250px;
}
.monitor-content {
    flex: 1;
    padding: 4px 6px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.text-green { color: var(--elite-green); text-shadow: 0 0 4px rgba(74, 246, 38, 0.4); }
.text-amber { color: #ffb000; text-shadow: 0 0 4px rgba(255, 176, 0, 0.4); }
.comms-scroll {
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Nav Computer Center Monitor */
.nav-com-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px 10px;
    font-family: 'Courier New', Courier, monospace;
    box-sizing: border-box;
    background: radial-gradient(circle, rgba(0, 25, 20, 0.85) 0%, rgba(0, 10, 8, 0.98) 100%);
    overflow: hidden;
}

.nav-com-standby {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    text-align: center;
    box-sizing: border-box;
}

.nav-com-active {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.nav-com-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.nav-com-row-header {
    min-height: 20px;
}

.nav-com-row-target {
    font-size: 0.78rem;
    border-bottom: 1px dashed rgba(0, 240, 255, 0.20);
    padding-bottom: 2px;
}

.nav-com-row-nexthop {
    font-size: 0.80rem;
    margin-top: 1px;
}

.nav-com-row-footer {
    font-size: 0.68rem;
    border-top: 1px dashed rgba(0, 240, 255, 0.20);
    padding-top: 3px;
    margin-top: 1px;
}

.nav-com-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: #00e5ff;
    box-shadow: 0 0 8px #00e5ff;
    animation: pulseCyanAnim 1.2s infinite ease-in-out;
}

.nav-com-phase-badge {
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid rgba(0, 229, 255, 0.4);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.68rem;
    color: #00e5ff;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-com-btn-abort {
    padding: 2px 7px;
    font-size: 0.68rem;
    border: 1px solid rgba(255, 85, 102, 0.7);
    color: #ff5566;
    background: rgba(255, 85, 102, 0.15);
    border-radius: 3px;
    cursor: pointer;
    line-height: 1.2;
    transition: all 0.2s;
    font-family: inherit;
    font-weight: bold;
}
.nav-com-btn-abort:hover {
    background: rgba(255, 85, 102, 0.35);
    box-shadow: 0 0 8px rgba(255, 85, 102, 0.6);
}

.nav-com-btn-start {
    padding: 2px 7px;
    font-size: 0.68rem;
    border: 1px solid #ffd700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.18);
    border-radius: 3px;
    cursor: pointer;
    line-height: 1.2;
    transition: all 0.2s;
    font-family: inherit;
    font-weight: bold;
}
.nav-com-btn-start:hover {
    background: rgba(255, 215, 0, 0.35);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.nav-com-btn-sell {
    border: 1px solid rgba(0, 229, 255, 0.4);
    background: rgba(0, 229, 255, 0.08);
    color: rgba(0, 229, 255, 0.85);
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    text-transform: uppercase;
    white-space: nowrap;
}
.nav-com-btn-sell:hover {
    border-color: #00e5ff;
    color: #fff;
    box-shadow: 0 0 6px rgba(0, 229, 255, 0.3);
}
.nav-com-btn-sell.active {
    border-color: #ffd700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* Redesigned Slim Station Buttons */
.station-btn.btn-slim {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(140, 175, 155, 0.25);
    border-radius: 4px;
    background: rgba(14, 22, 18, 0.75);
    color: #d1ded7;
    box-shadow: none;
    transform: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.station-btn.btn-slim:hover {
    background: rgba(26, 38, 32, 0.9);
    border-color: rgba(180, 215, 195, 0.5);
    color: #ffffff;
    box-shadow: none;
    transform: none;
}
.station-btn.btn-slim i {
    display: inline-block;
    margin: 0 8px 0 0;
    font-size: 1rem;
    color: #62b08a;
    transition: color 0.15s ease;
}
.station-btn.btn-slim:hover i {
    color: #9cd4ba;
}

.menu-sector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}
@media (max-width: 900px) {
    .menu-sector-grid {
        grid-template-columns: 1fr;
    }
}
.menu-sector-card {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.menu-sector-card:hover {
    border-color: rgba(180, 215, 195, 0.4) !important;
    transform: none;
    box-shadow: none;
}

@media (max-width: 850px) {
    .start-screen-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Station HUD Bar Responsive Rules */
@media (max-width: 820px) {
    .station-hud-bar {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

/* Market UI Revamp Styles */
.market-category-nav .market-cat-tab {
    font-size: 0.8rem;
    padding: 5px 12px;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.market-category-nav .market-cat-tab.active {
    background: rgba(74, 246, 38, 0.2);
    border-color: var(--elite-green) !important;
    color: var(--elite-green) !important;
    box-shadow: 0 0 10px rgba(74, 246, 38, 0.3);
}

.market-row {
    transition: background 0.15s ease;
}

.market-row:hover {
    background: rgba(74, 246, 38, 0.1) !important;
}

/* Crafting & Manual Cards Harmonization */
.crafting-card {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.manual-card {
    background: rgba(0, 18, 6, 0.75);
    border: 1px solid var(--elite-green-border);
    border-radius: 6px;
    padding: 16px 20px;
    box-shadow: inset 0 0 15px rgba(74, 246, 38, 0.08);
}

.keybind-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(0, 25, 8, 0.45);
    border: 1px solid rgba(74, 246, 38, 0.15);
    border-radius: 4px;
    font-size: 0.88rem;
}

.retro-kbd {
    background: #112211;
    border: 1px solid var(--elite-green);
    color: var(--elite-green);
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 3px;
    box-shadow: 0 2px 0 rgba(74,246,38,0.4);
    font-weight: bold;
    font-family: inherit;
}

.api-method-card {
    background: rgba(0, 15, 5, 0.5);
    border-left: 3px solid #00e5ff;
    padding: 10px 14px;
    margin-bottom: 10px;
    border-radius: 0 4px 4px 0;
}

.api-sig code {
    color: #00e5ff;
    font-weight: bold;
    font-size: 0.95rem;
}

.api-desc {
    color: #ccc;
    font-size: 0.86rem;
    margin-top: 4px;
    line-height: 1.4;
}

.rank-badge {
    border: 1px solid rgba(74, 246, 38, 0.3);
    background: rgba(74, 246, 38, 0.08);
    color: var(--elite-white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.craft-summary-box {
    background: rgba(0, 25, 10, 0.45);
    border: 1px solid rgba(0, 229, 255, 0.25);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #ddd;
}

/* ==========================================================================
   KONZEPT 2: TAKTISCHES MIL-SPEC / SLATE (Ruhige, professionelle Menüführung)
   ========================================================================== */

/* Basis-Tab-Leisten */
.shipyard-category-nav,
.crafting-category-nav,
.ship-catalog-nav,
.manual-category-nav {
    border-bottom: 1px solid rgba(140, 175, 155, 0.22) !important;
    padding-bottom: 8px;
    margin-bottom: 14px;
}

/* Einheitliche Kategorie- und Menü-Tabs */
.shipyard-category-nav .shipyard-cat-tab,
.craft-cat-tab,
.ship-cat-tab,
.manual-tab {
    background: rgba(14, 22, 18, 0.75) !important;
    border: 1px solid rgba(140, 175, 155, 0.25) !important;
    color: #9cb5a8 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}

/* Hover: sanft und statisch ohne Ruckeln */
.shipyard-category-nav .shipyard-cat-tab:hover,
.craft-cat-tab:hover,
.ship-cat-tab:hover,
.manual-tab:hover {
    background: rgba(26, 38, 32, 0.85) !important;
    border-color: rgba(180, 215, 195, 0.45) !important;
    color: #e5f0ea !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Aktiver Tab: einheitlicher, ruhiger Mil-Spec Bernstein-Akzent */
.shipyard-category-nav .shipyard-cat-tab.active,
.craft-cat-tab.active,
.ship-cat-tab.active,
.manual-tab.active {
    background: rgba(229, 169, 60, 0.14) !important;
    border-color: #d4a347 !important;
    color: #f5cf82 !important;
    box-shadow: inset 0 0 10px rgba(229, 169, 60, 0.08) !important;
    transform: none !important;
}

/* Button SCHIFFE im Nav-Bar */
#btn-shipyard-catalog {
    background: rgba(18, 26, 22, 0.8) !important;
    border: 1px solid rgba(229, 169, 60, 0.35) !important;
    color: #f5cf82 !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease !important;
}
#btn-shipyard-catalog:hover {
    background: rgba(229, 169, 60, 0.18) !important;
    border-color: #f0be5a !important;
    color: #ffffff !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Schiffs- und Modulkarten: Ruhige Slate-Karten ohne Wackeln */
.shipyard-module-card,
.ship-catalog-card,
.crafting-card {
    background: rgba(10, 16, 13, 0.82) !important;
    border: 1px solid rgba(140, 175, 155, 0.22) !important;
    border-radius: 5px !important;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: none !important;
    transform: none !important;
    transition: border-color 0.2s ease, background-color 0.2s ease !important;
}

.shipyard-module-card:hover,
.ship-catalog-card:hover,
.crafting-card:hover {
    border-color: rgba(180, 215, 195, 0.5) !important;
    background: rgba(16, 26, 20, 0.9) !important;
    box-shadow: none !important;
    transform: none !important;
}

.ship-catalog-card.active {
    border-color: #d4a347 !important;
    background: rgba(229, 169, 60, 0.10) !important;
    box-shadow: inset 0 0 14px rgba(229, 169, 60, 0.08) !important;
    transform: none !important;
}

.shipyard-module-card .card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.shipyard-module-card .card-icon {
    font-size: 1.3rem;
    width: 32px;
    text-align: center;
    padding-top: 2px;
    color: #8fa89b;
}

.shipyard-module-card .card-title {
    font-size: 1.05rem;
    color: var(--elite-white);
    font-weight: bold;
    line-height: 1.2;
}

.shipyard-module-card .card-subtitle {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}

.shipyard-module-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    border-top: 1px solid rgba(140, 175, 155, 0.18);
    padding-top: 8px;
}

.shipyard-module-card .card-price {
    font-size: 0.95rem;
    color: #ddd;
    font-weight: 500;
}

/* Tier Pips */
.tier-pips {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.tier-pip {
    width: 14px;
    height: 5px;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.tier-pip.filled {
    background: #62b08a;
    border-color: #62b08a;
    box-shadow: none;
}

/* Schiffs-Dossier Telemetrie */
.dossier-card {
    background: rgba(8, 14, 11, 0.88) !important;
    border: 1px solid rgba(140, 175, 155, 0.25) !important;
    border-radius: 5px;
    padding: 16px;
    box-shadow: none !important;
}

.dossier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(140, 175, 155, 0.22);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.dossier-status-pill {
    background: rgba(140, 175, 155, 0.12);
    border: 1px solid rgba(140, 175, 155, 0.4);
    color: #9cb5a8;
    font-size: 0.72rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.dossier-bars-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dossier-bar-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dossier-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #9cb5a8;
}

.dossier-bar-bg {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.dossier-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: #62b08a !important; /* Mil-Spec Salbeigrün */
    transition: width 0.3s ease;
}

.subsystem-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.76rem;
    font-weight: bold;
    border: 1px solid;
}

/* Power Distributor Pips CRT Styling */
.pip-block {
    width: 24px;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    transition: all 0.15s ease;
}

#pip-stack-sys .pip-block.active {
    background: #00e5ff;
    border-color: #00e5ff;
    box-shadow: 0 0 8px #00e5ff;
}

#pip-stack-eng .pip-block.active {
    background: var(--elite-green);
    border-color: var(--elite-green);
    box-shadow: 0 0 8px var(--elite-green);
}

#pip-stack-wep .pip-block.active {
    background: #ff5566;
    border-color: #ff5566;
    box-shadow: 0 0 8px #ff5566;
}

@media (max-width: 1300px) {
    #hud-power-distributor {
        right: calc(2vw + 270px) !important;
        transform: scale(0.9);
        transform-origin: top right;
    }
    #hud-target-monitor {
        left: calc(2vw + 270px) !important;
        transform: scale(0.9);
        transform-origin: top left;
    }
}

@media (max-width: 1050px) {
    #hud-power-distributor, #hud-target-monitor {
        display: none !important;
    }
}

/* ==========================================================================
   MAJOR 2.0: FIRST-PERSON EVA VISOR HUD & PLANETARY EXPLORATION STYLES
   ========================================================================== */

#eva-visor-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 950;
    display: none;
    font-family: 'Courier New', Courier, monospace;
    color: var(--elite-white);
    box-sizing: border-box;
}

/* Curved Helmet Glass Vignette & Scanlines */
.eva-visor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 120px rgba(0, 30, 10, 0.8), inset 0 0 40px rgba(74, 246, 38, 0.2);
    background: radial-gradient(circle at center, transparent 65%, rgba(0, 20, 10, 0.4) 100%);
    pointer-events: none;
}

/* In-World Diegetic AR Ship Waypoint Marker */
#eva-ship-ar-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: none;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.15s ease;
}

.eva-ship-ar-arrow {
    display: none;
    font-size: 1.15rem;
    color: #00e5ff;
    text-shadow: 0 0 10px #00e5ff, 0 0 20px rgba(0, 229, 255, 0.85);
    margin-bottom: 2px;
    transition: transform 0.04s linear;
}

.eva-ship-ar-icon {
    font-size: 1.4rem;
    color: #00e5ff;
    text-shadow: 0 0 10px #00e5ff, 0 0 20px rgba(0, 229, 255, 0.7);
    animation: evaShipPulse 2s infinite ease-in-out;
}

.eva-ship-ar-label {
    margin-top: 4px;
    background: rgba(0, 20, 10, 0.88);
    border: 1px solid rgba(0, 229, 255, 0.5);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: bold;
    color: #00e5ff;
    letter-spacing: 1px;
    white-space: nowrap;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

.eva-ship-ar-label .eva-ship-name {
    color: var(--elite-green);
    margin-right: 5px;
}

.eva-ship-ar-bracket {
    position: absolute;
    top: -6px;
    bottom: -6px;
    left: -12px;
    right: -12px;
    border: 1px dashed rgba(0, 229, 255, 0.35);
    border-radius: 6px;
    pointer-events: none;
}

#eva-ship-ar-marker.eva-ship-offscreen .eva-ship-ar-bracket {
    border-color: rgba(0, 229, 255, 0.65);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}

@keyframes evaShipPulse {
    0%, 100% { transform: scale(1.0); opacity: 0.9; }
    50% { transform: scale(1.15); opacity: 1.0; text-shadow: 0 0 15px #00e5ff, 0 0 30px rgba(0, 229, 255, 0.9); }
}

/* Bottom Left: Suit Vitals (O2, Energy, Hull) */
#eva-suit-vitals {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 280px;
    background: rgba(0, 20, 10, 0.88);
    border: 1px solid var(--elite-green-border);
    border-radius: 6px;
    padding: 14px 16px;
    box-shadow: 0 0 18px rgba(74, 246, 38, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eva-vital-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eva-vital-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: bold;
}

.eva-vital-bar-track {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.eva-vital-bar-fill {
    height: 100%;
    transition: width 0.2s ease;
}

.bar-o2 {
    background: linear-gradient(90deg, #00b0ff, #00e5ff);
    box-shadow: 0 0 8px #00e5ff;
}

.bar-suit-energy {
    background: linear-gradient(90deg, #1ea00f, #4af626);
    box-shadow: 0 0 8px #4af626;
}

.bar-suit-hull {
    background: linear-gradient(90deg, #ff3344, #ff5566);
    box-shadow: 0 0 8px #ff5566;
}

/* Bottom Right: Surface Info & Geo-Scanner */
#eva-surface-dossier {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 290px;
    background: rgba(0, 20, 10, 0.88);
    border: 1px solid var(--elite-green-border);
    border-radius: 6px;
    padding: 14px 16px;
    box-shadow: 0 0 18px rgba(74, 246, 38, 0.2);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
}

/* Center Crosshair & Interaction Tooltip */
#eva-center-reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eva-reticle-dot {
    width: 4px;
    height: 4px;
    background: #00e5ff;
    border-radius: 50%;
    box-shadow: 0 0 6px #00e5ff;
}

#eva-interaction-prompt {
    position: absolute;
    top: calc(50% + 28px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 25, 12, 0.92);
    border: 1px solid #ffd700;
    color: #ffd700;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
    display: none;
}

/* ==========================================================================
   GOLDEN CREDITS & TECH-STACK SHOWCASE BUTTON & CINEMATIC OVERLAY
   ========================================================================== */

.start-screen-credits-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.45);
    color: #ffd700;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 9px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
    text-transform: uppercase;
    user-select: none;
    outline: none;
}

.start-screen-credits-btn:hover {
    background: rgba(255, 215, 0, 0.22);
    border-color: #ffd700;
    box-shadow: 0 0 22px rgba(255, 215, 0, 0.50);
    color: #ffffff;
    transform: translateY(-2px);
}

.start-screen-credits-btn:active {
    transform: translateY(0);
}

.btn-golden-credits {
    position: fixed;
    bottom: 20px;
    left: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 32%, #fff8b3 0%, #ffd700 35%, #cf9600 70%, #7a4e00 100%);
    border: 2px solid #fff2a8;
    color: #1a1000;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.65), 0 4px 14px rgba(0, 0, 0, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.9);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
    outline: none;
    user-select: none;
}

.btn-golden-credits:hover {
    transform: scale(1.12);
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.95), 0 6px 20px rgba(0, 0, 0, 0.95), inset 0 2px 6px rgba(255, 255, 255, 1);
    color: #000000;
}

.btn-golden-credits:active {
    transform: scale(0.95);
}

.golden-btn-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.5);
    animation: goldenPulse 2.2s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}

@keyframes goldenPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.25); opacity: 0.1; }
    100% { transform: scale(1.35); opacity: 0; }
}

.golden-btn-label {
    position: absolute;
    left: 64px;
    background: rgba(0, 20, 10, 0.92);
    border: 1px solid #ffd700;
    color: #ffd700;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.2s ease;
    pointer-events: none;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.btn-golden-credits:hover .golden-btn-label {
    opacity: 1;
    transform: translateX(0);
}

/* Credits Overlay - 3D Star Wars Style */
.credits-overlay-container {
    position: fixed;
    inset: 0;
    z-index: 200000;
    background: transparent;
    color: #feda4a;
    font-family: "Franklin Gothic Medium", "Arial Black", "Arial", -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    user-select: none;
}

/* Starfield Background Subtle Space Vignette */
.starwars-space-background {
    display: none;
}

/* Horizon Fade Gradient Mask */
.starwars-fade-horizon {
    display: none;
}

/* Bottom Fade Mask */
.starwars-fade-bottom {
    display: none;
}

/* 3D Perspective Stage */
.starwars-crawl-stage {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    perspective: 420px;
    perspective-origin: 50% 50%;
    overflow: hidden;
    z-index: 10;
    background: transparent !important;
}

/* Fixed-size 3D Tilted Board - Anchored at bottom of viewport */
.starwars-crawl-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    transform-origin: 50% 100%;
    transform: rotateX(24deg);
    pointer-events: auto;
}

/* The Plane that slides along the tilted board */
.starwars-crawl-plane {
    position: absolute;
    width: 90vw;
    max-width: 1300px;
    top: 0;
    left: 50%;
    margin: 0;
    transform: translateX(-50%) translateY(0px);
    text-align: justify;
    color: #feda4a;
    text-shadow: 0 0 16px rgba(254, 218, 74, 0.45);
    line-height: 1.6;
    letter-spacing: 2px;
    font-size: 2.6rem;
    font-weight: 700;
    padding-bottom: 600px;
    will-change: transform;
}

.starwars-intro-card {
    text-align: center;
    color: #4bd5ee;
    font-size: 2.8rem;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 4px;
    margin-bottom: 120px;
    line-height: 1.5;
    text-shadow: 0 0 20px rgba(75, 213, 238, 0.75);
}

.starwars-main-logo {
    text-align: center;
    font-size: 9.5rem;
    font-weight: 900;
    letter-spacing: 24px;
    color: #feda4a;
    text-shadow: 0 0 35px rgba(254, 218, 74, 0.9), 0 0 70px rgba(254, 218, 74, 0.5);
    margin: 50px 0 20px 0;
    text-transform: uppercase;
}

.starwars-episode-title {
    text-align: center;
    font-size: 4rem;
    font-weight: bold;
    letter-spacing: 8px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
    margin-bottom: 70px;
    text-transform: uppercase;
}

.starwars-chapter-header {
    text-align: center;
    font-size: 4.2rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: #ffffff;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.85);
    margin: 90px 0 35px 0;
    text-transform: uppercase;
}

.starwars-paragraph {
    margin-bottom: 50px;
    font-size: 3.2rem;
    line-height: 1.65;
    text-align: justify;
    hyphens: auto;
}

.starwars-tech-list {
    display: flex;
    flex-direction: column;
    gap: 36px;
    margin-bottom: 60px;
    font-size: 2.8rem;
}

.starwars-tech-item {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 15px;
    line-height: 1.6;
}

.starwars-tech-item strong {
    color: #ffffff;
    font-size: 3.2rem;
    display: block;
    margin-bottom: 6px;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.starwars-partner-item {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 45px;
    font-size: 2.8rem;
    line-height: 1.6;
}

.starwars-partner-item strong {
    color: #00e5ff;
    font-size: 3.4rem;
    display: block;
    margin-bottom: 6px;
    text-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
}

.starwars-author-card {
    text-align: center;
    border: none;
    background: none;
    box-shadow: none;
    padding: 20px 0;
    margin: 80px 0 50px 0;
}

/* ==========================================================================
   Tactical Mil-Spec Slate: Global Sub-Menus Harmonization
   ========================================================================== */

#ranking-content,
#squadron-content,
#missions-content,
#ai-copilot-content,
#flightlog-content,
#help-content,
#settings-content,
#computer-content,
#inventory-content,
#market-content,
#crafting-content,
#shipyard-content,
#ship-catalog-view {
    background: rgba(8, 14, 11, 0.98) !important;
    border: 1px solid rgba(140, 175, 155, 0.35) !important;
    border-radius: 6px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.9) !important;
}

/* Tab harmonization across all sub-menus */
.leaderboard-tab-btn,
.market-cat-tab,
.shipyard-cat-tab,
.craft-cat-tab,
.ship-cat-tab,
.manual-tab {
    background: rgba(14, 22, 18, 0.75) !important;
    border: 1px solid rgba(140, 175, 155, 0.25) !important;
    color: #9cb5a8 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    padding: 7px 14px !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}

.leaderboard-tab-btn:hover,
.market-cat-tab:hover,
.shipyard-cat-tab:hover,
.craft-cat-tab:hover,
.ship-cat-tab:hover,
.manual-tab:hover {
    background: rgba(26, 38, 32, 0.85) !important;
    border-color: rgba(180, 215, 195, 0.45) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    transform: none !important;
}

.leaderboard-tab-btn.active,
.market-cat-tab.active,
.shipyard-cat-tab.active,
.craft-cat-tab.active,
.ship-cat-tab.active,
.manual-tab.active {
    background: rgba(229, 169, 60, 0.14) !important;
    border-color: #d4a347 !important;
    color: #f5cf82 !important;
    box-shadow: inset 0 0 10px rgba(229, 169, 60, 0.08) !important;
    transform: none !important;
}

/* Universal Table Styling in Sub-Menus */
#leaderboard-table,
#flightlog-table,
#sq-browse-table,
#sq-members-table,
.market-table {
    border-collapse: collapse;
    width: 100%;
}

#leaderboard-table thead tr,
#flightlog-table thead tr,
#sq-browse-table thead tr,
#sq-members-table thead tr,
.market-table thead tr {
    background: rgba(14, 22, 18, 0.95) !important;
    border-bottom: 1px solid rgba(140, 175, 155, 0.25) !important;
    color: #9cb5a8 !important;
    font-size: 0.84rem !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
}

#leaderboard-table tbody tr,
#flightlog-table tbody tr,
#sq-browse-table tbody tr,
#sq-members-table tbody tr,
.market-table tbody tr {
    border-bottom: 1px solid rgba(140, 175, 155, 0.10) !important;
    transition: background-color 0.15s ease;
}

#leaderboard-table tbody tr:hover,
#flightlog-table tbody tr:hover,
#sq-browse-table tbody tr:hover,
#sq-members-table tbody tr:hover,
.market-table tbody tr:hover {
    background: rgba(26, 38, 32, 0.5) !important;
}

/* Input Fields & Textareas inside sub-menus */
.retro-select,
.retro-slider {
    accent-color: #62b08a;
}

.retro-select {
    background: rgba(14, 22, 18, 0.85) !important;
    border: 1px solid rgba(140, 175, 155, 0.25) !important;
    color: #d1ded7 !important;
    border-radius: 4px !important;
}

/* Bord KI Copilot Token Stream Cursor */
@keyframes copilotBlink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.copilot-cursor {
    display: inline-block;
    color: #62b08a;
    font-weight: bold;
    margin-left: 2px;
    animation: copilotBlink 0.7s infinite;
    vertical-align: baseline;
    font-size: 1.05rem;
}

