html[data-ludik-theme="comic"] #content[data-game="hilo"] .hilo-cards {
  --card-caption-edge: polygon(
    3% 10%, 9% 10%, 11% 5%, 17% 7%, 21% 3%, 26% 6%, 32% 2%, 36% 7%,
    42% 3%, 48% 5%, 54% 1%, 60% 6%, 64% 3%, 70% 5%, 74% 1%, 79% 4%,
    84% 2%, 90% 5%, 95% 1%, 99% 7%, 100% 15%, 98% 28%, 99% 37%, 97% 49%,
    98% 59%, 95% 70%, 96% 80%, 94% 94%, 88% 98%, 83% 95%, 77% 98%, 72% 94%,
    68% 97%, 62% 95%, 57% 99%, 51% 96%, 45% 99%, 41% 96%, 35% 99%, 28% 96%,
    22% 100%, 17% 96%, 13% 100%, 8% 97%, 4% 99%, 4% 92%, 1% 87%, 3% 74%,
    1% 65%, 3% 56%, 2% 46%, 4% 36%, 2% 27%, 4% 18%
  );
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  column-gap: 3.3%;
  min-width: 0;
  isolation: isolate;
}

.hilo-card-slot {
  display: grid;
  justify-items: center;
  gap: var(--hilo-caption-gap, clamp(4px, 1.02vw, 11px));
  margin: 0;
  min-width: 0;
}

.hilo-card-art {
  position: relative;
  width: 85.5%;
  aspect-ratio: 290 / 424;
  touch-action: manipulation;
}

.hilo-card-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hilo-card-caption {
  --card-caption-border: clamp(1.5px, .21vw, 3px);
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-items: start;
  min-width: 0;
  width: 100%;
  padding: .37em .25em .71em;
  transform: skewX(-9deg) rotate(-.65deg);
  isolation: isolate;
  color: #100d0a;
  font: italic 900 var(--hilo-caption-size, clamp(.69rem, 2.1vw, 2.2rem))/1.03 var(--lg-display);
  letter-spacing: -.038em;
  text-align: center;
  white-space: nowrap;
}

.hilo-card-caption::before,
.hilo-card-caption::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  pointer-events: none;
  clip-path: var(--card-caption-edge);
  background: #100d0a;
}

.hilo-card-caption::after {
  inset: var(--card-caption-border);
  background: #fff1d2 url("/redesign-art/hilo-paper.webp") center / 360px auto;
}

.hilo-card-caption span {
  position: relative;
  transform: skewX(2deg) scaleX(1.05);
}

.hilo-card-caption span::after {
  position: absolute;
  content: "";
  inset: auto 24% -.28em 21%;
  height: .19em;
  background: #ff0371;
  clip-path: polygon(0 42%, 27% 14%, 67% 0, 100% 14%, 98% 39%, 71% 53%, 44% 73%, 5% 100%, 12% 56%);
  transform: rotate(-1.8deg);
}

.hilo-card-surface {
  position: absolute;
  z-index: 2;
  inset: -6% 0 auto;
  display: block;
  visibility: hidden;
  width: 100%;
  height: 112%;
  pointer-events: none;
}

.hilo-cards[data-hilo-renderer="webgl"] .hilo-card-surface { visibility: visible; }
.hilo-cards[data-hilo-renderer="webgl"] .hilo-card-art > svg,
.hilo-card-art:has(.hilo-card-preflight) > svg:first-child { opacity: 0; }

.hilo-card-preflight {
  position: absolute;
  inset: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hilo-cards:not([data-hilo-renderer]) .hilo-card-art svg {
    transition: transform .24s ease;
  }
  .hilo-cards:not([data-hilo-renderer]) .hilo-card-art:active svg {
    transform: perspective(28rem) rotateY(10deg) rotate(-1deg);
  }
  @media (hover: hover) and (pointer: fine) {
    .hilo-cards:not([data-hilo-renderer]) .hilo-card-art:hover svg {
      transform: perspective(28rem) rotateY(10deg) rotate(-1deg);
    }
  }
}
