/* ==========================================================================
   Monster Business – Mobile-First Laden-Simulator (styles.css)
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--le-bg);
    color: var(--le-ink);
    font-family: var(--le-font-sans);
    -webkit-tap-highlight-color: transparent;
}

.mono {
    font-family: var(--le-font-mono);
}

button {
    font-family: inherit;
}

/* ---------- HUB-ANSICHT ---------- */

.mb-hub-wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 14px 14px 48px;
}

.mb-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0 14px;
}

.mb-brand {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mb-brand-badge {
    display: inline-block;
    width: fit-content;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--le-amber-soft);
    color: #92400e;
}

.mb-brand h1 {
    margin: 0;
    font-size: clamp(1.3rem, 3.2vw, 1.85rem);
    font-weight: 900;
    line-height: 1.15;
}

.mb-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 48px; /* Platz für top-right legal badge */
}

.mb-icon-btn {
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    border: 1.5px solid var(--le-border-strong);
    background: var(--le-surface);
    font-size: 1.15rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mb-icon-btn.is-off {
    opacity: 0.52;
    background: var(--le-bg-soft);
}

.mb-profile-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 55%, #fde68a 100%);
    border: 1.5px solid rgba(217, 119, 6, 0.28);
    box-shadow: var(--le-shadow-sm);
}

.mb-player-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.mb-avatar-frame {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #f59e0b;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mb-player-kicker {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #92400e;
}

.mb-player-name {
    font-size: 1.2rem;
    font-weight: 900;
    color: #451a03;
}

.mb-player-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.mb-player-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #78350f;
    border: 1px solid rgba(120, 53, 15, 0.14);
}

.mb-wallet-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mb-wallet-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1.5px solid rgba(120, 53, 15, 0.16);
}

.mb-wallet-pill span {
    font-size: 1.35rem;
}

.mb-wallet-pill strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.1;
}

.mb-wallet-pill small {
    display: block;
    font-size: 0.72rem;
    color: var(--le-ink-muted);
    font-weight: 700;
}

.mb-visual-how {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 14px;
    background: var(--le-surface);
    border: 1px solid var(--le-border);
}

.mb-vstep {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.84rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--le-bg);
    border: 1px solid var(--le-border);
}

.mb-vstep code {
    background: #0f172a;
    color: #fde047;
    padding: 1px 6px;
    border-radius: 6px;
    font-weight: 900;
}

.mb-varrow {
    font-weight: 900;
    color: var(--le-ink-soft);
}

.mb-section {
    margin-top: 22px;
}

.mb-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.mb-section-head h2 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 900;
}

.mb-hint-pill {
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--le-bg-soft);
    color: var(--le-ink-muted);
}

.mb-diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.mb-diff-btn {
    text-align: left;
    padding: 12px 14px;
    border-radius: 15px;
    border: 2px solid var(--le-border);
    background: var(--le-surface);
    cursor: pointer;
    min-height: 62px;
    transition: transform 0.12s ease, border-color 0.12s ease;
}

.mb-diff-btn.is-active {
    border-color: var(--le-blue);
    background: var(--le-blue-soft);
}

.mb-diff-btn:active {
    transform: scale(0.98);
}

.mb-diff-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 900;
    font-size: 0.98rem;
}

.mb-diff-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--le-ink-muted);
}

.mb-diff-desc {
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--le-ink-muted);
}

/* ---------- HUB LADEN-KARTEN MIT ILLUSTRIERTEM SCHAUFENSTER ---------- */

.mb-shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 14px;
}

.mb-shop-card {
    border-radius: 20px;
    background: var(--le-surface);
    border: 1.5px solid var(--le-border);
    overflow: hidden;
    box-shadow: var(--le-shadow-sm);
    display: flex;
    flex-direction: column;
}

.mb-shop-card-hero {
    position: relative;
    height: 108px;
    overflow: hidden;
    border-bottom: 2px solid rgba(43, 33, 24, 0.14);
}

