/* Shared dark palette; no image inversion or changes to collectible art. */
:root[data-theme="dark"]{
 color-scheme:dark;
 --bg:#0b111c;--surface:#101827;--surface-2:#172233;--surface-3:#202d40;--surface-4:#2a3a50;
 --line:#1c2737;--line-2:#263347;--line-3:#33455e;
 --button-bg:#213047;--button-hover:#2b3d55;--button-edge:#293950;
 --ink:#f1f5fc;--text:#dce5f1;--text-2:#b9c8dd;--muted:#9aaec8;--faint:#869ab4;
 --brand:#347ff0;--brand-hover:#4a91fa;--brand-ink:#89bbff;--brand-tint:#162d4e;--brand-tint-2:#213e65;--brand-line:#365e90;
 --green:#41c88a;--green-ink:#80dfb1;--green-tint:#14372d;--green-line:#2c6350;
 --amber:#e9ac42;--amber-ink:#f3ce83;--amber-tint:#3b2f19;--amber-line:#715a2c;
 --red:#ec716a;--red-ink:#ffa5a0;--red-tint:#3b222c;--red-line:#78424c;
 --purple:#ad88f5;--purple-ink:#c6aaff;--purple-tint:#302341;--purple-line:#624685;
 --shadow-sm:0 1px 3px #0003;--shadow-md:0 5px 18px #0004;--shadow-lg:0 20px 60px #0007;
}
.site-header .theme-toggle{display:grid;place-items:center;flex:0 0 36px;width:36px;height:34px;padding:6px;border:1px solid var(--line-2);border-radius:8px;background:var(--surface);color:var(--text);margin-left:auto}
.site-header .theme-toggle:hover{background:var(--surface-2);color:var(--brand-ink)}
/* Filled controls provide separation without bright resting outlines. */
[data-theme="dark"] .secondary,
[data-theme="dark"] .site-header .top-actions>.secondary,
[data-theme="dark"] .language-trigger,
[data-theme="dark"] .select-trigger,
[data-theme="dark"] .price-presets button:not(.selected),
[data-theme="dark"] .notification-bell,
[data-theme="dark"] .site-header .theme-toggle{
 background:var(--button-bg);border-color:var(--button-edge);color:var(--text);
}
[data-theme="dark"] .secondary:hover,
[data-theme="dark"] .site-header .top-actions>.secondary:hover,
[data-theme="dark"] .language-trigger:hover,
[data-theme="dark"] .select-trigger:hover,
[data-theme="dark"] .price-presets button:not(.selected):hover,
[data-theme="dark"] .language-trigger[aria-expanded="true"],
[data-theme="dark"] .notification-bell:hover,
[data-theme="dark"] .notification-bell[aria-expanded="true"],
[data-theme="dark"] .site-header .theme-toggle:hover{
 background:var(--button-hover);border-color:var(--button-hover);color:var(--ink);
}
[data-theme="dark"] .site-header .wallet-button.centered-balance{background:var(--button-bg);border-color:var(--button-edge)}
[data-theme="dark"] .centered-balance .balance-amount{background:var(--button-bg)}
[data-theme="dark"] .centered-balance .balance-amount:hover{background:var(--button-hover)}
[data-theme="dark"] .close{background:var(--button-bg);border-color:var(--button-edge)}
[data-theme="dark"] .close:hover{background:var(--button-hover)}
[data-theme="dark"] .feature-cta{color:#0a57c0}
[data-theme="dark"] .gem-panel-art,[data-theme="dark"] .gem-dialog-hero{background:#153548}
[data-theme="dark"] .giveaway-label,[data-theme="dark"] .receipt-quantity{background:var(--brand-tint-2);color:var(--ink)}
[data-theme="dark"] #toast{background:var(--surface-3);border:1px solid var(--line-2);color:var(--ink)}
[data-theme="dark"] .variant-golden .collectible-image,[data-theme="dark"] .rarity-ancient .collectible-image{background:#3b321c}
[data-theme="dark"] .variant-neon .collectible-image,[data-theme="dark"] .rarity-uncommon .collectible-image{background:#163a2f}
[data-theme="dark"] .rarity-godly .collectible-image{background:#342040}
[data-theme="dark"] .rarity-unique .collectible-image{background:#153942}
[data-theme="dark"] .rarity-legendary .collectible-image{background:#3d2433}
[data-theme="dark"] .rarity-rare .collectible-image{background:#1c304e}
[data-theme="dark"] .rarity-vintage .collectible-image{background:#342b24}
[data-theme="dark"] .variant-rainbow .collectible-image,[data-theme="dark"] .variant-mega .collectible-image,[data-theme="dark"] .rarity-chroma .collectible-image{background:linear-gradient(135deg,#472739,#40361d 30%,#193a2b 55%,#203452 78%,#342449)}
[data-theme="dark"] .bgsi-rarity-secret{--bgsi-accent:#ff7898}[data-theme="dark"] .bgsi-rarity-celestial{--bgsi-accent:#64d9ee}[data-theme="dark"] .bgsi-rarity-infinity{--bgsi-accent:#ac94ff}[data-theme="dark"] .bgsi-rarity-exclusive{--bgsi-accent:#f18ee4}[data-theme="dark"] .bgsi-rarity-super-legendary{--bgsi-accent:#edb567}
[data-theme="dark"] #add-balance-tabs.balance-tabs{background:var(--surface-2)}
[data-theme="dark"] #add-balance-tabs.balance-tabs button{color:var(--muted)}
[data-theme="dark"] #add-balance-tabs.balance-tabs button.selected{background:var(--surface-3);color:var(--brand-ink)}
[data-theme="dark"] .card-presets button{background:var(--surface-2);color:var(--text-2)}
[data-theme="dark"] .card-presets button.selected{background:var(--brand);color:white}
[data-theme="dark"] .card-amount-field,[data-theme="dark"] .card-breakdown{background:var(--surface-2)}
[data-theme="dark"] .card-amount-field input,[data-theme="dark"] .card-breakdown strong,[data-theme="dark"] .card-total strong{color:var(--ink)}
[data-theme="dark"] .card-caption,[data-theme="dark"] .card-amount-field>span,[data-theme="dark"] .card-breakdown>div,[data-theme="dark"] .card-funding .card-consent,[data-theme="dark"] .gift-card-caption{color:var(--muted)}
[data-theme="dark"] .card-consent a{color:var(--brand-ink)}
[data-theme="dark"] .card-breakdown .card-total{border-color:var(--line);color:var(--ink)}
[data-theme="dark"] .card-continue:disabled{background:#2a4b7a!important;color:#b5c9e6}
[data-theme="dark"] .card-link-word{color:#78dfb0}
[data-theme="dark"] .card-methods img{background:white;border-radius:3px}
[data-theme="dark"] dialog::backdrop{background:#020611b8}
@media(max-width:620px){.site-header .theme-toggle{flex-basis:32px;width:32px;height:32px}.site-header .site-nav-wrap{gap:6px}.site-header #nav{min-width:0}}

/* Original supplied artwork, displayed without its outer transparent padding. */
.site-header .brand{align-items:center;padding:0}
.site-header .brand-art{display:flex;align-items:center;justify-content:center;width:190px;height:42px;overflow:hidden;flex:none}
.site-header .brand-art img{display:block;flex:none;width:112%;height:auto;max-width:none}
@media(max-width:620px){.site-header .brand-art{width:150px;height:34px}}
@media(max-width:380px){.site-header .brand-art{width:130px;height:30px}}

/* Use the available desktop width; existing mobile gutters remain in place. */
.site-header .topbar,.site-header .site-nav-wrap,main,.shell>footer{max-width:none;width:100%}

/* Giveaways stay compact even on wide marketplace layouts. */
#market-giveaways .giveaway-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),300px));gap:14px;align-items:start}
#market-giveaways .giveaway-card{min-width:0}
#market-giveaways .giveaway-card .collectible-image{height:140px;aspect-ratio:auto}
#market-giveaways .giveaway-card .collectible-image img{width:104px;height:104px;max-height:104px;margin:0}
#market-giveaways .giveaway-copy{padding:14px}
#market-giveaways .giveaway-copy h3{font-size:15px}
#market-giveaways .giveaway-variant{margin-bottom:10px;line-height:1.4}
#market-giveaways .giveaway-stats{padding:9px 0;gap:6px;font-size:11px}
#market-giveaways .giveaway-requirements{min-height:0;margin:10px 0;font-size:11px}
#market-giveaways .giveaway-copy>.full{min-height:36px;padding:8px 10px;font-size:12px;margin-top:0}
