/* Phase 2.1: Generalstab – nur World */
.general-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 172px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.08);
    border-top-color: rgba(250, 96, 79, 0.28);
    border-radius: var(--rh-radius, 14px);
    background: linear-gradient(135deg, rgba(26, 30, 34, 0.92), rgba(9, 10, 11, 0.98));
    box-shadow: var(--rh-shadow, 0 14px 34px rgba(0,0,0,0.38)), inset 0 0 0 1px rgba(255,255,255,0.035);
    cursor: pointer;
    overflow: hidden;
    box-sizing: border-box;
}

.general-container::before,
.general-container::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.general-container::before {
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(250, 96, 79, 0.10), transparent 50%, rgba(172, 178, 187, 0.08));
    opacity: 0.58;
}

.general-container::after {
    right: 10px;
    top: 10px;
    width: 26px;
    height: 8px;
    border-top: 1px solid rgba(250, 96, 79, 0.34);
    border-right: 1px solid rgba(250, 96, 79, 0.34);
}

.general-container:hover {
    border-color: rgba(250, 96, 79, 0.30);
    box-shadow: 0 18px 44px rgba(0,0,0,0.48), inset 0 0 0 1px rgba(255,255,255,0.05), 0 0 22px rgba(250, 96, 79, 0.08);
}

.general-container.status-ko {
    border-color: rgba(255, 82, 106, 0.40);
}

.general-container.status-cooldown {
    border-color: rgba(250, 96, 79, 0.35);
}

.general-container.is-unselected {
    border-color: rgba(172, 178, 187, 0.30);
}

.general-badge {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(250, 96, 79, 0.18), rgba(172, 178, 187, 0.08));
    border: 1px solid rgba(250, 96, 79, 0.28);
    color: #fc988d;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px rgba(250, 96, 79, 0.42);
}

.general-details {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.general-name {
    color: #f7fbff;
    font-size: 0.86rem;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.general-rank {
    color: rgba(252, 166, 157, 0.82);
    font-size: 0.66rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.general-defense-line {
    color: rgba(216, 219, 223, 0.78);
    font-size: 0.58rem;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 138px;
}

.general-container.status-active .general-defense-line {
    color: rgba(135, 238, 185, 0.82);
}

.general-container.status-ko .general-defense-line {
    color: rgba(255, 154, 168, 0.74);
}

.rh-general-overlay {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-modal, 2000) + 60);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(4, 4, 5, 0.78);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.rh-general-overlay[hidden] {
    display: none !important;
}

.rh-general-modal {
    position: relative;
    width: min(1120px, 96vw);
    max-height: min(86vh, 900px);
    overflow: auto;
    border: 1px solid rgba(250, 96, 79, 0.28);
    border-top-color: rgba(172, 178, 187, 0.30);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(23, 26, 30, 0.98), rgba(8, 9, 10, 0.99));
    box-shadow: 0 28px 90px rgba(0,0,0,0.78), inset 0 0 0 1px rgba(255,255,255,0.035);
    color: #f4f8ff;
}

.rh-general-close {
    position: sticky;
    top: 12px;
    float: right;
    z-index: 3;
    width: 38px;
    height: 38px;
    margin: 12px 12px 0 0;
    border: 1px solid rgba(255, 82, 106, 0.45);
    border-radius: 12px;
    background: rgba(25, 5, 9, 0.92);
    color: #ff9aa7;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.rh-general-content {
    padding: 28px;
}

.rh-general-head {
    margin-bottom: 20px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(250, 96, 79, 0.10), rgba(172, 178, 187, 0.055));
}

.rh-general-kicker {
    display: block;
    color: rgba(250, 96, 79, 0.82);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 3px;
    font-size: 0.72rem;
    margin-bottom: 6px;
}

.rh-general-head h2 {
    margin: 0 0 6px;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
}

.rh-general-head p {
    margin: 0;
    color: rgba(243, 244, 246, 0.82);
}

.rh-general-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.rh-general-choice-card,
.rh-general-profile-card,
.rh-general-stat-card,
.rh-general-sections section,
.rh-general-locked-card {
    border: 1px solid rgba(255,255,255,0.075);
    border-radius: 16px;
    background: rgba(7, 8, 10, 0.62);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025), 0 14px 34px rgba(0,0,0,0.32);
}

.rh-general-choice-card {
    display: flex;
    gap: 14px;
    padding: 16px;
}

.rh-general-choice-icon,
.rh-general-large-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    border: 1px solid rgba(250, 96, 79, 0.24);
    color: #fc988d;
    background: rgba(250, 96, 79, 0.08);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
}

.rh-general-choice-body h3,
.rh-general-sections h3 {
    margin: 0 0 4px;
    color: #fff;
}

.rh-general-choice-body strong {
    color: #fc988d;
}

.rh-general-choice-body p,
.rh-general-skill-box p,
.rh-general-note {
    color: rgba(244, 245, 246, 0.78);
}

.rh-general-choice-body ul,
.rh-general-bonus-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.rh-general-choice-body li,
.rh-general-bonus-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.055);
}

.rh-general-choice-body li span,
.rh-general-bonus-list li span {
    text-align: right;
    color: #f0f1f2;
}

.rh-general-choice-body em,
.rh-general-bonus-list em {
    color: rgba(250, 96, 79, 0.72);
    font-style: normal;
    font-size: 0.75em;
}

.rh-general-skill-preview,
.rh-general-skill-box {
    padding: 12px;
    border-radius: 12px;
    background: rgba(172, 178, 187, 0.055);
    border: 1px solid rgba(172, 178, 187, 0.10);
}

.rh-general-skill-preview span {
    display: block;
    color: rgba(250, 96, 79, 0.82);
    font-size: 0.72rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.rh-general-skill-preview small {
    display: block;
    margin-top: 5px;
    color: rgba(244, 245, 246, 0.76);
}

.rh-general-select-btn {
    width: 100%;
    margin-top: 14px;
    min-height: 38px;
    border: 1px solid rgba(250, 96, 79, 0.38);
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255, 78, 45, 0.28), rgba(250, 96, 79, 0.14));
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.rh-general-select-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

.rh-general-profile-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 16px;
    margin-bottom: 16px;
}

.rh-general-profile-card {
    display: flex;
    gap: 18px;
    padding: 18px;
}

.rh-general-large-icon {
    width: 78px;
    height: 78px;
    font-size: 2.35rem;
}

.rh-general-state-pill {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(44, 255, 153, 0.10);
    color: #90ffc7;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.7px;
}

.rh-general-state-pill.status-ko {
    background: rgba(255, 82, 106, 0.14);
    color: #ff9aa7;
}

.rh-general-state-pill.status-cooldown {
    background: rgba(250, 96, 79, 0.14);
    color: #fc988d;
}

.rh-general-stat-card {
    padding: 18px;
}

.rh-general-stat-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.055);
}

.rh-general-stat-row span {
    color: rgba(244, 245, 246, 0.72);
}

.rh-general-hp-bar {
    height: 8px;
    margin: 10px 0 12px;
    border-radius: 999px;
    background: rgba(0,0,0,0.48);
    overflow: hidden;
}

.rh-general-hp-bar div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff5252, #fb786a, #38ff9d);
}

.rh-general-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.rh-general-sections section {
    padding: 18px;
}

.rh-general-sections section:last-child {
    grid-column: 1 / -1;
}

.rh-general-equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.rh-general-equipment-slot {
    min-height: 82px;
    padding: 12px;
    border-radius: 14px;
    border: 1px dashed rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.18);
}

.rh-general-equipment-slot span,
.rh-general-equipment-slot small {
    display: block;
    color: rgba(244, 245, 246, 0.68);
}

.rh-general-equipment-slot strong {
    display: block;
    margin: 4px 0;
    color: #fff;
}

.rh-general-equipment-slot.locked {
    opacity: 0.72;
}

.rh-general-locked-card {
    padding: 18px;
}

.rh-general-locked-card span {
    display: block;
    margin-top: 6px;
    color: rgba(232,240,250,0.76);
}

@media (max-width: 1100px) {
    .general-container {
        min-width: 150px;
        padding: 7px 10px;
    }

    .general-name {
        max-width: 96px;
    }
}

@media (max-width: 820px) {
    .general-container {
        min-width: 0;
        flex: 1 1 150px;
    }

    .rh-general-choice-grid,
    .rh-general-profile-grid,
    .rh-general-sections,
    .rh-general-equipment-grid {
        grid-template-columns: 1fr;
    }

    .rh-general-modal {
        width: 98vw;
        max-height: 92vh;
    }

    .rh-general-content {
        padding: 18px;
    }
}

@media (max-width: 520px) {
    .general-badge {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 10px;
    }

    .general-name {
        font-size: 0.78rem;
    }

    .general-rank {
        font-size: 0.59rem;
        letter-spacing: 0.8px;
    }

    .general-defense-line {
        display: none;
    }

    .rh-general-choice-card,
    .rh-general-profile-card {
        flex-direction: column;
    }
}

/* Phase 2.2: General im Einsatzfenster */
.rh-general-dispatch-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "check main"
        "check sub";
    gap: 2px 10px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0 12px;
    padding: 10px 12px;
    border: 1px solid rgba(192, 197, 203, 0.36);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(39, 42, 47, 0.92), rgba(15, 17, 20, 0.94));
    color: #e9fbff;
    cursor: pointer;
}

.rh-general-dispatch-card input {
    grid-area: check;
    width: 18px;
    height: 18px;
    accent-color: #c0c5cb;
}

.rh-general-dispatch-card .rh-general-dispatch-main {
    grid-area: main;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.rh-general-dispatch-card small {
    grid-area: sub;
    color: rgba(243, 244, 246, 0.78);
    line-height: 1.3;
}

.rh-general-dispatch-card.is-disabled {
    cursor: not-allowed;
    border-color: rgba(170, 170, 170, 0.28);
    background: linear-gradient(135deg, rgba(58, 58, 58, 0.82), rgba(20, 20, 20, 0.9));
    color: rgba(255, 255, 255, 0.62);
}

.rh-general-dispatch-card.is-disabled small {
    color: rgba(252, 136, 123, 0.75);
}

.rh-general-op-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 1px 5px;
    border-radius: 999px;
    border: 1px solid rgba(192, 197, 203, 0.5);
    color: #e6e8ea;
    background: rgba(192, 197, 203, 0.12);
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.06em;
}

/* Phase 2.2b: General-Verteidigungszuweisung */
.rh-general-defense-box {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(126, 255, 178, 0.32);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(12, 34, 28, 0.9), rgba(12, 14, 16, 0.94));
    color: #ecfff6;
}

.rh-general-defense-box span {
    display: block;
    color: rgba(210, 255, 232, 0.72);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rh-general-defense-box strong {
    display: block;
    margin-top: 4px;
    font-size: 1rem;
    color: #ffffff;
}

.rh-general-defense-box small {
    display: block;
    margin-top: 6px;
    color: rgba(225, 250, 238, 0.72);
    line-height: 1.35;
}

.rh-general-defense-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

.rh-general-defense-btn,
.rh-general-defense-clear {
    border: 1px solid rgba(126, 255, 178, 0.45);
    border-radius: 10px;
    padding: 9px 12px;
    background: rgba(126, 255, 178, 0.13);
    color: #edfff7;
    font-weight: 900;
    cursor: pointer;
}

.rh-general-defense-clear {
    border-color: rgba(251, 110, 94, 0.4);
    background: rgba(251, 110, 94, 0.1);
    color: #fdbbb4;
}

.rh-general-defense-btn:disabled,
.rh-general-defense-clear:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

@media (max-width: 620px) {
    .rh-general-defense-box {
        flex-direction: column;
    }

    .rh-general-defense-actions {
        min-width: 0;
        width: 100%;
    }
}

/* Phase 2.3: Credits & General-Shop */
.rh-general-shop-section {
    grid-column: 1 / -1;
}

.rh-general-credit-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 14px;
    margin-bottom: 16px;
}

