﻿/* =========================================
   2. SYSTEM-MELDUNGEN (CYBER-TOASTS)
   ========================================= */
#toastContainer {
    position: fixed;
    top: 80px;
    right: 20px;
    left: auto;
    transform: none;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
    gap: 10px;
}

.toast-message {
    background: linear-gradient(90deg, rgba(5,5,5,0.95) 0%, rgba(10,20,10,0.95) 100%);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-right: 4px solid var(--ui-color);
    color: var(--ui-color);
    padding: 12px 25px 12px 15px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    box-shadow: -5px 5px 15px rgba(0,0,0,0.8), inset 0 0 10px rgba(0, 255, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    opacity: 0;
    transform: translateX(120%) skewX(-10deg);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1.2), opacity 0.3s;
}

    .toast-message.show {
        opacity: 1;
        transform: translateX(0) skewX(0);
    }

    .toast-message.error {
        border-color: rgba(255, 85, 85, 0.4);
        border-right-color: var(--ui-danger-light);
        color: var(--ui-danger-light);
        text-shadow: 0 0 5px rgba(255, 85, 85, 0.5);
        background: linear-gradient(90deg, rgba(5,5,5,0.95) 0%, rgba(30,5,5,0.95) 100%);
        box-shadow: -5px 5px 15px rgba(0,0,0,0.8), inset 0 0 15px rgba(255, 0, 0, 0.15);
    }

/* =========================================
   3. LOGIN & AUTH TERMINAL
   ========================================= */
#authOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: var(--z-auth-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-box {
    background: #0a0a0a;
    border: 2px solid var(--ui-color);
    border-radius: 0;
    padding: 40px;
    width: 400px;
    position: relative;
    box-shadow: 0 0 20px var(--ui-glow), inset 0 0 30px rgba(0,0,0,0.8);
    overflow: hidden;
}

/* -----------------------------------------
   CRT BOOT SEQUENZ FÜR LOGIN TERMINAL
   ----------------------------------------- */
.auth-box {
    animation: crt-power-on 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes crt-power-on {
    0% {
        opacity: 0;
        transform: scaleY(0.01) scaleX(0);
        filter: brightness(10) contrast(3);
    }

    20% {
        opacity: 1;
        transform: scaleY(0.01) scaleX(1);
        filter: brightness(5) contrast(2);
    }

    60% {
        transform: scaleY(1.05) scaleX(1);
        filter: brightness(1.5) contrast(1.2);
    }

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

/* Die Texte schalten sich leicht verzögert ein */
.auth-box > div:nth-child(1) {
    opacity: 0;
    animation: power-text 0.1s 0.8s forwards;
}

.auth-box > div:nth-child(2) {
    opacity: 0;
    animation: power-text 0.1s 1.1s forwards;
}

.auth-box > button {
    opacity: 0;
    animation: power-text 0.1s 1.4s forwards;
}

.auth-box > div:nth-child(4) {
    opacity: 0;
    animation: power-text 0.1s 1.7s forwards;
}

@keyframes power-text {
    to {
        opacity: 1;
    }
}

    .auth-box::before {
        content: "UNAUTHORIZED ACCESS PROHIBITED";
        position: absolute;
        top: 5px;
        left: 10px;
        font-size: 0.8em;
        color: var(--ui-color);
        opacity: 0.5;
        letter-spacing: 2px;
    }

    .auth-box::after {
        content: " ";
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
        background-size: 100% 2px, 3px 100%;
        pointer-events: none;
        z-index: 10;
    }

    .auth-box > * {
        position: relative;
        z-index: 20;
    }

.auth-input {
    background: #000;
    border: 1px solid #333;
    border-left: 3px solid var(--ui-color);
    color: var(--ui-color);
    padding: 12px;
    width: 100%;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s;
    box-sizing: border-box;
}

    .auth-input:focus {
        border-color: #fff;
        box-shadow: 0 0 10px var(--ui-glow);
        outline: none;
    }

.auth-btn {
    background: #222;
    color: var(--ui-color);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    font-family: monospace;
    transition: all 0.2s ease;
    width: 85%;
    margin-bottom: 10px;
    box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
}

    .auth-btn:hover {
        background: var(--ui-color);
        color: #000;
        text-shadow: none;
    }

    .auth-btn:active {
        box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
        transform: translateY(2px);
    }

.auth-link {
    font-size: 0.9em;
    cursor: pointer;
    color: gray;
    text-decoration: underline;
}

    .auth-link:hover {
        color: var(--ui-color);
    }

/* =========================================
   4. HAUPT-LAYOUT & PANELS
   ========================================= */
.view-section {
    display: none;
    flex-grow: 1;
    max-width: 95%;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}

.panel:last-child {
    margin-bottom: 0;
}

.game-layout-inner {
    display: grid;
    grid-template-columns: minmax(400px, 1fr) 360px 360px;
    gap: 20px;
    height: 100%;
    overflow: hidden;
}

.column-right, .column-far-right {
    min-width: 0;
}

.column-left, .column-right, .column-far-right {
    background: transparent !important;
    border-color: rgba(255, 0, 0, 0.1) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.scrollable-column {
    overflow-y: auto;
    height: 100%;
    padding-right: 5px;
}

.panel {
    /* Helleres Glas mit ganz leichtem Rot-Stich, schluckt deutlich weniger Licht */
    background: rgba(30, 10, 10, 0.35) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* Etwas hellere Kanten für bessere Konturen im Dunkeln */
    border: 1px solid rgba(255, 50, 50, 0.15) !important;
    border-top: 1px solid rgba(255, 80, 80, 0.4) !important;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* =========================================
   5. TOP-BAR & STATUS
   ========================================= */
.top-bar-container {
    display: none;
    flex-direction: column;
    background: #050505;
    border-bottom: 2px solid #222;
    z-index: var(--z-top-bar);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    position: relative;
}

    /* Ein feiner, animierter Daten-Strahl am unteren Rand der Top-Bar */
    .top-bar-container::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, transparent 0%, var(--ui-color) 50%, transparent 100%);
        background-size: 200% 100%;
        animation: topbar-scan 4s linear infinite;
        opacity: 0.7;
    }

@keyframes topbar-scan {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.top-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 5px;
    background: linear-gradient(180deg, rgba(15,15,15,0.9) 0%, rgba(5,5,5,1) 100%);
}

/* =========================================
   PHASE 4.1: LIVE RESSOURCEN HUD
   ========================================= */
.top-bar-resources {
    display: flex;
    justify-content: space-evenly;
    padding: 8px 10px;
    background: #020202;
    border-top: 1px solid #111;
    box-shadow: inset 0 10px 20px rgba(0,0,0,0.9);
    gap: 12px;
    flex-wrap: wrap;
}

.res-item-hud {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 150px;
    background: linear-gradient(135deg, rgba(15,15,18,0.9) 0%, rgba(5,5,5,0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 2px solid #333;
    border-radius: 0;
    padding: 8px 12px;
    position: relative;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
    transition: all 0.3s;
    /* Mechanischer Cut an den Ecken */
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

    .res-item-hud:hover {
        background: linear-gradient(135deg, rgba(25,25,30,0.9) 0%, rgba(5,5,5,0.98) 100%);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
        transform: translateY(-1px);
    }

.res-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75em;
    color: #999;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Orbitron', sans-serif;
}

.res-rate {
    color: var(--ui-info);
    font-family: monospace;
    text-shadow: 0 0 5px var(--ui-info-dark-glow);
}

.res-values {
    font-family: monospace;
    font-size: 1.25em;
    text-align: right;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

    .res-values strong {
        color: #fff;
        text-shadow: 0 0 8px rgba(255,255,255,0.4);
    }

    .res-values .res-cap {
        color: #666;
        font-size: 0.8em;
    }

    .res-cap-compact {
        display: none;
    }

/* Cyberpunk Progress Balken */
.res-bar-container {
    height: 6px;
    background: #000;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #222;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.9);
    position: relative;
}

    /* CRT Raster über den Füllbalken! */
    .res-bar-container::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.6) 2px, rgba(0,0,0,0.6) 4px);
        z-index: 2;
        pointer-events: none;
    }

.res-bar-fill {
    height: 100%;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s;
    position: relative;
    z-index: 1;
}

/* Farb-Akzente für die Panels (Rahmen oben + Balken) */
.res-item-hud.ore {
    border-top-color: #cd853f;
}

    .res-item-hud.ore .res-bar-fill {
        background: #cd853f;
        box-shadow: 0 0 10px #cd853f;
    }

.res-item-hud.oil {
    border-top-color: #8888aa;
}

    .res-item-hud.oil .res-bar-fill {
        background: #8888aa;
        box-shadow: 0 0 10px #8888aa;
    }

.res-item-hud.fuel {
    border-top-color: #f55;
}

    .res-item-hud.fuel .res-bar-fill {
        background: #f55;
        box-shadow: 0 0 10px #f55;
    }

.res-item-hud.food {
    border-top-color: #4caf50;
}

    .res-item-hud.food .res-bar-fill {
        background: #4caf50;
        box-shadow: 0 0 10px #4caf50;
    }

.res-item-hud.diamond {
    border-top-color: #0ff;
}

    .res-item-hud.diamond .res-bar-fill {
        background: #0ff;
        box-shadow: 0 0 10px #0ff;
    }

.res-item-hud.power {
    border-top-color: #87ff00;
}

/* Kritischer Status (Lager voll / Stromausfall) */
.res-item-hud.critical {
    border-top-color: var(--ui-danger-light) !important;
    animation: hud-critical-pulse 1.5s infinite alternate;
}

    .res-item-hud.critical .res-values strong {
        color: var(--ui-danger-light);
        text-shadow: 0 0 10px var(--ui-danger-light);
    }

@keyframes hud-critical-pulse {
    0% {
        box-shadow: inset 0 0 15px rgba(255, 85, 85, 0.1);
        filter: drop-shadow(0 0 2px rgba(255, 85, 85, 0.2));
    }

    100% {
        box-shadow: inset 0 0 30px rgba(255, 85, 85, 0.3);
        filter: drop-shadow(0 0 8px rgba(255, 85, 85, 0.6));
    }
}

/* =========================================
   BASE SELECT DROPDOWN (Cyber-Look)
   ========================================= */
.base-select {
    background: rgba(5, 5, 5, 0.9);
    color: var(--ui-color);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-left: 3px solid var(--ui-color);
    border-radius: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1em;
    font-weight: bold;
    padding: 8px 15px;
    cursor: pointer;
    text-align: center;
    appearance: none;
    outline: none;
    transition: all 0.3s;
    /* Mechanische Ecken */
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

    .base-select:hover, .base-select:focus {
        border-color: var(--ui-color);
        background: rgba(20, 30, 20, 0.9);
        filter: drop-shadow(0 0 8px var(--ui-glow));
    }

    .base-select option {
        background-color: #0a0a0a;
        color: var(--ui-color);
        padding: 10px;
        font-family: monospace;
    }


.topbar-right-cluster {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

/* =========================================
   TOP-BAR SCORE & BONUS CONTAINER
   ========================================= */
.score-module-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: linear-gradient(135deg, rgba(20,20,20,0.95) 0%, rgba(5,5,5,0.98) 100%);
    border: 1px solid rgba(0, 170, 170, 0.2);
    border-right: 4px solid var(--ui-info);
    border-radius: 0;
    padding: 8px 16px;
    transition: all 0.3s ease;
    min-width: 190px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.8));
}

    .score-module-container:hover {
        border-color: rgba(0, 170, 170, 0.5);
        filter: drop-shadow(0 0 10px rgba(0, 170, 170, 0.2));
    }

.score-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
}

.score-title {
    color: #888;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
    font-family: 'Orbitron', sans-serif;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-icon {
    font-size: 1.3em;
    filter: drop-shadow(0 0 5px var(--ui-info));
}

.score-value {
    color: var(--ui-info);
    font-size: 1.5em;
    font-weight: bold;
    font-family: monospace;
    text-shadow: 0 0 12px var(--ui-info-dark-glow);
    letter-spacing: 1px;
}

.global-bonus-badge {
    margin-top: 8px;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: var(--ui-color);
    font-size: 0.75em;
    font-weight: bold;
    text-align: center;
    padding: 4px 8px;
    border-radius: 0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    cursor: help;
    transition: all 0.2s ease;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

    .global-bonus-badge:hover {
        background: rgba(0, 255, 0, 0.15);
        border-color: var(--ui-color);
        filter: drop-shadow(0 0 5px rgba(0, 255, 0, 0.3));
    }

.topbar-event-info {
    min-width: 250px;
    max-width: 360px;
    height: 58px;
    box-sizing: border-box;
    margin-top: 0;
    padding: 7px 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 150, 40, 0.12), rgba(90, 20, 0, 0.22));
    border: 1px solid rgba(255, 180, 80, 0.42);
    border-left: 3px solid #ffb14a;
    color: #ffd79a;
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
    transition: all 0.2s ease;
}

    .topbar-event-info:hover {
        background: linear-gradient(135deg, rgba(255, 170, 60, 0.18), rgba(120, 35, 0, 0.3));
        filter: drop-shadow(0 0 8px rgba(255, 165, 70, 0.28));
    }