.mb-shop-card-hero svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.mb-shop-card-awning {
    position: relative;
    z-index: 2;
    height: 14px;
    box-shadow: 0 3px 6px rgba(15, 23, 42, 0.18);
}

.mb-shop-card-scallops {
    position: relative;
    z-index: 2;
    height: 8px;
    background-size: 20px 10px;
    background-repeat: repeat-x;
}

.mb-shop-hero-badge {
    position: absolute;
    right: 10px;
    bottom: 8px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid rgba(43, 33, 24, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.15);
}

.mb-shop-card-body {
    padding: 13px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.mb-shop-title-row h3 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 900;
}

.mb-shop-meta {
    font-size: 0.78rem;
    color: var(--le-ink-muted);
    margin-top: 2px;
}

.mb-shop-items-preview {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.mb-mini-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 10px;
    background: var(--le-bg);
    border: 1px solid var(--le-border);
    font-size: 0.78rem;
    font-weight: 900;
    color: #78350f;
}

.mb-shop-cta {
    margin-top: auto;
    min-height: 46px;
    border-radius: 12px;
    border: none;
    font-size: 0.94rem;
    font-weight: 900;
    cursor: pointer;
    padding: 10px 14px;
}

.mb-shop-cta.is-play {
    background: #16a34a;
    color: #ffffff;
}

.mb-shop-cta.is-unlock {
    background: #f59e0b;
    color: #451a03;
}

.mb-shop-cta.is-locked {
    background: var(--le-bg-soft);
    color: var(--le-ink-muted);
    cursor: not-allowed;
}

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

.mb-upgrade-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    background: var(--le-surface);
    border: 1.5px solid var(--le-border);
}

.mb-upgrade-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.mb-upgrade-desc {
    font-size: 0.82rem;
    color: var(--le-ink-muted);
    line-height: 1.35;
}

.mb-upgrade-btn {
    margin-top: auto;
    min-height: 44px;
    border-radius: 11px;
    border: 1.5px solid var(--le-border-strong);
    background: var(--le-amber-soft);
    color: #451a03;
    font-weight: 800;
    cursor: pointer;
    padding: 8px 12px;
}

.mb-upgrade-btn.is-owned {
    background: var(--le-green-soft);
    border-color: #86efac;
    color: #166534;
    cursor: default;
}

.mb-upgrade-btn:disabled:not(.is-owned) {
    background: var(--le-bg-soft);
    color: var(--le-ink-soft);
    cursor: not-allowed;
}

.mb-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.mb-album-card {
    padding: 11px 10px;
    border-radius: 16px;
    background: var(--le-surface);
    border: 1.5px solid var(--le-border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.mb-album-card.is-epic,
.mb-album-card.is-legendary {
    border-color: rgba(245, 158, 11, 0.45);
}

.mb-album-card svg {
    width: 64px;
    height: 64px;
}

.mb-album-card.is-locked {
    opacity: 0.56;
    filter: grayscale(0.85);
}

.mb-album-card h4 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 900;
}

.mb-album-card p {
    margin: 0;
    font-size: 0.74rem;
    color: var(--le-ink-muted);
    line-height: 1.3;
}

.mb-rarity-tag {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--le-bg-soft);
}

/* ---------- AKTIVER LADEN (SHOP VIEW) ---------- */

.mb-shop-wrap {
    min-height: 100dvh;
    max-width: 960px;
    margin: 0 auto;
    padding: 10px 12px 16px;
    display: flex;
    flex-direction: column;
}

.mb-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.mb-hud-back {
    min-height: 44px;
    padding: 8px 13px;
    border-radius: 12px;
    border: 1.5px solid var(--le-border-strong);
    background: var(--le-surface);
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
}

