/* The HTML defaults to dark; these tokens are the optional light palette. */
:root{color-scheme:light;--ink:#182236;--muted:#5e6c80;--purple:#7051d8;--line:#dce3ed;--paper:#f5f7fb;--soft:#eeeafa;--theme-page:#f5f7fb;--theme-panel:#fff;--theme-primary:#7051d8}
body{background:var(--theme-page)}
.home-catalog>.showcase-row,.home-catalog>.topup-section{background:var(--theme-panel);border-color:var(--line)}
html[data-theme] .header .catalog-link{background:var(--theme-primary);color:#fff}
html[data-theme=light] .demo-strip{color:#745a2d}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:44px;min-height:44px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);cursor:pointer;font:inherit}
.theme-toggle svg{width:22px;height:22px;flex-shrink:0}
.theme-toggle:hover{background:var(--soft)}
.theme-toggle:focus-visible{outline:2px solid var(--purple);outline-offset:3px}
.theme-sun{display:none}
[data-theme=dark] .theme-moon{display:none}
[data-theme=dark] .theme-sun{display:block}
.drawer-theme-toggle{justify-content:flex-start;width:100%;font-size:14px;margin-bottom:6px}
@media(max-width:560px){.desktop-theme-toggle{display:none}}

html[data-theme=dark]{
  color-scheme:dark;
  --ink:#f3f6fc;
  --muted:#b0bdcf;
  --purple:#b9a5ff;
  --line:#2a394f;
  --paper:#1c2738;
  --soft:#2d2949;
  --theme-page:#0d1420;
  --theme-panel:#151f2e;
  --theme-primary:#7051d8;
  --theme-warning:#e8c991;
  --theme-warning-bg:#30271d;
  --theme-success:#95dcb0;
  --theme-success-bg:#182e24;
  --theme-error:#ffb3b3;
  --theme-error-bg:#351f29;
}
html[data-theme=dark] body{background:var(--theme-page)}
html[data-theme] :is(.topline,.footer,.header-search,.empty-state,.info-note,.telegram-banner){background:var(--paper);border-color:var(--line)}
html[data-theme] :is(.topline,.topline a,.header-help,.header-cart,.header-search>span,.header-search button,.eyebrow,.small-icon,.visual-label,.section-heading .eyebrow,.product-total,.product-category,.catalog-footnote,.telegram-banner p,.footer p,.footer a,.mini-label,.footer-bottom,.breadcrumbs,.breadcrumbs a,.detail-description p,.caption,.stack-form small,.quiet-link,.auth-intro p,.or-line,.demo-login small,.message-panel p,.page-heading p,.empty-state>span,.empty-state p,.order-row small,.param-row>span,.step-number,.info-grid p,.info-note p,.admin-stats span,.admin-stats strong.status-text,.admin-stats small,.panel-icon,.percent-input>span,.category-setting small,th,td small,.toggle,.pagination,.search-query,.muted,.view-all,.quick-pick small,.quick-pick>span:last-child,.checkout-steps,.checkout-trust>div,.cart-remove,.support-page .page-heading p,.support-card p,.support-card li){color:var(--muted)}
html[data-theme=dark] :is(.footer-bottom,.mini-label,.product-card,.telegram-banner,.category-setting,.percent-input,th,td){border-color:var(--line)}
html[data-theme] .header-search button{background:var(--soft)}
html[data-theme=dark] :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
html[data-theme=dark] :is(.product-card,.checkout-card,.checkout-main .payment-choices,.order-progress,.support-card,.mobile-catalog,.skip){background:var(--paper)}
html[data-theme=dark] .weekly-strip .product-card{background:transparent}
html[data-theme=dark] :is(.home-catalog>.showcase-row,.home-catalog>.topup-section){background:var(--theme-panel);border-color:var(--line)}
html[data-theme=dark] :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){background:var(--paper);color:var(--ink);border-color:var(--line);accent-color:var(--purple)}
html[data-theme=dark] .header-search input{background:transparent}
html[data-theme=dark] :is(.button-primary,.logo-mark,.checkout-steps .active span){background:var(--theme-primary);color:#fff}
html[data-theme=dark] .button-primary:hover{background:#7959db}
html[data-theme] .checkout-steps .complete span{background:#236c4f;border-color:#236c4f;color:#fff}
html[data-theme=dark] .button-dark{background:var(--soft);color:var(--ink);border:1px solid var(--line)}
html[data-theme] :is(.button-soft,.auth-illustration,.message-icon,.telegram-circle,.collection-label,.badge,.chip.selected,.curation-button.active,.admin-nav a[aria-current=page],.checkout-payment,.support-card-primary){background:var(--soft);color:var(--purple);border-color:var(--line)}
html[data-theme=dark] .button-telegram{background:#192d3e;color:#99cfff}
html[data-theme] :is(.chip,.curation-button){background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.chip.selected,.curation-button.active){background:var(--soft);color:var(--purple);border-color:var(--purple)}
html[data-theme] :is(.card-button,.notice,.notice>span,.topup-tabs button[aria-pressed=true]){border-color:var(--line);color:var(--purple)}
html[data-theme=dark] :is(.notice,.quick-pick:hover){background:var(--soft)}
html[data-theme] :is(.notice strong,.support-card .support-contact-name,.support-faq a,.order-detail .notice a,.percent-input input){color:var(--purple)}
html[data-theme=dark] th{background:var(--theme-panel)}
html[data-theme=dark] .or-line:before,html[data-theme=dark] .or-line:after{background:var(--line)}
html[data-theme=dark] .toggle>span{background:#51445f}
html[data-theme=dark] .toggle.on>span{background:var(--theme-primary)}
html[data-theme=dark] :is(.demo-strip,.checkout-apple-notice,.order-stage-attention .order-stage-marker){background:var(--theme-warning-bg);color:var(--theme-warning);border-color:#695332}
html[data-theme=dark] :is(.reserve-mode-on,.public-sales-paused,.error-note){background:var(--theme-error-bg);color:var(--theme-error);border-color:#734052}
html[data-theme=dark] :is(.reserve-mode-off,.public-sales-open,.bot-preview){background:var(--theme-success-bg);color:var(--theme-success);border-color:#39664c}
html[data-theme=dark] .mobile-catalog::backdrop{background:#08060eb3}

/* Supplier logos keep their pixels; their old pastel backdrops gain contrast. */
html[data-theme] .product-art:not(.product-art-cover){background:#293951;color:#fff}
html[data-theme] .art-steam:not(.product-art-cover){background:linear-gradient(145deg,#122b41,#244e6a)}
html[data-theme] .art-playstation:not(.product-art-cover){background:linear-gradient(145deg,#163e91,#2861bf)}
html[data-theme] .art-xbox:not(.product-art-cover){background:#155d36}
html[data-theme] .art-discord:not(.product-art-cover){background:#464ca6}
html[data-theme] .art-pubg:not(.product-art-cover){background:#725524}
html[data-theme] .product-art:not(.product-art-cover):after{display:none}
