/* Native colors are designed together, preventing low contrast caused by recoloring. */
.theme-control{display:inline-flex;gap:5px;align-items:center;font-size:13px;font-weight:700;white-space:nowrap}.theme-control select{background:#f8f7fc;color:#2e244d;border:1px solid #c9c4da;border-radius:9px;padding:5px 7px;font-size:14px;max-width:105px;min-height:34px}.theme-control select:focus-visible{outline:3px solid #f49e27;outline-offset:2px}.theme-control .theme-label{font-size:13px}
:root[data-theme="dark"]{--paper:#131522;--ink:#f0f0fa;--accent:#b9a5ff;--line:#3c4059;--surface:#202332;--surface-raised:#292d40;--muted:#b4b9ce;--button:#7656d8;color-scheme:dark}
:root[data-theme="dark"] body{background:linear-gradient(180deg,#1c1a32,#131522 420px);color:var(--ink)}
:root[data-theme="dark"] header{background:#1d2030;border-color:var(--line);box-shadow:0 2px 12px #0004}
:root[data-theme="dark"] nav a,:root[data-theme="dark"] .brand{color:#ded5ff}
:root[data-theme="dark"] .theme-control select,:root[data-theme="dark"] input,:root[data-theme="dark"] select{background:#2b2e43;color:#f5f4fc;border-color:#656a86}
:root[data-theme="dark"] input::placeholder{color:#b6b5c9}
:root[data-theme="dark"] .game,:root[data-theme="dark"] .daily-main,:root[data-theme="dark"] .daily-sidebar,:root[data-theme="dark"] .article,:root[data-theme="dark"] .card{background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:0 5px 18px #0004}
:root[data-theme="dark"] .daily-game{box-shadow:none}
:root[data-theme="dark"] .daily-heading h1,:root[data-theme="dark"] .game-card-text h3,:root[data-theme="dark"] .daily-pick strong{color:var(--ink)}
:root[data-theme="dark"] .card p,:root[data-theme="dark"] .daily-pick small,:root[data-theme="dark"] .daily-heading p,:root[data-theme="dark"] .daily-sidebar>p,:root[data-theme="dark"] .muted,:root[data-theme="dark"] .catalog-hint{color:var(--muted)}
:root[data-theme="dark"] .daily-pick{background:#2b2b42;border-color:#45445e;color:var(--ink)}
:root[data-theme="dark"] .daily-pick:hover{background:#37334e;border-color:#b9a5ff}
:root[data-theme="dark"] .daily-badge{background:#214e3c;color:#b6f6d3}
:root[data-theme="dark"] :where(button:not(.tile):not(.playing-card),.btn){background:var(--button);color:#fff}
:root[data-theme="dark"] button:disabled:not(.face-down){opacity:.55}
:root[data-theme="dark"] .tile{background:#252a3d;color:#f7f8ff;border-color:#5d6581}
:root[data-theme="dark"] .tile.good,:root[data-theme="dark"] .keyboard button.good,:root[data-theme="dark"] .quiz-options button.good{background:#197647;color:white;border-color:#42ae78}
:root[data-theme="dark"] .tile.close,:root[data-theme="dark"] .keyboard button.close{background:#9d6813;color:#fff;border-color:#d5a540}
:root[data-theme="dark"] .tile.bad,:root[data-theme="dark"] .keyboard button.bad{background:#424b61;color:#fff;border-color:#65718a}
:root[data-theme="dark"] .tile.on{background:#6445c6;color:white;border-color:#a18aea}
:root[data-theme="dark"] .tile.fixed{background:#45415e;color:#fff;border-color:#76718d}
:root[data-theme="dark"] .tile.blank{background:#11131e;border-color:#31374d}
:root[data-theme="dark"] .keyrow button{background:#414560;color:#f8f8ff}
:root[data-theme="dark"] .keyrow button.good{background:#197647;color:#fff}
:root[data-theme="dark"] .keyrow button.close{background:#9d6813;color:#fff}
:root[data-theme="dark"] .keyrow button.bad{background:#424b61;color:#fff}
:root[data-theme="dark"] .groups-grid button{background:#373a52;color:#f9f8ff}
:root[data-theme="dark"] .groups-grid button.chosen{background:#7656d8;color:#fff}
:root[data-theme="dark"] .group,:root[data-theme="dark"] .word-results span{background:#37344f;color:#faf9ff}
:root[data-theme="dark"] .status{color:#d1c1ff}
:root[data-theme="dark"] footer{background:#181a2a;color:#f0effa}
:root[data-theme="dark"] footer a{color:#d6c6ff}
/* Card colors are intentional in either theme. */
.solitaire-studio .felt,.solitaire-studio .playing-card,.solitaire-studio .card-face{color-scheme:light;forced-color-adjust:none}
.solitaire-studio .playing-card:not(.face-down):not(.stock):not(.card-slot){background:#fff;color:#142236;border-color:#b9c3d4}
.solitaire-studio .card-face{background:#fff;color:#142236;object-fit:contain;filter:none}
.solitaire-studio .red-card .card-face{color:#c51f3d}
:root[data-theme="dark"] #solitaire.solitaire-studio{background:#202332;border-color:var(--line)}
:root[data-theme="dark"] .solitaire-studio .card-stats{background:#232739;color:#c1c6db}
:root[data-theme="dark"] .solitaire-studio .card-stats b{color:#f6f5ff}
:root[data-theme="dark"] .deal-badge{background:#453975;color:#e3d9ff}
:root[data-theme="dark"] .sol-options{background:#2b2a43;color:#f0effa}
:root[data-theme="dark"] .sol-options button{background:#40405a;color:#fff;border-color:#67627f}
:root[data-theme="dark"] .sol-options button.active{background:#7656d8;color:#fff}
:root[data-theme="dark"] .sol-toolbar button{background:#44435b;border-color:#62617b;color:#fff}
:root[data-theme="dark"] .sol-toolbar button[data-action="new"]{background:#7054d4}
:root[data-theme="dark"] .sol-toolbar button[data-action="hint"]{background:#e1b85c;color:#29243e}
:root[data-theme="dark"] .sol-toolbar select{background:#303249;color:#f7f6ff}
@media(max-width:600px){.theme-control{margin-left:0;min-height:34px}.theme-control .theme-label{font-size:12px}.theme-control select{font-size:13px;max-width:85px;min-height:34px}}
