﻿/* =========================================
   7. TACTICAL RADAR (Gläsernes Gehäuse)
   ========================================= */
.map-container {
    position: relative;
    /* Gläserner Hintergrund statt massivem Schwarz */
    background: rgba(30, 10, 10, 0.25) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    /* Rahmen passend zum Sonnenuntergang */
    border: 2px solid rgba(255, 80, 0, 0.15);
    border-top: 2px solid rgba(255, 100, 50, 0.3);
    border-radius: 12px;
    padding: 15px 20px 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    max-height: calc(100vh - 160px);
    /* Tiefer Schatten, damit es sich vom Himmel abhebt */
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 0 0 20px rgba(255, 50, 0, 0.05);
}

    .map-container::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
        border-top: 3px solid var(--ui-color);
        border-left: 3px solid var(--ui-color);
        box-shadow: inset 2px 2px 10px -2px var(--ui-glow), -2px -2px 10px -2px var(--ui-glow);
        pointer-events: none;
        z-index: 10;
        border-radius: 4px 0 0 0;
    }

    .map-container::after {
        content: '';
        position: absolute;
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        border-bottom: 3px solid var(--ui-color);
        border-right: 3px solid var(--ui-color);
        box-shadow: inset -2px -2px 10px -2px var(--ui-glow), 2px 2px 10px -2px var(--ui-glow);
        pointer-events: none;
        z-index: 10;
        border-radius: 0 0 4px 0;
    }

.radar-header {
    font-family: monospace;
    color: #fff;
    font-size: 1.4em;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    border: none;
}

.live-dot {
    width: 12px;
    height: 12px;
    background-color: var(--ui-info);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--ui-info), 0 0 20px var(--ui-info);
    animation: pulse-red-live 1.5s infinite;
}

@keyframes pulse-red-live {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }

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

.radar-target-panel {
    background: linear-gradient(90deg, #050505 0%, #111 50%, #050505 100%);
    border: 1px solid #222;
    border-radius: 6px;
    padding: 6px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 10px #000, 0 5px 15px rgba(0,0,0,0.5);
    border-bottom: 2px solid var(--ui-color);
}

    .radar-target-panel button {
        background: linear-gradient(180deg, #222 0%, #111 100%);
        color: var(--ui-color);
        border: 1px solid var(--ui-color);
        padding: 5px 15px;
        font-family: monospace;
        font-weight: bold;
        text-transform: uppercase;
        border-radius: 4px;
        cursor: pointer;
        transition: 0.2s;
    }

        .radar-target-panel button:hover {
            background: var(--ui-color);
            color: #000;
            box-shadow: 0 0 15px var(--ui-color);
        }

        .radar-target-panel button.btn-hq {
            background: var(--ui-color);
            color: #000;
        }

            .radar-target-panel button.btn-hq:hover {
                background: #fff;
                border-color: #fff;
                box-shadow: 0 0 15px #fff;
            }

    .radar-target-panel input, .jump-input {
        background: #000;
        border: 1px solid #444;
        color: var(--ui-info);
        text-align: center;
        font-family: monospace;
        font-size: 1.1em;
        font-weight: bold;
        padding: 5px;
        width: 55px;
        border-radius: 4px;
        box-shadow: inset 2px 2px 5px #000;
    }

        .radar-target-panel input:focus, .jump-input:focus {
            border-color: var(--ui-info);
            box-shadow: 0 0 10px var(--ui-info-dark-glow), inset 2px 2px 5px #000;
            outline: none;
        }

        .jump-input::-webkit-inner-spin-button, .jump-input::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

#strategyMap {
    display: grid;
    gap: 1px;
    /* Vorher: rgba(0, 30, 0, 0.4) -> Jetzt transparent für den Glass-Look */
    background-color: rgba(255, 255, 255, 0.02);
    padding: 1px;
    border: 2px solid var(--ui-color);
    border-radius: 4px;
    cursor: grab;
    overflow: hidden;
    width: 100%;
    max-width: 65vh;
    aspect-ratio: 1 / 1;
    height: auto;
    margin: 0 auto;
    /* Der Glow bleibt, wirkt jetzt aber wie eine Projektion auf Glas */
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.1), inset 0 0 40px rgba(0,0,0,0.4);
    position: relative;
}

    #strategyMap:active {
        cursor: grabbing;
    }

    #strategyMap::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 1px, transparent 1px, transparent 2px);
        pointer-events: none;
        z-index: var(--z-map-overlay);
    }

    /* =========================================
   ANIMIERTER RADAR-SCANNER (ÜBER DER KARTE)
   ========================================= */
    #strategyMap::before {
        content: "";
        position: absolute;
        left: 0;
        will-change: top, opacity;
        transform: translateZ(0);
        width: 100%;
        height: 60%;
        background: linear-gradient(to top, var(--ui-color) 0%, rgba(0, 255, 0, 0.2) 20%, rgba(0, 255, 0, 0) 100%);
        border-bottom: 2px solid #fff;
        box-shadow: 0 5px 15px var(--ui-color), 0 0 5px #fff;
        pointer-events: none;
        z-index: 99;
        mix-blend-mode: screen;
        -webkit-mask-image: linear-gradient(to top, black 0%, black 70%, transparent 100%);
        mask-image: linear-gradient(to top, black 0%, black 70%, transparent 100%);
        animation: cyber-radar-scan 4s linear infinite;
    }

@keyframes cyber-radar-scan {
    0% {
        top: -60%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        top: 120%;
        opacity: 0;
    }
}