.topbar-event-kicker {
    color: #c78b45;
    font-size: 0.63em;
    line-height: 1.1;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    text-align: right;
}

.topbar-event-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.topbar-event-name {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #ffe5b5;
    font-size: 0.82em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.topbar-event-countdown {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    line-height: 1;
}

.topbar-event-countdown small {
    color: #b87e36;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.56em;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.topbar-event-timer {
    flex: 0 0 auto;
    color: #ffb14a;
    font-family: monospace;
    font-size: 0.92em;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(255, 150, 40, 0.45);
}

.topbar-event-more {
    position: absolute;
    top: 3px;
    left: 6px;
    padding: 1px 5px;
    border-radius: 8px;
    background: rgba(255, 180, 80, 0.16);
    color: #ffd79a;
    border: 1px solid rgba(255, 180, 80, 0.35);
    font-size: 0.65em;
    font-weight: 800;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--ui-color);
    border-radius: 50%;
    animation: pulse-green 1.5s infinite;
}

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

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

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

/* =========================================
   TOP-BAR COMMANDER CONTAINER (HIGH-TECH UPGRADE)
   ========================================= */
.commander-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(15,15,15,0.95) 0%, rgba(5,5,5,0.98) 100%), repeating-linear-gradient(transparent, transparent 2px, rgba(0, 255, 0, 0.02) 2px, rgba(0, 255, 0, 0.02) 4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--ui-highlight);
    padding: 8px 20px 8px 15px;
    border-radius: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.9));
}

    .commander-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: -50%;
        width: 30%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
        transform: skewX(-45deg);
        animation: cyber-sweep 8s infinite;
        pointer-events: none;
    }

@keyframes cyber-sweep {
    0% {
        left: -50%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.commander-container:hover {
    border-color: rgba(170, 170, 0, 0.3);
    filter: drop-shadow(0 0 10px rgba(170, 170, 0, 0.15));
}

.commander-badge-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 4px var(--ui-highlight));
    animation: hq-pulse 2.5s infinite alternate ease-in-out;
}

@keyframes hq-pulse {
    0% {
        filter: drop-shadow(0 0 1px var(--ui-highlight));
    }

    100% {
        filter: drop-shadow(0 0 8px var(--ui-highlight));
    }
}

.commander-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #443300 0%, #111100 100%);
    width: 44px;
    height: 50px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

    .commander-badge::before {
        content: '';
        position: absolute;
        width: 40px;
        height: 46px;
        background: #080808;
        clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
        z-index: 1;
    }

    .commander-badge span {
        position: relative;
        z-index: 2;
        color: var(--ui-highlight);
        font-weight: bold;
        font-size: 1.4em;
        text-shadow: 0 0 10px var(--ui-highlight), 0 0 20px var(--ui-highlight);
        font-family: monospace;
    }

.commander-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px dashed #333;
    padding-right: 15px;
}

.commander-name {
    color: #fff;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 8px rgba(255,255,255,0.4);
}

.commander-rank {
    color: var(--ui-highlight);
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0.9;
    margin-top: 2px;
}

.commander-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.commander-cost {
    font-size: 0.8em;
    color: #666;
    display: flex;
    gap: 6px;
    font-family: monospace;
    letter-spacing: 1px;
}

    .commander-cost strong {
        color: #ddd;
        text-shadow: 0 0 5px rgba(255,255,255,0.2);
    }

.btn-hq-upgrade {
    background: rgba(170, 170, 0, 0.05);
    color: var(--ui-highlight);
    border: 1px solid var(--ui-highlight);
    padding: 6px 14px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

    .btn-hq-upgrade:hover {
        background: var(--ui-highlight);
        color: #000;
        filter: drop-shadow(0 0 8px var(--ui-highlight-dark-glow));
        transform: scale(1.02);
    }

    .btn-hq-upgrade.researching {
        background: #050505;
        color: var(--ui-info);
        border-color: var(--ui-info);
        cursor: not-allowed;
        animation: pulse-research 2s infinite;
    }

@keyframes pulse-research {
    0% {
        opacity: 0.6;
        filter: none;
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 8px var(--ui-info));
        text-shadow: 0 0 5px var(--ui-info);
    }

    100% {
        opacity: 0.6;
        filter: none;
    }
}

/* =========================================
   6. VUE MENÜ (Linke Spalte)
   ========================================= */
.v-menu-btn {
    padding: 10px;
    cursor: pointer;
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 6px;
    margin-bottom: 8px;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(180deg, #2a2a2a 0%, #111 100%);
    color: var(--ui-color);
    font-family: monospace;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 3px 3px 6px var(--shadow-dark), -2px -2px 6px var(--shadow-light);
}

    .v-menu-btn:hover {
        background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
        border-color: var(--ui-color);
        color: #fff;
        text-shadow: 0 0 5px var(--ui-color);
        transform: translateY(-1px);
        box-shadow: 4px 4px 8px var(--shadow-dark), -2px -2px 6px var(--shadow-light), inset 0 0 10px var(--ui-glow);
    }

    .v-menu-btn:active, .v-menu-btn.active {
        background: var(--ui-color);
        color: #000;
        text-shadow: none;
        border-color: #fff;
        transform: translateY(2px);
        box-shadow: inset 3px 3px 6px rgba(0,0,0,0.6), inset -2px -2px 5px rgba(255,255,255,0.4);
    }

    .v-menu-btn.alert {
        background: linear-gradient(180deg, #550000 0%, #220000 100%);
        color: #fff;
        border-color: var(--ui-danger-light);
        animation: pulse-red-menu 2s infinite;
    }

    .v-menu-btn.logout {
        color: var(--ui-danger-light);
        border-color: rgba(255, 85, 85, 0.3);
    }

        .v-menu-btn.logout:hover {
            background: linear-gradient(180deg, #550000 0%, #220000 100%);
            border-color: var(--ui-danger-light);
            color: #fff;
            text-shadow: 0 0 5px var(--ui-danger-light);
            box-shadow: 4px 4px 8px var(--shadow-dark), inset 0 0 10px var(--ui-danger-light-glow);
        }

.v-menu-header {
    color: var(--ui-highlight);
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(170, 170, 0, 0.15);
    margin-top: 25px;
    margin-bottom: 12px;
    text-align: center;
    font-size: 0.85em;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 4px;
}

@keyframes pulse-red-menu {
    0% {
        box-shadow: 3px 3px 6px var(--shadow-dark), 0 0 5px var(--ui-danger-light);
    }

    50% {
        box-shadow: 3px 3px 6px var(--shadow-dark), 0 0 15px var(--ui-danger-light);
    }

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

/* =========================================
   13. CUSTOM GLOBAL TOOLTIP (High-Tech Decoding)
   ========================================= */
#global-custom-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999999;
    background: linear-gradient(180deg, #111 0%, #050505 100%);
    border: 1px solid var(--ui-color);
    border-top: 3px solid var(--ui-highlight);
    color: #ddd;
    padding: 12px 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    border-radius: 6px;
    box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.9), inset 0 0 15px rgba(170, 170, 0, 0.05);
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    max-width: 350px;
    white-space: pre-wrap;
}

    #global-custom-tooltip strong {
        color: var(--ui-info);
        font-size: 1.05em;
    }

    /* Der Tooltip wird beim Auftauchen "entschlüsselt" */
    #global-custom-tooltip.visible {
        opacity: 1;
        visibility: visible;
        animation: tooltip-decode 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    }

/* Der Hacker-Glitch-Effekt (Ohne Transform-Kollision!) */
@keyframes tooltip-decode {
    0% {
        filter: blur(8px) brightness(3) contrast(4);
        clip-path: inset(20% 0 60% 0); /* Zeigt nur einen Schlitz */
        opacity: 0.2;
    }

    20% {
        filter: blur(2px) brightness(1.5) contrast(2);
        clip-path: inset(0 0 0 0);
    }

    40% {
        clip-path: inset(50% 0 30% 0); /* Ein zweites Zucken */
        opacity: 0.8;
    }

    60% {
        filter: blur(0) brightness(1) contrast(1);
        clip-path: inset(0 0 0 0);
    }

    100% {
        filter: blur(0);
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

/* =========================================
   ALLGEMEINE UI-ELEMENTE (Aus Sektion 10)
   ========================================= */
.cyber-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

    .cyber-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .cyber-switch .slider-switch {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #0f0f0f;
        border: 1px solid #333;
        transition: .4s;
        border-radius: 6px;
        box-shadow: inset 2px 2px 5px var(--shadow-dark);
    }

        .cyber-switch .slider-switch:before {
            position: absolute;
            content: "";
            height: 22px;
            width: 22px;
            left: 3px;
            bottom: 3px;
            background-color: #222;
            border: 1px solid rgba(0, 255, 0, 0.4);
            transition: .4s;
            border-radius: 4px;
            box-shadow: 2px 2px 5px rgba(0,0,0,0.8);
        }

    .cyber-switch input:checked + .slider-switch {
        background-color: #440000;
        border-color: var(--ui-danger-light);
    }

        .cyber-switch input:checked + .slider-switch:before {
            transform: translateX(30px);
            background-color: var(--ui-danger-light);
            box-shadow: 0 0 10px var(--ui-danger-light);
            border-color: transparent;
        }

.view-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 30px;
    background: #050505;
    border: 1px solid #222;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.9), 0 5px 15px rgba(0,0,0,0.5);
}

.view-section th {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    color: var(--ui-highlight);
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid #333;
    padding: 12px 15px;
    border-bottom: 2px solid var(--ui-color);
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(170,170,0,0.3);
}

.view-section td {
    border: 1px solid #1a1a1a;
    padding: 12px 15px;
    color: #ccc;
    background: rgba(255, 255, 255, 0.01);
}

.view-section tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.4);
}

.view-section tr:hover td {
    background: rgba(0, 255, 0, 0.05);
    color: #fff;
    border-color: #333;
}

.view-section input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

    .view-section input[type=range]::-webkit-slider-thumb {
        -webkit-appearance: none;
        height: 24px;
        width: 12px;
        background: var(--ui-color);
        cursor: pointer;
        box-shadow: 0 0 10px var(--ui-glow);
        border-radius: 2px;
        margin-top: -10px;
    }

    .view-section input[type=range]::-webkit-slider-runnable-track {
        width: 100%;
        height: 4px;
        cursor: pointer;
        background: #050505;
        border-radius: 2px;
        border: 1px solid #333;
        box-shadow: inset 1px 1px 3px rgba(0,0,0,0.9);
    }

    .view-section input[type=range]:focus {
        outline: none;
    }

/* =========================================
   12. MOBILE OPTIMIERUNG
   ========================================= */