.rh-general-credit-card,
.rh-general-exchange-card,
.rh-general-shop-empty {
    padding: 14px;
    border: 1px solid rgba(252, 134, 121, 0.24);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(48, 34, 10, 0.72), rgba(10, 11, 13, 0.82));
}

.rh-general-credit-card span,
.rh-general-exchange-card span,
.rh-general-shop-type {
    display: block;
    color: rgba(252, 166, 157, 0.78);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rh-general-credit-card strong {
    display: block;
    margin: 4px 0;
    color: #fdaba2;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.55rem;
}

.rh-general-credit-card small,
.rh-general-exchange-card small {
    display: block;
    color: rgba(247, 206, 202, 0.76);
    line-height: 1.35;
}

.rh-general-exchange-card label {
    display: block;
    margin-bottom: 8px;
}

.rh-general-credit-input {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 10px;
    background: rgba(0,0,0,0.34);
    color: #fff;
    font-weight: 800;
    box-sizing: border-box;
}

.rh-general-exchange-preview {
    margin-top: 10px;
    padding: 10px 11px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    background: rgba(0,0,0,0.22);
    color: rgba(239, 246, 255, 0.86);
    display: grid;
    gap: 4px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.rh-general-exchange-preview strong,
.rh-general-exchange-preview span,
.rh-general-exchange-preview em {
    display: block;
}

.rh-general-exchange-preview strong {
    color: #fee2df;
    font-size: 0.82rem;
}

.rh-general-exchange-preview span {
    color: rgba(239, 246, 255, 0.86);
    font-size: 0.78rem;
}

.rh-general-exchange-preview em {
    color: rgba(236, 238, 240, 0.72);
    font-size: 0.76rem;
    font-style: normal;
}

.rh-general-exchange-preview.is-ok {
    border-color: rgba(85, 255, 171, 0.26);
    background: rgba(42, 114, 83, 0.12);
}

.rh-general-exchange-preview.is-warning {
    border-color: rgba(255, 126, 92, 0.34);
    background: rgba(134, 48, 34, 0.16);
}

.rh-general-exchange-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.rh-general-exchange-preset {
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(172, 178, 187, 0.20);
    border-radius: 999px;
    background: rgba(172, 178, 187, 0.09);
    color: #f3f4f5;
    font-size: 0.74rem;
    font-weight: 900;
    cursor: pointer;
}

.rh-general-exchange-preset:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.rh-general-exchange-btn,
.rh-general-buy-btn,
.rh-general-use-item,
.rh-general-refresh-shop {
    min-height: 36px;
    border: 1px solid rgba(252, 134, 121, 0.38);
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(250, 84, 66, 0.24), rgba(252, 134, 121, 0.16));
    color: #fee1de;
    font-weight: 900;
    cursor: pointer;
}

.rh-general-exchange-btn {
    width: 100%;
    margin-top: 10px;
}

.rh-general-exchange-btn:disabled,
.rh-general-buy-btn:disabled,
.rh-general-use-item:disabled,
.rh-general-refresh-shop:disabled {
    opacity: 0.55;
    cursor: wait;
}

.rh-general-shop-grid,
.rh-general-inventory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.rh-general-shop-item,
.rh-general-inventory-item {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 148px;
    padding: 13px;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px;
    background: rgba(0,0,0,0.22);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025);
}

.rh-general-shop-item h4 {
    margin: 0;
    color: #fff;
}

.rh-general-shop-item p {
    margin: 0;
    color: rgba(244, 245, 246, 0.76);
    line-height: 1.35;
    flex: 1;
}

.rh-general-shop-item small,
.rh-general-inventory-item small,
.rh-general-inventory-item em {
    color: rgba(237, 239, 241, 0.72);
    font-style: normal;
    line-height: 1.35;
}

.rh-general-shop-item.rarity-standard,
.rh-general-inventory-item.rarity-standard {
    border-color: rgba(216, 219, 223, 0.18);
}

.rh-general-inventory-wrap {
    margin-top: 18px;
}

.rh-general-inventory-wrap h3 {
    margin-top: 0;
}

.rh-general-inventory-item span {
    color: #ffffff;
    font-weight: 900;
}

.rh-general-inventory-item strong {
    color: #fdaba2;
}

@media (max-width: 900px) {
    .rh-general-credit-grid,
    .rh-general-shop-grid,
    .rh-general-inventory-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .rh-general-credit-grid,
    .rh-general-shop-grid,
    .rh-general-inventory-grid {
        grid-template-columns: 1fr;
    }
}

.rh-general-equipment-section {
    grid-column: 1 / -1;
}

/* Phase 2.4: ausrüstbare General-Items */
.rh-general-equipment-summary {
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(192, 197, 203, 0.20);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(33, 36, 40, 0.72), rgba(9, 10, 11, 0.86));
}

.rh-general-equipment-summary strong,
.rh-general-equipment-summary span,
.rh-general-equipment-summary small {
    display: block;
}

.rh-general-equipment-summary strong {
    color: #ffffff;
    margin-bottom: 4px;
}

.rh-general-equipment-summary span {
    color: #eaecee;
    font-weight: 800;
}

.rh-general-equipment-summary small {
    margin-top: 5px;
    color: rgba(242, 243, 244, 0.72);
}

.rh-general-equipment-summary.is-inactive {
    border-color: rgba(255, 82, 106, 0.28);
    background: linear-gradient(135deg, rgba(70, 18, 25, 0.62), rgba(9, 10, 11, 0.86));
}

.rh-general-equipment-slot.equipped {
    border-style: solid;
    border-color: rgba(252, 134, 121, 0.28);
    background: linear-gradient(135deg, rgba(48, 34, 10, 0.42), rgba(0,0,0,0.24));
}

.rh-general-equipment-slot.empty {
    opacity: 0.82;
}

.rh-general-inventory-item.is-equipped {
    border-color: rgba(126, 255, 178, 0.32);
    background: linear-gradient(135deg, rgba(12, 48, 32, 0.48), rgba(0,0,0,0.22));
}

.rh-general-inventory-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.rh-general-equip-item,
.rh-general-unequip-item {
    min-height: 34px;
    border: 1px solid rgba(192, 197, 203, 0.34);
    border-radius: 10px;
    background: rgba(192, 197, 203, 0.12);
    color: #e7fbff;
    font-weight: 900;
    cursor: pointer;
}

.rh-general-unequip-item {
    border-color: rgba(251, 110, 94, 0.36);
    background: rgba(251, 110, 94, 0.11);
    color: #fdbbb4;
}

.rh-general-equipment-slot .rh-general-unequip-item {
    width: 100%;
    margin-top: 8px;
}

.rh-general-equip-item:disabled,
.rh-general-unequip-item:disabled {
    opacity: 0.55;
    cursor: wait;
}

/* Phase 2.5: Set-Boni und Drop-Ausrüstung */
.rh-general-set-panel {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid rgba(252, 134, 121, 0.20);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(32, 26, 12, 0.58), rgba(9, 10, 11, 0.82));
}

.rh-general-set-panel > strong {
    display: block;
    margin-bottom: 8px;
    color: #fecec8;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.rh-general-set-panel.empty small,
.rh-general-set-panel > small {
    color: rgba(244, 245, 246, 0.74);
    line-height: 1.35;
}

.rh-general-set-progress-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.rh-general-set-progress {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 9px 10px;
    background: rgba(255,255,255,0.035);
}

.rh-general-set-progress span,
.rh-general-set-progress small {
    display: block;
}

.rh-general-set-progress span {
    color: #ffffff;
    font-weight: 900;
}

.rh-general-set-progress small {
    margin-top: 2px;
    color: rgba(242, 243, 244, 0.74);
}


.rh-general-set-collection-panel {
    margin: 14px 0;
    padding: 14px;
    border: 1px solid rgba(205, 209, 214, 0.18);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(19, 22, 25, 0.70), rgba(10, 11, 13, 0.88));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.rh-general-set-collection-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 8px;
}

.rh-general-set-collection {
    display: grid;
    gap: 8px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    min-width: 0;
}

.rh-general-set-collection strong,
.rh-general-set-collection small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.rh-general-set-collection strong {
    color: #f7fbff;
    font-weight: 900;
}

.rh-general-set-collection small {
    color: rgba(242, 243, 244, 0.76);
    line-height: 1.35;
}

.rh-general-set-meter {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

.rh-general-set-meter span {
    display: block;
    min-height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rh-general-set-meter span.owned {
    background: rgba(252, 134, 121, 0.38);
    border-color: rgba(252, 134, 121, 0.42);
}

.rh-general-set-meter span.equipped {
    background: rgba(126, 255, 178, 0.54);
    border-color: rgba(126, 255, 178, 0.60);
    box-shadow: 0 0 10px rgba(126, 255, 178, 0.18);
}

.rh-general-set-bonus-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.rh-general-set-bonus-list li {
    padding: 9px 10px;
    border: 1px solid rgba(126, 255, 178, 0.16);
    border-radius: 12px;
    background: rgba(126, 255, 178, 0.055);
}

.rh-general-set-bonus-list span,
.rh-general-set-bonus-list strong {
    display: block;
}

.rh-general-set-bonus-list span {
    color: rgba(242, 243, 244, 0.70);
    font-size: .82rem;
}

.rh-general-set-bonus-list strong {
    margin-top: 2px;
    color: #d8ffe8;
    font-size: .92rem;
}

.rarity-rare {
    border-color: rgba(193, 198, 204, 0.30) !important;
}

.rarity-epic {
    border-color: rgba(203, 207, 212, 0.34) !important;
}

.rarity-legendary {
    border-color: rgba(255, 190, 84, 0.42) !important;
}

.rh-general-shop-item.rarity-rare,
.rh-general-inventory-item.rarity-rare,
.rh-general-equipment-slot.rarity-rare {
    background: linear-gradient(135deg, rgba(50, 55, 62, 0.42), rgba(0,0,0,0.22));
}

.rh-general-shop-item.rarity-epic,
.rh-general-inventory-item.rarity-epic,
.rh-general-equipment-slot.rarity-epic {
    background: linear-gradient(135deg, rgba(58, 64, 72, 0.46), rgba(0,0,0,0.24));
}

.rh-general-shop-item.rarity-legendary,
.rh-general-inventory-item.rarity-legendary,
.rh-general-equipment-slot.rarity-legendary {
    background: linear-gradient(135deg, rgba(112, 70, 14, 0.48), rgba(0,0,0,0.26));
}

@media (max-width: 780px) {
    .rh-general-set-progress-list,
    .rh-general-set-bonus-list {
        grid-template-columns: 1fr;
    }
}

/* Phase 2.6: Scrollbares General-Menü + sichtbarer Shop */
.rh-general-modal {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: min(90dvh, 920px);
}

.rh-general-close {
    position: absolute;
    top: 12px;
    right: 12px;
    float: none;
    margin: 0;
}

.rh-general-content {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: min(90dvh, 920px);
    padding-right: 34px;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(250, 96, 79, 0.75) rgba(255,255,255,0.06);
}

.rh-general-content::-webkit-scrollbar {
    width: 10px;
}

.rh-general-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
}

.rh-general-content::-webkit-scrollbar-thumb {
    border: 2px solid rgba(8, 9, 10, 0.98);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(250, 96, 79, 0.92), rgba(172, 178, 187, 0.62));
}

