@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;300;500;700&display=swap');

:root {
    /* --- ARCHITECTURE: Z-LAYERS --- */
    --z-background: 0;
    /* Spielwelt / Canvas */
    --z-ui-base: 1000;
    /* Statische UI Elemente */
    --z-panel: 5000;
    /* Fenster (FinancePanel, etc.) */
    --z-modal: 8000;
    /* Popups / Dialoge */
    --z-tooltip: 9000;
    /* Tooltips (Müssen über Fenstern liegen) */
    --z-cursor: 9999;
    /* Mauszeiger / Drag & Drop Icons */

    /* --- NEW CENTRALIZED THEME (MAPPED TO HUDConfig.js) --- */
    --hud-col-pos: #00ff00;
    --hud-col-neg: #ff3333;
    --hud-col-neu: #00ffff;
    --hud-col-warn: #ffff00;
    --hud-col-txt-main: #eeeeee;
    --hud-col-txt-sec: #aaaaaa;
    --hud-bg-panel: rgba(0, 20, 10, 0.95);
    --hud-font-main: 'Share Tech Mono', monospace;
    --hud-font-digital: 'Courier New', monospace;

    /* --- LEGACY COMPATIBILITY (Will be phased out) --- */
    --neon-blue: #00ffff;
    --neon-cyan: #00ccff;
    --neon-red: #ff3333;
    --neon-amber: #ffaa00;
    --neon-green: #33ff33;
    --neon-white: rgba(255, 255, 255, 0.9);

    --glass-bg: rgba(5, 12, 20, 0.85);
    --glass-border: rgba(0, 204, 255, 0.3);

    --panel-gap: 10px;
    --panel-padding: 8px;

    --font-main: 'Share Tech Mono', monospace;
    --font-display: 'Outfit', sans-serif;

    /* --- GOLD STATUS: DESIGN SYSTEM UPGRADES --- */
    --panel-radius: 12px;
}

/* --- GOD MODE ANIMATIONS & SHADERS (V2: Clean & Sharp) --- */

@keyframes hud-hover-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    }

    50% {
        transform: scale(1);
        box-shadow: 0 0 25px rgba(0, 255, 255, 0.6), inset 0 0 10px rgba(0, 255, 255, 0.2);
        filter: brightness(1.2);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    }
}

@keyframes hud-shine-sweep {
    0% {
        left: 100%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: -100%;
        opacity: 0;
    }
}

@keyframes hud-important-scan-loop {
    0% {
        background-position: 0% 0%;
        box-shadow: inset 0 0 0 1px rgba(255, 170, 0, 0.25), 0 0 15px rgba(255, 170, 0, 0.2);
    }

    /* Scan starts at 90% time (9s pause) */
    90% {
        background-position: 0% 0%;
        box-shadow: inset 0 0 0 1px rgba(255, 170, 0, 0.25), 0 0 15px rgba(255, 170, 0, 0.2);
    }

    95% {
        background-position: 0% 100%;
        box-shadow: inset 0 0 0 1px rgba(255, 170, 0, 0.8), 0 0 30px rgba(255, 170, 0, 0.5);
    }

    /* Flash */
    100% {
        background-position: 0% 200%;
        box-shadow: inset 0 0 0 1px rgba(255, 170, 0, 0.25), 0 0 15px rgba(255, 170, 0, 0.2);
    }

    /* Scan starts at 90% time (9s pause) */
    90% {
        background-position: 0% 0%;
        box-shadow: inset 0 0 0 1px rgba(255, 170, 0, 0.25), 0 0 15px rgba(255, 170, 0, 0.2);
    }

    95% {
        background-position: 0% 100%;
        box-shadow: inset 0 0 0 1px rgba(255, 170, 0, 0.8), 0 0 30px rgba(255, 170, 0, 0.5);
    }

    /* Flash */
    100% {
        background-position: 0% 200%;
        box-shadow: inset 0 0 0 1px rgba(255, 170, 0, 0.25), 0 0 15px rgba(255, 170, 0, 0.2);
    }
}

.start-screen-title {
    font-family: 'Share Tech Mono';
    font-size: 60px;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan);
    margin-bottom: 40px;
    text-transform: uppercase;
}

@keyframes hud-flash-impact {
    0% {
        box-shadow: inset 0 0 0 100px rgba(255, 255, 255, 1);
    }

    100% {
        box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes hud-chromatic-jitter {
    0% {
        text-shadow: 2px 0 rgba(255, 0, 0, 0.5), -2px 0 rgba(0, 0, 255, 0.5);
    }

    10% {
        text-shadow: -1px 0 rgba(255, 0, 0, 0.5), 1px 0 rgba(0, 0, 255, 0.5);
    }

    20% {
        text-shadow: 0 0 var(--hud-col-neu);
    }

    100% {
        text-shadow: 0 0 var(--hud-col-neu);
    }
}

/* KEYFRAMES: Yellow Jitter Variation */
@keyframes hud-chromatic-jitter-warn {
    0% {
        text-shadow: 2px 0 rgba(255, 255, 0, 0.5), -2px 0 rgba(255, 0, 0, 0.5);
    }

    50% {
        text-shadow: -1px 0 rgba(255, 255, 0, 0.5), 1px 0 rgba(255, 0, 0, 0.5);
    }

    100% {
        text-shadow: 0 0 var(--hud-col-warn);
    }
}

@keyframes hud-scanner-sweep-enter {
    0% {
        width: 0%;
        left: 0;
        opacity: 1;
        background: #fff;
        box-shadow: 0 0 15px #fff;
    }

    50% {
        width: 100%;
        left: 0;
        opacity: 1;
        background: var(--hud-col-neu);
        box-shadow: 0 0 5px var(--hud-col-neu);
    }

    100% {
        width: 100%;
        left: 0;
        opacity: 1;
        background: var(--hud-col-neu);
    }
}

@keyframes hud-shockwave-expand {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
        border-width: 4px;
        border-color: #fff;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.0);
        opacity: 0;
        border-width: 0px;
        border-color: var(--hud-col-neu);
    }
}

#ui-root-v2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none !important;
    z-index: var(--z-ui-base);
    overflow: hidden;
}

/* Glass Ceiling Fix: Ensure containers are non-blocking */
#ui-layer-hud,
#ui-layer-overlay,
#ui-layer-tooltip {
    pointer-events: none !important;
}

#ui-layer-tooltip,
.hud-tooltip {
    position: absolute;
    z-index: var(--z-tooltip);
    pointer-events: none;
}

.hud-anchor {
    position: absolute;
    pointer-events: none;
    z-index: var(--z-ui-base);
    display: flex;
}

.anchor-top {
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    justify-content: center;
}

.anchor-bot-left {
    bottom: 20px;
    left: 20px;
    align-items: flex-end;
}

.anchor-bot-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    align-items: flex-end;
}

.anchor-bot-right {
    bottom: 20px;
    right: 20px;
    align-items: flex-end;
    flex-direction: column;
}

