/* ============ Starfinder Bestiary — theme overlay ============
   Loaded AFTER bestiary.css (a copy of pf2e-bestiary's). Only the custom
   properties and the chrome fonts change: every structural rule stays the
   engine's, since the shared bestiary-app.js renders identical markup. */
:root, :root[data-theme="dark"] {
  --ink: #070b14; --panel: #0d1424; --panel-2: #131c31; --edge: #22304d;
  --text: #d8ecff; --muted: #7e93b3;
  --brass: #2ee6ff; --brass-dim: #1aa7bd; --verdigris: #5fd3a6; --warn: #ffb347; --good: #5fd3a6;
  --serif: "Orbitron", "Segoe UI", system-ui, sans-serif;
  --mono: "Share Tech Mono", ui-monospace, Consolas, monospace;
}
:root[data-theme="light"] {
  --ink: #dfe7f3; --panel: #eef3fa; --panel-2: #e2e9f4; --edge: #b8c6dc;
  --text: #0f1a2c; --muted: #4e5f7c; --brass: #0a7f93; --brass-dim: #128fa4;
}
.crest { background: radial-gradient(circle at 35% 30%, #7ff3ff, #1aa7bd 70%, #0b3b47); color: #041016; }
header.top h1 { letter-spacing: .06em; font-size: 16px; }
.btn.primary, .tbtn.on, .stog.on-book, .mintog:hover { color: #041016; }
.btn.primary { background: var(--brass); border-color: var(--brass); }
details.rg > summary .badge { color: #041016; }
/* the paper keeps the engine's dark stat-block palette but takes the console accent */
.paper { --p-red: #1aa7bd; --p-red-ink: #041016; }
:root[data-theme="light"] .paper { --p-red: #0a6f80; --p-red-ink: #f2fbff; }
.sb-name, .threat .tl, .eqhead { font-family: "Orbitron", var(--serif); letter-spacing: .04em; }
.sb-trait.sz { background: #2a3550; }
.sb-trait.rar-uncommon { background: #6b4a12; }
.sb-trait.rar-rare { background: #1a4a7a; }
