/*
 * PRANATARA chat-189 — literal bronze Relic strip + Sulur Pusaka emblem.
 *
 * The rarity strip returns to the owner-supplied brown/bronze raster pixels.
 * The Relic pennant and compact Relic labels keep their proven geometry but
 * use the reference botanical glyph and the same muted bronze family.  This
 * layer is static: it adds no keyframe, transition, pointer tracking, or
 * transform.
 */

body[data-relic-reference-style="bronze-sulur-v001"] {
  --relic-niskala-edge: #090704;
  --relic-niskala-ink: #dfd2b7;
  --relic-niskala-field-high: #8e7e68;
  --relic-niskala-field: #4e4337;
  --relic-niskala-field-low: #302920;
  --relic-niskala-patina: #1d170b;
  --relic-niskala-gold: #8e7e68;
  --relic-niskala-gold-high: #f1df99;
  --relic-niskala-emblem-mask: url("assets/relic-emblem-reference-mask-v001.png");
}

/* Restore the literal Relic panel.  The semantic text remains in the DOM for
 * accessibility, while the normal visual state comes only from the reference
 * raster.  The reference contains no inline emblem. */
body[data-relic-reference-style="bronze-sulur-v001"]
  .museum-rarity-button[data-rarity-filter="Relic"] {
  isolation: isolate;
  overflow: visible !important;
  background: transparent !important;
  color: transparent !important;
  filter: none !important;
}

body[data-relic-reference-style="bronze-sulur-v001"]
  .museum-rarity-button[data-rarity-filter="Relic"]::before,
body[data-relic-reference-style="bronze-sulur-v001"]
  .museum-rarity-button[data-rarity-filter="Relic"]::after,
body[data-relic-reference-style="bronze-sulur-v001"]
  .museum-rarity-button[data-rarity-filter="Relic"]
  > .museum-rarity-label::before {
  content: none !important;
}

body[data-relic-reference-style="bronze-sulur-v001"]
  .museum-rarity-button[data-rarity-filter="Relic"]
  > :is(.museum-rarity-cartouche-frame, .museum-rarity-label, .museum-rarity-count) {
  opacity: 0 !important;
}

@media (max-width: 1499.98px) {
  body[data-relic-reference-style="bronze-sulur-v001"]
    .museum-rarity-button[data-rarity-filter="Relic"] {
    background-image: none !important;
  }

  body[data-relic-reference-style="bronze-sulur-v001"]
    .museum-rarity-button[data-rarity-filter="Relic"]::before {
    content: "" !important;
    position: absolute;
    z-index: 0;
    top: 0;
    right: auto;
    bottom: auto;
    left: 1px;
    display: block;
    width: 237px;
    height: 62px;
    background-color: transparent;
    background-image: url("assets/rarity-strip-reference-exact-v001.png");
    background-repeat: no-repeat;
    background-position: -1435px -1px;
    background-size: 1678px 63px;
    opacity: 1;
    filter: none;
    pointer-events: none;
  }
}

/* Keep the established pennant silhouette; replace only its material and
 * visual payload.  The raster-derived mask is the same on featured, gallery,
 * and modal cards. */
body[data-relic-reference-style="bronze-sulur-v001"]
  .reference-rarity-pennant[data-rarity="Relic"] {
  --reference-emblem-field: #4e4337;
  --reference-emblem-field-dark: #1d170b;
  color: #dfd2b7 !important;
  filter:
    drop-shadow(0 1px 0 rgba(241, 223, 153, .18))
    drop-shadow(0 5px 8px rgba(9, 7, 4, .58)) !important;
}

body[data-relic-reference-style="bronze-sulur-v001"]
  .reference-rarity-pennant[data-rarity="Relic"]
  .reference-pennant-outer {
  fill: #090704 !important;
  stroke: #090704 !important;
}

body[data-relic-reference-style="bronze-sulur-v001"]
  .reference-rarity-pennant[data-rarity="Relic"]
  .reference-pennant-rim {
  fill: #1d170b !important;
  stroke: #8e7e68 !important;
  stroke-width: 1.65 !important;
}

body[data-relic-reference-style="bronze-sulur-v001"]
  .reference-rarity-pennant[data-rarity="Relic"]
  .reference-pennant-field {
  fill: #4e4337 !important;
  stroke: #8e7e68 !important;
  stroke-width: 1.25 !important;
}

body[data-relic-reference-style="bronze-sulur-v001"]
  .reference-rarity-pennant[data-rarity="Relic"]
  .reference-pennant-bevel {
  fill: none !important;
  stroke: #dfd2b7 !important;
  stroke-width: .9 !important;
  opacity: .34 !important;
}

body[data-relic-reference-style="bronze-sulur-v001"]
  .reference-rarity-pennant[data-rarity="Relic"]
  > .reference-rarity-emblem {
  display: none !important;
}

body[data-relic-reference-style="bronze-sulur-v001"]
  .reference-rarity-pennant[data-rarity="Relic"]::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 10px;
  width: 38px;
  height: 42px;
  background: #dfd2b7;
  -webkit-mask: var(--relic-niskala-emblem-mask) center / contain no-repeat;
  mask: var(--relic-niskala-emblem-mask) center / contain no-repeat;
  filter:
    drop-shadow(0 1.4px 0 #090704)
    drop-shadow(0 0 2px rgba(241, 223, 153, .34));
  pointer-events: none;
}