.map-tile {
    aspect-ratio: 1;
    background: #2e2323;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--ui-color);
    user-select: none;
    transition: all 0.15s ease;
    position: relative;
    z-index: 1;
}

    /* =========================================
   TARGET-LOCK FADENKREUZ (HOVER)
   ========================================= */
    .map-tile:hover {
        background: rgba(0, 255, 0, 0.15);
        color: #fff;
        z-index: 90 !important;
        cursor: crosshair;
        box-shadow: inset 0 0 20px var(--ui-glow) !important;
    }

        .map-tile:hover::after {
            content: '';
            position: absolute;
            top: -3px;
            left: -3px;
            right: -3px;
            bottom: -3px;
            background: linear-gradient(to right, var(--ui-highlight) 2px, transparent 2px) 0 0, linear-gradient(to bottom, var(--ui-highlight) 2px, transparent 2px) 0 0, linear-gradient(to left, var(--ui-highlight) 2px, transparent 2px) 100% 0, linear-gradient(to bottom, var(--ui-highlight) 2px, transparent 2px) 100% 0, linear-gradient(to right, var(--ui-highlight) 2px, transparent 2px) 0 100%, linear-gradient(to top, var(--ui-highlight) 2px, transparent 2px) 0 100%, linear-gradient(to left, var(--ui-highlight) 2px, transparent 2px) 100% 100%, linear-gradient(to top, var(--ui-highlight) 2px, transparent 2px) 100% 100%;
            background-repeat: no-repeat;
            background-size: 8px 8px;
            pointer-events: none;
            z-index: 100;
            animation: lock-on-anim 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        }

@keyframes lock-on-anim {
    0% {
        transform: scale(1.6);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 4px var(--ui-highlight));
    }
}

/* =========================================
   HARD-LOCK (Ziel per Klick erfasst)
   ========================================= */
/* Wir zwingen den Browser, auch im Hover-Zustand diese Klasse zu priorisieren */
.map-tile.target-locked,
.map-tile.target-locked:hover {
    z-index: 95 !important;
    background: rgba(255, 80, 0, 0.25) !important;
    box-shadow: inset 0 0 20px rgba(255, 80, 0, 0.5) !important;
    color: #fff !important;
    border: none !important;
}

    /* Das rotierende Fadenkreuz schlägt jetzt auch den Standard-Hover */
    .map-tile.target-locked::after,
    .map-tile.target-locked:hover::after {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        background: linear-gradient(to right, #ff5500 2px, transparent 2px) 0 0, linear-gradient(to bottom, #ff5500 2px, transparent 2px) 0 0, linear-gradient(to left, #ff5500 2px, transparent 2px) 100% 0, linear-gradient(to bottom, #ff5500 2px, transparent 2px) 100% 0, linear-gradient(to right, #ff5500 2px, transparent 2px) 0 100%, linear-gradient(to top, #ff5500 2px, transparent 2px) 0 100%, linear-gradient(to left, #ff5500 2px, transparent 2px) 100% 100%, linear-gradient(to top, #ff5500 2px, transparent 2px) 100% 100%;
        background-repeat: no-repeat;
        background-size: 8px 8px;
        pointer-events: none;
        z-index: 100;
        /* Die neue Spin-Animation für den Klick */
        animation: target-hard-lock-spin 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }

@keyframes target-hard-lock-spin {
    0% {
        transform: scale(2) rotate(45deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(255, 85, 0, 1));
    }
}

/* =========================================
   14. KARTEN-MARKIERUNGEN (HQ, AP, MC) - TACTICAL UPGRADE
   ========================================= */
.map-tag-own {
    color: #00ffff !important;
    text-shadow: 0 0 5px #00ffff, 0 0 10px #0088ff;
    letter-spacing: 0.5px;
}

.map-tag-weak {
    color: #00ff00 !important;
    text-shadow: 0 0 5px #00aa00, 0 0 10px #00ff00;
}

.map-tag-strong {
    color: #ff4444 !important;
    text-shadow: 0 0 5px #aa0000, 0 0 10px #ff4444;
}

.map-tag-attackable {
    color: #ffcc00 !important;
    text-shadow: 0 0 5px #aa6600, 0 0 10px #ffcc00;
}

.map-tag-inactive {
    color: #ff8a00 !important;
    text-shadow: 0 0 5px #aa3d00, 0 0 12px #ff8a00;
}

.map-tag-vacation {
    color: #00d9ff !important;
    text-shadow: 0 0 5px #0077aa, 0 0 12px #00d9ff;
}

.own-bg-base {
    background: radial-gradient(circle, rgba(0, 255, 255, 0.15) 0%, rgba(0, 15, 30, 0.85) 80%) !important;
    border: 1px solid rgba(0, 255, 255, 0.5) !important;
    box-shadow: inset 0 0 15px rgba(0, 255, 255, 0.2), 0 0 5px rgba(0, 255, 255, 0.3);
    border-radius: 4px;
}

.enemy-bg-weak {
    background: repeating-linear-gradient(0deg, rgba(0, 255, 0, 0.03), rgba(0, 255, 0, 0.03) 2px, rgba(0, 0, 0, 0.6) 2px, rgba(0, 0, 0, 0.6) 4px) !important;
    border: 1px dashed rgba(0, 255, 0, 0.3) !important;
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.1);
    border-radius: 4px;
}

.enemy-bg-attackable {
    background: radial-gradient(circle, rgba(255, 170, 0, 0.15) 0%, rgba(20, 10, 0, 0.9) 100%) !important;
    border: 1px solid rgba(255, 170, 0, 0.7) !important;
    border-radius: 4px;
    animation: pulse-target 2s infinite alternate ease-in-out;
}

.enemy-bg-inactive {
    background: repeating-linear-gradient(45deg, rgba(255, 138, 0, 0.11), rgba(255, 138, 0, 0.11) 4px, rgba(20, 8, 0, 0.92) 4px, rgba(20, 8, 0, 0.92) 8px) !important;
    border: 1px solid rgba(255, 138, 0, 0.85) !important;
    border-radius: 4px;
    box-shadow: inset 0 0 12px rgba(255, 138, 0, 0.2), 0 0 8px rgba(255, 138, 0, 0.25);
}

.enemy-bg-vacation {
    background: radial-gradient(circle, rgba(0, 217, 255, 0.14) 0%, rgba(0, 12, 22, 0.92) 100%) !important;
    border: 1px dashed rgba(0, 217, 255, 0.75) !important;
    border-radius: 4px;
    box-shadow: inset 0 0 12px rgba(0, 217, 255, 0.18);
}

.enemy-bg-strong {
    background: repeating-linear-gradient(-45deg, rgba(255, 0, 0, 0.08), rgba(255, 0, 0, 0.08) 5px, rgba(20, 0, 0, 0.9) 5px, rgba(20, 0, 0, 0.9) 10px) !important;
    border: 1px solid rgba(255, 50, 50, 0.8) !important;
    border-radius: 4px;
    animation: pulse-danger 1.5s infinite alternate ease-in-out;
}