@media (max-width: 900px) {
    .rank-path-badge {
        width: 28px;
        height: 31px;
        margin-left: 7px;
    }

    .rank-path-shape {
        width: 27px;
        height: 31px;
        flex-basis: 27px;
    }

    body {
        height: auto;
        overflow-y: auto;
    }

    #view-main:not([style*="display: none"]) {
        display: flex !important;
        flex-direction: column;
        gap: 15px;
        height: auto;
    }

    .game-layout-inner {
        display: flex;
        flex-direction: column;
        gap: 15px;
        height: auto;
    }

    .view-section, .scrollable-column, .column-right, .column-far-right {
        height: auto;
        width: 100%;
        max-width: 100vw;
        margin: 0;
        padding: 10px;
        overflow: visible;
        box-sizing: border-box;
    }

    .panel {
        width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
    }

    #mobileMenuBtn {
        display: block !important;
    }

    .column-left {
        position: fixed;
        top: 0;
        bottom: 0;
        left: -100%;
        width: 85%;
        max-width: 350px;
        z-index: var(--z-mobile-menu);
        background: rgba(15, 2, 2, 0.95);
        border-right: 1px solid rgba(255, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: left 0.3s ease-in-out;
        padding-top: 60px;
        padding-bottom: 20px;
        box-shadow: 10px 0 20px rgba(0,0,0,0.9);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

        .column-left.open {
            left: 0;
        }

    .map-container {
        max-height: none;
        height: auto;
        padding: 5px;
        width: 100%;
        box-sizing: border-box;
    }

    #strategyMap {
        display: grid;
        gap: 2px;
        background-color: #111;
        padding: 2px;
        border: 1px solid var(--ui-color);
        cursor: grab;
        overflow: hidden;
        touch-action: none;
        height: calc(100vh - 250px);
        width: calc(100vh - 250px);
        max-width: 100%;
        margin: 0 auto;
    }

    .map-tile {
        min-width: 0;
        min-height: 0;
        overflow: hidden;
        font-size: 8px;
        line-height: 1;
        word-break: break-all;
    }

        .map-tile.base, .map-tile.camp, .map-tile.node, .map-tile.explored {
            font-size: 8px;
        }

    #centerActionContent {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        #centerActionContent > div {
            width: 100%;
            max-width: 350px;
            margin: 0 auto 15px auto;
            box-sizing: border-box;
        }

    #view-reports {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding: 10px;
        box-sizing: border-box;
    }

        #view-reports > div {
            display: flex;
            flex-direction: column;
            width: 100%;
            box-sizing: border-box;
        }

    #reportCategories {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 15px;
        justify-content: center;
    }

    .report-cat {
        flex-grow: 1;
        text-align: center;
        border: 1px solid #333;
    }

        .report-cat.active {
            border: 1px solid var(--ui-color);
            border-left: 1px solid var(--ui-color);
        }

    #reportList {
        width: 100%;
        max-height: 30vh;
        overflow-y: auto;
        border: 1px solid rgba(0, 255, 0, 0.3);
        background: #1a1a1a;
        margin-bottom: 15px;
        padding: 5px;
        box-sizing: border-box;
        border-radius: 8px;
        box-shadow: inset 4px 4px 10px rgba(0,0,0,0.8);
    }

    #reportDetail {
        width: 100%;
        height: auto;
        min-height: 250px;
        border: 1px solid rgba(0, 255, 0, 0.3);
        background: #0f0f0f;
        padding: 15px;
        box-sizing: border-box;
        border-radius: 8px;
        box-shadow: inset 4px 4px 10px rgba(0,0,0,0.8);
    }

        #reportDetail, #reportDetail div, #reportDetail p, #reportDetail pre {
            white-space: pre-wrap;
            word-wrap: break-word;
            word-break: break-word;
            overflow-wrap: break-word;
            max-width: 100%;
        }

    .auth-box {
        width: 90%;
        max-width: 350px;
        padding: 20px;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .auth-input, .auth-btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    #customConfirmOverlay > div {
        width: 90% !important;
        max-width: 380px !important;
        box-sizing: border-box !important;
    }

    .view-section table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        border: 1px solid var(--ui-color);
        box-sizing: border-box;
    }

    .view-section th, .view-section td {
        padding: 5px 10px;
        font-size: 0.9em;
    }

    body > div[style*="flex-grow: 1"] {
        display: block !important;
        overflow: visible;
        height: auto;
    }

    #mainContentArea {
        display: block;
        overflow: visible;
        height: auto;
    }

    .top-bar-header {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px 5px;
    }

        .top-bar-header > select, .top-bar-header > div {
            margin: 0;
            text-align: center;
        }

    .view-section {
        max-width: 100vw;
        padding: 10px;
        margin: 0;
    }

        .view-section .panel {
            max-width: 100%;
            width: 100%;
            overflow-x: hidden;
            box-sizing: border-box;
        }

    #strategyMap::before, #strategyMap::after, .map-container::before, .map-container::after {
        display: none;
    }

    .map-container, #strategyMap {
        box-shadow: none;
    }

    .map-tile {
        box-shadow: none;
        transition: none;
    }

        .map-tile:hover {
            transform: none !important;
            z-index: auto !important;
        }

        .map-tile.fog {
            background: repeating-linear-gradient(45deg, #391212, #391212 4px, #222222 4px, #222222 8px);
            box-shadow: none;
        }

        .map-tile.explored {
            background: radial-gradient(circle, rgba(30, 45, 30, 0.8) 0%, rgba(20, 25, 20, 0.9) 100%);
        }

        .map-tile.base {
            background: var(--ui-color);
            color: #000;
            border: none !important;
            box-shadow: none;
        }

        .map-tile.camp {
            background: #f00;
            animation: none;
            border: none !important;
            box-shadow: none;
        }

        .map-tile.node-diamond {
            background: #00ffff;
            box-shadow: none;
        }

        .map-tile.node-ore {
            background: #ffaa00;
            border: none !important;
            box-shadow: none;
        }

        .map-tile.node-oil {
            background: #8888aa;
            box-shadow: none;
        }

        .map-tile.node-food {
            background: #88ff88;
            box-shadow: none;
        }
}

@media (max-height: 600px) and (orientation: landscape) {
    .top-bar-header {
        padding: 2px 10px;
        gap: 5px;
    }

    .top-bar-resources {
        padding: 2px 5px;
        font-size: 0.9em;
        gap: 5px;
    }

    #mobileMenuBtn {
        padding: 2px 8px;
        margin: 0;
    }

    .column-left {
        padding-top: 50px;
        width: 45%;
        max-width: 320px;
        overflow-y: auto;
    }

    .map-container {
        padding: 2px;
    }

    #strategyMap {
        height: 55vh;
        width: 55vh;
        max-width: 100%;
        margin: 0 auto;
    }

    .view-section {
        padding: 5px;
        gap: 5px;
    }

    .panel {
        padding: 10px;
        margin-bottom: 5px;
    }
}

/* =========================================
   CLEANUP: TRANSAPRENZ & ALTE FARBBLÖCKE (REPARATUR)
   ========================================= */

/* 1. Reißt alle unsichtbaren schwarzen Wände HINTER dem Radar ein (BEHALTEN) */
#mainContentArea,
#view-main,
.column-center,
.game-layout-inner {
    background: transparent !important;
}

/* 2. Macht die Ziel-Eingabe (Koordinaten) gläsern und passend zum Sunset (BEHALTEN) */
.radar-target-panel {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 100, 50, 0.2) !important;
    border-bottom: 2px solid var(--ui-highlight) !important;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5) !important;
}

    .radar-target-panel input, .jump-input {
        background: rgba(0, 0, 0, 0.4) !important;
        border: 1px solid rgba(255, 100, 50, 0.3) !important;
        color: #fff !important;
    }

/* 3. Passt die ehemals giftgrünen Scanner-Ecken des Radars an den Sonnenuntergang an */
/* UND TÖTET DEN ÄTZENDEN SCHATTEN, der sie fett gemacht hat! */
.map-container::before {
    border-top: 3px solid rgba(255, 100, 0, 0.6) !important;
    border-left: 3px solid rgba(255, 100, 0, 0.6) !important;
    /* ALLE SCHATTEN-EFFEKTE ENTFERNEN */
    box-shadow: none !important;
    filter: none !important;
}

.map-container::after {
    border-bottom: 3px solid rgba(255, 100, 0, 0.6) !important;
    border-right: 3px solid rgba(255, 100, 0, 0.6) !important;
    /* ALLE SCHATTEN-EFFEKTE ENTFERNEN */
    box-shadow: none !important;
    filter: none !important;
}

/* 4. Killt den schwarzen Schatten-Abgrund UNTER dem Radar-Gehäuse */
.map-container {
    /* Nur noch ein leichtes, orange-rotes Glühen (innen und außen), kein tiefes Schwarz mehr! */
    box-shadow: 0 5px 15px rgba(50, 10, 0, 0.3), inset 0 0 20px rgba(255, 50, 0, 0.05) !important;
    margin-bottom: 0 !important; /* Nimmt unnötigen Abstand nach unten weg */
}

/* --- Prestige / Legacy Commander-Badges --- */
.commander-path-display {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.62));
}

.commander-path-display::before {
    content: '';
    position: absolute;
    inset: 6px;
    z-index: -2;
    border-radius: 50%;
    opacity: 0.34;
    filter: blur(9px);
    pointer-events: none;
}

.commander-path-display.prestige::before {
    background: radial-gradient(circle, rgba(210, 120, 255, 0.95), transparent 68%);
}

.commander-path-display.legacy::before {
    background: radial-gradient(circle, rgba(70, 210, 255, 0.9), transparent 68%);
}

.commander-path-shape {
    position: relative;
    width: 58px;
    height: 62px;
    flex: 0 0 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    isolation: isolate;
    border: none;
    overflow: hidden;
}

.commander-path-display.prestige .commander-path-shape {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.22), transparent 22%),
        radial-gradient(circle at 50% 38%, #9c4fff 0%, #54208f 42%, #13001e 100%);
    clip-path: polygon(50% 0%, 63% 18%, 86% 10%, 82% 34%, 100% 50%, 82% 66%, 86% 90%, 63% 82%, 50% 100%, 37% 82%, 14% 90%, 18% 66%, 0% 50%, 18% 34%, 14% 10%, 37% 18%);
    box-shadow: 0 0 18px rgba(190, 110, 255, 0.35), inset 0 0 16px rgba(255,255,255,0.08);
}

.commander-path-display.legacy .commander-path-shape {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.18), transparent 24%),
        radial-gradient(circle at 50% 34%, #21d1ff 0%, #116b92 42%, #02121c 100%);
    clip-path: polygon(50% 0%, 90% 14%, 100% 46%, 82% 82%, 50% 100%, 18% 82%, 0% 46%, 10% 14%);
    box-shadow: 0 0 18px rgba(80, 210, 255, 0.3), inset 0 0 16px rgba(255,255,255,0.07);
}

.commander-path-shape::before {
    content: '';
    position: absolute;
    inset: 4px;
    z-index: -1;
    background: linear-gradient(180deg, rgba(8,9,13,0.98), rgba(0,0,0,0.92));
    border: none;
}

.commander-path-display.prestige .commander-path-shape::before {
    clip-path: polygon(50% 0%, 63% 18%, 86% 10%, 82% 34%, 100% 50%, 82% 66%, 86% 90%, 63% 82%, 50% 100%, 37% 82%, 14% 90%, 18% 66%, 0% 50%, 18% 34%, 14% 10%, 37% 18%);
}

.commander-path-display.legacy .commander-path-shape::before {
    clip-path: polygon(50% 0%, 90% 14%, 100% 46%, 82% 82%, 50% 100%, 18% 82%, 0% 46%, 10% 14%);
}

.commander-path-shape::after {
    content: '';
    position: absolute;
    inset: 9px;
    z-index: -1;
    opacity: 0.28;
    background: linear-gradient(135deg, transparent 0 42%, currentColor 45% 55%, transparent 58% 100%);
    transform: rotate(-8deg);
}

.commander-path-level {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 1.18em;
    font-weight: 900;
    text-shadow: 0 0 10px currentColor, 0 0 18px currentColor;
    transform: translateY(3px);
}

.commander-path-glyph {
    position: absolute;
    top: 6px;
    right: 9px;
    z-index: 3;
    font-size: 0.66em;
    line-height: 1;
    opacity: 0.96;
    filter: drop-shadow(0 0 5px currentColor);
}

.commander-path-display.prestige .commander-path-level,
.commander-path-display.prestige .commander-path-glyph { color: #f0d0ff; }

.commander-path-display.legacy .commander-path-level,
.commander-path-display.legacy .commander-path-glyph { color: #c9f4ff; }

.commander-path-factor {
    position: absolute;
    left: 50%;
    bottom: -9px;
    transform: translateX(-50%);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 1px 6px;
    border: 1px solid rgba(214, 156, 255, 0.58);
    border-radius: 999px;
    background: rgba(18, 6, 28, 0.92);
    color: #f3d8ff;
    font-family: 'Orbitron', monospace;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.25;
    white-space: nowrap;
    box-shadow: 0 0 12px rgba(177, 88, 255, 0.35);
    pointer-events: none;
}

.rank-path-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    padding: 0;
    width: 32px;
    height: 34px;
    border: none;
    background: transparent;
    font-family: 'Orbitron', monospace;
    vertical-align: middle;
    white-space: nowrap;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.62));
}

.rank-path-badge.prestige {
    color: #e6c2ff;
}

.rank-path-badge.legacy {
    color: #bcefff;
}

.rank-path-shape {
    position: relative;
    width: 30px;
    height: 34px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    border: none;
    overflow: hidden;
}

