/* Theme tokens apply to both player and admin screens for the signed-in account. */
body.player-theme.custom-player-theme{--bg:var(--t-background);--panel:var(--t-surface);--panel2:var(--t-soft);--line:var(--t-border);--text:var(--t-text);--muted:var(--t-muted);--cyan:var(--t-primary);--pink:var(--t-danger);--gold:var(--t-accent);--green:var(--t-success);background:var(--t-background);color:var(--t-text)}
.player-theme.custom-player-theme .app{background:var(--t-background)}
.player-theme.custom-player-theme .aurora{background:radial-gradient(ellipse at top left,var(--t-soft),transparent 60%);opacity:.3}
.player-theme.custom-player-theme :is(.topbar,.bottom-nav,.auth-card,.modal-card,.game-card,.list-row,.stat,.empty){background:var(--t-surface);border-color:var(--t-border);color:var(--t-text)}
.player-theme.custom-player-theme :is(.topbar>div:nth-child(2),.section-head h2,.game-card strong,.list-row h3,.reveal h2){color:var(--t-text)}
.player-theme.custom-player-theme :is(.topbar small,.stat small,.list-row p,.game-card small,.brand-panel p,.combat-log p,label,.bottom-nav button){color:var(--t-muted)}
.player-theme.custom-player-theme :is(.primary,.logo,.bottom-nav button.active,.bottom-nav .scan-nav span,.toast){background:var(--t-primary);border-color:var(--t-primary);color:var(--t-on_primary)}
.player-theme.custom-player-theme .logo span{color:var(--t-on_primary)}
.player-theme.custom-player-theme :is(.outline,.sample-card span,input,select){background:var(--t-surface);border-color:var(--t-border);color:var(--t-text)}
.player-theme.custom-player-theme .hero{background:linear-gradient(115deg,var(--t-soft),var(--t-highlight));border-color:var(--t-border)}
.player-theme.custom-player-theme .hero h2{color:var(--t-text)}.player-theme.custom-player-theme .hero p{color:var(--t-text)}
.player-theme.custom-player-theme :is(.eyebrow,.rank,h1,.mmr-pill b,.mmr-pill span){color:var(--t-accent)}
.player-theme.custom-player-theme :is(h1 em,.link,.tabs button.active){color:var(--t-primary)}
.player-theme.custom-player-theme .tabs button{color:var(--t-muted)}
.player-theme.custom-player-theme :is(.tabs,.tabs button.active,.combat-log){border-color:var(--t-border)}
.player-theme.custom-player-theme :is(.tag,.mmr-pill){background:var(--t-soft);border-color:var(--t-border);color:var(--t-text)}
.player-theme.custom-player-theme .error{color:var(--t-danger)}
.player-theme.custom-player-theme .stat.cyan b{color:var(--t-primary)}.player-theme.custom-player-theme .stat.pink b{color:var(--t-danger)}.player-theme.custom-player-theme .stat.gold b{color:var(--t-accent)}
.player-theme.custom-player-theme button:focus-visible{outline-color:var(--t-accent)}
.player-theme.custom-player-theme .friendly-entry{background:linear-gradient(120deg,var(--t-primary),var(--t-accent));color:var(--t-on_primary)}
.player-theme.custom-player-theme .friendly-note{background:var(--t-soft);border-color:var(--t-border);color:var(--t-text)}
.player-theme.custom-player-theme .friend-section>h3{color:var(--t-text)}
@media(hover:hover){.player-theme.custom-player-theme .primary:hover{background:var(--t-primary);filter:brightness(.93)}.player-theme.custom-player-theme .outline:hover{background:var(--t-soft)}}
.custom-player-theme:not(.player-theme) .app{background:var(--t-background);color:var(--t-text)}
.custom-player-theme:not(.player-theme) .aurora{background:radial-gradient(ellipse at top left,var(--t-soft),transparent 58%),radial-gradient(ellipse at bottom right,var(--t-highlight),transparent 52%);opacity:.35}
.custom-player-theme:not(.player-theme) :is(.topbar,.bottom-nav,.modal-card,.asset-panel,.list-row,.game-card,.stat,.empty){background:var(--t-surface);border-color:var(--t-border);color:var(--t-text)}
.custom-player-theme:not(.player-theme) :is(.topbar>div:nth-child(2),.section-head h2,.list-row h3,.game-card strong,.asset-panel h3,.asset-panel summary){color:var(--t-text)}
.custom-player-theme:not(.player-theme) :is(.topbar small,.section-head p,.list-row p,.game-card small,.asset-note,.asset-panel p,label){color:var(--t-muted)}
.custom-player-theme:not(.player-theme) :is(.primary,.logo,.bottom-nav button.active,.toast){background:var(--t-primary);border-color:var(--t-primary);color:var(--t-on_primary)}
.custom-player-theme:not(.player-theme) :is(.outline,input,select){background:var(--t-surface);border-color:var(--t-border);color:var(--t-text)}
.custom-player-theme:not(.player-theme) :is(.eyebrow,.rank,.link){color:var(--t-accent)}
.custom-player-theme:not(.player-theme) :is(.tag,.mmr-pill){background:var(--t-soft);border-color:var(--t-border);color:var(--t-text)}
.custom-player-theme:not(.player-theme) .error{color:var(--t-danger)}
.theme-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:14px;margin-top:18px}.theme-choice{display:flex;flex-direction:column;align-items:flex-start;gap:14px;text-align:left;padding:20px!important}.theme-choice[aria-pressed=true]{outline:3px solid var(--cyan);outline-offset:2px}.theme-choice small{font-size:12px}.theme-swatches{display:flex;gap:7px}.theme-swatches i{display:block;width:30px;height:30px;border-radius:50%;border:1px solid #8885}.theme-color-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:14px}.theme-color-grid input[type=color]{height:48px;padding:4px;cursor:pointer}.theme-sample{background:linear-gradient(120deg,var(--t-background),var(--t-soft));color:var(--t-text);border:1px solid var(--t-border);padding:25px;border-radius:18px;margin-top:20px}.theme-sample p{color:var(--t-muted)}.theme-sample-button{display:inline-block;background:var(--t-primary);color:var(--t-on_primary);padding:12px 18px;border-radius:12px}.theme-sample-panel{display:block;background:var(--t-surface);border:1px solid var(--t-border);color:var(--t-text);padding:18px;margin-top:18px;border-radius:12px}.theme-sample-panel b{color:var(--t-accent);margin-left:12px}