.map-tile.warlord-base {
    background: radial-gradient(circle, #ff0000 0%, #330000 80%) !important;
    color: #fff !important;
    font-weight: bold;
    border: 2px solid #ff0000 !important;
    border-radius: 20%;
    z-index: 95 !important;
    box-shadow: 0 0 20px #ff0000, inset 0 0 15px #ff0000 !important;
    animation: warlord-alarm 1s infinite alternate ease-in-out;
}

/* =========================================
   15. CAMP STATUS ICONS (Overlay)
   ========================================= */
.camp-status-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
    z-index: 10;
    text-shadow: 0 0 5px rgba(0,0,0,0.8), 0 0 10px currentColor;
    opacity: 0.9;
}

.camp-idle .camp-status-icon::after {
    content: '⚠️';
    color: #ffaa00;
    filter: drop-shadow(0 0 2px #000);
    animation: idle-bounce 1s infinite alternate;
}

.camp-working .camp-status-icon::after {
    content: '⛺';
    filter: drop-shadow(0 0 2px #000);
}

.map-tile.camp-idle {
    box-shadow: inset 0 0 10px rgba(255, 170, 0, 0.4) !important;
    border: 1px solid rgba(255, 170, 0, 0.8) !important;
}

@keyframes idle-bounce {
    0% {
        transform: scale(0.9) translateY(1px);
    }

    100% {
        transform: scale(1.1) translateY(-1px);
    }
}

.global-bonus-badge.research {
    background: rgba(0, 170, 170, 0.08);
    border-color: rgba(0, 170, 170, 0.3);
    color: var(--ui-info);
    box-shadow: inset 0 0 8px rgba(0, 170, 170, 0.1);
}

    .global-bonus-badge.research:hover {
        background: rgba(0, 170, 170, 0.15);
        border-color: var(--ui-info);
        box-shadow: 0 0 10px rgba(0, 170, 170, 0.2), inset 0 0 10px rgba(0, 170, 170, 0.2);
    }

.pulse-dot.research {
    background-color: var(--ui-info);
    animation: pulse-cyan 1.5s infinite;
}

@keyframes pulse-cyan {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 170, 170, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 170, 170, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 170, 170, 0);
    }
}

/* =========================================
   16. KARTEN-OVERLAYS (Fog of War)
   ========================================= */
.map-tile.fog {
    background: repeating-linear-gradient(45deg, #7b7878, #7b7878 1px, #391212 2px, #391212 4px) !important;
    color: transparent !important;
    box-shadow: inset 2px 2px 8px rgba(0,0,0,0.95) !important;
    filter: contrast(1.2) !important;
}

    .map-tile.fog:hover {
        background: repeating-linear-gradient(45deg, #1a1a1a, #1a1a1a 2px, #222 2px, #222 4px) !important;
    }

body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 99999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.map-tile.explored {
    background: radial-gradient(circle, rgba(30, 45, 30, 0.8) 0%, rgba(20, 25, 20, 0.9) 100%);
    color: rgba(0, 255, 0, 0.5);
    font-size: 0.85em;
}

.map-tile.base {
    background: radial-gradient(circle, var(--ui-color) 0%, #003300 80%);
    color: #000;
    font-weight: bold;
    z-index: var(--z-map-base);
    border-radius: 20%;
    border: 1px solid #fff !important;
    animation: radar-blip-friendly 2.5s infinite ease-out;
}

.map-tile.camp {
    background: radial-gradient(circle, #440000 80%);
    color: #fff;
    font-size: 0.85em;
    font-weight: bold;
    border: 1px solid #f55 !important;
    z-index: var(--z-map-base);
    animation: radar-blip-threat 1.8s infinite ease-out;
}

.map-tile.node {
    z-index: var(--z-map-base);
    font-size: 0.85em;
    font-weight: bold;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4) !important;
}

.map-tile.node-diamond {
    background: radial-gradient(circle, #00ffff 0%, #004466 80%) !important;
    color: #000 !important;
    box-shadow: 0 0 15px #00ffff, inset 0 0 8px #fff !important;
}

.map-tile.node-ore {
    background: radial-gradient(circle, #ffaa00 0%, #663300 80%) !important;
    color: #000 !important;
    box-shadow: 0 0 15px #ffaa00, inset 0 0 8px #fff !important;
    border-color: #ffaa00 !important;
}

.map-tile.node-oil {
    background: radial-gradient(circle, #777788 0%, #111 80%) !important;
    color: #fff !important;
    box-shadow: 0 0 12px #8888aa, inset 0 0 5px #fff !important;
}

.map-tile.node-food {
    background: radial-gradient(circle, #88ff88 0%, #1e3f1e 80%) !important;
    color: #000 !important;
    box-shadow: 0 0 15px #88ff88, inset 0 0 8px #fff !important;
}

.map-tile.enemy-base {
    color: #c7c443 !important;
}

.floating-resource-value {
    position: absolute;
    transform: translate(-50%, 0);
    will-change: transform, opacity;
    font-weight: bold;
    font-size: 14px;
    font-family: monospace;
    pointer-events: none;
    z-index: 105 !important;
    text-shadow: 0 0 6px currentColor, 1px 1px 2px #000;
    animation: float-up-fade 1.5s ease-out forwards;
}

@keyframes float-up-fade {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.5);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -15px) scale(1.3);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -45px) scale(1);
    }
}

.chunk-edge-r {
    border-right: 1px dashed rgba(0, 255, 0, 0.4) !important;
}

.chunk-edge-b {
    border-bottom: 1px dashed rgba(0, 255, 0, 0.4) !important;
}

.chunk-edge-l {
    border-left: 1px dashed rgba(0, 255, 0, 0.4) !important;
}

.chunk-edge-u {
    border-top: 1px dashed rgba(0, 255, 0, 0.4) !important;
}

/* =========================================
   8. TACTICAL DEPLOYMENT & OPS (Rechte Spalte)
   ========================================= */
#vue-active-operations.panel {
    background: linear-gradient(180deg, #161616 0%, #0a0a0a 100%);
    border: 2px solid var(--ui-info);
    border-radius: 12px;
    padding: 15px;
    box-shadow: inset 0 0 20px rgba(0, 170, 170, 0.1), 6px 6px 16px var(--shadow-dark), -2px -2px 10px var(--shadow-light);
    overflow: hidden;
    box-sizing: border-box;
}

.ops-group-container {
    margin-bottom: 20px;
}

.ops-group-header {
    background: rgba(170, 170, 0, 0.1);
    color: var(--ui-highlight);
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 3px 7px;
    border-radius: 4px;
    border: 1px solid rgba(170, 170, 0, 0.2);
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.timeline-bar-container {
    width: 100%;
    height: 10px;
    background-color: #050505;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid #333;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.9);
}

.timeline-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--ui-color) 0%, #aaffaa 100%);
    box-shadow: 0 0 10px var(--ui-glow), inset 0 0 5px rgba(255,255,255,0.4);
    transition: width 0.12s linear;
    position: relative;
    overflow: hidden;
}

    .timeline-bar-fill::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        background-image: repeating-linear-gradient( -45deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25) 8px, transparent 8px, transparent 16px );
        background-size: 22px 100%;
        animation: cyber-progress 1s linear infinite;
    }