.rank-path-badge.prestige .rank-path-shape {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.24), transparent 24%),
        radial-gradient(circle at 50% 38%, #9c4fff 0%, #54208f 43%, #13001e 100%);
    clip-path: polygon(50% 0%, 63% 18%, 86% 10%, 82% 34%, 100% 50%, 82% 66%, 86% 90%, 63% 82%, 50% 100%, 37% 82%, 14% 90%, 18% 66%, 0% 50%, 18% 34%, 14% 10%, 37% 18%);
    box-shadow: 0 0 12px rgba(190, 110, 255, 0.32), inset 0 0 9px rgba(255,255,255,0.08);
}

.rank-path-badge.legacy .rank-path-shape {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.20), transparent 24%),
        radial-gradient(circle at 50% 34%, #21d1ff 0%, #116b92 43%, #02121c 100%);
    clip-path: polygon(50% 0%, 90% 14%, 100% 46%, 82% 82%, 50% 100%, 18% 82%, 0% 46%, 10% 14%);
    box-shadow: 0 0 12px rgba(80, 210, 255, 0.28), inset 0 0 9px rgba(255,255,255,0.07);
}

.rank-path-shape::before {
    content: '';
    position: absolute;
    inset: 3px;
    z-index: -1;
    background: linear-gradient(180deg, rgba(8,9,13,0.98), rgba(0,0,0,0.92));
    border: none;
}

.rank-path-badge.prestige .rank-path-shape::before {
    clip-path: polygon(50% 0%, 63% 18%, 86% 10%, 82% 34%, 100% 50%, 82% 66%, 86% 90%, 63% 82%, 50% 100%, 37% 82%, 14% 90%, 18% 66%, 0% 50%, 18% 34%, 14% 10%, 37% 18%);
}

.rank-path-badge.legacy .rank-path-shape::before {
    clip-path: polygon(50% 0%, 90% 14%, 100% 46%, 82% 82%, 50% 100%, 18% 82%, 0% 46%, 10% 14%);
}

.rank-path-shape::after {
    content: '';
    position: absolute;
    inset: 7px;
    z-index: -1;
    opacity: 0.22;
    background: linear-gradient(135deg, transparent 0 42%, currentColor 45% 55%, transparent 58% 100%);
    transform: rotate(-8deg);
}

.rank-path-level {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 0.82em;
    line-height: 1;
    font-weight: 900;
    text-shadow: 0 0 7px currentColor, 0 0 13px currentColor;
    transform: translateY(2px);
}

.rank-path-glyph {
    position: absolute;
    top: 3px;
    right: 4px;
    z-index: 3;
    font-size: 0.48em;
    line-height: 1;
    opacity: 0.96;
    filter: drop-shadow(0 0 3px currentColor);
}

.rank-path-badge.prestige .rank-path-level,
.rank-path-badge.prestige .rank-path-glyph {
    color: #f0d0ff;
}

.rank-path-badge.legacy .rank-path-level,
.rank-path-badge.legacy .rank-path-glyph {
    color: #c9f4ff;
}

@media (max-width: 900px) {
    .commander-path-display { width: 64px; height: 56px; }
    .commander-path-shape { width: 52px; height: 56px; flex-basis: 52px; }
}

/* Legacy project showcase cards */
.legacy-project-panel {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: visible;
    padding: 18px;
    border: 1px solid rgba(91, 197, 255, 0.22);
    border-radius: 12px;
    background:
        radial-gradient(circle at top left, rgba(48, 190, 255, 0.10), transparent 34%),
        linear-gradient(180deg, rgba(6, 16, 24, 0.96), rgba(3, 7, 11, 0.98));
    box-shadow: 0 0 22px rgba(40, 160, 255, 0.06), inset 0 0 0 1px rgba(255,255,255,0.02);
}

.legacy-project-panel__title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.legacy-project-panel__title h3 {
    margin: 0;
    color: #9fe2ff;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.legacy-project-panel__title p,
.legacy-project-panel__empty {
    margin: 0;
    color: #8fa3b5;
    line-height: 1.45;
}

.legacy-active-project {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(112, 216, 255, 0.23);
    border-radius: 12px;
    background:
        radial-gradient(circle at top right, rgba(126, 222, 255, 0.13), transparent 34%),
        linear-gradient(135deg, rgba(7, 21, 32, 0.96), rgba(5, 11, 17, 0.96));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025);
}

.legacy-active-project__summary {
    display: grid;
    grid-template-columns: minmax(120px, auto) 1fr auto;
    gap: 8px 12px;
    align-items: center;
    min-width: 0;
}

.legacy-active-project span,
.legacy-active-project__progress-top span {
    color: #6fbbe0;
    font-size: 0.74em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legacy-active-project strong,
.legacy-active-project__progress-top strong {
    min-width: 0;
    color: #fff;
    overflow-wrap: anywhere;
}

.legacy-active-project em {
    color: #b8cbd9;
    font-style: normal;
    white-space: nowrap;
}

.legacy-active-project__progress {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.legacy-active-project__progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.legacy-active-project__bar {
    position: relative;
    height: 12px;
    overflow: hidden;
    border: 1px solid rgba(142, 223, 255, 0.22);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.38);
    box-shadow: inset 0 0 8px rgba(0,0,0,0.45);
}

.legacy-active-project__bar-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f8fff, #72e2ff, #c6f7ff);
    box-shadow: 0 0 14px rgba(114, 226, 255, 0.36);
    transition: width 0.35s ease;
}

.legacy-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.legacy-project-card {
    position: relative;
    min-width: 0;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(95, 197, 255, 0.24);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(14, 36, 52, 0.94), rgba(5, 10, 16, 0.98) 56%),
        radial-gradient(circle at 18% 8%, rgba(111, 222, 255, 0.15), transparent 28%);
    box-shadow: 0 10px 28px rgba(0,0,0,0.26), inset 0 0 0 1px rgba(255,255,255,0.025);
}

.legacy-project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(155,232,255,0.10), transparent 24% 76%, rgba(155,232,255,0.06));
    opacity: 0.55;
}

.legacy-project-card__header,
.legacy-project-card__content,
.legacy-project-card__button {
    position: relative;
    z-index: 1;
}

.legacy-project-card__header {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
    min-width: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(159, 226, 255, 0.12);
}

.legacy-project-card__header h4 {
    min-width: 0;
    margin: 0;
    color: #d8f5ff;
    font-size: 1.08em;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.legacy-project-card__header span {
    flex: 0 0 auto;
    padding: 4px 7px;
    border: 1px solid rgba(111, 210, 255, 0.25);
    border-radius: 999px;
    color: #8edfff;
    background: rgba(13, 42, 60, 0.62);
    font-size: 0.62em;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.legacy-project-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #b5c8d5;
    line-height: 1.45;
}

.legacy-project-card__label {
    color: #78c7ed;
    font-size: 0.72em;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legacy-project-card__costs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.legacy-project-card__costs span {
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid rgba(255,255,255,0.055);
    border-radius: 8px;
    color: #e5f7ff;
    background: rgba(0,0,0,0.24);
    overflow-wrap: anywhere;
}

.legacy-project-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}

.legacy-project-card__meta span {
    padding: 5px 7px;
    border-radius: 999px;
    color: #9fb7c6;
    background: rgba(255,255,255,0.04);
    font-size: 0.86em;
}

.legacy-project-card__button {
    width: 100%;
    margin-top: auto;
}


.legacy-funding-control {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 10px;
    border: 1px solid rgba(116, 222, 255, 0.18);
    border-radius: 10px;
    background: rgba(3, 12, 18, 0.62);
}

.legacy-funding-control__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #cdefff;
}

.legacy-funding-control__top label {
    color: #78c7ed;
    font-size: 0.78em;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.legacy-funding-control__top strong {
    color: #fff;
    font-family: monospace;
    white-space: nowrap;
}

.legacy-funding-control input[type="range"] {
    width: 100%;
    accent-color: #72e2ff;
}

.legacy-funding-control__payment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.legacy-funding-control__payment span {
    min-width: 0;
    padding: 6px 7px;
    border: 1px solid rgba(255,255,255,0.055);
    border-radius: 7px;
    color: #e5f7ff;
    background: rgba(0,0,0,0.24);
    font-size: 0.86em;
    overflow-wrap: anywhere;
}

.legacy-funding-control__hint {
    min-height: 1.3em;
    color: #93d7f5;
    font-size: 0.82em;
    line-height: 1.35;
}

.legacy-funding-control.is-invalid {
    border-color: rgba(255, 86, 86, 0.55);
    background: rgba(38, 7, 9, 0.62);
    box-shadow: inset 0 0 0 1px rgba(255, 86, 86, 0.08);
}

.legacy-funding-control.is-invalid input[type="range"] {
    accent-color: #ff5f5f;
}

.legacy-funding-control.is-invalid .legacy-funding-control__hint {
    color: #ff9b9b;
}

.legacy-funding-control.is-invalid .legacy-funding-control__payment span {
    border-color: rgba(255, 86, 86, 0.18);
}

.legacy-active-project.is-funding .legacy-active-project__bar-fill {
    background: linear-gradient(90deg, #49b5ff, #72e2ff, #d6fbff);
}

@media (max-width: 1180px) {
    .legacy-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .legacy-project-panel {
        padding: 14px;
    }

    .legacy-project-grid,
    .legacy-active-project__summary {
        grid-template-columns: 1fr;
    }

    .legacy-active-project em {
        white-space: normal;
    }

    .legacy-project-card {
        min-height: 0;
    }
}

@media (max-width: 460px) {
    .legacy-project-card__costs {
        grid-template-columns: 1fr;
    }

    .legacy-project-card__header {
        flex-direction: column;
    }
}

/* =========================================
   EVENT-ZENTRALE / THE MEAN NEIGHBOR
   ========================================= */
.event-dashboard {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.event-hero,
.event-panel,
.event-card,
.event-shop-card {
    border: 1px solid rgba(255, 211, 138, 0.18);
    background: linear-gradient(180deg, rgba(20, 16, 10, 0.92), rgba(7, 7, 9, 0.92));
    box-shadow: inset 0 0 20px rgba(0,0,0,0.65), 0 14px 28px rgba(0,0,0,0.35);
    border-radius: 12px;
}

.event-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
}

.event-kicker {
    color: #ffd38a;
    font-family: monospace;
    letter-spacing: 3px;
    font-size: 0.85em;
}

.event-hero h2 {
    margin: 4px 0 8px 0;
    color: #fff;
    border: none;
}

.event-hero p {
    margin: 0;
    color: #aaa;
    max-width: 900px;
}

.event-currency-box {
    min-width: 220px;
    padding: 16px;
    border: 1px solid rgba(255, 211, 138, 0.25);
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.event-currency-box span,
.event-currency-box small {
    color: #b8a982;
    font-family: monospace;
    text-transform: uppercase;
}

.event-currency-box strong {
    color: #ffd38a;
    font-size: 2em;
    text-shadow: 0 0 12px rgba(255, 211, 138, 0.35);
}

.event-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.2fr);
    gap: 18px;
}

.event-panel {
    padding: 18px;
}

.event-panel h3 {
    margin: 0 0 14px 0;
    color: #ffd38a;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.event-card,
.event-shop-card {
    padding: 16px;
    margin-bottom: 14px;
}

.event-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.event-card-head h4 {
    margin: 0;
    color: #fff;
}

.event-card-head span {
    color: #ffd38a;
    font-family: monospace;
    font-size: 0.9em;
}

.neighbor-box {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.neighbor-box div {
    background: rgba(0,0,0,0.38);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px;
}

.neighbor-box span {
    display: block;
    color: #888;
    font-size: 0.8em;
    text-transform: uppercase;
}

.neighbor-box strong {
    color: #ffd38a;
}

.event-statline,
.event-shop-limits {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: #aaa;
    font-family: monospace;
    margin: 10px 0;
}

.neighbor-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-top: 12px;
}

.neighbor-actions label {
    color: #aaa;
    font-size: 0.85em;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.neighbor-actions input,
.neighbor-actions select {
    width: 120px;
    background: #000;
    color: #ffd38a;
    border: 1px solid rgba(255, 211, 138, 0.35);
    padding: 8px;
    font-family: monospace;
}

.neighbor-actions button,
.event-shop-card button {
    background: #211508;
    color: #ffd38a;
    border: 1px solid rgba(255, 211, 138, 0.45);
    padding: 9px 12px;
    cursor: pointer;
    font-weight: bold;
    font-family: monospace;
    border-radius: 6px;
}

.neighbor-actions button:hover,
.event-shop-card button:hover {
    background: #3b260d;
}

.neighbor-actions button:disabled,
.event-shop-card button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.neighbor-actions .btn-danger {
    color: #ff7777;
    border-color: #ff5555;
    background: #260707;
}

.neighbor-actions .btn-success {
    color: #9cffb0;
    border-color: #55cc66;
    background: #071d0b;
}


.neighbor-extra-hint {
    flex: 1 1 100%;
    color: #d8b870;
    border: 1px dashed rgba(255, 211, 138, 0.28);
    background: rgba(90, 58, 14, 0.18);
    border-radius: 8px;
    padding: 8px 10px;
    font-family: monospace;
    font-size: 0.84em;
}

.neighbor-actions select {
    min-width: 190px;
}

.neighbor-dossier {
    margin-top: 12px;
    border-style: dashed;
}

.neighbor-dossier-comment {
    color: #ffd38a;
    font-family: monospace;
    margin-top: 6px;
}

.neighbor-dossier-clues {
    margin-top: 8px;
    color: #aaa;
    font-family: monospace;
}

.neighbor-dossier-clues span {
    display: block;
    color: #888;
    font-size: 0.78em;
    text-transform: uppercase;
}

.event-statline--compact {
    margin-bottom: 0;
}

.mean-neighbor-map-modal {
    position: fixed;
    inset: 0;
    z-index: 22000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.mean-neighbor-map-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(2px);
}

.mean-neighbor-map-dialog {
    position: relative;
    width: min(900px, 96vw);
    max-height: 90vh;
    overflow: auto;
    border: 1px solid rgba(255, 211, 138, 0.42);
    background: linear-gradient(180deg, rgba(25, 18, 10, 0.98), rgba(5, 5, 7, 0.98));
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.72), inset 0 0 24px rgba(255, 180, 80, 0.08);
    padding: 16px;
}

.mean-neighbor-map-title,
.mean-neighbor-map-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.mean-neighbor-map-title {
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 211, 138, 0.18);
    padding-bottom: 10px;
}

.mean-neighbor-map-title span {
    color: #ffd38a;
    font-family: monospace;
    letter-spacing: 2px;
    font-size: 0.78em;
}

.mean-neighbor-map-title h3 {
    margin: 2px 0 0;
    color: #fff;
}

.mean-neighbor-map-title button,
.mean-neighbor-map-footer button {
    background: #211508;
    color: #ffd38a;
    border: 1px solid rgba(255, 211, 138, 0.42);
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
    font-family: monospace;
    border-radius: 6px;
}

.mean-neighbor-card--map {
    margin-bottom: 12px;
}

.mean-neighbor-map-footer {
    border-top: 1px solid rgba(255, 211, 138, 0.16);
    padding-top: 12px;
}

.event-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.event-empty {
    padding: 18px;
    color: #888;
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: 10px;
    text-align: center;
}

.toast-message.toast-neighbor,
.toast-message.toast-easter {
    background: linear-gradient(135deg, rgba(44, 31, 14, 0.98), rgba(12, 10, 8, 0.98));
    color: #ffd38a;
    border: 1px solid rgba(255, 211, 138, 0.7);
    box-shadow: 0 0 22px rgba(255, 180, 80, 0.28), inset 0 0 18px rgba(0,0,0,0.7);
    transform: rotate(-0.4deg) translateX(30px);
}

.toast-message.toast-neighbor.show,
.toast-message.toast-easter.show {
    transform: rotate(-0.4deg) translateX(0);
}

.toast-message.toast-easter {
    color: #ff8dff;
    border-color: rgba(255, 120, 255, 0.85);
    box-shadow: 0 0 28px rgba(255, 120, 255, 0.35), inset 0 0 18px rgba(0,0,0,0.7);
}

.toast-event-title {
    font-family: monospace;
    letter-spacing: 2px;
    font-weight: bold;
    font-size: 0.78em;
    margin-bottom: 4px;
    opacity: 0.88;
}

.toast-event-body {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.02em;
    line-height: 1.25;
}

body.event-radar-smear #radarContainer {
    filter: blur(3px) contrast(0.8) saturate(0.65);
    position: relative;
}