.hud-panel-v2 {
    pointer-events: auto !important;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.x-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.2s;
    pointer-events: auto !important;
    pointer-events: auto !important;
    z-index: var(--z-panel);
    border-radius: var(--panel-radius);
}

.x-header {
    background: rgba(0, 255, 255, 0.1);
    border-bottom: 1px solid var(--glass-border);
    padding: 4px 8px;
    border-radius: var(--panel-radius) var(--panel-radius) 0 0;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-display);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.x-close-btn {
    width: 16px;
    height: 16px;
    line-height: 14px;
    text-align: center;
    border: 1px solid rgba(255, 50, 50, 0.5);
    color: rgba(255, 50, 50, 0.8);
    font-family: sans-serif;
    font-size: 10px;
    cursor: pointer;
    background: rgba(50, 0, 0, 0.3);
    margin-left: 10px;
    transition: all 0.2s;
}

.x-close-btn:hover {
    background: red;
    color: white;
    border-color: white;
}

.x-body {
    flex-grow: 1;
    padding: var(--panel-padding);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}



.fin-grid {
    display: flex;
    justify-content: space-between;
    padding: 5px 15px;
    width: 100%;
    height: 100%;
    gap: 20px;
}

.fin-left {
    flex-grow: 1;
    display: flex;
    gap: 20px;
    min-width: 0;
}

#grp-trend {
    flex-grow: 2;
    display: flex;
    flex-direction: column;
}

#grp-pulse {
    flex-grow: 1;
    max-width: 200px;
    display: flex;
    flex-direction: column;
}

#chart-trend,
#chart-pulse {
    width: 100%;
    height: 100%;
    max-height: 100px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.res-val {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 300;
    color: var(--neon-amber);
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.4);
    line-height: 1;
}

.res-rate {
    font-size: 14px;
    color: var(--neon-green);
    text-align: right;
}

#hud-minimap {
    width: 340px;
    height: 340px;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

#hud-minimap .x-body {
    border-radius: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

#minimap-canvas {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    border-radius: 0 !important;
}

#hud-tactical-panel {
    width: 100%;
    max-width: 600px;
    height: 220px;
    margin-bottom: 0;
}

.tac-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 12px;
}

.tac-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px 0;
}

.tac-label {
    color: rgba(255, 255, 255, 0.5);
}

.tac-value {
    color: var(--neon-cyan);
    font-weight: bold;
}

#hud-command-panel {
    width: 100%;
    max-width: 340px;
    height: auto;
    min-height: 220px;
    pointer-events: auto !important;
    position: relative;
    position: relative;
    z-index: var(--z-panel);
}

.cmd-grid {
    display: flex;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100%;
    gap: 4px;
}

.cmd-grid .cmd-btn {
    width: 100% !important;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 5px;
    display: flex;
}

/* =========================================
   --- SCI-FI TECHNO BUTTON SYSTEMS V3 (STRICT SLIM 32px) ---
   ========================================= */

/* =========================================
   --- GOD MODE: SCI-FI ENERGY INTERFACE V4 ---
   ========================================= */

.cmd-btn {
    /* 1. DIMENSION: DEEP SPACE BASIS (Architecture) */
    position: relative;
    height: 45px;
    /* High Voltage Presence */
    /* Strict Layout Constraint */
    width: 100%;
    margin-bottom: 4px;
    padding: 0 10px;
    box-sizing: border-box;
    z-index: var(--z-panel);

    /* Layout: Flex */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    /* Typography */
    color: var(--hud-col-neu);
    font-family: var(--hud-font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;

    /* SHAPE & BORDER PHYSICS */
    border: none;
    border-radius: 4px;
    /* Soft round corners for buttons */
    /* Complex Clip Path REMOVED for rounded design consistency */
    /* clip-path: polygon(6px 0, 100% 0,
            100% calc(100% - 6px),
            calc(100% - 6px) 100%,
            0 100%, 0 6px); */

    /* Glowing Edges (Simulated Borders) & HIGH VOLTAGE BLOOM (+ Solid Hologram) */
    box-shadow:
        inset 0 0 0 1px rgba(0, 255, 255, 0.3),
        /* Stronger Glass Edge */
        inset 0 0 20px rgba(0, 10, 20, 0.9),
        0 0 20px rgba(0, 255, 255, 0.25),
        /* Existing Glow */
        0 0 10px rgba(0, 20, 30, 1);
    /* New Backlight Drop Shadow */

    /* Outer Glow (Idle State) */

    /* MULTI-LAYER MATERIAL SYSTEM (The "God Mode" Bg) */
    background-color: #000;
    /* CLEAN DEEP SPACE -> SOLID HOLOGRAM TINT */
    background-image: linear-gradient(135deg, rgba(10, 40, 50, 0.75), rgba(5, 20, 30, 0.85));
    background-size: 100% 100%;

    /* ANIMATION: None in idle (unless important) */
    animation: none;

    /* PERFORMANCE & FEEL */
    backdrop-filter: blur(4px);
    cursor: pointer;
    overflow: hidden;
    /* Contains the sweeps */
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);

    /* PERFORMANCE & FEEL */
    backdrop-filter: blur(4px);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);

    will-change: transform, box-shadow, text-shadow, background-position;
}

/* CONTENT: Label (ABSOLUTE CENTER) */
.cmd-btn .btn-label {
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 1;
    pointer-events: none;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.2);
    transition: all 0.2s;
}

/* CONTENT: Cost (Holographic Badge - VISUAL OVERLAY) */
.cmd-btn .build-cost {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-family: var(--hud-font-digital);
    font-size: 9px;
    color: var(--hud-col-warn);
    z-index: 2;
    background: rgba(40, 30, 0, 0.8);
    padding: 2px 6px;
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(255, 170, 0, 0.1);
}

/* 2. DIMENSION: ALPHA INVERSION (Hover State) */
.cmd-btn:hover:not(.disabled) {
    /* The "Alpha Inversion": Background fades, Light takes over */
    /* Improved Visibility: distinct semi-transparent fill */
    background: linear-gradient(90deg, rgba(0, 20, 30, 0.6), rgba(0, 40, 60, 0.6));

    box-shadow:
        inset 0 0 0 1px var(--hud-col-neu),
        /* Hard Light Edge */
        /* Hard Light Edge */
        inset 0 0 30px rgba(0, 255, 255, 0.3),
        /* Plasma Fill Increase */
        0 0 50px rgba(0, 255, 255, 0.5);
    /* High Voltage Outer Bloom (Soft & Large) */

    color: #fff;
    text-shadow: 0 0 10px var(--hud-col-neu);
    /* letter-spacing: 2px; REMOVED FOR STABILIZATION (Round 2) */
    /* padding-left: 14px; REMOVED FOR STABILIZATION */

    /* Breathing Effect */
    animation: hud-hover-pulse 2s ease-in-out infinite;
    transform: none !important;
}


/* Chromatic Jitter on Hover Text */
.cmd-btn:hover:not(.disabled) .btn-label {
    animation: hud-chromatic-jitter 0.4s infinite;
    /* Digital Instability */
}