@keyframes cyber-progress {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 22px 0;
    }
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

.attack-warning.enhanced {
    background: linear-gradient(135deg, #440000 0%, #110000 100%);
    border: 2px solid var(--ui-danger-light);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    animation: intense-pulse 2s infinite;
}

    .attack-warning.enhanced::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: repeating-linear-gradient(-45deg, rgba(255, 0, 0, 0.1), rgba(255, 0, 0, 0.1) 10px, rgba(0, 0, 0, 0.1) 10px, rgba(0, 0, 0, 0.1) 20px);
    }

@keyframes intense-pulse {
    0% {
        box-shadow: 6px 6px 16px rgba(0,0,0,0.8), 0 0 5px var(--ui-danger-light);
    }

    50% {
        box-shadow: 6px 6px 16px rgba(0,0,0,0.8), 0 0 20px var(--ui-danger-light), inset 0 0 10px var(--ui-danger-light-glow);
    }

    100% {
        box-shadow: 6px 6px 16px rgba(0,0,0,0.8), 0 0 5px var(--ui-danger-light);
    }
}

.fleet-card {
    background: #080808;
    border: 1px solid #1a1a1a;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    transition: border-color 0.3s;
}

    .fleet-card.is-processing {
        border-color: var(--ui-highlight);
        background: repeating-linear-gradient(45deg, #080808, #080808 10px, #111100 10px, #111100 20px);
    }

.processing-pulse {
    animation: blink-sync 1s infinite alternate;
}

@keyframes blink-sync {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
        text-shadow: 0 0 8px var(--ui-highlight);
    }
}

.fleet-card .retreat-btn {
    border: 1px solid;
    padding: 6px 12px;
    font-size: 0.95em;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    font-family: monospace;
    transition: all 0.2s;
    letter-spacing: 1px;
}

    .fleet-card .retreat-btn:hover {
        filter: brightness(1.3);
        box-shadow: 0 0 10px currentColor;
    }

    .fleet-card .retreat-btn:active {
        box-shadow: inset 2px 2px 4px rgba(0,0,0,0.5);
        transform: translateY(1px);
    }

/* =========================================
   9. DISPATCH TERMINAL (Kommandozentrale)
   ========================================= */
.dispatch-terminal {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.coord-display {
    background: #050505;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 8px;
    box-shadow: inset 3px 3px 8px var(--shadow-dark);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.coord-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

    .coord-input-group label {
        font-size: 0.85em;
        color: gray;
        text-transform: uppercase;
    }

.coord-field {
    width: 60px;
    background: #111;
    border: 1px solid var(--ui-color);
    color: var(--ui-color);
    text-align: center;
    font-family: monospace;
    font-size: 1.1em;
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 0 5px var(--ui-glow);
}

.dispatch-unit-item {
    background: linear-gradient(90deg, #1a1a1a 0%, #111 100%);
    border: 1px solid #222;
    margin-bottom: 5px;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.2s;
}

    .dispatch-unit-item:hover {
        border-color: var(--ui-info);
        background: #1d1d1d;
    }

.unit-info-mini {
    display: flex;
    flex-direction: column;
    width: 60%;
}

.unit-qty-input {
    width: 50px;
    background: #000;
    border: 1px solid #444;
    color: #fff;
    text-align: center;
    padding: 4px;
    font-family: monospace;
    border-radius: 4px;
}

.auth-panel {
    background: #0a0a0a;
    border-top: 1px solid #333;
    padding-top: 15px;
    margin-top: 10px;
}

.mission-select {
    width: 100%;
    padding: 10px;
    background: #1a1a1a;
    color: var(--ui-color);
    border: 1px solid var(--ui-color);
    border-radius: 4px;
    font-family: monospace;
    margin-bottom: 10px;
    font-size: 1.05em;
}

.tech-card-btn {
    background: rgba(0, 255, 0, 0.05);
    color: var(--ui-color);
    border: 1px solid var(--ui-color);
    padding: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    border-radius: 0;
}

    .tech-card-btn:hover:not(:disabled) {
        background: var(--ui-color);
        color: #000;
        box-shadow: 0 0 15px var(--ui-color);
        transform: scale(1.02);
    }

    .tech-card-btn:disabled {
        background: repeating-linear-gradient( -45deg, rgba(0, 170, 170, 0.15), rgba(0, 170, 170, 0.15) 10px, transparent 10px, transparent 20px ), linear-gradient(90deg, #050505 0%, #1a1a1a 50%, #050505 100%);
        background-size: 28px 28px, 200% 100%;
        animation: button-processing 1.5s linear infinite;
        color: var(--ui-info);
        border-color: var(--ui-info);
        box-shadow: inset 0 0 15px rgba(0, 170, 170, 0.2), 0 0 10px rgba(0, 170, 170, 0.1);
        text-shadow: 0 0 8px var(--ui-info);
        cursor: not-allowed;
        position: relative;
    }

@keyframes button-processing {
    0% {
        background-position: 0 0, 200% 0;
    }

    100% {
        background-position: 28px 0, -200% 0;
    }
}

/* =========================================
   10. SYSTEM & NACHRICHTEN
   ========================================= */
.report-cat {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #333;
    transition: all 0.2s;
    position: relative;
    font-weight: bold;
}

    .report-cat:hover {
        background: #222;
    }

    .report-cat.active {
        background: #1a1a1a;
        color: var(--ui-color);
        box-shadow: inset 3px 0 0 var(--ui-color);
    }

.report-item {
    margin: 0;
    border-bottom: 1px solid #333;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

    .report-item:hover {
        background-color: #222;
    }

#view-reports .panel {
    background: #0a0a0a;
    border: 2px solid #1a1a1a;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.9), 0 10px 30px rgba(0,0,0,0.8);
    border-radius: 12px;
    overflow: hidden;
}

#reportCategories {
    background: #050505;
}

    #reportCategories .report-cat {
        background: transparent;
        border-bottom: 1px dashed #222;
        color: gray;
        font-family: monospace;
        letter-spacing: 1px;
    }

        #reportCategories .report-cat:hover {
            background: #111;
            color: #fff;
        }

        #reportCategories .report-cat.active {
            background: #0a0a0a;
            border-right: 3px solid var(--ui-color);
            color: var(--ui-color);
            box-shadow: inset 10px 0 20px rgba(0,255,0,0.05);
            text-shadow: 0 0 5px var(--ui-glow);
        }