body.event-radar-smear #radarContainer::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(12deg, rgba(255,255,255,0.0) 0 9px, rgba(255, 211, 138, 0.08) 10px 11px),
        radial-gradient(circle at 45% 55%, rgba(255, 211, 138, 0.13), transparent 45%);
    mix-blend-mode: screen;
    animation: event-radar-smear-drift 1.5s infinite linear;
    border-radius: inherit;
}

@keyframes event-radar-smear-drift {
    0% { transform: translateX(-6px); opacity: 0.45; }
    50% { transform: translateX(6px); opacity: 0.7; }
    100% { transform: translateX(-6px); opacity: 0.45; }
}

@media (max-width: 1100px) {
    .event-grid,
    .event-hero,
    .neighbor-box {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .event-currency-box {
        align-items: flex-start;
    }
}

/* Event-Kartenmarker */
.event-marker-tile {
    border-color: rgba(255, 190, 80, 0.65) !important;
    background: radial-gradient(circle at center, rgba(80, 45, 12, 0.88), rgba(18, 12, 6, 0.82)) !important;
}
.map-tag-event {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 18px;
    padding: 1px 4px;
    border: 1px solid rgba(255, 210, 120, 0.9);
    border-radius: 4px;
    color: #ffd77a;
    background: rgba(0, 0, 0, 0.65);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-shadow: 0 0 6px #000;
    box-shadow: 0 0 8px rgba(255, 190, 80, 0.35);
}
.event-marker-mean_neighbor .map-tag-event {
    color: #ffb56a;
    border-color: #ff8d3a;
}
.event-marker-mean_neighbor_stash .map-tag-event {
    color: #fff0a6;
    border-color: #ffe56d;
}
.event-marker-mean_neighbor_decoy_found .map-tag-event {
    color: #ffcfda;
    border-color: #ff7a9a;
}

/* Mean-Neighbor-/Event-Toasts zentral anzeigen */
.toast-message.toast-neighbor,
.toast-message.toast-easter {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    width: min(560px, calc(100vw - 36px));
    text-align: center;
    justify-content: center;
    padding: 20px 24px;
    z-index: calc(var(--z-toast) + 5);
    transform: translate(-50%, -42%) scale(0.94) rotate(-0.6deg);
}

.toast-message.toast-neighbor.show,
.toast-message.toast-easter.show {
    transform: translate(-50%, -50%) scale(1) rotate(-0.6deg);
}

.toast-message.toast-easter {
    animation: event-easter-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes event-easter-pulse {
    from { box-shadow: 0 0 28px rgba(255, 120, 255, 0.35), inset 0 0 18px rgba(0,0,0,0.7); }
    to { box-shadow: 0 0 42px rgba(255, 120, 255, 0.55), inset 0 0 24px rgba(0,0,0,0.7); }
}

.event-grid.event-grid--active-only {
    grid-template-columns: minmax(0, 1fr);
}

.event-panel--active-event {
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
}

.event-grid.event-grid--center {
    grid-template-columns: minmax(380px, 0.95fr) minmax(520px, 1.35fr);
}

.event-shop-note {
    color: #a99a7b;
    margin: -6px 0 14px 0;
    line-height: 1.35;
}

.event-shop-details,
.event-reward-info {
    margin: 10px 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 211, 138, 0.22);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.32);
    color: #f0d6a0;
    font-family: monospace;
    font-size: 0.92em;
    line-height: 1.35;
}

.event-reward-info b {
    color: #ffd38a;
}

@media (max-width: 1180px) {
    .event-grid.event-grid--center {
        grid-template-columns: 1fr;
    }
}

.res-buff-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    padding: 1px 5px;
    border: 1px solid rgba(255, 211, 138, 0.65);
    border-radius: 999px;
    color: #ffd38a;
    background: rgba(255, 176, 64, 0.13);
    box-shadow: 0 0 8px rgba(255, 176, 64, 0.22);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    vertical-align: middle;
}

/* Lager-Überfüllung sichtbar machen (Ausnahmefälle/Boni/Events) */
.res-item-hud.overfilled {
    border-color: rgba(255, 180, 80, 0.75) !important;
    border-top-color: #ffb14a !important;
    box-shadow: inset 0 0 18px rgba(255, 180, 80, 0.12), 0 0 10px rgba(255, 180, 80, 0.18);
}

.res-overfill-pill {
    display: inline-flex;
    align-self: flex-start;
    margin: 3px 0 1px 0;
    padding: 1px 5px;
    border: 1px solid rgba(255, 180, 80, 0.55);
    color: #ffd79a;
    background: rgba(255, 180, 80, 0.1);
    font-size: 0.62em;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* =========================================
   STABILER TOPBAR-EVENTBLOCK
   - sitzt als eigener Slot in der TopBar
   - Position: zwischen Commander-Badge/HQ-Modul und Kommando-Punkten
   ========================================= */
#vue-top-bar-header.top-bar-header {
    gap: clamp(8px, 1vw, 16px);
}

.topbar-event-host {
    position: static;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 clamp(245px, 24vw, 360px);
    min-width: 230px;
    max-width: 380px;
    margin: 0 clamp(4px, 0.7vw, 12px);
}

.topbar-event-host[hidden],
.topbar-event-host:empty {
    display: none !important;
}

.topbar-event-host .topbar-event-info {
    appearance: none;
    border-radius: 0;
    font: inherit;
    text-align: left;
    pointer-events: auto;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    height: 58px;
}

.topbar-event-host .topbar-event-info[hidden] {
    display: none !important;
}

.topbar-event-info.is-scheduled {
    border-color: rgba(255, 210, 105, 0.44);
    border-left-color: #ffd36a;
    background: linear-gradient(135deg, rgba(255, 210, 90, 0.10), rgba(70, 45, 0, 0.23));
}

.topbar-event-info.is-active {
    border-color: rgba(255, 150, 75, 0.5);
    border-left-color: #ff8b3d;
}

.topbar-event-host .topbar-event-name,
.topbar-event-host .topbar-event-kicker,
.topbar-event-host .topbar-event-timer {
    user-select: none;
}

/* Prestige-/Legacy-Boni im Ressourcen-HUD sichtbar machen */
.res-prestige-buff-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 0 100%;
    min-height: 28px;
    padding: 5px 10px;
    margin: -2px 0 0;
    border: 1px solid rgba(179, 119, 255, 0.35);
    background: linear-gradient(90deg, rgba(61, 28, 103, 0.34), rgba(11, 12, 18, 0.92), rgba(184, 125, 44, 0.25));
    box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.7), 0 0 12px rgba(179, 119, 255, 0.08);
    color: #e9ddff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-sizing: border-box;
}

.res-prestige-buff-title {
    color: #8fa0b6;
    font-weight: 700;
}

.res-prestige-buff-chip {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-weight: 800;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.16);
}

.res-prestige-buff-chip.global {
    border-color: rgba(179, 119, 255, 0.75);
    color: #d9c1ff;
    background: rgba(122, 57, 201, 0.2);
}

.res-prestige-buff-chip.rebuild {
    border-color: rgba(255, 190, 91, 0.75);
    color: #ffd38a;
    background: rgba(255, 176, 64, 0.18);
}

.res-prestige-buff-chip.path {
    border-color: rgba(96, 210, 255, 0.55);
    color: #9fe2ff;
    background: rgba(39, 149, 193, 0.14);
}

.economy-buff-panel {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 14px;
    padding: 8px 10px;
    border: 1px solid rgba(179, 119, 255, 0.22);
    background: rgba(7, 7, 12, 0.86);
    color: #9fb5c8;
    font-family: monospace;
    font-size: 0.86em;
}

.economy-buff-panel strong {
    color: #e9ddff;
}

.economy-buff-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    color: #fff;
}

.economy-buff-pill.rebuild {
    color: #ffd38a;
    border-color: rgba(255,190,91,0.5);
}

.economy-buff-pill.global {
    color: #d9c1ff;
    border-color: rgba(179,119,255,0.55);
}

/* Aktive Prestige-/Legacy-Boni direkt im Kommando-Punkte-Modul */
.score-module-container.has-active-boni {
    min-width: 270px;
    border-color: rgba(179, 119, 255, 0.38);
    border-right-color: #b377ff;
    background: linear-gradient(135deg, rgba(21, 18, 32, 0.97) 0%, rgba(5, 5, 8, 0.98) 100%);
}

.score-active-boni {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid rgba(179, 119, 255, 0.22);
    cursor: help;
}

.score-active-boni-title {
    color: #8fa0b6;
    font-size: 0.68em;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-right: 2px;
}