.rh-general-tabbar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    gap: 10px;
    margin: -4px 48px 16px 0;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(14, 16, 18, 0.96), rgba(25, 29, 34, 0.94));
    box-shadow: 0 12px 34px rgba(0,0,0,0.38);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.rh-general-tabbar button {
    flex: 1 1 0;
    min-height: 36px;
    border: 1px solid rgba(250, 96, 79, 0.28);
    border-radius: 10px;
    background: rgba(250, 96, 79, 0.09);
    color: #fdb5ad;
    font-weight: 900;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.rh-general-tabbar button:hover,
.rh-general-tabbar button:focus-visible {
    border-color: rgba(172, 178, 187, 0.42);
    background: rgba(172, 178, 187, 0.12);
    color: #e8fbff;
}

.rh-general-section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.rh-general-section-title span {
    display: block;
    color: rgba(250, 96, 79, 0.78);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rh-general-section-title h3 {
    margin: 2px 0 0;
}

.rh-general-section-title small {
    color: rgba(240, 241, 243, 0.72);
    line-height: 1.35;
    text-align: right;
}

.rh-general-shop-section {
    background:
        radial-gradient(circle at top right, rgba(250, 96, 79, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(28, 20, 10, 0.76), rgba(7, 8, 10, 0.72));
}

@media (max-width: 820px) {
    .rh-general-content {
        padding-right: 22px;
    }

    .rh-general-tabbar {
        margin-right: 44px;
    }
}

@media (max-width: 560px) {
    .rh-general-modal {
        width: 100vw;
        max-height: 100dvh;
        border-radius: 0;
    }

    .rh-general-content {
        max-height: 100dvh;
        padding: 64px 14px 20px;
    }

    .rh-general-tabbar {
        margin: 0 0 14px;
        overflow-x: auto;
    }

    .rh-general-tabbar button {
        flex: 0 0 auto;
        min-width: 118px;
    }

    .rh-general-section-title {
        flex-direction: column;
    }

    .rh-general-section-title small {
        text-align: left;
    }
}

/* Phase 2.7: General-Panel als echtes Ingame-Fenster + robuste interne Scrollbar */
.rh-general-overlay {
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: clamp(10px, 2vw, 22px);
}

.rh-general-modal {
    width: min(1180px, 96vw);
    height: min(92dvh, 920px);
    max-height: min(92dvh, 920px);
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    border: 1px solid rgba(250, 96, 79, 0.34);
    border-top-color: rgba(172, 178, 187, 0.38);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 96, 54, 0.08), transparent 28%),
        radial-gradient(circle at 82% 0%, rgba(172, 178, 187, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(23, 26, 30, 0.98), rgba(8, 9, 10, 0.99));
    box-shadow: 0 30px 100px rgba(0,0,0,0.82), inset 0 0 34px rgba(172, 178, 187, 0.035);
}

.rh-general-modal::before,
.rh-general-modal::after {
    content: '';
    position: absolute;
    width: 48px;
    height: 48px;
    pointer-events: none;
    z-index: 2;
}

.rh-general-modal::before {
    top: 14px;
    left: 14px;
    border-top: 2px solid rgba(255, 96, 54, 0.78);
    border-left: 2px solid rgba(255, 96, 54, 0.78);
    border-radius: 10px 0 0 0;
}

.rh-general-modal::after {
    right: 14px;
    bottom: 14px;
    border-right: 2px solid rgba(172, 178, 187, 0.68);
    border-bottom: 2px solid rgba(172, 178, 187, 0.68);
    border-radius: 0 0 10px 0;
}

.rh-general-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 6;
    box-shadow: 0 8px 22px rgba(0,0,0,0.38), inset 0 0 10px rgba(255,82,106,0.12);
}

.rh-general-content {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 30px 34px 32px;
    scroll-behavior: smooth;
    scrollbar-gutter: stable both-edges;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.rh-general-head {
    position: relative;
    overflow: hidden;
    margin: 0 0 16px;
    padding: 22px 56px 20px 22px;
    border: 1px solid rgba(255,255,255,0.085);
    border-top-color: rgba(250, 96, 79, 0.32);
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(255, 96, 54, 0.15), rgba(172, 178, 187, 0.06)),
        linear-gradient(180deg, rgba(25, 29, 34, 0.94), rgba(10, 12, 14, 0.92));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025), 0 14px 34px rgba(0,0,0,0.28);
}

.rh-general-head::after {
    content: 'COMMAND INTERFACE';
    position: absolute;
    right: 22px;
    bottom: 14px;
    color: rgba(172, 178, 187, 0.18);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 2.4px;
    pointer-events: none;
}

.rh-general-kicker,
.rh-general-section-title span,
.rh-general-shop-type,
.rh-general-defense-box span,
.rh-general-credit-card span,
.rh-general-exchange-card span {
    font-family: 'Orbitron', sans-serif;
}

.rh-general-tabbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    gap: 8px;
    margin: 0 0 16px;
    padding: 9px;
    border: 1px solid rgba(172, 178, 187, 0.12);
    border-radius: 15px;
    background: rgba(9, 11, 13, 0.90);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.34), inset 0 0 0 1px rgba(255,255,255,0.025);
}

.rh-general-tabbar button {
    flex: 1 1 0;
    min-height: 38px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(32, 34, 39, 0.86), rgba(11, 13, 15, 0.88));
    color: #f3f4f5;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.rh-general-tabbar button:hover,
.rh-general-tabbar button:focus-visible {
    border-color: rgba(250, 96, 79, 0.38);
    color: #fee0dd;
    outline: none;
}

.rh-general-profile-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
    align-items: stretch;
}

.rh-general-profile-card,
.rh-general-stat-card,
.rh-general-sections section,
.rh-general-choice-card,
.rh-general-locked-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.09);
    border-top-color: rgba(40,216,255,0.16);
    background:
        linear-gradient(135deg, rgba(26, 30, 34, 0.84), rgba(7, 8, 9, 0.78)),
        rgba(0,0,0,0.28);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.024), 0 14px 32px rgba(0,0,0,0.30);
}

.rh-general-profile-card::before,
.rh-general-stat-card::before,
.rh-general-sections section::before,
.rh-general-choice-card::before,
.rh-general-locked-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,96,54,0.8), rgba(40,216,255,0.55));
    opacity: 0.72;
}

.rh-general-profile-card > *,
.rh-general-stat-card > *,
.rh-general-sections section > *,
.rh-general-choice-card > *,
.rh-general-locked-card > * {
    position: relative;
    z-index: 1;
}

.rh-general-large-icon,
.rh-general-choice-icon {
    background:
        radial-gradient(circle at 40% 20%, rgba(255,255,255,0.20), transparent 24%),
        linear-gradient(180deg, rgba(250, 96, 79, 0.22), rgba(172, 178, 187, 0.10));
    box-shadow: 0 0 22px rgba(250, 96, 79, 0.12), inset 0 0 0 1px rgba(255,255,255,0.06);
}

.rh-general-profile-card h3 {
    margin: 10px 0 6px;
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
}

.rh-general-profile-card p,
.rh-general-choice-body p {
    color: rgba(244, 245, 246, 0.80);
    line-height: 1.48;
}

.rh-general-state-pill {
    border: 1px solid rgba(144,255,199,0.32);
}

.rh-general-stat-row {
    align-items: center;
    min-height: 30px;
}

.rh-general-stat-row strong {
    color: #ffffff;
    text-align: right;
}

.rh-general-hp-bar {
    height: 11px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.58);
}

.rh-general-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.rh-general-sections section {
    padding: 18px 18px 18px 20px;
}

.rh-general-sections h3,
.rh-general-inventory-wrap h3,
.rh-general-choice-body h3,
.rh-general-section-title h3 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.04em;
}

.rh-general-section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 13px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.rh-general-section-title span {
    display: block;
    color: rgba(250, 96, 79, 0.82);
    font-size: 0.68rem;
    letter-spacing: 2px;
}

.rh-general-section-title h3 {
    margin: 2px 0 0;
    color: #fff;
}

.rh-general-section-title small {
    color: rgba(236, 238, 240, 0.68);
    text-align: right;
}

.rh-general-bonus-list li,
.rh-general-choice-body li {
    min-height: 34px;
    padding: 8px 0;
}

.rh-general-skill-box,
.rh-general-skill-preview,
.rh-general-defense-box,
.rh-general-equipment-summary,
.rh-general-set-panel,
.rh-general-credit-card,
.rh-general-exchange-card,
.rh-general-shop-empty {
    background:
        linear-gradient(135deg, rgba(172, 178, 187, 0.075), rgba(250, 96, 79, 0.045)),
        rgba(0,0,0,0.22);
    border-color: rgba(172, 178, 187, 0.15);
}

.rh-general-shop-grid,
.rh-general-inventory-grid,
.rh-general-equipment-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.rh-general-shop-item,
.rh-general-inventory-item,
.rh-general-equipment-slot {
    border-top-color: rgba(250, 96, 79, 0.18);
    background:
        linear-gradient(180deg, rgba(30, 32, 36, 0.66), rgba(7, 8, 10, 0.74)),
        rgba(0,0,0,0.18);
}

.rh-general-shop-item h4,
.rh-general-inventory-item span,
.rh-general-equipment-slot strong {
    color: #ffffff;
}

.rh-general-buy-btn,
.rh-general-exchange-btn,
.rh-general-use-item,
.rh-general-refresh-shop,
.rh-general-equip-item,
.rh-general-unequip-item,
.rh-general-defense-btn,
.rh-general-defense-clear,
.rh-general-select-btn {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035), 0 8px 18px rgba(0,0,0,0.22);
}

.rh-general-choice-grid {
    align-items: stretch;
}

.rh-general-choice-card {
    flex-direction: column;
    min-height: 100%;
}

.rh-general-choice-body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.rh-general-choice-body .rh-general-select-btn {
    margin-top: auto;
}

@media (max-width: 820px) {
    .rh-general-overlay {
        align-items: stretch;
        padding: 8px;
    }

    .rh-general-modal {
        width: 100%;
        height: calc(100dvh - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 16px;
    }

    .rh-general-content {
        padding: 22px 16px 24px;
        scrollbar-gutter: auto;
    }

    .rh-general-head {
        padding: 18px 48px 16px 16px;
    }

    .rh-general-head::after {
        display: none;
    }

    .rh-general-tabbar {
        top: -1px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .rh-general-tabbar button {
        flex: 0 0 auto;
        min-width: 118px;
        font-size: 0.78rem;
    }

    .rh-general-profile-grid,
    .rh-general-sections,
    .rh-general-choice-grid {
        grid-template-columns: 1fr !important;
    }

    .rh-general-profile-card {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .rh-general-content {
        padding: 18px 12px 22px;
    }

    .rh-general-close {
        width: 34px;
        height: 34px;
        top: 10px;
        right: 10px;
    }

    .rh-general-shop-grid,
    .rh-general-inventory-grid,
    .rh-general-equipment-grid {
        grid-template-columns: 1fr;
    }

    .rh-general-section-title {
        flex-direction: column;
        gap: 4px;
    }

    .rh-general-section-title small {
        text-align: left;
    }
}


/* Phase 2.8: CSS-Load-Fix – General-Panel gewinnt gegen spätere Styles und bleibt sichtbar designt */
html body .rh-general-overlay {
    z-index: 2147483000 !important;
}

html body .rh-general-overlay .rh-general-modal {
    isolation: isolate;
}

html body .rh-general-overlay .rh-general-content {
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 96, 54, 0.08), transparent 28%),
        radial-gradient(circle at 90% 12%, rgba(172, 178, 187, 0.10), transparent 30%),
        rgba(8, 9, 10, 0.18);
}

html body .rh-general-overlay .rh-general-head,
html body .rh-general-overlay .rh-general-profile-card,
html body .rh-general-overlay .rh-general-stat-card,
html body .rh-general-overlay .rh-general-sections section,
html body .rh-general-overlay .rh-general-equipment-section,
html body .rh-general-overlay .rh-general-shop-section,
html body .rh-general-overlay .rh-general-choice-card,
html body .rh-general-overlay .rh-general-locked-card {
    box-sizing: border-box;
}

/* Phase 2.9: General als normales Center-Menü, Shop/Ausrüstung als Popup */
.rh-general-center-title {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: .04em;
}

.rh-general-menu-panel {
    width: min(1280px, 100%);
    margin: 0 auto;
    box-sizing: border-box;
    color: #f4f8ff;
}

.rh-general-menu-panel .rh-general-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    scrollbar-gutter: auto !important;
    background: transparent !important;
}