#centerActionContent p, #techtreeDisplay td {
    word-break: break-word;
    hyphens: auto;
}

.highscore-name-cell {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-right: 15px !important;
}

.highscore-level {
    color: var(--ui-info);
    font-size: 0.95em;
    opacity: 0.8;
}

/* =========================================
   PHASE 2: KAMPFBERICHTE & HOLO-TERMINAL
   ========================================= */
#reportList {
    background: rgba(5, 5, 5, 0.8);
    border-right: 1px solid #222;
}

    #reportList .report-item {
        background: transparent;
        border-bottom: 1px solid rgba(0, 255, 0, 0.1);
        padding: 15px;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
        position: relative;
        font-family: 'Orbitron', sans-serif;
        color: #aaa;
    }

        #reportList .report-item:hover {
            background: linear-gradient(90deg, rgba(0, 170, 170, 0.15) 0%, transparent 100%);
            border-left: 4px solid var(--ui-info);
            color: #fff;
            padding-left: 20px;
            text-shadow: 0 0 8px var(--ui-info-dark-glow);
        }

.unread-badge {
    background: var(--ui-danger-light);
    color: #fff;
    border-radius: 2px;
    padding: 2px 8px;
    font-size: 0.85em;
    position: absolute;
    right: 10px;
    top: 12px;
    font-family: monospace;
    font-weight: bold;
    box-shadow: 0 0 10px var(--ui-danger-light);
    animation: pulse-danger 1.5s infinite;
}

#reportDetail {
    width: 100%;
    height: auto;
    min-height: 250px;
    background: linear-gradient(180deg, rgba(5, 10, 15, 0.95) 0%, rgba(5, 5, 5, 0.98) 100%), repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 170, 170, 0.03) 2px, rgba(0, 170, 170, 0.03) 4px), linear-gradient(90deg, rgba(0, 170, 170, 0.03) 1px, transparent 1px), linear-gradient(rgba(0, 170, 170, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 30px 30px, 30px 30px;
    border: 1px solid rgba(0, 170, 170, 0.3);
    border-top: 3px solid var(--ui-info);
    padding: 25px;
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.9), 0 0 20px rgba(0, 170, 170, 0.05);
    overflow: hidden;
    position: relative;
}

    #reportDetail, #reportDetail div, #reportDetail p, #reportDetail pre {
        font-family: 'Courier New', monospace;
        color: #ddd;
        line-height: 1.6;
        text-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
        white-space: pre-wrap;
        word-wrap: break-word;
        position: relative;
        z-index: 2;
    }

@keyframes holo-boot {
    0% {
        opacity: 0;
        filter: brightness(3) contrast(2);
        transform: scaleY(0.01);
    }

    20% {
        opacity: 1;
        transform: scaleY(1.02);
    }

    40% {
        filter: brightness(0.5);
        transform: scaleX(0.98);
    }

    60% {
        filter: brightness(1.5);
        transform: scaleX(1.01);
    }

    100% {
        filter: brightness(1) contrast(1);
        transform: scale(1);
    }
}

#reportDetail > * {
    animation: holo-boot 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* =========================================
   11. SUBMENÜS (Daten-Pads für Gebäude/Truppen) - CYBERPUNK UPGRADE
   ========================================= */
.tech-card {
    width: 280px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    /* DIE LÖSUNG: Die Hitbox rührt sich keinen Millimeter! */
    transform: none !important;
    clip-path: none !important;
}

    /* Das alte Netz kann komplett weg, wir überschreiben es sicherheitshalber */
    .tech-card::after {
        display: none !important;
    }

    /* Der Schatten und das Design liegen jetzt NUR auf der ::before Ebene */
    .tech-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, rgba(15, 15, 15, 0.8) 0%, rgba(5, 5, 5, 0.95) 100%);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-top: 3px solid var(--ui-color);
        clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
        z-index: -1;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        /* Der Schatten liegt hier auf der Optik, nicht auf der Hitbox! */
        filter: drop-shadow(0 10px 10px rgba(0,0,0,0.8));
    }

    /* Alle Inhalte in der Karte bekommen ebenfalls die weiche Animation */
    .tech-card > * {
        position: relative;
        z-index: 10;
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    /* DAS ANHEBEN: Nur Optik und Inhalt fahren hoch! Die Maus bleibt bombenfest auf der unsichtbaren Karte. */
    .tech-card:hover::before, .tech-card.is-hovered::before {
        transform: translateY(-5px);
        border-color: rgba(0, 255, 0, 0.4);
        border-top-color: var(--ui-highlight);
        background: linear-gradient(180deg, rgba(25, 25, 20, 0.9) 0%, rgba(5, 5, 5, 0.95) 100%);
        filter: drop-shadow(0 15px 10px rgba(0, 255, 0, 0.15));
    }

    .tech-card:hover > *, .tech-card.is-hovered > * {
        transform: translateY(-5px);
    }

        /* Das Leuchten des Hintergrunds */
        .tech-card:hover::before, .tech-card.is-hovered::before {
            border-color: rgba(0, 255, 0, 0.4);
            border-top-color: var(--ui-highlight);
            background: linear-gradient(180deg, rgba(25, 25, 20, 0.9) 0%, rgba(5, 5, 5, 0.95) 100%);
        }

    /* Inhalte (Buttons etc.) über dem unsichtbaren Netz klickbar halten */
    .tech-card > * {
        position: relative;
        z-index: 10;
    }

        /* Der Hintergrund leuchtet auf */
        .tech-card:hover::before, .tech-card.is-hovered::before {
            border-color: rgba(0, 255, 0, 0.4);
            border-top-color: var(--ui-highlight);
            background: linear-gradient(180deg, rgba(25, 25, 20, 0.9) 0%, rgba(5, 5, 5, 0.95) 100%);
        }

.tech-card-img-container {
    height: 120px;
    background-color: #000;
    border: 1px solid #222;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Das statische CRT-Raster auf dem Bild */
    .tech-card-img-container::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: repeating-linear-gradient(0deg, rgba(0,0,0,0.3), rgba(0,0,0,0.3) 1px, transparent 1px, transparent 3px);
        pointer-events: none;
        z-index: 2;
    }

/* Der fahrende Laser-Scanner bei Hover */
.tech-card:hover .tech-card-img-container::before,
.tech-card.is-hovered .tech-card-img-container::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(0, 255, 0, 0.2), transparent);
    animation: card-scan 1.5s linear infinite;
    z-index: 3;
    pointer-events: none;
}

