.theme-switch{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid #45464e;border-radius:8px;flex-shrink:0;background:#16181d}.theme-switch button{border:0;border-radius:5px;background:transparent;color:#bcb8c0;font:600 11px/1 system-ui,sans-serif;padding:9px 10px;cursor:pointer;min-height:30px}.theme-switch button[aria-pressed=true]{background:#f15347;color:#fff}.theme-switch button:focus-visible{outline:2px solid #e74d42;outline-offset:3px}header{gap:16px;flex-wrap:wrap}header nav{align-items:center;flex-wrap:wrap}
html[data-theme=light]{color-scheme:light;--bg:#fff;--panel:#f5f6f8;--ink:#171a21;--text:#171a21;--cream:#171a21;--muted:#5c6370;--line:#dce0e5;--red:#d9362c}
html[data-theme=light] body{background:#fff;color:#171a21}
html[data-theme=light] :is(header,footer,.site-header){border-color:#dce0e5}
html[data-theme=light] :is(header a,.site-header nav,.brand>span:last-child,header .brand span){color:#535b68}
html[data-theme=light] :is(.theme-switch,.language-switch){background:#f3f4f6;border-color:#d4d9df}
html[data-theme=light] :is(.theme-switch button,.language-switch button){color:#4b5360}
html[data-theme=light] :is(.theme-switch button,.language-switch button)[aria-pressed=true]{background:#d9362c;color:#fff}
html[data-theme=light] :is(.lead,.eyebrow,.tags span,.sub,.note,.panel p,.account-panel p,.account-note,.create-account,.identity strong,.features p,footer,.r2f-legal-footer,.hand label,.ringlabel,.empty,.event,.f,.stack small,.playerhead small.pre-stats,.catalog-stat span,.catalog-row summary small,.filters label,.catalog-detail,.statusline,.training,.table-rules,.cloud-deck span,.cloud-deck small){color:#586170}
html[data-theme=light] :is(.tags span,.create-account,.features,.account-panel input,.secondary,.ring,.stack,.panel,.table,.dialog,.backlash-drawer,.exit-dialog,.cloud-decks-dialog,.cloud-deck,.catalog-row,.catalog-stat){border-color:#cdd3dc}
html[data-theme=light] :is(.account-panel,.panel,.dialog,.exit-dialog,.cloud-decks-dialog,.backlash-drawer,.catalog-stat,.reveal,.cloud-deck){background:#f5f6f8;color:#171a21;box-shadow:0 8px 30px #1720330d}
html[data-theme=light] .account-panel{border-top-color:#d9362c;background:linear-gradient(145deg,#fafbfc,#f0f2f5)}
html[data-theme=light] :is(.account-panel label,.password-field button,.account-panel a:not(.primary),.panel-top,.features article>span,.features h3,.identity small){color:#4b5360}
html[data-theme=light] :is(input,select,textarea,.account-panel input,.filters input,.filters select){background:#fff;color:#171a21;border-color:#bdc5d0}
html[data-theme=light] input::placeholder{color:#727b88}
html[data-theme=light] :is(.secondary,.btn,select,.aux button){background:#eef1f5;color:#283443;border-color:#c3ccd8}
html[data-theme=light] :is(.primary,.btn.primary){background:#d9362c;color:#fff;border-color:#d9362c}
html[data-theme=light] :is(.primary:hover,.btn.primary:hover){background:#bd2e25;color:#fff}
html[data-theme=light] :is(.label,h1 span,.lock){color:#d9362c}
html[data-theme=light] :is(.error,#accountStatus,.step-event){color:#b5241d}
html[data-theme=light] :is(.table,.shared-table){background:radial-gradient(ellipse,#f9fafc,#e8edf3);box-shadow:0 12px 36px #1720330d}
html[data-theme=light] :is(.center,.shared-table .center,.game .shared-table>.side){background:#f1f4f8;color:#263344;border-color:#ccd5e1}
html[data-theme=light] :is(.shared-table .zones>.stack,.shared-table .pile-zones .stack,.shared-table .stack.has-pile-art,.stack){background:#e9eef5;color:#253345;border-color:#b8c5d5}
html[data-theme=light] .pile-visual{background:#dce4ed}
html[data-theme=light] :is(.shared-table button.ring-backlash,.center span,.ringlabel span,.pre-steps span,.pre-steps button){color:#49596e}
html[data-theme=light] :is(.dialog .close,.cloud-decks-dialog .close,.backlash-drawer button.close){color:#263344}
html[data-theme=light] .pre-steps .current{color:#a52921;border-color:#d9362c;background:#fff0ed}
html[data-theme=light] .pre-steps .complete{color:#236744;border-color:#7cae92;background:#eaf6ef}
html[data-theme=light] .cloud-deck[aria-pressed=true]{background:#fff0ed;border-color:#d9362c}
html[data-theme=light] .tie-break{background:#fff5df;color:#65430d;border-color:#e6cf9c}
html[data-theme=light] .tie-die{color:#946017}
html[data-theme=light] .tie-break-result small{color:#795a26}
html[data-theme=light] :is(.next-step-dialog .controls .btn:focus-visible,.next-step-dialog .controls .btn:not(:disabled):hover){background:#fff0ed;color:#9b271f;border-color:#d9362c}
html[data-theme=light] .catalog-detail pre{background:#f2f4f7;color:#263344;border-color:#d4dce5}
html[data-theme=light] a{color:#9c3027}
html[data-theme=light] a.primary{color:#fff}
@media(max-width:600px){.theme-switch button{min-height:34px;padding:9px}.site-header nav{gap:12px}}
html[data-theme=light] :is(.notice,.saved-deck-entry,.normal-format,.voice-panel,.match-clock,.live-play,.table-zone-bar,.table-zone-tab){background:#f1f4f8;color:#263344;border-color:#c8d2df;box-shadow:none}
html[data-theme=light] .live-play.pending{background:linear-gradient(120deg,#fff0ed,#f8f3f3);border-color:#d9362c}
html[data-theme=light] :is(.normal-format strong,.normal-format span,.setup label,#createPanel label,.voice-panel p,.match-clock small,#accountLoading,.live-play p,.live-play small){color:#4e5c6c}
html[data-theme=light] .turn-announcement{background:#fff5df;color:#69430d;border-color:#c49a4d}
html[data-theme=light] .invitation{background:#fff;color:#263344;border-color:#bdc5d0}
