/* Visitor-selected palette. The server-rendered page defaults to Amber, including without JavaScript. */
html { color-scheme: dark; }
/* Shared scroll surfaces follow the visitor palette, including nested panels. */
html { --scrollbar-track:#050505; --scrollbar-thumb:var(--olive); }
* { scrollbar-width:thin; scrollbar-color:var(--scrollbar-thumb) var(--scrollbar-track); }
/* Use rounded custom thumbs where WebKit scrollbar styling is supported. */
@supports selector(::-webkit-scrollbar) {
  * { scrollbar-width:auto; scrollbar-color:auto; }
  ::-webkit-scrollbar { width:12px; height:12px; }
  ::-webkit-scrollbar-track,::-webkit-scrollbar-corner { background:var(--scrollbar-track); }
  ::-webkit-scrollbar-thumb { min-height:32px; border:3px solid var(--scrollbar-track); border-radius:999px; background:var(--scrollbar-thumb); }
  ::-webkit-scrollbar-thumb:hover { background:color-mix(in srgb,var(--scrollbar-thumb) 80%,white); }
  ::-webkit-scrollbar-thumb:active { background:var(--scrollbar-thumb); }
}
@media(forced-colors:active) { * { scrollbar-color:auto; } }
.compendium-page { color-scheme:light; }
html[data-theme=orange] .compendium-page { color-scheme:dark; }
.footer-appearance { grid-column:1/-1; display:flex; align-items:center; justify-content:flex-end; gap:18px; }
.appearance-caption { color:var(--muted); font:10px/1.5 var(--display); letter-spacing:.12em; }
.appearance-options { display:inline-flex; max-width:100%; border:1px solid var(--line); background:var(--surface); }
.appearance-option { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 13px; border:0; border-radius:0; background:transparent; color:var(--muted); font:500 11px/1.4 var(--display); cursor:pointer; }
.appearance-option+.appearance-option { border-left:1px solid var(--line); }
.appearance-option:hover { color:var(--text); background:color-mix(in srgb,var(--olive) 8%,transparent); }
.appearance-option[aria-pressed=true] { background:var(--olive); color:var(--bg); }
.appearance-option:focus-visible { outline:2px solid var(--olive); outline-offset:4px; z-index:1; }
.appearance-swatch { width:7px; height:7px; flex-shrink:0; border:1px solid currentColor; }
.swatch-blue { background:#3977ec; }.swatch-orange { background:#ff840d; }
.appearance-option[aria-pressed=true] .appearance-swatch { background:currentColor; }
.appearance-toggle { display:inline-flex; align-items:center; gap:13px; min-height:46px; padding:10px 15px; border:1px solid var(--line); background:var(--surface); color:var(--muted); font:11px/1.5 var(--display); letter-spacing:.04em; }
.appearance-toggle:hover { border-color:var(--olive); }
.appearance-track { display:inline-flex; align-items:center; width:38px; height:21px; padding:3px; border:1px solid var(--olive); border-radius:20px; background:transparent; }
.appearance-track>span { display:block; width:13px; height:13px; background:var(--olive); border-radius:50%; transform:translateX(0); transition:transform .2s; }
.appearance-toggle[aria-checked=true] .appearance-track>span { transform:translateX(17px); }
.appearance-toggle[aria-checked=false] .appearance-earth,.appearance-toggle[aria-checked=true] .appearance-orange { color:var(--olive); }
html:is(:not([data-theme]),[data-theme=earth]) .live-dinosaur-page .specimen-stage .specimen-scan-art { filter:hue-rotate(55deg) saturate(.55); }
html[data-theme=orange] {
  --bg:#000000; --surface:#000000; --surface-high:#0e0802; --line:#6a3c13;
  --text:#ffb05f; --muted:#c78d50; --olive:#ff840d; --sand:#ffa33d; --cool:#de891f;
}
html[data-theme=orange] body { background:#000000; background-image:none; }
html[data-theme=orange] ::selection { background:#ff840d; color:#080605; }
html[data-theme=orange] .top-strip { background:#0c0a08; color:#c39266; border-color:#6a3c13; }
html[data-theme=orange] .site-header { background:#080808f7; border-bottom:2px solid #8a4b14; box-shadow:0 8px 24px #0005; }
html[data-theme=orange] .brand,html[data-theme=orange] .footer-brand { color:#ffb05f; font-family:var(--display); font-weight:500; }
html[data-theme=orange] .brand-mark { border-color:#8a4b14; color:#ff840d; }
html[data-theme=orange] .brand small { color:#bc9068; }
html[data-theme=orange] .nav-list { background:#0b0a09; border-color:#6a3c13; }
html[data-theme=orange] .nav-list a { color:#d5b99c; }
html[data-theme=orange] .nav-list a:hover,html[data-theme=orange] .nav-list a[aria-current=page] { color:#ffb05f; background:#ff840d0d; }
html[data-theme=orange] .account summary { color:#e9c4a1; }
html[data-theme=orange] .site-footer { background:#080706; border-top:2px solid #8a4b14; }
html[data-theme=orange] .site-footer nav { font-family:var(--display); color:#d4ad88; }
html[data-theme=orange] .footer-bottom { color:#aa8868; }
html[data-theme=orange] .hero { background:#080706; }
html[data-theme=orange] .hero-art:after { background:linear-gradient(90deg,#000000eb 0%,#000000cf 24%,#00000080 50%,#00000026 100%),linear-gradient(0deg,#000000,transparent 24%); }
html[data-theme=orange] .hero-content>p:not(.eyebrow) { color:var(--muted); }
html[data-theme=orange] .button { color:#160e07; font-family:var(--display); }
html[data-theme=orange] .button:hover { background:#ffc087; color:#160e07; }
html[data-theme=orange] .button-outline,html[data-theme=orange] .button-quiet { color:var(--text); border-color:var(--line); }
html[data-theme=orange] .button-outline:hover,html[data-theme=orange] .button-quiet:hover { background:#ff840d15; color:var(--text); }
html[data-theme=orange] .button-placeholder:disabled { background:#15110e; color:#ba9470; border-color:var(--line); }
html[data-theme=orange] :is(.panel,.species-card,.ranking-panel,.stored-card,.mutation-card,.community-card,.server-strip,.notice,.state) { background:var(--surface); border-color:var(--line); }
html[data-theme=orange] .panel:before { background:#ff840d66; }
html[data-theme=orange] :is(.tabs button:hover,.tabs button[aria-selected=true],.category-buttons button[aria-pressed=true]) { background:#ff840d0d; }
/* Map imagery keeps its geographic colours; its controls follow the selected palette. */
html[data-theme=orange] :is(.gateway-shell,.gateway-sidebar,.gateway-top,.gateway-bottom,.gateway-tools button,.gateway-results button) { background:#0e0c0a; border-color:var(--line); color:var(--text); }
html[data-theme=orange] .gateway-sidebar input[type=search] { background:#070605; border-color:var(--line); color:var(--text); }
html[data-theme=orange] :is(.gateway-tag,.gateway-north,.gateway-waypoint output,.gateway-bottom output) { color:var(--olive); }
html[data-theme=orange] :is(.gateway-help,.gateway-waypoint p) { color:var(--muted); }
html[data-theme=orange] .gateway-toggle input { accent-color:var(--olive); }
/* Rules and species dossiers keep their layout and adopt amber instrumentation. */
html[data-theme=orange] :is(.rules-navigation,.rules-panel-heading,.rules-list li,.rules-pack-group,.rules-pack-group h4,.rules-strike-steps li,.rules-future-limit,.dossier-visual,.dossier-limitations,.dossier-section-number) { background:#100e0b; border-color:var(--line); }
html[data-theme=orange] :is(.rules-navigation li a,.rules-list li,.rules-pack-table tbody th,.rules-pack-group h4,.rules-strike-steps h3,.dossier-prose p,.dossier-prose ul,.dossier-prose ol,.dossier-card p,.dossier-limitations>p) { color:var(--text); }
html[data-theme=orange] :is(.rules-subheading>.eyebrow,.rules-navigation li a span,.rules-step-label,.dossier-card-code,.dossier-visual-code,.dossier-visual figcaption,.dossier-breadcrumb>span,.dossier-footer>span) { color:var(--muted); }
html[data-theme=orange] :is(.rules-navigation li a:hover,.rules-navigation li a[aria-current=location],.rules-unlimited) { background:#ff840d10; color:var(--olive); border-color:var(--line); }
html[data-theme=orange] .rules-pack-table :is(th,td) { border-color:var(--line); }
html[data-theme=orange] .dossier-card { border-top-color:var(--olive); }
/* The light Earth archive becomes a dark archive only in Orange / Black mode. */
html[data-theme=orange] .compendium-page { --text:#ffb05f; --muted:#c78d50; --line:#6a3c13; --olive:#ff840d; --sand:#ffa33d; }
html[data-theme=orange] .compendium-page :is(.compendium-library,.species-card,.compendium-tools input,.compendium-tools select,.empty-inline) { background:#100e0b; border-color:var(--line); color:var(--text); box-shadow:none; }
html[data-theme=orange] .compendium-page :is(.species-image,.compendium-library-key) { background:#19140f; border-color:var(--line); }
html[data-theme=orange] .compendium-page :is(.dinocom-masthead .eyebrow,.compendium-edition,.compendium-tools label>span,.compendium-count,.compendium-library-key,.species-classification,.species-summary p,.reference-note p,.image-pending-label) { color:var(--muted); }
html[data-theme=orange] .compendium-page :is(.compendium-edition span,.compendium-library-key strong,.compendium-library-key a,.species-open) { color:var(--olive); border-color:var(--line); }
html[data-theme=orange] .compendium-page :is(.archive-code,.species-record-tag) { background:#21180f; color:#f0b47b; border-color:var(--line); }
html[data-theme=orange] .compendium-page :is(.compendium-portal,.compendium-library-key b) { background:#ff840d; color:#160e07; border-color:#ff840d; }
html[data-theme=orange] .compendium-tools input::placeholder { color:#aa8a6b; }
html[data-theme=orange] .compendium-page .reference-note { border-color:var(--line); }
html[data-theme=orange] .compendium-page .species-image .dino-art { filter:sepia(1) saturate(1.5) hue-rotate(345deg); opacity:.7; }
@media(max-width:560px) { .footer-appearance { justify-content:flex-start; flex-wrap:wrap; gap:10px; } .appearance-toggle { padding:10px 12px; gap:10px; } }
@media(prefers-reduced-motion:reduce) { .appearance-track>span { transition:none; } }
html[data-theme="orange"] {
  --instrument-160e07:#160e07;
  --instrument-482b16:#482b16;
  --instrument-603b23:#603b23;
  --instrument-633d23:#633d23;
  --instrument-754a29:#754a29;
  --instrument-81512c:#81512c;
  --instrument-82542e:#82542e;
  --instrument-82552e:#82552e;
  --instrument-8d5b32:#8d5b32;
  --instrument-925e34:#925e34;
  --instrument-986437:#986437;
  --instrument-986c44:#986c44;
  --instrument-9e6536:#9e6536;
  --instrument-a57449:#a57449;
  --instrument-a58c73:#a58c73;
  --instrument-a7754d:#a7754d;
  --instrument-a98d74:#a98d74;
  --instrument-aa7d54:#aa7d54;
  --instrument-aa815b:#aa815b;
  --instrument-b29b85:#b29b85;
  --instrument-b67f50:#b67f50;
  --instrument-c39266:#c39266;
  --instrument-d3b594:#d3b594;
  --instrument-d4a37a:#d4a37a;
  --instrument-dd9a5a:#dd9a5a;
  --instrument-e49a4a14:#e49a4a14;
  --instrument-e7ac72:#e7ac72;
  --instrument-e89b54:#e89b54;
  --instrument-e99b4a13:#e99b4a13;
  --instrument-e9b17b:#e9b17b;
  --instrument-eea263:#ff942b;
  --instrument-efa15b:#ff840d;
  --instrument-efa15b0b:#ff840d0b;
  --instrument-efb27b:#efb27b;
  --instrument-efb37b:#efb37b;
  --instrument-f0b47a:#f0b47a;
  --instrument-f2a25a:#ff840d;
  --instrument-f2b77b:#ffa33d;
  --instrument-f4b278:#f4b278;
  --instrument-f5b674:#ffb05f;
  --instrument-f8b577:#ffb05f;
  --instrument-ffb878:#ffad52;
  --instrument-ffd1a0:#ffd1a0;
}