@keyframes card-scan {
    0% {
        top: -50%;
    }

    100% {
        top: 150%;
    }
}

.tech-card-title {
    text-align: center;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
    font-size: 1.1em;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

    .tech-card-title strong {
        color: var(--ui-color);
        text-transform: uppercase;
        text-shadow: 0 0 8px var(--ui-glow);
    }

/* Terminal-Look für die Ressourcenkosten */
.tech-card-costs {
    background: rgba(0, 0, 0, 0.8);
    border: 1px dashed #333;
    border-left: 2px solid var(--ui-info);
    padding: 10px;
    font-size: 0.85em;
    text-align: left;
    margin-bottom: 15px;
    box-shadow: inset 2px 2px 10px #000;
    color: #ccc;
    line-height: 1.6;
    font-family: 'Courier New', monospace;
}

/* BUTTONS UND INPUTS IN DEN KARTEN */
.tech-card-btn {
    background: rgba(0, 255, 0, 0.05);
    color: var(--ui-color);
    border: 1px solid var(--ui-color);
    padding: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    width: 100%;
}

    .tech-card-btn:hover:not(:disabled) {
        background: var(--ui-color);
        color: #000;
        box-shadow: 0 0 15px var(--ui-color);
        transform: scale(1.02);
    }

    .tech-card-btn:disabled {
        background: repeating-linear-gradient(-45deg, rgba(0, 170, 170, 0.1), rgba(0, 170, 170, 0.1) 5px, transparent 5px, transparent 10px), #050505;
        border-color: #333;
        color: #555;
        cursor: not-allowed;
        clip-path: none;
    }

.tech-input {
    width: 60px;
    background: #000;
    color: var(--ui-info);
    border: 1px solid #333;
    border-bottom: 2px solid var(--ui-info);
    text-align: center;
    font-family: monospace;
    font-weight: bold;
    font-size: 1.1em;
    border-radius: 0;
    box-shadow: inset 2px 2px 5px #000;
    transition: 0.2s;
}

    .tech-input:focus {
        outline: none;
        border-color: var(--ui-info);
        box-shadow: inset 2px 2px 5px #000, 0 0 10px var(--ui-info-dark-glow);
        transform: scale(1.05);
    }

/* =========================================
   PHASE 3: TECHNOLOGIEZENTRUM (FULL-WIDTH KARTEN)
   ========================================= */
#view-tech .panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#techtreeDisplay {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

    #techtreeDisplay table, #techtreeDisplay tbody {
        display: contents;
    }

    #techtreeDisplay tr {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-bottom: 15px;
        background: linear-gradient(135deg, rgba(15, 15, 18, 0.95) 0%, rgba(5, 5, 5, 0.98) 100%);
        border: 1px solid rgba(0, 170, 170, 0.2);
        border-left: 4px solid var(--ui-info);
        padding: 20px;
        position: relative;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5), inset 0 0 15px rgba(0,0,0,0.8);
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
        clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    }

        #techtreeDisplay tr:hover {
            transform: translateY(-3px);
            border-color: var(--ui-info);
            box-shadow: 0 15px 25px rgba(0,0,0,0.8), inset 0 0 20px rgba(0, 170, 170, 0.15);
        }

        #techtreeDisplay tr:first-child {
            display: none !important;
        }

    #techtreeDisplay td {
        display: block;
        border: none !important;
        padding: 5px 0 !important;
        background: transparent !important;
        color: #ccc;
        font-family: monospace;
        line-height: 1.5;
    }

        #techtreeDisplay td:first-child {
            font-family: 'Orbitron', sans-serif;
            color: #fff;
            font-size: 1.2em;
            letter-spacing: 1px;
            text-transform: uppercase;
            border-bottom: 1px dashed rgba(0, 170, 170, 0.3) !important;
            margin-bottom: 10px;
            padding-bottom: 10px !important;
            text-shadow: 0 0 5px rgba(0, 170, 170, 0.5);
        }

        #techtreeDisplay td button {
            width: 100%;
            margin-top: 15px;
            background: rgba(0, 170, 170, 0.1);
            color: var(--ui-info);
            border: 1px solid var(--ui-info);
            padding: 10px;
            font-family: 'Orbitron', sans-serif;
            font-weight: bold;
            cursor: pointer;
            transition: 0.2s;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

            #techtreeDisplay td button:hover:not(:disabled) {
                background: var(--ui-info);
                color: #000;
                box-shadow: 0 0 15px var(--ui-info-dark-glow);
            }

    #techtreeDisplay .tech-accordion {
        margin-bottom: 15px;
        background: rgba(10, 10, 12, 0.6);
        border: 1px solid rgba(0, 170, 170, 0.2);
        border-radius: 6px;
        box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
    }

    #techtreeDisplay .tech-category-header {
        list-style: none;
        font-family: 'Orbitron', sans-serif;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 4px;
        font-size: 1.2em;
        padding: 15px 20px;
        background: linear-gradient(90deg, rgba(0, 170, 170, 0.1) 0%, transparent 100%);
        border-left: 4px solid var(--ui-info);
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-shadow: 0 0 8px var(--ui-info-dark-glow);
        user-select: none;
    }

        #techtreeDisplay .tech-category-header::after {
            content: '[ + ]';
            color: var(--ui-info);
            font-family: monospace;
            font-weight: bold;
        }

    #techtreeDisplay .tech-accordion[open] .tech-category-header {
        background: linear-gradient(90deg, rgba(0, 170, 170, 0.3) 0%, transparent 100%);
        border-bottom: 1px solid rgba(0, 170, 170, 0.3);
    }

        #techtreeDisplay .tech-accordion[open] .tech-category-header::after {
            content: '[ - ]';
            color: var(--ui-danger-light);
            text-shadow: 0 0 8px var(--ui-danger-light);
        }

    #techtreeDisplay .tech-accordion[open] table {
        padding: 20px;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
    }