.rh-general-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 22px;
    border-radius: 20px;
    border: 1px solid rgba(250, 96, 79, 0.30);
    background:
        radial-gradient(circle at 90% 0%, rgba(172, 178, 187, 0.13), transparent 34%),
        linear-gradient(135deg, rgba(28, 31, 35, 0.96), rgba(9, 10, 11, 0.98));
    box-shadow: 0 18px 46px rgba(0,0,0,.36), inset 0 0 0 1px rgba(255,255,255,.035);
}

.rh-general-head-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.rh-general-menu-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    gap: 16px;
    align-items: start;
}

.rh-general-menu-grid > section,
.rh-general-actions-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.09);
    border-top-color: rgba(172, 178, 187, .18);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(28, 31, 35, .84), rgba(7, 8, 10, .80)),
        rgba(0,0,0,.22);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.024), 0 14px 34px rgba(0,0,0,.28);
    box-sizing: border-box;
}

.rh-general-menu-grid > section::before,
.rh-general-actions-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,96,54,.80), rgba(172, 178, 187, .55));
    opacity: .72;
}

.rh-general-menu-grid > section > *,
.rh-general-actions-card > * {
    position: relative;
    z-index: 1;
}

.rh-general-overview-card,
.rh-general-values-card,
.rh-general-actions-card {
    min-height: 100%;
}

.rh-general-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.rh-general-card-title span {
    color: rgba(250, 96, 79, .82);
    font-family: 'Orbitron', sans-serif;
    font-size: .68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.rh-general-card-title strong {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    text-align: right;
}

.rh-general-meter-wrap {
    margin: 12px 0;
}

.rh-general-fillbar {
    height: 12px;
    margin: 8px 0 10px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    background: rgba(0,0,0,.58);
    overflow: hidden;
}

.rh-general-fillbar > div {
    height: 100%;
    border-radius: inherit;
    transition: width .25s ease;
}

.rh-general-fillbar.hp > div {
    background: linear-gradient(90deg, #ff5252, #fb786a, #38ff9d);
}

.rh-general-fillbar.xp > div {
    background: linear-gradient(90deg, rgba(172, 178, 187, .92), rgba(250, 96, 79, .94));
    box-shadow: 0 0 14px rgba(172, 178, 187, .20);
}

.rh-general-values-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.rh-general-value-tile {
    padding: 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(0,0,0,.24);
}

.rh-general-value-tile span,
.rh-general-value-tile small {
    display: block;
    color: rgba(241, 242, 243, .70);
}

.rh-general-value-tile span {
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rh-general-value-tile strong {
    display: block;
    margin: 4px 0;
    color: #fdafa6;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
}

.rh-general-values-grid.is-inactive .rh-general-value-tile {
    border-color: rgba(255, 82, 106, .20);
    background: rgba(65, 12, 20, .22);
}

.rh-general-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.rh-general-menu-action {
    display: flex;
    min-height: 116px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    padding: 14px;
    border: 1px solid rgba(250, 96, 79, .30);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(250, 96, 79, .13), rgba(172, 178, 187, .07));
    color: #f8fbff;
    cursor: pointer;
    text-align: left;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 10px 24px rgba(0,0,0,.22);
}

.rh-general-menu-action:hover,
.rh-general-menu-action:focus-visible {
    border-color: rgba(172, 178, 187, .42);
    background: linear-gradient(135deg, rgba(172, 178, 187, .13), rgba(250, 96, 79, .10));
    outline: none;
}

.rh-general-menu-action span {
    color: rgba(252, 166, 157, .86);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.rh-general-menu-action strong {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
}

.rh-general-menu-action small {
    color: rgba(242, 243, 244, .74);
    line-height: 1.35;
}

.rh-general-sub-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 2vw, 22px);
    background: rgba(4, 4, 5, .78);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.rh-general-sub-overlay[hidden] {
    display: none !important;
}

.rh-general-sub-modal {
    position: relative;
    width: min(1180px, 96vw);
    height: min(90dvh, 900px);
    overflow: hidden;
    border: 1px solid rgba(250, 96, 79, .34);
    border-top-color: rgba(172, 178, 187, .38);
    border-radius: 20px;
    background:
        radial-gradient(circle at 82% 0%, rgba(172, 178, 187, .13), transparent 34%),
        linear-gradient(180deg, rgba(23, 26, 30, .98), rgba(8, 9, 10, .99));
    box-shadow: 0 30px 100px rgba(0,0,0,.82), inset 0 0 34px rgba(172, 178, 187, .035);
    color: #f4f8ff;
}

.rh-general-sub-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 82, 106, .45);
    border-radius: 12px;
    background: rgba(25, 5, 9, .92);
    color: #ff9aa7;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.rh-general-sub-content {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 28px 34px 32px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(250, 96, 79, .75) rgba(255,255,255,.06);
}

.rh-general-sub-content::-webkit-scrollbar {
    width: 10px;
}

.rh-general-sub-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,.06);
    border-radius: 999px;
}

.rh-general-sub-content::-webkit-scrollbar-thumb {
    border: 2px solid rgba(8, 9, 10, .98);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(250, 96, 79, .92), rgba(172, 178, 187, .62));
}

.rh-general-sub-head {
    margin: 0 46px 16px 0;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.085);
    border-top-color: rgba(250, 96, 79, .32);
    border-radius: 18px;
    background: linear-gradient(90deg, rgba(255,96,54,.15), rgba(172, 178, 187, .06));
}

.rh-general-sub-head span {
    display: block;
    color: rgba(250, 96, 79, .82);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 3px;
    font-size: .72rem;
    margin-bottom: 6px;
}

.rh-general-sub-head h2 {
    margin: 0 0 4px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
}

.rh-general-sub-head p {
    margin: 0;
    color: rgba(243, 244, 246, .82);
}

.rh-general-sub-content .rh-general-equipment-section,
.rh-general-sub-content .rh-general-shop-section {
    padding: 18px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(28, 31, 35, .84), rgba(7, 8, 10, .80));
}

@media (max-width: 980px) {
    .rh-general-menu-grid,
    .rh-general-action-grid,
    .rh-general-values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .rh-general-menu-head,
    .rh-general-head-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .rh-general-sub-modal {
        width: 100%;
        height: calc(100dvh - 16px);
        border-radius: 16px;
    }

    .rh-general-sub-content {
        padding: 58px 14px 20px;
    }

    .rh-general-sub-head {
        margin-right: 0;
    }
}

/* Phase 2.10: linkes Menü stabil halten und General-Menü breiter/ruhiger setzen */
body.rh-general-menu-open #view-main.game-layout-inner {
    grid-template-columns: minmax(0, 1fr) !important;
}

body.rh-general-menu-open #view-main .column-right,
body.rh-general-menu-open #view-main .column-far-right {
    display: none !important;
}

body.rh-general-menu-open #view-main .column-center.scrollable-column {
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

body.rh-general-menu-open #centerActionPanel {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

body.rh-general-menu-open #centerActionContent.rh-general-center-content,
body.rh-general-menu-open #centerActionContent[data-menu-category="General"] {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    display: block !important;
    box-sizing: border-box;
}

body.rh-general-menu-open #vue-left-column.column-left {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.rh-general-menu-panel {
    width: 100% !important;
    max-width: 1480px;
}

.rh-general-menu-head {
    flex-wrap: nowrap;
}

.rh-general-head-main,
.rh-general-card-title,
.rh-general-stat-row,
.rh-general-defense-box,
.rh-general-action-grid > * {
    min-width: 0;
}

.rh-general-menu-head h2,
.rh-general-menu-head p,
.rh-general-card-title strong,
.rh-general-stat-row strong,
.rh-general-value-tile strong,
.rh-general-menu-action strong,
.rh-general-menu-action small,
.rh-general-defense-box strong,
.rh-general-defense-box small {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.rh-general-menu-grid {
    grid-template-columns: minmax(520px, 1.25fr) minmax(420px, .95fr) !important;
    gap: 18px;
}

.rh-general-values-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.rh-general-action-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.rh-general-menu-grid > section {
    min-width: 0;
}

@media (max-width: 1220px) {
    .rh-general-menu-grid {
        grid-template-columns: 1fr !important;
    }

    .rh-general-values-grid {
        grid-template-columns: repeat(2, minmax(170px, 1fr));
    }
}

@media (max-width: 680px) {
    .rh-general-menu-head {
        flex-wrap: wrap;
    }

    .rh-general-values-grid,
    .rh-general-action-grid {
        grid-template-columns: 1fr;
    }
}


/* Phase 2.11: Generalstab bleibt gegen Live-Render/Radar stabil und Texte überlagern nicht */
body.rh-general-menu-open #radarContainer {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.rh-general-menu-open #centerActionPanel {
    display: block !important;
    position: relative !important;
    z-index: 5 !important;
}

body.rh-general-menu-open #centerActionContent.rh-general-center-content,
body.rh-general-menu-open #centerActionContent[data-menu-category="General"] {
    min-height: min(68vh, 820px);
    overflow: visible !important;
}

