/* Reverse storefront: shared product layout, native controls, existing theme tokens. */
#tab-shop { gap: 20px !important; --store-panel: var(--bg-card); --store-panel-2: var(--bg-card-2); --store-line: var(--border); }
#tab-shop .shop-hero { grid-template-columns: 1fr; gap: 16px; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; }
#tab-shop .shop-hero-title { font: 700 30px/1.15 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.025em; }
#tab-shop .shop-hero-sub { font-size: 13px; color: var(--text-sub); margin-top: 7px; }
#tab-shop .shop-wallet-row { gap: 0; padding: 12px 0; border-block: 1px solid var(--border); }
#tab-shop .shop-wallet-chip { align-items: start; justify-items: start; gap: 4px; border-radius: 0; padding: 0 12px; background: none; }
#tab-shop .shop-wallet-chip:first-child { padding-left: 0; }
#tab-shop .shop-wallet-chip + .shop-wallet-chip { border-left: 1px solid var(--border); }
#tab-shop .shop-wallet-val { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
#tab-shop .shop-wallet-lbl { font-size: 12px; color: var(--text-sub); text-transform: none; letter-spacing: 0; font-weight: 400; }
.store-directory { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.store-directory > button { position: relative; isolation: isolate; min-width: 0; border: 0; border-radius: 16px; padding: 16px; background: var(--bg-card); color: var(--text); text-align: left; font: inherit; cursor: pointer; overflow: hidden; }
.store-directory strong, .store-directory small { display: block; }
.store-directory strong { font-size: 16px; line-height: 1.3; font-weight: 650; }
.store-directory small { color: var(--text-sub); margin-top: 6px; font-size: 12px; line-height: 1.5; }
.store-directory .store-entry-arrow { position: absolute; right: 14px; bottom: 16px; color: var(--accent-hi); font-size: 21px; line-height: 1; }
.store-directory .store-card-entry { grid-column: 1/-1; min-height: 230px; padding: 24px; background: #121518; color: #f2f4f7; }
.store-card-entry .store-entry-art { position: absolute; z-index: -2; right: -6%; top: 0; width: 82%; height: 100%; object-fit: cover; object-position: 55% center; }
.store-card-entry::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#121518 4%,rgba(18,21,24,.97) 28%,rgba(18,21,24,.65) 48%,rgba(18,21,24,.08) 77%),linear-gradient(0deg,rgba(18,21,24,.7),transparent 55%); pointer-events: none; }
.store-entry-copy { display: block; width: max-content; max-width: 75%; }
.store-card-entry strong { font-size: 32px; line-height: 1.02; letter-spacing: -.03em; font-weight: 750; }
.store-directory .store-card-entry small { margin-top: 12px; color: #c2c7cd; font-size: 12px; line-height: 1.5; }
.store-card-entry b { display: inline-flex; align-items: center; gap: 16px; min-height: 42px; padding: 0 14px; border-radius: 10px; color: #19150e; background: #f5c070; font-size: 12px; margin-top: 18px; font-weight: 650; }
.store-card-entry b span { font-size: 19px; }
.store-directory .store-service-entry { display: flex; align-items: end; min-height: 164px; padding: 16px; color: #f2f4f7; background: #171a1e; }
.store-service-entry > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.store-service-entry::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg,#171a1e 10%,rgba(23,26,30,.94) 34%,rgba(23,26,30,.35) 80%,rgba(23,26,30,.12)); pointer-events: none; }
.store-service-copy { display: block; width: 100%; padding-top: 64px; }
.store-service-entry strong { font-size: 16px; line-height: 1.25; font-weight: 650; }
.store-directory .store-service-entry small { color: #b8bfc7; line-height: 1.45; font-size: 11px; margin-top: 6px; padding-right: 18px; }
.store-directory .store-exchange-entry { grid-column: 1/-1; display: grid; grid-template-columns: 38px minmax(0,1fr) 24px; align-items: center; gap: 12px; background: none; border-bottom: 1px solid var(--border); border-radius: 0; padding: 12px 4px 16px; overflow: visible; }
.store-exchange-entry small { margin-top: 4px; font-size: 11px; }
.store-exchange-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--bg-card); color: var(--accent-hi); font-size: 24px; }
.store-directory .store-exchange-entry > .store-entry-arrow { position: static; margin: 0; }
.store-catalog-title { margin: 8px 0 -8px; font-size: 22px; letter-spacing: -.02em; }
#tab-shop .shop-jumpbar { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; overflow: visible; margin: 0; padding: 4px; border-radius: 12px; background: var(--bg-card); }
#tab-shop .shop-jumpbar button { justify-content: center; min-width: 0; min-height: 44px; padding: 0 3px; font-family: inherit; font-size: 12px; font-weight: 500; border: 0; border-radius: 9px; background: none; color: var(--text-sub); }
#tab-shop .shop-jumpbar button svg { display: none; }
#tab-shop .shop-jumpbar button.is-active { background: var(--bg-hover); color: var(--text); }
#tab-shop .shop-feature { border: 0; border-radius: 16px; }
#tab-shop .shop-feature-media, #tab-shop .shop-feature-media::after { height: 170px; }
#tab-shop .shop-feature-copy { top: 28px; left: 20px; }
#tab-shop .shop-feature-copy h2 { font-family: inherit; font-size: 28px; font-weight: 700; line-height: 1.1; }
#tab-shop .shop-rate { font-size: 13px; }
#tab-shop .shop-rate strong { font-size: 16px; }
#tab-shop .spin-pack-grid { padding: 0 16px; gap: 0; }
#tab-shop .spin-pack { background: none; border: 0; border-radius: 0; padding: 18px 3px; min-height: 80px; color: var(--text); }
#tab-shop .spin-pack + .spin-pack { border-left: 1px solid var(--border); }
#tab-shop .spin-pack span { font-size: 14px; font-weight: 600; }
#tab-shop .spin-pack b { font-size: 12px; color: var(--accent-hi); font-weight: 500; margin-top: 7px; }
#tab-shop .shop-inline-status { font-size: 12px; color: var(--text-sub); }
#tab-shop .shop-inline-status:empty { padding: 0; }
#tab-shop .elite-stage { grid-template-columns: 100px minmax(0,1fr); padding: 16px !important; gap: 16px; border: 0 !important; border-radius: 16px !important; }
#tab-shop .elite-stage-art { width: 100px !important; height: 120px !important; border-radius: 10px; }
#tab-shop .elite-title { font-family: inherit; font-size: 21px; line-height: 1.15; letter-spacing: -.02em; }
#tab-shop .elite-sub { font-size: 13px; line-height: 1.5; }
#tab-shop .elite-cost-chip { font-size: 13px; font-weight: 500; }
#tab-shop .elite-details summary { font-size: 13px; padding: 14px 0; color: var(--text-sub); }
#tab-shop .elite-pity-lbl, #tab-shop .elite-pity-num, #tab-shop .elite-rates { font-size: 11px; }
#tab-shop .elite-pity-row { grid-template-columns: 70px 1fr 42px; }
#tab-shop .elite-btn { font-family: inherit; font-size: 14px; font-weight: 600; }
#tab-shop .elite-save { font-size: 12px; }
#tab-shop .shop-section-head .section-heading { font-size: 22px; }
#tab-shop .shop-bonus-note { font-size: 12px; text-align: right; }
#tab-shop .shop-grid-buy { gap: 12px; }
#tab-shop .shop-pack { border: 0; padding: 18px 14px; min-height: 100px; }
#tab-shop .shop-pack-amt { font-family: inherit; font-size: 36px; font-weight: 650; }
#tab-shop .shop-pack-name { font-size: 14px; font-weight: 600; }
#tab-shop .shop-pack-price { margin-top: 6px; font-size: 12px; color: var(--text-sub); }
#tab-shop .exchange-title { font-size: 14px; }
#tab-shop .exchange-sub { font-size: 12px; color: var(--text-sub); }
#tab-shop .exchange-row { min-height: 64px; }
#tab-shop .shop-theme-showcase { height: 150px; margin-top: 4px; border: 0; border-radius: 16px; }
#tab-shop .shop-theme-showcase strong { font-family: inherit; font-size: 24px; }
#tab-shop .shop-theme-showcase span { font-size: 13px; }
#tab-shop .shop-theme-tabs .filter-pill { min-height: 44px; font-size: 13px; }
.hub-market-link { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; color: var(--text); background: var(--bg-card); text-align: left; cursor: pointer; }
.hub-market-link strong, .hub-market-link small { display: block; }
.hub-market-link strong { font-size: 16px; }
.hub-market-link small { margin-top: 5px; font-size: 12px; color: var(--text-sub); }
.hub-market-link > span:last-child { color: var(--accent-hi); font-size: 24px; }
#tab-shop button:focus-visible, .hub-market-link:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
@media (hover:hover) { .store-directory > button:hover, #tab-shop .spin-pack:hover, #tab-shop .shop-pack:hover { background: var(--bg-hover); } }
@media (prefers-reduced-motion:no-preference) { .store-directory > button, #tab-shop .shop-pack, #tab-shop .spin-pack { transition: background-color 160ms, transform 160ms; } .store-directory > button:active { transform: scale(.985); } }
@media (max-width:360px) { .store-directory .store-card-entry { padding: 20px; min-height: 224px; } .store-card-entry strong { font-size: 29px; } .store-directory .store-service-entry { padding: 14px 12px; } .store-service-entry strong { font-size: 15px; } #tab-shop .shop-pack { padding: 14px 10px; } #tab-shop .shop-pack-amt { font-size: 30px; } }

/* Store services keep the global navigation and use the same product hierarchy. */
.exchange-view-open .exchange-den { min-height: calc(100dvh - 100px); padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
.xd-layout { width: 100%; box-sizing: border-box; padding-inline: 16px; }
.xd-topbar { min-height: 58px; }
.xd-tabs { margin-block: 16px 26px; }
.xd-tabs button { min-height: 44px; font-size: 12px; }
.xd-market-head { display: block; margin-bottom: 20px; }
.xd-market-head h2, .xd-service-head h2 { font-size: 25px; font-weight: 650; letter-spacing: -.025em; }
.xd-market-head p { max-width: 34ch; font-size: 13px; }
.xd-market-clock { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-block: 12px; border-block: 1px solid var(--border); text-align: left; }
.xd-market-clock b { margin: 0; color: var(--text); font-size: 15px; font-weight: 600; }
.xd-market-offers { grid-template-columns: minmax(0,1fr); gap: 16px; }
.xd-market-offers > :first-child { grid-row: auto; }
.xd-offer { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 0 16px; padding: 16px; border: 0; border-radius: 16px; }
.xd-offer-media { order: initial; height: 128px; border-radius: 10px; overflow: hidden; }
.xd-offer[data-offer-type="rare_card"] .xd-offer-media img { object-fit: contain; }
.xd-offer-body { padding: 0; justify-content: center; min-width: 0; }
.xd-offer h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; }
.xd-offer-subtitle { font-size: 13px; line-height: 1.45; margin-bottom: 10px; }
.xd-offer-meta { display: grid; gap: 4px; font-size: 11px; line-height: 1.5; }
.xd-offer-meta > span:first-child { color: var(--accent-hi); }
.xd-offer-description { grid-column: 1/-1; margin: 16px 0; font-size: 13px; line-height: 1.55; }
.xd-offer-description:empty { display: none; }
.xd-offer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; grid-column: 1/-1; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--border); }
.xd-offer-footer > div { min-width: 0; }
.xd-offer-footer span { display: block; color: var(--text-sub); font-size: 11px; margin-bottom: 4px; }
.xd-offer-footer b { display: block; color: var(--text); font-size: 15px; line-height: 1.4; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.xd-offer .xd-offer-buy { flex-shrink: 0; width: auto; min-width: 98px; margin: 0; padding: 12px 18px; display: block; border-radius: 12px; font-size: 14px; }
.xd-offer.is-unavailable .xd-offer-media { opacity: .55; }
.xd-service-head p { margin: 0 0 18px; color: var(--text-sub); font-size: 13px; line-height: 1.5; }
.xd-buyback-terms { padding: 16px 0; border-block: 1px solid var(--border); }
.xd-buyback-terms strong { display: block; color: var(--accent-hi); font-size: 18px; font-weight: 600; }
.xd-buyback-terms span { display: block; margin-top: 5px; color: var(--text-sub); font-size: 12px; }
.xd-buyback-rules summary { padding-block: 14px; font-size: 12px; color: var(--text-sub); cursor: pointer; }
.xd-buyback-rules .xd-service-note { font-size: 13px; padding-bottom: 14px; }
.xd-theme-tools { margin: 8px 0 18px; gap: 8px; }
.xd-theme-tools input { min-width: 0; font-size: 16px; border: 0; }
.xd-theme-pager { gap: 2px; font-size: 12px; }
.xd-theme-pager button { width: 32px; }
.xd-theme-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0; background: none; border-radius: 0; }
.xd-theme-list > .xd-empty { grid-column: 1/-1; }
.xd-theme-item { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--bg-card); }
.xd-theme-media { width: 100%; height: auto; aspect-ratio: 1.25; border-radius: 0; background: var(--bg-card-2); }
.xd-theme-copy { padding: 14px 12px 0; }
.xd-theme-copy strong { font-size: 15px; line-height: 1.3; }
.xd-theme-copy span { font-size: 11px; margin-top: 5px; color: var(--text-sub); }
.xd-theme-payout { margin-top: auto; padding: 16px 12px 12px; }
.xd-theme-payout > span { display: block; font-size: 11px; color: var(--text-sub); }
.xd-theme-payout strong { display: block; margin-top: 4px; font-size: 21px; line-height: 1.2; font-weight: 650; font-variant-numeric: tabular-nums; }
.xd-theme-payout small { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; color: var(--text-sub); }
.xd-theme-sell { flex-direction: row; min-height: 44px; margin: 0 12px 12px; min-width: 0; padding: 10px 4px; font-size: 12px !important; font-weight: 600 !important; border: 1px solid var(--border-hot); border-radius: 10px; background: transparent; }
.xd-converter { background: var(--bg-card); border-radius: 16px; padding: 18px 16px; }
.xd-direction button { background: var(--bg-card-2); }
.xd-money-value input { font-size: 28px; }
.xd-layout [data-panel-leaving][hidden] { display: var(--panel-display, block) !important; pointer-events: none; }
@media (max-width:360px) { .xd-layout { padding-inline: 12px; } .xd-offer { grid-template-columns: 88px minmax(0,1fr); gap: 0 12px; padding: 14px; } .xd-offer h3 { font-size: 18px; } .xd-theme-list { gap: 10px; } .xd-theme-copy, .xd-theme-payout { padding-inline: 10px; } .xd-converter { padding-inline: 12px; } }
@media (prefers-reduced-motion:no-preference) { .xd-theme-sell, .xd-offer-buy { transition: transform 160ms, background-color 160ms; } .xd-theme-sell:active, .xd-offer-buy:active { transform: scale(.97); } .xd-layout > section:not([hidden]), #xd-panel-swap:not([hidden]) { animation: none; } }
@media (hover:hover) { .xd-theme-sell:not(:disabled):hover { background: var(--accent-dim); } }