.score-bonus-chip {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: #f2f6ff;
    font-size: 0.68em;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.score-bonus-chip.global {
    border-color: rgba(179, 119, 255, 0.72);
    color: #d9c1ff;
    background: rgba(122, 57, 201, 0.2);
}

.score-bonus-chip.rebuild {
    border-color: rgba(255, 190, 91, 0.72);
    color: #ffd38a;
    background: rgba(255, 176, 64, 0.18);
}

.score-bonus-chip.score {
    border-color: rgba(214, 156, 255, 0.72);
    color: #f0d0ff;
    background: rgba(122, 57, 201, 0.22);
}

.score-bonus-chip.path {
    border-color: rgba(96, 210, 255, 0.52);
    color: #9fe2ff;
    background: rgba(39, 149, 193, 0.14);
}

.commander-cost-note {
    display: block;
    margin-top: 2px;
    color: #b377ff;
    font-size: 0.68em;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.economy-rate-breakdown {
    display: grid;
    grid-template-columns: minmax(92px, 1fr) auto auto;
    gap: 4px 9px;
    align-items: center;
    min-width: 210px;
    font-family: monospace;
    line-height: 1.35;
}

.economy-rate-breakdown .rate-source {
    color: #8fa0b6;
}

.economy-rate-breakdown .rate-base {
    color: #69798a;
    text-align: right;
    white-space: nowrap;
}

.economy-rate-breakdown .rate-effective {
    color: var(--ui-color);
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.economy-rate-breakdown .rate-effective.negative {
    color: var(--ui-danger-light);
}

/* =========================================
   TOPBAR COMPACT: einfacher Basis-Dropdown & Kommando-Score
   ========================================= */
.topbar-left-cluster {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}


.base-switcher-topbar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.base-switch-arrow {
    width: 34px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 255, 255, 0.45);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: var(--ui-color);
    font-family: 'Orbitron', monospace;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.08);
}

.base-switch-arrow:hover:not(:disabled) {
    border-color: var(--ui-color);
    background: rgba(0, 255, 255, 0.12);
    text-shadow: 0 0 8px var(--ui-color);
}

.base-switch-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    filter: grayscale(1);
}

.base-select-topbar {
    min-width: 190px;
    max-width: min(260px, 22vw);
    height: 40px;
    padding: 7px 14px;
    font-size: 1em;
    text-align: left;
}

.score-module-container {
    padding: 7px 12px;
    min-width: 144px;
}

.score-module-container.has-active-boni {
    min-width: 218px;
}

.score-details.compact-score {
    align-items: flex-end;
}

.score-details.compact-score .score-display {
    gap: 8px;
    line-height: 1;
}

.score-details.compact-score .score-icon {
    font-size: 1.12em;
}

.score-details.compact-score .score-value {
    font-size: 1.34em;
    letter-spacing: 0.5px;
}

.score-active-boni {
    margin-top: 6px;
    padding-top: 6px;
    gap: 4px;
}

.score-active-boni-title {
    font-size: 0.58em;
    letter-spacing: 0.07em;
}

.score-bonus-chip {
    padding: 2px 6px;
    font-size: 0.62em;
}


/* Einstellungen: Basis-Umbenennung */
.base-rename-settings {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.base-rename-row {
    display: grid;
    grid-template-columns: minmax(170px, 0.9fr) minmax(180px, 1.2fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid #222;
    border-radius: 6px;
}

.base-rename-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    font-family: monospace;
}

.base-rename-meta strong {
    color: var(--ui-color);
    letter-spacing: 1px;
}

.base-rename-meta span,
.settings-muted {
    color: #7d8b94;
    font-size: 0.85em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.base-rename-row input {
    min-width: 0;
    background: #000;
    color: var(--ui-color);
    border: 1px solid #333;
    padding: 10px;
    font-family: monospace;
    box-shadow: inset 2px 2px 5px #000;
}

.base-rename-row button {
    background: #111;
    color: var(--ui-color);
    border: 1px solid var(--ui-color);
    cursor: pointer;
    padding: 10px 14px;
    font-weight: bold;
    font-family: monospace;
}

.base-rename-row button:hover {
    background: rgba(0, 255, 128, 0.08);
}

@media (max-width: 760px) {
    .base-rename-row {
        grid-template-columns: 1fr;
    }
}

/* Generic Event Operations: Konvoi / Sandsturm / Reaktorleck */
.event-operation-card {
    position: relative;
    overflow: hidden;
}

.event-operation-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.event-operation-grid div,
.event-operation-economy div {
    background: rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px;
}

.event-operation-grid span,
.event-operation-economy span,
.event-operation-actions span {
    display: block;
    color: #8f927f;
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.event-operation-grid strong,
.event-operation-economy strong {
    color: #ffd38a;
    font-family: monospace;
}

.event-operation-brief {
    border-left: 3px solid rgba(255, 211, 138, 0.42);
    background: rgba(255, 211, 138, 0.06);
    padding: 10px 12px;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-operation-brief b {
    color: #fff2c6;
}

.event-operation-brief span {
    color: #b7b09c;
}

.event-operation-economy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.event-operation-economy strong {
    display: block;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.event-operation-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.event-operation-actions button {
    background: #211508;
    color: #ffd38a;
    border: 1px solid rgba(255, 211, 138, 0.45);
    padding: 10px 14px;
    cursor: pointer;
    font-weight: bold;
    font-family: monospace;
    border-radius: 6px;
}

.event-operation-actions button:hover {
    background: #3b260d;
}

.event-operation-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 720px) {
    .event-operation-grid,
    .event-operation-economy {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   EVENT OPS REBUILD - lightweight RTS HUD
   ========================================= */
.event-ops-hud {
    width: min(1180px, calc(100vw - 28px));
    margin: 8px auto 0;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto auto;
    gap: 8px;
    align-items: stretch;
    position: relative;
    z-index: 58;
    pointer-events: auto;
}

.event-ops-hud[hidden] {
    display: none !important;
}

.event-ops-hud-main,
.event-ops-hud-cta {
    border: 1px solid rgba(116, 132, 121, 0.42);
    background: linear-gradient(180deg, rgba(16, 23, 22, 0.96), rgba(7, 10, 11, 0.96));
    color: #dce6dc;
    min-height: 42px;
    padding: 7px 12px;
    font-family: 'Rajdhani', sans-serif;
    text-align: left;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 16px rgba(0,0,0,0.22);
}

.event-ops-hud-main {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.event-ops-hud-main i,
.event-card-code,
.event-ops-brief i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-style: normal;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    letter-spacing: 0.08em;
    color: #101514;
    background: #94a99b;
    border: 1px solid rgba(255,255,255,0.12);
}

.event-ops-hud-main i {
    width: 34px;
    height: 28px;
    font-size: 0.74rem;
}

.event-ops-hud-main small,
.event-ops-brief span,
.event-card-head--ops span {
    display: block;
    color: #8b9a8d;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-family: 'Orbitron', monospace;
}

.event-ops-hud-main strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #e7f0e6;
    font-size: 0.98rem;
    letter-spacing: 0.03em;
}

.event-ops-hud-main em,
.event-ops-brief em,
.event-card-head--ops em {
    font-style: normal;
    font-family: monospace;
    color: #b7c7b8;
    white-space: nowrap;
    font-size: 0.85rem;
}

.event-ops-hud-effects {
    display: flex;
    gap: 6px;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(116, 132, 121, 0.26);
    background: rgba(8, 12, 12, 0.72);
    padding: 7px 8px;
}

.event-ops-hud-effects span {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    white-space: nowrap;
    color: #9fae9f;
    font-size: 0.82rem;
}

.event-ops-hud-effects b {
    color: #dbe8d9;
}

.event-ops-hud-cta {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: #c9d8c9;
}

.event-ops-hud-main:hover,
.event-ops-hud-cta:hover {
    border-color: rgba(166, 190, 174, 0.65);
    background: linear-gradient(180deg, rgba(21, 32, 29, 0.98), rgba(10, 14, 14, 0.98));
}

.v-menu-btn.event-menu-live,
button.event-menu-live {
    position: relative;
    border-color: rgba(131, 165, 143, 0.8) !important;
    color: #dcebd8 !important;
    background: linear-gradient(90deg, rgba(37, 57, 47, 0.72), rgba(16, 22, 22, 0.72)) !important;
}

.v-menu-btn.event-menu-live::after,
button.event-menu-live::after,
.v-menu-btn.event-menu-live[data-event-count]::after,
button.event-menu-live[data-event-count]::after {
    content: none !important;
    display: none !important;
}

.event-dashboard--ops {
    gap: 12px;
}

.event-command-hero,
.event-ops-overview,
.event-panel,
.event-card--ops,
.event-shop-card {
    border-radius: 0;
    border: 1px solid rgba(120, 138, 126, 0.28);
    background: linear-gradient(180deg, rgba(14, 18, 18, 0.96), rgba(7, 9, 10, 0.96));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.035), 0 10px 22px rgba(0,0,0,0.28);
}

.event-command-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.56fr);
    gap: 12px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.event-command-hero::before,
.event-card--ops::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 38px);
    opacity: 0.22;
}

.event-command-copy,
.event-command-metrics,
.event-card--ops > *,
.event-panel > * {
    position: relative;
    z-index: 1;
}

.event-kicker {
    color: #91a994;
    font-family: 'Orbitron', monospace;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.event-command-hero h2 {
    margin: 3px 0 6px;
    color: #e7efe6;
    font-size: clamp(1.35rem, 2vw, 2rem);
    border: none;
    letter-spacing: 0.03em;
}

.event-command-hero p {
    max-width: 850px;
    margin: 0;
    color: #8d9b91;
    line-height: 1.35;
}

.event-command-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.event-command-metrics div,
.event-operation-grid div,
.event-operation-economy div,
.neighbor-box div {
    border: 1px solid rgba(125, 145, 130, 0.22);
    background: rgba(0, 0, 0, 0.24);
    padding: 9px 10px;
}

.event-command-metrics span,
.event-operation-grid span,
.event-operation-economy span,
.event-operation-actions span,
.event-reward-info span {
    display: block;
    color: #7e8e81;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: 'Orbitron', monospace;
}

.event-command-metrics strong,
.event-operation-grid strong,
.event-operation-economy strong,
.event-reward-info strong {
    display: block;
    color: #dce8d9;
    font-family: monospace;
    font-size: 1rem;
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.event-ops-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
    padding: 10px;
}

.event-ops-brief {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(128, 150, 133, 0.22);
    background: rgba(0,0,0,0.2);
}

.event-ops-brief i {
    width: 32px;
    height: 28px;
    font-size: 0.7rem;
}

.event-ops-brief strong {
    display: block;
    color: #d9e7d8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-ops-brief small {
    grid-column: 2 / -1;
    color: #8f9d91;
    font-family: monospace;
}

.event-grid--operations {
    display: grid;
    grid-template-columns: minmax(430px, 1.18fr) minmax(360px, 0.82fr);
    gap: 12px;
}

.event-panel {
    padding: 12px;
}

.event-panel-titleline,
.event-card-head--ops {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.event-panel-titleline h3 {
    margin: 0;
    color: #dfeadd;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 1rem;
}

.event-panel-titleline > span {
    color: #8d9b91;
    font-family: monospace;
    font-size: 0.82rem;
}

.event-card--ops {
    padding: 12px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.event-card-head--ops {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
}

.event-card-code {
    width: 38px;
    height: 34px;
    font-size: 0.72rem;
}

.event-card-head--ops h4 {
    margin: 2px 0 0;
    color: #eef5ec;
    font-size: 1.12rem;
    letter-spacing: 0.02em;
}

.event-operation-intel {
    border-left: 3px solid rgba(145, 169, 148, 0.44);
    padding: 8px 10px;
    margin: 8px 0 10px;
    background: rgba(145, 169, 148, 0.055);
}

.event-operation-intel strong {
    display: block;
    color: #dbe7d9;
    margin-bottom: 2px;
}

.event-operation-intel span {
    color: #9daa9f;
    line-height: 1.35;
}

.event-badge-progress {
    margin: 10px 0;
    padding: 8px;
    border: 1px solid rgba(128, 148, 132, 0.22);
    background: rgba(0,0,0,0.22);
}

.event-badge-progress > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #dce7dc;
    font-family: monospace;
}

.event-badge-progress small {
    color: #7f8f83;
}

.event-progress-track {
    height: 7px;
    margin-top: 7px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}

.event-progress-track i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #6f8c72, #bdcfad);
}

.event-operation-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0;
}

.event-operation-brief {
    border: 1px solid rgba(132, 151, 135, 0.2);
    border-left: 3px solid rgba(145, 169, 148, 0.46);
    background: rgba(255, 255, 255, 0.035);
    padding: 9px 10px;
    margin: 10px 0;
    display: grid;
    gap: 3px;
}

.event-operation-brief b {
    color: #e4eee2;
}

.event-operation-brief span {
    color: #94a092;
}

.event-operation-economy--split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0;
}

