/* Commerce follows Launcher 14's Sandhof Nacht materials and type hierarchy.
   All selectors stay inside the commerce module or its dialog content. */
.commerce-page,.commerce-dialog {
  --commerce-bg:#171613;
  --commerce-panel:#23211c;
  --commerce-raised:#302b23;
  --commerce-ink:#f1e8d6;
  --commerce-muted:#c4b69a;
  --commerce-line:#514736;
  --commerce-gold:#d9b46c;
  color:var(--commerce-ink);
}
.commerce-page { max-width:1360px; width:100%; margin:0 auto; padding:42px 44px 60px; min-width:0; }
.commerce-page *,.commerce-dialog * { box-sizing:border-box; }
.commerce-page :is(h1,h2,h3),.commerce-dialog :is(h2,h3) { font-family:SarayaDisplay,Saraya,sans-serif; font-weight:600; letter-spacing:.012em; color:var(--commerce-ink); overflow-wrap:anywhere; }
.commerce-page p,.commerce-dialog p { color:var(--commerce-muted); }
.commerce-page .eyebrow,.commerce-dialog .eyebrow { color:var(--commerce-gold); font-size:10px; letter-spacing:1.8px; line-height:1.6; }
.commerce-page>.page-heading { padding:0 0 28px; }
.commerce-page .page-heading h1 { margin:12px 0 16px; font-size:clamp(34px,3.8vw,58px); line-height:1.07; letter-spacing:-.3px; }
.commerce-page .page-heading>p:not(.eyebrow) { font-size:15px; line-height:1.8; max-width:650px; }
.commerce-page .panel,.commerce-dialog .panel { background:var(--commerce-panel); border:1px solid var(--commerce-line); box-shadow:inset 0 0 0 4px #d9b46c06; }
.commerce-page .panel h2 { font-size:28px; margin:8px 0 16px; }
.commerce-page .panel h3 { color:var(--commerce-ink); }
.commerce-page .notice,.commerce-dialog .notice { background:#302b2380; border-color:#8a7046; color:var(--commerce-muted); font-size:12px; margin:20px 0; }
.commerce-page .button,.commerce-dialog .button { min-height:46px; background:linear-gradient(#393126,#302b23); border-color:#786444; color:var(--commerce-ink); box-shadow:inset 0 0 0 2px #d9b46c0c; font-size:13px; text-align:center; }
.commerce-page .button-primary,.commerce-dialog .button-primary { color:#211c14; border-color:#e1bd79; background:linear-gradient(125deg,#d4ab61,#b28a48); box-shadow:inset 0 1px #f1e8d633,0 4px 12px #080b0d20; }
.commerce-page .button-primary:hover,.commerce-dialog .button-primary:hover { background:#dfbc7a; }
.commerce-page .button-quiet,.commerce-dialog .button-quiet { color:#e1cda8; background:#302b23; }
.commerce-page .text-link,.commerce-dialog .text-link { color:var(--commerce-gold); }
.commerce-page :is(a,button,input,select):focus-visible,.commerce-dialog :is(a,button,input,select):focus-visible { outline:3px solid var(--commerce-gold); outline-offset:4px; }
.commerce-page .badge,.commerce-dialog .badge { background:#393126; border:1px solid #786444; color:var(--commerce-gold); font-size:10px; }
.commerce-page input,.commerce-page select,.commerce-dialog input,.commerce-dialog select { background:var(--commerce-bg); border:1px solid #786444; color:var(--commerce-ink); min-height:46px; min-width:0; width:100%; }
.commerce-page input[type=checkbox] { width:18px; min-height:18px; height:18px; accent-color:var(--commerce-gold); vertical-align:middle; margin:0 9px 2px 0; }
.commerce-page input::placeholder,.commerce-dialog input::placeholder { color:#b7a88e; opacity:1; }
.commerce-page .form-field label,.commerce-dialog .form-field label { color:var(--commerce-muted); }
.commerce-page .form-field small,.commerce-dialog .form-field small { color:var(--commerce-muted); line-height:1.6; }
.commerce-page .form-error,.commerce-dialog .form-error { color:#efb3a5; border:1px solid #986358; background:#402a26; padding:12px 14px; overflow-wrap:anywhere; }
.commerce-page .form-error:empty,.commerce-dialog .form-error:empty { display:none; }
.commerce-page .button:disabled,.commerce-dialog .button:disabled { opacity:.55; cursor:wait; transform:none; }
.commerce-page .tabs { gap:6px; border-color:var(--commerce-line); padding:0 0 12px; margin:26px 0; }
.commerce-page .tab { min-height:46px; color:var(--commerce-muted); background:var(--commerce-panel); padding:12px 17px; line-height:1.4; }
.commerce-page .tab.active { color:var(--commerce-gold); background:#393126; border-color:#8a7046; box-shadow:inset 0 -2px #d9b46c66; }
.commerce-page .empty-state { border-color:#786444; background:radial-gradient(ellipse at 50% 10%,#b28a481a,transparent 70%); }
.commerce-scene { position:absolute; inset:0; width:100%; height:100%; max-width:none; object-fit:cover; object-position:center; z-index:-2; pointer-events:none; }
.commerce-section-heading { margin:0 0 24px; max-width:760px; }
.commerce-section-heading h2 { font-size:clamp(26px,2.4vw,36px); margin:8px 0 12px; }
.commerce-section-heading>p:not(.eyebrow) { font-size:14px; line-height:1.8; }
.commerce-result-count { margin:0 0 15px; font-size:12px; color:var(--commerce-muted); font-variant-numeric:tabular-nums; }

/* The storefront: an illuminated collection above a bronze item cabinet. */
.commerce-shop-hero { position:relative; isolation:isolate; display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:34px; align-items:center; border:1px solid var(--commerce-line); background:var(--commerce-panel); padding:36px; min-height:330px; }
.commerce-shop-hero:after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,#171613eb,#171613b0 65%,#23211cc9),linear-gradient(0deg,#171613bc,transparent); z-index:-1; }
.commerce-shop-hero .commerce-scene { object-position:center 43%; }
.commerce-hero-copy { min-width:0; }
.commerce-hero-copy .page-heading { padding:0; }
.commerce-hero-copy .page-heading h1 { font-size:clamp(34px,3.1vw,49px); max-width:390px; }
.commerce-hero-copy .page-heading>p:not(.eyebrow) { font-size:14px; max-width:410px; }
.commerce-hero-rule { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; padding-top:18px; margin-top:24px; border-top:1px solid #d9b46c40; color:var(--commerce-gold); font-size:11px; letter-spacing:.7px; }
.commerce-featured { min-width:0; }
.commerce-featured-heading { display:flex; justify-content:space-between; gap:12px; margin-bottom:17px; color:var(--commerce-muted); font-size:10px; }
.commerce-featured-items { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.commerce-featured-item { display:flex; flex-direction:column; align-items:center; min-width:0; padding:20px 12px 15px; background:linear-gradient(155deg,#393126eb,#23211cf5); border:1px solid #786444; box-shadow:inset 0 0 0 4px #d9b46c0c,0 6px 18px #0003; transition:transform .2s,border-color .2s; }
.commerce-featured-item:nth-child(2) { border-color:#b28a48; background:linear-gradient(145deg,#4a3b27ee,#23211cf5); }
.commerce-featured-item:hover { transform:translateY(-4px); border-color:var(--commerce-gold); }
.commerce-featured-item>div:last-child { width:100%; text-align:center; }
.commerce-featured-item .eyebrow { font-size:8px; letter-spacing:1px; }
.commerce-featured-item h2 { font-size:17px; line-height:1.3; min-height:45px; margin:8px 0 14px; }
.commerce-featured-price { display:flex; align-items:center; justify-content:space-between; gap:5px; border-top:1px solid #d9b46c2c; padding-top:12px; font-size:14px; color:var(--commerce-gold)!important; }
.commerce-featured-price>span { font-size:18px; }
.commerce-item-frame { position:relative; isolation:isolate; display:flex; align-items:center; justify-content:center; flex:none; width:104px; height:104px; margin:18px auto 23px; border:1px solid #8a7046; background:radial-gradient(ellipse at center,#56412780,#23211c 68%); box-shadow:inset 0 0 0 5px #d9b46c0e,0 6px 16px #080b0d2b; }
.commerce-item-frame:before { content:''; position:absolute; inset:6px; border:1px solid #d9b46c30; pointer-events:none; }
.commerce-item-frame:after { content:''; position:absolute; width:8px; height:8px; border:1px solid #b28a48; background:#393126; transform:rotate(45deg); bottom:-5px; left:calc(50% - 4px); }
.commerce-item-halo { position:absolute; inset:-8px; border:1px solid #d9b46c0d; z-index:-1; pointer-events:none; }
.commerce-item-frame img { width:auto; height:auto; max-width:64px; max-height:80px; object-fit:contain; image-rendering:pixelated; filter:drop-shadow(0 3px 5px #080b0d70); }
.commerce-item-frame .image-placeholder { width:60px; height:60px; min-height:0; background:transparent; border:0; }
.commerce-featured-item .commerce-item-frame { width:86px; height:86px; margin:0 auto 22px; }
.commerce-featured-item .commerce-item-frame img { max-width:52px; max-height:62px; }
.commerce-catalog { margin-top:42px; }
.commerce-filter { display:grid; grid-template-columns:minmax(150px,1.8fr) minmax(120px,1fr) minmax(100px,.7fr) auto auto; align-items:end; gap:14px; background:var(--commerce-panel); border:1px solid var(--commerce-line); padding:20px; margin:20px 0; }
.commerce-filter>.form-field { min-width:0; margin:0; }
.commerce-page .commerce-filter>.button { min-width:0; padding:10px 16px; align-self:end; margin:0; }
.commerce-products { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.commerce-product.item-card { align-items:center; padding:22px 20px 19px; border:1px solid var(--commerce-line); background:linear-gradient(145deg,#302b23,#23211c); box-shadow:inset 0 0 0 4px #d9b46c0d,0 5px 16px #080b0d17; transition:transform .2s,border-color .2s,background .2s; }
.commerce-product.item-card:hover { background:#393126; border-color:#b28a48; transform:translateY(-3px); }
.commerce-product.item-card>.badge { align-self:flex-start; margin:0; }
.commerce-product.item-card h3 { margin:0 0 24px; font-size:20px; text-align:center; line-height:1.3; }
.commerce-product-footer { display:flex; justify-content:space-between; align-items:end; gap:12px; margin-top:auto; padding-top:17px; border-top:1px solid #d9b46c26; width:100%; }
.commerce-price { display:flex; flex-direction:column; gap:3px; white-space:nowrap; }
.commerce-price small { color:var(--commerce-muted); font-size:9px; }
.commerce-price strong { font-size:23px; font-weight:600; color:var(--commerce-gold); line-height:1.2; font-variant-numeric:tabular-nums; }
.commerce-price strong span { font-size:11px; }
.commerce-product-footer>.button { font-size:10px; padding:8px 10px; min-height:44px; line-height:1.4; }
.commerce-wallet,.commerce-guest-note { display:flex; flex-wrap:wrap; gap:22px 34px; align-items:center; justify-content:space-between; margin:24px 0; }
.commerce-wallet-title h2,.commerce-guest-note h2 { font-size:23px!important; margin:6px 0 0!important; }
.commerce-guest-note p:not(.eyebrow) { font-size:12px; margin-top:7px; }
.commerce-wallet .field-row { margin:0; gap:18px; }
.commerce-wallet .text-link { font-size:12px; }
.commerce-balances { display:flex; gap:25px; flex-wrap:wrap; }
.commerce-balance { display:flex; align-items:center; gap:9px; font-variant-numeric:tabular-nums; }
.commerce-balance strong { font-size:26px; line-height:1; font-weight:600; }
.commerce-balance>span:last-child { font-size:11px; color:var(--commerce-gold); }
.commerce-coin { display:inline-flex; flex:none; align-items:center; justify-content:center; width:32px; height:32px; border:1px solid #e1bd79; background:linear-gradient(130deg,#e6c483,#a7803e); color:#302313; font-size:17px; font-weight:700; border-radius:50%; box-shadow:inset 0 0 0 3px #211c1433,0 3px 7px #080b0d44; }
.commerce-coin-mp { color:#f1e8d6; border-color:#969b9d; background:linear-gradient(130deg,#74777a,#4b5155); }

/* Item details retain the same original icon and checkout contract. */
.commerce-product-detail { grid-template-columns:minmax(0,1.35fr) minmax(280px,.85fr); gap:28px; }
.commerce-product-story.panel { padding:0; overflow:hidden; }
.commerce-product-stage { position:relative; isolation:isolate; min-height:280px; padding:48px 30px 30px; display:flex; flex-direction:column; align-items:center; justify-content:center; border-bottom:1px solid var(--commerce-line); }
.commerce-product-stage:after { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg,#23211c,#17161385); }
.commerce-item-frame-large { width:142px; height:142px; margin:0 auto 28px; }
.commerce-item-frame-large img { max-width:82px; max-height:112px; }
.commerce-product-description { padding:30px; }
.commerce-product-description p,.commerce-product-description .steps { font-size:14px; color:var(--commerce-muted); line-height:1.8; }
.commerce-product-description .steps { counter-reset:commerce-step; padding:0; list-style:none; }
.commerce-product-description .steps li { counter-increment:commerce-step; display:flex; gap:15px; align-items:baseline; }
.commerce-product-description .steps li:before { content:'0' counter(commerce-step); color:var(--commerce-gold); font-weight:600; font-size:16px; }
.commerce-detail .commerce-wallet,.commerce-detail .commerce-guest-note { margin:0 0 22px; }
.commerce-checkout h2 { font-size:24px!important; line-height:1.35; }
.commerce-checkout .commerce-unit-price { padding:17px 0; border-block:1px solid var(--commerce-line); }
.commerce-checkout form>.button { width:100%; }
.commerce-checkout #commerce-total { margin:18px 0; font-size:16px; color:var(--commerce-gold); }

/* Authentication remains a neutral world scene until the account is known. */
.commerce-auth { max-width:1440px; }
.commerce-auth-stage { position:relative; isolation:isolate; display:grid; grid-template-columns:minmax(0,1fr) minmax(310px,450px); gap:40px; align-items:center; min-height:680px; padding:38px; border:1px solid var(--commerce-line); background:var(--commerce-bg); }
.commerce-auth-stage:after { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#17161330,#17161340 46%,#171613a3),linear-gradient(0deg,#171613b0,transparent 70%); }
.commerce-auth-stage .commerce-scene { object-position:40% center; }
.commerce-auth-world { align-self:end; margin-bottom:25px; padding:28px; border-left:2px solid #b28a48; background:#171613c9; backdrop-filter:blur(2px); max-width:455px; }
.commerce-auth-world h2 { font-size:clamp(31px,3.2vw,47px); line-height:1.12; margin:15px 0; }
.commerce-auth-world>p:not(.eyebrow) { font-size:14px; line-height:1.8; }
.commerce-auth-world>.text-link { display:inline-flex; align-items:center; min-height:44px; font-size:12px; margin-top:12px; }
.commerce-sun-seal { color:var(--commerce-gold); font-size:40px; line-height:1; margin-bottom:18px; }
.commerce-auth-paper.panel { margin:0; padding:30px; background:#23211cf5; border-color:#786444; box-shadow:inset 0 0 0 5px #d9b46c09,0 18px 60px #080b0d55; }
.commerce-auth-paper .page-heading { padding:0; margin:0 0 25px; }
.commerce-auth-paper .page-heading h1 { font-size:34px; }
.commerce-auth-paper .page-heading>p:not(.eyebrow) { font-size:13px; }
.commerce-auth-paper .form-field { margin:17px 0; }
.commerce-auth-paper form>.button { width:100%; margin-top:9px; }
.commerce-auth-paper>p { font-size:12px; margin:16px 0; }
.commerce-auth-paper .notice { padding:14px 16px; font-size:11px; margin-bottom:0; }
.commerce-demo-access { border-top:1px solid var(--commerce-line); margin-top:25px; padding-top:20px; }
.commerce-demo-access>p:nth-child(2) { font-size:18px; margin:9px 0 4px; color:var(--commerce-ink); }
.commerce-demo-access code { font:inherit; color:var(--commerce-gold); }
.commerce-demo-access small { display:block; color:var(--commerce-muted); font-size:10px; line-height:1.6; }

/* Account: a courtyard identity, five character pedestals and a readable ledger. */
.commerce-account-hero { position:relative; isolation:isolate; min-height:300px; padding:36px 42px; border:1px solid var(--commerce-line); overflow:hidden; }
.commerce-account-hero:after { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#171613f0,#171613c0 45%,#17161345 90%),linear-gradient(0deg,#17161390,transparent); }
.commerce-account-hero .commerce-scene { object-position:center 44%; }
.commerce-account-intro { position:relative; z-index:1; max-width:72%; }
.commerce-account-intro h1 { margin:12px 0; font-size:clamp(38px,4.3vw,65px); line-height:1.12; }
.commerce-account-intro>p:not(.eyebrow) { font-size:15px; }
.commerce-account-model { position:absolute; right:7%; top:4px; bottom:-60px; width:250px; pointer-events:none; }
.commerce-account-model img { width:100%; height:100%; object-fit:contain; object-position:center top; filter:drop-shadow(0 12px 16px #080b0d80); }
.commerce-account-summary { display:flex; flex-wrap:wrap; gap:30px; margin-top:26px; }
.commerce-account-summary>div { display:flex; flex-direction:column; min-width:60px; gap:3px; }
.commerce-account-summary>div+div { padding-left:25px; border-left:1px solid #d9b46c45; }
.commerce-account-summary strong { font-size:25px; line-height:1.2; font-weight:600; color:var(--commerce-gold); }
.commerce-account-summary span { color:var(--commerce-muted); font-size:10px; }
.commerce-account-body { min-width:0; }
.commerce-roster-section { margin:38px 0; }
.commerce-roster-note { font-size:12px; margin:0 0 20px; }
.commerce-roster { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; margin-bottom:20px; }
.commerce-character { min-width:0; position:relative; background:linear-gradient(180deg,#302b23,#23211c); border:1px solid var(--commerce-line); box-shadow:inset 0 0 0 3px #d9b46c08; }
.commerce-character:hover { border-color:#b28a48; }
.commerce-character>button { position:relative; width:100%; height:100%; display:flex; flex-direction:column; color:var(--commerce-ink); border:0; padding:0; background:none; text-align:center; }
.commerce-character-slot { position:absolute; top:12px; left:14px; color:#a99b83; font-size:12px; z-index:1; }
.commerce-character-art { position:relative; width:100%; height:205px; padding:8px 8px 0; background:radial-gradient(ellipse at 50% 60%,#d9b46c1f,transparent 65%); }
.commerce-character-art:after { content:''; position:absolute; left:12%; right:12%; bottom:0; height:15px; border-radius:50%; border:1px solid #d9b46c35; background:#17161380; box-shadow:0 0 22px #d9b46c10; }
.commerce-character-art img { width:100%; height:100%; object-fit:contain; object-position:center bottom; position:relative; z-index:1; filter:drop-shadow(0 5px 5px #080b0d80); }
.commerce-character-copy { flex:1; width:100%; padding:21px 12px 16px; border-top:1px solid var(--commerce-line); background:linear-gradient(#302b23,#23211c); }
.commerce-character-copy .eyebrow { font-size:9px; letter-spacing:1px; }
.commerce-character-copy h3 { font-size:21px; line-height:1.2; margin:7px 0 10px; }
.commerce-character-copy p { font-size:12px; }
.commerce-character-copy p strong { color:var(--commerce-gold); font-size:17px; margin-left:4px; }
.commerce-character-copy small { display:block; color:var(--commerce-muted); font-size:10px; line-height:1.7; margin:4px 0; }
.commerce-profile-link { display:flex; justify-content:center; gap:10px; color:var(--commerce-gold); font-size:10px; margin-top:15px; line-height:1.5; }
.commerce-order-archive { margin:30px 0; }
.commerce-page .table-wrap { border:1px solid var(--commerce-line); background:var(--commerce-panel); }
.commerce-page .data-table { color:var(--commerce-ink); }
.commerce-page .data-table caption { color:var(--commerce-muted); text-align:left; font-size:11px; padding:13px 18px; border-bottom:1px solid var(--commerce-line); }
.commerce-page .data-table th { color:var(--commerce-muted); background:#302b23; border-color:var(--commerce-line); }
.commerce-page .data-table td { color:var(--commerce-ink); border-color:#51473690; }
.commerce-page .data-table tbody tr:nth-child(even) { background:#302b2355; }
.commerce-page .data-table tbody tr:hover { background:#393126; }
.commerce-page .data-table tbody th { background:transparent; }
.commerce-order-item { display:flex; align-items:center; gap:12px; min-width:190px; }
.commerce-order-item img { width:32px; height:40px; flex:none; object-fit:contain; }
.commerce-code-panel.panel { position:relative; display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); align-items:center; gap:40px; margin:28px 0; padding:32px; background:radial-gradient(ellipse at 0 100%,#b28a481c,transparent 70%),var(--commerce-panel); }
.commerce-code-copy h2 { font-size:30px; max-width:440px; }
.commerce-code-copy p { font-size:13px; line-height:1.8; }
.commerce-code-ticket { display:inline-flex; align-items:center; gap:15px; padding:12px 20px; margin-top:20px; border:1px dashed #b28a48; background:#17161388; color:var(--commerce-gold); }
.commerce-code-ticket>span { font-size:26px; }
.commerce-code-ticket strong { letter-spacing:2px; font-size:19px; font-weight:600; }
.commerce-code-ticket small { font-size:10px; color:var(--commerce-muted); }
.commerce-code-panel form>.button { width:100%; }
.commerce-settings { margin-top:28px; }
.commerce-settings>.panel { position:relative; margin:0; padding:32px; overflow:hidden; }
.commerce-panel-number { position:absolute; top:16px; right:20px; font-size:56px; line-height:1; color:#d9b46c13; pointer-events:none; }
.commerce-settings>.panel>p { max-width:540px; }
.commerce-settings form { margin-top:24px; }

/* Public podium: the same demo players, sorted by the selected metric. */
.commerce-ranking>.page-heading { text-align:center; }
.commerce-ranking>.page-heading>p { margin-inline:auto; }
.commerce-ranking>.tabs { justify-content:center; }
.commerce-podium-stage { isolation:isolate; position:relative; padding:28px 34px 0; background:var(--commerce-panel); border:1px solid var(--commerce-line); }
.commerce-podium-stage>.commerce-scene { opacity:.38; object-position:center 45%; }
.commerce-podium-stage:after { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg,#171613f5,#23211c70 70%,#171613c9); }
.commerce-podium-stage>header { text-align:center; position:relative; z-index:1; }
.commerce-podium-stage>header h2 { font-size:25px; margin:7px 0; }
.commerce-podium-stage>header>p:last-child { font-size:11px; }
.commerce-podium { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:end; gap:22px; max-width:900px; margin:22px auto 0; }
.commerce-podium-card { position:relative; display:flex; flex-direction:column; align-items:center; width:100%; min-width:0; border:0; background:none; padding:22px 0 0; color:var(--commerce-ink); }
.commerce-podium-card--1 { grid-column:2; grid-row:1; }
.commerce-podium-card--2 { grid-column:1; grid-row:1; }
.commerce-podium-card--3 { grid-column:3; grid-row:1; }
.commerce-place-seal { position:absolute; top:13px; left:12px; display:flex; justify-content:center; align-items:center; width:45px; height:45px; border:1px solid #a18a64; color:#d8cbb3; background:#23211ce6; transform:rotate(45deg); z-index:2; box-shadow:inset 0 0 0 4px #d9b46c12; }
.commerce-place-seal>span { transform:rotate(-45deg); font-size:21px; font-weight:600; }
.commerce-podium-card--1 .commerce-place-seal { width:50px; height:50px; border-color:#e1bd79; color:var(--commerce-gold); box-shadow:inset 0 0 0 4px #d9b46c1c,0 0 25px #d9b46c22; }
.commerce-podium-card--3 .commerce-place-seal { color:#d2a879; border-color:#987552; }
.commerce-podium-model { height:235px; width:100%; position:relative; background:radial-gradient(ellipse at 50% 65%,#d9b46c18,transparent 70%); }
.commerce-podium-card--1 .commerce-podium-model { height:295px; }
.commerce-podium-model img { position:relative; width:100%; height:100%; object-fit:contain; object-position:center bottom; filter:drop-shadow(0 12px 8px #0008); transition:transform .25s; }
.commerce-podium-card:hover .commerce-podium-model img { transform:translateY(-5px); }
.commerce-podium-plaque { position:relative; padding:23px 12px 19px; width:100%; min-height:170px; background:linear-gradient(#302b23f5,#23211c); border:1px solid #786444; border-bottom:0; box-shadow:inset 0 0 0 4px #d9b46c0d,0 6px 20px #080b0d44; }
.commerce-podium-plaque:before { content:''; position:absolute; top:-5px; left:calc(50% - 5px); height:9px; width:9px; transform:rotate(45deg); background:#b28a48; border:1px solid #e1bd79; }
.commerce-podium-card--1 .commerce-podium-plaque { min-height:190px; padding-top:25px; border-color:#b28a48; background:linear-gradient(#493b28,#302b23); }
.commerce-podium-plaque .eyebrow { font-size:9px; }
.commerce-podium-plaque h3 { font-size:28px; margin:7px 0 13px; }
.commerce-podium-value { display:block; font-size:28px; line-height:1.15; color:var(--commerce-gold); font-weight:600; font-variant-numeric:tabular-nums; }
.commerce-podium-metric { display:block; font-size:10px; margin-top:6px; color:var(--commerce-muted); }
.commerce-personal-rank { display:flex; flex-wrap:wrap; gap:20px; align-items:center; margin:25px 0; }
.commerce-personal-rank>img { width:56px; height:66px; object-fit:contain; border-bottom:1px solid #b28a48; }
.commerce-personal-rank>div { flex:1; min-width:140px; }
.commerce-personal-rank h2 { font-size:25px!important; margin:4px 0 8px!important; }
.commerce-personal-rank p:not(.eyebrow) { font-size:12px; }
.commerce-rank-list { margin-top:38px; }
.commerce-rank-list .commerce-filter { grid-template-columns:minmax(150px,1.6fr) minmax(120px,1fr) auto auto; }
.commerce-ranking-table .data-table th:first-child,.commerce-ranking-table .data-table td:first-child { width:80px; text-align:center; }
.commerce-ranking-table .data-table th:last-child,.commerce-ranking-table .data-table td:last-child { text-align:right; padding-right:28px; }
.commerce-rank-number { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; color:var(--commerce-muted); font-size:13px; }
.commerce-rank-medal { color:var(--commerce-gold); background:#393126; border:1px solid #8a7046; }
.commerce-player-button { display:flex; align-items:center; gap:15px; min-height:44px; background:none; border:0; color:var(--commerce-ink); padding:0; font-size:15px; text-align:left; }
.commerce-player-button:hover { color:var(--commerce-gold); }
.commerce-player-button img { width:34px; height:44px; object-fit:contain; }
.commerce-ranking-table .data-table tbody td:last-child strong { font-size:18px; font-weight:600; color:var(--commerce-gold); }

/* Dialogs use the existing accessible host and unchanged transaction forms. */
.commerce-player-profile { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:22px; margin-top:24px; }
.commerce-profile-stage { position:relative; isolation:isolate; min-height:325px; display:flex; align-items:flex-end; justify-content:center; border:1px solid var(--commerce-line); padding:12px 15px 45px; background:var(--commerce-panel); }
.commerce-profile-stage:after { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg,#171613d9,#17161360); }
.commerce-profile-stage .commerce-profile-model { width:100%; height:270px; object-fit:contain; object-position:center bottom; filter:drop-shadow(0 6px 8px #0008); }
.commerce-profile-stage .badge { position:absolute; left:50%; bottom:14px; transform:translateX(-50%); white-space:nowrap; }
.commerce-profile-details { min-width:0; padding-top:10px; }
.commerce-profile-details h3 { font-size:25px; line-height:1.25; margin:8px 0 20px; }
.commerce-stats { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:0; }
.commerce-stats>div { padding:15px 12px; border:1px solid var(--commerce-line); background:var(--commerce-panel); min-width:0; }
.commerce-stats dt { font-size:10px; color:var(--commerce-muted); line-height:1.6; }
.commerce-stats dd { color:var(--commerce-gold); font-size:22px; font-weight:600; line-height:1.3; margin:8px 0 0; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.commerce-stats .commerce-stat-rank { font-size:10px; color:var(--commerce-muted); margin-top:7px; font-weight:400; }
.commerce-purchase-summary { display:grid; grid-template-columns:110px minmax(0,1fr); gap:24px; align-items:center; margin:20px 0; padding:24px!important; }
.commerce-purchase-summary .commerce-item-frame { margin:0; }
.commerce-purchase-summary h3 { font-size:22px; margin:8px 0 15px!important; }
.commerce-purchase-summary p { font-size:12px; margin:7px 0; }
.commerce-confirm-total { border-block:1px solid var(--commerce-line); padding:12px 0; font-size:16px!important; color:var(--commerce-gold)!important; }
.commerce-purchase-dialog form>.button,.commerce-credit-dialog form>.button { width:100%; margin:8px 0 12px; }
.commerce-credit-emblem { display:flex; justify-content:center; gap:16px; padding:25px; margin:18px 0; background:radial-gradient(ellipse,#d9b46c1c,transparent 65%); border-bottom:1px solid var(--commerce-line); }
.commerce-credit-emblem .commerce-coin { width:55px; height:55px; font-size:26px; }

@media(max-width:1120px) {
  .commerce-page { padding-inline:30px; }
  .commerce-shop-hero { grid-template-columns:1fr; gap:26px; padding:30px; }
  .commerce-hero-copy .page-heading h1 { max-width:none; }
  .commerce-featured-item { display:grid; grid-template-columns:80px minmax(0,1fr); gap:14px; padding:20px 16px; }
  .commerce-featured-item .commerce-item-frame { width:68px; height:68px; margin:0; }
  .commerce-featured-item .commerce-item-frame img { max-width:44px; max-height:50px; }
  .commerce-featured-item>div:last-child { text-align:left; }
  .commerce-featured-item h2 { font-size:16px; margin:5px 0 8px; min-height:0; }
  .commerce-featured-price { padding-top:8px; }
  .commerce-products { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .commerce-filter { grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,.7fr); }
  .commerce-filter>.button { justify-self:start; }
  .commerce-auth-stage { padding:25px; gap:25px; grid-template-columns:minmax(0,1fr) minmax(300px,420px); }
  .commerce-auth-world { padding:23px; }
  .commerce-auth-paper.panel { padding:25px; }
  .commerce-roster { gap:10px; }
  .commerce-character-art { height:175px; }
  .commerce-character-copy h3 { font-size:18px; }
  .commerce-code-panel.panel { gap:28px; }
}
@media(max-width:800px) {
  .commerce-page { padding:28px 22px 45px; }
  .commerce-page .page-heading h1 { font-size:40px; }
  .commerce-featured-item { display:flex; padding:20px 12px; gap:10px; }
  .commerce-featured-item .commerce-item-frame { margin:0 auto 9px; }
  .commerce-featured-item>div:last-child { text-align:center; }
  .commerce-featured-item h2 { min-height:42px; }
  .commerce-product-detail { grid-template-columns:1fr; }
  .commerce-detail .detail-side { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
  .commerce-detail .detail-side>.panel { margin:0; }
  .commerce-wallet { padding:23px!important; }
  .commerce-wallet .field-row { flex-wrap:wrap; }
  .commerce-auth-stage { grid-template-columns:1fr; padding:25px; gap:24px; }
  .commerce-auth-world { max-width:none; margin:0; padding:20px 22px; }
  .commerce-auth-world h2 { font-size:32px; max-width:430px; }
  .commerce-sun-seal { display:none; }
  .commerce-auth-paper.panel { width:100%; }
  .commerce-roster { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
  .commerce-character-art { height:190px; }
  .commerce-code-panel.panel { grid-template-columns:1fr; gap:5px; padding:25px; }
  .commerce-code-panel form { max-width:none; }
  .commerce-settings { grid-template-columns:1fr; gap:20px; }
  .commerce-account-hero { padding:28px; }
  .commerce-account-model { right:-25px; width:225px; opacity:.85; }
  .commerce-account-summary { gap:18px; }
  .commerce-account-summary>div+div { padding-left:18px; }
  .commerce-podium-stage { padding:25px 18px 0; }
  .commerce-podium { gap:14px; }
  .commerce-podium-model { height:195px; }
  .commerce-podium-card--1 .commerce-podium-model { height:245px; }
  .commerce-podium-plaque h3 { font-size:23px; }
  .commerce-podium-value { font-size:25px; }
  .commerce-place-seal { width:35px; height:35px; left:6px; }
  .commerce-podium-card--1 .commerce-place-seal { width:40px; height:40px; }
  .commerce-place-seal>span { font-size:18px; }
  .commerce-rank-list .commerce-filter { grid-template-columns:1fr 1fr; }
}
@media(max-width:540px) {
  .commerce-page { padding:24px 16px 36px; }
  .commerce-page .page-heading h1 { font-size:35px; }
  .commerce-page .page-heading>p:not(.eyebrow) { font-size:13px; }
  .commerce-page .panel { padding:22px; }
  .commerce-page .notice { padding:13px 15px; font-size:11px; }
  .commerce-page input,.commerce-page select,.commerce-dialog input,.commerce-dialog select { font-size:16px; }
  .commerce-page .tabs { gap:6px; margin:22px 0; }
  .commerce-page .tab { flex:1 1 auto; text-align:center; font-size:11px; padding:12px 10px; }
  .commerce-shop-hero { padding:23px 20px; gap:24px; }
  .commerce-hero-copy .page-heading h1 { font-size:36px; }
  .commerce-hero-copy .page-heading>p:not(.eyebrow) { font-size:13px; }
  .commerce-hero-rule { margin-top:18px; padding-top:15px; font-size:10px; }
  .commerce-featured-items { grid-template-columns:1fr; gap:10px; }
  .commerce-featured-heading { margin-bottom:12px; }
  .commerce-featured-item { display:grid; grid-template-columns:65px minmax(0,1fr); padding:15px; gap:15px; }
  .commerce-featured-item .commerce-item-frame { margin:0; width:58px; height:58px; }
  .commerce-featured-item .commerce-item-frame img { max-width:36px; max-height:42px; }
  .commerce-featured-item>div:last-child { text-align:left; }
  .commerce-featured-item h2 { min-height:0; font-size:17px; margin:4px 0 6px; }
  .commerce-featured-price { padding:0; border:0; font-size:13px; }
  .commerce-catalog { margin-top:30px; }
  .commerce-section-heading h2 { font-size:27px; }
  .commerce-section-heading>p:not(.eyebrow) { font-size:12px; }
  .commerce-filter,.commerce-rank-list .commerce-filter { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:13px 10px; padding:16px; }
  .commerce-filter>.form-field:first-child { grid-column:1/-1; }
  .commerce-filter>.form-field { min-width:0; }
  .commerce-page .commerce-filter>.button { justify-self:stretch; padding:9px 8px; font-size:11px; line-height:1.5; }
  .commerce-rank-list .commerce-filter>.form-field:nth-child(2) { grid-column:1/-1; }
  .commerce-products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .commerce-product.item-card { padding:16px 12px; }
  .commerce-product.item-card>.badge { font-size:8px; max-width:100%; padding:3px 6px; }
  .commerce-product .commerce-item-frame { width:80px; height:80px; margin:20px auto; }
  .commerce-product .commerce-item-frame img { max-width:48px; max-height:60px; }
  .commerce-product.item-card h3 { font-size:18px; margin:0 0 17px; }
  .commerce-product-footer { flex-direction:column; gap:13px; align-items:stretch; padding-top:13px; }
  .commerce-price { flex-direction:row; justify-content:space-between; align-items:center; gap:6px; }
  .commerce-price strong { font-size:22px; }
  .commerce-price strong span { font-size:10px; }
  .commerce-price small { font-size:8px; }
  .commerce-product-footer>.button { width:100%; font-size:10px; }
  .commerce-wallet,.commerce-guest-note { gap:20px; }
  .commerce-wallet .field-row { width:100%; gap:15px; }
  .commerce-wallet .field-row>.button { width:100%; }
  .commerce-guest-note>.button { width:100%; }
  .commerce-wallet-title h2,.commerce-guest-note h2 { font-size:23px!important; }
  .commerce-balances { gap:20px; }
  .commerce-balance { gap:7px; }
  .commerce-balance strong { font-size:24px; }
  .commerce-detail .detail-side { display:flex; flex-direction:column; gap:20px; }
  .commerce-product-detail { gap:20px; }
  .commerce-product-stage { min-height:240px; padding:32px 20px 25px; }
  .commerce-product-description { padding:22px; }
  .commerce-product-description p,.commerce-product-description .steps { font-size:13px; }
  .commerce-auth { padding:16px 12px 32px; }
  .commerce-auth-stage { padding:14px; gap:20px; }
  .commerce-auth-stage .commerce-scene { object-position:33% center; }
  .commerce-auth-world { padding:21px 16px; }
  .commerce-auth-world h2 { font-size:31px; margin:10px 0; }
  .commerce-auth-world>p:not(.eyebrow) { font-size:12px; }
  .commerce-auth-world>.text-link { margin-top:6px; font-size:11px; }
  .commerce-auth-paper.panel { padding:24px 18px; }
  .commerce-auth-paper .page-heading h1 { font-size:29px; }
  .commerce-auth-paper .page-heading>p:not(.eyebrow) { font-size:12px; }
  .commerce-auth-paper .field-row>.button { width:100%; }
  .commerce-auth-paper .notice { font-size:10px; padding:12px; }
  .commerce-account-hero { min-height:280px; padding:26px 22px; }
  .commerce-account-intro { max-width:100%; }
  .commerce-account-intro h1 { font-size:40px; max-width:90%; }
  .commerce-account-intro>p:not(.eyebrow) { max-width:205px; font-size:13px; }
  .commerce-account-model { right:-55px; top:65px; bottom:-50px; width:205px; opacity:.3; }
  .commerce-account-summary { gap:14px; }
  .commerce-account-summary>div+div { padding-left:14px; }
  .commerce-account-summary strong { font-size:23px; }
  .commerce-roster { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .commerce-character-art { height:195px; }
  .commerce-character:last-child { grid-column:1/-1; }
  .commerce-character:last-child>button { display:grid; grid-template-columns:45% minmax(0,1fr); align-items:center; }
  .commerce-character:last-child .commerce-character-copy { background:none; border-top:0; padding:20px 15px; text-align:left; }
  .commerce-character:last-child .commerce-profile-link { justify-content:flex-start; }
  .commerce-character-copy { padding:18px 10px; }
  .commerce-character-copy h3 { font-size:20px; }
  .commerce-character-copy small { font-size:9px; }
  .commerce-code-panel.panel { padding:22px; }
  .commerce-code-copy h2 { font-size:29px; }
  .commerce-code-copy p { font-size:12px; }
  .commerce-code-ticket { gap:10px; padding:10px 13px; }
  .commerce-code-ticket strong { letter-spacing:1px; font-size:19px; }
  .commerce-settings>.panel { padding:24px; }
  .commerce-order-archive .table-wrap { margin-top:20px; }
  .commerce-podium-stage { padding:25px 16px 0; }
  .commerce-podium-stage>header h2 { font-size:26px; }
  .commerce-podium { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 12px; margin-top:24px; }
  .commerce-podium-card--1 { grid-column:1/-1; grid-row:1; display:grid; grid-template-columns:45% minmax(0,1fr); align-items:end; padding:15px 0 0; border:1px solid #b28a48; background:linear-gradient(125deg,#302b2366,#493b28c0); }
  .commerce-podium-card--2 { grid-column:1; grid-row:2; }
  .commerce-podium-card--3 { grid-column:2; grid-row:2; }
  .commerce-podium-card--1 .commerce-podium-model { height:235px; }
  .commerce-podium-card--1 .commerce-podium-plaque { border:0; min-height:0; padding:18px 12px 25px; box-shadow:none; background:transparent; }
  .commerce-podium-card--1 .commerce-podium-plaque:before { display:none; }
  .commerce-podium-card--1 .commerce-place-seal { top:15px; left:16px; width:33px; height:33px; }
  .commerce-podium-card--1 .commerce-podium-plaque h3 { font-size:29px; }
  .commerce-podium-model { height:180px; }
  .commerce-podium-plaque { min-height:180px; padding:21px 10px 18px; }
  .commerce-podium-plaque h3 { font-size:23px; }
  .commerce-podium-value { font-size:25px; }
  .commerce-podium-plaque .eyebrow { font-size:8px; letter-spacing:1px; }
  .commerce-podium-metric { font-size:9px; }
  .commerce-podium .commerce-profile-link { font-size:9px; gap:6px; }
  .commerce-ranking-table .data-table { font-size:11px; }
  .commerce-ranking-table .data-table caption { padding:12px; }
  .commerce-ranking-table .data-table th,.commerce-ranking-table .data-table td { padding:12px 7px; }
  .commerce-ranking-table .data-table th:first-child,.commerce-ranking-table .data-table td:first-child { width:39px; }
  .commerce-ranking-table .data-table th:last-child { white-space:normal; max-width:96px; line-height:1.5; }
  .commerce-ranking-table .data-table th:last-child,.commerce-ranking-table .data-table td:last-child { padding-right:10px; }
  .commerce-ranking-table .data-table tbody td:last-child strong { font-size:16px; }
  .commerce-player-button { gap:6px; font-size:12px; }
  .commerce-player-button img { width:24px; height:36px; }
  .commerce-rank-number { width:25px; height:28px; font-size:11px; }
  .commerce-personal-rank { gap:16px; }
  .commerce-personal-rank>.button { width:100%; }
  .commerce-player-profile { grid-template-columns:1fr; gap:20px; }
  .commerce-profile-stage { min-height:225px; padding-bottom:35px; }
  .commerce-profile-stage .commerce-profile-model { height:200px; }
  .commerce-profile-details { padding:0; }
  .commerce-profile-details h3 { font-size:24px; }
  .commerce-stats dd { font-size:24px; }
  .commerce-purchase-summary { grid-template-columns:1fr; gap:20px; padding:20px!important; }
  .commerce-purchase-summary .commerce-item-frame { margin:0 auto; }
}
@media(prefers-reduced-motion:reduce) {
  .commerce-page *,.commerce-dialog * { transition:none!important; scroll-behavior:auto!important; }
  .commerce-page .commerce-featured-item:hover,.commerce-page .commerce-product:hover,.commerce-page .button:hover,.commerce-page .commerce-podium-card:hover .commerce-podium-model img { transform:none; }
}