body.rh-general-menu-open .column-center.scrollable-column {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.rh-general-menu-panel,
.rh-general-menu-panel * {
    box-sizing: border-box;
}

.rh-general-menu-panel p,
.rh-general-menu-panel small,
.rh-general-menu-panel span,
.rh-general-menu-panel strong,
.rh-general-menu-panel h2,
.rh-general-menu-panel h3,
.rh-general-menu-panel h4 {
    line-height: 1.32;
}

.rh-general-menu-head {
    align-items: stretch !important;
}

.rh-general-menu-head .rh-general-state-pill {
    align-self: flex-start;
    flex: 0 0 auto;
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
    text-align: right;
}

.rh-general-head-main > div {
    min-width: 0;
}

.rh-general-menu-head h2,
.rh-general-menu-head p {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.rh-general-card-title {
    align-items: flex-start;
}

.rh-general-card-title strong {
    white-space: normal;
    line-height: 1.25;
}

.rh-general-values-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
}

.rh-general-value-tile {
    min-width: 0;
}

.rh-general-value-tile strong {
    white-space: nowrap;
}

.rh-general-value-tile small,
.rh-general-menu-action small,
.rh-general-defense-box small,
.rh-general-bonus-list li span {
    overflow-wrap: anywhere;
}

.rh-general-bonus-list li {
    align-items: flex-start;
}

.rh-general-bonus-list li strong {
    min-width: 0;
}

.rh-general-bonus-list li span {
    min-width: 0;
    max-width: 55%;
}

@media (max-width: 760px) {
    .rh-general-menu-head {
        flex-direction: column;
    }

    .rh-general-menu-head .rh-general-state-pill {
        text-align: left;
    }

    .rh-general-large-icon {
        width: 58px;
        height: 58px;
        font-size: 1.75rem;
    }

    .rh-general-menu-grid,
    .rh-general-values-grid,
    .rh-general-action-grid {
        grid-template-columns: 1fr !important;
    }

    .rh-general-bonus-list li {
        display: block;
    }

    .rh-general-bonus-list li span {
        max-width: none;
        margin-top: 4px;
        text-align: left;
    }
}

/* Phase 2.12: Generalstab kompakt – Statusfenster normalisieren und Textüberlagerungen entfernen */
body.rh-general-menu-open #centerActionContent.rh-general-center-content,
body.rh-general-menu-open #centerActionContent[data-menu-category="General"] {
    min-height: 0 !important;
    height: auto !important;
}

.rh-general-menu-panel {
    max-width: 1320px !important;
    overflow: visible !important;
}

.rh-general-menu-panel .rh-general-profile-card,
.rh-general-menu-panel .rh-general-stat-card,
.rh-general-menu-panel .rh-general-actions-card,
.rh-general-menu-panel .rh-general-menu-grid > section {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    align-self: start !important;
}

.rh-general-menu-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start !important;
}

.rh-general-overview-card,
.rh-general-values-card,
.rh-general-actions-card {
    min-height: 0 !important;
}

.rh-general-menu-grid > section {
    padding: 14px 16px !important;
    overflow: hidden !important;
}

.rh-general-menu-head {
    margin-bottom: 14px !important;
    padding: 16px 18px !important;
    min-height: 0 !important;
}

.rh-general-menu-head .rh-general-large-icon {
    width: 56px !important;
    height: 56px !important;
    font-size: 1.7rem !important;
    flex: 0 0 56px !important;
}

.rh-general-menu-head h2 {
    margin: 0 0 3px !important;
    font-size: clamp(1.15rem, 2vw, 1.65rem) !important;
    line-height: 1.15 !important;
}

.rh-general-menu-head p {
    margin: 0 !important;
    font-size: .9rem !important;
    line-height: 1.35 !important;
}

.rh-general-menu-head .rh-general-state-pill {
    padding: 5px 9px !important;
    font-size: .74rem !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
}

.rh-general-card-title {
    margin-bottom: 9px !important;
    padding-bottom: 8px !important;
    align-items: center !important;
}

.rh-general-card-title span,
.rh-general-card-title strong {
    min-width: 0 !important;
    max-width: 100% !important;
}

.rh-general-card-title strong {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: right !important;
}

.rh-general-overview-card p {
    margin: 0 0 9px !important;
    line-height: 1.38 !important;
}

.rh-general-meter-wrap {
    margin: 9px 0 !important;
}

.rh-general-fillbar {
    height: 10px !important;
    margin: 6px 0 8px !important;
}

.rh-general-stat-row {
    display: grid !important;
    grid-template-columns: minmax(92px, .45fr) minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
    min-height: 0 !important;
    padding: 6px 0 !important;
    line-height: 1.25 !important;
}

.rh-general-stat-row span,
.rh-general-stat-row strong {
    min-width: 0 !important;
    line-height: 1.25 !important;
}

.rh-general-stat-row strong {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: right !important;
}

.rh-general-values-grid {
    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)) !important;
    gap: 8px !important;
}

.rh-general-value-tile {
    min-width: 0 !important;
    padding: 10px !important;
    overflow: hidden !important;
}

.rh-general-value-tile span {
    font-size: .68rem !important;
    line-height: 1.2 !important;
}

.rh-general-value-tile strong {
    margin: 3px 0 !important;
    font-size: .94rem !important;
    line-height: 1.18 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

.rh-general-value-tile small {
    font-size: .75rem !important;
    line-height: 1.28 !important;
    overflow-wrap: anywhere !important;
}

.rh-general-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.rh-general-menu-action {
    min-height: 86px !important;
    padding: 11px 12px !important;
    overflow: hidden !important;
}

.rh-general-menu-action span,
.rh-general-menu-action strong,
.rh-general-menu-action small {
    min-width: 0 !important;
    max-width: 100% !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere !important;
}

.rh-general-menu-action strong {
    font-size: .92rem !important;
}

.rh-general-bonus-list li {
    display: grid !important;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important;
    gap: 10px !important;
    min-height: 0 !important;
    align-items: start !important;
    padding: 7px 0 !important;
}

.rh-general-bonus-list li span {
    max-width: none !important;
    text-align: right !important;
}

.rh-general-skill-box {
    padding: 11px 12px !important;
}

.rh-general-skill-box strong,
.rh-general-skill-box p,
.rh-general-note {
    max-width: 100% !important;
    line-height: 1.32 !important;
    overflow-wrap: anywhere !important;
}

.rh-general-skill-box p {
    margin: 6px 0 0 !important;
}

@media (max-width: 1180px) {
    .rh-general-menu-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 680px) {
    .rh-general-menu-head {
        padding: 14px !important;
    }

    .rh-general-menu-head .rh-general-state-pill {
        white-space: normal !important;
        text-align: left !important;
    }

    .rh-general-menu-grid > section {
        padding: 13px !important;
    }

    .rh-general-stat-row,
    .rh-general-bonus-list li {
        grid-template-columns: 1fr !important;
    }

    .rh-general-stat-row strong,
    .rh-general-bonus-list li span {
        text-align: left !important;
    }

    .rh-general-values-grid,
    .rh-general-action-grid {
        grid-template-columns: 1fr !important;
    }
}


/* Phase 2.13: General-Inventar, Ausrüstungsbedienung und Kampfbericht-Sichtbarkeit */
.command-nav-item[data-tutorial="menu-general"] .nav-copy {
    min-width: 0;
}

.rh-general-inventory-panel {
    display: grid;
    gap: 14px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(198, 203, 209, 0.20);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(18, 20, 23, 0.96), rgba(11, 12, 14, 0.98));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035);
}

.rh-general-inventory-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 14px;
    align-items: start;
}

.rh-general-inventory-column {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.rh-general-inventory-column h4 {
    margin: 0;
    color: #e9fff8;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .84rem;
}

.rh-general-inventory-grid-standalone {
    max-height: min(42vh, 420px);
    overflow: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(198, 203, 209, .45) rgba(11, 12, 14, .9);
}

.rh-general-inventory-grid-standalone::-webkit-scrollbar {
    width: 8px;
}

.rh-general-inventory-grid-standalone::-webkit-scrollbar-track {
    background: rgba(11, 12, 14, .9);
    border-radius: 999px;
}

.rh-general-inventory-grid-standalone::-webkit-scrollbar-thumb {
    background: rgba(198, 203, 209, .45);
    border-radius: 999px;
}

.rh-general-inventory-item {
    min-width: 0;
}

.rh-general-inventory-item small,
.rh-general-equipment-slot small,
.rh-general-shop-item small {
    overflow-wrap: anywhere;
    word-break: normal;
}

.rh-general-inventory-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.rh-general-equip-item,
.rh-general-unequip-item,
.rh-general-use-item {
    min-height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(198, 203, 209, 0.32);
    background: rgba(35, 38, 43, 0.92);
    color: #effffb;
    font-weight: 800;
    cursor: pointer;
}

.rh-general-equip-item:hover,
.rh-general-unequip-item:hover,
.rh-general-use-item:hover {
    border-color: rgba(198, 203, 209, 0.62);
    background: rgba(50, 54, 61, 0.96);
}

.rh-general-inventory-empty {
    margin: 0;
    padding: 10px 12px;
    border: 1px dashed rgba(255,255,255,.16);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
}

@media (max-width: 860px) {
    .rh-general-inventory-columns {
        grid-template-columns: 1fr;
    }

    .rh-general-inventory-grid-standalone {
        max-height: 360px;
    }
}


/* Phase 2.14: Shop-Live-Refresh, eigenes Inventar-Menü und klare Item-Werte/Boni */
.rh-general-action-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.rh-general-menu-action.compact {
    min-height: 52px !important;
    width: 100%;
}

.rh-general-item-headline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    min-width: 0;
}

.rh-general-item-headline span,
.rh-general-item-headline strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.rh-general-item-desc {
    display: grid;
    gap: 9px;
    margin-top: 8px;
    min-width: 0;
}

.rh-general-item-desc p {
    margin: 0;
    color: rgba(240, 241, 243, .82);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.rh-general-item-block {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid rgba(198, 203, 209, .13);
    border-radius: 12px;
    background: rgba(11, 13, 15, .42);
}

.rh-general-item-block > span {
    color: rgba(198, 203, 209, .92);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.rh-general-item-block small {
    color: rgba(240, 241, 243, .72);
    line-height: 1.3;
}

.rh-general-stat-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-width: 0;
}

.rh-general-stat-badge {
    display: inline-grid;
    grid-template-columns: auto auto;
    gap: 6px;
    align-items: baseline;
    min-width: 0;
    padding: 4px 7px;
    border-radius: 999px;
    border: 1px solid rgba(198, 203, 209, .18);
    background: rgba(198, 203, 209, .075);
    color: #effffb;
    white-space: nowrap;
}

.rh-general-stat-badge small {
    color: rgba(220, 222, 226, .72);
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.rh-general-stat-badge strong {
    font-size: .78rem;
    color: #ffffff;
}

.rh-general-stat-badge-compare {
    grid-template-columns: 1fr;
    gap: 2px;
    align-items: start;
    border-radius: 11px;
    white-space: normal;
}

.rh-general-stat-badge-compare strong {
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.rh-general-stat-badge-compare.is-upgraded {
    border-color: rgba(251, 112, 97, .24);
    background: rgba(251, 112, 97, .08);
}

.rh-general-stat-empty {
    display: inline-block;
    color: rgba(240, 241, 243, .62);
    font-size: .82rem;
    font-style: italic;
}

.rh-general-shop-footer,
.rh-general-equipment-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    align-items: stretch;
}

.rh-general-shop-footer > .rh-general-menu-action,
.rh-general-equipment-footer > .rh-general-menu-action {
    flex: 1 1 260px;
}

.rh-general-shop-footer > .rh-general-refresh-shop {
    flex: 0 0 auto;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(198, 203, 209, .32);
    background: rgba(35, 38, 43, .92);
    color: #effffb;
    font-weight: 900;
    cursor: pointer;
}

.rh-general-shop-footer > .rh-general-refresh-shop:hover {
    border-color: rgba(198, 203, 209, .64);
    background: rgba(50, 54, 61, .96);
}

.rh-general-inventory-panel-standalone {
    margin-top: 0;
}

.rh-general-sub-content .rh-general-inventory-grid-standalone {
    max-height: none;
}

.rh-general-sub-content .rh-general-inventory-item,
.rh-general-sub-content .rh-general-shop-item,
.rh-general-sub-content .rh-general-equipment-slot {
    align-content: start;
}

@media (max-width: 980px) {
    .rh-general-action-grid-three {
        grid-template-columns: 1fr !important;
    }

    .rh-general-item-headline {
        grid-template-columns: 1fr;
    }

    .rh-general-stat-badge {
        white-space: normal;
    }
}

/* Phase 2.7: General-Schmiede */
.rh-general-forge-section {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.rh-general-forge-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.rh-general-forge-status-card {
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid rgba(198, 203, 209, .18);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(18, 21, 24, .86), rgba(7, 8, 10, .94));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}

.rh-general-forge-status-card span {
    display: block;
    color: rgba(198, 203, 209, .82);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rh-general-forge-status-card strong {
    display: block;
    margin-top: 5px;
    color: #effffb;
    font-size: 1rem;
    line-height: 1.16;
    overflow-wrap: anywhere;
}

.rh-general-forge-status-card small {
    display: block;
    margin-top: 5px;
    color: rgba(240, 241, 243, .66);
    line-height: 1.25;
}

.rh-general-forge-status-card.danger {
    border-color: rgba(255, 112, 132, .28);
    background: linear-gradient(145deg, rgba(58, 14, 22, .74), rgba(12, 5, 9, .94));
}

.rh-general-forge-status-card.danger span,
.rh-general-forge-status-card.danger strong {
    color: #ffd0d8;
}

.rh-general-forge-warning {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 178, 74, .28);
    border-radius: 14px;
    background: rgba(72, 44, 12, .46);
    color: #ffe6ba;
}

.rh-general-forge-warning strong {
    color: #ffd48a;
}

.rh-general-forge-warning small {
    color: rgba(255, 236, 202, .72);
    line-height: 1.35;
}

.rh-general-forge-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    min-width: 0;
}

.rh-general-forge-item {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(198, 203, 209, .16);
    border-left: 3px solid rgba(198, 203, 209, .45);
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(16, 19, 22, .9), rgba(6, 7, 8, .96));
    box-shadow: 0 12px 28px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,255,255,.025);
}