.event-operation-economy--split strong {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.event-res-pill {
    display: inline-grid;
    grid-template-columns: auto auto;
    gap: 5px;
    align-items: center;
    padding: 4px 6px;
    border: 1px solid rgba(130, 151, 134, 0.24);
    background: rgba(0,0,0,0.25);
    color: #dce8d9;
    font-family: monospace;
    font-size: 0.82rem;
}

.event-res-pill i {
    font-style: normal;
    color: #7e8e81;
    font-family: 'Rajdhani', sans-serif;
}

.event-res-pill--cost {
    border-color: rgba(182, 112, 92, 0.35);
}

.event-res-pill--reward,
.event-res-pill--points {
    border-color: rgba(139, 174, 128, 0.38);
}

.event-buff-inline {
    color: #dce8d9;
    line-height: 1.35;
}

.event-reward-info {
    border: 1px dashed rgba(145, 169, 148, 0.3);
    padding: 9px 10px;
    margin: 10px 0;
    background: rgba(145, 169, 148, 0.05);
}

.event-operation-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.event-operation-actions button,
.neighbor-actions button,
.event-shop-card button,
.mean-neighbor-map-title button,
.mean-neighbor-map-footer button {
    border-radius: 0;
    border: 1px solid rgba(151, 174, 151, 0.45);
    background: linear-gradient(180deg, rgba(34, 48, 39, 0.94), rgba(12, 16, 15, 0.94));
    color: #e4f0df;
    padding: 9px 13px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 900;
    font-family: 'Rajdhani', sans-serif;
}

.event-operation-actions button:hover,
.neighbor-actions button:hover,
.event-shop-card button:hover,
.mean-neighbor-map-title button:hover,
.mean-neighbor-map-footer button:hover {
    border-color: rgba(196, 220, 188, 0.72);
    background: linear-gradient(180deg, rgba(45, 66, 52, 0.98), rgba(15, 21, 19, 0.98));
}

.event-operation-actions button:disabled,
.neighbor-actions button:disabled,
.event-shop-card button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.event-op-status b {
    color: #dbe8d9;
}

.event-buff-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 7px;
    margin-bottom: 10px;
}

.event-buff-strip--empty {
    border: 1px dashed rgba(125, 145, 130, 0.22);
    color: #788579;
    padding: 10px;
    font-size: 0.9rem;
}

.event-buff-chip,
.event-shop-active-timer {
    border: 1px solid rgba(125, 145, 130, 0.26);
    background: rgba(0,0,0,0.22);
    padding: 8px;
    display: grid;
    gap: 2px;
}

.event-buff-chip span,
.event-shop-active-timer span {
    color: #7d8f81;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.event-buff-chip strong,
.event-shop-active-timer strong {
    color: #e0eadc;
}

.event-buff-chip small {
    color: #9fac9f;
    font-family: monospace;
}

.event-shop-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
}

.event-shop-card {
    padding: 10px;
    margin-bottom: 0;
}

.event-shop-card p,
.event-shop-note,
.event-shop-details,
.event-statline {
    color: #8f9d91;
}

.event-shop-details {
    border: 1px solid rgba(125, 145, 130, 0.18);
    background: rgba(0,0,0,0.18);
    padding: 7px;
    margin: 8px 0;
    font-family: monospace;
    line-height: 1.35;
}

.event-empty--ops {
    display: grid;
    gap: 4px;
}

.event-empty--ops b {
    color: #d8e6d6;
}

.event-empty--ops span {
    color: #7d8a7f;
}

.event-tone-convoy .event-card-code,
.event-tone-convoy.event-ops-brief i,
.event-tone-convoy.event-ops-hud-main i {
    background: #b9a36d;
}

.event-tone-sandstorm .event-card-code,
.event-tone-sandstorm.event-ops-brief i,
.event-tone-sandstorm.event-ops-hud-main i {
    background: #c0a982;
}

.event-tone-reactor .event-card-code,
.event-tone-reactor.event-ops-brief i,
.event-tone-reactor.event-ops-hud-main i {
    background: #a5c68f;
}

.event-tone-neighbor .event-card-code,
.event-tone-neighbor.event-ops-brief i,
.event-tone-neighbor.event-ops-hud-main i {
    background: #b78b74;
}

.event-tone-convoy {
    border-left: 3px solid rgba(185, 163, 109, 0.58);
}

.event-tone-sandstorm {
    border-left: 3px solid rgba(192, 169, 130, 0.58);
}

.event-tone-reactor {
    border-left: 3px solid rgba(165, 198, 143, 0.58);
}

.event-tone-neighbor {
    border-left: 3px solid rgba(183, 139, 116, 0.58);
}

.toast-message.toast-event {
    background: linear-gradient(135deg, rgba(21, 32, 27, 0.98), rgba(7, 10, 10, 0.98));
    color: #dfeadd;
    border: 1px solid rgba(145, 169, 148, 0.62);
    box-shadow: 0 10px 28px rgba(0,0,0,0.38), inset 0 0 16px rgba(145,169,148,0.08);
}

@media (max-width: 1120px) {
    .event-ops-hud,
    .event-command-hero,
    .event-grid--operations {
        grid-template-columns: 1fr;
    }

    .event-ops-hud-effects {
        display: none;
    }
}

@media (max-width: 760px) {
    .event-ops-hud {
        width: calc(100vw - 14px);
        margin-top: 6px;
        gap: 6px;
    }

    .event-ops-hud-main {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .event-ops-hud-main em,
    .event-ops-hud-cta {
        display: none;
    }

    .event-command-metrics,
    .event-operation-grid,
    .event-operation-economy--split,
    .event-card-head--ops {
        grid-template-columns: 1fr;
    }

    .event-card-head--ops em {
        justify-self: start;
    }

    .event-operation-actions {
        align-items: stretch;
    }

    .event-operation-actions button {
        width: 100%;
    }
}

/* Map-basierte Eventoperationen: bewusst leichte Visuals ohne Canvas/Partikel */
.event-marker-convoy_ambush,
.event-marker-convoy_ambush_destroyed {
    border-color: rgba(216, 166, 86, 0.85) !important;
    background: radial-gradient(circle at center, rgba(102, 69, 29, 0.9), rgba(18, 14, 9, 0.86)) !important;
}
.event-marker-convoy_ambush .map-tag-event {
    color: #ffd38a;
    border-color: #d7a34f;
    box-shadow: 0 0 10px rgba(216, 166, 86, 0.42);
}
.event-marker-sandstorm_generator,
.event-marker-sandstorm_generator_destroyed {
    border-color: rgba(183, 178, 139, 0.8) !important;
    background: radial-gradient(circle at center, rgba(73, 68, 48, 0.9), rgba(15, 15, 12, 0.86)) !important;
}
.event-marker-sandstorm_generator .map-tag-event {
    color: #eee0a4;
    border-color: #cfc481;
    box-shadow: 0 0 10px rgba(207, 196, 129, 0.35);
}
.event-marker-convoy_ambush_destroyed .map-tag-event,
.event-marker-sandstorm_generator_destroyed .map-tag-event {
    color: #9fb7a1;
    border-color: #75906f;
    opacity: 0.78;
}

.event-map-operation-card {
    border-left: 3px solid rgba(151, 174, 151, 0.38);
}
.event-map-operation-grid strong {
    overflow-wrap: anywhere;
}
.event-map-operation-brief {
    background: rgba(82, 96, 76, 0.08);
    border-left-color: rgba(151, 174, 151, 0.42);
}
.map-event-dialog {
    border-color: rgba(151, 174, 151, 0.42);
    background: linear-gradient(180deg, rgba(13, 18, 16, 0.98), rgba(5, 7, 7, 0.98));
    box-shadow: 0 30px 80px rgba(0,0,0,0.74), inset 0 0 20px rgba(151, 174, 151, 0.06);
}
.map-event-summary {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(151, 174, 151, 0.22);
    background: rgba(0, 0, 0, 0.36);
    padding: 12px;
    margin-bottom: 12px;
}
.map-event-summary span {
    color: #91a994;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78em;
}
.map-event-summary strong {
    display: block;
    color: #e9f2e5;
    font-size: 1.12em;
}
.map-event-summary small {
    display: block;
    color: #a7b2a5;
    margin-top: 3px;
    line-height: 1.35;
}
.map-event-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0;
}
.map-event-modal-actions button {
    border: 1px solid rgba(151, 174, 151, 0.48);
    background: linear-gradient(180deg, rgba(34, 48, 39, 0.96), rgba(12, 16, 15, 0.96));
    color: #e4f0df;
    padding: 9px 13px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 900;
}
.map-event-modal-actions button:hover {
    border-color: rgba(196, 220, 188, 0.74);
    background: linear-gradient(180deg, rgba(45, 66, 52, 0.98), rgba(15, 21, 19, 0.98));
}

body.event-reactor-active #radarContainer {
    position: relative;
    isolation: isolate;
    filter: brightness(0.82) contrast(1.28) saturate(0.62) hue-rotate(-14deg);
}
body.event-reactor-active #radarContainer::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 30;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, rgba(190, 255, 155, 0.00) 0 5px, rgba(190, 255, 155, 0.14) 6px 7px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.00) 0 23px, rgba(170, 255, 120, 0.07) 24px 25px),
        radial-gradient(circle at 18% 28%, rgba(185, 255, 128, 0.24), transparent 34%),
        radial-gradient(circle at 74% 65%, rgba(255, 255, 255, 0.08), transparent 28%);
    mix-blend-mode: screen;
    opacity: 0.82;
    animation: rh-reactor-interference 0.72s steps(3, end) infinite;
}
body.event-reactor-active #strategyMap {
    animation: rh-reactor-map-flicker 1.15s steps(2, end) infinite;
}
body.event-reactor-active .res-item-hud.power {
    animation: rh-reactor-power-flicker 0.8s steps(2, end) infinite;
}
body.event-reactor-active .res-item-hud.power .res-bar-fill {
    animation: rh-reactor-power-bar 1.1s steps(2, end) infinite;
}
body.event-reactor-blackout #radarContainer {
    filter: brightness(0.18) contrast(1.55) saturate(0.36) !important;
}
body.event-reactor-blackout #radarContainer::after {
    content: 'STROMAUSFALL · NOTVERSORGUNG';
    position: absolute;
    inset: 0;
    z-index: 31;
    pointer-events: none;
    display: grid;
    place-items: center;
    color: rgba(218, 255, 198, 0.92);
    font-family: monospace;
    font-size: clamp(0.9rem, 2.2vw, 1.6rem);
    font-weight: 900;
    letter-spacing: 0.18em;
    text-shadow: 0 0 12px rgba(138, 255, 99, 0.95), 0 0 42px rgba(0, 0, 0, 1);
    background:
        radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.86)),
        repeating-linear-gradient(0deg, rgba(120, 255, 90, 0.12) 0 1px, transparent 2px 8px);
    animation: rh-reactor-blackout-panel 0.42s steps(2, end) infinite;
}
body.event-reactor-blackout #strategyMap {
    animation: none !important;
}
body.event-reactor-blackout .res-item-hud.power {
    filter: brightness(0.35) saturate(0.4) !important;
    border-top-color: rgba(255, 80, 70, 0.86) !important;
    box-shadow: inset 0 0 22px rgba(255, 60, 40, 0.22), 0 0 24px rgba(0,0,0,0.62);
}
body.event-reactor-blackout .res-item-hud.power::after {
    content: 'AUSFALL';
    display: inline-block;
    margin-top: 4px;
    color: #ff8b73;
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}
body.event-sandstorm-active #radarContainer {
    filter: saturate(0.72) contrast(0.92) sepia(0.22);
}
body.event-sandstorm-active #strategyMap {
    animation: rh-sandstorm-noise 4.5s linear infinite;
}
body.event-convoy-active .event-ops-hud-main {
    box-shadow: inset 3px 0 0 rgba(216, 166, 86, 0.75), 0 0 18px rgba(216, 166, 86, 0.08);
}