/* Compact Relic labels retain their proven 14px counterbalanced icon slot. */
body[data-relic-reference-style="bronze-sulur-v001"]
  #grid > .holo-card[data-rarity="Relic"] .kicker > span:last-child,
body[data-relic-reference-style="bronze-sulur-v001"]
  .collectible-card.holo-card[data-rarity="Relic"] .collectible-rarity,
body[data-relic-reference-style="bronze-sulur-v001"]
  > .card.holo-card[data-rarity="Relic"] .copy > small,
body[data-relic-reference-style="bronze-sulur-v001"]
  #museumFeature .museum-feature-tags > span:last-child {
  border-color: #8e7e68 !important;
  background: linear-gradient(135deg, #635649, #4e4337 58%, #302920) !important;
  color: #dfd2b7 !important;
  box-shadow:
    inset 0 0 0 1px rgba(241, 223, 153, .12),
    0 2px 5px rgba(9, 7, 4, .5) !important;
  text-shadow: 0 1px 0 #090704 !important;
}

body[data-relic-reference-style="bronze-sulur-v001"]
  #grid > .holo-card[data-rarity="Relic"] .kicker > span:last-child::before,
body[data-relic-reference-style="bronze-sulur-v001"]
  .collectible-card.holo-card[data-rarity="Relic"] .collectible-rarity::before,
body[data-relic-reference-style="bronze-sulur-v001"]
  > .card.holo-card[data-rarity="Relic"] .copy > small::before,
body[data-relic-reference-style="bronze-sulur-v001"]
  #museumFeature .museum-feature-tags > span:last-child::before {
  background: #dfd2b7 !important;
  -webkit-mask: var(--relic-niskala-emblem-mask) center / contain no-repeat !important;
  mask: var(--relic-niskala-emblem-mask) center / contain no-repeat !important;
}

@media (forced-colors: active) {
  body[data-relic-reference-style="bronze-sulur-v001"]
    .museum-rarity-button[data-rarity-filter="Relic"] {
    border: 1px solid ButtonText !important;
    background: ButtonFace !important;
    color: ButtonText !important;
    forced-color-adjust: auto;
  }

  body[data-relic-reference-style="bronze-sulur-v001"]
    .museum-rarity-button[data-rarity-filter="Relic"]::before {
    content: none !important;
  }

  body[data-relic-reference-style="bronze-sulur-v001"]
    .museum-rarity-button[data-rarity-filter="Relic"]
    > .museum-rarity-cartouche-frame {
    display: none !important;
  }

  body[data-relic-reference-style="bronze-sulur-v001"]
    .museum-rarity-button[data-rarity-filter="Relic"]
    > :is(.museum-rarity-label, .museum-rarity-count) {
    opacity: 1 !important;
    color: ButtonText !important;
    text-shadow: none !important;
  }

  body[data-relic-reference-style="bronze-sulur-v001"]
    .reference-rarity-pennant[data-rarity="Relic"] {
    filter: none !important;
    forced-color-adjust: auto;
  }

  body[data-relic-reference-style="bronze-sulur-v001"]
    .reference-rarity-pennant[data-rarity="Relic"]
    .reference-pennant-outer,
  body[data-relic-reference-style="bronze-sulur-v001"]
    .reference-rarity-pennant[data-rarity="Relic"]
    .reference-pennant-rim,
  body[data-relic-reference-style="bronze-sulur-v001"]
    .reference-rarity-pennant[data-rarity="Relic"]
    .reference-pennant-field {
    fill: Canvas !important;
    stroke: CanvasText !important;
  }

  body[data-relic-reference-style="bronze-sulur-v001"]
    .reference-rarity-pennant[data-rarity="Relic"]::after {
    background: CanvasText;
    filter: none;
  }

  body[data-relic-reference-style="bronze-sulur-v001"]
    #grid > .holo-card[data-rarity="Relic"] .kicker > span:last-child,
  body[data-relic-reference-style="bronze-sulur-v001"]
    .collectible-card.holo-card[data-rarity="Relic"] .collectible-rarity,
  body[data-relic-reference-style="bronze-sulur-v001"]
    > .card.holo-card[data-rarity="Relic"] .copy > small,
  body[data-relic-reference-style="bronze-sulur-v001"]
    #museumFeature .museum-feature-tags > span:last-child {
    border-color: Highlight !important;
    background: Canvas !important;
    color: CanvasText !important;
    box-shadow: none !important;
    text-shadow: none !important;
    forced-color-adjust: auto;
  }

  body[data-relic-reference-style="bronze-sulur-v001"]
    #grid > .holo-card[data-rarity="Relic"] .kicker > span:last-child::before,
  body[data-relic-reference-style="bronze-sulur-v001"]
    .collectible-card.holo-card[data-rarity="Relic"] .collectible-rarity::before,
  body[data-relic-reference-style="bronze-sulur-v001"]
    > .card.holo-card[data-rarity="Relic"] .copy > small::before,
  body[data-relic-reference-style="bronze-sulur-v001"]
    #museumFeature .museum-feature-tags > span:last-child::before {
    background: CanvasText !important;
  }
}