.rh-general-forge-item.is-equipped {
    border-color: rgba(250, 96, 79, .28);
    border-left-color: rgba(250, 96, 79, .78);
}

.rh-general-forge-item.rarity-rare { border-left-color: rgba(190, 195, 202, .85); }
.rh-general-forge-item.rarity-epic { border-left-color: rgba(197, 201, 207, .9); }
.rh-general-forge-item.rarity-legendary { border-left-color: rgba(255, 188, 74, .95); }

.rh-general-forge-upgrade-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.rh-general-forge-upgrade-info span,
.rh-general-forge-upgrade-info strong {
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid rgba(198, 203, 209, .12);
    border-radius: 12px;
    background: rgba(11, 13, 15, .52);
    color: rgba(240, 241, 243, .82);
    line-height: 1.25;
}

.rh-general-forge-upgrade-info strong {
    color: #effffb;
}

.rh-general-forge-costs,
.rh-general-forge-chances {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.rh-general-forge-costs span,
.rh-general-forge-chances span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid rgba(198, 203, 209, .14);
    background: rgba(198, 203, 209, .065);
    color: rgba(239, 255, 251, .92);
    font-size: .76rem;
    font-weight: 800;
    line-height: 1.2;
}

.rh-general-forge-chances span:nth-child(2) {
    border-color: rgba(250, 96, 79, .25);
    background: rgba(250, 96, 79, .08);
    color: #fdb5ad;
}

.rh-general-forge-chances span:nth-child(3) {
    border-color: rgba(255, 112, 132, .26);
    background: rgba(255, 112, 132, .08);
    color: #ffd0d8;
}

.rh-general-forge-item-btn {
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(250, 96, 79, .34);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(250, 96, 79, .2), rgba(198, 203, 209, .09));
    color: #fedcd8;
    font-weight: 950;
    cursor: pointer;
}

.rh-general-forge-item-btn:hover:not(:disabled) {
    border-color: rgba(250, 96, 79, .66);
    background: linear-gradient(135deg, rgba(250, 96, 79, .28), rgba(198, 203, 209, .12));
}

.rh-general-forge-item-btn:disabled {
    opacity: .52;
    cursor: not-allowed;
}

@media (max-width: 720px) {
    .rh-general-forge-status-grid,
    .rh-general-forge-upgrade-info {
        grid-template-columns: 1fr;
    }

    .rh-general-forge-list {
        grid-template-columns: 1fr;
    }
}

/* Phase 2.16 – Schmiede-Slot, Schutzslot-Vorbereitung und sichtbare Popup-Meldungen */
.rh-general-sub-message {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(198, 203, 209, .24);
    background: rgba(11, 13, 15, .92);
    color: #eafffb;
    font-weight: 850;
    line-height: 1.35;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .32);
}

.rh-general-sub-message.is-error {
    border-color: rgba(255, 112, 132, .52);
    background: linear-gradient(135deg, rgba(45, 8, 16, .94), rgba(15, 17, 20, .92));
    color: #ffd6dd;
}

.rh-general-sub-message.is-success {
    border-color: rgba(118, 245, 214, .42);
    background: linear-gradient(135deg, rgba(7, 45, 36, .9), rgba(15, 17, 20, .92));
    color: #d9fff7;
}

.rh-general-forge-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(220px, .8fr);
    gap: 14px;
    margin: 14px 0 18px;
    align-items: stretch;
}

.rh-general-forge-slot-main,
.rh-general-forge-protection-slot {
    position: relative;
    min-width: 0;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(198, 203, 209, .18);
    background: linear-gradient(135deg, rgba(9, 11, 13, .9), rgba(19, 22, 26, .72));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025), 0 16px 36px rgba(0, 0, 0, .26);
}

.rh-general-forge-slot-main.is-empty {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border-style: dashed;
    border-color: rgba(250, 96, 79, .34);
    background: linear-gradient(135deg, rgba(250, 96, 79, .07), rgba(9, 11, 13, .82));
}

.rh-general-forge-slot-main > span,
.rh-general-forge-protection-slot > span {
    display: block;
    margin-bottom: 8px;
    color: rgba(198, 203, 209, .82);
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.rh-general-forge-slot-main.is-empty strong,
.rh-general-forge-protection-slot strong {
    display: block;
    color: #fedcd8;
    font-size: 1.05rem;
    font-weight: 950;
}

.rh-general-forge-slot-main small,
.rh-general-forge-protection-slot small {
    display: block;
    margin-top: 5px;
    color: rgba(240, 241, 243, .68);
    line-height: 1.35;
}

.rh-general-forge-protection-slots {
    display: grid;
    gap: 10px;
}

.rh-general-forge-protection-slot.locked {
    opacity: .78;
    border-style: dashed;
    border-color: rgba(118, 245, 214, .16);
}

.rh-general-forge-clear-btn,
.rh-general-forge-select-btn {
    width: 100%;
    min-height: 38px;
    border-radius: 12px;
    font-weight: 950;
    cursor: pointer;
}

.rh-general-forge-clear-btn {
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .055);
    color: rgba(239, 255, 251, .86);
}

.rh-general-forge-select-btn {
    border: 1px solid rgba(198, 203, 209, .28);
    background: linear-gradient(135deg, rgba(198, 203, 209, .14), rgba(250, 96, 79, .08));
    color: #eafffb;
}

.rh-general-forge-select-btn:hover:not(:disabled),
.rh-general-forge-clear-btn:hover:not(:disabled) {
    border-color: rgba(198, 203, 209, .55);
    background: rgba(198, 203, 209, .13);
}

.rh-general-forge-select-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.rh-general-forge-item.is-selected-forge {
    border-color: rgba(250, 96, 79, .52);
    box-shadow: 0 0 0 1px rgba(250, 96, 79, .18), 0 18px 40px rgba(0, 0, 0, .3);
}

#toastContainer {
    z-index: 2147483600 !important;
}

@media (max-width: 720px) {
    .rh-general-forge-workbench {
        grid-template-columns: 1fr;
    }
}

/* Phase 2.18 – General-Journal für Kämpfe, Drops und Schmiede */
.rh-general-journal-card {
    grid-column: 1 / -1;
    min-width: 0;
}

.rh-general-journal-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    min-width: 0;
}

.rh-general-journal-entry {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(198, 203, 209, .14);
    background: linear-gradient(135deg, rgba(11, 13, 15, .72), rgba(22, 25, 29, .48));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
    min-width: 0;
}

.rh-general-journal-entry.tone-success {
    border-color: rgba(118, 245, 214, .28);
    background: linear-gradient(135deg, rgba(7, 45, 36, .38), rgba(11, 13, 15, .72));
}

.rh-general-journal-entry.tone-loot {
    border-color: rgba(255, 178, 74, .34);
    background: linear-gradient(135deg, rgba(65, 42, 8, .34), rgba(11, 13, 15, .72));
}

.rh-general-journal-entry.tone-credit {
    border-color: rgba(102, 190, 255, .32);
    background: linear-gradient(135deg, rgba(34, 39, 44, .34), rgba(11, 13, 15, .72));
}

.rh-general-journal-entry.tone-warn {
    border-color: rgba(255, 178, 74, .28);
}

.rh-general-journal-entry.tone-danger {
    border-color: rgba(255, 112, 132, .36);
    background: linear-gradient(135deg, rgba(58, 10, 20, .34), rgba(11, 13, 15, .72));
}

.rh-general-journal-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(198, 203, 209, .15);
    background: rgba(198, 203, 209, .08);
    font-size: 1.1rem;
}

.rh-general-journal-body {
    min-width: 0;
}

.rh-general-journal-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.rh-general-journal-head strong {
    color: #effffb;
    font-size: .96rem;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.rh-general-journal-head time {
    flex: 0 0 auto;
    color: rgba(240, 241, 243, .58);
    font-size: .74rem;
    font-weight: 850;
}

.rh-general-journal-body p {
    margin: 4px 0 8px;
    color: rgba(240, 241, 243, .74);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.rh-general-journal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.rh-general-journal-tags span {
    display: inline-flex;
    max-width: 100%;
    padding: 4px 7px;
    border-radius: 999px;
    border: 1px solid rgba(198, 203, 209, .14);
    background: rgba(198, 203, 209, .06);
    color: rgba(239, 255, 251, .82);
    font-size: .72rem;
    font-weight: 850;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

@media (max-width: 720px) {
    .rh-general-journal-entry {
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 10px;
    }

    .rh-general-journal-icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        font-size: 1rem;
    }

    .rh-general-journal-head {
        display: grid;
        gap: 2px;
    }

    .rh-general-journal-head time {
        justify-self: start;
    }
}

/* Phase 2.20 – aktive Schmiede-Schutzslots */
.rh-general-inventory-columns.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rh-general-forge-protection-slot.is-empty {
    border-style: dashed;
    border-color: rgba(198, 203, 209, .20);
}

.rh-general-forge-protection-slot.is-filled {
    border-color: rgba(250, 96, 79, .42);
    background: linear-gradient(135deg, rgba(250, 96, 79, .09), rgba(9, 11, 13, .88));
}

.rh-general-forge-protection-list {
    display: grid;
    gap: 10px;
    margin: -4px 0 18px;
    padding: 12px;
    border: 1px solid rgba(198, 203, 209, .16);
    border-radius: 16px;
    background: rgba(9, 11, 13, .46);
}

.rh-general-forge-protection-list.empty {
    color: rgba(240, 241, 243, .76);
}

.rh-general-forge-protection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.rh-general-forge-protection-card {
    min-width: 0;
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid rgba(198, 203, 209, .15);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(18, 20, 23, .82), rgba(11, 12, 14, .92));
}

.rh-general-forge-protection-select-btn,
.rh-general-forge-protection-card button {
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #cbcfd4, #979faa);
    color: #0b0d0f;
    font-weight: 950;
    cursor: pointer;
}

.rh-general-forge-protection-select-btn:disabled,
.rh-general-forge-protection-card button:disabled {
    cursor: default;
    opacity: .66;
    filter: grayscale(.35);
}

.rh-general-section-title.compact h4 {
    margin: 2px 0 0;
    color: #e9fff8;
    font-size: 1rem;
}

@media (max-width: 900px) {
    .rh-general-inventory-columns.three {
        grid-template-columns: 1fr;
    }
}


/* Phase 2.26 – Tooltips und Schutzitem-Textfix */
.rh-general-help-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    margin-left: 5px;
    padding: 0;
    border: 1px solid rgba(198, 203, 209, .34);
    border-radius: 999px;
    background: rgba(198, 203, 209, .10);
    color: #d7dade;
    font-size: .68rem;
    font-weight: 950;
    line-height: 1;
    vertical-align: middle;
    cursor: help;
}

