/* Shared tokens: Midnight stays nearly black, with a subtle navy light source. */
html[data-site-theme]{--theme-panel:#0d182a;--theme-control:#17283e;--theme-accent:#9ccfff;--theme-edge:#88b8eb29;--theme-base:#040916;--theme-panel-end:#08101e;--theme-raised:#17263b;--theme-muted:#9cacc1;--theme-glow:#233d612e;--theme-danger:#ef969d;--theme-success:#72d6b0;--text:#e5edf8;--text-secondary:#9cacc1;--theme-card:linear-gradient(145deg,var(--theme-panel),var(--theme-panel-end));--theme-button:linear-gradient(125deg,var(--theme-raised),var(--theme-control));}
html[data-site-theme=store]{--theme-base:#030509;--theme-panel:#0c121d;--theme-panel-end:#060a10;--theme-raised:#162234;--theme-control:#111b2a;--theme-accent:#a7cbe9;--theme-edge:#7898ba27;--theme-muted:#919fb2;--theme-glow:#1a36532e;--bg:#030509;--bg-card:#0c121d;--bg-card-hover:#121f30;--bg-elevated:#162234;--surface:#0c121d;--surface-2:#111b2a;--surface-3:#162234;--brand:#7eacd4;--brand-hover:#b9d8f1;--brand-strong:#3e6485;--accent:#91badb;--border:#7898ba27;--line:#7898ba27;--text-secondary:#919fb2;}
html[data-site-theme] body{background:radial-gradient(ellipse at 80% 0,var(--theme-glow),transparent 55%),var(--theme-base)!important;color:var(--text);}
html[data-site-theme] body :is(.topbar,.site-header,.site-footer,.profile-sidebar-card,.profile-sidebar-user,.profile-card,.panel-card,.panel-block,.profile-hero,.profile-orders-card,.profile-orders-summary,.profile-orders-table,.profile-orders-table-head,.profile-order-row,.profile-order-delivery,.profile-coupon-card,.profile-points-card,.profile-sidebar-footer,.inventory-card,.inventory-modal-dialog,.inventory-modal-copy,.inventory-detail-panel,.member-showcase,.member-stats,.member-games,.member-game-grid a,.member-game-picker,.member-game-picker header,.member-game-picker footer,.member-friends-page,.friend-confirm,.friends-dialog,.user-popover,.user-popover-card,.notification-popover,.notification-panel,.notification-dropdown,.notifications-popover,.language-popover,.filter-popover,.favorites-dialog,.favorite-list-item,.cart-dialog,.auth-dialog,.contact-dialog,.payment-dialog,.product-dialog,.checkout-order-dialog,.olaf-checkout-shell,.olaf-checkout-meta-card,.olaf-checkout-qr-card,.home-free-games-rail,.home-free-game-card,.product-card,.game-card,.deal-card,.feature-card,.recent-purchases-card,.video-showcase-card,.stats-strip,.catalog-toolbar,.catalog-discovery-group,.discovery-card,.discovery-row,.discovery-theme-row,.olaf-steam-deal-card,.olaf-steam-theme-card,.olaf-steam-taste-row,.olaf-steam-activity-card,.olaf-steam-collection-row,.olaf-steam-feature-info,.olaf-steam-taste-info,.side-panel,.friends-launch){background:var(--theme-card)!important;border-color:var(--theme-edge)!important;color:var(--text);}
html[data-site-theme] body :is(.profile-sidebar,.profile-panels){background:transparent!important;}
html[data-site-theme] body :is(.profile-sidebar-role,.profile-points-wallet,.profile-wallet-card,#profile-points-card,.profile-sidebar-meta,.profile-logout,.profile-logout-card,.profile-sidebar-logout,.friend-person,.friend-activity,.friends-search,.member-picker-list label,.shop-point-history,.shop-point-history-item,.inventory-account-field,.notification-item,.recent-purchase-item,.cart-item){background:var(--theme-card)!important;border-color:var(--theme-edge)!important;}
html[data-site-theme] body :is(.profile-nav-item,.profile-order-open,.profile-order-pagination button,.secondary-button,.ghost-button,.account-button,.icon-button,.mini-button,.member-customize,.member-theme-control,.member-theme-options button,.member-select-games,.friends-surface button,.friends-dialog>header button,.friend-confirm button,.member-friend-bar button,.friends-self-menu,.friends-self-preview,.friends-recent a,.shop-point-history button,.member-game-picker button){background:var(--theme-button)!important;border-color:var(--theme-edge)!important;color:var(--theme-accent);}
html[data-site-theme] body :is(.profile-nav-item.is-active,.friends-surface [aria-pressed=true],.member-theme-options [aria-pressed=true]){background:linear-gradient(105deg,var(--theme-raised),var(--theme-control))!important;box-shadow:inset 3px 0 var(--theme-accent);color:var(--text);}
html[data-site-theme] body :is(.profile-panel input:not([type=checkbox]):not([type=radio]),.profile-panel select,.friends-search input,.topbar-search input,.filter-popover input,.shop-point-history select){background:var(--theme-panel-end)!important;border-color:var(--theme-edge)!important;color:var(--text);}
html[data-site-theme] body :is(.profile-panel textarea){background:var(--theme-panel-end);border-color:var(--theme-edge);color:var(--text);}
html[data-site-theme] body :is(.friends-privacy,.friends-surface [role=status],.friends-toolbar p,.friend-person small,.friend-activity small,.friend-activity time,.friend-offline,.friends-drag-hint){color:var(--theme-muted);}
html[data-site-theme] body .member-cover{background:radial-gradient(ellipse at top right,var(--theme-raised),var(--theme-panel-end))!important;}
html[data-site-theme] body #profile-overview-root .member-cover::after{background:linear-gradient(180deg,transparent 25%,var(--theme-panel-end))!important;}
/* Keep artwork, rank colors, balance/status badges and selected profile backgrounds intact. */
/* Footer follows the page base instead of the brighter panel gradient. */
html[data-site-theme] body footer.site-footer{background:var(--theme-base)!important;border-color:var(--theme-edge)!important;box-shadow:none!important;color:var(--theme-muted);}
html[data-site-theme] body .site-footer :is(.footer-grid,.footer-bottom){background:transparent!important;border-color:var(--theme-edge)!important;}
html[data-site-theme] body .site-footer :is(h4,strong,.brand-text){color:var(--text)!important;}
html[data-site-theme] body .site-footer :is(p,a,small,.footer-bottom){color:var(--theme-muted)!important;}
html[data-site-theme] body .site-footer a:hover{color:var(--theme-accent)!important;}
html[data-site-theme] body .site-footer .payment-badge{background:var(--theme-panel-end)!important;border-color:var(--theme-edge)!important;color:var(--text)!important;}
html[data-site-theme] body .site-footer .footer-bottom::after{color:var(--theme-muted);opacity:.65;}
html[data-site-theme] body .member-cover .member-ranks{background:transparent!important;}
html[data-site-theme] body .member-friend-bar{background:var(--theme-card);}
html[data-site-theme] body .friend-confirm [data-confirm-remove]{background:linear-gradient(120deg,#41252f,#281921)!important;color:#ffd7db;border-color:#b368743d!important;}
html[data-site-theme] body .friends-surface [data-add-friend],html[data-site-theme] body .friends-request-alert{background:linear-gradient(115deg,var(--theme-raised),var(--theme-panel))!important;color:var(--theme-accent);border-color:var(--theme-accent)!important;}
html[data-site-theme] body .friends-launch-icon{background:var(--theme-button);color:var(--theme-accent);}
html[data-site-theme] body .friends-dialog>header{background:linear-gradient(120deg,var(--theme-raised),var(--theme-panel-end));border-color:var(--theme-edge);}
html[data-site-theme] body .friends-self-popover{background:var(--theme-card);border-color:var(--theme-edge);}
html[data-site-theme] body .friend-online{color:var(--theme-success);}
html[data-site-theme] body .profile-sidebar :is(#logout-btn,.danger-item){color:var(--theme-danger)!important;background:var(--theme-card)!important;border-color:var(--theme-edge)!important;}
html[data-site-theme] body :is(.profile-sidebar-balance-row,.profile-sidebar-point-chip,.profile-sidebar-role-chip,.profile-points-icon,.olaf-steam-featured-info,.olaf-steam-featured-card,.olaf-steam-highlight-info,.olaf-steam-highlight-card,.product-hover-preview,.product-hover-body){background:var(--theme-card)!important;border-color:var(--theme-edge)!important;}
html[data-site-theme] body #catalog-game-preview :is(.olaf-steam-taste-row,.catalog-genre-shelf,.catalog-genre-game,.olaf-steam-theme-row,.olaf-steam-theme-card){background:var(--theme-card)!important;border-color:var(--theme-edge)!important;}
html[data-site-theme] body #catalog-game-preview .olaf-steam-taste-actions :is(a,button){background:var(--theme-button)!important;border-color:var(--theme-edge)!important;color:var(--theme-accent)!important;}