/* =========================================
   PHASE 4.2: DISPATCH & LAUNCH SEQUENZ
   ========================================= */
.payload-container {
    background: linear-gradient(180deg, #0f0f11 0%, #050505 100%);
    padding: 15px;
    font-family: monospace;
    font-size: 0.95em;
    border: 1px solid #222;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 15px rgba(0, 170, 170, 0.05);
}

.payload-bar-bg {
    width: 100%;
    height: 8px;
    background: #000;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.9);
}

.payload-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #004444 0%, var(--ui-info) 100%);
    box-shadow: 0 0 10px var(--ui-info);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s;
    border-radius: 2px;
}

.payload-critical {
    color: var(--ui-danger-light) !important;
    text-shadow: 0 0 8px var(--ui-danger-light);
    animation: pulse-danger 1s infinite alternate;
}

.payload-bar-fill.overload {
    background: linear-gradient(90deg, #440000 0%, var(--ui-danger-light) 100%);
    box-shadow: 0 0 15px var(--ui-danger-light);
}

.btn-launch {
    position: relative;
    background: rgba(0, 170, 170, 0.05);
    color: var(--ui-info);
    border: 1px solid var(--ui-info);
    padding: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    overflow: hidden;
}

    .btn-launch:hover:not(:disabled) {
        background: var(--ui-info);
        color: #000;
        box-shadow: 0 0 25px var(--ui-info-dark-glow);
        transform: scale(1.02);
        letter-spacing: 4px;
    }

    .btn-launch::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 50%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        transform: skewX(-45deg);
        transition: 0.5s;
        pointer-events: none;
    }

    .btn-launch:hover:not(:disabled)::before {
        left: 200%;
        transition: 0.7s ease-in-out;
    }

    .btn-launch:active:not(:disabled) {
        transform: scale(0.98);
        background: #fff;
        color: #000;
        box-shadow: 0 0 40px #fff;
        border-color: #fff;
    }

/* =========================================
   TRUPPENBEWEGUNGEN AUF DER MAP
   ========================================= */
