/* SSoT bis Cut-over: C:\Users\marce\OpenBot\Shared\Freeee\Sodom\css\style.css. Split-TODO: Hub: .login-* .mode-select-* .hub-gate. Sodom: Spiel-HUD. Selektoren trennen.. */
:root {
    /* Stil-Briefing (docs/stil_briefing_sodom.md): Asphalt, Bordeaux-CTA, Messing. KEIN Neon. */
    --bg-base: #121212;        /* Teerschwarz */
    --bg-panel: #1a1a1a;       /* Asphalt-Panel */
    --bg-card: #222222;        /* Dunkles Metall */
    --border-color: #44413e;   /* Versenkter Rahmen */
    --text-main: #e0e0e0;      /* Kalkweiß */
    --text-muted: #8a8070;
    --neon-cyan: #FFCC66;      /* Messing – Name historisch, Wert = Briefing-Messing */
    --neon-magenta: #660000;   /* Bordeaux – Flächen/Rahmen */
    --neon-yellow: #FFCC66;    /* Messing – Titel */
    --neon-green: #256302;     /* Mattes Status-Grün (Gewinn) */
    --neon-red: #c5423e;       /* Bordeaux-Rot für Gefahr/Kampf-Text */
    --font-main: Verdana, Tahoma, Arial, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--bg-base); color: var(--text-main); font-family: var(--font-main); font-size: 13px; line-height: 1.35; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; font-weight: normal; }

h1, h2, h3 { font-weight: bold; letter-spacing: 0; text-transform: uppercase; }
h2 { font-size: 1.2rem; margin-bottom: 10px; border-bottom: 2px solid var(--border-color); padding-bottom: 5px; }
h3 { font-size: 1rem; }