/* 3. DIMENSION: SCANNER SWEEP (::after) */
.cmd-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    /* Start invisible */
    height: 2px;
    background: var(--hud-col-neu);
    box-shadow: 0 0 10px var(--hud-col-neu);
    opacity: 0;
    z-index: 10;
    pointer-events: none;
}

.cmd-btn:hover:not(.disabled)::after {
    /* Scan and Lock (Slower: 2s) */
    animation: hud-scanner-sweep-enter 2s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

/* 4. DIMENSION: HAPTIC DISCHARGE & HOVER SHINE */
.cmd-btn::before {
    /* The "Hyper-Flash" Shine Element */
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    /* Start Off-Screen Right */
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    opacity: 0;
    pointer-events: none;
    z-index: 15;
}

.cmd-btn:hover:not(.disabled)::before {
    /* Hyper-Flash Sweep: Right to Left */
    animation: hud-shine-sweep 0.4s ease-out;
}

/* Click Trigger (Requires override if we want Shockwave too) */
.cmd-btn:active:not(.disabled)::before {
    /* Prioritize Shockwave on Click via animation override */
    border-radius: 50%;
    border: 1px solid #fff;
    background: transparent;
    transform: translate(-50%, -50%) scale(0);
    top: 50%;
    left: 50%;
    width: 100%;

    animation: hud-shockwave-expand 0.4s ease-out !important;
}

.cmd-btn:active:not(.disabled) {
    /* Mechanical Crunch */
    transform: scale(0.96) translateY(1px);

    /* Flashbang - Retinal Burn */
    animation: hud-flash-impact 0.1s ease-out !important;
    background: #fff !important;
    color: #000 !important;
}


/* 5. STATE: ACTIVE TOGGLE (System Locked On) */
.cmd-btn.active {
    border: 1px solid var(--hud-col-pos);
    color: var(--hud-col-pos);
    box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.2);
    background: rgba(0, 20, 0, 0.8);
}

.cmd-btn.active::after {
    width: 100%;
    opacity: 1;
    background: var(--hud-col-pos);
    box-shadow: 0 0 10px var(--hud-col-pos);
}

/* =========================================
   --- COLOR LOGIC & MODIFIERS ---
   ========================================= */

/* IMPORTANT / WARNING STATE (Yellow Protocol) */
.cmd-btn.important,
.cmd-btn.warn {
    color: var(--hud-col-warn);
    box-shadow:
        inset 0 0 0 1px rgba(255, 170, 0, 0.25),
        inset 0 0 20px rgba(40, 30, 0, 0.9),
        0 0 15px rgba(255, 170, 0, 0.2);

    /* 10s Idle Scan Loop */
    background-image: linear-gradient(to bottom,
            transparent 0%,
            rgba(255, 170, 0, 0) 40%,
            rgba(255, 170, 0, 0.2) 50%,
            rgba(255, 170, 0, 0) 60%,
            transparent 100%);
    background-size: 100% 200%;
    /* Double height for scan sweep */
    animation: hud-important-scan-loop 10s linear infinite;
}

.cmd-btn.important .build-cost {
    border-color: var(--hud-col-warn);
    color: var(--hud-col-warn);
    box-shadow: 0 0 8px var(--hud-col-warn);
}

/* IMPORTANT HOVER (High Voltage Yellow) */
.cmd-btn.important:hover:not(.disabled),
.cmd-btn.warn:hover:not(.disabled) {
    /* Distinct Yellow/Black Glass Fill */
    background: linear-gradient(90deg, rgba(40, 30, 0, 0.6), rgba(60, 40, 0, 0.6));

    box-shadow:
        inset 0 0 0 1px var(--hud-col-warn),
        inset 0 0 30px rgba(255, 170, 0, 0.3),
        0 0 30px rgba(255, 170, 0, 0.6);
    /* Yellow Bloom */

    text-shadow: 0 0 10px var(--hud-col-warn);
    color: #fff;
}

.cmd-btn.important:hover:not(.disabled) .btn-label {
    /* Yellow Jitter */
    animation: hud-chromatic-jitter-warn 0.4s infinite;
}

/* IMPORTANT SCANNER */
.cmd-btn.important::after {
    background: var(--hud-col-warn);
    box-shadow: 0 0 10px var(--hud-col-warn);
}

/* IMPORTANT ACTIVE/CLICK (Yellow Shockwave) */
.cmd-btn.important:active:not(.disabled),
.cmd-btn.warn:active:not(.disabled) {
    background: #fff !important;
    color: #000 !important;
    animation: hud-flash-impact 0.1s ease-out !important;
}

.cmd-btn.important:active:not(.disabled)::before {
    border-color: var(--hud-col-warn);
    box-shadow: 0 0 20px var(--hud-col-warn);
}

/* KEYFRAMES: Yellow Jitter Variation */
@keyframes hud-chromatic-jitter-warn {
    0% {
        text-shadow: 2px 0 rgba(255, 255, 0, 0.5), -2px 0 rgba(255, 0, 0, 0.5);
    }

    50% {
        text-shadow: -1px 0 rgba(255, 255, 0, 0.5), 1px 0 rgba(255, 0, 0, 0.5);
    }

    100% {
        text-shadow: 0 0 var(--hud-col-warn);
    }
}



.hud-right-queue {
    position: absolute;
    top: 10px;
    right: 10px;
    pointer-events: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    gap: 5px;
    z-index: var(--z-ui-base);
}

.bq-item {
    width: 250px;
    height: 36px;
    background: rgba(0, 10, 15, 0.8);
    border: 1px solid var(--neon-cyan);
    display: flex;
    align-items: center;
    padding-right: 10px;
    position: relative;
    font-size: 12px;
}

.bq-icon {
    width: 36px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 10px;
}

.bq-timer {
    margin-left: auto;
    color: var(--neon-green);
    font-family: monospace;
}

.bq-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--neon-green);
    width: 0%;
    transition: width 1s linear;
}

.x-scanner {
    position: absolute;
    width: 300px;
    background: rgba(0, 10, 15, 0.95);
    border: 1px solid var(--neon-cyan);
    padding: 15px;
    pointer-events: none;
    pointer-events: none;
    z-index: var(--z-modal);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    display: none;
}

/* ==========================================================================
   COMMAND BUTTON GROUPS (STRICT SPECIFICITY - NO !IMPORTANT)
   ========================================================================== */

/* Wir nutzen .cmd-grid + button Tag + Klasse für maximale Spezifität ohne !important */

/* 1. SYSTEM GRUPPE (Hilfe, Handbuch) - Blau/Cyan */
#ui-layer-hud .cmd-grid button.cmd-btn.btn-sys {
    border: 1px solid var(--hud-col-neu);
    color: var(--hud-col-neu);
    box-shadow: 0 0 4px rgba(0, 255, 255, 0.1);
}

#ui-layer-hud .cmd-grid button.cmd-btn.btn-sys:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 15px var(--hud-col-neu);
}

