/* Hexmarket card face. Sized in container units so the same card works
   in the hero hand, the card list and the A4 print sheet. The parent of
   .cf must set container-type: inline-size. */
.cf {
  --felt: #1b1b2f;
  --cream: #f6e7cb;
  --accent: #e94560;
  --gold: #ffbd39;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 63 / 88;
  padding: 5cqw 5cqw 4cqw;
  background: var(--cream);
  color: var(--felt);
  border-radius: 5.5cqw;
  box-shadow: inset 0 0 0 1.8cqw var(--cream), inset 0 0 0 2.4cqw rgba(27, 27, 47, .9);
  font-family: Bitter, Georgia, serif;
  text-align: left;
  overflow: hidden;
}
.cf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  min-height: 15cqw;
}
.cf-badge {
  display: grid;
  place-items: center;
  width: 16cqw;
  height: 14cqw;
  flex: none;
  font-family: "Zilla Slab", Georgia, serif;
  font-weight: 700;
  font-size: 10cqw;
  line-height: 1;
  color: var(--felt);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.cf-cost, .cf-want { background: var(--accent); color: #11111d; }
.cf-sell { background: var(--gold); }
.cf-kind {
  font-size: 5.2cqw;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cf-kind-solo {
  margin: 0 auto;
  padding: 1.6cqw 5cqw;
  background: var(--felt);
  color: var(--cream);
  border-radius: 99px;
}
.cf-art {
  display: block;
  margin-top: 3cqw;
  height: 66cqw;
  flex: none;
  overflow: hidden;
  background: var(--felt);
  clip-path: polygon(10% 0, 90% 0, 100% 12%, 100% 100%, 0 100%, 0 12%);
}
.cf-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.cf-name {
  display: block;
  margin-top: 3.2cqw;
  font-family: "Zilla Slab", Georgia, serif;
  font-weight: 700;
  font-size: 9.6cqw;
  line-height: 1.05;
}
.cf-box {
  display: block;
  flex: 1;
  margin-top: 2.4cqw;
  padding: 2.4cqw 3cqw;
  background: rgba(27, 27, 47, .07);
  border-radius: 2cqw;
}
.cf-text {
  display: block;
  font-size: 5.4cqw;
  line-height: 1.3;
  font-style: italic;
}
.cf-effect { font-style: normal; font-weight: 600; }
.cf-flav { font-size: 5cqw; margin-top: 1.4cqw; }
/* each grade shows a different corner of its stall */
.cf-art img { transition: none; }
.cf[data-tier="1"] .cf-art img { transform: scale(1.6); transform-origin: 0% 100%; }
.cf[data-tier="2"] .cf-art img { transform: scale(1.6); transform-origin: 100% 100%; }
.cf[data-tier="3"] .cf-art img { transform: scale(1.45); transform-origin: 50% 0%; }
.cf-buyer .cf-name, .cf-event .cf-name { margin-top: 2.6cqw; }
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
