/* BRICK178_ORNATE_FRAME: canonical non-stretch frame. Only four fixed-size PNGs; flexible gold lines are CSS. */
#catalogue .item-card, #vault166-poe1-tests .item-card {
  position: relative !important;
  isolation: isolate !important;
  box-sizing: border-box !important;
  border: 2px solid #a77c3a !important;
  border-image: none !important;
  padding: 118px 20px 104px !important;
  background: linear-gradient(155deg,rgba(21,26,30,.94),rgba(3,6,9,.99)) !important;
  box-shadow: inset 0 0 0 1px #f6d18b28, 0 7px 19px #000b !important;
}
#catalogue .item-card::before, #vault166-poe1-tests .item-card::before {
  content: "" !important;
  position: absolute !important;
  inset: -2px !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background-image:
    url("../assets/vault178-border/corner-tl.png"),
    url("../assets/vault178-border/corner-tr.png"),
    url("../assets/vault178-border/corner-bl.png"),
    url("../assets/vault178-border/corner-br.png") !important;
  background-repeat: no-repeat !important;
  background-position: left top, right top, left bottom, right bottom !important;
  background-size: 160px 110px, 244px 128px, 150px 96px, 150px 96px !important;
}
/* The actual seller-facing RARE lettering is inside the sharp, fixed-size plaque.
   Do not show it on other rarities. */
#catalogue .item-card:not(.rare)::before,
#vault166-poe1-tests .item-card:not(.rare)::before {
  background-image:
    url("../assets/vault178-border/corner-tl.png"),
    url("../assets/vault178-border/corner-bl.png"),
    url("../assets/vault178-border/corner-br.png") !important;
  background-position: left top, left bottom, right bottom !important;
  background-size: 160px 110px, 150px 96px, 150px 96px !important;
}
#catalogue .item-card.rare .rarity,
#vault166-poe1-tests .item-card.rare .rarity {
  /* The full rarity title is rendered once in the ornate right-hand plaque. */
  display: none !important;
}
/* Pseudo-elements are behind all real content and controls, including the star. */
#catalogue .item-card > *, #vault166-poe1-tests .item-card > * {
  position: relative;
  z-index: 1;
}
#catalogue .item-card::after, #vault166-poe1-tests .item-card::after {
  content: "" !important;
  position: absolute !important;
  inset: -2px !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background-image:
    linear-gradient(90deg,#a16c28,#edbb5d 50%,#a16c28),
    linear-gradient(90deg,#a16c28,#edbb5d 50%,#a16c28),
    linear-gradient(180deg,#a16c28,#edbb5d 50%,#a16c28),
    linear-gradient(180deg,#a16c28,#edbb5d 50%,#a16c28) !important;
  background-repeat: no-repeat !important;
  background-position: center top, center bottom, left center, right center !important;
  background-size: 100% 2px, 100% 2px, 2px 100%, 2px 100% !important;
}
@media (max-width: 700px) {
  #catalogue .item-card, #vault166-poe1-tests .item-card {
    padding: 91px 13px 79px !important;
  }
  #catalogue .item-card::before, #vault166-poe1-tests .item-card::before {
    background-size: 110px 76px, 174px 91px, 110px 71px, 110px 71px !important;
  }
  #catalogue .item-card:not(.rare)::before,
  #vault166-poe1-tests .item-card:not(.rare)::before {
    background-size: 110px 76px, 110px 71px, 110px 71px !important;
  }
}
