/* Shared theme overrides for the static pages and their dynamically added UI. */
:root { color-scheme: light; }
header .theme-toggle {
  display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;
  width:36px;height:36px;min-width:36px;min-height:36px;padding:8px;margin:0;border:1px solid #dfe3e9;
  border-radius:20px;background:#fff;color:#475467;cursor:pointer;
  font:600 11px/1.3 'Plus Jakarta Sans',Arial,sans-serif;order:1;
}
header .actions { align-items:center; }
header .actions .theme-toggle { order:0; }
.theme-toggle svg { width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round; }
.theme-toggle:focus-visible { outline:3px solid #b68b00;outline-offset:3px; }
html[data-theme=dark] { color-scheme:dark;--night-bg:#10141c;--night-surface:#1b2230;--night-raised:#252f40;--night-line:#384458;--night-text:#edf1f7;--night-muted:#aab6c8;--night-gold:#f5d46b; }
html[data-theme=dark] body { background:var(--night-bg);color:var(--night-text); }
html[data-theme=dark] button { background:var(--night-raised);color:var(--night-text);border-color:var(--night-line); }
html[data-theme=dark] :is(header,.card,.room,.voice-card,.stage-showcase,.profile-summary,.profile-card,.gold-card,dialog,#authDialog,.room-sidebar,.mic-applications,.room-options-panel,.room-menu nav,#accountMenu .account-panel) {
  background:var(--night-surface);border-color:var(--night-line);color:var(--night-text);
}
html[data-theme=dark] :is(h1,h2,h3,strong,label,.brand,.back,.close,.steps b,.voice-card-copy h3,.discover-heading h2,.field label) { color:var(--night-text); }
html[data-theme=dark] :is(p,small,.muted,.notice,.invite,.audience,.badge,.gold-page p,.gold-note,.field small,.heading small,.content p,.host,.foot,.section-heading p,.profile-summary>p,.profile-heading>p:last-child,.field label span) { color:var(--night-muted); }
html[data-theme=dark] :is(nav a,.gold-page,.gold-attendee a,#accountMenu .account-trigger,#accountMenu .account-panel a,#accountMenu .account-panel button) { color:var(--night-text); }
html[data-theme=dark] :is(input,select,textarea,#chatInput,.gold-page input,.gold-page select,.gold-dialog select) { background:var(--night-bg);color:var(--night-text);border-color:var(--night-line); }
html[data-theme=dark] :is(input,textarea)::placeholder { color:var(--night-muted); }
html[data-theme=dark] :is(input,textarea,select):focus { background:var(--night-bg);border-color:var(--night-gold); }
html[data-theme=dark] :is(.secondary,.quiet-button,.light,.empty,.privacy-badge,.intro-strip,.judge-grid>div,.stage,.queue,#controls.bottom,.chat-message p,.room-options-panel button,#accountMenu .account-trigger,header .theme-toggle) { background:var(--night-raised);color:var(--night-text);border-color:var(--night-line); }
html[data-theme=dark] main#room { background:radial-gradient(ellipse at 35% 30%,#b78a0010,transparent 70%); }
html[data-theme=dark] :is(.orb,.avatar,.prize,.stage-top,.steps,.sidebar-tabs,#chatForm,.gold-page td,.gold-page th,.profile-summary .summary-note,.mic-application) { border-color:var(--night-line); }
html[data-theme=dark] :is(.tag,.pill,.ribbon,.gold-banner,.gold-gift-toast,.chat-message.own p,.sidebar-tabs button[aria-selected=true],nav a.active,nav [aria-current=page],.stage-prize,.mic-application button,.mic-applications>button) { background:#423718;color:var(--night-gold);border-color:#73612c; }
html[data-theme=dark] :is(.gold-amount,.gold-card strong,.gold-page a,.gold-nav a,#accountMenu .gold-wallet-link,.eyebrow,.voice-card-copy>span,.chat-message strong) { color:var(--night-gold); }
html[data-theme=dark] :is(#accountMenu .account-panel a:hover,#accountMenu .account-panel button:hover,.room-options-panel button:hover) { background:var(--night-raised); }
html[data-theme=dark] :is(#accountMenu .account-panel .account-logout,.room-options-panel button.room-delete,#profileMessage.error,.account-error,#seatDialogMessage) { color:#ffaaa0; }
html[data-theme=dark] .hero { background-color:var(--night-bg);background-blend-mode:soft-light; }
html[data-theme=dark] dialog::backdrop { background:#000a; }
/* Pair icon colors with their surfaces; native buttons also inherit dark color-scheme. */
html[data-theme=dark] :is(.yellow,.primary,.join,.save-button,#chatSend) { background:#facc15;color:#332900;border-color:#facc15; }
html[data-theme=dark] :is(.art,.contests .art) { background:radial-gradient(ellipse at bottom,#55441f,#29271f 75%); }
html[data-theme=dark] :is(.art.music,.contests .art.music) { background:radial-gradient(ellipse at bottom,#49355f,#282136 75%); }
html[data-theme=dark] .music::after { color:#c3a3e6; }
html[data-theme=dark] :is(.save,.room-options>summary,.room-menu summary,.create-room-cancel) { background:var(--night-raised);color:var(--night-text);border-color:var(--night-line); }
html[data-theme=dark] :is(.save[aria-pressed=true],.room-options[open]>summary) { background:#423718;color:var(--night-gold);border-color:#73612c; }
html[data-theme=dark] :is(.avatar,.participant-avatar,.profile-avatar,.member-avatar,#accountMenu .account-avatar,.judge-grid span) { background:#423718;color:var(--night-gold);border-color:#73612c; }
html[data-theme=dark] :is(.participant-count,.contests .art .participant-count,.participant-count.has-avatars) { background:var(--night-surface);color:var(--night-gold);border-color:var(--night-line); }
html[data-theme=dark] .participant-remaining { color:var(--night-gold); }
html[data-theme=dark] :is(.foot,.create-room-actions,.room-menu .gold-nav) { border-color:var(--night-line); }
html[data-theme=dark] .winner-announcements { background:#292615;color:#e6d9ac;border-color:#514729; }
html[data-theme=dark] .winner-announcements-label { color:var(--night-gold); }
html[data-theme=dark] .winner-announcements-sample { color:#c0b58f; }
html[data-theme=dark] header a.awaaj-brand { background:transparent; }
/* The monochrome mascot becomes white while the gold stays gold. */
html[data-theme=dark] .awaaj-brand img { filter:invert(1) hue-rotate(180deg);mix-blend-mode:screen; }
html[data-theme=dark] #controls .round { background:var(--night-surface);color:var(--night-text);border-color:var(--night-line); }
html[data-theme=dark] #controls .round[aria-pressed=true] { background:#423718;color:var(--night-gold);border-color:#73612c; }
html[data-theme=dark] #controls .room-exit { background:#43252a;color:#ffaaa0;border-color:#78414a; }
html[data-theme=dark] :is(.room-menu nav a:hover,.room-options-panel button:hover,.card.room .room-options-panel button:hover) { background:var(--night-raised); }
html[data-theme=dark] :is(.room-options-panel button,.card.room .room-options-panel button) { background:var(--night-surface);color:var(--night-text); }
html[data-theme=dark] :is(.room-options-panel button.room-delete,.card.room .room-options-panel button.room-delete) { color:#ffaaa0; }
html[data-theme=dark] #seats .orb { background:#39304b;color:#dac3f4;border-color:var(--night-line); }
html[data-theme=dark] #seats .orb.empty { background:var(--night-surface);color:var(--night-muted); }
html[data-theme=dark] #seats .host .orb { background:#423718;color:var(--night-gold);border-color:#b69a43; }
html[data-theme=dark] #seats .seat-locked .orb { border-color:#b69a43; }
html[data-theme=dark] #seats .seat-muted .orb { box-shadow:0 0 0 2px #b86d74; }
html[data-theme=dark] :is(#status,#chatStatus,.chat-message .message-meta,.note,.hero-note,.create-room-required,.create-room-optional) { color:var(--night-muted); }
html[data-theme=dark] .sidebar-tabs button:not([aria-selected=true]) { color:var(--night-muted); }
html[data-theme=dark] #newMessages { background:#423718;color:var(--night-gold); }
html[data-theme=dark] :is(#createDialog,#deleteRoomDialog,#shareRoomDialog,.gold-dialog) { background:var(--night-surface);color:var(--night-text);border-color:var(--night-line); }
html[data-theme=dark] :is(#createForm input,#createForm select,#createForm textarea,#shareRoomLink) { background:var(--night-bg);color:var(--night-text);border-color:var(--night-line); }
html[data-theme=dark] :is(#createForm input,#createForm select,#createForm textarea):focus { background:var(--night-bg);border-color:var(--night-gold); }
html[data-theme=dark] :is(#createForm input,#createForm textarea)::placeholder { color:var(--night-muted); }
html[data-theme=dark] :is(#createDialog .create-room-help,#createRoomIntro) { color:var(--night-muted); }
html[data-theme=dark] :is(#createMessage,#directoryMessage,#profileMessage,.profile-summary #photoMessage) { color:var(--night-gold); }
html[data-theme=dark] :is(#deleteRoomName,.create-room-field label) { color:var(--night-text); }
html[data-theme=dark] #createDialog .room-type-switch { background:var(--night-bg);border-color:var(--night-line); }
html[data-theme=dark] .room-type-switch span { color:var(--night-muted); }
html[data-theme=dark] .room-type-switch input:checked+span { background:#423718;color:var(--night-gold); }
html[data-theme=dark] :is(#profileMessage.error,.profile-summary #photoMessage.error) { color:#ffaaa0; }
/* Shared form states, including controls added by wallet/admin/gifting scripts. */
html[data-theme=dark] :is(input,select,textarea) { color-scheme:dark;accent-color:var(--night-gold);caret-color:var(--night-gold); }
html[data-theme=dark] :is(option,optgroup) { background:var(--night-bg);color:var(--night-text); }
html[data-theme=dark] :is(input,select,textarea):focus-visible { outline:2px solid var(--night-gold);outline-offset:2px; }
html[data-theme=dark] :is(input[readonly],input:disabled,select:disabled,textarea:disabled) { background:var(--night-raised);color:var(--night-muted);border-color:var(--night-line); }
html[data-theme=dark] #createForm :is(input,select,textarea):disabled { background:var(--night-raised);color:var(--night-muted); }
html[data-theme=dark] input:autofill { background:var(--night-bg);color:var(--night-text);box-shadow:0 0 0 1000px var(--night-bg) inset; }
html[data-theme=dark] input:-webkit-autofill { -webkit-text-fill-color:var(--night-text);caret-color:var(--night-gold);-webkit-box-shadow:0 0 0 1000px var(--night-bg) inset; }
html[data-theme=dark] input::file-selector-button { background:var(--night-raised);color:var(--night-text);border:1px solid var(--night-line);border-radius:6px; }
html[data-theme=dark] :is(.gold-page button,.gold-dialog button,.gold-room-panel button,.gift-seat) { background:#423718;color:var(--night-gold);border-color:#73612c; }
html[data-theme=dark] .room-danger { background:#752e2a;color:#fff;border-color:#ad5149; }
html[data-theme=dark] #createDialog .create-room-actions .yellow { background:#facc15;color:#332900; }
html[data-theme=dark] :is(button,a,summary):focus-visible { outline:3px solid var(--night-gold);outline-offset:3px; }
@media(max-width:760px) { header .theme-toggle span { display:none; } header .theme-toggle { padding:7px; } }

@media (hover:hover) and (pointer:fine){
  button:not(:disabled):not(.room-options button):hover,
  summary:not(.room-options summary):hover{filter:brightness(1.1)}
}