/* 2. DEBUG GRUPPE (Dev Tools) - Rot & Gestrichelt */
#ui-layer-hud .cmd-grid button.cmd-btn.btn-debug {
    border: 1px dashed var(--hud-col-neg);
    color: var(--hud-col-neg);
    opacity: 0.8;
}

#ui-layer-hud .cmd-grid button.cmd-btn.btn-debug:hover {
    border-style: solid;
    opacity: 1.0;
    background: rgba(255, 0, 0, 0.1);
    box-shadow: 0 0 10px var(--hud-col-neg);
}

/* 3. ECONOMY GRUPPE (Sammler) - Gelb/Gold */
#ui-layer-hud .cmd-grid button.cmd-btn.btn-eco {
    border-color: var(--hud-col-warn);
    color: var(--hud-col-warn);
}

#ui-layer-hud .cmd-grid button.cmd-btn.btn-eco:hover {
    background: rgba(255, 255, 0, 0.1);
    box-shadow: 0 0 10px var(--hud-col-warn);
}

/* 4. DISABLED STATE (Forschung) - Ausgegraut */
/* Neutralisiert Hover-Effekte durch pointer-events: none */
#ui-layer-hud .cmd-grid button.cmd-btn.disabled {
    filter: grayscale(100%);
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #444;
    color: #666;
    pointer-events: none;
    box-shadow: none;
}

/* STATE B: Mega Cinematic View (Fixed Center) */
/* STATE B: Mega Cinematic View (Fixed Center) */
.x-scanner.mega-view {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10000;

    /* COMPACT HERO RATIO */
    width: 50vw;
    /* Reduced from 70vw */
    max-width: 600px;
    /* Cap for ultrawide screens */
    height: auto;
    max-height: 85vh;

    display: flex;
    /* Vertical Stack */
    flex-direction: column;
    padding: 0;
    /* Reset padding for edge-to-edge image */

    background: rgba(5, 10, 15, 0.95);
    /* Deep Space Dark */
    border: 1px solid var(--hud-col-neu);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 255, 255, 0.15);
    padding: 0;
    /* Flush edges */
    overflow: hidden;
}

/* RESPONSIVE: Laptops/Tablets */
@media (max-width: 1200px) {
    .x-scanner.mega-view {
        width: 85vw;
    }
}

/* 1. HERO IMAGE AREA */
/* 1. HERO IMAGE AREA */
.x-scanner.mega-view .tooltip-hero-img {
    width: 100%;
    height: 350px;
    /* Fixed cinematic height */
    object-fit: contain;
    /* Show whole ship */
    background: radial-gradient(circle at center, rgba(30, 30, 40, 1) 0%, #000 100%);
    /* Starfield backdrop */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    display: block;
    image-rendering: pixelated;
}

/* 2. OVERLAY HEADER (The "Transparent Box" on Image) */
.x-scanner.mega-view .scan-header {
    position: relative;
    margin-top: -80px;
    /* Pull up into the image area */
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 20%, transparent 100%);
    border-bottom: none;

    display: flex;
    flex-direction: column-reverse;
    /* Type above Title */
    gap: 5px;
}

/* 3. BIG TYPOGRAPHY */
/* 3. BIG TYPOGRAPHY */
.x-scanner.mega-view #scan-title {
    font-size: 32px;
    color: #fff;
    text-shadow: 0 0 15px var(--hud-col-neu);
    letter-spacing: 2px;
    line-height: 1;
}

.x-scanner.mega-view .scan-type {
    font-size: 12px;
    color: var(--hud-col-warn);
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* 4. CONTENT BODY */
.x-scanner.mega-view .scan-data {
    padding: 0;
}

.x-scanner.mega-view #scan-body {
    padding: 20px 25px 30px 25px;
    /* Comfortable reading space */
    font-size: 16px;
    line-height: 1.6;
    color: #ccc;
    background: transparent;
}

.tooltip-hero-img {
    width: 100%;
    /* Force fit into parent container */
    height: auto;
    /* Maintain aspect ratio */
    max-width: 400px;
    /* Cap width for readability */
    border: 1px solid var(--hud-col-neu);
    background: rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    display: block;
    image-rendering: pixelated;
    /* Crisp retro look for sprites */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.scan-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
    padding-bottom: 4px;
    display: flex;
    justify-content: space-between;
}

.scan-type {
    color: var(--hud-col-warn);
    font-size: 10px;
}

/* --- TOOLTIP TYPOGRAPHY FIX --- */
#scan-title {
    color: var(--hud-col-txt-main);
    /* Zentral gesteuertes Weiß/Grau */
    /* Alternativ: var(--hud-col-neu) für Cyan, falls gewünscht */

    font-family: var(--hud-font-display);
    /* Einheitliche Schriftart */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Optional: Auch den Typ (rechts daneben) sicherstellen */
#scan-type {
    color: var(--hud-col-warn);
    /* Nutzung der zentralen Warn-Farbe (Gelb/Amber) */
    font-family: var(--hud-font-digital);
}

.debug-toggle-btn {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid red;
    color: red;
    font-size: 10px;
    padding: 2px 8px;
    cursor: pointer;
    font-family: var(--font-main);
    text-transform: uppercase;
    transition: all 0.2s;
    transition: all 0.2s;
    z-index: var(--z-tooltip);
}

.debug-toggle-btn:hover {
    background: rgba(255, 0, 0, 0.5);
    color: white;
}

/* --- CRITICAL INTERACTION FIX --- */

/* 1. Mache ALLE Buttons griffig, auch wenn sie disabled sind */
.smart-btn,
.cmd-btn,
.cmd-btn.disabled,
button:disabled {
    pointer-events: auto !important;
    /* WICHTIG: Klick muss gefangen werden */
    cursor: pointer;
}

/* 2. Deaktivierte Buttons zeigen nur "Verboten"-Mauszeiger */
.cmd-btn.disabled,
button:disabled {
    cursor: not-allowed !important;
    opacity: 0.5;
}

/* 3. Sicherheitsnetz für den Container */
#ui-root-v2 {
    pointer-events: none !important;
}

.big-start-btn {
    font-size: 24px;
    padding: 25px 0;
    width: 300px;
    height: auto;
    border: 2px solid var(--neon-cyan);
    animation: none !important;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 10px var(--neon-cyan);
    }

    50% {
        box-shadow: 0 0 25px var(--neon-cyan), 0 0 10px inset var(--neon-cyan);
    }

    100% {
        box-shadow: 0 0 10px var(--neon-cyan);
    }
}

/* --- THE TRINITY: UNIFIED DESIGN SYSTEM V2 --- */

/* A. DATA CARDS */
.hud-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(2px);
    transition: all 0.2s ease;
}

