/* Playing cards, in the euchre.cards style: rank and suit in two opposite corners, a large suit in
   the middle, and a blue patterned back. Shared by the vs-computer game (.cso-card) and the online
   game (.card). The game's own CSS keeps setting each card's size and its states (selected,
   playable, ...); the face scales with the card's width through container query units. */
.cb-card {
  container-type: inline-size;
  position: relative;
  display: block;
  padding: 0;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  user-select: none;
}
.cb-card.cb-red { color: #d32f2f; }
.cb-card.cb-black { color: #111827; }
.cb-face { position: absolute; inset: 0; }
.cb-tl, .cb-br {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.cb-tl { top: 4cqi; left: 6cqi; }
.cb-br { bottom: 4cqi; right: 6cqi; transform: rotate(180deg); }
.cb-rank { font-size: 30cqi; line-height: 1.05; letter-spacing: -0.04em; }
.cb-pip { font-size: 22cqi; line-height: 1; }
.cb-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); line-height: 1; }
.cb-pip-lg { font-size: 48cqi; line-height: 1; }
/* Back */
.cb-card.cb-back {
  background: #1a4fa0 repeating-linear-gradient(45deg, transparent 0 3px, rgba(255, 255, 255, 0.09) 3px 6px);
  border: 2px solid #fff;
}