.rh-general-help-tip:hover,
.rh-general-help-tip:focus-visible {
    border-color: rgba(198, 203, 209, .72);
    background: rgba(198, 203, 209, .20);
    color: #ffffff;
    outline: none;
}

.rh-general-tooltip-popover {
    position: fixed;
    z-index: 2147483000;
    max-width: min(320px, calc(100vw - 24px));
    padding: 10px 12px;
    border: 1px solid rgba(198, 203, 209, .38);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(11, 12, 14, .98), rgba(21, 25, 29, .98));
    color: #eafffb;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .48), inset 0 0 0 1px rgba(255, 255, 255, .035);
    font-size: .82rem;
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
    pointer-events: none;
}

.rh-general-tooltip-popover[hidden] {
    display: none !important;
}

.rh-general-stat-badge small,
.rh-general-item-block > span,
.rh-general-forge-status-card > span,
.rh-general-forge-upgrade-info span,
.rh-general-section-title.compact small,
.rh-general-forge-protection-slot > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.rh-general-stat-badge.rh-general-stat-badge-wrap,
.rh-general-protection-rule .rh-general-stat-badge {
    width: 100%;
    grid-template-columns: 1fr;
    align-items: start;
    border-radius: 11px;
    white-space: normal;
}

.rh-general-stat-badge.rh-general-stat-badge-wrap strong,
.rh-general-protection-rule .rh-general-stat-badge strong {
    min-width: 0;
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
}

.rh-general-protection-rule {
    align-content: start;
    overflow: visible;
}

.rh-general-forge-protection-slot {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 0;
    overflow: visible;
}

.rh-general-forge-protection-slot .rh-general-item-desc,
.rh-general-forge-protection-card .rh-general-item-desc {
    min-width: 0;
    overflow: visible;
}

.rh-general-forge-protection-slot .rh-general-item-headline,
.rh-general-forge-protection-card .rh-general-item-headline {
    min-width: 0;
}

.rh-general-forge-protection-slot .rh-general-item-headline span,
.rh-general-forge-protection-card .rh-general-item-headline span {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.rh-general-forge-protection-slot .rh-general-forge-clear-btn {
    margin-top: 4px;
}

@media (max-width: 720px) {
    .rh-general-tooltip-popover {
        max-width: calc(100vw - 18px);
        font-size: .8rem;
    }

    .rh-general-help-tip {
        width: 19px;
        height: 19px;
    }
}

/* Phase 2.28: General-Level-HP und Level-Belohnungen */
.rh-general-level-reward-box {
    display: grid;
    gap: 4px;
    margin: 10px 0 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(15, 18, 21, 0.42);
}

.rh-general-level-reward-box .rh-general-stat-row {
    padding: 3px 0;
    min-height: 0;
    border-bottom-color: rgba(255,255,255,0.035);
}

.rh-general-level-reward-box .rh-general-stat-row:last-of-type {
    border-bottom: 0;
}

.rh-general-level-reward-box .rh-general-note {
    display: block;
    margin-top: 4px;
    line-height: 1.35;
}

/* Phase 2.31: Inventar- und Schmiede-Filter */
.rh-general-filterbar {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(150px, .8fr)) auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    border: 1px solid rgba(198, 203, 209, .18);
    border-radius: 16px;
    background: rgba(10, 12, 14, .72);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}

.rh-general-inventory-filterbar {
    grid-template-columns: minmax(180px, 1.4fr) minmax(150px, .7fr) minmax(150px, .8fr) auto;
}

.rh-general-filterbar label {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.rh-general-filterbar label span {
    color: rgba(233, 235, 237, .72);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rh-general-filterbar input,
.rh-general-filterbar select {
    width: 100%;
    min-height: 36px;
    border: 1px solid rgba(198, 203, 209, .24);
    border-radius: 11px;
    background: rgba(7, 8, 9, .88);
    color: #effffb;
    padding: 8px 10px;
    outline: none;
}

.rh-general-filterbar input:focus,
.rh-general-filterbar select:focus {
    border-color: rgba(198, 203, 209, .7);
    box-shadow: 0 0 0 2px rgba(198, 203, 209, .13);
}

.rh-general-filter-reset {
    min-height: 36px;
    white-space: nowrap;
    border-radius: 11px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.06);
    color: #effffb;
    font-weight: 800;
    cursor: pointer;
}

.rh-general-filter-reset:hover {
    border-color: rgba(198, 203, 209, .45);
    background: rgba(198, 203, 209, .10);
}

.rh-general-forge-filterbar {
    margin-top: 4px;
}

@media (max-width: 980px) {
    .rh-general-filterbar,
    .rh-general-inventory-filterbar {
        grid-template-columns: 1fr 1fr;
    }

    .rh-general-filterbar label:first-child,
    .rh-general-filter-reset {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .rh-general-filterbar,
    .rh-general-inventory-filterbar {
        grid-template-columns: 1fr;
    }

    .rh-general-filter-reset {
        width: 100%;
    }
}

/* Phase 2.32: Skillpunkte und aktive Auto-Skill-Anzeige */
.rh-general-skillpoints-section {
    border: 1px solid rgba(203, 207, 212, 0.24);
    border-radius: 14px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(30, 32, 36, 0.92), rgba(15, 18, 21, 0.92));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035);
}

.rh-general-skillpoint-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0 12px;
}

.rh-general-skillpoint-summary span {
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.04);
    font-size: 0.88rem;
    color: rgba(230, 240, 255, 0.82);
}

.rh-general-skillpoint-summary b {
    color: #fff;
}

.rh-general-skill-track-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rh-general-skill-track-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 12px;
    padding: 12px;
    background: rgba(0,0,0,0.18);
}

.rh-general-skill-track-card.can-upgrade {
    border-color: rgba(252, 136, 123, 0.38);
    box-shadow: 0 0 18px rgba(251, 101, 84, 0.08);
}

.rh-general-skill-track-card strong,
.rh-general-skill-track-card small,
.rh-general-skill-track-card em {
    overflow-wrap: anywhere;
}

.rh-general-skill-rank-line {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
    color: rgba(235, 242, 255, 0.9);
    font-size: 0.9rem;
}

.rh-general-skill-rank-line em {
    color: #fc988d;
    font-style: normal;
    text-align: right;
}

.rh-general-skill-rank-bar {
    height: 7px;
    border-radius: 99px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
}

.rh-general-skill-rank-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(201, 205, 211, 0.75), rgba(252, 136, 123, 0.88));
}

.rh-general-skill-upgrade-btn {
    border: 1px solid rgba(252, 154, 143, 0.38);
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(251, 101, 84, 0.12);
    color: #fdaea5;
    cursor: pointer;
    font-weight: 700;
}

.rh-general-skill-upgrade-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.4);
}

@media (max-width: 760px) {
    .rh-general-skillpoint-summary,
    .rh-general-skill-track-grid {
        grid-template-columns: 1fr;
    }

    .rh-general-skill-rank-line {
        align-items: flex-start;
        flex-direction: column;
    }

    .rh-general-skill-rank-line em {
        text-align: left;
    }
}

/* Phase 2.33: Passive-Bonus-Karten zeigen effektive Werte plus Erklärung sauber an. */
.rh-general-bonus-list li small {
    grid-column: 1 / -1;
    display: block;
    margin-top: -4px;
    color: rgba(244, 245, 246, 0.68);
    line-height: 1.35;
    text-align: left;
}

/* Phase 2.34: Skill-Neuverteilung und klarere Skillpunkt-Verwaltung */
.rh-general-skill-reset-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(252, 154, 143, 0.18);
    border-radius: 12px;
    background: rgba(251, 101, 84, 0.07);
}

.rh-general-skill-reset-row div {
    min-width: 0;
}

.rh-general-skill-reset-row strong,
.rh-general-skill-reset-row small {
    display: block;
    overflow-wrap: anywhere;
}

.rh-general-skill-reset-row small {
    margin-top: 4px;
    color: rgba(236, 243, 255, 0.72);
    line-height: 1.35;
}

.rh-general-skill-reset-btn {
    flex: 0 0 auto;
    max-width: 320px;
    border: 1px solid rgba(252, 136, 123, 0.42);
    border-radius: 10px;
    padding: 8px 11px;
    background: rgba(250, 92, 75, 0.12);
    color: #fdb1a8;
    cursor: pointer;
    font-weight: 800;
    white-space: normal;
    text-align: center;
}

.rh-general-skill-reset-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.4);
}

@media (max-width: 760px) {
    .rh-general-skill-reset-row {
        align-items: stretch;
        flex-direction: column;
    }

    .rh-general-skill-reset-btn {
        width: 100%;
        max-width: none;
    }
}

/* Phase 2.35: Skill-Wirkung und nächster Rang direkt in den Skillkarten */
.rh-general-skill-impact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.rh-general-skill-impact-box {
    min-width: 0;
    border: 1px solid rgba(203, 207, 212, 0.16);
    border-radius: 10px;
    padding: 8px 9px;
    background: rgba(255,255,255,0.035);
}

.rh-general-skill-impact-box.next {
    border-color: rgba(252, 154, 143, 0.22);
    background: rgba(251, 101, 84, 0.055);
}

.rh-general-skill-impact-box span,
.rh-general-skill-impact-box small {
    display: block;
    overflow-wrap: anywhere;
}

.rh-general-skill-impact-box span {
    margin-bottom: 4px;
    color: #dadde1;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rh-general-skill-impact-box.next span {
    color: #fc9b90;
}

.rh-general-skill-impact-box small {
    color: rgba(236, 243, 255, 0.76);
    line-height: 1.32;
}

@media (max-width: 760px) {
    .rh-general-skill-impact-grid {
        grid-template-columns: 1fr;
    }
}

/* Phase 2.36: freie Skillpunkte sofort sichtbar machen */
.rh-general-skill-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 14px;
    padding: 13px 14px;
    border: 1px solid rgba(252, 136, 123, 0.34);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(251, 101, 84, 0.14), rgba(184, 189, 197, 0.10));
    box-shadow: 0 12px 28px rgba(0,0,0,0.22), inset 0 0 0 1px rgba(255,255,255,0.04);
}

.rh-general-skill-notice div {
    min-width: 0;
}

.rh-general-skill-notice span,
.rh-general-skill-notice strong,
.rh-general-skill-notice small {
    display: block;
    overflow-wrap: anywhere;
}

.rh-general-skill-notice span {
    color: #fc988d;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rh-general-skill-notice strong {
    margin-top: 2px;
    color: #fff;
    font-size: 1.03rem;
}