.neon-cyan { color: var(--neon-cyan); }
.neon-magenta { color: #c5423e; } /* Text: Bordeaux wäre auf Asphalt unlesbar, daher Rot-Ton */
.neon-yellow { color: var(--neon-yellow); }
.neon-green { color: var(--neon-green); }
.neon-red { color: var(--neon-red); }

.text-cyan { color: var(--neon-yellow); } /* Alias → Messing (0.12.79) */
.text-magenta { color: var(--neon-magenta); }
.text-green { color: var(--neon-green); }
.text-red { color: var(--neon-red); }
.text-muted { color: var(--text-muted); }
.text-messing { color: var(--neon-yellow); } /* Messing/Altgold – semantisch, kein Neon */
.text-small { font-size: 0.85rem; }

.perk-badge {
    display: inline-block;
    padding: 1px 6px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.perk-badge-active { border-color: var(--neon-green); }
.perk-badge-open { border-color: var(--neon-cyan); }
.perk-badge-locked { border-color: var(--border-color); opacity: 0.85; }

.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; }
.mb-1 { margin-bottom: 10px; } .mb-2 { margin-bottom: 20px; }
.pb-1 { padding-bottom: 10px; } .p-1 { padding: 10px; }
.flex-gap { display: flex; gap: 10px; }
.flex-column { display: flex; flex-direction: column; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

.hidden { display: none !important; }
.border-gray { border: 2px solid var(--border-color); border-radius: 0; }
.border-bottom { border-bottom: 2px solid var(--border-color); }

.input-dark {
    width: 100%; background: var(--bg-base); border: 2px solid var(--border-color); color: var(--text-main);
    padding: 8px; font-family: var(--font-mono); font-weight: bold; outline: none;
}
.input-dark:focus { border-color: var(--neon-cyan); }

.icon { image-rendering: pixelated; vertical-align: middle; display: inline-block; }

#dashboard { display: flex; flex: 1; gap: 4px; padding: 4px; height: 100%; overflow: hidden; }
.panel { background-color: var(--bg-panel); border: 4px solid var(--border-color); border-radius: 0; padding: 15px; display: flex; flex-direction: column; overflow-y: auto; }
#col-left { flex: 1; min-width: 250px; }
#col-center { flex: 2; min-width: 320px; border-color: var(--neon-cyan); }
#col-right { flex: 1; min-width: 250px; }

.stat-row { display: flex; justify-content: space-between; padding: 4px 0; font-family: var(--font-mono); font-size: 0.9rem; border-bottom: 2px solid var(--bg-base); align-items: center; }
.progress-bar { width: 100%; height: 16px; background: var(--bg-base); border: 2px solid var(--border-color); border-radius: 0; margin-top: 4px; overflow: hidden; }
.progress-bar .fill { height: 100%; transition: width 0.1s steps(10); }
.bg-red { background-color: var(--neon-red); }

.upgrade-card, .crew-card, .loc-card, .raid-card, .turf-card, .market-card, .syndicate-card, .contact-card {
    background: var(--bg-card); border: 2px solid var(--border-color); border-left: 6px solid var(--neon-cyan);
    padding: 10px; border-radius: 0; margin-bottom: 10px;
}
.crew-card { border-left-color: var(--neon-yellow); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;}
.raid-card, .turf-card, .syndicate-card { border-left-color: var(--neon-magenta); }
.market-card, .contact-card { border-left-color: var(--neon-green); display: flex; justify-content: space-between; align-items: center;}

.btn {
    background: var(--bg-base); color: var(--text-main); border: 2px solid var(--border-color);
    padding: 8px 12px; cursor: pointer; font-family: var(--font-main); text-transform: uppercase;
    font-size: 0.8rem; font-weight: bold; border-radius: 0; transition: none; width: 100%; text-align: center;
}
.btn:hover:not(:disabled) { background: var(--border-color); color: var(--bg-base); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; border-style: dashed; }
/* Bordeaux-CTA (Briefing: 2-Farben-Verlauf Rot → Dunkelbordeaux) */
.btn-primary { background: linear-gradient(#c5423e, #421413); border-color: #421413; color: #f5f0e6; }
.btn-primary:hover:not(:disabled) { background: #660000; color: #f5f0e6; }
.btn-danger { border-color: var(--neon-red); color: var(--neon-red); }
.btn-danger:hover:not(:disabled) { background: var(--neon-red); color: var(--text-main); }
.btn-success { border-color: var(--neon-green); color: var(--neon-green); }
.btn-success:hover:not(:disabled) { background: var(--neon-green); color: var(--text-main); }
.btn-small { width: auto; padding: 4px 8px; font-size: 0.75rem; }

.inner-tabs { display: flex; gap: 4px; margin-bottom: 15px; }
.inner-tab-btn { flex: 1; background: var(--bg-base); color: var(--text-muted); border: 2px solid var(--border-color); padding: 8px; cursor: pointer; text-transform: uppercase; font-size: 0.85rem; border-radius: 0; font-weight: bold; min-width: 80px; }
.inner-tab-btn.active { border-color: var(--neon-cyan); color: var(--bg-base); background: var(--neon-cyan); }

.log-box { flex: 1; overflow-y: auto; font-family: var(--font-mono); padding-right: 5px; }
.log-entry { margin-bottom: 6px; padding-bottom: 4px; border-bottom: 2px dotted var(--border-color); }
.log-time { color: var(--neon-cyan); margin-right: 5px; }

.ping-card { background: var(--bg-base); border: 2px solid var(--neon-yellow); padding: 10px; border-radius: 0; cursor: pointer; animation: blink 1s step-end infinite; }
.ping-card:hover { background: var(--neon-yellow); color: var(--bg-base); }
@keyframes blink { 0% { border-color: var(--neon-yellow); } 50% { border-color: var(--text-main); } 100% { border-color: var(--neon-yellow); } }

/* Modals */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(43,43,43,0.95); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.modal-content { background: var(--bg-panel); border: 4px solid var(--border-color); padding: 25px; width: 90%; max-width: 450px; border-radius: 0; max-height: 90dvh; max-height: 90vh; overflow-y: auto;}
.reward-list { list-style: none; margin: 10px 0; font-family: var(--font-mono); color: var(--neon-green); }

/* Tooltips */
[data-tooltip] { position: relative; cursor: help; border-bottom: 1px dotted var(--text-muted); }
[data-tooltip]:hover::after {
    content: attr(data-tooltip); position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%);
    background: var(--bg-card); color: var(--text-main); border: 2px solid var(--border-color); padding: 4px 8px;
    font-size: 0.75rem; font-family: var(--font-mono); white-space: nowrap; z-index: 100; pointer-events: none;
}

/* TUTORIAL HIGHLIGHTING */
.highlight-tutorial {
    position: relative;
    z-index: 900;
    box-shadow: 0 0 0 4px var(--bg-base), 0 0 0 8px var(--neon-yellow);
    animation: tutorialBlink 1.5s infinite;
}
@keyframes tutorialBlink { 0% { box-shadow: 0 0 0 4px var(--bg-base), 0 0 0 8px var(--neon-yellow); } 50% { box-shadow: 0 0 0 4px var(--bg-base), 0 0 0 4px var(--neon-cyan); } 100% { box-shadow: 0 0 0 4px var(--bg-base), 0 0 0 8px var(--neon-yellow); } }

#tutorial-hint {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: var(--neon-yellow); color: var(--bg-base); border: 4px solid var(--border-color);
    padding: 15px; font-weight: bold; z-index: 999; max-width: 90%; text-align: center;
}

/* MOBILE TABS – gleiche Sprache wie Desktop (Rahmen/Messing/Bordeaux) */
.mobile-only { display: none; }
@media (max-width: 800px) {
    .mobile-only { display: flex; }
    #dashboard { flex-direction: column; padding: 4px; gap: 4px; }
    .panel {
        display: none;
        flex: 1; min-height: 0; height: auto;
        border: 2px solid var(--border-color);
        border-top: 2px solid var(--brass-dim);
        padding: 8px;
        background: var(--bg-panel);
    }
    .panel.mobile-active { display: flex; }
    #mobile-tabs {
        display: flex; width: 100%; height: var(--touch); flex-shrink: 0;
        background: var(--bg-bar);
        border: 2px solid var(--border-color);
        border-bottom: 2px solid var(--bordeaux);
    }
    .tab-btn {
        flex: 1; background: transparent; color: var(--text-muted);
        border: none; border-right: 1px solid var(--border-color);
        font-weight: bold; text-transform: uppercase; font-size: 0.85rem;
        letter-spacing: 1px; min-height: var(--touch);
    }
    .tab-btn:last-child { border-right: none; }
    .tab-btn.active { background: var(--bordeaux); color: #fff; }
    [data-tooltip]:hover::after { display: none; }
    #tutorial-hint { bottom: 70px; max-width: 95%; font-size: 0.9rem; padding: 10px; }
}
/* v0.7.1 Streifzug-Kopfbild */
.raid-key-art { display: block; width: 100%; height: auto; max-height: 260px; object-fit: cover; object-position: center 70%; border-radius: 4px; border: 2px solid #3a3530; margin-bottom: 0.5rem; image-rendering: auto; }

/* ============================================================ */
/* v0.9.4 – LOGIN-SCREEN                                         */
/* Pixel-Art-styled Overlay, passend zu den bestehenden         */
/* 16x16 SVG-Icons und 128x128 NPC-Portraits.                   */
/* ============================================================ */
.login-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background-color: #0a0a0a;
    /* WoC/Pennergame: dunkles Street-Foto, kein Neon-Grid */
    background-image:
        linear-gradient(rgba(10,10,10,0.78), rgba(10,10,10,0.88)),
        url("../assets/art/login_hero.webp");
    background-size: auto, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.login-overlay.hidden { display: none; }

.login-card {
    background: #222222;
    border: 2px solid var(--border-color);
    /* Briefing: keine weichen Drop-Shadows – harter 2000er-Rahmen */
    box-shadow: none;
    padding: 28px 32px;
    max-width: 380px;
    width: 100%;
    text-align: center;
}

.login-logo-wrap {
    display: flex; justify-content: center; margin-bottom: 12px;
}
.login-logo-slot {
    width: 96px; height: 96px;
    border: 2px dashed var(--border-color);
    background: transparent;
}
.login-logo-img {
    width: 96px; height: 96px;
    display: block;
    image-rendering: pixelated;
    object-fit: contain;
}
.login-title {
    font-size: 2rem; letter-spacing: 4px;
    margin-bottom: 2px;
    color: var(--neon-yellow);
    text-shadow: 2px 2px 0 #000;
}
.login-subtitle {
    font-size: 0.85rem; letter-spacing: 2px;
    margin-bottom: 24px;
    color: var(--text-muted);
    text-transform: uppercase;
    text-shadow: none;
}

.login-form {
    display: flex; flex-direction: column; gap: 10px;
}
.login-input {
    background: var(--bg-base);
    border: 2px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 12px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: bold;
    outline: none;
}
.login-input:focus {
    border-color: var(--neon-yellow);
    box-shadow: none;
}
.login-input::placeholder { color: var(--text-muted); }

.login-btn-primary {
    background: linear-gradient(#c5423e, #421413); color: #f5f0e6;
    border: 2px solid #421413;
    padding: 10px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}
.login-btn-primary:hover { background: #660000; }

/* Grow-Karte im Versteck – an Briefing angepasst (scharf, Messing-Titel, mattes Grün für Ernte) */
#grow-area { background: var(--bg-card); border-color: var(--border-color); }
#grow-area h3 { color: var(--neon-yellow); border-bottom: 1px solid var(--border-color); padding-bottom: 4px; }
#grow-area .upgrade-card { border-left-color: var(--neon-green); background: var(--bg-panel); }
#grow-area .btn-harvest { border-color: var(--neon-green); color: #d8e8c8; background: var(--neon-green); }
#grow-area .btn-harvest:hover:not(:disabled) { background: #1d4a02; }

/* v0.9.6: Schmuggel-Routen – gleiches Muster wie Grow; Route-Karten mit Bordeaux-Rand (Kriminal-Akzent) */
#smuggle-area { background: var(--bg-card); border-color: var(--border-color); }
#smuggle-area h3 { color: var(--neon-yellow); border-bottom: 1px solid var(--border-color); padding-bottom: 4px; }
#smuggle-area .upgrade-card { border-left-color: var(--neon-magenta); background: var(--bg-panel); }
#smuggle-area .btn-claim-smuggle { border-color: var(--neon-green); color: #d8e8c8; background: var(--neon-green); }
#smuggle-area .btn-claim-smuggle:hover:not(:disabled) { background: #1d4a02; }
#smuggle-area .btn-start-smuggle { border-color: var(--neon-magenta); color: var(--text-main); }
#smuggle-area .btn-start-smuggle:hover:not(:disabled) { background: var(--neon-magenta); color: #f5f0e6; }
#smuggle-area h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0; }

.login-btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
    padding: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}
.login-btn-secondary:hover { border-color: var(--neon-yellow); color: var(--neon-yellow); }

.login-divider {
    margin: 8px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}
.login-divider::before, .login-divider::after {
    content: ""; position: absolute; top: 50%; width: 35%; height: 1px;
    background: var(--border-color);
}
.login-divider::before { left: 0; }
.login-divider::after { right: 0; }
.login-divider span { background: var(--bg-panel); padding: 0 8px; position: relative; }

.login-oauth-row {
    display: flex; gap: 8px;
}
.login-oauth-row .login-btn-oauth { min-height: 40px; }
.login-btn-oauth {
    flex: 1;
    background: var(--bg-card);
    color: var(--text-main);
    border: 2px solid var(--border-color);
    padding: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
}
.login-btn-oauth:hover { border-color: var(--neon-yellow); color: var(--neon-yellow); }

.login-btn-guest {
    background: transparent;
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
    padding: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 4px;
}
.login-btn-guest:hover { color: var(--text-main); border-color: var(--text-main); }

.login-status {
    margin-top: 8px; min-height: 18px;
    font-size: 0.85rem;
    font-weight: normal;
}
.login-status.info    { color: var(--text-muted); }
.login-status.success { color: var(--neon-green); }
.login-status.error   { color: var(--neon-red); }

.login-footer {
    margin-top: 18px; padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 0.7rem; letter-spacing: 1px;
}

/* User-Badge im Header */
.user-badge {
    padding: 0 8px !important;
    width: auto !important;
    height: 30px !important;
    font-size: 0.85rem !important;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    display: flex; align-items: center; gap: 6px;
}
.user-badge:hover { border-color: var(--neon-yellow); }
.user-badge .user-avatar { font-size: 1rem; }

/* ============================================================ */
/* v0.9.4 – UI-POLITUR (asset-getrieben)                         */
/* Crew-Portraits (npc_*_128.png) besser in Karten einbinden.   */
/* ============================================================ */
.crew-block .crew-card {
    display: flex; gap: 10px; align-items: center;
    padding: 8px; margin-bottom: 6px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
}
.crew-card .crew-portrait {
    width: 48px; height: 48px;
    image-rendering: pixelated;
    border: 2px solid var(--bg-base);
    flex-shrink: 0;
}
.crew-card .crew-info {
    flex: 1; min-width: 0;
}
.crew-card .crew-name {
    font-size: 0.9rem; color: var(--neon-yellow);
}
.crew-card .crew-role {
    font-size: 0.75rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px;
}
.crew-card.locked {
    opacity: 0.45; filter: grayscale(60%);
}

/* Heat-Bonus optisch aufwerten (asset-getrieben via ui_heat.svg) */
.heat-container .stat-row {
    flex-wrap: wrap; gap: 4px;
}
#val-heat-bonus {
    font-size: 0.75rem;
    padding: 1px 6px;
    border: 1px solid currentColor;
    margin-left: 4px;
}

/* Login-Mobile-Anpassung (≤480px): Buttons stapeln, Touch-Ziele ≥44px */
@media (max-width: 480px) {
    .login-overlay { padding: 12px; align-items: flex-start; overflow-y: auto; }
    .login-card { padding: 20px 16px; margin: 12px auto; width: 100%; max-width: 360px; }
    .login-title { font-size: 1.5rem; letter-spacing: 3px; }
    .login-logo-slot { width: 72px; height: 72px; }
    .login-subtitle { font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 16px; }
    .login-input { font-size: 1rem; padding: 12px; min-height: 44px; } /* 16px verhindert iOS-Zoom */
    .login-btn-primary, .login-btn-secondary { min-height: 44px; }
    .login-oauth-row { flex-direction: column; gap: 8px; }
    .login-oauth-row .login-btn-oauth,
    .login-btn-guest { min-height: 44px; }
}

/* Desktop-Dashboard: etwas mehr Luft zwischen den 3 Spalten */
@media (min-width: 801px) {
    #dashboard { gap: 8px; padding: 8px; }
}

/* ============================================================ */
/* UX PHASE 1 (v0.9.9) – Design-System + Shell an Moodboard      */
/* Asphalt / Messing / Bordeaux, scharfkantig, dicht, KEIN Neon. */
/* Nur Darstellung – keine Spiel-Logik.                          */
/* ============================================================ */

/* --- Tokens (Phase 1) --- */
:root {
    --bg-bar: #161616;          /* Header / belegte Leisten */
    --bg-bar-hi: #262626;
    --bordeaux: #660000;
    --bordeaux-hi: #c5423e;
    --bordeaux-lo: #421413;
    --brass: #FFCC66;
    --brass-dim: #d4a34b;
    --row-a: #000000;           /* Tabellen-Zebra laut Briefing */
    --row-b: #1f1f1f;
    --touch: 44px;
}

strong, b, h1, h2, h3, h4, .btn, .inner-tab-btn, .tab-btn, .crew-name, .res-val { font-weight: bold; }
.stat-row, .log-box, .reward-list { font-family: var(--font-main); font-variant-numeric: tabular-nums; }

/* --- Top-Bar: Logo + Ressourcenleiste + Uhr + Account --- */
#top-bar {
    display: flex; align-items: center; gap: 14px; flex-shrink: 0;
    background: var(--bg-bar);
    border-bottom: 2px solid var(--bordeaux);
    padding: 4px 10px; min-height: 48px;
}
.top-logo { height: 34px; width: auto; max-width: 130px; object-fit: contain; flex-shrink: 0; }
.res-strip { display: flex; flex: 1; flex-wrap: wrap; justify-content: center; gap: 2px 18px; min-width: 0; }
.res-chip { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; min-width: 0; }
.res-label { font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: normal; }
.res-val { display: flex; align-items: center; gap: 4px; font-size: 0.9rem; color: var(--brass); white-space: nowrap; font-variant-numeric: tabular-nums; }
.top-time { font-size: 0.9rem; white-space: nowrap; padding: 4px 8px; border: 1px solid var(--border-color); background: var(--bg-base); }
/* v0.12.78 Assets P0: A5 Kalender Mo–So */
.top-time-wrap { display: flex; align-items: center; gap: 6px; flex-shrink: 0; min-width: 0; }
.top-cal-icon { flex-shrink: 0; image-rendering: pixelated; }
.week-strip { display: flex; gap: 2px; align-items: center; }
.week-day {
    font-size: 0.65rem; line-height: 1; padding: 3px 4px; border: 1px solid var(--border-color);
    background: var(--bg-base); color: var(--text-muted); border-radius: 2px; min-width: 1.4em; text-align: center;
}
.week-day.is-today { color: var(--brass); border-color: var(--brass-dim); background: #2a2418; font-weight: bold; }
.week-day.is-payday { box-shadow: inset 0 -2px 0 var(--bordeaux); }
.week-day.is-today.is-payday { color: var(--brass); }
.schicht-ready-stamp { width: 16px; height: 16px; vertical-align: -3px; image-rendering: pixelated; }
.top-actions { display: flex; gap: 4px; flex-shrink: 0; }
.top-actions .btn-icon { width: 32px; height: 32px; padding: 0; font-size: 1rem; }
.top-actions .user-badge { height: 32px !important; }
#top-bar [data-tooltip] { border-bottom: none; }

/* --- Panels: belegte Header-Leisten, dichter Inhalt --- */
#dashboard { gap: 4px; padding: 4px; }
.panel { padding: 8px; border: 2px solid var(--border-color); }
#col-center { border-color: var(--border-color); border-top: 2px solid var(--brass-dim); }
h2 {
    font-size: 0.95rem; letter-spacing: 1px; margin-bottom: 8px; padding: 5px 8px;
    color: var(--brass);
    background: linear-gradient(var(--bg-bar-hi), var(--bg-bar));
    border: 1px solid var(--border-color); border-left: 4px solid var(--bordeaux);
}
h3 { font-size: 0.9rem; }
h4 { font-size: 0.9rem; }
.panel > h2.mt-2 { margin-top: 14px; }

/* Tabellen-Look fuer Status/Ressourcen: Zebra-Zeilen, feste Ziffern */
.stat-row { font-size: 0.85rem; padding: 4px 8px; border-bottom: 1px solid #000; }
.status-block .stat-row:nth-of-type(odd), .resource-block .stat-row:nth-of-type(odd) { background: var(--row-a); }
.status-block .stat-row:nth-of-type(even), .resource-block .stat-row:nth-of-type(even) { background: var(--row-b); }
.status-block, .resource-block { border: 1px solid var(--border-color); }
.status-block .heat-container { padding: 0 8px 6px; margin-top: 0; background: var(--row-b); }
.status-block .heat-container .stat-row { background: transparent; padding-left: 0; padding-right: 0; }
.progress-bar { height: 12px; border: 1px solid var(--border-color); background: #000; }

/* --- Buttons: harte Kanten, 2-Farben-Verlauf, harter Hover --- */
.btn {
    background: linear-gradient(#3a3835, #242321); border: 1px solid #55514c; border-bottom-color: #000;
    padding: 7px 10px; letter-spacing: 0.5px;
}
.btn:hover:not(:disabled) { background: linear-gradient(#242321, #3a3835); border-color: var(--brass-dim); color: #fff; }
.btn:active:not(:disabled) { background: #000; }
.btn:disabled { opacity: 0.45; border-style: solid; }
.btn-primary { background: var(--bordeaux); border: 1px solid var(--bordeaux-hi); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--bordeaux-hi); border-color: var(--brass-dim); color: #fff; }
.btn-danger { background: linear-gradient(#4a1816, #2a0d0c); border-color: var(--bordeaux-hi); color: #f0b4b1; }
.btn-danger:hover:not(:disabled) { background: linear-gradient(var(--bordeaux-hi), var(--bordeaux-lo)); color: #fff; }
.btn-success { background: linear-gradient(#2f7a07, #1d4a02); border-color: #1d4a02; color: #e4f2d8; }
.btn-success:hover:not(:disabled) { background: linear-gradient(#1d4a02, #2f7a07); color: #fff; }
.btn-small { padding: 4px 8px; }

/* --- Tabs: flach, eine Scroll-Zeile (simpel) --- */
.inner-tabs {
    display: flex; gap: 2px; margin-bottom: 10px;
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.inner-tab-btn {
    flex: 0 0 auto; background: var(--bg-base); border: 1px solid var(--border-color);
    padding: 7px 10px; font-size: 0.78rem; min-width: 72px; color: var(--text-muted);
}
.inner-tab-btn:hover { color: var(--text-main); border-color: var(--brass-dim); }
.inner-tab-btn.active {
    background: var(--bordeaux); color: #fff; border-color: var(--bordeaux-hi);
}

/* --- Karten wie Moodboard: Akzentleiste, Icon + Titel + Meta, volle Breite --- */
.upgrade-card, .crew-card, .loc-card, .raid-card, .turf-card, .market-card, .syndicate-card, .contact-card {
    width: 100%; padding: 8px 10px; margin-bottom: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color); border-left: 4px solid var(--brass-dim);
}
.loc-card { padding: 6px 10px; }
.loc-card .icon, .crew-card .crew-portrait {
    width: 40px !important; height: 40px !important; padding: 3px; flex-shrink: 0;
    background: #0d0d0d; border: 1px solid var(--border-color); object-fit: contain;
}
.loc-card h4 { font-size: 0.95rem; letter-spacing: 0.5px; text-transform: uppercase; }
.loc-card p { margin-top: 1px; }
.loc-card:hover { border-color: var(--brass-dim); }
.crew-block .crew-card { flex-wrap: nowrap; gap: 8px; padding: 6px 8px; border-left-color: var(--bordeaux-hi); }
.crew-card .crew-portrait { width: 44px !important; height: 44px !important; padding: 0; }
.crew-card .crew-name { color: var(--brass); font-size: 0.9rem; text-transform: uppercase; }
.crew-card .crew-role { font-size: 0.68rem; }
.crew-card > div:last-child { flex-shrink: 0; }
.raid-card, .turf-card, .syndicate-card { border-left-color: var(--bordeaux-hi); }
.market-card, .contact-card { border-left-color: var(--neon-green); }

/* --- Radar / Live-Ticker: Zeitungs-Look, kompakte Log-Zeilen --- */
#col-right h3 { color: var(--brass); font-size: 0.85rem; letter-spacing: 1px; }
#newspaper-headline {
    background: #cfc7b0; color: #1a1a1a; border: 1px solid #000; border-left: 4px solid var(--bordeaux);
    font-family: Georgia, 'Times New Roman', serif; font-weight: bold; animation: none; cursor: default; padding: 8px 10px;
}
#newspaper-headline:hover { background: #cfc7b0; color: #1a1a1a; }
#newspaper-headline strong { color: var(--bordeaux) !important; font-family: var(--font-main); letter-spacing: 1px; }
.ping-card { border: 1px solid var(--brass-dim); background: #1a1500; }
.ping-card:hover { background: var(--brass); color: #000; }
.log-box { font-size: 0.75rem; }
.log-entry { margin-bottom: 0; padding: 3px 4px; border-bottom: 1px solid #000; }
.log-box .log-entry:nth-child(odd) { background: var(--row-a); }
.log-box .log-entry:nth-child(even) { background: var(--row-b); }

/* --- Modale scharfkantig, Titel-Leiste --- */
.modal-content { border: 2px solid var(--border-color); border-top: 3px solid var(--bordeaux); }

/* --- Phase 1 Feinschliff --- */
.panel { overflow-x: auto; overflow-y: auto; }
.text-magenta { color: var(--bordeaux-hi); }
.text-green, .neon-green { color: #5f9e35; }
.inner-tab-btn { padding: 7px 10px; font-size: 0.74rem; min-width: 64px; }
#center-tabs.inner-tabs {
    flex: 0 0 auto;
    min-height: var(--touch);
    align-items: stretch;
}
.crew-block .crew-card { flex-wrap: wrap; }
.crew-card .crew-info { flex: 1 1 110px; }
.crew-card > div:last-child { flex: 0 1 auto; max-width: 100%; }
.crew-card > div:last-child .btn { width: auto; max-width: 100%; white-space: normal; }

/* --- Mobile ≈ Web: gleiche Chrome, kompakter Stack --- */
@media (max-width: 800px) {
    #top-bar {
        flex-wrap: wrap; align-items: center; gap: 6px 10px;
        padding: 6px 8px; min-height: 0;
        background: var(--bg-bar);
        border-bottom: 2px solid var(--bordeaux);
    }
    .top-logo { height: 30px; max-width: 110px; }
    .top-time {
        order: 2; margin-left: auto; font-size: 0.8rem; padding: 4px 8px;
        border: 1px solid var(--border-color); background: var(--bg-base);
    }
    .top-actions { order: 3; }
    .top-actions .btn-icon { width: var(--touch); height: var(--touch); }
    .top-actions .user-badge { height: var(--touch) !important; font-size: 0.75rem !important; }
    .res-strip {
        order: 4; flex-basis: 100%;
        display: flex; flex-wrap: nowrap; justify-content: space-between;
        gap: 4px; padding-top: 4px; border-top: 1px solid var(--border-color);
    }
    .res-chip { align-items: center; flex: 1; min-width: 0; }
    .res-label { font-size: 0.58rem; letter-spacing: 0.5px; }
    .res-val { font-size: 0.78rem; gap: 3px; color: var(--brass); }
    .res-val .icon { display: inline-block; width: 14px !important; height: 14px !important; }
    .btn, .btn-small, .inner-tab-btn { min-height: var(--touch); }
    .inner-tab-btn {
        flex: 0 0 auto; min-width: 78px;
        background: var(--bg-base); border: 1px solid var(--border-color);
    }
    .inner-tab-btn.active { background: var(--bordeaux); color: #fff; border-color: var(--bordeaux-hi); }
    #center-tabs.inner-tabs { margin: 0 0 8px; padding-bottom: 2px; }
    /* Karten wie Desktop */
    .loc-card .icon, .crew-card .crew-portrait {
        width: 40px !important; height: 40px !important;
    }
    .panel > h2 {
        color: var(--brass);
        border-bottom: 1px solid var(--border-color);
        border-left: 3px solid var(--bordeaux);
        padding: 4px 8px;
        background: var(--bg-bar);
        font-size: 0.9rem;
    }
    .stat-row:nth-child(odd) { background: var(--row-a); }
    .stat-row:nth-child(even) { background: var(--row-b); }
}

/* ============================================================
   v0.9.10 Street-Smart: Kiez-Szene, Sammelplatz-Gates, Crew-Rename
   Pennergame/WoC – Asphalt, Messing, Bordeaux, kein Neon
   ============================================================ */
.kiez-scene {
    background: #161412;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--bordeaux);
    padding: 8px 10px;
}
.kiez-scene-inner {
    display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
    min-height: 72px;
    background: linear-gradient(180deg, #1c1916 0%, #12100e 70%, #0e0c0a 100%);
    border: 1px solid #2a2622; padding: 8px;
}
.street-hideout {
    width: 56px; height: 56px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: #0d0d0d; border: 2px solid var(--border-color);
    color: var(--brass-dim); font-size: 1.6rem;
}
.street-hideout.stage-0 { border-color: #3a3530; opacity: 0.7; }
.street-hideout.stage-1 { border-color: var(--brass-dim); }
.street-hideout.stage-2 { border-color: var(--brass); box-shadow: inset 0 0 0 1px #3a3020; }
.street-hideout.stage-3 { border-color: var(--bordeaux-hi); background: #1a1210; }
.street-hideout.stage-4 { border-color: var(--brass); background: #1a1508; }
/* v0.12.24 Capo-Sitz */
.street-hideout.stage-5 {
    border-color: var(--brass);
    background: linear-gradient(180deg, #1a1208 0%, #0e0c0a 100%);
    box-shadow: inset 0 0 0 1px #3a2810;
}
.street-hideout.stage-5 .icon {
    width: 36px !important; height: 36px !important; object-fit: contain;
}
.hideout-capo-art {
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--bordeaux);
    background: #0d0d0d;
    overflow: hidden;
    max-height: 140px;
}
.hideout-capo-art img {
    display: block; width: 100%; height: 140px;
    object-fit: cover; object-position: center top;
}
@media (max-width: 800px) {
    .hideout-capo-art { max-height: 100px; }
    .hideout-capo-art img { height: 100px; }
}
.street-crew-row {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; flex: 1;
}
.street-crew-fig {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    width: 48px;
}
.street-crew-fig .icon {
    width: 36px !important; height: 36px !important;
    background: #0d0d0d; border: 1px solid var(--border-color); object-fit: contain;
}
.street-crew-name {
    font-size: 0.58rem; color: var(--brass); text-align: center;
    max-width: 48px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kiez-scene-label { margin-top: 6px; }

.hideout-scene { border-left-color: var(--brass-dim); }
.hideout-stage-banner { margin-bottom: 8px; }
.hideout-rooms-visual {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.hideout-room-chip {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 8px; background: #0d0d0d;
    border: 1px solid var(--border-color); min-width: 110px;
    opacity: 0.45;
}
.hideout-room-chip.built { opacity: 1; border-left: 3px solid var(--brass); }
.hideout-room-chip .icon { width: 28px !important; height: 28px !important; }
.hideout-room-name { font-size: 0.75rem; color: var(--text-main); }
.hideout-room-lvl { font-size: 0.68rem; color: var(--brass); margin-left: auto; }

.loc-card.loc-locked { opacity: 0.55; border-left-color: #444; }
.loc-drops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.loc-drop {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 0.68rem; color: var(--text-muted);
    background: #0d0d0d; border: 1px solid #2a2622; padding: 1px 4px;
}
.loc-drop .icon { width: 14px !important; height: 14px !important; }
.loc-how { color: var(--brass-dim); margin-top: 3px; line-height: 1.3; }

.crew-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.btn-ghost {
    background: transparent; border: 1px solid var(--border-color);
    color: var(--brass); padding: 2px 8px; min-height: 28px;
}
.btn-ghost:hover { border-color: var(--brass); color: #fff; }

@media (max-width: 800px) {
    .kiez-scene-inner { min-height: 64px; padding: 6px; }
    .street-hideout { width: 48px; height: 48px; font-size: 1.3rem; }
    .hideout-room-chip { min-width: 96px; }
    .loc-how { font-size: 0.68rem; }
}

/* ============================================================ */
/* v0.12.4 – Pay-all Löhne + Idle-Warum-Panel */
/* ============================================================ */
.crew-pay-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    padding: 6px 8px; background: var(--bg-card);
    border: 1px solid var(--border-color); border-left: 4px solid var(--bordeaux-hi);
}
.crew-pay-bar .btn { min-height: 36px; width: auto; }
/* v0.12.76 Crew-Folgen: Trust + Idle + Lohnquote */
/* v0.12.77: Schicht-Link Touch 44px/Messing; Jobs-Zeile lesbar */
.crew-folgen {
    padding: 6px 8px; background: var(--bg-card);
    border: 1px solid var(--border-color); border-left: 4px solid var(--messing, #c4a35a);
}
.crew-folgen-head { font-weight: 600; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.04em; }
.crew-folgen-line { padding: 2px 0; border-bottom: 1px dotted rgba(68,65,62,0.5); }
.crew-folgen-line:last-child { border-bottom: none; }
#crew-folgen-jobs { color: var(--text-main); }
.crew-folgen .shift-link,
#crew-folgen a.shift-link {
    display: inline-block; min-height: 44px; line-height: 44px; padding: 0 10px;
    color: var(--brass); text-decoration: none; vertical-align: middle;
}
.crew-folgen .shift-link:hover { color: var(--brass-dim); text-decoration: underline; }
#idle-why-panel { background: var(--bg-card); border-color: var(--border-color); }
#idle-why-panel h3 { border-bottom: 1px solid var(--border-color); padding-bottom: 4px; }
.idle-why-row { padding: 2px 0; border-bottom: 1px dotted rgba(68,65,62,0.6); }
.idle-why-row:last-child { border-bottom: none; }
@media (max-width: 800px) {
    .crew-pay-bar .btn { min-height: 44px; flex: 1 1 auto; }
    /* v0.12.85: Idle-Label B mobil kompakt (Kurztext aus ui.js) */
    #crew-folgen-idle { font-size: 0.85rem; line-height: 1.35; word-break: break-word; }
}

/* ============================================================ */
/* v0.10.2 – Shift-Board „Deine Schicht“ (Asphalt/Messing/Bordeaux, kein Neon) */
/* ============================================================ */
#shift-board { background: var(--bg-card); border-color: var(--border-color); }
#shift-board h3 { border-bottom: 1px solid var(--border-color); padding-bottom: 4px; }
.shift-card { border-left-color: var(--bordeaux-hi); display: flex; flex-direction: column; gap: 6px; }
.shift-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; text-transform: uppercase; }
.shift-orders, .shift-focus { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.shift-orders .btn, .shift-focus .btn { width: auto; min-width: 64px; flex: 1 1 auto; }
.shift-focus { text-transform: none; }
.btn-order-active { background: linear-gradient(var(--bordeaux-hi), var(--bordeaux-lo)) !important; border-color: var(--bordeaux-lo) !important; color: #fff !important; }
.shift-card .btn:disabled { opacity: 0.4; }
@media (max-width: 800px) {
    .shift-orders .btn, .shift-focus .btn { min-height: 44px; font-size: 0.75rem; }
}

/* ============================================================ */
/* v0.10.4 – Markt-Woche: Banner + 7-Tage-Preis-Timeline (kein Neon) */
/* ============================================================ */
#market-week-banner {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-left: 6px solid var(--brass-dim);
    color: var(--text-main);
}
.market-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    border-left-color: var(--brass-dim);
}
.market-timeline {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px 0;
    border-top: 1px solid var(--border-color);
}
.market-day {
    display: grid;
    grid-template-columns: 36px 1fr 48px;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
}
.market-day .day-label { color: var(--text-muted); text-align: right; }
.market-day .day-bar {
    display: block;
    height: 10px;
    background: linear-gradient(90deg, var(--bordeaux-lo), var(--brass-dim));
    border: 1px solid var(--border-color);
    max-width: 100%;
}
.market-day.best .day-bar {
    background: linear-gradient(90deg, var(--bordeaux-hi), var(--brass));
    box-shadow: inset 0 0 0 1px rgba(212, 163, 75, 0.45);
}
.market-day.best .day-label,
.market-day.best .day-price { color: var(--brass); font-weight: bold; }
.market-day .day-price { text-align: right; color: var(--text-main); }
.market-card .flex-gap { flex-wrap: wrap; }
.market-card .btn { width: auto; min-width: 72px; flex: 1 1 auto; }
@media (max-width: 800px) {
    .market-card .btn { min-height: 44px; }
    .market-day { font-size: 0.68rem; }
}

/* v0.11.1 – Pixel-Preiskurve + Straßenwaren + Schrott-Sort */
.pixel-chart-wrap { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.pixel-chart {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    background: #141210;
    border: 2px solid var(--border-color);
    border-left: 4px solid var(--brass-dim);
}
.market-street { border-left-color: var(--brass); }
.market-street-closed { opacity: 0.85; }
.street-window-banner { padding: 4px 8px; border-left: 3px solid var(--brass); background: rgba(60, 48, 28, 0.35); }
.street-window-open { border-left-color: #3d7a3d; color: #b8d4a8; }
.street-window-closed { border-left-color: var(--bordeaux-hi); color: #c4a090; }
#scrap-sort-area { border-left: 6px solid var(--brass-dim); }

/* v0.11.2 – Random-Händler Visiten */
.trader-announce {
    background: #1a1508;
    border: 2px solid var(--brass-dim);
    border-left: 6px solid var(--bordeaux-hi);
    padding: 8px 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    animation: trader-pulse 1.2s steps(2) 4;
}
.trader-announce.deal-high { border-left-color: #3d7a3d; }
.trader-announce.deal-low { border-left-color: var(--bordeaux-hi); }
@keyframes trader-pulse {
    0%, 100% { background: #1a1508; }
    50% { background: #2a2010; }
}
.trader-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-left: 6px solid var(--brass-dim);
    padding: 8px 10px;
    margin-bottom: 8px;
}
.trader-card.deal-high { border-left-color: #3d7a3d; }
.trader-card.deal-low { border-left-color: var(--bordeaux-hi); }

/* ============================================================ */
/* v0.10.4 – LOGIN-POLISH (Web + Mobil) & MODUSWAHL Sodom | Idle */
/* Asphalt / Messing / Bordeaux, scharfe Kanten, KEIN Neon.      */
/* Hub-Art: hub_sodom.webp (Assets); Idle-Banner hub_idle.webp – */
/* ohne Datei zeigt die Karte nur die Farbfläche, kein Broken-Img) */
/* ============================================================ */
.login-overlay { overflow-y: auto; }
.login-overlay button:focus-visible,
.login-overlay input:focus-visible,
.mode-card:focus-visible {
    outline: 2px solid var(--brass); outline-offset: 2px;
}
.login-btn-primary, .login-btn-secondary, .login-btn-oauth, .login-btn-guest { min-height: 44px; }

.mode-select-overlay {
    position: fixed; inset: 0; z-index: 9998;
    background-color: #0d0d0d;
    background-image: linear-gradient(rgba(10,10,10,0.93), rgba(10,10,10,0.97)), url("../assets/art/login_hero.webp");
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    padding: 24px 16px; overflow-y: auto;
}
.mode-select-overlay.hidden { display: none; }
.mode-select-inner { width: 100%; max-width: 1080px; text-align: center; }
.mode-select-title {
    font-size: 1.8rem; letter-spacing: 3px; color: var(--brass);
    text-shadow: 2px 2px 0 #000; margin-bottom: 4px;
}
.mode-select-sub { font-size: 0.85rem; letter-spacing: 1px; margin-bottom: 22px; text-transform: uppercase; }

.mode-select-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
}
.mode-card {
    display: flex; flex-direction: column; text-align: left;
    background: #1a1a1a; color: var(--text-main);
    border: 2px solid var(--border-color); border-top: 4px solid var(--bordeaux-hi);
    padding: 0; cursor: pointer; font-family: var(--font-main);
    min-height: 260px; width: 100%;
    transition: none;
}
.mode-card-idle { border-top-color: var(--brass-dim); }
.mode-card-pottpenner { border-top-color: #8c7355; }
.mode-card-admin { border-top-color: var(--brass); }
.mode-card-admin .mode-card-art {
    background-image: none;
    background-color: #2a2418;
}
.mode-card:hover { border-color: var(--brass-dim); background: #202020; }
.mode-card:active { background: #000; }
/* v0.12.163: Hub-Kachel unter Wartung (Non-Admin) */
.mode-card.maint-locked {
  opacity: 0.48;
  filter: grayscale(0.55);
  cursor: not-allowed;
  pointer-events: auto;
}
.mode-card.maint-locked:hover {
  border-color: #555;
  background: #181818;
}
.mode-card.maint-locked .mode-card-cta {
  background: #3a3a3a;
  color: #bbb;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.78rem;
}
.mode-card.maint-locked:hover .mode-card-cta {
  background: #3a3a3a;
}

.mode-card-art {
    display: block; width: 100%; height: 120px; flex-shrink: 0;
    background-color: #2a0d0c;
    background-image: linear-gradient(180deg, rgba(0,0,0,0.15) 30%, rgba(26,26,26,0.95) 100%),
                      url("../assets/art/hub_sodom.webp");
    background-size: cover; background-position: center top;
    border-bottom: 2px solid #000;
}
.mode-card-idle .mode-card-art {
    background-color: #d8c79a;
    background-image: linear-gradient(180deg, rgba(0,0,0,0.15) 30%, rgba(26,26,26,0.95) 100%),
                      url("../assets/art/hub_idle.webp");
    background-size: cover;
    background-position: center top;
}
.mode-card-pottpenner .mode-card-art {
    background-color: #1a1512;
    background-image: linear-gradient(180deg, rgba(0,0,0,0.15) 30%, rgba(26,26,26,0.95) 100%),
                      url("../assets/art/hub_pottpenner.webp");
    background-size: cover;
    background-position: center top;
}
.mode-remember {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 18px; cursor: pointer; user-select: none;
    min-height: 44px; padding: 6px 4px; /* v0.12.32: ganze Label-Fläche tappbar */
}
.mode-remember input { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--brass); }

.mode-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.mode-card-kicker { font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.mode-card-title { font-size: 1.5rem; letter-spacing: 2px; text-transform: uppercase; color: var(--brass); font-weight: bold; }
.mode-card-text { font-size: 0.85rem; line-height: 1.4; color: var(--text-main); font-weight: normal; }
.mode-card-cta {
    margin-top: auto; align-self: stretch; text-align: center;
    background: linear-gradient(var(--bordeaux-hi), var(--bordeaux-lo));
    border: 1px solid var(--bordeaux-lo); color: #f5f0e6;
    padding: 0 12px; min-height: 44px; line-height: 44px;
    text-transform: uppercase; letter-spacing: 2px; font-weight: bold; font-size: 0.85rem;
}
.mode-card:hover .mode-card-cta { background: linear-gradient(#a33632, var(--bordeaux)); }

.mode-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}
.mode-card-info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brass);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--brass-dim);
    border-radius: 2px;
    padding: 3px 8px;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
    min-height: 28px;
}
.mode-card-info-badge:hover,
.mode-card-info-badge:focus-visible {
    background: var(--brass-dim);
    border-color: var(--brass);
    color: #000;
}

/* ============================================================ */
/* Spiel-Details Modal (v0.12.156)                              */
/* ============================================================ */
.game-info-overlay {
    position: fixed;
    inset: 0;
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.game-info-overlay.hidden { display: none; }
.game-info-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}
.game-info-modal {
    position: relative;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    background: #151515;
    border: 2px solid var(--brass);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    padding: 24px;
    color: var(--text-main);
    font-family: var(--font-main);
    text-align: left;
}
.game-info-header {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #333;
    padding-bottom: 16px;
    margin-bottom: 18px;
}
.game-info-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    background: #000;
    border-radius: 4px;
    flex-shrink: 0;
}
.game-info-title-group {
    flex: 1;
    min-width: 0;
}
.game-info-kicker {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brass);
    margin-bottom: 2px;
}
.game-info-title {
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: #fff;
    margin: 0;
    text-shadow: 1px 1px 0 #000;
}
.game-info-close {
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.8rem;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
    align-self: flex-start;
}
.game-info-close:hover {
    color: #fff;
}
.game-info-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}
.game-info-section {
    background: #1c1c1c;
    border-left: 3px solid var(--brass-dim);
    padding: 12px 14px;
}
.game-info-subtitle {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brass);
    margin: 0 0 6px 0;
}
.game-info-text {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #ccc;
    margin: 0;
}
.game-info-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #333;
    padding-top: 16px;
}
@media (max-width: 600px) {
    .game-info-modal {
        padding: 18px 14px;
    }
    .game-info-footer {
        flex-direction: column-reverse;
        width: 100%;
    }
    .game-info-footer button {
        width: 100%;
    }
}

/* v0.12.161: Hub mobil 360–430 — volle Breite, Touch ≥44px, kein horizontaler Scroll */
@media (max-width: 680px) {
    .mode-select-grid { grid-template-columns: 1fr; gap: 12px; }
    .mode-card { min-height: 0; width: 100%; max-width: 100%; }
    .mode-select-inner { max-width: 100%; padding: 0; box-sizing: border-box; }
    body.hub-gate { overflow-x: hidden; }
}
@media (max-width: 480px) {
    .login-overlay { padding: 12px; }
    .mode-select-overlay {
        padding: 16px 12px;
        padding-left: calc(12px + env(safe-area-inset-left, 0px));
        padding-right: calc(12px + env(safe-area-inset-right, 0px));
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        align-items: flex-start;
    }
    .mode-select-title { font-size: 1.35rem; letter-spacing: 2px; margin-top: 8px; }
    .mode-select-sub { font-size: 0.75rem; margin-bottom: 14px; overflow-wrap: anywhere; }
    .mode-card-art { height: 92px; }
    .mode-card-body { padding: 12px 14px 14px; min-width: 0; }
    .mode-card-title { font-size: 1.25rem; }
    .mode-card-text { font-size: 0.8rem; overflow-wrap: anywhere; hyphens: auto; }
    .mode-card-cta { min-height: 44px; line-height: 44px; }
    .mode-card-info-badge { min-height: 44px; min-width: 44px; padding: 0 10px; }
    .mode-select-grid { width: 100%; }
}
@media (max-width: 430px) {
    .mode-select-grid { grid-template-columns: 1fr; }
    .mode-card { width: 100%; }
}

/* ============================================================ */
/* v0.12.7 – Razzia-Banner „Streifen im Viertel“                 */
/* Gedämpft: Asphalt-Grau + Bordeaux-Kante, KEIN Blaulicht/Cyan.  */
/* ============================================================ */
.razzia-banner {
    background: #1c1819;
    border: 2px solid #3a3335;
    border-left: 6px solid var(--bordeaux-hi);
    padding: 8px 10px; margin-bottom: 8px;
}
.razzia-banner.hidden { display: none; }
.razzia-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.razzia-title { color: #d8cfc4; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }
.razzia-timer { color: var(--brass-dim); white-space: nowrap; }
.razzia-text { color: var(--text-muted); font-weight: normal; margin: 4px 0 8px; }
.razzia-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.razzia-actions .btn { width: auto; flex: 1 1 120px; }
.razzia-actions .btn:disabled { opacity: 0.4; }
@media (max-width: 800px) {
    .razzia-actions .btn { min-height: 44px; flex: 1 1 100%; }
}

/* ============================================================ */
/* v0.12.9 – Kiez-Plan (L1). Papier/Stadtplan-Anmutung, scharf,  */
/* Bordeaux-Marker, Messing-Titel. KEIN Neon, kein Minimap-Glow.  */
/* ============================================================ */
.kiez-plan { background: var(--bg-card); border-color: var(--border-color); border-left: 4px solid var(--bordeaux-hi); }
.kiez-plan.hidden, .kiez-plan-hint.hidden, #map-kiez-body.hidden, #btn-map-unlock.hidden { display: none; }
.kiez-plan-title { border-bottom: 1px solid var(--border-color); padding-bottom: 4px; }
.kiez-plan-hint { font-weight: normal; line-height: 1.4; }
.kiez-plan-actions { margin-bottom: 8px; }
.kiez-plan-actions .btn { width: auto; }
.kiez-plan-list { list-style: none; counter-reset: plan; display: flex; flex-direction: column; gap: 4px; }
.kiez-plan-row {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    background: #efe6d2; color: #1a1613; border: 1px solid #5a4a3a; padding: 6px 10px;
    cursor: pointer; font-weight: bold;
}
.kiez-plan-row::before {
    counter-increment: plan; content: counter(plan) "."; color: var(--bordeaux);
    font-weight: bold; margin-right: 6px;
}
.kiez-plan-row:hover { background: #f5edd9; box-shadow: inset 4px 0 0 var(--bordeaux); }
.kiez-plan-row-unknown { opacity: 0.6; cursor: default; }
.kiez-plan-name { flex: 1; text-transform: uppercase; letter-spacing: 0.5px; }
.kiez-plan-ctrl { white-space: nowrap; color: #4a2a22; font-weight: normal; }
.kiez-plan-next { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border-color); font-weight: normal; font-style: italic; }
@media (max-width: 800px) {
    .kiez-plan-row { min-height: 44px; flex-wrap: wrap; }
    .kiez-plan-actions .btn { min-height: 44px; width: 100%; }
}

/* ============================================================ */
/* v0.12.10 – Nachbarstadt-Panel (L2 · Klinkenhafen)             */
/* Gleiche Papier-/Bordeaux-Sprache wie Kiez-Plan, kein Neon.     */
/* ============================================================ */
.city-plan { background: var(--bg-card); border-color: var(--border-color); border-left: 4px solid var(--brass-dim); }
.city-plan.hidden, .city-plan-hint.hidden, #map-city-body.hidden, #btn-map-city-unlock.hidden { display: none; }
.city-plan-title { border-bottom: 1px solid var(--border-color); padding-bottom: 4px; }
.city-plan-hint { font-weight: normal; line-height: 1.4; }
.city-plan-actions { margin-bottom: 8px; }
.city-plan-actions .btn { width: auto; }
.city-plan-card { background: #efe6d2; color: #1a1613; border: 1px solid #5a4a3a; padding: 8px 10px; }
.city-plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.city-plan-name { text-transform: uppercase; letter-spacing: 0.5px; color: #1a1613; }
.city-plan-status { color: #256302; font-weight: bold; text-transform: uppercase; }
.city-plan-desc { font-weight: normal; margin-top: 4px; color: #3a2e26; }
.city-plan-next { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border-color); font-weight: normal; font-style: italic; }
@media (max-width: 800px) {
    .city-plan-actions .btn { min-height: 44px; width: 100%; }
}

/* ============================================================ */
/* v0.12.11 – Region (L3 · Unterelbe & Marschland)               */
/* Papier-Karte, Bordeaux/Messing, kein Neon.                    */
/* ============================================================ */
.region-plan { background: var(--bg-card); border-color: var(--border-color); border-left: 4px solid var(--bordeaux); }
.region-plan.hidden, .region-plan-hint.hidden, #map-region-body.hidden, #btn-map-region-unlock.hidden { display: none; }
.region-plan-title { border-bottom: 1px solid var(--border-color); padding-bottom: 4px; }
.region-plan-hint { font-weight: normal; line-height: 1.4; }
.region-plan-actions { margin-bottom: 8px; }
.region-plan-actions .btn { width: auto; }
.region-plan-card { background: #efe6d2; color: #1a1613; border: 1px solid #5a4a3a; padding: 8px 10px; }
.region-plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.region-plan-name { text-transform: uppercase; letter-spacing: 0.5px; color: #1a1613; }
.region-plan-status { color: #256302; font-weight: bold; text-transform: uppercase; }
.region-plan-desc { font-weight: normal; margin-top: 4px; color: #3a2e26; }
.region-plan-meta { font-weight: normal; margin-top: 4px; color: #5a1c1a; }
.region-plan-next { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border-color); font-weight: normal; font-style: italic; }
@media (max-width: 800px) {
    .region-plan-actions .btn { min-height: 44px; width: 100%; }
}

/* ============================================================ */
/* v0.12.14 – Ausland (L4 · Rotterdam-Korridor)                  */
/* Papier-Karte, Bordeaux/Messing, kein Neon.                    */
/* ============================================================ */
.abroad-plan { background: var(--bg-card); border-color: var(--border-color); border-left: 4px solid var(--bordeaux-hi); }
.abroad-plan.hidden, .abroad-plan-hint.hidden, #map-abroad-body.hidden, #btn-map-abroad-unlock.hidden { display: none; }
.abroad-plan-title { border-bottom: 1px solid var(--border-color); padding-bottom: 4px; }
.abroad-plan-hint { font-weight: normal; line-height: 1.4; }
.abroad-plan-actions { margin-bottom: 8px; }
.abroad-plan-actions .btn { width: auto; }
.abroad-plan-card { background: #efe6d2; color: #1a1613; border: 1px solid #5a4a3a; padding: 8px 10px; }
.abroad-plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.abroad-plan-name { text-transform: uppercase; letter-spacing: 0.5px; color: #1a1613; }
.abroad-plan-status { color: #256302; font-weight: bold; text-transform: uppercase; }
.abroad-plan-desc { font-weight: normal; margin-top: 4px; color: #3a2e26; }
.abroad-plan-meta { font-weight: normal; margin-top: 4px; color: #5a1c1a; }
.abroad-plan-next { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border-color); font-weight: normal; font-style: italic; }
@media (max-width: 800px) {
    .abroad-plan-actions .btn { min-height: 44px; width: 100%; }
}

/* ============================================================ */
/* v0.12.15 – Tour-Steuerung (Region & Ausland)                  */
/* Papier-Karte, Bordeaux/Messing, kein Neon, Buttons ≥44px.     */
/* ============================================================ */
.plan-tour { margin-top: 10px; padding: 8px 10px; background: #1c1819; border: 2px solid #3a3335; border-left: 4px solid var(--brass-dim); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.plan-tour.hidden { display: none; }
.plan-tour-timer { color: var(--brass); font-weight: bold; letter-spacing: 0.5px; margin-right: auto; }
.plan-tour-ready { color: #8fc46a; }
.plan-tour-btn { width: auto; min-width: 140px; min-height: 44px; }
.plan-tour-btn:disabled { opacity: 0.45; }
.plan-tour-note { flex-basis: 100%; margin: 0; font-weight: normal; }
@media (max-width: 800px) {
    .plan-tour-btn { width: 100%; }
    .plan-tour-timer { margin-right: 0; flex-basis: 100%; }
}

/* v0.12.15: leere Karte im Zustand "freischaltbar" ausblenden (Klasse hidden) */
.city-plan-card.hidden, .region-plan-card.hidden, .abroad-plan-card.hidden { display: none; }

/* ============================================================ */
/* v0.12.16 – Wohnmobil (Tour-Slot)                               */
/* Papier-Karte, Bordeaux/Messing, kein Neon, Buttons ≥44px.      */
/* ============================================================ */
.vehicle-panel { background: var(--bg-card); border-color: var(--border-color); border-left: 4px solid var(--brass-dim); }
.vehicle-panel.hidden { display: none; }
.vehicle-panel-title { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--border-color); padding-bottom: 4px; }
.vehicle-panel-card { background: #efe6d2; color: #1a1613; border: 1px solid #5a4a3a; padding: 8px 10px; }
.vehicle-panel-desc { font-weight: normal; color: #3a2e26; margin-bottom: 4px; }
.vehicle-panel-gates { color: #5a1c1a; font-weight: bold; margin-bottom: 6px; }
.vehicle-panel-status { margin-bottom: 8px; }
.vehicle-owned { color: #256302; text-transform: uppercase; letter-spacing: 0.5px; }
.vehicle-panel-actions .btn { width: auto; min-width: 140px; min-height: 44px; }
.vehicle-panel-actions .btn.hidden { display: none; }
@media (max-width: 800px) {
    .vehicle-panel-actions .btn { width: 100%; }
}

/* v0.12.18 Review-Patch: Touch-Ziele ≥44px auf Mobil (Hilfe-Buttons in Titeln, Syndikat-Eingabe) */
@media (max-width: 800px) {
    .btn-help-local { width: var(--touch) !important; height: var(--touch) !important; }
    .input-dark, .login-input { min-height: var(--touch); font-size: 1rem; }
}

/* ============================================================ */
/* v0.12.19 – Rucksack/Inventar (Asphalt/Messing/Bordeaux)        */
/* ============================================================ */
.inventory-panel { background: var(--bg-card); border-color: var(--border-color); border-left: 4px solid var(--brass-dim); }
.inventory-panel.hidden, .inventory-warn.hidden, .inventory-upgrade.hidden { display: none; }
.inventory-title { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--border-color); padding-bottom: 4px; }
.inv-hint { margin: 0 0 4px; line-height: 1.25; }
.inventory-contents { max-height: 160px; overflow-y: auto; }
.inv-row { display: flex; align-items: center; gap: 6px; padding: 2px 0; border-bottom: 1px solid var(--border-color); }
.craft-locked { opacity: 0.5; }
.craft-cost { margin: 2px 0 4px; }
.badge-needs-job { font-weight: bold; }
.app-version { font-size: 0.6rem; align-self: center; margin-left: 4px; white-space: nowrap; opacity: 0.75; }
/* v0.12.138/131: Wartungsmodus Admin-Bypass Badge + Login-Banner (Asphalt/Messing/Bordeaux) */
.maint-admin-badge { flex-shrink: 0;
    display: inline-flex; align-items: center; align-self: center;
    max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em;
    color: var(--brass, #FFCC66);
    background: rgba(102, 0, 0, 0.35);
    border: 1px solid var(--bordeaux, #660000);
    border-radius: 2px; padding: 2px 8px; margin-right: 4px;
}
.maint-admin-badge.hidden { display: none !important; }
.maint-login-banner {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden; max-height: 4.8em;
    margin: 10px 0 6px; padding: 10px 12px;
    text-align: center; font-weight: 700; font-size: 0.9rem; line-height: 1.35;
    color: var(--brass, #FFCC66);
    background: rgba(102, 0, 0, 0.4);
    border: 2px solid var(--bordeaux, #660000);
    border-radius: 2px;
}
.maint-login-banner.hidden { display: none !important; }
.inv-bar-ok { background: var(--brass-dim); }
.inv-bar-warn { background: #b8761a; }
.inventory-warn { margin-top: 6px; color: #e0a24a; font-weight: normal; }
.inventory-upgrade { margin-top: 8px; }
.inventory-reason { color: var(--bordeaux-hi); }
.inventory-actions { margin-top: 6px; }
.inventory-actions .btn { width: auto; min-width: 120px; min-height: 44px; }
@media (max-width: 800px) {
    .inventory-actions .btn { width: 100%; }
    /* v0.12.109 Option B: mobil kompakt */
    .inventory-contents { max-height: 88px; }
    .inventory-panel { padding: 6px 8px; }
    .inventory-upgrade .upgrade-card { font-size: 0.85rem; }
    .inv-hint { font-size: 0.72rem; }
}

/* v0.12.20 – Encounter / Radar Kosten-Chips (kein Roh-HTML in Labels) */
.cost-chip { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; border-bottom: none; }
.cost-chip .cost-amt { font-variant-numeric: tabular-nums; }
.cost-chip .cost-name { color: var(--text-muted); font-size: 0.85em; }
.encounter-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; min-height: 44px; width: 100%; border-left: 3px solid var(--brass-dim); }
.encounter-opt-label { font-weight: bold; color: var(--text-main); }
.encounter-opt-cost { display: flex; flex-wrap: wrap; gap: 4px; }
.encounter-opt:disabled { opacity: 0.45; }
#modal-encounter .modal-content { border-color: var(--bordeaux) !important; border-top-color: var(--bordeaux); }
#modal-encounter #encounter-title { color: var(--brass); text-shadow: none; }
.ping-kicker { color: var(--bordeaux); font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; }
.ping-text { margin: 4px 0; font-weight: normal; color: var(--text-main); }
#active-ping.ping-card { cursor: pointer; border-left: 4px solid var(--brass-dim); background: #1c1812; }
#active-ping.ping-card:hover { background: #2a2418; color: inherit; }
/* ============================================================ */
/* v0.12.20 – Radar / Liveticker / Encounter (Papier, Asphalt, Messing, Bordeaux) */
/* KEIN Neon, keine Blink-Animation. Buttons ≥44px mobil.                             */
/* ============================================================ */
.ping-card, #newspaper-headline {
    animation: none !important;
    background: #1c1819; color: var(--text-main);
    border: 1px solid #3a3335; border-left: 4px solid var(--bordeaux-hi);
    padding: 8px 10px; cursor: pointer;
}
.ping-card { background: #efe6d2; color: #1a1613; border-color: #5a4a3a; border-left-color: var(--bordeaux-hi); }
.ping-card:hover { background: #f5edd9; box-shadow: inset 4px 0 0 var(--bordeaux); }
.ping-kicker {
    display: inline-block; font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--bordeaux); margin-bottom: 2px;
}
.ping-text { display: block; font-family: Georgia, 'Times New Roman', serif; font-weight: bold; font-size: 0.95rem; margin: 2px 0; color: #1a1613; }
.ping-action { color: #5a1c1a; font-weight: normal; }
#newspaper-headline { background: #cfc7b0; color: #1a1613; border-color: #000; border-left-color: var(--bordeaux); }
#newspaper-headline .ping-kicker { color: var(--bordeaux); }
#newspaper-headline #newspaper-text { display: block; font-family: Georgia, 'Times New Roman', serif; font-weight: bold; color: #1a1613; }

/* v0.12.72: Freitag-Zahltag-Banner */
.friday-pay-banner {
    background: #1c1812;
    border-bottom: 2px solid var(--bordeaux-hi, #8b2e2a);
    border-top: 1px solid var(--brass-dim, #6a5a3a);
    padding: 8px 12px;
}
.friday-pay-inner {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    max-width: 1200px; margin: 0 auto;
}
.friday-pay-title {
    font-family: var(--font-main, sans-serif);
    letter-spacing: 1px; text-transform: uppercase; font-size: 0.85rem;
}
.friday-pay-text { flex: 1 1 180px; font-size: 0.9rem; color: var(--text-main, #e8e0d0); }
#btn-friday-pay-all { min-height: 44px; }
/* v0.12.74: Mobil kein Banner — Zahltag nur in #mobile-action-bar (Chrome-Budget + kein Doppel-CTA) */
@media (max-width: 800px) {
    .friday-pay-banner { display: none !important; }
}

/* v0.12.64: Offline-Schlafzeilen als Stadtblatt (Layout-Erweiterung v0.12.111 am Dateiende) */
.offline-paper-clip {
    cursor: default; animation: none;
    background: #efe6d2; color: #1a1613;
    border: 1px solid #5a4a3a; border-left: 4px solid var(--bordeaux-hi);
    padding: 8px 10px;
}
.offline-paper-clip:hover { background: #f5edd9; color: #1a1613; box-shadow: none; }
.offline-paper-clip .ping-kicker { color: var(--bordeaux); display: block; margin-bottom: 2px; }
.offline-paper-clip .offline-paper-text {
    display: block; font-family: Georgia, 'Times New Roman', serif;
    font-weight: bold; font-size: 0.92rem; color: #1a1613;
}
.offline-paper-clip.border-danger { border-left-color: var(--bordeaux); }

/* Radar-Leerzustand */
#no-ping-text { color: var(--text-muted); font-style: italic; font-weight: normal; padding: 8px 0; border-top: 1px dashed var(--border-color); border-bottom: 1px dashed var(--border-color); }

/* Encounter-Modal: Bordeaux-Kopfkante, Messing-Titel, Optionen gestapelt */
.encounter-modal { border: 2px solid var(--border-color); border-top: 4px solid var(--bordeaux-hi); background: #161213; }
.encounter-modal h2 { color: var(--brass); }
#encounter-text { font-weight: normal; line-height: 1.45; color: var(--text-main); }
#encounter-options { display: flex; flex-direction: column; gap: 10px; }
.encounter-opt {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    text-align: left; min-height: 44px; width: 100%;
    background: #1f1a1b; border: 1px solid #4a3f40; border-left: 4px solid var(--bordeaux-hi);
    padding: 10px 12px; text-transform: none; font-weight: bold; letter-spacing: 0;
}
.encounter-opt:hover:not(:disabled) { background: #2a2122; border-color: var(--brass-dim); border-left-color: var(--brass); color: #fff; }
.encounter-opt:disabled { opacity: 0.5; border-left-color: #4a3f40; }
.encounter-opt-label { font-size: 0.95rem; color: var(--text-main); text-transform: none; }
.encounter-opt-hint { font-weight: normal; }
.encounter-opt-cost { display: flex; flex-wrap: wrap; gap: 6px; }
.encounter-opt-tool { font-weight: normal; }
.cost-chip {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px;
    background: #0d0b0b; border: 1px solid var(--border-color); color: var(--brass);
    font-size: 0.8rem; font-weight: bold; white-space: nowrap;
}
.encounter-opt:disabled .cost-chip { color: var(--text-muted); }
@media (max-width: 800px) {
    .encounter-opt { min-height: 48px; }
    .encounter-modal { width: 94%; }
}

/* v0.12.20: aktive Gelegenheit (#active-ping) – Papier-Look, Id-Regel aus früherem Block überschreiben */
#active-ping.ping-card { background: #efe6d2; color: #1a1613; border-color: #5a4a3a; border-left: 4px solid var(--bordeaux-hi); }
#active-ping.ping-card:hover { background: #f5edd9; color: #1a1613; }
#active-ping .ping-text { color: #1a1613; }
#active-ping .ping-action { color: #5a1c1a; }

/* ============================================================ */
/* v0.12.22 – Spielstand-Auswahl + Hub-Logo zurück zur Wahl      */
/* ============================================================ */
.top-logo-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0; padding: 0; margin: 0;
    cursor: pointer; min-height: 44px; min-width: 44px;
}
.top-logo-btn:hover .top-logo { filter: brightness(1.15); }
.top-logo-btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* v0.12.28 – Legend-Prestige Skin Header (Capo #7) */
#top-bar.legend-skin {
    border-bottom-color: var(--brass-dim);
    box-shadow: inset 0 -1px 0 #3a2e14;
}
.legend-badge {
    display: inline-flex; align-items: center; gap: 6px;
    flex-shrink: 0; min-height: 44px; padding: 4px 8px;
    border: 1px solid var(--brass-dim); border-left: 3px solid var(--bordeaux);
    background: linear-gradient(#2a2420, #1a1a1a);
}
.legend-badge-icon { width: 16px; height: 16px; image-rendering: pixelated; flex-shrink: 0; }
.legend-badge-label {
    font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase;
    white-space: nowrap; font-weight: bold;
}
@media (max-width: 680px) {
    .legend-badge-label { font-size: 0.65rem; letter-spacing: 0.5px; }
    .legend-badge { padding: 4px 6px; }
}

/* v0.12.55 Batch 4.3: Crew-Rang Topbar & Liste */
.crew-rank-badge {
    display: inline-flex; align-items: center; gap: 6px;
    flex-shrink: 0; min-height: 44px; padding: 4px 8px;
    border: 1px solid var(--brass-dim); border-left: 3px solid var(--brass);
    background: linear-gradient(#24201a, #141414);
    cursor: default;
}
.crew-rank-label {
    font-size: 0.75rem; letter-spacing: 0.5px;
    white-space: nowrap; font-weight: bold;
}
@media (max-width: 680px) {
    .crew-rank-label { font-size: 0.65rem; }
    .crew-rank-badge { padding: 4px 6px; min-height: 36px; }
}
.crew-rank-info {
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.25);
    border-left: 3px solid var(--brass-dim);
}

.save-select-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px;
    margin-bottom: 16px;
}
.save-slot-card {
    display: flex; flex-direction: column; text-align: left; gap: 8px;
    background: #1a1a1a; color: var(--text-main);
    border: 2px solid var(--border-color); border-top: 4px solid var(--bordeaux-hi);
    padding: 14px 14px 12px; min-height: 160px; width: 100%;
    font-family: var(--font-main); cursor: default;
}
.save-slot-card.has-save { border-top-color: var(--brass-dim); }
/* v0.12.110: optionaler nächster freier Slot */
.save-slot-card.save-slot-new { border-top-color: var(--bordeaux); border-style: dashed; opacity: 0.95; }
.save-slot-card.save-slot-new .save-slot-title { color: var(--bordeaux-hi, #8a3030); }
.save-slot-kicker { font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.save-slot-title { font-size: 1.15rem; letter-spacing: 1px; color: var(--brass); font-weight: bold; }
.save-slot-meta { font-size: 0.8rem; line-height: 1.35; color: var(--text-main); font-weight: normal; flex: 1; }
.save-slot-empty { color: var(--text-muted); font-style: italic; }
.save-slot-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.save-slot-actions .btn { width: 100%; min-height: 44px; }
.save-back-btn { margin-top: 4px; width: 100%; max-width: 360px; min-height: 44px; }

@media (max-width: 800px) {
    .save-select-grid { grid-template-columns: 1fr; }
    .save-slot-card { min-height: 0; }
    .top-logo-btn { min-width: 44px; min-height: 44px; }
}

/* ============================================================ */
/* v0.12.23 – Capo-Tribut Panel (Syndikat)                       */
/* ============================================================ */
.tribute-panel {
    background: var(--bg-card);
    border-color: var(--border-color);
    border-left: 4px solid var(--bordeaux-hi, #660000);
}
.tribute-panel .inline-icon {
    vertical-align: -2px;
    margin-right: 4px;
}
.tribute-panel .stat-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 0.9rem;
}
#btn-claim-tribute {
    margin-top: 6px;
    min-height: 44px;
}
@media (max-width: 800px) {
    .tribute-panel .stat-row { flex-wrap: wrap; }
}

/* v0.12.25 – UX-Hinweise */
.empty-hint { display: block; line-height: 1.35; max-width: 36rem; }
#no-ping-text { font-style: italic; color: var(--text-muted); border-top: 1px solid var(--brass-dim); border-bottom: 1px solid var(--brass-dim); padding: 0.5rem 0; }
/* ============================================================ */
/* v0.12.31 – Kiez-Tafel (Asphalt/Messing/Bordeaux, kein Neon)    */
/* ============================================================ */
.kiez-tafel { background: var(--bg-card); border-color: var(--border-color); border-left: 4px solid var(--bordeaux-hi); }
.kiez-tafel.hidden, .kiez-tafel-table.hidden { display: none; }
.kiez-tafel-wrap { overflow-x: auto; }
.kiez-tafel-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.kiez-tafel-table th { text-align: left; color: var(--brass); font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; padding: 6px; border-bottom: 1px solid var(--border-color); }
.kiez-tafel-table td { padding: 8px 6px; border-bottom: 1px solid #000; min-height: 44px; }
.kiez-tafel-table tbody tr:nth-child(odd) { background: var(--row-a); }
.kiez-tafel-table tbody tr:nth-child(even) { background: var(--row-b); }
.kiez-tafel-table .tafel-row-you td { color: var(--brass); font-weight: bold; }
.tafel-badge { display: inline-block; padding: 1px 6px; font-size: 0.68rem; letter-spacing: 1px; border: 1px solid var(--border-color); }
.tafel-badge-npc { color: var(--text-muted); }
.tafel-badge-you { color: #f5f0e6; background: var(--bordeaux); border-color: var(--bordeaux-hi); }
@media (max-width: 800px) {
    .kiez-tafel-table th:nth-child(4), .kiez-tafel-table td:nth-child(4) { display: none; }
    .kiez-tafel-table td { padding: 10px 6px; }
}

/* ============================================================ */
/* v0.12.32 – Tab-Leiste 2×4 (mobil), Kopf schlanker, Crew-Trennung */
/* ============================================================ */
@media (max-width: 800px) {
    #top-bar {
        display: flex; flex-wrap: wrap; align-items: center;
        gap: 4px 8px; padding: 4px 6px; min-height: 0;
    }
    #top-bar .top-logo-btn { min-height: 0; }
    #top-bar .top-logo { height: 26px; max-width: 84px; }
    #top-bar .top-time-wrap {
        order: 2; margin-left: auto; gap: 4px; max-width: 58%;
    }
    #top-bar .week-strip { display: none; }
    #top-bar .top-time {
        font-size: 0.78rem; padding: 2px 6px;
        border: none; background: transparent; white-space: nowrap;
    }
    #top-bar .top-actions { order: 3; gap: 4px; }
    #top-bar .top-actions .btn-icon,
    #top-bar .top-actions .user-badge { height: 44px !important; min-height: 44px; }
    #top-bar .res-strip {
        order: 4; flex: 1 1 100%; display: flex; flex-wrap: nowrap;
        justify-content: flex-start; gap: 14px; overflow-x: auto;
        padding: 2px 2px 0; border-top: 1px solid #000; scrollbar-width: none;
        -webkit-mask-image: none;
                mask-image: none;
    }
    #top-bar .res-strip::-webkit-scrollbar { display: none; }
    #top-bar .res-chip { flex: 0 0 auto; flex-direction: row; align-items: baseline; gap: 4px; }
    #top-bar .res-label { font-size: 0.6rem; letter-spacing: 0.5px; }
    #top-bar .res-val { font-size: 0.8rem; gap: 2px; }
    #top-bar .res-val .icon { width: 12px !important; height: 12px !important; }

    #center-tabs.inner-tabs {
        display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px; margin: 0 0 8px; overflow: visible;
    }
    #center-tabs .inner-tab-btn {
        flex: none; min-width: 0; min-height: 44px;
        padding: 6px 2px; font-size: 0.7rem; letter-spacing: 0.5px;
        line-height: 1.15; white-space: normal;
    }
}
@media (min-width: 801px) {
    #center-tabs.inner-tabs { flex-wrap: wrap; }
    #center-tabs .inner-tab-btn { flex: 1 1 auto; min-height: 44px; }
}
/* v0.12.32: Tab-Raster 4×2 auf allen Breiten (kein gestreckter Einzel-Tab in der letzten Reihe) */
#center-tabs.inner-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; overflow: visible; }
#center-tabs .inner-tab-btn { flex: none; min-width: 0; min-height: 44px; }
@media (max-width: 800px) {
    #center-tabs .inner-tab-btn { min-height: 44px; }
}

/* v0.12.33 Hub-Gate: Login/Wahl/Slot als Startseite – Spiel-UI erst nach Slot-Start */
body.hub-gate #top-bar,
body.hub-gate #mobile-tabs,
body.hub-gate #dashboard {
    display: none !important;
}

/* v0.12.34: Hinweis für gesperrten Standing Order „Beet“ (Messing/Muted, kein Neon) */
.shift-hint { margin: 2px 0 0; font-style: italic; }

/* v0.12.57 H1: Gang-Namen auf hellen Kiez-Plan-Zeilen lesbar (Bordeaux statt Messing) */
.kiez-plan-row .gang-name { color: var(--bordeaux); font-weight: bold; }

/* v0.12.59: Spiel-Kampagnenleiste (Bordeaux→Messing, bestehendes .progress-bar) */
.campaign-bar { margin: 6px 0 8px; }
.campaign-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.campaign-caption { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #9a8f7a); }
.campaign-rank { font-weight: bold; }
.campaign-pct { margin-left: auto; font-size: 0.8rem; color: var(--neon-yellow); }
.campaign-track .campaign-fill,
.progress-bar .campaign-fill {
    background: linear-gradient(90deg, var(--bordeaux, #660000), var(--neon-yellow, #FFCC66));
}


/* v0.12.95: Chronik-Aufgaben + Abholen */
.chronik-tasks { list-style: none; margin: 4px 0; padding: 0; }
.chronik-task { padding: 6px 0; border-bottom: 1px solid rgba(154, 143, 122, 0.25); }
.chronik-task:last-child { border-bottom: none; }
.chronik-task-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; min-height: 28px; }
.chronik-task-bar { height: 4px; background: rgba(154, 143, 122, 0.25); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.chronik-task-bar > span { display: block; height: 100%; background: var(--brass, #c4a35a); }
.chronik-task.claimed { opacity: 0.7; }
.chronik-badge { display: inline-block; min-width: 1.2em; padding: 0 5px; margin: 0 4px; border-radius: 8px; background: var(--brass, #c4a35a); color: #1a1510; font-size: 0.7rem; font-weight: 700; text-align: center; }
.btn-messing { background: var(--brass, #c4a35a); color: #1a1510; border: 1px solid #8a7038; }
.btn-messing:hover { filter: brightness(1.08); }
/* v0.12.94: Kiez-Chronik (Kapitel-Gates, Idle-Anleihe ohne Claim) */
.chapter-progress { margin: 4px 0 8px; }
.chronik-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.chronik-caption { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #9a8f7a); }
.chronik-blurb { margin: 0 0 4px; }
.chronik-next { margin: 4px 0 2px; font-size: 0.85rem; }
.chronik-next-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted, #9a8f7a); margin-right: 4px; }
.chronik-gates { list-style: none; margin: 4px 0; padding: 0; }
.chronik-gate { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; padding: 4px 0; border-bottom: 1px solid rgba(154, 143, 122, 0.25); font-size: 0.85rem; min-height: 28px; }
.chronik-gate:last-child { border-bottom: none; }
.chronik-gate.done { opacity: 0.75; }
.chronik-gate.open strong { color: var(--brass, #c4a35a); }
.chronik-mark { width: 1.1em; display: inline-block; text-align: center; color: var(--brass, #c4a35a); }
.chronik-hint, .chronik-ready, .chronik-unlock, .chronik-done { margin: 4px 0 0; }
/* ============================================================ */
/* v0.12.61 M2: Crew-Karte mobil (≤800px) – 1-Spalte, große Knöpfe */
/* v0.12.72: max-height:170px entfernt (Mobile-QA: Aktionszeile überlief */
/* und verdeckte die nächste Karte; Inhalt ~206px, Touch-Targets PASS). */
/* Desktop (>800px) unverändert.                                    */
/* ============================================================ */
@media (max-width: 800px) {
    .crew-block .crew-card {
        display: grid; grid-template-columns: 48px 1fr; gap: 6px 10px; align-items: start;
        flex-wrap: nowrap; padding: 8px;
    }
    .crew-card .crew-portrait { grid-column: 1; width: 48px !important; height: 48px !important; }
    .crew-card .crew-info { grid-column: 2; min-width: 0; flex: none; }
    .crew-card > .crew-actions {
        grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 44px; gap: 6px;
        text-align: left; flex: none; max-width: 100%; align-items: stretch;
    }
    .crew-card .btn-crew-wage,
    .crew-card .btn-crew-main { min-height: 48px; width: auto; white-space: normal; }
    .crew-card .btn-crew-rename { width: 44px; height: 44px; min-height: 44px; padding: 0; }
    .crew-card .btn-crew-poach { grid-column: 1 / -1; min-height: 48px; width: 100%; }
    .crew-card .shift-link {
        display: inline-block; min-height: 44px; line-height: 44px; padding: 0 10px;
        color: var(--brass);
    }
}

/* ============================================================ */
/* v0.12.61 M1: Sticky Claim/Lohn-Leiste (nur ≤800px). Kein Glow, kein Blinken. */
/* ============================================================ */
.mobile-action-bar { display: none; }
@media (max-width: 800px) {
    #dashboard { flex: 1 1 auto; min-height: 0; height: auto; }
    .mobile-action-bar {
        display: flex; gap: 8px; align-items: stretch; flex-shrink: 0;
        min-height: 56px; padding: 4px 8px calc(4px + env(safe-area-inset-bottom, 0px));
        background: var(--bg-panel); border-top: 2px solid var(--brass-dim);
    }
    .mobile-action-bar.hidden { display: none !important; }
    /* v0.12.72: min-width 0 (320px), Freitag Lohn links, Shortfall sichtbar */
    /* v0.12.75: Disabled ohne Knopf-Opacity (Fehlt-Kontrast); Shortfall Messing ≥12px; feste Leistenhöhe */
    .mobile-action-bar .mab-btn {
        flex: 1 1 0; min-width: 0; min-height: 48px; width: auto;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        line-height: 1.15; font-size: 0.85rem; gap: 2px;
    }
    .mobile-action-bar .mab-btn:disabled {
        opacity: 1;
        background: var(--bg-card);
        border-color: var(--border-color);
        color: var(--text-muted);
        cursor: not-allowed;
    }
    .mobile-action-bar .mab-btn:disabled #mab-wages-chip { opacity: 0.75; }
    .mobile-action-bar .mab-short {
        font-size: 0.75rem; /* ≥12px bei 16px-Root */
        line-height: 1.2;
        color: var(--brass);
        font-weight: bold;
    }
    .mobile-action-bar[data-short="1"] { min-height: 64px; }
    .mobile-action-bar[data-n="1"] .mab-btn:not(.hidden) { flex: 1 1 100%; }
    .mobile-action-bar[data-payday="1"] .mab-wages { order: 1; }
    .mobile-action-bar[data-payday="1"] .mab-claim { order: 2; }
    .mobile-action-bar[data-payday="0"] .mab-claim { order: 1; }
    .mobile-action-bar[data-payday="0"] .mab-wages { order: 2; }
    #crew-pay-bar #btn-pay-all-wages { display: none; }
    #tutorial-hint { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
    body.hub-gate #mobile-action-bar { display: none !important; }
}


/* v0.12.97: Chronik einklappbar, Landscape-Mobil, Logo-Touch, Kampagne in Chronik */
.chronik-collapsed .chronik-body { max-height: 0; overflow: hidden; margin: 0; padding: 0; }
.chronik-body { transition: none; }
.btn-chronik-toggle { min-height: 44px; min-width: 88px; }
.chronik-camp { margin: 4px 0 6px; }
.chronik-camp-bar { margin-top: 4px; }
.campaign-pct { color: var(--brass, #c4a35a); }
.campaign-track .campaign-fill,
.progress-bar .campaign-fill {
    background: linear-gradient(90deg, var(--bordeaux, #660000), var(--brass, #c4a35a));
}
#btn-hub-home.top-logo-btn {
    min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
}
#btn-close-settings, #btn-close-help { min-height: 44px; }
.mobile-action-bar .mab-gather { order: 0; }
@media (max-width: 800px) {
    .chapter-progress { max-height: none; }
    .chronik-collapsed { margin-bottom: 4px; }
    #top-bar .res-strip { max-width: 100%; }
}

/* ============================================================ */
/* v0.12.103 – Mobil Top-Bar / Respekt-Strip (375/390)           */
/* Respekt nicht abschneiden; Chrome schlanker; Touch ≥44.      */
/* ============================================================ */
@media (max-width: 800px) {
    #top-bar .res-strip {
        -webkit-mask-image: none;
                mask-image: none;
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    #top-bar .res-chip {
        flex: 0 0 auto;
        min-width: max-content;
    }
    #top-bar .res-val {
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
        max-width: none;
    }
    #top-bar .res-label { flex-shrink: 0; }
    #top-bar #app-version { display: none; }
    #top-bar .top-actions .user-badge {
        max-width: 7.5em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
@media (max-width: 390px) {
    #top-bar {
        gap: 4px 6px;
        padding: 4px 6px;
    }
    #top-bar .top-logo { height: 24px; max-width: 72px; }
    #top-bar .crew-rank-label,
    #top-bar .legend-badge-label { display: none; }
    #top-bar .crew-rank-badge,
    #top-bar .legend-badge {
        min-height: 36px;
        min-width: 36px;
        padding: 4px;
        justify-content: center;
    }
    #top-bar .top-time {
        font-size: 0.72rem;
        padding: 2px 4px;
    }
    #top-bar .top-time-wrap { max-width: 48%; }
    #top-bar .res-strip {
        gap: 8px;
        padding-top: 3px;
    }
    #top-bar .res-label { font-size: 0.55rem; }
    #top-bar .res-val { font-size: 0.78rem; }
    #top-bar .top-actions .btn-icon,
    #top-bar .top-actions .user-badge {
        height: 44px !important;
        min-height: 44px;
        min-width: 44px;
    }
}
@media (orientation: landscape) and (max-height: 520px), (orientation: landscape) and (max-width: 950px) and (pointer: coarse) {
    #top-bar {
        max-height: none;
        overflow: visible;
    }
    #top-bar .res-strip {
        -webkit-mask-image: none;
                mask-image: none;
        max-height: none;
        overflow-x: auto;
    }
}
/* v0.12.100: Landscape phones — same mobile chrome as max-width 800 (tabs+touch), not only layout */
@media (orientation: landscape) and (max-height: 520px), (orientation: landscape) and (max-width: 950px) and (pointer: coarse) {
    #dashboard { flex-direction: column !important; padding: 4px; gap: 4px; }
    .panel {
        display: none !important;
        flex: 1; min-height: 0; height: auto;
        border: 2px solid var(--border-color);
        border-top: 2px solid var(--brass-dim);
        padding: 8px;
        background: var(--bg-panel);
    }
    .panel.mobile-active { display: flex !important; }
    .mobile-only { display: flex !important; }
    #mobile-tabs {
        display: flex !important; width: 100%; height: var(--touch); flex-shrink: 0;
        background: var(--bg-bar);
        border: 2px solid var(--border-color);
        border-bottom: 2px solid var(--bordeaux);
    }
    .tab-btn {
        flex: 1; background: transparent; color: var(--text-muted);
        border: none; border-right: 1px solid var(--border-color);
        font-weight: bold; text-transform: uppercase; font-size: 0.85rem;
        letter-spacing: 1px; min-height: var(--touch); min-width: 44px;
    }
    .tab-btn:last-child { border-right: none; }
    .tab-btn.active { background: var(--bordeaux); color: #fff; }
    #top-bar {
        flex-wrap: wrap; max-height: none; overflow: visible;
        align-items: center; gap: 4px 8px;
        padding: 4px 8px;
        border-bottom: 2px solid var(--bordeaux);
        background: var(--bg-bar);
    }
    #top-bar .res-strip {
        flex: 1 1 100%; order: 3; overflow-x: auto; white-space: nowrap;
        max-height: none;
        -webkit-mask-image: none;
                mask-image: none;
    }
    .top-actions .btn-icon { width: var(--touch); height: var(--touch); min-width: var(--touch); min-height: var(--touch); }
    .top-actions .user-badge { height: var(--touch) !important; min-height: var(--touch); font-size: 0.75rem !important; }
    .btn, .btn-small, .inner-tab-btn { min-height: var(--touch); }
    .inner-tab-btn {
        flex: 0 0 auto; min-width: 78px; min-height: var(--touch);
        background: var(--bg-base); border: 1px solid var(--border-color);
        color: var(--text-muted);
    }
    .inner-tab-btn.active { background: var(--bordeaux); color: #fff; border-color: var(--bordeaux-hi); }
    #center-tabs .inner-tab-btn { min-height: var(--touch); }
    .mobile-action-bar {
        display: flex !important; gap: 8px; align-items: stretch; flex-shrink: 0;
        min-height: 48px; padding: 4px 8px calc(4px + env(safe-area-inset-bottom, 0px));
        background: var(--bg-panel); border-top: 2px solid var(--brass-dim);
    }
    .mobile-action-bar .mab-btn {
        flex: 1 1 0; min-width: 0; min-height: 44px;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        line-height: 1.15; font-size: 0.85rem; gap: 2px;
    }
    .mobile-action-bar.hidden { display: none !important; }
    body.hub-gate #mobile-action-bar { display: none !important; }
    #tutorial-hint { bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}

/* v0.12.104: Boost Trust In-Place Feedback */
.crew-card { position: relative; }
.crew-trust-val { display: inline-block; min-width: 1.5em; font-variant-numeric: tabular-nums; }
.crew-trust-val.trust-flash {
    animation: sodomTrustPulse 0.45s ease;
}
@keyframes sodomTrustPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); color: var(--brass); }
    100% { transform: scale(1); }
}
.trust-delta-badge {
    position: absolute; top: 4px; right: 8px;
    font-size: 0.75rem; font-weight: bold; color: var(--brass);
    background: #1a1510; border: 1px solid var(--brass-dim);
    padding: 1px 6px; border-radius: 2px; pointer-events: none;
    opacity: 0; transform: translateY(4px);
}
.trust-delta-badge.is-on {
    animation: sodomTrustDelta 0.85s ease forwards;
}
@keyframes sodomTrustDelta {
    0% { opacity: 0; transform: translateY(6px); }
    20% { opacity: 1; transform: translateY(0); }
    70% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-6px); }
}


/* v0.12.105 Fehde-Meter + Unter-Capos (Asphalt/Messing, kein Neon) */
.feud-panel .feud-bar { height: 10px; margin-top: 2px; }
.feud-fill-cool { background-color: #5a6a4a; }
.feud-fill-warm { background-color: #a67c3a; }
.feud-fill-hot { background-color: #8b3a3a; }
.unter-capos-panel .unter-capo-slot { align-items: center; flex-wrap: wrap; }
.unter-capos-panel .unter-capo-name { flex: 1; min-width: 120px; max-width: 200px; }
.tafel-badge-npc { color: #9a8b6a; border-color: #5a5040; }

/* v0.12.106 Kiez-Entscheidung */
.kiez-entscheidung-panel .flex-wrap { flex-wrap: wrap; }
.kiez-entscheidung-panel select.input-dark { background: #1a1814; color: #d4c4a8; border: 1px solid #5a5040; }

/* v0.12.107 Mobil Touch: kein 300ms-Delay, Tap-Highlight weg, Action-Bar-Clearance */
.btn, .btn-small, .inner-tab-btn, .tab-btn, .mab-btn, button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
@media (max-width: 800px) {
    .btn, .btn-small, .inner-tab-btn, .tab-btn, .mab-btn {
        min-height: 44px;
        min-width: 44px;
    }
    .panel.mobile-active {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }
    #col-center.panel.mobile-active,
    #col-left.panel.mobile-active,
    #col-right.panel.mobile-active {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }
}
/* ============================================================ */
/* v0.12.111/112: Nachtausgabe – 3 Blöcke + Zeitung (Asphalt, kein Neon) */
/* ============================================================ */
.offline-nacht-modal .offline-block { margin-bottom: 10px; }
.offline-block-title {
    font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--brass); margin: 0 0 4px; font-weight: bold;
}
.offline-kopf-line {
    margin: 0; font-size: 0.95rem; color: var(--text-main); font-weight: bold;
}
.offline-cta-row .btn-success { flex: 1 1 220px; min-height: 44px; }
.offline-cta-row .btn-outline { min-height: 44px; }
.nachtausgabe-paper {
    background: #e6dcc4; color: #1a1613;
    border: 1px solid #5a4a3a; border-top: 4px solid var(--bordeaux);
    padding: 10px 12px; font-family: Georgia, 'Times New Roman', serif;
    box-shadow: inset 0 0 0 1px rgba(90, 74, 58, 0.25);
}
.nachtausgabe-paper.hidden { display: none; }
.nacht-masthead { border-bottom: 2px solid #1a1613; margin-bottom: 8px; padding-bottom: 4px; text-align: center; }
.nacht-kicker {
    display: block; font-family: var(--font-main); font-size: 0.62rem; letter-spacing: 2px;
    text-transform: uppercase; color: var(--bordeaux);
}
.nacht-title {
    margin: 2px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: 1.25rem;
    letter-spacing: 0.5px; text-transform: none; color: #1a1613; font-weight: bold;
}
.nacht-title .icon { vertical-align: -3px; }
.nacht-mast-meta {
    margin: 2px 0 0; font-size: 0.72rem; color: #4a3f38; font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
}
.nacht-section { display: flex; flex-direction: column; gap: 8px; }
.nacht-lead {
    font-family: Georgia, 'Times New Roman', serif; font-weight: bold;
    font-size: 1.02rem; line-height: 1.35; color: #1a1613;
    margin: 0; padding-bottom: 6px; border-bottom: 1px solid #b8a88c;
}
.nacht-block-title {
    display: block; font-family: var(--font-main); font-size: 0.62rem;
    letter-spacing: 1.5px; text-transform: uppercase; color: var(--bordeaux);
    font-weight: bold; margin: 2px 0 2px;
}
.nacht-bullets {
    margin: 0; padding-left: 1.15rem; list-style: square;
}
.nacht-bullets li {
    font-family: Georgia, 'Times New Roman', serif; font-size: 0.9rem;
    line-height: 1.4; color: #1a1613; margin: 0 0 3px;
}
.nacht-section .offline-paper-clip {
    background: transparent; border: none; border-bottom: 1px dashed #5a4a3a;
    border-left: 3px solid var(--bordeaux); padding: 4px 0 6px 8px;
}
.nacht-section .offline-paper-clip:first-child { font-size: 1rem; }
.nacht-section .offline-paper-clip:first-child .offline-paper-text { font-size: 1rem; }
.nacht-section .ping-kicker { font-family: var(--font-main); font-size: 0.62rem; letter-spacing: 1.5px; }
@media (max-width: 800px) {
    .nachtausgabe-paper { padding: 8px 10px; }
    .nacht-title { font-size: 1.1rem; }
    .nacht-lead { font-size: 0.95rem; }
    .nacht-section .offline-paper-text, .nacht-bullets li { font-size: 0.88rem; }
}

/* ============================================================ */
/* v0.12.118 — D1/D2/D3/M1 + A1/A4 */
/* ============================================================ */
.status-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.status-claim-bar { width: 100%; }
.status-claim-bar.hidden { display: none !important; }
#btn-status-claim { font-weight: bold; }
.crew-block-compact .crew-card { padding: 6px 8px; }
.market-bulk-bar { margin: 6px 0; }
.market-bulk-bar.hidden { display: none !important; }
#btn-market-sell-all-bulk { font-weight: bold; }
.nacht-seal { vertical-align: -2px; margin-right: 2px; filter: drop-shadow(0 0 0 #000); }

/* A4: Diagonaler Bordeaux-Gefahrenstreifen (kein Neon-Glow) */
.danger-stripe {
    position: relative;
    border-left: 6px solid #7a1f2a !important;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(122, 31, 42, 0.22) 0,
        rgba(122, 31, 42, 0.22) 8px,
        rgba(26, 18, 18, 0.35) 8px,
        rgba(26, 18, 18, 0.35) 16px
    );
}
.heat-container.danger-stripe {
    border: 1px solid #7a1f2a;
    border-radius: 2px;
    padding: 4px 6px;
}
.razzia-banner.danger-stripe {
    background-color: #1c1416;
}

@media (max-width: 800px) {
    #col-left .resource-block .stat-row { padding: 4px 6px; }
    #status-actions { position: sticky; top: 0; z-index: 4; background: var(--bg-panel); padding: 4px 0 6px; }
    #btn-pay-all-wages { min-height: 44px; }
}
/* v0.12.138: Offline-Modal mobil — CTA sticky, über MAB, Touch */
#modal-offline {
    z-index: 12050 !important;
    align-items: flex-end;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
#modal-offline .offline-nacht-modal {
    max-height: min(92vh, 920px);
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    padding-bottom: 12px;
}
#modal-offline .offline-cta-row {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: auto;
    padding-top: 10px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(transparent, var(--bg-panel) 28%);
    gap: 8px;
}
#modal-offline .offline-cta-row .btn {
    min-height: 48px;
    flex: 1 1 140px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 3;
}
#modal-offline .offline-cta-row .btn .icon,
#modal-offline .offline-cta-row .btn span {
    pointer-events: none;
}
body.offline-modal-open #mobile-action-bar {
    visibility: hidden !important;
    pointer-events: none !important;
}
@media (max-width: 800px) {
    #modal-offline { align-items: flex-end; }
    #modal-offline .offline-nacht-modal {
        max-height: 88vh;
        margin: 0;
        border-radius: 0;
        width: 100%;
        max-width: none;
    }
}
/* v0.12.138 Capo #5b: Crew-Zuweisung je Unter-Capo-Slot (Touch 44px, Messing-Kante) */
.unter-capos-panel .unter-capo-assign { min-height: 44px; min-width: 120px; border: 1px solid #FFCC66; }

/* ============================================================ */
/* v0.12.138 Smart Desktop Command Center (≥901px)               */
/* Mobile ≤800: MAB/Mobile-Tabs. 801–900: große Center-Tabs.   */
/* ============================================================ */
#command-tabs.command-tabs { display: none; }
.desktop-only-cmd[hidden] { display: none !important; }

@media (min-width: 901px) {
    body.game-ready #command-tabs.command-tabs {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin: 0 0 8px;
        padding: 0;
    }
    body.game-ready #command-tabs.command-tabs[hidden] {
        display: grid !important; /* JS entfernt hidden bei Desktop */
    }
    .cmd-tab-btn {
        min-height: 44px;
        padding: 8px 6px;
        font-family: var(--font-main);
        font-weight: bold;
        font-size: 0.78rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--text-muted);
        background: var(--bg-base);
        border: 2px solid var(--border-color);
        border-radius: 0;
        cursor: pointer;
        line-height: 1.2;
    }
    .cmd-tab-btn:hover { color: var(--text-main); border-color: var(--brass-dim); }
    .cmd-tab-btn.active {
        color: #1a1510;
        background: var(--brass, #FFCC66);
        border-color: var(--brass-dim, #d4a34b);
    }
    /* Sekundär-Tabs nur in Kiez-Gruppe; Straße/Versteck = Zero-Scroll */
    body.desktop-cmd-street #center-tabs .inner-tab-btn:not([data-cmd-group="street"]),
    body.desktop-cmd-hideout #center-tabs .inner-tab-btn:not([data-cmd-group="hideout"]) {
        display: none !important;
    }
    body.desktop-cmd-street #center-tabs,
    body.desktop-cmd-hideout #center-tabs {
        display: none !important; /* eine View, kein Tab-Strip */
    }
    body.desktop-cmd-kiez #center-tabs {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        margin: 0 0 8px;
    }
    body.desktop-cmd-kiez #center-tabs .inner-tab-btn:not([data-cmd-group="kiez"]) {
        display: none !important;
    }
    body.desktop-cmd-kiez #center-tabs .inner-tab-btn[data-cmd-group="kiez"] {
        display: block !important;
        min-height: 44px;
        font-size: 0.72rem;
    }

    /* Dossier + Lage: eigene Scroll-Spalten, wenig Rand */
    #dashboard {
        max-width: 1480px;
        margin: 0 auto;
        width: 100%;
        gap: 10px;
        padding: 8px 12px;
        box-sizing: border-box;
    }
    #col-left.dossier-panel {
        flex: 0 0 clamp(240px, 22vw, 300px);
        min-width: 220px;
        max-height: calc(100vh - 56px);
    }
    #col-center {
        flex: 1 1 auto;
        min-width: 0;
        max-height: calc(100vh - 56px);
    }
    #col-right.lage-panel {
        flex: 0 0 clamp(240px, 22vw, 320px);
        min-width: 220px;
        max-height: calc(100vh - 56px);
    }
    .dossier-title, .lage-title {
        font-size: 0.95rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        margin: 0 0 6px;
        padding-bottom: 4px;
        border-bottom: 2px solid var(--bordeaux, #660000);
    }
    .dossier-sub { margin: 0 0 4px; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass-dim); }
    #col-left.dossier-panel > h2.text-messing:not(.dossier-title) {
        font-size: 0.8rem;
        margin-top: 10px;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }
    #col-left .crew-block-compact .crew-card { padding: 6px; margin-bottom: 6px; }
    #col-right .log-box { flex: 1; min-height: 120px; max-height: none; }
}

@media (min-width: 1200px) {
    #dashboard { padding: 10px 16px; gap: 12px; }
    #col-left.dossier-panel { flex-basis: 280px; }
    #col-right.lage-panel { flex-basis: 300px; }
}

/* ≤900px: Command-Tabs aus; Center-Tabs alle sichtbar */
@media (max-width: 900px) {
    #command-tabs.command-tabs { display: none !important; }
    body.desktop-cmd-street #center-tabs,
    body.desktop-cmd-hideout #center-tabs,
    body.desktop-cmd-kiez #center-tabs {
        display: grid !important;
    }
    body.desktop-cmd-street #center-tabs .inner-tab-btn,
    body.desktop-cmd-hideout #center-tabs .inner-tab-btn,
    body.desktop-cmd-kiez #center-tabs .inner-tab-btn {
        display: block !important;
    }
}


/* v0.12.138 Tablet-Band 801–900: Touch-Tabs ohne Command-Center */
@media (min-width: 801px) and (max-width: 900px) {
    #center-tabs.inner-tabs {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
    }
    #center-tabs .inner-tab-btn {
        display: block !important;
        min-height: 44px !important;
        font-size: 0.72rem;
        line-height: 1.15;
    }
}
/* ============================================================ */
/* v0.12.138: Settings-Hotkeys + Namens-Typo einhegen            */
/* ============================================================ */
.settings-hotkeys {
    list-style: none;
    margin: 0 0 8px;
    padding: 8px 10px;
    background: var(--bg-base, #121212);
    border: 2px solid var(--border-color, #333);
    border-left: 4px solid var(--brass, #FFCC66);
}
.settings-hotkeys li {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 4px 0;
    border-bottom: 1px solid rgba(154, 143, 122, 0.2);
    color: var(--text-main, #e8e0d0);
}
.settings-hotkeys li:last-child { border-bottom: none; }
.settings-hotkeys kbd {
    display: inline-block;
    min-width: 1.6em;
    padding: 2px 6px;
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
    font-weight: bold;
    color: #1a1510;
    background: var(--brass, #FFCC66);
    border: 1px solid var(--brass-dim, #d4a34b);
    border-radius: 0;
    text-align: center;
}
.settings-hotkeys span { color: var(--text-muted, #9a8f7a); }

/* Namens-Anzeige: nie Grid sprengen */
#user-badge,
.user-badge {
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(0.75rem, 0.85rem, 0.95rem) !important;
}
#dialog-npc-name {
    font-size: clamp(0.9rem, 1.05rem, 1.05rem) !important;
    max-width: min(100%, 22rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}
.crew-name,
.crew-card .crew-name {
    font-size: clamp(0.8rem, 0.9rem, 1rem) !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.street-crew-name {
    font-size: clamp(0.55rem, 0.65rem, 0.75rem) !important;
    max-width: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.save-slot-title {
    font-size: clamp(0.9rem, 1.0rem, 1.05rem) !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.25;
}
/* v0.12.138: Wartungs-Badge und Top-Actions auf schmalen Screens (360–900) umbrechen, Touch 44px */
@media (max-width: 900px) {
    #top-bar .top-actions { flex-wrap: wrap; justify-content: flex-end; min-width: 0; max-width: 100%; row-gap: 4px; }
    #top-bar .maint-admin-badge { flex-shrink: 0; max-width: 7.5rem; font-size: 0.6rem; padding: 2px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    #top-bar .top-actions .btn-icon,
    #top-bar .top-actions .user-badge { height: 44px !important; min-height: 44px; }
    #top-bar .top-actions .btn-icon { width: 44px; min-width: 44px; }
}


/* v0.12.157: Modal-Mutex z-index + Bottom-Sheet mobil + Safe-Area */
#modal-encounter { z-index: 1000; }
#modal-auto-decide { z-index: 1010; }
#modal-encounter .modal-content.encounter-modal,
#modal-auto-decide .modal-content.auto-decide-modal {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
    max-height: calc(100dvh - 16px);
    max-height: calc(100vh - 16px);
}
@media (max-width: 800px) {
    #modal-encounter,
    #modal-auto-decide {
        align-items: flex-end;
        padding: 0;
    }
    #modal-encounter .modal-content.encounter-modal,
    #modal-auto-decide .modal-content.auto-decide-modal {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 12px 12px 0 0;
        max-height: calc(100dvh - 12px);
        max-height: calc(100vh - 12px);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    #modal-encounter #encounter-options,
    #modal-auto-decide #auto-decide-options {
        position: sticky;
        bottom: 0;
        margin-top: auto;
        padding-top: 10px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(transparent, var(--bg-panel) 28%);
        z-index: 2;
    }
    /* Idee C: MAB alleinige Primaer-CTAs mobil */
    #status-claim-bar.desktop-claim-dup,
    #crew-pay-bar.desktop-claim-dup {
        display: none !important;
    }
    .resource-more {
        border: 1px solid var(--border-color);
        margin-top: 6px;
        padding: 4px 8px;
        background: var(--bg-base);
    }
    .resource-more-sum {
        cursor: pointer;
        font-weight: bold;
        color: var(--brass);
        min-height: 44px;
        display: flex;
        align-items: center;
        list-style: none;
    }
    .resource-more-sum::-webkit-details-marker { display: none; }
}
@media (min-width: 801px) {
    .resource-more > summary { display: none; }
    .resource-more { border: none; padding: 0; background: transparent; }
    .resource-more-body { display: block !important; }
}
/* Landscape / kurze Hoehe: Auto-Decide 3er-Reihe, kompakte Titel */
@media (max-height: 480px) {
    #modal-auto-decide .auto-decide-modal h2,
    #modal-encounter .encounter-modal h2 { font-size: 1rem; margin: 0 0 4px; }
    #modal-auto-decide #auto-decide-text,
    #modal-encounter #encounter-text { font-size: 0.85rem; margin: 0 0 6px; max-height: 28vh; overflow-y: auto; }
    #modal-auto-decide #auto-decide-options.auto-decide-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    #modal-auto-decide #auto-decide-options .btn {
        flex: 1 1 30%;
        min-height: 44px;
        min-width: 0;
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    #modal-encounter .encounter-modal,
    #modal-auto-decide .auto-decide-modal {
        padding: 12px;
        max-height: calc(100dvh - 8px);
        max-height: calc(100vh - 8px);
    }
}
/* Idee E: Naechster-Schritt-Leiste */
.next-step-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg-panel);
    border-bottom: 2px solid var(--bordeaux);
    flex-shrink: 0;
}
.next-step-bar.hidden { display: none !important; }
.next-step-kicker { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; }
.next-step-text { flex: 1 1 140px; font-size: 0.85rem; color: var(--text-main); min-width: 0; }
.next-step-bar .btn { flex-shrink: 0; min-height: 40px; }
@media (max-height: 500px) and (max-width: 800px) {
    #top-bar { padding-top: 2px; padding-bottom: 2px; }
    .next-step-bar { padding: 4px 8px; }
    #mobile-tabs { height: 44px; }
}
