/* The game supplies the positioned card, its paper color and suit ink. */
.bd-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  color: inherit;
  pointer-events: none;
  user-select: none;
  container-type: inline-size;
}

.bd-face-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.bd-index {
  position: absolute;
  top: 2.2%;
  left: 5.5%;
  display: inline-flex;
  align-items: center;
  gap: .1em;
  font: 600 18px / 1 Georgia, 'Times New Roman', serif;
  font-size: clamp(14px, 24cqw, 24px);
  letter-spacing: -.065em;
  white-space: nowrap;
}

.bd-index svg {
  display: block;
  width: .65em;
  height: .65em;
}

.bd-index.bd-index-bottom {
  inset: auto 5.5% 2.2% auto;
  font-size: 14px;
  font-size: clamp(10px, 18cqw, 18px);
  transform: rotate(180deg);
}