.rh-general-skill-notice small {
    margin-top: 4px;
    color: rgba(238, 244, 255, 0.78);
    line-height: 1.35;
}

.rh-general-skill-notice-meta {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.rh-general-skill-notice-meta button {
    border: 1px solid rgba(252, 154, 143, 0.48);
    border-radius: 10px;
    padding: 8px 11px;
    background: rgba(251, 101, 84, 0.16);
    color: #fdaea5;
    cursor: pointer;
    font-weight: 900;
}

.rh-general-skill-notice-meta button:hover,
.rh-general-skill-notice-meta button:focus-visible {
    filter: brightness(1.08);
    outline: none;
}

@media (max-width: 760px) {
    .rh-general-skill-notice {
        align-items: stretch;
        flex-direction: column;
    }

    .rh-general-skill-notice-meta {
        align-items: stretch;
        text-align: left;
    }

    .rh-general-skill-notice-meta button {
        width: 100%;
    }
}

/* Phase 2.48 – finale General-Rollenprofile */
.rh-general-role-card {
    border: 1px solid rgba(228, 80, 63, 0.28);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(20, 23, 26, 0.94), rgba(12, 13, 15, 0.96));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 18px 36px rgba(0, 0, 0, 0.28);
    padding: 18px;
}

.rh-general-role-profile {
    display: grid;
    gap: 12px;
}

.rh-general-role-profile.compact {
    margin: 10px 0 12px;
    padding: 12px;
    border: 1px solid rgba(228, 80, 63, 0.20);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
}

.rh-general-role-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
}

.rh-general-role-head span {
    color: rgba(237, 141, 130, 0.92);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rh-general-role-head strong {
    color: #f3a39a;
    font-size: 0.92rem;
    text-align: right;
}

.rh-general-role-profile p,
.rh-general-role-profile small {
    margin: 0;
    color: rgba(226, 233, 221, 0.78);
    line-height: 1.45;
}

.rh-general-role-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rh-general-role-columns > div {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.rh-general-role-columns b {
    display: block;
    margin-bottom: 7px;
    color: #e86c5e;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rh-general-role-columns ul {
    margin: 0;
    padding-left: 18px;
    color: rgba(235, 241, 231, 0.82);
}

.rh-general-role-columns li {
    margin: 0 0 5px;
    line-height: 1.38;
}

.rh-general-role-profile.compact .rh-general-role-columns {
    grid-template-columns: 1fr;
}

.rh-general-role-profile.compact .rh-general-role-columns > div {
    padding: 10px;
}

@media (max-width: 760px) {
    .rh-general-role-columns {
        grid-template-columns: 1fr;
    }

    .rh-general-role-head strong {
        text-align: left;
    }
}

/* Phase 2.49 – General-Einsatzcheck */
.rh-general-readiness-card {
    margin: 0 0 16px;
    padding: 18px;
    border: 1px solid rgba(228, 80, 63, 0.30);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(21, 24, 28, 0.96), rgba(9, 11, 13, 0.96));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.30), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.rh-general-readiness-card.theme-stability {
    border-color: rgba(116, 208, 151, 0.30);
}

.rh-general-readiness-card.theme-assault {
    border-color: rgba(255, 116, 98, 0.32);
}

.rh-general-readiness-card.theme-hunter {
    border-color: rgba(201, 206, 211, 0.32);
}

.rh-general-readiness-lead {
    margin: 8px 0 14px;
    color: rgba(232, 239, 255, 0.80);
    line-height: 1.45;
}

.rh-general-readiness-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.rh-general-readiness-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.20);
}

.rh-general-readiness-row.tone-ok {
    border-color: rgba(114, 217, 151, 0.25);
    background: linear-gradient(135deg, rgba(70, 170, 108, 0.13), rgba(0, 0, 0, 0.20));
}

.rh-general-readiness-row.tone-warn {
    border-color: rgba(255, 204, 98, 0.30);
    background: linear-gradient(135deg, rgba(255, 186, 75, 0.13), rgba(0, 0, 0, 0.20));
}

.rh-general-readiness-row.tone-danger {
    border-color: rgba(255, 96, 116, 0.34);
    background: linear-gradient(135deg, rgba(255, 70, 90, 0.13), rgba(0, 0, 0, 0.20));
}

.rh-general-readiness-icon {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    color: #fff;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.rh-general-readiness-row small,
.rh-general-readiness-row strong,
.rh-general-readiness-row p {
    display: block;
    margin: 0;
    overflow-wrap: anywhere;
}

.rh-general-readiness-row small {
    color: rgba(252, 161, 151, 0.86);
    font-size: 0.70rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rh-general-readiness-row strong {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.92rem;
}

.rh-general-readiness-row p {
    margin-top: 3px;
    color: rgba(244, 245, 246, 0.72);
    font-size: 0.80rem;
    line-height: 1.35;
}

.rh-general-readiness-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.rh-general-readiness-action button {
    border: 1px solid rgba(252, 158, 148, 0.34);
    border-radius: 10px;
    padding: 7px 9px;
    background: rgba(251, 101, 84, 0.12);
    color: #fdaea5;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 900;
    white-space: nowrap;
}

.rh-general-readiness-action button:hover,
.rh-general-readiness-action button:focus-visible {
    filter: brightness(1.08);
    outline: none;
}

@media (max-width: 980px) {
    .rh-general-readiness-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .rh-general-readiness-row {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .rh-general-readiness-action {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .rh-general-readiness-action button {
        width: 100%;
    }
}


@media (max-width: 760px) {
    .rh-general-set-collection-list {
        grid-template-columns: 1fr;
    }
}


/* Phase 2.52 - Inventar-/Schmiede-Nutzungshinweise */
.rh-general-item-notices {
    display: grid;
    gap: 5px;
    margin-top: 8px;
}

.rh-general-item-notices small {
    display: block;
    padding: 7px 9px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
    color: rgba(244, 245, 246, 0.78);
    font-size: 0.72rem;
    line-height: 1.32;
    overflow-wrap: anywhere;
}

.rh-general-item-notices small.tone-ok {
    border-color: rgba(114, 217, 151, 0.28);
    background: rgba(65, 165, 105, 0.11);
    color: rgba(190, 255, 212, 0.90);
}

.rh-general-item-notices small.tone-warn {
    border-color: rgba(255, 204, 98, 0.32);
    background: rgba(255, 186, 75, 0.12);
    color: rgba(255, 231, 176, 0.94);
}

.rh-general-item-notices small.tone-info {
    border-color: rgba(122, 180, 255, 0.24);
    background: rgba(80, 135, 220, 0.10);
    color: rgba(211, 228, 255, 0.88);
}

.rh-general-inventory-item.is-locked-phase,
.rh-general-forge-item.is-locked-phase {
    opacity: 0.82;
    border-style: dashed;
}

.rh-general-inventory-actions button:disabled,
.rh-general-forge-item button:disabled,
.rh-general-forge-slot-main button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    filter: grayscale(0.35);
}

/* Phase 2.53 - Abschlusscheck Generalpaket */
.rh-general-final-gate-card {
    margin: 14px 0;
    padding: 14px;
    border: 1px solid rgba(252, 138, 125, 0.24);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(251, 113, 98, 0.10), rgba(76, 83, 92, 0.16)),
        rgba(8, 9, 11, 0.76);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 16px 36px rgba(0, 0, 0, 0.22);
}

.rh-general-final-gate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.rh-general-final-gate-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
    padding: 11px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
}

.rh-general-final-gate-row > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.08);
}

.rh-general-final-gate-row strong {
    display: block;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.9rem;
}

.rh-general-final-gate-row p {
    margin: 4px 0 0;
    color: rgba(244, 245, 246, 0.76);
    font-size: 0.79rem;
    line-height: 1.36;
    overflow-wrap: anywhere;
}

.rh-general-final-gate-row small {
    display: block;
    margin-top: 6px;
    color: rgba(253, 173, 164, 0.76);
    font-size: 0.72rem;
    line-height: 1.32;
    overflow-wrap: anywhere;
}

.rh-general-final-gate-row.tone-ok {
    border-color: rgba(114, 217, 151, 0.26);
    background: rgba(45, 135, 84, 0.11);
}

.rh-general-final-gate-row.tone-ok > span {
    color: #c9ffd9;
    background: rgba(72, 180, 111, 0.22);
}

.rh-general-final-gate-row.tone-warn {
    border-color: rgba(255, 205, 101, 0.30);
    background: rgba(186, 130, 38, 0.12);
}

.rh-general-final-gate-row.tone-warn > span {
    color: #ffe0a1;
    background: rgba(255, 188, 75, 0.20);
}

.rh-general-final-gate-row.tone-danger {
    border-color: rgba(255, 106, 106, 0.30);
    background: rgba(172, 54, 54, 0.13);
}

.rh-general-final-gate-row.tone-danger > span {
    color: #ffd0d0;
    background: rgba(234, 82, 82, 0.20);
}

.rh-general-final-gate-row.tone-info {
    border-color: rgba(129, 185, 255, 0.24);
    background: rgba(67, 112, 185, 0.10);
}

.rh-general-final-gate-row.tone-info > span {
    color: #d6e8ff;
    background: rgba(95, 150, 230, 0.18);
}

@media (max-width: 980px) {
    .rh-general-final-gate-grid {
        grid-template-columns: 1fr;
    }
}


/* Phase 2.54 - QA-/Balancing-Kontrollkarte */
.rh-general-qa-card {
    margin: 14px 0;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(207, 211, 216, 0.24);
    background:
        linear-gradient(135deg, rgba(156, 163, 174, 0.12), rgba(251, 113, 98, 0.08)),
        rgba(9, 10, 12, 0.78);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 14px 32px rgba(0, 0, 0, 0.20);
}

.rh-general-qa-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.rh-general-qa-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.20);
}

.rh-general-qa-row > span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 900;
}

.rh-general-qa-row strong,
.rh-general-qa-balance-grid strong {
    display: block;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.84rem;
}

.rh-general-qa-row p,
.rh-general-qa-balance-grid p {
    margin: 4px 0 0;
    color: rgba(244, 245, 246, 0.78);
    font-size: 0.76rem;
    line-height: 1.34;
    overflow-wrap: anywhere;
}

.rh-general-qa-row small,
.rh-general-qa-balance-grid small {
    display: block;
    margin-top: 6px;
    color: rgba(253, 173, 164, 0.75);
    font-size: 0.69rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.rh-general-qa-row.tone-ok {
    border-color: rgba(114, 217, 151, 0.25);
    background: rgba(45, 135, 84, 0.10);
}

.rh-general-qa-row.tone-warn {
    border-color: rgba(255, 205, 101, 0.29);
    background: rgba(186, 130, 38, 0.11);
}

.rh-general-qa-row.tone-danger {
    border-color: rgba(255, 106, 106, 0.30);
    background: rgba(172, 54, 54, 0.13);
}

.rh-general-qa-row.tone-info {
    border-color: rgba(129, 185, 255, 0.24);
    background: rgba(67, 112, 185, 0.10);
}

.rh-general-qa-balance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.rh-general-qa-balance-grid article {
    min-width: 0;
    padding: 11px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
}

.rh-general-qa-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.rh-general-qa-tags span {
    padding: 4px 7px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.055);
    color: rgba(244, 245, 246, 0.78);
    font-size: 0.68rem;
    white-space: nowrap;
}

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

@media (max-width: 680px) {
    .rh-general-qa-grid,
    .rh-general-qa-balance-grid {
        grid-template-columns: 1fr;
    }
}