.mb-hud-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.mb-hud-pill {
    padding: 7px 10px;
    border-radius: 11px;
    background: var(--le-surface);
    border: 1px solid var(--le-border);
    font-size: 0.84rem;
    font-weight: 800;
}

.mb-hud-pill.taler {
    background: #fef3c7;
    color: #78350f;
}

.mb-hud-pill.coins {
    background: #dcfce7;
    color: #14532d;
}

.mb-hud-right {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 48px;
}

.mb-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    background: var(--le-surface);
    border: 2px solid var(--le-border-strong);
    box-shadow: var(--le-shadow-md);
    overflow: hidden;
}

/* Bühnen-Container mit vollem SVG-Hintergrund */
.mb-scene-stage {
    position: relative;
    flex: 1;
    min-height: 365px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.mb-scene-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.mb-scene-backdrop svg {
    width: 100%;
    height: 100%;
    display: block;
}

.mb-scene-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(15, 23, 42, 0.03) 65%, rgba(15, 23, 42, 0.14) 100%);
}

/* 3D-Markise */
.mb-awning-wrap {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.mb-awning {
    height: 22px;
    border-bottom: 2px solid rgba(43, 33, 24, 0.22);
}

.mb-awning-scallops {
    height: 11px;
    background-size: 28px 14px;
    background-repeat: repeat-x;
    filter: drop-shadow(0 4px 5px rgba(15, 23, 42, 0.22));
}

.mb-shop-sign-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 4px 12px 0;
    pointer-events: none;
}

.mb-shop-sign {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 2px solid rgba(43, 33, 24, 0.18);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
    font-size: 0.92rem;
}

.mb-diff-tag {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--le-blue-soft);
    color: #0369a1;
}

/* Vordergrund: Sprechblase + Monster + Avatar + Requisiten */
.mb-scene-foreground {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 16px 6px;
}

.mb-bubble-col {
    display: flex;
    justify-content: flex-start;
    padding-left: 8px;
}

.mb-speech-bubble {
    width: 100%;
    max-width: 470px;
    background: rgba(255, 255, 255, 0.97);
    border: 2.5px solid #2b2118;
    border-radius: 20px;
    padding: 11px 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
    position: relative;
}

.mb-speech-bubble::after {
    content: "";
    position: absolute;
    left: 54px;
    bottom: -11px;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.97);
    border-right: 2.5px solid #2b2118;
    border-bottom: 2.5px solid #2b2118;
    transform: rotate(45deg);
}

.mb-order-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.mb-order-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 11px;
    background: var(--le-bg);
    border: 1.5px solid var(--le-border);
    font-weight: 800;
    font-size: 0.86rem;
}

.mb-price-strip {
    margin-top: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--le-ink-muted);
}

.mb-price-strip strong {
    font-size: 1.1rem;
    color: #92400e;
    background: #fef3c7;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1.5px solid #f59e0b;
}

.mb-pay-box {
    margin-top: 8px;
    padding: 9px 12px;
    border-radius: 14px;
    background: #0f172a;
    color: #ffffff;
    text-align: center;
}

.mb-pay-box small {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    color: #bae6fd;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mb-pay-expr {
    font-size: clamp(1.55rem, 4.6vw, 2.2rem);
    font-weight: 900;
    color: #fde047;
    margin-top: 2px;
    line-height: 1.12;
}

.mb-actors-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.mb-customer-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 10px;
}

.mb-monster-slot {
    width: 132px;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.2));
}

.mb-monster-slot.is-idle {
    animation: mbMonsterIdle 2.8s ease-in-out infinite;
}

.mb-monster-slot.is-enter {
    animation: mbMonsterEnter 0.28s ease-out;
}

.mb-monster-slot.is-happy {
    animation: mbMonsterBounce 0.44s ease;
}

.mb-monster-slot.is-grumpy {
    animation: mbMonsterShake 0.4s ease;
}

