/* Interface appearance only: posters, rarity colours and foil artwork keep their palette. */
.theme-toggle{padding:0;line-height:1;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px}
.theme-toggle svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .theme-moon{display:none}
:root[data-color-theme=light] .theme-toggle .theme-sun{display:none}
:root[data-color-theme=light] .theme-toggle .theme-moon{display:block}
:root[data-color-theme=light]{color-scheme:light;--bg:#f5f2eb;--surface:#fffefa;--raised:#ebe6dd;--border:#dcd6cd;--line:#dcd6cd;--panel:#fffefa;--muted:#68636d;--text:#27242c;--gold:#835b22;--gold-bright:#684615}
:root[data-color-theme=light] :is(.sidebar,.sidebar #navigation,.modal,.release-dialog,.notification-panel,.auction-tile,.settings-panel,.stat,.account-panel,.search-field,.trade-pick,.shop-choice,.pack-summary-stats>div,.pa-tile,.pa-search-grid>button,.pa-selected-list>li,.pa-save,.human-dialog){background:var(--surface);border-color:var(--border);color:var(--text)}
:root[data-color-theme=light] :is(.topbar,.public-header,.welcome-header,.welcome-footer,.welcome-facts,.privacy-delete){border-color:var(--border)}
:root[data-color-theme=light] :is(.opening-layout .pack-stage,.spotlight-card,.profile-hero,.pack-shop-banner,.account-page,.welcome-page){background:radial-gradient(ellipse at 65% 15%,#e7d4ad66,transparent 65%),var(--surface);border-color:#d9ccb6}
:root[data-color-theme=light] :is(.account-page,.welcome-page){background-color:var(--bg)}
:root[data-color-theme=light] .primary{background:var(--gold);color:#fffefa}
:root[data-color-theme=light] .primary:hover:not(:disabled){background:var(--gold-bright)}
:root[data-color-theme=light] :is(.secondary,.icon-button,.circle-control,.modal-close,.password-toggle,.social-tabs,.duration-picker span){background:#f0ebe2;color:#57505c;border-color:var(--border)}
:root[data-color-theme=light] :is(.secondary,.icon-button,.circle-control,.modal-close):hover:not(:disabled){background:#e5ded2;color:var(--text)}
:root[data-color-theme=light] :is(.theme-toggle,.sound-toggle[aria-pressed=true]){color:var(--gold)}
:root[data-color-theme=light] :is(.notification-count,.social-unread){background:var(--gold);color:#fffefa}
:root[data-color-theme=light] :is(.nav-count,.market-tabs button>span,.collection-card-tags>span,.countdown){background:#eae5dd;color:#5d5660}
:root[data-color-theme=light] .nav-item{color:#625d67}
:root[data-color-theme=light] .nav-item:hover{background:#eae5dd;color:var(--text)}
:root[data-color-theme=light] .nav-item.active{background:#e9d7b54d;color:var(--gold)}
:root[data-color-theme=light] :is(.avatar,.profile-avatar){background:#eae2d4;border-color:#d6c9b4;color:var(--gold)}
:root[data-color-theme=light] :is(.brand-sub,.nav-label,.topbar>span,.micro-label,.stage-tag,.recharge,.recharge strong,.text-button,.collection-summary,.auction-seller,.auction-seller span,.synopsis,.detail-copy dt,.modal-description,.field-label,.odds-table>div,.fine-print,.trade-sides h3,.trade-mini small,.trade-empty,.collection-filters label,.notification-item p,.notification-item time,.install-steps,.card-metadata,.public-film-meta,.pack-summary-stats span,.pack-card-status,.edition-label span,.feature-note em,.auction-rules,.demo-features>div,.rarity-stats strong,.footer,.public-footer,.welcome-intro>p,.welcome-facts span,.welcome-footer,.pa-tile-body>p,.pa-tile-body small,.pa-description,.pa-search-grid small,.pa-film-title small,.pa-order button,#pa-count,.human-dialog p,.account-panel label,.account-panel p,.account-tabs button){color:var(--muted)}
:root[data-color-theme=light] :is(.opening-wordmark,.notification-item.unread p,.album-progress,.account-panel .account-email){color:var(--text)}
:root[data-color-theme=light] :is(.bid-history strong,.edition-note,.shop-banner-copy .micro-label,.shop-banner-link,.shop-choice-price,.shop-confirm-price strong,.welcome-facts strong,.welcome-posters figcaption,.pa-add-label,.pick-check,.account-step,.account-browser-help strong){color:var(--gold)!important}
:root[data-color-theme=light] .welcome-posters figure:nth-child(2) figcaption{color:#69438c}
:root[data-color-theme=light] :is(.profile-form input,.trade-player-form input,.friend-form input,.settings-panel input:not([type=checkbox]),select,input[type=number],.chat-conversation textarea,#chat-report textarea,#chat-permission,#chat-reason,.showcase-editor select,.showcase-editor input[type=search],#tag-new,.account-panel input,.feedback-modal textarea,.pa-editor-fields input,.pa-editor-fields textarea,#pa-confirm textarea){background:var(--surface);color:var(--text);border-color:var(--border)}
:root[data-color-theme=light] :is(input,textarea)::placeholder{color:#77717c;opacity:1}
:root[data-color-theme=light] :is(.empty-state,.showcase-empty,.showcase-order li,.showcase-picker-grid>button,.showcase-order button,.album-detail-progress,.stage-tag,.release-button,.footer .feedback-link,.shop-confirm-price,.preferences-panel){background:#ffffff50;border-color:var(--border)}
:root[data-color-theme=light] :is(.demo-notice,.market-estimate,.tag-chip,.toast,.account-panel .account-note,.account-browser-help,.chat-notice){background:#f1e8d7;border-color:#cfb98f;color:#685334}
:root[data-color-theme=light] .market-estimate p{color:var(--muted)}
:root[data-color-theme=light] :is(.trade-pick.selected,.duration-picker input:checked+span){background:#f3e6cd;border-color:var(--gold);color:var(--gold)}
:root[data-color-theme=light] .detail-art{background:radial-gradient(ellipse,#fff9,transparent 65%),#e8e2d9}
:root[data-color-theme=light] .chat-message{background:#eee9e1;border-color:#dfd7cb}
:root[data-color-theme=light] .chat-message.mine{background:#eee0c8;border-color:#d6bf96}
:root[data-color-theme=light] :is(.form-error,.account-panel .form-error,.notification-error,.privacy-delete summary){color:#a13038}
:root[data-color-theme=light] .danger{color:#9b2c37;background:#f9e4e5;border-color:#dfafb4}
:root[data-color-theme=light] :is(.leading,.leading-notice,.settings-success,.feedback-success,.new-film,.pack-card-status.new-film,.album-earned,.album-card-status){color:#256743}
:root[data-color-theme=light] :is(.outbid-marker,.countdown.ending,.feedback-modal #feedback-status){color:#99541d}
:root[data-color-theme=light] .connection-status{background:#f3e4c9;border-color:#d8b987;color:#6c4e24}
:root[data-color-theme=light] .sale-status{background:#e4e4e8;color:#52535d}
:root[data-color-theme=light] .sale-status.sold{background:#dceedd;color:#256743}
:root[data-color-theme=light] .sale-status.expired{background:#f2e4ce;color:#825920}
:root[data-color-theme=light] .album-tile{background:linear-gradient(145deg,color-mix(in srgb,var(--album-accent) 12%,#fffefa),#fffefa);border-color:var(--border)}
:root[data-color-theme=light] :is(.album-category,.rarity-legend button,.filter-chip){color:color-mix(in srgb,var(--rarity,var(--album-accent,#835b22)) 45%,#26212b)}
:root[data-color-theme=light] .filter-chip{border-color:var(--border)}
:root[data-color-theme=light] .filter-chip.selected{border-color:currentColor;background:color-mix(in srgb,var(--rarity,#835b22) 15%,#fffefa)}
:root[data-color-theme=light] :is(.album-badge,.album-awarded){background:#f4eee3;color:var(--text)}
:root[data-color-theme=light] .album-missing .album-card-status{color:var(--muted)}
:root[data-color-theme=light] .album-progress progress{background:#e5dfd5}
:root[data-color-theme=light] .album-progress progress::-webkit-progress-bar{background:#e5dfd5}
:root[data-color-theme=light] .album-progress progress::-webkit-progress-value{background:color-mix(in srgb,var(--album-accent) 50%,#655231)}
:root[data-color-theme=light] .album-progress progress::-moz-progress-bar{background:color-mix(in srgb,var(--album-accent) 50%,#655231)}
:root[data-color-theme=light] .card-steps button{background:#d8d0c1}
:root[data-color-theme=light] .card-steps button.seen{background:#a3947e}
:root[data-color-theme=light] .card-steps button.current{background:var(--gold)}
:root[data-color-theme=light] :is(.film-card,.special-pack,.pa-cover>span:not(.pa-no-cover)){color:#eeedf0;--gold:#e6c58c;--gold-bright:#f8dfb1;--text:#eeedf0;--muted:#aaa6af}
:root[data-color-theme=light] .spotlight .edition-label{color:#e6c58c}
:root[data-color-theme=light] :is(.booster-wrap,.booster-art){mix-blend-mode:normal}
:root[data-color-theme=light] .booster-art{clip-path:inset(8% 16.5% 9% 16.5% round 1px)}
:root[data-color-theme=light] :is(.discovery-stage,.discovery-progress,.reveal-mode){background:var(--surface);border-color:var(--border)}
:root[data-color-theme=light] :is(.reveal-mode button,.progress-movement,.progress-movement small,.remaining-label,.no-album-change){color:var(--muted)}
:root[data-color-theme=light] :is(.progress-movement>strong,.discovery-album-heading>span){color:var(--gold)}
:root[data-color-theme=light] :is(.reveal-mode button[aria-pressed=true],.discovery-label){background:#f0e3cc;border-color:#d6bf96;color:var(--gold)}
:root[data-color-theme=light] .discovery-label.is-duplicate{background:#eee9e1;border-color:var(--border);color:var(--muted)}
:root[data-color-theme=light] .discovery-progress.is-complete{background:#edf4e9;border-color:#b3c7ab}
:root[data-color-theme=light] .is-complete .discovery-album-heading>span{color:#256743}
:root[data-color-theme=light] .meter{background:#e5dfd5}
:root[data-color-theme=light] :is(.shop-filters button[aria-pressed=true],.pa-tabs [aria-selected=true],.social-tabs a[aria-current=page]){background:#e5d1ac;border-color:#b89c6c;color:#543d1c}
@media(max-width:380px){.top-actions{gap:6px}.topbar{padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}.top-actions .balance{padding-left:8px;padding-right:8px}}
