/* Store 279. Direct ReStars access, art-led merchandise and theme fitting room. */
#tab-shop { gap: 16px !important; }
#tab-shop .shop-hero-title { font: 750 28px/1.15 var(--font-body); }
#tab-shop .shop-hero-sub { font-size: 12px; }
#tab-shop .shop-wallet-row { padding: 10px 0; }
#tab-shop .shop-wallet-val { overflow-wrap: anywhere; overflow: visible; font-size: 17px; }
#tab-shop .shop-wallet-lbl { font-size: 11px; }
.shop-section-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; border-bottom: 1px solid var(--border); scroll-margin-top: 10px; }
.shop-section-tabs button { position: relative; min-height: 46px; border: 0; background: none; color: var(--text-sub); font: 550 14px var(--font-body); cursor: pointer; }
.shop-section-tabs button[aria-current] { color: var(--accent-hi); }
.shop-section-tabs button[aria-current]::after { content: ''; position: absolute; inset: auto 20% -1px; height: 2px; background: var(--accent-hi); border-radius: 2px; }
.shop-screen { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.shop-screen[hidden] { display: none !important; }
[data-restars-first-bonus][hidden] { display: none !important; }
#tab-shop .shop-wallet-topup { position: relative; min-height: 48px; padding-right: 35px; border: 0; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
#tab-shop .shop-wallet-topup .shop-wallet-val { color: var(--accent-hi); }
.shop-wallet-topup svg { position: absolute; width: 26px; height: 26px; top: 10px; right: 5px; padding: 5px; border-radius: 8px; background: var(--accent-dim); color: var(--accent-hi); fill: none; stroke: currentColor; stroke-width: 2; }
.shop-section-tabs [data-store-section="restars"] { color: var(--accent-hi); }
.shop-section-tabs [data-store-section="restars"] span { margin-left: 3px; }
.store-restars-promo { position: relative; isolation: isolate; min-height: 206px; overflow: hidden; padding: 20px; border: 0; border-radius: 16px; background: #211b18; text-align: left; font: inherit; color: #fff2df; cursor: pointer; }
.store-restars-promo > img { position: absolute; z-index: -2; right: -18%; top: 0; width: 90%; height: 100%; object-fit: cover; object-position: center; }
.store-restars-promo::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#211b18 3%,#211b18ed 35%,#211b1899 57%,#211b1800 90%); }
.restars-promo-copy { display: flex; flex-direction: column; align-items: flex-start; position: relative; }
.restars-promo-copy > strong { font: 750 28px/1.08 var(--font-body); letter-spacing: -.025em; }
.restars-promo-price { margin-top: 10px; font-size: 12px; line-height: 1.5; color: #ebd7bd; }
.restars-promo-bonus { margin-top: 4px; color: #ffd79b; font-size: 12px; line-height: 1.5; }
.restars-promo-action { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; padding: 0 14px; margin-top: 16px; border-radius: 10px; background: #f5c070; color: #241809; font-size: 13px; font-weight: 700; }
.restars-promo-action svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.restars-store { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 16px; }
.restars-store-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0 0; }
.restars-store-heading h2 { margin: 0; font: 750 25px/1.2 var(--font-body); letter-spacing: -.025em; }
.restars-store-heading p { margin: 8px 0 0; color: var(--text-sub); font-size: 13px; line-height: 1.5; }
.restars-store-mark { flex: 0 0 52px; width: 52px; height: 52px; fill: var(--accent-dim); stroke: var(--accent-hi); stroke-width: 1.5; }
.restars-store-mark path + path { fill: var(--accent-hi); stroke: none; }
.restars-first-bonus { display: flex; flex-direction: column; gap: 7px; padding: 16px; border-radius: 12px; background: var(--accent-dim); }
.restars-first-bonus strong { font-size: 16px; color: var(--accent-hi); }
.restars-first-bonus > span { color: var(--text); font-size: 12px; line-height: 1.5; }
.restars-pack-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.restars-pack { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 18px 14px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.restars-pack-value { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; color: var(--text-sub); font-size: 13px; }
.restars-pack-value b { color: var(--text); font-size: 34px; line-height: 1.1; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.restars-pack-bonus { color: var(--accent-hi); font-size: 12px; line-height: 1.5; }
.restars-pack-price { display: block; padding-top: 13px; margin-top: 5px; border-top: 1px solid var(--border); font-size: 18px; font-weight: 700; color: var(--accent-hi); font-variant-numeric: tabular-nums; }
.restars-pack-price > span { display: block; margin-top: 3px; color: var(--text-sub); font-size: 11px; font-weight: 400; }
.restars-payment-note { margin: 0; color: var(--text-sub); font-size: 12px; line-height: 1.6; text-align: center; }
.restars-spins-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 0; border: 0; border-top: 1px solid var(--border); background: none; color: var(--accent-hi); font: 550 12px var(--font-body); cursor: pointer; }
.restars-spins-link > span:first-child { color: var(--text-sub); font-weight: 400; }
:is(.store-restars-promo,.restars-pack,.shop-wallet-topup,.restars-spins-link):focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
:is(.store-restars-promo,.restars-pack,.shop-wallet-topup,.restars-spins-link):active { opacity: .8; }
@media (hover: hover) {
  .restars-pack:hover { border-color: var(--accent-hi); }
  .store-restars-promo:hover .restars-promo-action { background: #ffd79b; }
  .shop-wallet-topup:hover svg { background: var(--accent-hi); color: var(--bg); }
}
@media (max-width: 359px) {
  .shop-section-tabs button { font-size: 12px; padding-inline: 2px; }
  .store-restars-promo { padding: 18px; }
  .restars-promo-copy > strong { font-size: 25px; }
  .restars-store-heading h2 { font-size: 22px; }
  .restars-store-mark { flex-basis: 40px; width: 40px; height: 40px; }
  .restars-pack { padding: 16px 12px 12px; }
  .restars-pack-value b { font-size: 30px; }
}
#tab-shop .store-directory { gap: 10px; }
#tab-shop .store-directory .store-card-entry { min-height: 180px; padding: 22px; }
#tab-shop .store-card-entry .store-entry-copy strong { font-size: 28px; }
#tab-shop .store-card-entry .store-entry-copy small { font-size: 12px; margin-top: 8px; }
#tab-shop .store-directory .store-service-entry { min-height: 120px; padding: 14px; }
#tab-shop .store-directory .store-service-entry strong { font-size: 16px; }
#tab-shop .store-directory .store-service-entry small { font-size: 11px; }
#tab-shop .store-directory .store-exchange-entry { min-height: 60px; }
.store-theme-entry { position: relative; isolation: isolate; overflow: hidden; min-height: 170px; padding: 20px; border: 0; border-radius: 16px; background: #171a1e; text-align: left; color: #f2f4f7; cursor: pointer; }
.store-theme-entry > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.store-theme-entry::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#101316f5 5%,#101316cc 45%,#10131620 100%); }
.store-theme-entry strong, .store-theme-entry small, .store-theme-entry b { display: block; }
.store-theme-entry strong { font-size: 24px; letter-spacing: -.025em; }
.store-theme-entry small { max-width: 180px; margin-top: 8px; font-size: 12px; line-height: 1.5; color: #bcc4cc; }
.store-theme-entry b { margin-top: 16px; font-size: 12px; color: #f5c070; }
.store-theme-entry b span { margin-left: 8px; }
#tab-shop .store-catalog-title { display: none; }
#tab-shop .shop-jumpbar { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 4px; margin: 0; background: var(--bg-card); border: 0; border-radius: 12px; }
#tab-shop .shop-jumpbar button { min-height: 40px; font-size: 12px; }
#tab-shop .shop-jumpbar button.is-active { color: var(--accent-hi); background: var(--bg-card-2); }
#tab-shop .shop-feature { display: flex; flex-direction: column; padding: 0; gap: 0; overflow: hidden; background: var(--bg-card); border-radius: 16px; }
#tab-shop .shop-feature-media { position: relative; width: 100%; height: 185px; }
#tab-shop .shop-feature-media::after { height: 185px; background: linear-gradient(0deg,#171a1e 0%,transparent 70%); }
#tab-shop .shop-feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
#tab-shop .shop-feature-copy { position: static; padding: 0 18px 18px; color: var(--text); }
#tab-shop .shop-feature-copy h2 { color: var(--text); font-size: 24px; }
#tab-shop .shop-rate { display: flex; gap: 7px; margin-top: 8px; color: var(--text-sub); font-size: 12px; }
#tab-shop .shop-rate b, #tab-shop .shop-rate strong { color: var(--accent-hi); font-size: 13px; }
#tab-shop .spin-pack-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 0 12px 12px; gap: 8px; }
#tab-shop .spin-pack { min-height: 82px; padding: 14px 5px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-card-2); }
#tab-shop .spin-pack.is-featured { border-color: var(--accent); background: var(--accent-dim); }
#tab-shop .spin-pack span { font-size: 14px; font-weight: 650; }
#tab-shop .spin-pack b { font-size: 12px; }
#tab-shop .spin-pack:disabled { opacity: .55; }
#tab-shop .shop-inline-status:not(:empty) { padding: 0 16px 14px; }
#tab-shop .elite-stage { position: relative; display: flex; flex-direction: column; gap: 0; padding: 0 !important; background: var(--bg-card) !important; overflow: hidden; }
#tab-shop .elite-stage-art { position: static !important; width: 100% !important; height: 190px !important; object-fit: cover; object-position: center 38%; border-radius: 0; opacity: 1 !important; }
#tab-shop .elite-stage-top { display: block; padding: 18px 18px 0; }
#tab-shop .elite-title { font-size: 23px; color: var(--text); }
#tab-shop .elite-sub { font-size: 12px; color: var(--text-sub); margin-top: 7px; }
#tab-shop .elite-cost-chip { display: inline-block; margin-top: 12px; padding: 0; background: none; border: 0; color: var(--accent-hi); font-size: 13px; }
#tab-shop .elite-details { margin: 0 18px; }
#tab-shop .elite-details summary { min-height: 44px; }
#tab-shop .elite-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 18px 18px; }
#tab-shop .elite-btn { min-height: 48px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-card-2); color: var(--text); box-shadow: none; }
#tab-shop .elite-btn-pack { background: #f5c070; color: #23180d; border-color: transparent; }
#tab-shop .elite-save { color: inherit; }
#tab-shop .shop-section-head { margin-top: 12px; }
#tab-shop .shop-pack { display: grid; grid-template-columns: auto 1fr; align-content: center; gap: 4px 8px; min-height: 106px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; }
#tab-shop .shop-pack-amt { grid-row: 1/3; align-self: center; font-size: 34px; color: var(--accent-hi); }
#tab-shop .shop-pack-name { align-self: end; text-align: left; font-size: 13px; color: var(--text); }
#tab-shop .shop-pack-price { margin: 0; text-align: left; font-size: 11px; }
#tab-shop .shop-theme-showcase { display: flex; justify-content: space-between; align-items: center; height: auto; min-height: 0; padding: 0; margin: 0; background: none; overflow: visible; }
#tab-shop .shop-theme-showcase > img, #tab-shop .shop-theme-showcase::after, #tab-shop .shop-theme-showcase::before { display: none; }
#tab-shop .shop-theme-showcase > div { position: static; padding: 0; transform: none; }
#tab-shop .shop-theme-showcase strong { font: 650 24px/1.15 var(--font-body); color: var(--text); }
#tab-shop .shop-theme-showcase span { color: var(--text-sub); font-size: 12px; margin-top: 6px; }
#tab-shop .shop-theme-tabs { display: flex; gap: 20px; padding: 0; border: 0; background: none; }
#tab-shop .shop-theme-tabs button { min-height: 44px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--text-sub); font-size: 13px; }
#tab-shop .shop-theme-tabs button.active { color: var(--accent-hi); }
#tab-shop .theme-hub-intro { display: flex; margin: 0 0 2px; }
#tab-shop .theme-hub-intro h3 { font: 550 14px/1.2 var(--font-body); color: var(--text-sub); margin: 0; }
#tab-shop .theme-hub-intro strong { font-size: 12px; font-weight: 400; }
#tab-shop .theme-hub-controls { padding: 0; border: 0; background: none; gap: 10px; }
#tab-shop .theme-hub-search { gap: 6px; font-size: 11px; }
#tab-shop .theme-hub-search input { min-height: 46px; border-radius: 11px; background: var(--bg-card); font-size: 14px; font-weight: 400; }
#tab-shop .theme-hub-control-row { grid-template-columns: minmax(0,1fr) 132px; gap: 8px; }
#tab-shop .theme-hub-segments { padding: 3px; border-radius: 10px; background: var(--bg-card); }
#tab-shop .theme-hub-segment { min-height: 38px; font-size: 11px; font-weight: 500; }
#tab-shop .theme-hub-segment.is-selected { background: var(--bg-card-2); color: var(--accent-hi); }
#tab-shop .theme-hub-sort { display: block; }
#tab-shop .theme-hub-sort > span { display: none; }
#tab-shop .theme-hub-sort select { height: 44px; font-size: 11px; font-weight: 400; border-radius: 10px; background: var(--bg-card); }
#tab-shop .theme-hub-sort select { width: 100%; }
#tab-shop .shop-theme-tabs[hidden] { display: none !important; }
.shop-creators-link { flex: none; min-height: 44px; padding: 0 0 0 8px; border: 0; background: none; color: var(--accent-hi); font: 500 12px var(--font-body); cursor: pointer; }
#tab-shop .shop-theme-showcase .shop-creators-link span { display: inline; font-size: 13px; color: inherit; }
#tab-shop .theme-hub-search-row { display: grid; grid-template-columns: minmax(0,1fr) 46px; gap: 8px; }
#tab-shop .theme-hub-filter-toggle { display: grid; place-items: center; width: 46px; height: 46px; padding: 10px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-card); color: var(--text-sub); }
#tab-shop .theme-hub-filter-toggle[aria-expanded="true"] { color: var(--accent-hi); border-color: var(--accent); }
.theme-hub-filter-toggle svg { width: 20px; height: 20px; fill: var(--bg-card); stroke: currentColor; stroke-width: 1.6; }
#tab-shop #theme-hub-filter-options[hidden] { display: none !important; }
#tab-shop .theme-hub-state { align-items: center; border: 0; border-radius: 14px; padding: 28px 20px; background: var(--bg-card); text-align: center; }
#tab-shop .theme-hub-state-mark { display: none; }
#tab-shop .theme-hub-state h3 { font-size: 19px; margin: 0 0 10px; }
#tab-shop .theme-hub-state p { font-size: 13px; line-height: 1.5; max-width: 280px; margin: 0 auto 18px; }
#tab-shop .theme-hub-retry { min-height: 44px; padding: 10px 18px; background: var(--bg-card-2); color: var(--accent-hi); border: 0; border-radius: 10px; font-size: 13px; }
#tab-shop .elite-stage::before, #tab-shop .elite-stage::after { display: none; }
#tab-shop .elite-stage-art { filter: none; }
#tab-shop .theme-hub-scope { gap: 8px; }
#tab-shop .theme-hub-scope-btn { min-height: 40px; padding: 0 10px; border: 0; font-size: 12px; font-weight: 500; }
#tab-shop .theme-hub-scope-btn.is-selected { color: var(--accent-hi); background: var(--accent-dim); }
#tab-shop .theme-hub-grid { gap: 12px; }
#tab-shop .theme-hub-card { min-height: 0; background: var(--bg-card); border: 0; border-radius: 14px; box-shadow: none; }
#tab-shop .theme-hub-card.is-featured { min-height: 0; }
#tab-shop .theme-hub-shade { display: none; }
.theme-hub-preview { position: relative; display: block; flex: none; width: 100%; aspect-ratio: 1.25; padding: 0; border: 0; overflow: hidden; border-radius: 0; background: var(--bg-card-2); cursor: pointer; }
#tab-shop .theme-hub-card.is-featured .theme-hub-preview { aspect-ratio: 1.8; }
#tab-shop .theme-hub-media { display: block; }
.theme-hub-view { position: absolute; bottom: 10px; right: 10px; padding: 6px 9px; background: #121518dc; border-radius: 7px; color: #f2f4f7; font: 500 11px var(--font-body); }
.theme-hub-view > span { margin-left: 5px; }
#tab-shop .theme-hub-card-copy { position: static; padding: 13px; gap: 12px; color: var(--text); }
#tab-shop .theme-hub-card-top { gap: 6px; flex-wrap: wrap; }
#tab-shop .theme-hub-card-top h3 { color: var(--text); font: 650 16px/1.2 var(--font-body); overflow-wrap: anywhere; }
#tab-shop .theme-hub-card-top p { color: var(--text-sub); font-size: 11px; margin-top: 5px; }
#tab-shop .theme-hub-card-foot { gap: 9px; }
#tab-shop .theme-hub-sales { color: var(--text-sub); font-size: 10px; }
#tab-shop .theme-hub-action { min-height: 42px; padding: 8px; font-size: 11px; font-weight: 600; border-radius: 9px; background: var(--bg-card-2); color: var(--accent-hi); border: 0; }
#tab-shop .theme-hub-action.is-active { color: var(--text-sub); background: none; }
#tab-shop .theme-hub-current { background: var(--accent-dim); color: var(--accent-hi); font-size: 10px; }
#tab-shop .theme-upload-card { padding: 20px; background: var(--bg-card); border: 0; border-radius: 16px; }
#tab-shop .theme-upload-kicker { display: none; }
#tab-shop .theme-upload-title { font-size: 22px; margin-bottom: 18px; }
#tab-shop .theme-field-label { font-size: 12px; margin-top: 10px; color: var(--text-sub); }
#tab-shop .theme-input, #tab-shop .theme-file-picker { min-height: 46px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card-2); font-size: 14px; }
#tab-shop .theme-upload-btn { min-height: 48px; margin-top: 14px; border-radius: 11px; background: #f5c070; color: #23180d; font-size: 14px; box-shadow: none; }
#tab-shop .theme-sub-heading { font-size: 20px; }
#tab-shop button:focus-visible, .theme-preview-dialog button:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

.theme-preview-dialog { width: min(460px,calc(100% - 20px)); max-width: none; max-height: calc(100dvh - 30px); margin: auto; padding: 0; border: 0; border-radius: 20px; background: var(--bg-card,#171a1e); color: var(--text,#f2f4f7); overflow: auto; overscroll-behavior: contain; font-family: var(--font-body); }
.theme-preview-dialog::backdrop { background: #030507c9; }
.theme-preview-shell { padding: 20px; }
.theme-preview-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.theme-preview-header h2 { margin: 0; font-size: 23px; line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.theme-preview-header p { margin: 6px 0 0; color: var(--text-sub); font-size: 12px; }
.theme-preview-header button { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--bg-card-2); color: var(--text); font-size: 27px; cursor: pointer; }
.theme-preview-modes { display: flex; gap: 18px; margin: 18px 0 12px; }
.theme-preview-modes button { min-height: 40px; padding: 0; border: 0; background: none; font: 500 13px var(--font-body); color: var(--text-sub); }
.theme-preview-modes button[aria-pressed="true"] { color: var(--accent-hi); }
.theme-preview-stage { border-radius: 14px; overflow: hidden; background: var(--bg-card-2); }
.theme-preview-media { position: relative; height: 150px; background: #101215; }
.theme-preview-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.theme-preview-stage.is-art .theme-preview-media { height: min(380px,48dvh); }
.theme-preview-stage.is-art .theme-preview-media > * { object-fit: contain; }
.theme-preview-account { padding: 0 14px 14px; }
.theme-preview-identity { display: flex; align-items: center; gap: 12px; position: relative; margin-top: -20px; }
.theme-preview-avatar { display: grid; place-items: center; flex: none; width: 54px; height: 54px; overflow: hidden; border: 3px solid var(--bg-card-2); border-radius: 50%; background: var(--bg-card); color: var(--accent-hi); }
.theme-preview-avatar img { width: 100%; height: 100%; object-fit: cover; }
.theme-preview-identity strong { padding-top: 22px; font-size: 19px; line-height: 1.2; overflow-wrap: anywhere; }
.theme-preview-account p { margin: 12px 0; font-size: 12px; color: var(--text-sub); }
.theme-preview-account > div:last-child { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12px; }
.theme-preview-account > div:last-child > span:last-child { color: var(--accent-hi); }
.theme-preview-account b { margin-left: 6px; font-size: 15px; }
.theme-preview-purchase { margin-top: 20px; }
.theme-preview-price { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.theme-preview-price > span, .theme-preview-price small { color: var(--text-sub); font-size: 12px; font-weight: 400; }
.theme-preview-price strong { font-size: 20px; }
.theme-preview-balance { font-size: 12px; line-height: 1.5; color: var(--text-sub); margin: 10px 0 16px; }
.theme-preview-primary { width: 100%; min-height: 48px; padding: 12px; border: 0; border-radius: 11px; background: #f5c070; color: #23180d; font: 650 14px var(--font-body); cursor: pointer; }
.theme-preview-primary:disabled { background: var(--bg-card-2); color: var(--text-sub); cursor: default; }
.theme-preview-notice { margin: 10px 0 0; color: var(--text-sub); font-size: 12px; line-height: 1.5; }
.theme-preview-notice:empty { margin: 0; }
@media(max-width:360px) { #tab-shop .theme-hub-control-row { grid-template-columns: 1fr; } #tab-shop .theme-hub-sort select { width: 100%; } #tab-shop .theme-hub-action { font-size: 10px; padding-inline: 4px; } #tab-shop .shop-pack { gap: 4px; padding: 14px 10px; } .theme-preview-shell { padding: 16px; } }
@media(prefers-reduced-motion:no-preference) { .theme-preview-dialog[open] { animation: theme-preview-enter 180ms ease-out; } }
@keyframes theme-preview-enter { from { transform: translateY(12px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