.mb-monster-tag {
    font-size: 0.78rem;
    font-weight: 900;
    padding: 3px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1.5px solid rgba(43, 33, 24, 0.22);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
    margin-top: -6px;
}

.mb-player-col {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding-right: 6px;
}

.mb-counter-props {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding-bottom: 4px;
}

.mb-prop-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 6px rgba(15, 23, 42, 0.22));
    transition: transform 0.15s ease;
}

.mb-prop-item.is-ring {
    animation: mbRegisterRing 0.42s ease;
}

.mb-coin-pop-slot {
    position: absolute;
    right: 26px;
    bottom: 92px;
    pointer-events: none;
    z-index: 5;
}

.mb-coin-pop {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fef08a;
    border: 2px solid #d97706;
    color: #78350f;
    font-weight: 900;
    font-size: 0.92rem;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
    animation: mbCoinFloat 0.9s ease-out forwards;
}

.mb-cashier-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.mb-combo-badge {
    font-size: 0.8rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fef08a;
    color: #854d0e;
    border: 1.5px solid #f59e0b;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.mb-cashier-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #f59e0b;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.2);
}

.mb-cashier-tag {
    font-size: 0.76rem;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1.5px solid rgba(43, 33, 24, 0.18);
    color: var(--le-ink);
    text-align: center;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- THEMATISCHE LADENTHEKE ---------- */

.mb-wooden-counter {
    height: 36px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible;
    border-top: 3px solid #78350f;
    border-bottom: 3px solid #451a03;
    background: linear-gradient(180deg, #d97706 0%, #92400e 100%);
}

.mb-counter-ledge {
    height: 12px;
    width: 100%;
    border-bottom: 2px solid rgba(15, 23, 42, 0.18);
}

.mb-counter-panels {
    flex: 1;
    width: 100%;
    opacity: 0.5;
    background-image: repeating-linear-gradient(90deg, transparent 0 42px, rgba(15, 23, 42, 0.16) 42px 45px);
}

/* Shop-spezifische Theken */
[data-shop-theme="eisdiele"] .mb-wooden-counter {
    border-top-color: #0284c7;
    border-bottom-color: #0369a1;
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
}
[data-shop-theme="eisdiele"] .mb-counter-ledge {
    background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 100%);
}

[data-shop-theme="baeckerei"] .mb-wooden-counter {
    border-top-color: #78350f;
    border-bottom-color: #451a03;
    background: linear-gradient(180deg, #b45309 0%, #78350f 100%);
}
[data-shop-theme="baeckerei"] .mb-counter-ledge {
    background: linear-gradient(180deg, #fde68a 0%, #f59e0b 100%);
}

[data-shop-theme="suesswaren"] .mb-wooden-counter {
    border-top-color: #be185d;
    border-bottom-color: #831843;
    background: repeating-linear-gradient(90deg, #f472b6 0 28px, #fbcfe8 28px 56px);
}
[data-shop-theme="suesswaren"] .mb-counter-ledge {
    background: linear-gradient(180deg, #ffffff 0%, #fce7f3 100%);
}

[data-shop-theme="mode"] .mb-wooden-counter {
    border-top-color: #f59e0b;
    border-bottom-color: #1e1b4b;
    background: linear-gradient(180deg, #4338ca 0%, #312e81 100%);
}
[data-shop-theme="mode"] .mb-counter-ledge {
    background: linear-gradient(180deg, #fef3c7 0%, #f59e0b 100%);
}

.mb-feedback-toast {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -17px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 900;
    box-shadow: var(--le-shadow-sm);
    z-index: 6;
    white-space: nowrap;
}

.mb-feedback-toast.is-good {
    background: #dcfce7;
    color: #166534;
    border: 2px solid #16a34a;
}

.mb-feedback-toast.is-bad {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.mb-checkout-area {
    padding: 12px 14px 14px;
    background: #faf6ec;
}

.mb-action-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mb-pay-btn {
    min-height: 62px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-align: left;
    transition: transform 0.1s ease, filter 0.1s ease;
    box-shadow: 0 3px 0 rgba(15, 23, 42, 0.14);
}

.mb-pay-btn:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: none;
}

.mb-pay-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.mb-pay-btn.is-low {
    background: #fee2e2;
    border-color: #f87171;
    color: #7f1d1d;
}

.mb-pay-btn.is-exact {
    background: #dcfce7;
    border-color: #4ade80;
    color: #14532d;
}

.mb-pay-btn.is-high {
    background: #fef3c7;
    border-color: #fbbf24;
    color: #78350f;
}

.mb-btn-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.mb-btn-text strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 900;
}

.mb-btn-text small {
    display: block;
    font-size: 0.72rem;
    opacity: 0.85;
    font-weight: 700;
}

.mb-change-bar {
    padding: 10px 12px;
    border-radius: 16px;
    background: #fffbeb;
    border: 2px solid #f59e0b;
    text-align: center;
}

.mb-change-prompt {
    font-weight: 900;
    font-size: 0.94rem;
    color: #78350f;
    margin-bottom: 10px;
}

.mb-change-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mb-change-opt-btn {
    min-height: 54px;
    border-radius: 14px;
    border: 2px solid #d97706;
    background: #ffffff;
    color: #451a03;
    font-size: 1.05rem;
    font-weight: 900;
    cursor: pointer;
}

.mb-change-opt-btn:active {
    transform: scale(0.97);
}

/* ---------- OVERLAY / ZUSAMMENFASSUNG ---------- */

.mb-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 40;
}

.mb-modal-card {
    width: 100%;
    max-width: 480px;
    background: var(--le-surface);
    border-radius: 24px;
    padding: 22px 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
}

.mb-summary-emoji {
    font-size: 2.8rem;
    line-height: 1;
}

.mb-modal-card h2 {
    margin: 8px 0 4px;
    font-size: 1.45rem;
    font-weight: 900;
}

.mb-summary-sub {
    margin: 0;
    font-size: 0.9rem;
    color: var(--le-ink-muted);
}

.mb-summary-stats {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mb-stat-box {
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--le-bg);
    border: 1px solid var(--le-border);
}

.mb-stat-box.taler {
    background: #fef3c7;
    border-color: #fcd34d;
}

.mb-stat-box.coins {
    background: #dcfce7;
    border-color: #86efac;
}

.mb-stat-box small {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--le-ink-muted);
}

.mb-stat-box strong {
    display: block;
    font-size: 1.08rem;
    font-weight: 900;
    margin-top: 2px;
}

.mb-unlocked-cards {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #eff6ff;
    border: 1.5px solid #93c5fd;
    text-align: left;
}

.mb-unlocked-card-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.mb-summary-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mb-primary-btn, .mb-outline-btn {
    flex: 1 1 160px;
    min-height: 48px;
    border-radius: 13px;
    font-weight: 900;
    font-size: 0.96rem;
    cursor: pointer;
    padding: 10px 14px;
}

.mb-primary-btn {
    border: none;
    background: #16a34a;
    color: #ffffff;
}

.mb-outline-btn {
    border: 1.5px solid var(--le-border-strong);
    background: var(--le-surface);
    color: var(--le-ink);
}

/* ---------- ANIMATIONEN ---------- */

@keyframes mbMonsterIdle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes mbMonsterEnter {
    from { opacity: 0; transform: translateY(14px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mbMonsterBounce {
    0%, 100% { transform: translateY(0); }
    45% { transform: translateY(-12px) scale(1.06); }
}

@keyframes mbMonsterShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(8px); }
    75% { transform: translateX(-5px); }
}

@keyframes mbRegisterRing {
    0% { transform: scale(1); }
    35% { transform: scale(1.18, 0.88) rotate(-4deg); }
    70% { transform: scale(0.95, 1.08) rotate(3deg); }
    100% { transform: scale(1); }
}

@keyframes mbCoinFloat {
    0% { opacity: 0; transform: translateY(6px) scale(0.85); }
    20% { opacity: 1; transform: translateY(-6px) scale(1.05); }
    100% { opacity: 0; transform: translateY(-38px) scale(1); }
}

/* ---------- HANDY / HOCHFORMAT ---------- */

@media (max-width: 680px) {
    .mb-shop-wrap {
        padding: 6px 8px 10px;
    }

    .mb-hud {
        gap: 6px;
        margin-bottom: 6px;
    }

    .mb-hud-back {
        padding: 6px 10px;
        font-size: 0.82rem;
    }

    .mb-hud-pill {
        padding: 5px 8px;
        font-size: 0.78rem;
    }

    .mb-scene-stage {
        min-height: 290px;
    }

    .mb-awning {
        height: 15px;
    }

    .mb-awning-scallops {
        height: 8px;
    }

    .mb-shop-sign {
        font-size: 0.82rem;
        padding: 4px 10px;
    }

    .mb-scene-foreground {
        padding: 8px 10px 4px;
        gap: 6px;
    }

    .mb-bubble-col {
        padding-left: 0;
        justify-content: center;
    }

    .mb-speech-bubble {
        padding: 9px 11px;
        border-radius: 16px;
    }

    .mb-speech-bubble::after {
        left: 38px;
    }

    .mb-order-chip {
        font-size: 0.78rem;
        padding: 3px 8px;
    }

    .mb-price-strip {
        margin-top: 5px;
        font-size: 0.82rem;
    }

    .mb-price-strip strong {
        font-size: 0.98rem;
    }

    .mb-pay-box {
        margin-top: 6px;
        padding: 7px 10px;
    }

    .mb-customer-stage {
        padding-left: 2px;
    }

    .mb-monster-slot {
        width: 94px;
        height: 94px;
    }

    .mb-monster-slot svg {
        width: 94px;
        height: 94px;
    }

    .mb-player-col {
        padding-right: 0;
        gap: 6px;
    }

    .mb-counter-props {
        gap: 2px;
    }

    .mb-counter-props svg {
        width: 34px;
        height: 34px;
    }

    .mb-cashier-avatar {
        width: 68px;
        height: 68px;
    }

    .mb-cashier-tag {
        font-size: 0.7rem;
        max-width: 96px;
    }

    .mb-wooden-counter {
        height: 28px;
    }

    .mb-checkout-area {
        padding: 10px 8px 10px;
    }

    .mb-action-row {
        gap: 7px;
    }

    .mb-pay-btn {
        flex-direction: column;
        text-align: center;
        min-height: 62px;
        padding: 8px 6px;
        gap: 3px;
    }

    .mb-btn-icon {
        font-size: 1.25rem;
    }

    .mb-btn-text strong {
        font-size: 0.84rem;
    }

    .mb-btn-text small {
        display: none;
    }

    .mb-feedback-toast {
        font-size: 0.76rem;
        max-width: 92vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ---------- SEHR SCHMALE HANDYS (< 370px) ---------- */
@media (max-width: 370px) {
    .mb-counter-props .mb-prop-upgrade,
    .mb-counter-props .mb-prop-shop {
        display: none;
    }

    .mb-btn-text strong {
        font-size: 0.78rem;
    }
}

/* ---------- QUERFORMAT AUF HANDY / KLEINEN TABLETS ---------- */
@media (max-height: 520px) and (orientation: landscape) {
    .mb-scene-stage {
        min-height: 210px;
    }

    .mb-awning {
        height: 12px;
    }

    .mb-awning-scallops {
        height: 6px;
    }

    .mb-monster-slot {
        width: 86px;
        height: 86px;
    }

    .mb-cashier-avatar {
        width: 62px;
        height: 62px;
    }

    .mb-pay-btn {
        min-height: 50px;
    }
}
