/* Creatures of Sonaria Shop: neutral dark theme + slate-blue offer cards.
   Load AFTER /assets/style.css. Matches public class names checked 2026-11-20.
   All changes are limited to the default/dark theme. Existing light mode stays intact. */
:root:not([data-theme="light"]) {
  --bg:#141b1e;
  --bg2:#1b2428;
  --card:#263238;
  --card2:#32424a;
  --line:#43545b;
  --line-hi:#d9b86c;
  --text:#f4efdf;
  --text2:#dce1dd;
  --muted:#bec8ca;
  --strong:#fffaf0;
  --amber:#d9b86c;
  --amber-hi:#ecd497;
  --amber2:#e3c67f;
  --olive:#72945a;
  --green:#b5d990;
  --red:#ffb4a7;
  --header-bg:#1b2428;
  --glass:#263238;
  --thumb-a:#35434a;
  --thumb-b:#1b2428;
  --zebra:#2d3c43;
  --hover:#394b53;
  --card-shadow:none;
}
/* Slate-blue offer cards sit above neutral charcoal and secondary slate panels. */
:root:not([data-theme="light"]) .offer {
  color-scheme:dark;
  --text:#f4efdf;
  --text2:#e0e6e8;
  --muted:#c6d1d6;
  --strong:#fffaf0;
  --green:#c1dfa2;
  --red:#ffb4a7;
  --amber:#e5c77e;
  --amber2:#e5c77e;
  --line:#61747e;
  background:#344650;
  color:var(--text);
  border-color:#344650;
  box-shadow:none;
}
:root:not([data-theme="light"]) .offer:hover { background:#3d525e; border-color:#3d525e; }
:root:not([data-theme="light"]) .offer .thumb { background:#25343d; }
:root:not([data-theme="light"]) .offer .o-title,
:root:not([data-theme="light"]) .offer .price { color:var(--text); }
:root:not([data-theme="light"]) .offer .o-title a { color:inherit; }
:root:not([data-theme="light"]) .offer .buy {
  background:#d9b86c;
  color:#172024;
  min-height:44px;
}
:root:not([data-theme="light"]) .offer .buy:hover { background:#ecd497; color:#172024; }
:root:not([data-theme="light"]) .offer :focus-visible { outline:3px solid #f4efdf; outline-offset:3px; }
/* Supporting blocks remain dark, but lift clearly from the charcoal canvas. */
:root:not([data-theme="light"]) :is(.cat,.stat,.trust td,.faq details,.tier,.calc-side,.istats tr,.ichart) {
  background:var(--card);
  border-color:transparent;
  box-shadow:none;
}
:root:not([data-theme="light"]) .cat:hover,
:root:not([data-theme="light"]) .faq details[open] { background:var(--card2); }
:root:not([data-theme="light"]) .stat b { color:var(--amber2); }
:root:not([data-theme="light"]) .tbl-wrap { background:var(--card); border-color:transparent; }
:root:not([data-theme="light"]) .vt th { background:var(--card2); }
:root:not([data-theme="light"]) .vt td { border-top-color:transparent; }
:root:not([data-theme="light"]) .vt .it img { background:#1b2428; }
:root:not([data-theme="light"]) .vt .buy { min-height:44px; }
:root:not([data-theme="light"]) .top { background:var(--header-bg); border-bottom-color:transparent; backdrop-filter:none; }
:root:not([data-theme="light"]) .foot { background:var(--bg2); border-top-color:transparent; }
:root:not([data-theme="light"]) .hero-home { background:var(--bg); }
/* Only the frame changes: artwork, 4:1 dimensions, fonts and the live H1 remain. */
:root:not([data-theme="light"]) .hero-home .hero-title { border-color:transparent; box-shadow:none; }
:root:not([data-theme="light"]) .btn:not(.ghost) { background:#d9b86c; color:#202923; }
:root:not([data-theme="light"]) .btn:not(.ghost):hover { background:#ecd497; }
:root:not([data-theme="light"]) .sec+.sec { border-top-color:transparent; }

/* ===== Page atmosphere (2026-11-20): forest-to-charcoal page gradient behind the hero, dark green header.
   Changes only page/header backgrounds in the default/dark theme. */
:root:not([data-theme="light"]) {
  --header-bg:rgba(11,26,18,.97);
}
:root:not([data-theme="light"]) body {
  background-color:#141b1e;
  background-image:
    radial-gradient(ellipse 950px 520px at 78% 180px,
      rgba(117,133,56,.15) 0%,
      rgba(69,92,46,.07) 48%,
      rgba(69,92,46,0) 78%),
    linear-gradient(180deg,
      #0b1b12 0%,
      #101e17 35%,
      #12201c 62%,
      #141b1e 100%);
  background-size:100% 1120px;
  background-position:center top;
  background-repeat:no-repeat;
}
/* Remove the opaque hero-section paint so the page gradient shows through. */
/* Inner pages (.hero.sm under the breadcrumb) too: their own radial glow started at the section top
   and showed as a hard band below the breadcrumb. */
:root:not([data-theme="light"]) .hero { background:transparent; }
:root:not([data-theme="light"]) .top {
  background:var(--header-bg);
  border-bottom-color:transparent;
}
/* Scale the atmosphere for shorter mobile hero layouts. */
@media (max-width:600px) {
  :root:not([data-theme="light"]) body {
    background-image:
      radial-gradient(ellipse 420px 320px at 90% 150px,
        rgba(117,133,56,.12),rgba(69,92,46,0) 78%),
      linear-gradient(180deg,#0b1b12 0%,#101e17 38%,#141b1e 100%);
    background-size:100% 1000px;
  }
}
@media print {
  :root:not([data-theme="light"]) body { background-image:none; }
}
@media (forced-colors:active) {
  :root:not([data-theme="light"]) body { background:Canvas; }
}