.hud-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.hud-card-label {
    font-size: 10px;
    color: var(--hud-col-txt-sec);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.hud-card-value {
    font-size: 18px;
    font-family: var(--hud-font-digital) !important;
    /* FIX: Force Digital Font */
    font-weight: bold;
    color: var(--hud-col-txt-main);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.hud-card-value.pos {
    color: var(--hud-col-pos);
}

.hud-card-value.neg {
    color: var(--hud-col-neg);
}

.hud-card-value.warn {
    color: var(--hud-col-warn);
}

/* B. UNIFIED LISTS */
.hud-list-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.hud-list-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: var(--hud-col-txt-main);
    transition: all 0.2s;
    position: relative;
    min-height: 28px;
}

.hud-list-item:hover {
    padding-left: 14px;
    /* Slight hop */
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    border-left-color: var(--hud-col-neu);
}

.hud-list-item.active {
    border-left-color: var(--hud-col-warn);
    background: linear-gradient(90deg, rgba(255, 255, 0, 0.1) 0%, transparent 100%);
}

.hud-list-icon {
    margin-right: 10px;
    font-size: 14px;
    width: 20px;
    text-align: center;
    color: var(--hud-col-txt-sec);
}

.hud-list-content {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hud-list-sub {
    font-size: 10px;
    color: var(--hud-col-txt-sec);
}

/* C. CSS CHARTS (DONUT) */
.hud-donut {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* Conic gradient trick: --pct must be set in JS (e.g. 75%) */
    background: conic-gradient(var(--hud-col-pos) 0% var(--pct),
            rgba(255, 255, 255, 0.1) var(--pct) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Inner circle to make it a donut */
.hud-donut::after {
    content: '';
    position: absolute;
    width: 76%;
    height: 76%;
    background: var(--glass-bg);
    /* Matches panel bg */
    border-radius: 50%;
}

canvas,
.hud-card {
    pointer-events: auto;
}

.hud-donut-value {
    position: relative;
    z-index: 2;
    font-size: 12px;
    font-weight: bold;
    color: var(--hud-col-txt-main);
}

/* D. MARQUEE TICKER - ROBUST FIX */
/* D. MARQUEE TICKER - SEAMLESS FIX */
.hud-marquee-container {
    width: 100%;
    height: 24px;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    /* Removed display:flex since text is absolute */
}

.hud-marquee-text {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;

    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: hud-scroll-seamless 15s linear infinite;
    font-family: var(--hud-font-digital);
    font-size: 14px;
}

.hud-ticker-item {
    padding-right: 50px;
    /* Gap between seamless loops */
}

@keyframes hud-scroll-seamless {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* E. TABLE UTILS */
.fin-table-val {
    color: #ffffff !important;
    font-weight: bold;
    font-family: var(--hud-font-digital);
}

.fin-header-big {
    font-size: 42px !important;
}

.fin-glow-gold {
    color: var(--hud-col-warn) !important;
    text-shadow: 0 0 10px var(--hud-col-warn), 0 0 20px var(--hud-col-warn), 0 0 30px orange;
    animation: pulse-gold 2s infinite alternate;
}

@keyframes pulse-gold {
    from {
        opacity: 0.8;
    }

    to {
        opacity: 1.0;
    }
}

/* CRITICAL CREDIT STATE */
.fin-glow-red {
    color: var(--hud-col-neg) !important;
    text-shadow: 0 0 10px var(--hud-col-neg), 0 0 20px var(--hud-col-neg), 0 0 30px red;
    animation: pulse-red 1s infinite alternate;
    /* Faster pulse for urgency */
}

@keyframes pulse-red {
    from {
        opacity: 0.7;
    }

    to {
        opacity: 1.0;
    }
}

/* F. BUILD QUEUE SPLIT LAYOUT & FX */

.bq-split-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.bq-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* OVERRIDE: Enforce strict height for professional look */
.hud-list-item {
    height: 45px !important;
    min-height: 45px !important;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

/* Persistent Last Finished Slot */
.bq-last-finished-slot {
    height: 45px;
    min-height: 45px;
    background: rgba(0, 20, 30, 0.6);
    border: 1px solid var(--hud-col-neu);
    display: flex;
    align-items: center;
    padding: 0 10px;
    margin-bottom: 5px;
    /* Spacing above list */
    font-family: var(--hud-font-digital);
    font-size: 14px;
    font-weight: bold;
    color: var(--hud-col-txt-main);
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.2);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    /* Pulsing Glow */
    animation: pulse-glow-slot 3s infinite alternate;
}

@keyframes pulse-glow-slot {
    from {
        box-shadow: 0 0 2px rgba(0, 255, 255, 0.1);
        border-color: rgba(0, 255, 255, 0.3);
    }

    to {
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
        border-color: rgba(0, 255, 255, 0.8);
    }
}

.bq-completion-flash {
    animation: flash-white 0.8s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes flash-white {
    0% {
        background: #fff;
        color: #000;
        filter: brightness(5);
        border-color: #fff;
    }

    100% {
        background: rgba(0, 20, 30, 0.6);
        color: var(--hud-col-txt-main);
        filter: brightness(1);
        border-color: var(--hud-col-neu);
    }
}

.bq-horizontal-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bq-grid-item {
    width: 24px;
    height: 24px;
    background: rgba(0, 20, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-family: var(--hud-font-digital);
    font-weight: bold;
    color: var(--hud-col-txt-sec);
    position: relative;
    transition: all 0.2s;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    cursor: help;
}

.bq-grid-item:hover {
    border-color: var(--hud-col-neu);
    color: var(--hud-col-neu);
    background: rgba(0, 40, 60, 0.8);
    transform: scale(1.1);
    z-index: 10;
}

/* GOD MODE: Completion Explosion FX */
@keyframes hud-build-complete {
    0% {
        transform: scale(1);
        filter: brightness(10) blur(2px);
        /* White Flash */
        background: #fff;
        opacity: 1;
    }

    10% {
        filter: brightness(5) blur(0px);
        background: var(--hud-col-pos);
        /* Fade to Unit Color */
    }

    100% {
        transform: scale(1.1);
        opacity: 0;
        filter: brightness(1);
    }
}

@keyframes hud-shockwave-ring {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
        border-width: 4px;
    }

    100% {
        width: 200%;
        height: 300%;
        opacity: 0;
        border-width: 0px;
    }
}

.bq-item-finished {
    animation: hud-build-complete 0.8s cubic-bezier(0.1, 0.9, 0.2, 1) forwards !important;
    pointer-events: none;
    z-index: 100;
    position: relative;
    border: 1px solid #fff !important;
    background: #fff;
}

.bq-item-finished::after {
    /* Shockwave */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #fff;
    border-radius: 5px;
    /* Box shockwave */
    box-shadow: 0 0 20px #fff;
    width: 100%;
    height: 100%;
    animation: hud-shockwave-ring 0.6s ease-out forwards;
    pointer-events: none;
}

/* GOD MODE: Command Button Particles & Shine */

/* Particle Background Generator */
.cmd-btn {
    /* ... existing structure ... */
    /* Add multiple radial gradients for stars */
    background-image:
        radial-gradient(1px 1px at 10% 10%, rgba(255, 255, 255, 0.4) 1px, transparent 0),
        radial-gradient(1px 1px at 20% 80%, rgba(255, 255, 255, 0.3) 1px, transparent 0),
        radial-gradient(2px 2px at 40% 40%, rgba(255, 255, 255, 0.2) 1px, transparent 0),
        radial-gradient(1px 1px at 60% 90%, rgba(255, 255, 255, 0.4) 1px, transparent 0),
        radial-gradient(1.5px 1.5px at 80% 20%, rgba(255, 255, 255, 0.3) 1px, transparent 0),
        linear-gradient(135deg, rgba(10, 40, 50, 0.75), rgba(5, 20, 30, 0.85));
    /* Base tint */
    background-size: 200% 200%, 200% 200%, 200% 200%, 200% 200%, 200% 200%, 100% 100%;
    background-position: 0% 0%;

    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-position 10s linear;
    /* Slow drift */

    /* Stronger Glow */
    box-shadow:
        inset 0 0 0 1px rgba(0, 255, 255, 0.2),
        0 0 10px rgba(0, 20, 30, 0.8);
}

.cmd-btn:hover:not(.disabled) {
    /* Turbo Drift */
    background-position: 100% 100%;
    transition: all 0.3s, background-position 2s linear;
    /* 5x speed */

    /* Alpha Inversion - Pure Light */
    background-color: rgba(0, 255, 255, 0.1);
    box-shadow:
        inset 0 0 20px rgba(0, 255, 255, 0.5),
        0 0 40px rgba(0, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
    text-shadow: 0 0 8px #fff;
}

/* Hyper Shine Sweep */
@keyframes hud-hyper-shine {
    0% {
        left: 100%;
        opacity: 0;
    }

    1% {
        opacity: 1;
    }

    100% {
        left: -50%;
        opacity: 0;
    }
}

.cmd-btn:hover:not(.disabled)::before {
    /* Override existing shine with Hyper Shine */
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    transform: skewX(-25deg);
    animation: hud-hyper-shine 0.4s ease-out forwards;
    opacity: 0.5;
}

/* --- BUILD QUEUE PANEL REFACTOR STYLES --- */

#bq-container-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.bq-last-finished-slot {
    height: 45px;
    /* STRICT 45px Requirement */
    background: rgba(0, 10, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    padding: 0 10px;
    margin-bottom: 10px;
    font-family: var(--hud-font-digital);
    font-size: 12px;
    flex-shrink: 0;
}

.bq-completion-flash {
    animation: hud-build-complete 1s ease-out;
}

#bq-content-layer {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    flex-grow: 1;
    overflow-y: auto;
    /* Allow scrolling if list gets too long */
}

.bq-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.bq-horizontal-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ensure list items strictly follow 45px height rule */
.hud-list-item {
    height: 45px;
    background: rgba(0, 10, 20, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hud-list-item.active {
    border-color: var(--hud-col-pos);
    background: rgba(0, 20, 10, 0.8);
}

/* --- BQ ITEM INTERNALS (Anti-Inline-Style) --- */

.bq-slot-label {
    color: var(--hud-col-txt-sec);
    margin-right: 10px;
}

.bq-slot-value {
    color: var(--hud-col-neu);
}

.bq-empty-state {
    text-align: center;
    color: var(--hud-col-txt-sec);
    font-size: 10px;
    padding: 5px;
}

.bq-item-content {
    padding-left: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;
    z-index: 2;
    /* Ensure text is above progress bar */
}

.bq-item-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.bq-item-name {
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

.bq-item-timer {
    font-family: var(--hud-font-digital);
    color: var(--hud-col-neu);
}

.bq-item-stats {
    font-size: 10px;
    color: var(--hud-col-txt-sec);
    display: flex;
    gap: 4px;
}

.bq-stat-hp {
    color: var(--hud-col-pos);
}

.bq-stat-sh {
    color: #00aaff;
}

.bq-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    /* Increased height for better visibility */
    background: var(--hud-col-pos);
    opacity: 1;
    /* Strict Opacity */
    box-shadow: 0 0 10px var(--hud-col-pos);
    transition: width 0.2s linear;
    z-index: 10;
    /* Strict Z-Layer > Content */
    pointer-events: none;
}

/* --- BUILD QUEUE FLASH ANIMATION --- */
.flash-success {
    animation: hud-flash-success 1s ease-out;
}

@keyframes hud-flash-success {
    0% {
        background-color: rgba(0, 255, 0, 0.5);
        box-shadow: 0 0 20px #00ff00;
        border-color: #00ff00;
    }

    100% {
        background-color: transparent;
        box-shadow: none;
        border-color: var(--glass-border);
    }
}

/* TOTAL TIME FOOTER */
.bq-footer {
    display: flex;
    flex-direction: column;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.bq-footer-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #aaa;
    margin-bottom: 4px;
}

.bq-footer-val {
    color: #fff;
    font-family: monospace;
}

.bq-total-progress {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.bq-total-bar {
    height: 100%;
    background: #00ff00;
    width: 0%;
    transition: width 0.2s;
}

/* --- EPHEMERAL STATUS ANIMATION --- */
@keyframes slideUpFlash {
    0% {
        /* Start physically where the list item was */
        transform: translateY(40px);
        /* START VISIBLE immediately to prevent the "disappear" gap */
        opacity: 1;
        /* Start Green (Active Color) for perfect continuity */
        color: #00ff00;
        text-shadow: 0 0 10px #00ff00;
    }

    20% {
        /* Snap to Status Slot */
        transform: translateY(0);
        opacity: 1;
        /* Morph to Gold (Finished Color) */
        color: #FFD700;
        text-shadow: 0 0 20px #FFD700;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
        color: #FFD700;
        text-shadow: none;
    }
}

.bq-slide-up-flash {
    animation: slideUpFlash 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* --- MEGA VIEW PATCH (Bottom of hud.css) --- */

/* 1. Force centering of the main container content */
.x-scanner.mega-view {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    /* Horizontal Center */
    justify-content: center;
    /* Vertical Center (optional) */
    text-align: center;
}

/* 2. Specific Image Override: Remove inherited borders/bg */
.x-scanner.mega-view .tooltip-hero-img {
    /* Reset inherited "Box" styles */
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;

    /* Center the image block itself */
    margin: 0 auto 10px auto !important;

    /* Ensure it fits but doesn't stretch ugly */
    width: auto;
    max-width: 80%;
    /* Leave breathing room */
    height: auto;
    max-height: 50vh;

    /* Keep retro look */
    image-rendering: pixelated;
}

/* --- MEGA VIEW INTERACTION V2 (Text Button) --- */

.x-scanner.mega-view {
    pointer-events: auto !important;
    padding-top: 50px !important;
    /* More space for the top button bar */
}

/* Container for the Close Button - Top Right */
.x-scanner.mega-view .close-btn-anchor {
    position: absolute;
    top: 10px;
    right: 10px;
    width: auto;
    /* Allow width to grow with text */
    height: 32px;
    z-index: 10005;
}

/* Button Styling - Wide Text Version */
.x-scanner.mega-view .close-btn-anchor .cmd-btn {
    width: auto !important;
    /* Fit Text */
    min-width: 120px;
    height: 100% !important;
    padding: 0 15px !important;

    display: flex;
    align-items: center;
    justify-content: center;

    /* Red/Warning Theme for "Close" */
    border: 1px solid var(--hud-col-neg) !important;
    background: rgba(40, 0, 0, 0.9) !important;
    color: var(--hud-col-neg) !important;

    font-family: var(--hud-font-main) !important;
    font-size: 12px !important;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;

    /* Reset Sci-Fi Clip Path to simple rectangle for readability */
    clip-path: none !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.x-scanner.mega-view .close-btn-anchor .cmd-btn:hover {
    background: var(--hud-col-neg) !important;
    color: #000 !important;
    box-shadow: 0 0 15px var(--hud-col-neg);
}

/* =========================================
   --- ROUND 2: FORCED VERTICALITY FIX ---
   ========================================= */
#cmd-root {
    display: flex !important;
    flex-direction: column !important;
    /* Zwingt Vertikalität */
    width: 100% !important;
    align-items: stretch !important;
    gap: 4px !important;
}

#cmd-root .cmd-btn {
    width: 100% !important;
    display: flex !important;
    flex-shrink: 0 !important;
    margin: 0 0 4px 0 !important;
}

/* =========================================
   --- UNIT DATABASE WINDOW ---
   ========================================= */

/* Dark overlay backdrop */
.db-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto !important;
    animation: db-fadein 0.2s ease-out;
}

@keyframes db-fadein {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Override panel positioning for centered modal */
#win-unit-database {
    position: relative !important;
    max-height: 85vh;
    overflow-y: auto;
    animation: db-slidein 0.25s ease-out;
    max-width: 90vw;
}

@keyframes db-slidein {
    0% {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Body: scrollable content */
.db-body {
    overflow-y: auto !important;
    gap: 12px;
    padding: 12px !important;
}

/* Two-column layout */
.db-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
    min-height: 300px;
}

/* Left column: Text & Stats */
.db-col-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    min-width: 0;
}

/* Right column: Large image */
.db-col-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Side-view image container */
.db-img-wrap {
    width: 100%;
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

/* Subtle grid pattern behind image */
.db-img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.db-side-img {
    max-height: 500px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.4));
    position: relative;
    z-index: 1;
}

/* Unit name label below image */
.db-unit-name {
    font-family: var(--hud-font-main);
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--hud-col-neu);
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
    text-align: center;
    padding: 6px 0;
}

/* Section container */
.db-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Section title (═══ HEADER ═══) */
.db-section-title {
    font-family: var(--hud-font-main);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--hud-col-neu);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
    padding: 4px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    margin-bottom: 4px;
}

/* Stats grid */
.db-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Single stat row */
.db-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 8px;
    background: rgba(0, 20, 10, 0.4);
    border-radius: 3px;
    border-left: 2px solid rgba(0, 255, 255, 0.15);
}

.db-stat-label {
    font-family: var(--hud-font-main);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-shrink: 0;
    min-width: 110px;
}

.db-stat-value {
    font-family: var(--hud-font-main);
    font-size: 12px;
    color: #fff;
    font-weight: bold;
    text-align: right;
}

/* Bar rows */
.db-stat-bar-row {
    gap: 8px;
}

.db-bar-wrap {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.db-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
    box-shadow: 0 0 6px currentColor;
}

/* Weapon card */
.db-weapon-card {
    background: rgba(0, 10, 20, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 6px;
    transition: border-color 0.2s;
}

.db-weapon-card:hover {
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.15);
}

.db-weapon-name {
    font-family: var(--hud-font-main);
    font-size: 12px;
    color: var(--hud-col-neu);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.db-weapon-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
}

.db-weapon-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.db-ws-label {
    font-family: var(--hud-font-main);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.db-ws-value {
    font-family: var(--hud-font-main);
    font-size: 11px;
    font-weight: bold;
}

/* No weapons indicator */
.db-no-weapons {
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--hud-font-main);
    font-size: 11px;
    text-align: center;
    padding: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Description text */
.db-description {
    font-family: var(--hud-font-main);
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px;
    background: rgba(0, 10, 20, 0.4);
    border-left: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 0 4px 4px 0;
    font-style: italic;
}

/* Close button wrapper */
.db-close-wrap {
    margin-top: 8px;
    display: flex;
    justify-content: center;
}

.db-close-btn {
    width: 100% !important;
    justify-content: center !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   ORBITAL WAR – INTRO MANAGER
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

.intro-slide {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 90vw;
    text-align: center;
    padding: 2rem;
    cursor: pointer;
    user-select: none;
}

.intro-slide-img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border: 1px solid rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.08);
    margin-bottom: 2rem;
    display: block;
}

.intro-slide-content {
    background: rgba(0, 5, 15, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.12);
    padding: 2rem;
    backdrop-filter: blur(8px);
}

.intro-slide-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.intro-slide-text {
    color: rgba(180, 220, 255, 0.85);
    font-size: 1rem;
    line-height: 1.8;
    font-family: 'Share Tech Mono', monospace;
}

.intro-progress-bar {
    width: 80vw;
    max-width: 600px;
    height: 2px;
    background: rgba(0, 255, 255, 0.1);
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.intro-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #0088ff);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    transition: width 0.5s ease;
}

.intro-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80vw;
    max-width: 600px;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.intro-counter {
    color: rgba(0, 255, 255, 0.4);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    font-family: 'Share Tech Mono', monospace;
}

.intro-skip-btn {
    width: auto !important;
    min-width: 180px;
    padding: 0 1.5rem;
    opacity: 0.7;
}

.intro-skip-btn:hover { opacity: 1; }


/* ═══════════════════════════════════════════════════════════════════════════
   ORBITAL WAR – HAUPTMENÜ (MainMenuManager)
   ═══════════════════════════════════════════════════════════════════════════ */

.main-menu-container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 700px;
    width: 90vw;
}

.main-menu-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.15em;
    text-shadow:
        0 0 30px rgba(0, 255, 255, 0.9),
        0 0 70px rgba(0, 255, 255, 0.5),
        0 0 140px rgba(0, 255, 255, 0.2);
    animation: orb-title-pulse 3s ease-in-out infinite;
}

@keyframes orb-title-pulse {
    0%,100% { text-shadow: 0 0 30px rgba(0,255,255,0.9), 0 0 70px rgba(0,255,255,0.5); }
    50%      { text-shadow: 0 0 50px rgba(0,255,255,1.0), 0 0 100px rgba(0,255,255,0.7), 0 0 200px rgba(0,150,255,0.3); }
}

.main-menu-sub {
    color: rgba(0, 255, 255, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    font-family: 'Share Tech Mono', monospace;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.main-menu-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,255,0.3), transparent);
    margin: 1.5rem 0;
}

.main-menu-divider-sm {
    width: 60%;
    margin: 1rem auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,255,0.15), transparent);
}

