/* GGG's official item tooltip colours; source and scope in
   docs/item-text-colours.md. Only explicitly marked item text participates.
   Loot-filter labels, tier bars, selection borders and verdicts keep their
   own palettes. The important declarations override room-specific name
   selectors without spreading colour to metadata or neighbouring controls. */
:root {
  --ec-item-normal: #c8c8c8;
  --ec-item-magic: #8888ff;
  --ec-item-rare: #ffff77;
  --ec-item-unique: #af6025;
  --ec-mod-explicit: #8888ff;
  --ec-mod-crafted: #b4b4ff;
  --ec-mod-fractured: #a29162;
}
[data-ec-rarity="normal"] { color: var(--ec-item-normal) !important; }
[data-ec-rarity="magic"] { color: var(--ec-item-magic) !important; }
[data-ec-rarity="rare"] { color: var(--ec-item-rare) !important; }
[data-ec-rarity="unique"] { color: var(--ec-item-unique) !important; }
[data-ec-mod="explicit"], [data-ec-mod="desecrated"] { color: var(--ec-mod-explicit) !important; }
[data-ec-mod="crafted"] { color: var(--ec-mod-crafted) !important; }
[data-ec-mod="fractured"] { color: var(--ec-mod-fractured) !important; }

/* Keep the game's pale ink readable in Daylight without changing its hue.
   The small dark backing belongs only to item text, not the page palette. */
html[data-fk-theme="daylight"] [data-ec-rarity],
html[data-fk-theme="daylight"] [data-ec-mod] {
  background-color: #0a0908;
  box-shadow: 0 0 0 .12em #0a0908;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