@keyframes rh-reactor-map-flicker {
    0%, 100% { filter: brightness(0.72) contrast(1.28) saturate(0.72); transform: translate(0, 0); }
    18% { filter: brightness(1.28) contrast(0.96) hue-rotate(16deg); }
    23% { filter: brightness(0.48) contrast(1.58) hue-rotate(-18deg); transform: translate(-1px, 0); }
    34% { filter: brightness(1.08) contrast(1.18); transform: translate(1px, -1px); }
    58% { filter: brightness(0.56) contrast(1.44) saturate(0.48); }
    63% { filter: brightness(1.42) contrast(0.88) hue-rotate(10deg); }
    78% { filter: brightness(0.64) contrast(1.35); transform: translate(0, 1px); }
}
@keyframes rh-reactor-interference {
    0% { opacity: 0.58; transform: translate3d(-2px, -1px, 0); }
    35% { opacity: 0.9; transform: translate3d(2px, 1px, 0); }
    70% { opacity: 0.42; transform: translate3d(0, -2px, 0); }
    100% { opacity: 0.78; transform: translate3d(-1px, 1px, 0); }
}
@keyframes rh-reactor-power-flicker {
    0%, 100% { filter: brightness(0.78); }
    18% { filter: brightness(1.75); }
    22% { filter: brightness(0.32); }
    48% { filter: brightness(1.2); }
    53% { filter: brightness(0.18); }
    74% { filter: brightness(1.45); }
}
@keyframes rh-reactor-power-bar {
    0%, 100% { transform: scaleX(1); opacity: 0.92; }
    31% { transform: scaleX(0.44); opacity: 0.44; }
    52% { transform: scaleX(0.82); opacity: 1; }
    69% { transform: scaleX(0.18); opacity: 0.3; }
}
@keyframes rh-reactor-blackout-panel {
    0%, 100% { opacity: 0.94; }
    45% { opacity: 0.72; }
    52% { opacity: 1; }
}
@keyframes rh-sandstorm-noise {
    0%, 100% { filter: saturate(0.72) contrast(0.92) sepia(0.18); }
    50% { filter: saturate(0.62) contrast(0.86) sepia(0.32) brightness(0.94); }
}

@media (prefers-reduced-motion: reduce) {
    body.event-reactor-active #strategyMap,
    body.event-reactor-active #radarContainer::before,
    body.event-reactor-active .res-item-hud.power,
    body.event-reactor-active .res-item-hud.power .res-bar-fill,
    body.event-reactor-blackout #radarContainer::after,
    body.event-sandstorm-active #strategyMap {
        animation: none;
    }
}
.map-event-modal-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Reactor leak: server-side production instability visible directly in the resource bar */
.res-reactor-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    padding: 1px 5px;
    border: 1px solid rgba(155, 255, 118, 0.55);
    border-radius: 999px;
    color: #b9ff8f;
    background: rgba(77, 255, 70, 0.10);
    box-shadow: 0 0 8px rgba(77, 255, 70, 0.18);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    vertical-align: middle;
}
.res-reactor-pill.danger {
    border-color: rgba(255, 96, 72, 0.78);
    color: #ff8b73;
    background: rgba(255, 48, 32, 0.18);
    box-shadow: 0 0 12px rgba(255, 48, 32, 0.36);
}
.res-item-hud.reactor-degraded:not(.power) {
    border-color: rgba(155, 255, 118, 0.18);
    filter: saturate(0.86) brightness(0.92);
}
.res-item-hud.reactor-degraded:not(.power) .res-rate {
    color: #b9ff8f;
    text-shadow: 0 0 8px rgba(155, 255, 118, 0.32);
}
.res-item-hud.reactor-degraded:not(.power) .res-bar-fill {
    filter: brightness(0.78) saturate(0.82);
}
.res-item-hud.reactor-blackout-rate:not(.power) {
    animation: rh-reactor-resource-rate-outage 0.46s steps(2, end) infinite;
    border-color: rgba(255, 87, 68, 0.56) !important;
    background:
        repeating-linear-gradient(90deg, rgba(255, 65, 45, 0.07) 0 2px, transparent 2px 8px),
        linear-gradient(135deg, rgba(24, 8, 6, 0.96), rgba(5, 5, 5, 0.98));
}
.res-item-hud.reactor-blackout-rate:not(.power) .res-rate,
.res-item-hud.reactor-power-outage .res-rate {
    color: #ff8b73;
    text-shadow: 0 0 10px rgba(255, 72, 48, 0.72);
}
.res-item-hud.reactor-blackout-rate:not(.power) .res-bar-fill {
    opacity: 0.38;
    filter: grayscale(0.65) brightness(0.48);
    box-shadow: none !important;
}
.res-item-hud.reactor-power-unstable {
    border-color: rgba(155, 255, 118, 0.26);
}
.res-item-hud.reactor-power-outage {
    border-color: rgba(255, 87, 68, 0.82) !important;
    background:
        repeating-linear-gradient(90deg, rgba(255, 65, 45, 0.10) 0 2px, transparent 2px 8px),
        linear-gradient(135deg, rgba(25, 6, 5, 0.98), rgba(4, 4, 4, 0.99));
}
.res-item-hud.reactor-power-outage .res-bar-fill {
    background: #ff482f !important;
    box-shadow: 0 0 12px rgba(255, 72, 48, 0.78) !important;
}
@keyframes rh-reactor-resource-rate-outage {
    0%, 100% { filter: brightness(0.88) saturate(0.72); transform: translateY(0); }
    50% { filter: brightness(0.54) saturate(0.42); transform: translateY(1px); }
}

@media (prefers-reduced-motion: reduce) {
    .res-item-hud.reactor-blackout-rate:not(.power) {
        animation: none !important;
    }
}

/* Reactor repair status checklist - lightweight, pure DOM/CSS */
.reactor-repair-checklist {
    --repair-progress: 0%;
    border: 1px solid rgba(165, 198, 143, 0.32);
    background: linear-gradient(180deg, rgba(13, 23, 18, 0.78), rgba(4, 8, 7, 0.82));
    box-shadow: inset 0 0 18px rgba(165, 198, 143, 0.05);
    padding: 12px;
    margin: 12px 0;
    display: grid;
    gap: 10px;
}

.reactor-repair-checklist-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.reactor-repair-checklist-head span,
.reactor-repair-current {
    color: #7f9584;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.74rem;
}

.reactor-repair-checklist-head strong {
    display: block;
    color: #e7f4df;
    font-family: monospace;
    margin-top: 2px;
}

.reactor-repair-checklist-head em {
    color: #b9ff8f;
    font-style: normal;
    font-family: monospace;
    white-space: nowrap;
}

.reactor-repair-current b {
    color: #e7f4df;
}

.reactor-repair-progress {
    height: 7px;
    border: 1px solid rgba(165, 198, 143, 0.24);
    background: rgba(0, 0, 0, 0.48);
    overflow: hidden;
}

.reactor-repair-progress i {
    display: block;
    width: var(--repair-progress);
    height: 100%;
    background: linear-gradient(90deg, rgba(111, 160, 92, 0.82), rgba(185, 255, 143, 0.96));
    box-shadow: 0 0 14px rgba(185, 255, 143, 0.24);
    transition: width 0.35s linear;
}

.reactor-repair-checklist ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.reactor-repair-checklist li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 8px;
    border: 1px solid rgba(125, 145, 130, 0.18);
    background: rgba(0, 0, 0, 0.22);
    opacity: 0.62;
}

.reactor-repair-step-mark {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(125, 145, 130, 0.32);
    background: rgba(0, 0, 0, 0.34);
    color: #8b9a8d;
    font-style: normal;
    font-family: monospace;
    font-weight: 900;
}

.reactor-repair-checklist li strong {
    display: block;
    color: #dfeadd;
    font-family: monospace;
    font-size: 0.9rem;
}

.reactor-repair-checklist li span {
    display: block;
    color: #8f9d91;
    font-size: 0.78rem;
    line-height: 1.35;
    margin-top: 2px;
}

.reactor-repair-checklist li.active {
    opacity: 1;
    border-color: rgba(185, 255, 143, 0.48);
    background: linear-gradient(90deg, rgba(93, 130, 72, 0.18), rgba(0, 0, 0, 0.26));
}

.reactor-repair-checklist li.active .reactor-repair-step-mark {
    color: #0b120c;
    background: #b9ff8f;
    border-color: #d5ffbf;
}

.reactor-repair-checklist li.done {
    opacity: 0.92;
    border-color: rgba(145, 187, 128, 0.34);
}

.reactor-repair-checklist li.done .reactor-repair-step-mark {
    color: #b9ff8f;
    border-color: rgba(185, 255, 143, 0.62);
}

.reactor-repair-checklist li.pending {
    filter: grayscale(0.35);
}

.map-event-dialog .reactor-repair-checklist {
    margin-top: 12px;
}

@media (max-width: 620px) {
    .reactor-repair-checklist-head {
        display: grid;
    }
    .reactor-repair-checklist-head em {
        white-space: normal;
    }
}

/* Live-Badge für Nachrichten-Fallbacks außerhalb der Vue-Zählung. */
.v-menu-btn.reports-menu-live,
button.reports-menu-live {
    position: relative;
}

.v-menu-btn.reports-menu-live::after,
button.reports-menu-live::after {
    content: attr(data-report-count);
    position: absolute;
    top: 5px;
    right: 7px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 210, 120, 0.55);
    background: #ffd36b;
    color: #111;
    font-size: 0.68rem;
    line-height: 1;
    font-family: monospace;
    font-weight: 900;
}

/* Badge-Kollision verhindern: Der Vue-Nachrichten-Menüpunkt besitzt bereits
   einen echten .system-unread-badge. Der reports-menu-live-Fallback darf dort
   kein zweites ::after-Badge erzeugen. */
.v-menu-btn.system-terminal-entry.reports-menu-live::after,
.v-menu-btn[data-tutorial="menu-reports"].reports-menu-live::after {
    content: none !important;
    display: none !important;
}

/* Event-Shop: Kategorie-Menü statt Kartenwand */
.event-shop-category-menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 10px;
}

.event-shop-category-card {
    width: 100%;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    text-align: left;
    border: 1px solid rgba(125, 145, 130, 0.28);
    background: linear-gradient(135deg, rgba(21, 28, 24, 0.94), rgba(6, 8, 8, 0.96));
    color: #dfeadd;
    padding: 10px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    box-shadow: inset 0 0 18px rgba(0,0,0,0.45);
}

.event-shop-category-card:hover {
    border-color: rgba(196, 220, 188, 0.7);
    background: linear-gradient(135deg, rgba(32, 45, 36, 0.98), rgba(8, 11, 10, 0.98));
}

.event-shop-category-card:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.event-shop-category-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 211, 138, 0.28);
    background: rgba(0,0,0,0.25);
    color: #ffd38a;
    font-size: 1.35rem;
    font-weight: 900;
}

.event-shop-category-body {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.event-shop-category-body small,
.event-shop-category-body b,
.event-shop-category-status,
.event-shop-category-toolbar span {
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.event-shop-category-body small {
    color: #7f9181;
    font-size: 0.68rem;
}

.event-shop-category-body strong {
    color: #f1f7ed;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.event-shop-category-body em {
    color: #9aa89a;
    font-style: normal;
    font-size: 0.84rem;
    line-height: 1.25;
}

.event-shop-category-body b {
    color: #ffd38a;
    font-size: 0.74rem;
    margin-top: 2px;
}

.event-shop-category-status {
    color: #dfeadd;
    border: 1px solid rgba(125, 145, 130, 0.24);
    background: rgba(0,0,0,0.22);
    padding: 6px 8px;
    white-space: nowrap;
    font-size: 0.72rem;
}

.event-shop-category-modal {
    z-index: 8000;
}

.event-shop-category-dialog {
    width: min(980px, calc(100vw - 34px));
    max-height: min(82vh, 860px);
    overflow: auto;
}

.event-shop-category-title p {
    margin: 4px 0 0;
    color: #9aa89a;
    max-width: 680px;
}

.event-shop-category-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    border: 1px solid rgba(125, 145, 130, 0.22);
    background: rgba(0,0,0,0.24);
    padding: 9px 10px;
    margin: 12px 0;
    color: #9aa89a;
}

.event-shop-category-toolbar b {
    color: #ffd38a;
}

.event-shop-grid--modal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.event-shop-grid--modal .event-shop-card {
    margin-bottom: 0;
}

@media (max-width: 620px) {
    .event-shop-category-card {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .event-shop-category-status {
        grid-column: 2;
        justify-self: start;
    }

    .event-shop-grid--modal {
        grid-template-columns: 1fr;
    }
}