.main-menu-primary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.main-menu-secondary-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

/* Menu Button Override – flex column mit Icon */
.menu-btn {
    height: auto !important;
    min-height: 80px;
    padding: 1rem !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.3rem !important;
    text-align: center;
}

.menu-btn-primary {
    border: 1px solid rgba(0, 255, 255, 0.4) !important;
    box-shadow:
        inset 0 0 0 1px rgba(0,255,255,0.2),
        inset 0 0 30px rgba(0,255,255,0.08),
        0 0 30px rgba(0,255,255,0.15) !important;
    min-height: 110px !important;
}

.menu-btn-secondary {
    border: 1px solid rgba(255, 100, 0, 0.3) !important;
    color: #ffaa00 !important;
    min-height: 110px !important;
}

.menu-btn-info {
    height: 50px !important;
    min-height: 50px !important;
    font-size: 0.75rem;
}

.menu-btn-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.menu-btn-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.menu-btn-sub {
    font-size: 0.65rem;
    opacity: 0.5;
    letter-spacing: 0.05em;
    text-transform: none;
}

.main-menu-user {
    margin-top: 2rem;
    color: rgba(0, 255, 255, 0.3);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    font-family: 'Share Tech Mono', monospace;
}


/* ═══════════════════════════════════════════════════════════════════════════
   ORBITAL WAR – EINHEITENDATENBANK (UnitDatabase)
   ═══════════════════════════════════════════════════════════════════════════ */

