/* BURNt appearance options. Light retains the existing clubhouse palette. */
:root[data-burnt-theme="dark"] {
  color-scheme: dark;
  --paper:#0d1117; --white:#151c26; --ink:#f4f6fb; --muted:#abb6c5;
  --blue:#a8b5ff; --blue-dark:#d5dcff; --yellow:#f4ca55;
  --orange:#ff8c74; --mint:#253d38; --lilac:#322b48; --line:#35404d;
  --hot:#ff8c74; --bg:var(--paper); --panel:var(--white); --panel2:#1b2631;
  --surface:var(--white); --surface-2:#202a36; --coral:var(--orange);
  --coral-light:#ffac91; --lime:#b8e2a5; --violet:#c6aeff;
  --shadow:0 12px 34px #0005;
}
:root[data-burnt-theme="red"] {
  color-scheme: dark;
  --paper:#14090d; --white:#211017; --ink:#fff0ed; --muted:#d1aab2;
  --blue:#ff6572; --blue-dark:#ffb1aa; --yellow:#ffbd8d;
  --orange:#ff455c; --mint:#351e27; --lilac:#48202f; --line:#63343f;
  --hot:#ff455c; --bg:var(--paper); --panel:var(--white); --panel2:#30141f;
  --surface:var(--white); --surface-2:#391922; --coral:var(--orange);
  --coral-light:#ff96a0; --lime:#ffaf87; --violet:#ff9eaf;
  --shadow:0 12px 38px #0007;
}
:root[data-burnt-theme="dark"],
:root[data-burnt-theme="red"] { background:var(--paper);color:var(--ink); }
:root[data-burnt-theme="dark"] body,
:root[data-burnt-theme="red"] body { background:var(--paper);color:var(--ink); }
:root[data-burnt-theme="dark"] a,
:root[data-burnt-theme="red"] a { color:var(--blue-dark); }
.burnt-theme-picker { display:inline-flex;align-items:center;gap:.4rem;color:var(--muted);font-size:.78rem;font-weight:750;white-space:nowrap; }
.burnt-theme-picker select { min-height:2.6rem;max-width:7rem;padding:.35rem .5rem;border:1px solid var(--line);border-radius:999px;background:var(--white);color:var(--ink);font:inherit;cursor:pointer; }
.burnt-theme-picker select:focus-visible { outline:3px solid var(--blue);outline-offset:2px; }
@media(max-width:40rem) { .burnt-theme-picker>span { position:absolute;clip:rect(0 0 0 0);width:1px;height:1px;overflow:hidden; } .burnt-theme-picker select { max-width:5.7rem;font-size:.74rem; } }
:root:is([data-burnt-theme="dark"],[data-burnt-theme="red"]) :is(
  .burnt-home .topbar,.burnt-profile .topbar,.burnt-discover header,
  .burnt-account header,.burnt-moderation header) {
  background:var(--white);border-color:var(--line);color:var(--ink);box-shadow:none;
}
:root:is([data-burnt-theme="dark"],[data-burnt-theme="red"]) :is(
  .burnt-home .post-card,.burnt-home .side-card,.burnt-home .mine-search,
  .burnt-home .empty-state,.burnt-home .lobby-step,.burnt-profile .form-card,.burnt-profile .profile-card,
  .burnt-discover .person,.burnt-moderation .person,
  .burnt-discover #reportPanel,.burnt-account section) {
  background:var(--white);color:var(--ink);border-color:var(--line);box-shadow:none;
}
:root:is([data-burnt-theme="dark"],[data-burnt-theme="red"]) :is(
  .burnt-discover .person:nth-child(n),.burnt-home .side-card:first-child,
  .burnt-home .side-card--soft,.burnt-home .bottom-nav,.burnt-home .composer,
  .burnt-home .profile-setup-link,.burnt-account .password-change,
  .burnt-account .danger-zone,.burnt-profile .privacy-note,
  .burnt-profile .hint-block,.burnt-profile .check-row) {
  background:var(--surface-2);color:var(--ink);border-color:var(--line);box-shadow:none;
}
:root:is([data-burnt-theme="dark"],[data-burnt-theme="red"]) :is(
  .burnt-home .post-card__header p,.burnt-home .post-actions button,
  .burnt-home .feed-meta p,.burnt-home .side-card p:not(.kicker),
  .burnt-home .lobby-step p,.burnt-home .lobby__intro,.burnt-home .status-list,.burnt-profile .intro>p:not(.eyebrow),
  .burnt-discover .person p,.burnt-moderation .person p,
  .burnt-profile .section-heading p,.burnt-account .steps) { color:var(--muted); }
:root:is([data-burnt-theme="dark"],[data-burnt-theme="red"]) :is(
  .burnt-home .mine-search input,.burnt-home .composer textarea,
  .burnt-profile .field input,.burnt-profile .field textarea,
  .burnt-profile .field select,.burnt-discover select,
  .burnt-account input:not([type=checkbox])) {
  background:var(--white);border-color:var(--line);color:var(--ink);
}
:root:is([data-burnt-theme="dark"],[data-burnt-theme="red"]) .burnt-home .post-avatar {
  background:var(--surface-2);color:var(--ink);border-color:var(--line);
}
:root:is([data-burnt-theme="dark"],[data-burnt-theme="red"]) .burnt-home .preview-pill {
  background:var(--surface-2);color:var(--blue-dark);border-color:var(--line);
}
:root:is([data-burnt-theme="dark"],[data-burnt-theme="red"]) .burnt-home .toast {
  background:var(--surface-2);color:var(--ink);border-color:var(--line);
}
:root:is([data-burnt-theme="dark"],[data-burnt-theme="red"]) .burnt-age-dialog {
  background:var(--white);color:var(--ink);border-color:var(--line);box-shadow:var(--shadow);
}
:root:is([data-burnt-theme="dark"],[data-burnt-theme="red"]) .burnt-age-dialog a { color:var(--blue-dark); }
:root:is([data-burnt-theme="dark"],[data-burnt-theme="red"]) .burnt-home .brand-mark {
  border-color:var(--line);color:#25171d;box-shadow:2px 2px 0 var(--blue);
}
:root[data-burnt-theme="red"] :is(.burnt-home .button--ink,.burnt-home .button--primary,.burnt-account .button) {
  background:#cc2342;border-color:#cc2342;color:#fff;
}
:root[data-burnt-theme="red"] :is(.burnt-home .button--ink,.burnt-home .button--primary,.burnt-account .button):hover {
  background:#a51233;color:#fff;
}

/* Dark mode's light periwinkle action buttons need dark ink to keep readable contrast. */
:root[data-burnt-theme="dark"] :is(
  .burnt-home .button--ink,.burnt-home .button--primary,
  .burnt-profile .button--primary,.burnt-discover button:not(.secondary),
  .burnt-account .button,.burnt-age-dialog button) {
  background:var(--blue);color:#101820;border-color:var(--blue);
}
:root[data-burnt-theme="dark"] :is(
  .burnt-home .button--ink,.burnt-home .button--primary,
  .burnt-profile .button--primary,.burnt-discover button:not(.secondary),
  .burnt-account .button,.burnt-age-dialog button):hover {
  background:var(--blue-dark);color:#101820;
}
:root[data-burnt-theme="red"] .burnt-age-dialog button {
  background:#cc2342;color:#fff;border-color:#cc2342;
}
