/* LABEL-01: only Ace / Boa captions. Keep original card pixels, copy,
   Chiron faces, document flow, CTA and the rest of COPY-03 unchanged. */
.onepiece-art :is(.luffy-card, .shanks-card) > figcaption {
  --label-edge: polygon(0 5%, 28% 0, 62% 3%, 100% 0, 98% 48%, 100% 94%, 70% 98%, 40% 96%, 1% 100%);
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: start;
  gap: 4px;
  width: 9rem;
  max-width: calc(100% - 6px);
  margin-top: 18px;
  padding: 9px 8px 8px;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.06em;
  text-align: left;
  overflow-wrap: normal;
  transform-origin: center;
}
.onepiece-art .luffy-card > figcaption {
  /* Parent card is -5deg: the complete label leans only -2deg. */
  transform: rotate(3deg) skewX(-4deg);
}
.onepiece-art .shanks-card > figcaption {
  /* Parent card is +6deg: keep the label's net tilt restrained. */
  transform: rotate(-8deg) skewX(-4deg);
  margin-right: 3px;
}
.onepiece-art :is(.luffy-card, .shanks-card) > figcaption::before,
.onepiece-art :is(.luffy-card, .shanks-card) > figcaption::after {
  content: '';
  position: absolute;
  pointer-events: none;
  clip-path: var(--label-edge);
}
.onepiece-art :is(.luffy-card, .shanks-card) > figcaption::before {
  inset: 0;
  z-index: -1;
  background: var(--paper);
}
.onepiece-art :is(.luffy-card, .shanks-card) > figcaption::after {
  inset: 3px -3px -3px 3px;
  z-index: -2;
  background: var(--ink);
}
.onepiece-art :is(.luffy-card, .shanks-card) > figcaption > span {
  display: block;
  padding: 3px 4px;
  background: var(--ink);
  border-bottom: 2px solid var(--red);
  color: var(--paper);
  font-size: .875rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  letter-spacing: .02em;
  white-space: nowrap;
  /* Counter the lettering skew so the actual identifier stays easy to read. */
  transform: skewX(4deg);
}
@media (min-width: 768px) {
  .onepiece-art :is(.luffy-card, .shanks-card) > figcaption {
    font-size: 2rem;
    padding-block: 10px 9px;
  }
}
@media (forced-colors: active) {
  .onepiece-art :is(.luffy-card, .shanks-card) > figcaption {
    outline: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    transform: none;
  }
  .onepiece-art :is(.luffy-card, .shanks-card) > figcaption::before,
  .onepiece-art :is(.luffy-card, .shanks-card) > figcaption::after {
    display: none;
  }
  .onepiece-art :is(.luffy-card, .shanks-card) > figcaption > span {
    background: Canvas;
    color: CanvasText;
    transform: none;
  }
}