.unitdb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.unitdb-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #00ffff;
    letter-spacing: 0.2em;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.unitdb-back-btn {
    width: auto !important;
    min-width: 150px;
    padding: 0 1rem;
}

.unitdb-tabs {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 1.5rem;
}

.unitdb-tab {
    width: auto !important;
    min-width: 0;
    flex: 1;
    height: 40px !important;
    font-size: 0.8rem;
    opacity: 0.6;
}

.unitdb-tab-active {
    opacity: 1 !important;
    border-color: rgba(0, 255, 255, 0.6) !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2) !important;
}

.unitdb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.unitdb-card {
    background: rgba(0, 10, 25, 0.85);
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.unitdb-card:hover {
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.08);
}

.unitdb-card-header {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid;
}

.unitdb-card-img-wrap {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.unitdb-card-img {
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
    image-rendering: pixelated;
}

.unitdb-no-img {
    font-size: 1.5rem;
    opacity: 0.3;
    text-align: center;
}

.unitdb-card-meta { flex: 1; min-width: 0; }

.unitdb-card-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.unitdb-card-key {
    font-size: 0.65rem;
    color: rgba(0, 255, 255, 0.3);
    letter-spacing: 0.1em;
}

.unitdb-card-cost {
    font-size: 0.75rem;
    color: #ffaa00;
    margin-top: 0.3rem;
}

.unitdb-card-body { padding: 0.75rem 1rem; }

.unitdb-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.unitdb-stat {
    display: flex;
    flex-direction: column;
    font-size: 0.65rem;
    color: rgba(0, 255, 255, 0.5);
    letter-spacing: 0.05em;
}

.unitdb-stat strong {
    color: #fff;
    font-size: 0.8rem;
}

.unitdb-weapons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
}

