/* Chats 193-194: reliable Sulur Pusaka payload plus six-pixel detail clearance.
   The data URI is byte-identical to relic-emblem-reference-mask-v001.png, so
   local file viewing cannot lose the motif through an external mask fetch. */
body[data-relic-emblem-render="embedded-mask-v001"] {
  --relic-sulur-pusaka-mask: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAADt0lEQVR42u2Ye4jVRRTHP+uuUEursYKVmD1MxVeShBGpURkR5aKhVFBusRBtlJE9/rD+yCChoJSU1coIzJSwIvePENcUtxcphC5JRYmkpbZLtWbaY61P/5xL0+Vn3Xv3unv/2APDzJwzc+bLzHnMTJVKJdMgKpwGAFYawGeAqnIqrCqjk8wEdgCTgL2VCPA4UAt8CswFDvTHEV+awbsWMMABTAW294cNXgbsAd7K4/+cMbY1gzcFGFc0QrXQ0uI/1KNOTGT3qq3q4+om9cxENkp9JZl7TxFrFgVwdyywP+oDanXIFqqDoz1SvTzaN6l71LvVppi373QB7FTbon2d+pq6Q/1G/TIZd4H6ufqVekS9MZF1BMjhha5bU4Q1nAFcFO33gN3AZ8C5wOq8WFgLjIr+94msK+oLgc5y2+C76l/qy+p4dV7sxkt59rZOHaE2h3yrOl9dktjhnELXLSYO3gE8AOwDDgNjgNHAxNjFTcAvwElgNvAH0AFMBrYCx4BDwE5gbcbp/FboDl6tjs3gP6E+He1G9Sn1vHCIHK1SV6hPxrjp6iPqOf+xSzfE3FmFOsnD6l71wTz+YfV4eGyDeknw18UCH0R/UfTb1WEZ+ueqVyb9r2P8LYU6yXNAE7AcuAL4JDLIEOB34FZgI1AP/ACciHltScoD6Al5jhaHSUwIZ1kc5jA6HOntYpxkVnJs3epHEctQ69WpsWMvqlPi+J+NWLdAfT+CN+FM69UvEh2oY9STsUZjKXHw1SQwT074YyOLvK5uTvhb1J8C8AJ1o7o8eD2RZVL9S0P/2t548XfACGAl0A7cH9eqhohldwLTcocR9aPAxUAzsD7mzQ6TWAOcBVwDjAe2Aff1Jg6OVL/137Qt8faOJK0dibR2trpLPZroqVO3x/yuyDTLyp3q6vL6M2LBd9Sh6jS1NmSqhzJ03Bz5ufZ05OKs0qgeVB/K4+eopZf6SwY4OGm3xZHWR78pAdilDuoPgC1xa8ndXnaG1zarJwLckghX9WpNXwIcqq5Rz094t0ecy9ELiWyDeuxUmeL/SinPzupI7hMS3gbgjWh/CCxMZLdFaKku5U1SU+Kc4RHHemLx1oiZJKkvlzYBDkZ67BOAnUA3cBfwZ1yrJgHTQ/5x1DOAOdFe1Nc/C92xi0eBx+JCcVXIfo26MW7VS4E3S353luhdQ9Tr83i7wkFmJs60LN4vfR5mssrzAbChjDrL+nm0Iuzxx0r93dof7466Sv5+a4+HUkV+vw38sA4ALIX+BlvdYQBlFTqWAAAAAElFTkSuQmCC");
  --relic-niskala-emblem-mask: var(--relic-sulur-pusaka-mask);
}

body[data-relic-emblem-render="embedded-mask-v001"]
  .reference-rarity-pennant[data-rarity="Relic"]::after {
  content: "" !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: #dfd2b7 !important;
  -webkit-mask: var(--relic-sulur-pusaka-mask) center / contain no-repeat !important;
  mask: var(--relic-sulur-pusaka-mask) center / contain no-repeat !important;
  mask-mode: alpha;
}

body[data-relic-emblem-render="embedded-mask-v001"]
  #grid > .holo-card[data-rarity="Relic"] .kicker > span:last-child::before,
body[data-relic-emblem-render="embedded-mask-v001"]
  .collectible-card.holo-card[data-rarity="Relic"] .collectible-rarity::before,
body[data-relic-emblem-render="embedded-mask-v001"]
  > .card.holo-card[data-rarity="Relic"] .copy > small::before,
body[data-relic-emblem-render="embedded-mask-v001"]
  #museumFeature .museum-feature-tags > span:last-child::before {
  content: "" !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: #dfd2b7 !important;
  -webkit-mask: var(--relic-sulur-pusaka-mask) center / contain no-repeat !important;
  mask: var(--relic-sulur-pusaka-mask) center / contain no-repeat !important;
  mask-mode: alpha;
}

body[data-frame-signature-clearance="lowered-6px-v001"]
  #cardDialog .collectible-card.holo-card > .frame-signature {
  margin-block-start: 6px !important;
  border-radius: 8px !important;
}

body[data-frame-signature-clearance="lowered-6px-v001"]
  #cardDialog .collectible-card.holo-card:not([data-rarity="Mythic"]):not([data-rarity="Relic"])
  > .frame-signature {
  border-top: 1px solid color-mix(in srgb, var(--frame-secondary, #8e7e68) 62%, #151719) !important;
}

@media (forced-colors: active) {
  body[data-relic-emblem-render="embedded-mask-v001"]
    .reference-rarity-pennant[data-rarity="Relic"]::after,
  body[data-relic-emblem-render="embedded-mask-v001"]
    #grid > .holo-card[data-rarity="Relic"] .kicker > span:last-child::before,
  body[data-relic-emblem-render="embedded-mask-v001"]
    .collectible-card.holo-card[data-rarity="Relic"] .collectible-rarity::before,
  body[data-relic-emblem-render="embedded-mask-v001"]
    > .card.holo-card[data-rarity="Relic"] .copy > small::before,
  body[data-relic-emblem-render="embedded-mask-v001"]
    #museumFeature .museum-feature-tags > span:last-child::before {
    background: CanvasText !important;
    filter: none !important;
  }

  body[data-frame-signature-clearance="lowered-6px-v001"]
    #cardDialog .collectible-card.holo-card > .frame-signature {
    border-top-color: CanvasText !important;
  }
}