.map-fleet-marker {
    position: absolute;
    will-change: transform, top, left;
    width: 10px;
    height: 10px;
    background: #0ff; /* Strahlendes Radar-Cyan */
    border-radius: 50%;
    box-shadow: 0 0 10px #0ff, 0 0 20px #fff;
    z-index: 105;
    pointer-events: none;
    transition: top 1s linear, left 1s linear;
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
}

    /* Der flackernde Plasma-Schweif (Triebwerk/Radar-Echo) */
    .map-fleet-marker::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 30px;
        height: 2px;
        background: linear-gradient(90deg, transparent 0%, #0ff 100%);
        transform: translate(-100%, -50%); /* Schweif zieht nach hinten */
        filter: drop-shadow(0 0 4px #0ff);
        animation: thruster-flicker 0.1s infinite alternate;
    }

@keyframes thruster-flicker {
    0% {
        opacity: 0.3;
        transform: translate(-100%, -50%) scaleX(0.6);
    }

    100% {
        opacity: 1;
        transform: translate(-100%, -50%) scaleX(1.2);
    }
}

/* --- Aktive Aufträge: Accordion --- */
.active-queues-panel {
    margin-bottom: 15px;
    padding: 10px;
}

.active-queues-title {
    margin: 0 0 8px;
    text-align: center;
    font-size: 1.1em;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.active-queues-total,
.queue-accordion-count {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(170, 255, 170, 0.35);
    background: rgba(170, 255, 170, 0.08);
    color: var(--ui-highlight);
    font-size: 0.78em;
    font-family: monospace;
}

.active-queues-empty {
    color: gray;
    font-size: 0.9em;
    text-align: center;
    margin: 5px 0;
}

.active-queues-accordion-wrap {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 0.9em;
}

.queue-accordion {
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(0,0,0,0.18);
    border-radius: 6px;
    overflow: hidden;
}

.queue-accordion summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    padding: 8px 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #ddd;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.queue-accordion summary::-webkit-details-marker {
    display: none;
}

.queue-accordion summary::before {
    content: "▸";
    color: var(--ui-highlight);
    margin-right: 2px;
    transition: transform 0.18s ease;
}

.queue-accordion[open] summary::before {
    transform: rotate(90deg);
}

.queue-accordion[open] summary {
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
}

.queue-accordion-body {
    padding: 3px 8px 8px;
    max-height: 260px;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    overscroll-behavior-x: contain;
}

.active-queue-item {
    border-bottom: 1px solid #1a1a1a;
    padding: 8px 0;
    margin-bottom: 6px;
}

.active-queue-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.active-queue-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.active-queue-name {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 5px;
}

.queue-build-name {
    color: var(--ui-highlight);
}

.queue-research-name {
    color: var(--ui-info);
}

.queue-unit-name {
    color: var(--ui-danger-light);
}

.queue-target-level {
    color: gray;
    font-size: 0.95em;
}

.active-queue-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.active-queue-time {
    font-family: monospace;
    color: #fff;
    flex-shrink: 0;
}

.queue-cancel-btn {
    background: #440000;
    color: var(--ui-danger-light);
    border: 1px solid var(--ui-danger-light);
    cursor: pointer;
    font-size: 0.85em;
    padding: 0 5px;
    border-radius: 3px;
    font-weight: bold;
}

.queue-cancel-btn:hover {
    background: var(--ui-danger-light);
    color: #120000;
}

.queue-accordion-research summary::before,
.queue-accordion-research .queue-accordion-count {
    color: var(--ui-info);
    border-color: rgba(0, 170, 170, 0.35);
    background: rgba(0, 170, 170, 0.08);
}

.queue-accordion-units summary::before,
.queue-accordion-units .queue-accordion-count {
    color: var(--ui-danger-light);
    border-color: rgba(255, 85, 85, 0.35);
    background: rgba(255, 85, 85, 0.08);
}

@media (max-width: 768px) {
    .queue-accordion-body {
        max-height: 220px;
        -webkit-overflow-scrolling: touch;
    }

    .active-queue-row {
        align-items: flex-start;
    }
}

/* --- Operationszentrale / Kommandozentrale: Accordion-Erweiterung --- */
.ops-accordion-wrap {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ops-accordion {
    border-color: rgba(0, 170, 170, 0.22);
    background: rgba(0, 0, 0, 0.18);
}

.ops-accordion summary {
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
}

.ops-accordion[open] summary {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ops-accordion-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-accordion-body {
    max-height: 430px;
    padding: 8px;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    overscroll-behavior-x: contain;
}

.ops-accordion .fleet-card {
    margin-bottom: 9px;
}

.ops-accordion .fleet-card:last-child {
    margin-bottom: 0;
}

.command-accordion {
    margin-bottom: 12px;
    border-color: rgba(0, 170, 170, 0.22);
    background: rgba(5, 5, 5, 0.65);
}

.command-accordion summary {
    color: var(--ui-highlight);
    font-size: 0.95em;
}

.command-accordion-body {
    max-height: 320px;
    padding: 10px;
    background: #080808;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    overscroll-behavior-x: contain;
}

.command-accordion-cargo summary {
    color: var(--ui-info);
}

.command-accordion-cargo .queue-accordion-count {
    min-width: auto;
    height: auto;
    max-width: 150px;
    padding: 2px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.66em;
    color: var(--ui-info);
    border-color: rgba(0, 170, 170, 0.35);
    background: rgba(0, 170, 170, 0.08);
}

.cargo-accordion-body {
    max-height: none;
    overflow: visible;
    overscroll-behavior-y: auto;
    overscroll-behavior-x: contain;
    background: #0a0a0a;
}

@media (max-width: 768px) {
    .ops-accordion-body {
        max-height: 320px;
        -webkit-overflow-scrolling: touch;
    }

    .command-accordion-body {
        max-height: 260px;
        -webkit-overflow-scrolling: touch;
    }

    .command-accordion-cargo .queue-accordion-count {
        max-width: 110px;
    }
}

/* --- Akkordeon-Standardzustand pro Spieler --- */
.queue-accordion-tools {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 0;
    min-width: 0;
}

.accordion-default-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 7px;
    min-height: 20px;
    border-radius: 999px;
    border: 1px solid rgba(90, 160, 190, 0.35);
    background: linear-gradient(180deg, rgba(12, 18, 24, 0.96) 0%, rgba(6, 10, 14, 0.96) 100%);
    color: #9fc5d8;
    font-size: 0.72em;
    line-height: 1;
    font-family: monospace;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 0 0 1px rgba(0,0,0,0.35), 0 4px 12px rgba(0,0,0,0.22);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.14s ease, box-shadow 0.18s ease;
    user-select: none;
}

.accordion-default-toggle::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #597180;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 0 6px rgba(89, 113, 128, 0.35);
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.accordion-default-toggle:hover {
    color: #eaffff;
    border-color: rgba(0, 190, 210, 0.55);
    background: linear-gradient(180deg, rgba(18, 34, 42, 0.98) 0%, rgba(8, 18, 24, 0.98) 100%);
    box-shadow: inset 0 0 0 1px rgba(140,255,255,0.05), 0 0 0 1px rgba(0,0,0,0.3), 0 0 14px rgba(0, 180, 200, 0.16);
    transform: translateY(-1px);
}

.accordion-default-toggle:hover::before {
    background: var(--ui-info);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 0 10px rgba(0,170,170,0.55);
}

.accordion-default-toggle:active {
    transform: translateY(0);
}

.accordion-default-toggle:focus,
.accordion-default-toggle:focus-visible {
    outline: none;
    border-color: rgba(0, 220, 220, 0.7);
    box-shadow: 0 0 0 2px rgba(0, 180, 200, 0.18), 0 0 14px rgba(0, 180, 200, 0.18);
}

.queue-accordion[open] > summary .accordion-default-toggle {
    color: #cbffd2;
    border-color: rgba(110, 220, 130, 0.4);
    background: linear-gradient(180deg, rgba(16, 32, 18, 0.97) 0%, rgba(7, 15, 9, 0.97) 100%);
}

.queue-accordion[open] > summary .accordion-default-toggle::before {
    background: #73ff96;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 0 10px rgba(115,255,150,0.5);
}

@media (max-width: 768px) {
    .queue-accordion summary {
        gap: 6px;
    }

    .queue-accordion-tools {
        gap: 4px;
    }

    .accordion-default-toggle {
        font-size: 0.62em;
        padding: 2px 6px;
        min-height: 19px;
        gap: 4px;
    }

    .accordion-default-toggle::before {
        width: 6px;
        height: 6px;
    }
}

/* Map-Grid darf sich nie durch lange Weltkoordinaten aufblasen. */
#strategyMap {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.map-tile {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    contain: layout paint;
}

.map-coord-label {
    display: block;
    max-width: 100%;
    padding: 0 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    font-family: monospace;
    font-size: clamp(6px, 0.62vw, 9px);
    line-height: 1;
    transform: scale(0.96);
    transform-origin: center;
}

.map-coord-label--camp {
    color: rgba(255, 235, 235, 0.82);
    font-weight: 700;
}

.map-coord-label--node {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.map-coord-label--empty {
    color: rgba(255, 255, 255, 0.15);
    font-weight: 400;
}