.unitdb-weapon-tag {
    background: rgba(255, 100, 0, 0.1);
    border: 1px solid rgba(255, 100, 0, 0.3);
    color: #ffaa00;
    font-size: 0.6rem;
    padding: 2px 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.unitdb-desc {
    font-size: 0.75rem;
    line-height: 1.6;
    color: rgba(180, 220, 255, 0.6);
    font-family: 'Share Tech Mono', monospace;
}


/* ═══════════════════════════════════════════════════════════════════════════
   ORBITAL WAR – STORY MANAGER
   ═══════════════════════════════════════════════════════════════════════════ */

.story-header {
    width: 100%;
    max-width: 700px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.story-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: #00ffff;
    letter-spacing: 0.2em;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    flex: 1;
}

.story-sub {
    color: rgba(0, 255, 255, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    display: none; /* zeige nur auf größeren Screens */
}

@media (min-width: 500px) { .story-sub { display: block; } }

.story-back-btn {
    width: auto !important;
    min-width: 140px;
    padding: 0 1rem;
    flex-shrink: 0;
}

.story-mission-list {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.story-mission-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 10, 25, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.story-mission-item:hover {
    border-color: rgba(0, 255, 255, 0.35);
    background: rgba(0, 20, 40, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.08);
    transform: translateX(4px);
}

.story-mission-final {
    border-color: rgba(255, 170, 0, 0.3) !important;
}

.story-mission-final:hover {
    border-color: rgba(255, 170, 0, 0.6) !important;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.1) !important;
}

.story-mission-nr {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: rgba(0, 255, 255, 0.25);
    font-weight: 700;
    min-width: 36px;
}

.story-mission-info { flex: 1; }

.story-mission-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #cceeff;
    letter-spacing: 0.05em;
}

.story-mission-diff {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    margin-top: 0.2rem;
    text-transform: uppercase;
}

.story-mission-badge-final {
    font-size: 0.7rem;
    color: #ffaa00;
    letter-spacing: 0.1em;
}

.story-mission-arrow {
    color: rgba(0, 255, 255, 0.3);
    font-size: 1.2rem;
    transition: transform 0.2s, color 0.2s;
}

.story-mission-item:hover .story-mission-arrow {
    transform: translateX(4px);
    color: rgba(0, 255, 255, 0.7);
}


/* ═══════════════════════════════════════════════════════════════════════════
   ORBITAL WAR – MISSION BRIEFING
   ═══════════════════════════════════════════════════════════════════════════ */

.briefing-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

@media (max-width: 600px) {
    .briefing-layout { grid-template-columns: 1fr; }
}

.briefing-img-col {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 300px;
}

.briefing-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.briefing-no-img {
    color: rgba(0, 255, 255, 0.2);
    font-size: 0.9rem;
    text-align: center;
    letter-spacing: 0.15em;
    font-family: 'Share Tech Mono', monospace;
    padding: 2rem;
}

.briefing-text-col {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(0, 5, 15, 0.9);
}

.briefing-badge {
    font-size: 0.65rem;
    color: rgba(0, 255, 255, 0.4);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-family: 'Share Tech Mono', monospace;
    border-left: 2px solid rgba(0, 255, 255, 0.3);
    padding-left: 0.75rem;
}

.briefing-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #00ffff;
    letter-spacing: 0.1em;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    margin: 0;
}

.briefing-text {
    flex: 1;
    color: rgba(180, 220, 255, 0.8);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    cursor: pointer; /* Klick → sofort anzeigen */
    min-height: 80px;
}

.briefing-btn-row {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.briefing-back-btn {
    width: auto !important;
    min-width: 130px;
    padding: 0 1rem;
    opacity: 0.7;
}

.briefing-start-btn {
    flex: 1;
    height: 56px !important;
    font-size: 1rem !important;
    letter-spacing: 0.15em !important;
}
