/* Opt-in only: no legacy backgrounds, felt surfaces or playing cards are changed by default. */
:root[data-site-theme="midnight"]{--theme-bg:#10263d;--theme-panel:#1b354f;--theme-button:#2b4862;--theme-hover:#365974;--theme-ink:#eef6fa;--theme-muted:#c0d3e1;--theme-line:#57728b;--theme-accent:#a9d5e8}
:root[data-site-theme="forest"]{--theme-bg:#12372d;--theme-panel:#204a3c;--theme-button:#315c4d;--theme-hover:#3e705d;--theme-ink:#f0f6ec;--theme-muted:#c4dccc;--theme-line:#628775;--theme-accent:#b0ddc4}
:root[data-site-theme]{color-scheme:only dark;--ink:var(--theme-ink);--green:var(--theme-accent);--cream:var(--theme-bg);--muted:var(--theme-muted);--line:var(--theme-line);--gold:#edc77b;--background:var(--theme-bg);--foreground:var(--theme-ink);--primary:var(--theme-button);--primary-foreground:var(--theme-ink);--secondary:var(--theme-button);--muted-foreground:var(--theme-muted);--accent:var(--theme-button);--popover:var(--theme-panel);--border:var(--theme-line);--surface:var(--theme-panel)}
html[data-site-theme] body{background:var(--theme-bg);color:var(--theme-ink)}
html[data-site-theme] .home-page{background-color:var(--theme-bg);--felt-text:var(--theme-ink);--felt-muted:var(--theme-muted);--felt-line:var(--theme-line)}
html[data-site-theme] :is(.panel,.modal,.game-card,.mode-card,.stats-entry,.lobby-entry,.active-games,.language-selector,.feedback-dialog,.setup,.result,.room-banner,.portal-promo,.join-strip,.roundbar,.media-panel,.setup-dialog,.rules-dialog,.guest-notice,.spilabord-notice,.metric-grid>div,.recent>button,dialog){background:var(--theme-panel);color:var(--theme-ink);border-color:var(--theme-line)}
html[data-site-theme] :is(.secondary,.primary,.choices button,.game-options a,.language-selector button[aria-pressed=true],.topbar nav button.selected){background:var(--theme-button);color:var(--theme-ink);border-color:var(--theme-line)}
html[data-site-theme] :is(.secondary,.primary,.mode-card,.game-options a):hover{background:var(--theme-hover);color:var(--theme-ink)}
html[data-site-theme] :is(input:not([type=radio]):not([type=checkbox]),select,textarea){background:var(--theme-bg);color:var(--theme-ink);border-color:var(--theme-line)}
html[data-site-theme] :is(.feedback-dialog textarea,.feedback-dialog input,.language-picker select,.variant-controls select,.room-next-settings select,#feedbackForm input,#feedbackForm textarea){background:var(--theme-bg);color:var(--theme-ink);border-color:var(--theme-line)}
html[data-site-theme] :is(.text-button,.solitaire-links a,.game-content .eyebrow,.game-tip .eyebrow,.mp-badge){color:var(--theme-accent)}
html[data-site-theme] :is(.scoreboard li.me,.on,.mp-results .my-table,.last-trick-player.winner,.stats-controls [role=tablist]){background:var(--theme-button);color:var(--theme-ink)}
html[data-site-theme] .topbar{background:var(--theme-panel);border-bottom-color:var(--theme-line)}
html[data-site-theme] .related-games{--related-ink:var(--theme-ink);--related-muted:var(--theme-muted);--related-line:var(--theme-line);--related-bg:var(--theme-panel);--related-button:var(--theme-button);--related-hover:var(--theme-hover)}
html[data-site-theme] .home-page .hero-art .art-card{color:#173e35}
html[data-site-theme] .home-page .hero-art .art-card.b{color:#b95055}
html[data-site-theme] .theme-notice{background:var(--theme-panel);color:var(--theme-ink);border-color:var(--theme-line)}
html[data-site-theme] :is(.consent-panel,.leaderboard-invitation,.game-tip,.competition,.lobby-table,.stats-warning,.translation-notice,.mini-round-summary,.mini-practice-note,.casino-last-move,.fish-last,.canasta-meld,.canasta-planned){background:var(--theme-panel);color:var(--theme-ink);border-color:var(--theme-line)}
html[data-site-theme] :is(.competition>p,.competition details,.game-content .game-footnote,.competition .competition-note){color:var(--theme-muted)}
html[data-site-theme] :is(.competition-tabs,.competition-mine,.competition-own,.consent-status,.embed-hint,.room-code,.pill,.mini-review-hand){background:var(--theme-button);color:var(--theme-ink);border-color:var(--theme-line)}
html[data-site-theme] :is(.game-filter button,.competition-period button,.competition-tabs button[aria-pressed=true],.bid-controls .secondary){background:var(--theme-button);color:var(--theme-ink);border-color:var(--theme-line)}
html[data-site-theme] .game-filter button.selected{outline:2px solid var(--gold);outline-offset:-2px}
html[data-site-theme] .brand-icon{background:var(--theme-button);color:var(--theme-ink)}
html[data-site-theme] :is(.lobby-tools input,.lobby-tools select,.lobby-chat textarea,.lobby-chat select){background:var(--theme-bg)}
