/* Player commerce only. Existing admin, home and game delivery styles remain scoped. */
.commerce-site{--cv-bg:#080f1b;--cv-panel:#102235;--cv-soft:#0c1b2b;--cv-line:#2b435c;--cv-ink:#edf5ff;--cv-muted:#afc0d3;--cv-accent:#63e5ef;--cv-gold:#f2c775;--cv-panel-gradient:linear-gradient(145deg,#12273a,#102133 62%,#101e30);--cv-hero-gradient:radial-gradient(ellipse at 90% 5%,#f2c7750b,transparent 65%),linear-gradient(125deg,#143044,#14283b 58%,#132235);background:radial-gradient(ellipse at 90% 0,#17344a 0,transparent 850px),linear-gradient(165deg,#0b1726,#080f1b 64%,#0a1624);color:var(--cv-ink)}
.commerce-site>main{background:transparent;color:var(--cv-ink);padding:24px 0 64px;min-height:65vh}
.commerce-site main *{box-sizing:border-box}
.commerce-site main :is(h1,h2,h3,h4){color:var(--cv-ink)}
.commerce-site main :is(a,button,input,select,summary):focus-visible{outline:3px solid var(--cv-accent);outline-offset:4px}
.commerce-site main :is(input,select,textarea){color-scheme:dark;accent-color:#63e5ef}
.commerce-site main :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--cv-soft);border-color:var(--cv-line);color:var(--cv-ink);border-radius:12px;max-width:100%;min-height:44px}
.commerce-site main input::placeholder,.commerce-site main textarea::placeholder{color:#9bb0c7;opacity:1}
.commerce-site main [hidden]{display:none!important}
.commerce-site main :is(button,a){-webkit-tap-highlight-color:transparent}
.commerce-site main :is(button[type=submit],.bp-button,.ts-button,.share-cta,.player-invoice-link,.quest-button){transition:transform .16s,box-shadow .16s}
.commerce-site main :is(button[type=submit],.bp-button,.ts-button,.share-cta,.player-invoice-link,.quest-button):hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 18px #63e5ef20}
.commerce-site main button:disabled{cursor:not-allowed;opacity:.55}
.commerce-site>main>.player-breadcrumb,.commerce-hub,.commerce-site .vault-refresh .shell,.commerce-site .history-hero,.commerce-site .history-page,.commerce-site .manual-invoice-hero,.commerce-site .manual-invoice,.commerce-site .bp-wrap,.commerce-site .ts,.commerce-site .tu-page,.commerce-site .tpd-shell,.commerce-site .share-feature,.commerce-site .topup-guide-page,.commerce-site .topup-guide-hero{width:calc(100% - 64px);max-width:1280px;margin-left:auto;margin-right:auto}
.commerce-site .player-breadcrumb{margin-top:0;margin-bottom:20px;color:var(--cv-muted);font-size:12px;flex-wrap:wrap}
.commerce-site .player-breadcrumb a{color:var(--cv-accent)}
.commerce-site .player-breadcrumb span:last-child{overflow-wrap:anywhere}
.commerce-hub{margin-bottom:24px;border:1px solid var(--cv-line);border-radius:22px;background:linear-gradient(120deg,#132b3d,#111d30);overflow:hidden}
.commerce-hub-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid var(--cv-line)}
.commerce-hub-head>div{display:flex;align-items:center;gap:12px;min-width:0}
.commerce-hub-mark{display:grid;place-items:center;width:38px;height:38px;background:#63e5ef13;color:var(--cv-accent);border:1px solid #63e5ef40;border-radius:12px;font-size:22px}
.commerce-hub-head b{display:block;font-size:11px;letter-spacing:.16em;color:var(--cv-ink)}
.commerce-hub-head small{display:block;font-size:11px;color:var(--cv-muted);margin-top:4px}
.commerce-hub-head a{color:var(--cv-muted);font-size:12px;font-weight:700;text-decoration:none;padding:8px 0}
.commerce-hub-head a:hover,.commerce-hub-head a[aria-current]{color:var(--cv-accent)}
.commerce-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;padding:10px}
.commerce-nav a{display:flex;align-items:center;gap:10px;text-decoration:none;padding:14px 12px;border:1px solid transparent;border-radius:14px;color:var(--cv-muted);min-width:0;transition:background .16s,border-color .16s,transform .16s}
.commerce-nav a:hover{background:#63e5ef0c;border-color:#63e5ef40;transform:translateY(-1px)}
.commerce-nav a[aria-current=page]{background:linear-gradient(120deg,#183e4c,#17324b);border-color:#63e5ef70;color:var(--cv-ink);box-shadow:inset 0 2px #63e5ef}
.commerce-nav b{display:block;font-size:13px;line-height:1.4}
.commerce-nav small{display:block;font-size:10px;line-height:1.6;margin-top:4px;color:var(--cv-muted)}
.commerce-nav-icon{font-size:22px;color:var(--cv-accent);flex:0 0 23px;text-align:center}
.commerce-nav a[data-vault-section=spender] .commerce-nav-icon,.commerce-nav a[data-vault-section=pass] .commerce-nav-icon{color:var(--cv-gold)}
/* Unified panels, spacing and type scale. */
.commerce-site :is(.bp-wrap,.ts,.tu-page,.tpd-shell){padding:0;margin-top:0;margin-bottom:0;min-width:0}
.commerce-site :is(.bp-wrap,.ts){--bp-bg:var(--cv-panel);--bp-fg:var(--cv-ink);--bp-muted:var(--cv-muted);--bp-border:var(--cv-line);--bp-soft:var(--cv-soft);--bp-accent:var(--cv-accent);--ts-bg:var(--cv-panel);--ts-panel:var(--cv-soft);--ts-ink:var(--cv-ink);--ts-muted:var(--cv-muted);--ts-line:var(--cv-line);--ts-accent:var(--cv-accent)}
.commerce-site .vault-refresh{background:transparent;min-height:0;padding:0;color:var(--cv-ink)}
.commerce-site .vault-refresh .wallet-strip{padding:24px;gap:24px}
.commerce-site .vault-refresh .wallet-strip>div{min-width:0}
.commerce-store-tools{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0 24px;color:var(--cv-muted);font-size:12px}
.commerce-store-tools a{color:var(--cv-accent);min-height:44px;display:inline-flex;align-items:center;text-decoration:none;font-weight:750}
.commerce-site :is(.shop-hero,.history-hero,.manual-invoice-hero,.bp-hero,.ts-hero,.tu-hero,.tpd-hero,.share-feature,.topup-guide-hero){background:linear-gradient(120deg,#143446,#15243b 60%,#1c2540);border:1px solid var(--cv-line);border-radius:24px;padding:36px;margin-top:0;margin-bottom:24px;overflow:hidden;min-width:0}
.commerce-site :is(.shop-hero,.history-hero,.manual-invoice-hero,.bp-hero,.ts-hero,.tu-hero,.tpd-hero,.share-feature,.topup-guide-hero) h1{font-size:clamp(28px,3.8vw,46px);line-height:1.15;letter-spacing:-.035em;margin:10px 0 15px;overflow-wrap:anywhere;color:var(--cv-ink)}
.commerce-site :is(.shop-hero,.history-hero,.manual-invoice-hero,.bp-hero,.ts-hero,.tu-hero,.tpd-hero,.share-feature,.topup-guide-hero) p{color:var(--cv-muted);font-size:14px;line-height:1.8;max-width:720px}
.commerce-site :is(.chapter,.bp-kicker,.ts-kicker,.tu-hero small,.tf-section-heading small,.tpd-hero small){color:var(--cv-accent);font-size:10px;font-weight:850;letter-spacing:.17em}
.commerce-site :is(.bp-panel,.ts-panel,.ts-stat,.tu-panel,.tpd-items,.tpd-status,.tpd-help,.tpd-deadline,.tpd-metrics article,.history-shortcut,.wallet-strip,.manual-invoice,.balance-journal,.player-order-card,.player-history-summary article,.topup-guide-section,.topup-guide-intro,.topup-guide-security){background:var(--cv-panel);border:1px solid var(--cv-line);border-radius:20px;color:var(--cv-ink)}
.commerce-site :is(.bp-panel,.ts-panel,.tu-panel){padding:26px}
.commerce-site :is(.bp-panel,.ts-panel,.tu-panel,.tpd-status,.player-order-card){box-shadow:0 8px 24px #0000000b}
.commerce-site :is(.bp-chip,.ts-pill,.bp-note,.ts-empty,.tu-alert,.tpd-alert,.store-alert){color:var(--cv-ink);background:var(--cv-soft);border-color:var(--cv-line);line-height:1.7}
.commerce-site :is(.bp-chip,.ts-pill){border-radius:999px;font-size:11px}
.commerce-site :is(.bp-empty,.ts-empty){border:1px dashed var(--cv-line);border-radius:15px;padding:26px;margin:16px 0;color:var(--cv-muted)}
.commerce-site .bp-emblem{background:linear-gradient(145deg,#25384b,#3e3026);box-shadow:none;color:var(--cv-gold);border-color:#f2c77555}
.commerce-site .bp-tier{background:var(--cv-soft);border-color:var(--cv-line)}
.commerce-site .bp-tier:has(input:checked){background:#143a43;border-color:var(--cv-accent)}
.commerce-site .bp-tier.gold:has(input:checked){background:#343123;border-color:var(--cv-gold)}
.commerce-site .bp-tier .bp-kicker{color:var(--cv-gold)}
.commerce-site .bp-tier.owned{opacity:.65;background:var(--cv-soft)}
.commerce-site .bp-button,.commerce-site .ts-button,.commerce-site .ts form button,.commerce-site .share-cta{background:linear-gradient(120deg,#64e4eb,#9feee2);color:#082633!important;border:1px solid transparent;border-radius:12px;font-weight:850;min-height:46px}
.commerce-site .bp-button.secondary,.commerce-site .ts-button:nth-child(2){background:var(--cv-soft);color:var(--cv-ink)!important;border-color:var(--cv-line)}
.commerce-site .ts-rank{border-color:var(--cv-line);background:transparent;gap:14px;padding:16px 0}
.commerce-site .ts-place{background:#63e5ef13;color:var(--cv-accent);border-color:#63e5ef40}
.commerce-site .ts-rank[data-podium]{background:#f2c77509;border:1px solid #f2c77535;border-radius:14px;margin:10px 0;padding:16px}
.commerce-site .ts-mine{background:#63e5ef0c;outline-color:#63e5ef55}
.commerce-site .ts-total{color:var(--cv-ink)}
.commerce-site .ts :is(table,th,td){border-color:var(--cv-line);color:var(--cv-ink);background:transparent}
.commerce-site .ts td a,.commerce-site .ts li b{color:var(--cv-accent)}
.commerce-site .ts-period-panel{align-items:center;gap:24px}
.commerce-site .ts form label{color:var(--cv-muted);font-size:12px}
.commerce-site .ts-panel ol{line-height:1.9;padding-left:20px;font-size:13px;color:var(--cv-muted)}
.commerce-site .ts-panel ol li+li{margin-top:8px}
.commerce-site .ts-panel ol b{color:var(--cv-ink)}
.commerce-site .history-page{margin-top:0;margin-bottom:0}
.commerce-site .history-hero{padding:36px!important}
.commerce-site .player-history-summary{gap:12px}
.commerce-site .player-history-summary article{padding:22px 18px;border-top:2px solid #63e5ef70}
.commerce-site .player-history-summary article:nth-child(4){border-top-color:var(--cv-gold)}
.commerce-site .player-history-summary strong{font-size:clamp(20px,2vw,27px);overflow-wrap:anywhere}
.commerce-site .player-history-summary :is(small,span){color:var(--cv-muted)}
.commerce-site :is(.player-history-actions a,.journal-link,.player-invoice-link,.back-store,.tpd-back a,.tu-hero a,.topup-guide-text-link){color:var(--cv-accent)}
.commerce-site .player-order-card>summary{background:transparent;padding:20px;gap:16px;list-style:none}
.commerce-site .player-order-card>summary::-webkit-details-marker{display:none}
.commerce-site .player-order-card:hover,.commerce-site .player-order-card[open]{border-color:#63e5ef65}
.commerce-site .player-order-detail{background:var(--cv-soft);border-top:1px solid var(--cv-line);border-radius:0 0 20px 20px}
.commerce-site .balance-journal{padding:24px}
.commerce-site .journal-entry,.commerce-site .journal-trail{background:var(--cv-soft);border-color:var(--cv-line)}
.commerce-site :is(.history-empty,.journal-heading p,.journal-description time,.journal-trail span,.player-order-title small,.player-order-detail dt){color:var(--cv-muted)}
.commerce-site .manual-invoice{padding:30px;margin-top:0;margin-bottom:0;min-width:0}
.commerce-site .manual-invoice-hero h1{font-size:clamp(23px,3vw,38px)}
.commerce-site :is(.invoice-grid,.invoice-status,.player-item-detail){border-color:var(--cv-line)}
.commerce-site :is(.invoice-grid small,.invoice-status>span){color:var(--cv-muted)}
.commerce-site .invoice-grid b{color:var(--cv-ink);overflow-wrap:anywhere}
.commerce-site .transfer-box{background:var(--cv-soft);border:1px solid var(--cv-line);border-radius:18px;color:var(--cv-ink);padding:28px;overflow:hidden}
.commerce-site .transfer-box :is(p,h3){color:var(--cv-muted)}
.commerce-site .transfer-box :is(strong,b,code){color:var(--cv-ink)}
.commerce-site .transfer-box code{background:var(--cv-panel);border:1px solid var(--cv-line);color:var(--cv-accent)}
.commerce-site .transfer-total{border-color:var(--cv-line);background:#63e5ef09;border-radius:14px;padding:20px}
.commerce-site .transfer-total strong{color:var(--cv-accent)}
.commerce-site .transfer-box>div[style]{background:#143140!important;color:var(--cv-ink)!important;border-color:var(--cv-line)!important}
.commerce-site .transfer-box>div[style] :is(strong,span){color:var(--cv-ink)!important}
.commerce-site .back-store{display:inline-flex;align-items:center;min-height:44px;margin-top:20px;font-weight:750;text-decoration:none}
.commerce-site .commerce-confirm{width:min(440px,calc(100% - 32px));padding:28px;background:var(--cv-panel);border:1px solid var(--cv-line);border-radius:22px;color:var(--cv-ink);max-height:calc(100dvh - 40px);overflow:auto}
.commerce-confirm::backdrop{background:#030a16c9}
.commerce-confirm p{color:var(--cv-muted);line-height:1.8;font-size:14px}
.commerce-confirm-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.commerce-confirm-actions button{flex:1;padding:12px 16px;border:1px solid var(--cv-line);border-radius:12px;background:var(--cv-soft);color:var(--cv-ink);font-weight:800;cursor:pointer;min-height:46px}
.commerce-confirm-actions button[type=submit]{background:var(--cv-accent);color:#082633}
.commerce-site .tu-page,.commerce-site .tpd-shell{--ink:var(--cv-ink);--muted:var(--cv-muted);--line:var(--cv-line);--tu-bg:var(--cv-panel);--tu-text:var(--cv-ink);--tu-muted:var(--cv-muted);--tu-border:var(--cv-line);--studio-ink:var(--cv-ink);--studio-blue:var(--cv-accent)}
.commerce-site .tu-page :is(p,small),.commerce-site .tpd-shell :is(p,dt,small){color:var(--cv-muted)}
.commerce-site .tu-panel :is(h2,h3,strong,b,summary),.commerce-site .tpd-shell :is(b,strong,dd){color:var(--cv-ink)}
.commerce-site .tf-steps,.commerce-site .tf-steps li,.commerce-site .tf-hero-tags span{background:var(--cv-soft);border-color:var(--cv-line);color:var(--cv-muted)}
.commerce-site .tf-steps li[aria-current]{color:var(--cv-accent);border-color:#63e5ef55}
.commerce-site :is(.tu-total,.tu-facts,.tu-row,.tf-rate-top,.tpd-item-grid article){background:var(--cv-soft);border-color:var(--cv-line);color:var(--cv-ink)}
.commerce-site .tu-row{border-radius:12px;padding:16px;margin-top:10px;text-decoration:none}
.commerce-site :is(.tf-guide,.tf-picker-item,.tf-picker-notice,.tf-picker-total){background:var(--cv-soft);border-color:var(--cv-line);color:var(--cv-ink)}
.commerce-site .tf-guide :is(small,p),.commerce-site .tf-picker-label small{color:var(--cv-muted)}
.commerce-site .tf-guide a{color:var(--cv-accent)}
.commerce-site .tf-guide nav a{background:var(--cv-panel);border-color:var(--cv-line)}
.commerce-site .tf-guide nav a[aria-current]{background:#17404d;color:var(--cv-ink);border-color:var(--cv-accent)}
.commerce-site .tf-picker-category legend,.commerce-site .tf-picker-label b{color:var(--cv-ink)}
.commerce-site .tf-picker-item:has(select:not(:disabled):valid){border-color:var(--cv-line)}
.commerce-site .tf-picker-item.is-selected{background:#133d47;border-color:var(--cv-accent)}
.commerce-site .tf-picker-item{transition:border-color .15s,box-shadow .15s}
/* The studio's previous skin uses !important on these two backgrounds. */
.commerce-site .tf-studio .tf-picker-item{background:var(--cv-soft)!important}
.commerce-site .tf-studio .tf-picker-item.is-selected{background:#133d47!important;border-color:var(--cv-accent)!important}
.commerce-site .tf-picker-actions [data-pick-clear]{background:var(--cv-soft);border-color:var(--cv-line);color:var(--cv-ink)!important}
.commerce-site .tpd-steps{color:var(--cv-muted);gap:12px}
.commerce-site .tpd-steps li.active i,.commerce-site .tpd-steps li.done i{background:var(--cv-accent);color:#082633}
.commerce-site .tpd-back{gap:12px;flex-wrap:wrap;line-height:1.7}
.commerce-site .tpd-orb{background:#63e5ef18;color:var(--cv-accent);border-color:#63e5ef60}
.commerce-site .tpd-state{color:var(--cv-accent);background:var(--cv-soft);border-color:var(--cv-line)}
.commerce-site .tpd-items summary{color:var(--cv-ink)}
/* Pair the studio's old light surfaces with the commerce palette at equal specificity. */
.commerce-site .tf-studio .tu-panel{border-color:var(--cv-line)}
.commerce-site .tf-studio .tu-rate,.commerce-site .tf-studio .tu-rate:last-child{background:var(--cv-panel);border-top-color:#63e5ef70}
.commerce-site .tf-studio .tu-rate:last-child{border-top-color:var(--cv-gold)}
.commerce-site .tf-studio .tu-rate .tu-total{background:transparent}
.commerce-site .tf-studio .tu-rate .tu-total strong{color:var(--cv-accent)}
.commerce-site .tf-studio .tu-rate:last-child .tu-total strong{color:var(--cv-gold)}
.commerce-site .tf-studio .tu-rate details{border-color:var(--cv-line)}
.commerce-site .tf-studio .tu-rate summary{color:var(--cv-ink)}
.commerce-site .tf-studio .tf-rate-top{background:transparent}
.commerce-site .tf-studio .tf-rate-top small,.commerce-site .tf-section-heading>span{color:var(--cv-muted)}
.commerce-site .tf-studio .tf-rate-top>span{background:#63e5ef18;color:var(--cv-accent)}
.commerce-site .tf-studio .tf-steps li,.commerce-site .tf-studio .tf-picker-summary,.commerce-site .tf-studio .tu-facts>div{background:var(--cv-soft);border-color:var(--cv-line);color:var(--cv-ink)}
.commerce-site .tf-studio .tf-steps li[aria-current]{background:#143a43;border-color:var(--cv-accent);color:var(--cv-accent)}
.commerce-site .tf-steps li>span{background:var(--cv-panel);color:var(--cv-muted)}
.commerce-site .tf-steps li[aria-current]>span{background:var(--cv-accent);color:#082633}
.commerce-site .tf-studio [data-upgrade-preview]{background:var(--cv-panel);border-color:#63e5ef70}
.commerce-site .tf-studio .tu-row:hover,.commerce-site .tf-studio .tu-row:focus-visible{background:#153448}
.commerce-site .tu-total strong,.commerce-site .tf-picker-summary strong{color:var(--cv-accent)}
.commerce-site .tu-badge{background:#63e5ef13;color:var(--cv-ink);border-color:var(--cv-line)}
.commerce-site .tu-page button{background:linear-gradient(120deg,#64e4eb,#9feee2);color:#082633!important;min-height:44px}
.commerce-site .tf-set,.commerce-site .tf-composition>span{background:var(--cv-panel);color:var(--cv-ink);border-color:var(--cv-line)}
.commerce-site .tf-composition b{color:var(--cv-accent)}
.commerce-site .tf-guide .tf-upgrade-link{background:linear-gradient(120deg,#64e4eb,#9feee2);color:#082633}
/* Shared wallet receipts occur in invoices, history, and Transformation details. */
.commerce-site .wallet-proof{background:var(--cv-soft);border-color:var(--cv-line);color:var(--cv-ink)}
.commerce-site .wallet-proof :is(b,span b){color:var(--cv-ink)}
.commerce-site .wallet-proof :is(span,small),.commerce-site .wallet-proof-empty{color:var(--cv-muted)}
.commerce-site .wallet-proof i{color:var(--cv-accent)}
.commerce-site .wallet-proof.debit header strong{color:#ff9eaf}
.commerce-site .wallet-proof.credit header strong{color:#79e5b9}
.commerce-site .tpd-steps{background:var(--cv-panel);border-color:var(--cv-line)}
.commerce-site .tpd-steps li{color:var(--cv-muted)}
.commerce-site .tpd-steps li.active{color:var(--cv-accent)}
.commerce-site .tpd-steps li.done{color:#79e5b9}
.commerce-site .tpd-steps li:not(:last-child):after{background:var(--cv-line)}
.commerce-site .tpd-steps i{background:var(--cv-soft);color:var(--cv-muted)}
.commerce-site .tpd-steps li.active i{box-shadow:0 0 0 5px #63e5ef18}
.commerce-site .tpd-item-grid article>span{background:#63e5ef18;color:var(--cv-accent)}
.commerce-site .tpd-item-grid article>em{background:#19354a;color:var(--cv-muted)}
.commerce-site .tpd-item-grid article>em.state-delivered{background:#133c2e;color:#79e5b9}
.commerce-site .tpd-flash{background:#133c2e;color:#c3f6df;border:1px solid #397c62}
.commerce-site .tpd-alert{background:#351923;border-color:#874558;color:#ffbac7}
.commerce-site .tpd-help a{background:linear-gradient(120deg,#64e4eb,#9feee2);color:#082633}
.commerce-site .tpd-back>span{color:var(--cv-muted);font-size:12px}
/* Legacy QRIS uses an important white background; keep only the QR itself white. */
.commerce-site .qris-payment-box{background:var(--cv-soft)!important;border:1px solid var(--cv-line);border-radius:18px;color:var(--cv-ink)}
.commerce-site .qris-payment-box :is(p,small),.commerce-site .transfer-total :is(span,small){color:var(--cv-muted)}
.commerce-site .qris-payment-box :is(h2,b){color:var(--cv-ink)}
/* These two declarations also counter the legacy QR readability patch's !important. */
.commerce-site .qris-payment-box h2{color:var(--cv-ink)!important}
.commerce-site .qris-payment-box p{color:var(--cv-muted)!important}
.commerce-site .qris-payment-box .transfer-total strong{color:var(--cv-accent)}
.commerce-site .bp-panel :is(b,dd,.bp-price,.bp-history strong){color:var(--cv-ink)}
.commerce-site .bp-tier.owned{opacity:1;border-style:dashed}
.commerce-site .bp-tier.owned .bp-check{color:var(--cv-muted)}
.commerce-site .bp-panel :is(.bp-caption,.bp-audit time,.bp-audit small){color:var(--cv-muted)}
.commerce-site .bp-check{color:var(--cv-accent)}
.commerce-site .player-order-detail :is(.player-item-detail small,.player-delivery-note small,.player-order-moves>small){color:var(--cv-muted)}
.commerce-site .player-order-detail :is(.player-item-detail b,dd),.commerce-site .journal-trail b{color:var(--cv-ink)}
.commerce-site .player-history-filter a{color:var(--cv-ink)}
.commerce-site .history-modern .player-history-filter button{background:linear-gradient(120deg,#64e4eb,#9feee2);color:#082633;min-height:44px}
.commerce-site .player-history-actions span{color:var(--cv-muted)}
.commerce-site .journal-count{color:var(--cv-muted);background:var(--cv-soft);border-color:var(--cv-line)}
.commerce-site .history-modern .history-status{line-height:1.5}
.commerce-site .history-modern .player-order-card>summary>.history-status{font-size:12px;line-height:1.5}
.commerce-site .history-modern .history-status:is(.failed,.cancelled,.expired,.rejected){color:#ffbac7}
.commerce-site .player-refund-proof time{color:#adcfc0}
.commerce-site .player-failure{background:#351923;border-color:#874558;color:#ffbac7}
.commerce-site .player-failure p{color:#efbbc4}
.commerce-site .share-feature>div>a:not(.share-cta){color:var(--cv-accent);display:inline-block;padding:12px;margin-top:10px}
.commerce-site .share-feature img{border-radius:16px;max-width:100%;border:1px solid var(--cv-line)}
.commerce-site .topup-guide-hero>.shell{width:100%;max-width:none;padding:0;margin:0}
.commerce-site .topup-guide-hero em{color:var(--cv-accent)}
.commerce-site .topup-guide-page{padding:0;margin-top:0;margin-bottom:0}
.commerce-site .topup-guide-page :is(p,li span){color:var(--cv-muted)}
.commerce-site :is(.topup-guide-nav,.guide-callout,.guide-status-grid article){background:var(--cv-soft);border-color:var(--cv-line);color:var(--cv-ink)}
.commerce-site .topup-guide-nav a{color:var(--cv-muted)}
.commerce-site .guide-steps li b{color:var(--cv-ink)}
.commerce-site .guide-callout b,.commerce-site .guide-status-grid article b{color:var(--cv-ink)}
.commerce-site .guide-callout span,.commerce-site .topup-guide-security li{color:var(--cv-muted)}
.commerce-site .guide-callout.info{border-left-color:var(--cv-accent)}
.commerce-site .guide-callout.warning{border-left-color:var(--cv-gold)}
.commerce-site .guide-callout.success{border-left-color:#72d6ad}
.commerce-site .guide-steps em{color:var(--cv-accent)}
.commerce-site .guide-steps li{background:var(--cv-soft);border-color:var(--cv-line);color:var(--cv-muted)}
.commerce-site .guide-steps li:before{background:#63e5ef18;color:var(--cv-accent)}
.commerce-site .topup-guide-nav a:hover,.commerce-site .topup-guide-nav a:focus-visible{background:#153448;color:var(--cv-accent)}
.commerce-site .topup-guide-nav>span,.commerce-site .guide-section-title small{color:var(--cv-muted)}
.commerce-site .guide-section-title>span{color:var(--cv-accent)}
.commerce-site .guide-status-grid .status-wait{background:#403218;color:#f5d78c}
.commerce-site .guide-status-grid .status-ok{background:#133c2e;color:#79e5b9}
.commerce-site .guide-status-grid .status-fail{background:#351923;color:#ffbac7}
.commerce-site .fv{--fv-ink:var(--cv-ink);--fv-muted:var(--cv-muted);--fv-line:var(--cv-line);--fv-panel:var(--cv-panel);--fv-accent:var(--cv-accent)}
.commerce-site .fv-timeline time{color:var(--cv-muted)}
/* Preserve rarity accents while making their text legible on dark cards. */
.commerce-site .catalog-products .item-simple-card{--cv-rarity-ink:#b7c6d8}
.commerce-site .catalog-products .item-simple-card.rarity-magic{--cv-rarity-ink:#79e5b9}
.commerce-site .catalog-products .item-simple-card.rarity-rare{--cv-rarity-ink:#78baff}
.commerce-site .catalog-products .item-simple-card.rarity-epic{--cv-rarity-ink:#f2c775}
.commerce-site .catalog-products .item-simple-card.rarity-unique{--cv-rarity-ink:#eda0ff}
.commerce-site .catalog-products .item-simple-card.rarity-legend{--cv-rarity-ink:#ff9aa6}
.commerce-site .catalog-products .item-simple-card.rarity-hero{--cv-rarity-ink:#f2ca57}
.commerce-site .catalog-products .item-simple-card.rarity-ancient{--cv-rarity-ink:#7fdcff}
.commerce-site .catalog-products .item-simple-card .item-category-label{color:var(--cv-rarity-ink)!important;font-size:12px;letter-spacing:.025em;max-width:100%;overflow-wrap:anywhere}
.commerce-site .catalog-products .item-simple-card .item-facts>div:first-child dd{color:var(--cv-rarity-ink)!important}
.commerce-site .vault-refresh .item-detail-trigger{background:var(--cv-soft)!important;color:var(--cv-ink)!important;min-height:44px;transition:transform .18s ease,border-color .18s ease}
.commerce-site .vault-refresh .item-detail-trigger>span{color:var(--cv-accent)}
.commerce-site .vault-refresh .item-detail-trigger:hover,.commerce-site .vault-refresh .item-detail-trigger:focus-visible{background:#153448!important;color:var(--cv-ink)!important;border-color:var(--cv-accent)}
.commerce-site .vault-refresh .item-promo-badge{background:linear-gradient(135deg,#a93226,#821b39);color:#fff8e4;font-size:12px;letter-spacing:.025em}
.commerce-site .store-pagination .page-summary small{color:var(--cv-muted);font-size:12px}
.commerce-site .manual-invoice .transfer-confirmation-trigger{background:linear-gradient(120deg,#64e4eb,#9feee2);color:#082633!important;min-height:44px}
.commerce-site .manual-invoice .transfer-confirmation-trigger b{color:inherit}
.commerce-site .vault-refresh .combined-topup .combined-checkout .invoice-create{background:linear-gradient(120deg,#64e4eb,#9feee2);color:#082633;min-height:56px}
.commerce-site .vault-refresh .combined-checkout .invoice-create span{color:inherit}
/* No background-scroll fights; cart stays usable with the phone keyboard. */
.commerce-site .ui-confirm{background:#030a16c9;backdrop-filter:none}
.commerce-site .ui-confirm-card{display:flex;flex-direction:column;width:min(560px,100%);max-height:calc(100dvh - 40px);overflow:hidden;background:var(--cv-panel);color:var(--cv-ink);border:1px solid var(--cv-line);border-radius:22px}
.commerce-site .ui-confirm-card p{overflow:auto;min-height:0;overflow-wrap:anywhere;overscroll-behavior:contain;font-size:14px;line-height:1.7}
.commerce-site .ui-confirm-card div{flex-shrink:0}
.commerce-site .ui-confirm-card button{min-height:44px;background:var(--cv-soft);color:var(--cv-ink);border:1px solid var(--cv-line)}
.commerce-site .ui-confirm-card button:last-child{background:var(--cv-accent);color:#082633;border-color:var(--cv-accent)}
.commerce-site .ui-notice{background:var(--cv-panel);color:var(--cv-ink);border-color:var(--cv-line)}
.commerce-site .ui-notice.error{border-color:#cf647a}
.commerce-site .ui-notice button{color:var(--cv-ink);min-height:40px}
.commerce-site .ui-notice p{overflow-wrap:anywhere}
@media(max-width:700px){.commerce-site .ui-notifications{bottom:calc(86px + env(safe-area-inset-bottom));max-height:calc(100dvh - 130px);overflow:auto}}
.commerce-site .cart-modal{padding:20px!important;z-index:2000!important;background:#030a16c9!important;backdrop-filter:none}
.commerce-site .vault-cart{width:min(560px,100%);max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain;background:var(--cv-panel);color:var(--cv-ink);border:1px solid var(--cv-line);border-radius:22px}
.commerce-site .vault-cart [data-cart-lines]{max-height:35dvh;overflow:auto;overscroll-behavior:contain}
.commerce-site .vault-cart [data-cart-lines]>div{gap:12px;min-width:0}
.commerce-site .vault-cart [data-cart-lines] b{overflow-wrap:anywhere;font-size:13px}
.commerce-site .vault-cart [data-cart-lines] b{white-space:normal;text-overflow:clip;overflow:visible;line-height:1.6}
.commerce-site .vault-cart .cart-total{flex-wrap:wrap;gap:12px}
.commerce-site .vault-cart [data-cart-lines] button{flex-shrink:0;min-width:40px;min-height:40px;border-radius:10px}
.commerce-site .item-detail-dialog{max-height:calc(100dvh - 32px);max-width:calc(100% - 24px);overscroll-behavior:contain;border-radius:22px;overflow:auto}
.commerce-site .item-detail-dialog [data-item-detail-close]{min-width:44px;min-height:44px}
.commerce-site .cart-fab{bottom:calc(24px + env(safe-area-inset-bottom));right:24px}
.commerce-site .history-status,.commerce-site .bp-chip{white-space:normal}
@media(min-width:1001px){.commerce-site .ts-period-panel form{flex:0 1 440px}.commerce-site .ts-period-panel form label{flex:1;min-width:0}.commerce-site .ts-period-panel select{width:100%}}
@media(max-width:1000px){.commerce-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.commerce-site .player-history-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.commerce-site .ts-period-panel{align-items:stretch;flex-direction:column}.commerce-site .ts-period-panel form{max-width:100%;width:100%}}
@media(max-width:650px){
 .commerce-site>main{padding:18px 0 40px}
 .commerce-site>main>.player-breadcrumb,.commerce-hub,.commerce-site .vault-refresh .shell,.commerce-site .history-hero,.commerce-site .history-page,.commerce-site .manual-invoice-hero,.commerce-site .manual-invoice,.commerce-site .bp-wrap,.commerce-site .ts,.commerce-site .tu-page,.commerce-site .tpd-shell,.commerce-site .share-feature,.commerce-site .topup-guide-page,.commerce-site .topup-guide-hero{width:calc(100% - 28px)}
 .commerce-hub{border-radius:18px;margin-bottom:18px}
 .commerce-hub-head{padding:15px;gap:10px}.commerce-hub-head small{display:none}.commerce-hub-head a{font-size:10px;max-width:140px}
 .commerce-nav{padding:7px;gap:5px}.commerce-nav a{padding:12px 5px;gap:5px;flex-direction:column;text-align:center;min-height:67px;border-radius:11px}
 .commerce-nav b{font-size:11px}.commerce-nav small{display:none}.commerce-nav-icon{flex-basis:auto;font-size:20px}
 .commerce-site :is(.shop-hero,.history-hero,.manual-invoice-hero,.bp-hero,.ts-hero,.tu-hero,.tpd-hero,.share-feature,.topup-guide-hero){padding:24px!important;border-radius:19px;margin-bottom:18px}
 .commerce-site :is(.shop-hero,.history-hero,.bp-hero,.ts-hero,.tu-hero,.tpd-hero,.share-feature,.topup-guide-hero) h1{font-size:30px}
 .commerce-site :is(.shop-hero,.history-hero,.manual-invoice-hero,.bp-hero,.ts-hero,.tu-hero,.tpd-hero,.share-feature,.topup-guide-hero) p{font-size:13px}
 .commerce-site :is(.bp-panel,.ts-panel,.tu-panel,.balance-journal){padding:20px 18px;border-radius:17px}
 .commerce-site .manual-invoice{padding:22px 18px}.commerce-site .transfer-box{padding:22px 20px}
 .commerce-site .player-history-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .commerce-site .vault-refresh .wallet-strip{padding:20px;gap:18px}
 .commerce-store-tools{flex-wrap:wrap;gap:4px;padding-bottom:18px}
 .commerce-site .player-history-summary article{padding:17px 14px;border-radius:15px}.commerce-site .player-history-summary article:first-child{grid-column:1/-1}
 .commerce-site .player-order-card>summary{grid-template-columns:36px minmax(0,1fr) auto;padding:16px 14px;gap:10px}
 .commerce-site .player-order-title{grid-column:2;min-width:0}.commerce-site .player-order-title b{font-size:12px;overflow-wrap:anywhere}
 .commerce-site .player-order-amount{grid-column:2;grid-row:2;text-align:left}.commerce-site .history-status{grid-column:3;grid-row:1 / span 2;max-width:90px;font-size:10px}.commerce-site .player-order-card>summary>i{grid-column:3;text-align:right}
 .commerce-site .player-order-detail dl{grid-template-columns:repeat(2,minmax(0,1fr))}
 .commerce-site .player-item-detail{grid-template-columns:repeat(2,minmax(0,1fr))}
 .commerce-site .ts-period-panel form{display:flex;flex-direction:column;align-items:stretch;gap:12px}.commerce-site .ts-period-panel form label{width:100%}.commerce-site .ts-period-panel select{width:100%}
 .commerce-site .ts-rank{flex-wrap:wrap}.commerce-site .ts-total{margin-left:52px;font-size:15px}
 .commerce-site .ts-rank>div{min-width:0;flex:1}.commerce-site .ts-rank b{overflow-wrap:anywhere}
 .commerce-site .cart-fab{bottom:calc(82px + env(safe-area-inset-bottom));right:16px}
 .commerce-site .cart-modal{padding:12px}.commerce-site .vault-cart{max-height:calc(100dvh - 24px);padding:20px}
 .commerce-site .vault-cart [data-cart-lines]>div{display:grid;grid-template-columns:1fr auto}.commerce-site .vault-cart [data-cart-lines] span{grid-column:1}.commerce-site .vault-cart [data-cart-lines] button{grid-column:2;grid-row:1/span 2}
 .commerce-site .tf-hero-tags{flex-wrap:wrap}.commerce-site .tu-row{gap:12px;flex-wrap:wrap}
 .commerce-site .tpd-help{padding:24px;flex-direction:column;align-items:stretch}.commerce-site .tpd-metrics strong{font-size:21px;overflow-wrap:anywhere}
}
/* One continuous commerce surface, including navigation and the footer. */
.commerce-site .site-nav-refined{background:var(--cv-panel-gradient);border-color:#3b546977;box-shadow:0 12px 32px #03091233}
.commerce-site.player-site .site-nav-refined>nav>a,.commerce-site .site-nav-refined>nav>.nav-menu>summary,.commerce-site .nav-login{color:var(--cv-ink)}
.commerce-site .site-nav-refined>nav>a:hover,.commerce-site .site-nav-refined>nav>a[aria-current],.commerce-site .site-nav-refined>nav>.nav-menu>summary:hover{color:var(--cv-accent);background:#63e5ef0f}
.commerce-site.player-site .site-nav-refined>nav>a:is(:hover,:focus-visible,[aria-current=page]){color:var(--cv-accent);background:#63e5ef0f}
.commerce-site .desktop-menu-icon{background:#63e5ef16;border-color:#63e5ef28;color:var(--cv-accent)}
.commerce-site .site-nav-refined .account-menu>summary,.commerce-site .mobile-nav-menu>summary{background:var(--cv-soft);border-color:var(--cv-line);color:var(--cv-ink)}
.commerce-site.player-site .site-nav-refined .mobile-nav-menu>summary{background:var(--cv-soft);border-color:var(--cv-line);color:var(--cv-ink);box-shadow:none}
.commerce-site .site-nav-refined .account-avatar{background:linear-gradient(135deg,#16788c,#0d506b);color:white;border-color:#63e5ef38}
.commerce-site .site-nav-refined .top-up-link{background:linear-gradient(135deg,#f5db9d,#e9b964);border-color:#f2c77588;color:#37230b;box-shadow:none}
.commerce-site .site-nav-refined .nav-popover,.commerce-site .mobile-nav-popover{background:var(--cv-panel-gradient);border-color:var(--cv-line);color:var(--cv-ink);box-shadow:0 20px 48px #03091255}
.commerce-site.player-site .business-nav-menu .business-nav-popover,.commerce-site.player-site .explore-nav-menu .explore-nav-popover{background:var(--cv-panel-gradient);border-color:var(--cv-line)}
.commerce-site.player-site .site-nav-refined .mobile-nav-popover{background:var(--cv-panel-gradient);border-color:var(--cv-line);color:var(--cv-ink);box-shadow:0 20px 48px #03091255}
.commerce-site .nav-popover :is(h2,h3,b,strong),.commerce-site .mobile-nav-popover :is(h2,h3,b,strong){color:var(--cv-ink)}
.commerce-site .nav-popover :is(p,small),.commerce-site .mobile-nav-popover :is(p,small){color:var(--cv-muted)}
.commerce-site .nav-popover a,.commerce-site .mobile-navigation-links a{color:var(--cv-ink);border-color:var(--cv-line)}
.commerce-site .nav-popover a:hover,.commerce-site .mobile-navigation-links a:hover{background:#63e5ef0c;color:var(--cv-accent)}
.commerce-site .nav-popover :is(.business-nav-head,.explore-nav-head,.account-popover-head),.commerce-site .mobile-panel-heading,.commerce-site .mobile-panel-footer{background:transparent;border-color:var(--cv-line)}
.commerce-site .nav-popover :is(.business-nav-link,.explore-nav-link,.business-nav-email,.business-nav-discord),.commerce-site .mobile-navigation-links a{background:var(--cv-soft);border-color:var(--cv-line)}
.commerce-site .nav-popover :is(.business-nav-link,.explore-nav-link,.business-nav-discord):is(:hover,:focus-visible,[aria-current=page]),.commerce-site .mobile-navigation-links a[aria-current=page]{background:#183547;color:var(--cv-accent);border-color:#63e5ef50}
.commerce-site .nav-popover :is(.business-nav-link,.explore-nav-link):is(:hover,:focus-visible,[aria-current=page])>span{background:#63e5ef18;color:var(--cv-accent);border-color:#63e5ef50}
.commerce-site .account-popover-links a>i{color:var(--cv-accent);background:#63e5ef12}
.commerce-site .nav-popover :is(.business-nav-link,.explore-nav-link)>span{background:#63e5ef13;color:var(--cv-accent);border-color:#63e5ef28}
.commerce-site .site-nav-refined .nav-popover :is(.business-nav-head,.explore-nav-head)>span{background:#63e5ef13;color:var(--cv-accent);border-color:#63e5ef28}
.commerce-site .account-popover-links a{background:var(--cv-soft)}
.commerce-site.player-site .site-nav-refined .account-popover .account-popover-links>a:is(:hover,:focus-visible){background:#183547;color:var(--cv-accent)}
.commerce-site :is(.mobile-panel-heading button,.mobile-account-close,.nav-button){background:var(--cv-soft);color:var(--cv-ink);border-color:var(--cv-line)}
.commerce-site.player-site .site-nav-refined .account-popover .nav-button{background:var(--cv-soft);color:#ffb4c2;border:1px solid var(--cv-line)}
.commerce-site.player-site .site-nav-refined .account-popover .nav-button:hover{background:#3b2433;color:#ffd8df}
.commerce-site.player-site .site-nav-refined .site-language-switcher{background:var(--cv-soft);border-color:var(--cv-line);box-shadow:none}
.commerce-site.player-site .site-nav-refined .site-language-switcher button{color:var(--cv-muted)}
.commerce-site.player-site .site-nav-refined .site-language-switcher button[aria-pressed=true]{background:var(--cv-accent);color:#082633;box-shadow:none}
.commerce-site .mobile-link-icon{background:#63e5ef13;border-color:#63e5ef28;color:var(--cv-accent)}
.commerce-site .mobile-link-group a[aria-current=page] .mobile-link-icon{background:#63e5ef18;border-color:#63e5ef50;color:var(--cv-accent)}
.commerce-site.player-site .site-nav-refined .mobile-nav-popover .mobile-link-group>a:is(:hover,:focus-visible,[aria-current=page]){background:#183547;border-color:#63e5ef50;color:var(--cv-accent)}
.commerce-site.player-site .site-nav-refined .mobile-nav-popover .mobile-discord-link{background:var(--cv-soft);border-color:var(--cv-line);color:var(--cv-ink)}
.commerce-site.player-site .site-nav-refined .mobile-nav-popover .mobile-discord-link:hover{background:#183547;border-color:#63e5ef50;color:var(--cv-accent)}
.commerce-site .mobile-panel-footer :is(a,span){color:var(--cv-muted)}
.commerce-site .mobile-player-dock{background:var(--cv-panel-gradient);border-color:var(--cv-line);box-shadow:0 8px 28px #03091255}
.commerce-site .mobile-player-dock a{color:var(--cv-muted)}
.commerce-site .mobile-player-dock a[aria-current=page]{color:var(--cv-accent);background:#63e5ef15}
.commerce-site.mobile-navigation-open .cart-fab{visibility:hidden}
.commerce-site .commerce-hub,.commerce-site :is(.bp-panel,.ts-panel,.ts-stat,.tu-panel,.tpd-items,.tpd-status,.tpd-help,.tpd-deadline,.tpd-metrics article,.history-shortcut,.wallet-strip,.manual-invoice,.balance-journal,.player-order-card,.player-history-summary article,.topup-guide-section,.topup-guide-intro,.topup-guide-security){background:var(--cv-panel-gradient)}
.commerce-site :is(.shop-hero,.history-hero,.manual-invoice-hero,.bp-hero,.ts-hero,.tu-hero,.tpd-hero,.share-feature,.topup-guide-hero){background:var(--cv-hero-gradient)}
.commerce-site .tf-studio .tu-rate,.commerce-site .tf-studio .tu-rate:last-child{background:var(--cv-panel-gradient)}
.commerce-site .site-footer{background:transparent;border-top-color:#2b435c77}
.commerce-site .site-footer .legal strong{color:var(--cv-ink)}
.commerce-site .site-footer .legal span,.commerce-site .site-footer .publisher span{color:var(--cv-muted)}
@media(prefers-reduced-motion:reduce){.commerce-site main *, .commerce-site main *::before,.commerce-site main *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.commerce-site main :is(a,button):hover{transform:none!important}}
