/* ═══ HELHEIMERS — the characters' rules every page needs ═══
   css/pages/fate.css arrives with the characters module (core.js MODULES), not
   with every first visit. These are its rules that reach past the character
   pages: printing (any page prints as the page alone, black on white paper)
   and the badges a character carries — copied here word for word, in the
   document where fate.css stood. On a character page fate.css lands right after
   this sheet and says the same again, so the cascade there is the one it was
   written against. page-sheets.test.ts keeps the copy and the original the
   same: change a rule in fate.css, and here. */
@media print {
  @page { size: A4; margin: 12mm; }
  body > :not(#app) { display: none !important; }
  .hdr, .ftr, .bnav, .dice-fab, .sound-btn, .guide, .fog-canvas, .lantern, .toasts,
  .raven-layer, .raven-layer *, .raven-msg, .portal-x, .skip-link, .fissure, .tip, .tray, .tray-backdrop,
  .modal-backdrop, .mist-veil, .secret-layer, .secret-rune, .secret-msg, .ragnarok,
  .pg-fate .sheet-tools, .pg-fate .crumbs, .pg-fate .sheet-hero, .pg-fate .fullsheet::before { display: none !important; }
  html { color-scheme: light !important; }
  html, body { background: #fff !important; color: #000 !important; }
  body { padding-bottom: 0 !important; }
  body::after { display: none !important; }
  #app, #app * {
    color: #000 !important; background: #fff !important; border-color: #000 !important;
    text-shadow: none !important; box-shadow: none !important; clip-path: none !important;
    filter: none !important; animation: none !important;
  }
  #app a { color: #000 !important; text-decoration: underline; }
  #app :is(b, strong, span, small, i, em, bdi, a, label, dt, dd) { background: transparent !important; }
  #app .muted, #app .faint, #app small { color: #333 !important; }
  #app .hx-cover, #app .hx-mark, #app .hx-keeper, #app .hx-tree, #app .hx-raven { filter: grayscale(1) contrast(1.2) !important; }
}
.fate-badge--valhalla { border-color: var(--line-glow); color: var(--accent-text); box-shadow: var(--glow-inset-soft); }
.fate-badge--niflheim { border-color: rgba(var(--fog-color), .45); color: rgb(var(--fog-color)); }
:root[data-theme="light"] .fate-badge--niflheim { color: var(--fg-muted); border-color: var(--line-strong); }
.fate-banner--niflheim { background: var(--facet-edges), linear-gradient(135deg, rgba(var(--fog-color), .10), transparent 65%); }
