.justice-coin {
  margin: 0;
  min-width: 0;
}
.justice-coin__mount {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.52;
  background: radial-gradient(ellipse at 47% 24%, #3b3e38 0%, #2b2f2b 42%, #20231f 80%);
}
.justice-coin__object {
  position: relative;
  width: auto;
  height: 110%;
  aspect-ratio: 1;
  align-self: center;
  justify-self: center;
  grid-area: 1 / 1;
}
.justice-coin__still,
.justice-coin__render {
  position: absolute;
  display: block;
}
.justice-coin__still {
  width: 71%;
  height: 71%;
  object-fit: contain;
  left: 14.5%;
  top: 14.5%;
  transform: perspective(700px) rotateX(4deg) rotateY(-9deg);
}
.justice-coin__render {
  inset: 0;
  width: 100%;
  height: 100%;
}
.justice-coin__render[hidden],
.justice-coin__flip[hidden] {
  display: none;
}
.justice-coin[data-rendered] .justice-coin__still {
  opacity: 0;
}
.justice-coin__shadow {
  position: absolute;
  z-index: -1;
  left: 29%;
  right: 29%;
  bottom: 7%;
  height: 6%;
  border-radius: 100%;
  background: radial-gradient(ellipse, #090a08a8, transparent 70%);
  filter: blur(3px);
  pointer-events: none;
}
.justice-coin__caption {
  display: flex;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  font:
    400 13px/1.4 system-ui,
    sans-serif;
  color: inherit;
}
.justice-coin__flip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  flex-shrink: 0;
  padding: 0 2px 0 8px;
  color: inherit;
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.justice-coin__flip:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.justice-coin__flip:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
@media (max-width: 650px) {
  .justice-coin__mount {
    aspect-ratio: 1.2;
  }
  .justice-coin__object {
    height: 111%;
  }
}
@media (max-width: 360px) {
  .justice-coin__caption {
    font-size: 12px;
    gap: 6px;
  }
}
