
@media (max-width: 760px) {
    body[data-economy-step="market"] .economy-market-stage-status {
        grid-template-columns: 1fr;
    }

    body[data-economy-step="market"] .economy-live-market--adventure .economy-market-adventure-hero {
        padding: 0;
    }

    body[data-economy-step="market"] .economy-live-market--adventure .economy-market-hero-copy {
        min-height: 300px;
        padding: 76px 30px 42px;
    }

    body[data-economy-step="market"] .economy-live-market--adventure .economy-market-hero-board {
        min-height: 360px;
        padding: 90px 36px 58px;
    }

    body[data-economy-step="market"] .economy-live-market--adventure .economy-market-segment-tabs {
        padding: 14px 16px;
    }

    body[data-economy-step="market"] .economy-live-market--adventure .economy-market-roadmap-card,
    body[data-economy-step="market"] .economy-live-market--adventure .economy-market-mission-bar {
        padding: 28px 20px;
    }

    body[data-economy-step="market"] .economy-live-market--adventure .economy-market-list-panel,
    body[data-economy-step="market"] .economy-live-market--adventure .economy-market-detail-panel {
        padding: 44px 22px 32px;
    }

    body[data-economy-step="market"] .economy-live-market--adventure .economy-market-panel-head,
    body[data-economy-step="market"] .economy-live-market--adventure .economy-market-detail-head,
    body[data-economy-step="market"] .economy-live-market--adventure .economy-market-list-toolbar {
        grid-template-columns: 1fr;
    }

    body[data-economy-step="market"] .economy-live-market--adventure .economy-market-list-toolbar .economy-button {
        min-height: 46px;
    }

    body[data-economy-step="market"] .economy-live-market--adventure .economy-stock-card-compact {
        padding-right: 48px;
    }

    body[data-economy-step="market"] .economy-live-market--adventure .economy-stock-card-compact .economy-stock-card-main {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    body[data-economy-step="market"] .economy-live-market--adventure .economy-stock-card-side {
        grid-column: 2;
        justify-items: start;
    }

    body[data-economy-step="market"] .economy-live-market--adventure .economy-stock-price {
        justify-content: flex-start;
    }
}

@media (max-width: 980px) {
    body[data-economy-step="market"] .economy-live-market--adventure > .economy-market-stage-stats--trade {
        max-width: 720px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body[data-economy-step="market"] .economy-live-market--adventure > .economy-market-stage-stats--trade ~ .economy-market-rule-strip {
        max-width: 720px;
    }
}

@media (max-width: 640px) {
    body[data-economy-step="market"] .economy-live-market--adventure > .economy-market-stage-stats--trade {
        grid-template-columns: 1fr;
    }
}

body.economy-dashboard-mode::after {
    display: none;
}

.economy-dashboard-cloud {
    display: none;
    position: fixed;
    width: 120px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    filter: drop-shadow(0 10px 18px rgba(26,107,178,0.09));
    animation: economyCloudDrift 34s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.economy-dashboard-cloud::before,
.economy-dashboard-cloud::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: inherit;
}

.economy-dashboard-cloud::before {
    width: 58px;
    height: 58px;
    left: 18px;
    top: -25px;
}

.economy-dashboard-cloud::after {
    width: 74px;
    height: 74px;
    right: 12px;
    top: -38px;
}

.economy-cloud-a { top: 7%; left: -150px; transform: scale(0.75); }
.economy-cloud-b { top: 22%; left: -220px; animation-delay: -12s; transform: scale(0.55); }
.economy-cloud-c { top: 36%; left: -180px; animation-delay: -20s; transform: scale(0.65); }

@keyframes economyCloudDrift {
    to { translate: calc(100vw + 320px) 0; }
}

.economy-session-strip {
    position: relative;
    z-index: 5;
    width: min(1420px, calc(100% - 36px));
    margin: 18px auto -8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.economy-session-strip .economy-status {
    margin: 0;
    min-width: 0;
    flex: 1;
    background: rgba(255,255,255,0.88);
}

.economy-map-shortcut {
    white-space: nowrap;
}

.economy-hidden-rail {
    display: none !important;
}

.economy-dashboard-stage {
    position: relative;
    z-index: 2;
    width: min(1420px, calc(100% - 36px));
    min-height: 0;
    margin: 18px auto 24px;
}

.economy-dashboard-app {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.economy-dashboard-side {
    position: sticky;
    top: 18px;
    min-height: calc(100vh - 36px);
    border: 1px solid rgba(255,255,255,0.74);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.78));
    box-shadow: 0 22px 55px rgba(20,78,130,0.2);
    padding: 20px 14px;
    display: grid;
    align-content: start;
    gap: 18px;
    overflow: hidden;
}

.economy-dashboard-brand {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 4px 8px;
}

.economy-brand-star {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
}

.economy-brand-mascot {
    width: 72px;
    height: 72px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(255,166,32,0.18));
}

.economy-dashboard-brand strong {
    display: block;
    color: #2368ff;
    font-size: 27px;
    font-weight: 1000;
    line-height: 1.05;
}

.economy-dashboard-brand strong span {
    color: #ff5858;
}

.economy-dashboard-brand small {
    display: block;
    margin-top: 6px;
    color: var(--economy-muted);
    font-weight: 800;
}

.economy-dashboard-menu {
    display: grid;
    gap: 8px;
}

.economy-dashboard-menu button {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #24425f;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    font: inherit;
    font-weight: 900;
    text-align: left;
    cursor: pointer;
}

.economy-dashboard-menu button:hover,
.economy-dashboard-menu button:focus-visible {
    background: rgba(255,255,255,0.72);
}

.economy-dashboard-menu button.is-active {
    background: linear-gradient(135deg, #fff3bb, #ffe28d);
    color: #9a4a00;
    box-shadow: 0 12px 20px rgba(255,187,55,0.22);
}

.economy-dashboard-menu button.is-locked {
    color: #64748b;
    background: rgba(241, 245, 249, 0.68);
}

.economy-dashboard-menu button strong {
    flex: 1;
    min-width: 0;
    font: inherit;
    overflow-wrap: anywhere;
}

.economy-dashboard-menu button span {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #edf7ff;
    font-size: 18px;
}

.economy-feature-lock-badge {
    border-radius: 999px;
    padding: 3px 7px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.economy-feature-locked-card {
    min-height: 360px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 16px;
    padding: 42px 24px;
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    text-align: center;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.economy-feature-locked-icon {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 8px;
    background: #fff1f2;
    color: #be123c;
    font-size: 34px;
}

.economy-feature-locked-card h2 {
    margin: 8px 0 10px;
    color: #12305a;
    font-size: 28px;
    line-height: 1.22;
}

.economy-feature-locked-card p {
    max-width: 540px;
    margin: 0;
    color: #49657f;
    font-weight: 800;
    line-height: 1.6;
}

.economy-dashboard-pig-note {
    margin-top: 4px;
    border-radius: 8px;
    background: rgba(255,255,255,0.74);
    padding: 14px;
    text-align: center;
}

.economy-dashboard-pig-note-img {
    display: block;
    width: min(168px, 100%);
    max-height: 132px;
    height: auto;
    object-fit: contain;
    margin: -4px auto 6px;
    filter: drop-shadow(0 16px 20px rgba(196,88,124,0.18));
}

.economy-dashboard-pig-note p {
    margin: 0;
    color: var(--economy-muted);
    font-weight: 800;
    line-height: 1.45;
}

.economy-dashboard-main {
    min-width: 0;
    display: grid;
    gap: 16px;
}

.economy-dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.economy-dashboard-hello {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.economy-dashboard-avatar {
    width: 76px;
    height: 76px;
    flex: 0 0 auto;
    border: 5px solid rgba(255,255,255,0.9);
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe0b7, #ffc88e);
    box-shadow: 0 12px 28px rgba(20,78,130,0.14);
    display: grid;
    place-items: center;
    font-size: 34px;
}

.economy-dashboard-speech {
    position: relative;
    max-width: 760px;
    border-radius: 8px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 12px 28px rgba(20,78,130,0.14);
    padding: 16px 20px;
    color: #17395e;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 900;
    line-height: 1.45;
}

.economy-dashboard-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.economy-dashboard-chips > span {
    min-height: 46px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 12px 28px rgba(20,78,130,0.14);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #17395e;
    font-weight: 1000;
}

.economy-dashboard-switch-button {
    min-height: 46px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: #17395e;
    box-shadow: 0 12px 28px rgba(20,78,130,0.14);
    white-space: nowrap;
}

.economy-dashboard-level-menu {
    position: relative;
}

.economy-dashboard-level-menu summary {
    min-height: 46px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 12px 28px rgba(20,78,130,0.14);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 10px 16px;
    color: #17395e;
    font: inherit;
    font-weight: 1000;
    cursor: pointer;
    list-style: none;
}

.economy-dashboard-level-menu summary::-webkit-details-marker {
    display: none;
}

.economy-dashboard-level-menu[open] summary {
    outline: 3px solid rgba(37,99,235,0.18);
}

.economy-dashboard-level-summary {
    white-space: nowrap;
}

.economy-dashboard-level-arrow {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #235be7;
    display: grid;
    place-items: center;
    font-size: 13px;
    line-height: 1;
}

.economy-dashboard-level-menu[open] .economy-dashboard-level-arrow {
    transform: rotate(180deg);
}

.economy-dashboard-level-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    width: min(360px, calc(100vw - 36px));
    border: 1px solid rgba(37,99,235,0.16);
    border-radius: 8px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 22px 46px rgba(20,78,130,0.22);
    padding: 12px;
}

.economy-dashboard-level-popover-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.economy-dashboard-level-popover-head strong {
    color: #14355f;
    font-weight: 1000;
}

.economy-dashboard-level-popover-head small {
    color: #5f7694;
    font-size: 12px;
    font-weight: 900;
}

.economy-dashboard-level-list {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.economy-dashboard-level-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 9px;
    border: 1px solid #e0e8f4;
    border-radius: 8px;
    background: #f8fbff;
    padding: 9px;
    color: #14355f;
}

.economy-dashboard-level-list li > span {
    min-width: 48px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #235be7;
    display: inline-flex;
    justify-content: center;
    padding: 5px 8px;
    font-size: 13px;
    font-weight: 1000;
}

.economy-dashboard-level-list div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.economy-dashboard-level-list strong,
.economy-dashboard-level-list small {
    overflow-wrap: anywhere;
}

.economy-dashboard-level-list strong {
    font-size: 14px;
    font-weight: 1000;
}

.economy-dashboard-level-list small {
    color: #5f7694;
    font-size: 12px;
    font-weight: 850;
}

.economy-dashboard-level-list em,
.economy-dashboard-level-list b {
    white-space: nowrap;
    font-size: 12px;
    font-style: normal;
    font-weight: 1000;
}

.economy-dashboard-level-list em {
    color: #315276;
}

.economy-dashboard-level-list b {
    border-radius: 999px;
    background: #eef2f7;
    color: #64748b;
    padding: 4px 7px;
}

.economy-dashboard-level-list li.is-earned b {
    background: #e6fbef;
    color: #176444;
}

.economy-dashboard-level-list li.is-current {
    border-color: rgba(37,99,235,0.36);
    background: #eef6ff;
}

.economy-dashboard-level-list li.is-current b {
    background: #235be7;
    color: #ffffff;
}

.economy-dashboard-hero {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border: 1px solid rgba(255,255,255,0.78);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.68), rgba(255,255,255,0.28)),
        linear-gradient(135deg, rgba(211,246,255,0.94), rgba(255,248,189,0.84));
    box-shadow: 0 22px 55px rgba(20,78,130,0.2);
    padding: 20px clamp(20px, 3vw, 32px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.32fr);
    gap: 14px;
    align-items: center;
}

.economy-dashboard-hero h1 {
    margin: 8px 0;
    color: #14355f;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1;
    font-weight: 1000;
}

.economy-dashboard-hero h1 span {
    color: #235be7;
}

.economy-dashboard-hero p {
    max-width: 560px;
    margin: 0;
    color: #215180;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.42;
}

.economy-dashboard-wallet-art,
.economy-dashboard-asset-art,
.economy-dashboard-pig-art,
.economy-dashboard-icon-art {
    justify-self: end;
    display: grid;
    place-items: center;
}

.economy-dashboard-wallet-art {
    width: min(270px, 100%);
}

.economy-dashboard-wallet-hero {
    width: 100%;
    max-height: 180px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 20px 24px rgba(97,58,180,0.18));
}

.economy-dashboard-asset-art {
    width: min(230px, 100%);
}

.economy-dashboard-hero-asset {
    width: 100%;
    max-height: 180px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 18px 22px rgba(78,86,130,0.16));
}

.economy-dashboard-asset-art--mission {
    width: min(230px, 100%);
}

.economy-dashboard-asset-art--gift,
.economy-dashboard-asset-art--piggy {
    width: min(230px, 100%);
}

.economy-dashboard-asset-art--basket,
.economy-dashboard-asset-art--chart,
.economy-dashboard-asset-art--coins,
.economy-dashboard-asset-art--chat {
    width: min(230px, 100%);
}

.economy-dashboard-wallet {
    width: 180px;
    height: 126px;
    border: 6px solid #5b35d5;
    border-radius: 8px;
    background: linear-gradient(135deg, #b389ff, #7048e8);
    box-shadow: 0 18px 28px rgba(21,72,130,0.18);
}

.economy-dashboard-wallet-art .economy-coin-stack {
    margin-top: -60px;
    margin-left: -120px;
}

.economy-dashboard-curve-art {
    width: min(340px, 100%);
    min-height: 170px;
}
