/* Keep the existing portrait slot and click target; decorate heroes only. */
.p357-hero-frame {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border: 0 !important;
  background: #292113;
  box-shadow: 0 0 0 1px #62471b, 0 2px 5px #0006;
}
.p357-hero-frame > .p357-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  object-fit: cover;
}
.p357-hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 3px double #efc966;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px #694a1c;
  background:
    linear-gradient(#fff0b3, #fff0b3) left 2px top 2px / 5px 2px no-repeat,
    linear-gradient(#fff0b3, #fff0b3) left 2px top 2px / 2px 5px no-repeat,
    linear-gradient(#fff0b3, #fff0b3) right 2px top 2px / 5px 2px no-repeat,
    linear-gradient(#fff0b3, #fff0b3) right 2px top 2px / 2px 5px no-repeat,
    linear-gradient(#fff0b3, #fff0b3) left 2px bottom 2px / 5px 2px no-repeat,
    linear-gradient(#fff0b3, #fff0b3) left 2px bottom 2px / 2px 5px no-repeat,
    linear-gradient(#fff0b3, #fff0b3) right 2px bottom 2px / 5px 2px no-repeat,
    linear-gradient(#fff0b3, #fff0b3) right 2px bottom 2px / 2px 5px no-repeat;
}
/* Tiny overview slots and circular experience portraits retain their shape. */
.p357-hero-frame.ov-ico::after {
  border-width: 2px;
  border-style: solid;
  background: none;
}
.p357-hero-frame.cmd-profile-avatar::after { background: none; }
