.playcard {
  flex: 0 0 auto;
  width: 46px; height: 64px; border-radius: 6px; background: #f7f7f2;
  border: 1px solid #9aa3ad; position: relative; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; line-height: 1; font-weight: 700; font-size: 24px;

  font-family: var(--suit);
  box-shadow: 0 2px 6px rgba(0,0,0,.45);
  transform: translateY(-14px) rotate(-6deg); opacity: 0;
  transition: transform .28s cubic-bezier(.2,.9,.3,1.2), opacity .28s ease;
}
.playcard.in { transform: translateY(0) rotate(0); opacity: 1; }
.playcard.red { color: #c0392b; }
.playcard.black { color: #1b1f24; }

.playcard .glyph {
  position: static;
  font-size: calc(1em * var(--suit-scale));
  line-height: 1;
  font-family: var(--suit);
}
.playcard.back { background: repeating-linear-gradient(45deg, #1f3a93, #1f3a93 4px, #2b4fc0 4px, #2b4fc0 8px); }
.playcard.hero { outline: 2px solid var(--gold); outline-offset: 2px; }
.playcard.dim { filter: grayscale(.7) brightness(.6); }
.playcard.mini { width: 32px; height: 44px; font-size: 15px; gap: 1px; }
.playcard.big { width: 56px; height: 78px; font-size: 24px; gap: 3px; }

.playslot {
  flex: 0 0 auto;
  width: 46px; height: 64px; border-radius: 6px;
  border: 1px dashed #33404f; background: rgba(255,255,255,.03);
  display: inline-block;
}
.rankline { display: flex; gap: 4px; flex-wrap: wrap; align-items: flex-end; }
.heroline { margin-bottom: 8px; flex-wrap: nowrap; }
.heroline .playcard { width: 40px; height: 56px; font-size: 20px; gap: 1px; border-radius: 5px; }
.heroline .playslot { width: 40px; height: 56px; }
.handname { font-size: 11px; color: var(--gold); align-self: center; margin-left: 4px; }

.boardrow {
  perspective: 800px;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}
.boardrow > .playcard,
.boardrow > .playslot { min-width: 0; flex-shrink: 1; flex-basis: auto; }

.seat .cards .rankline { perspective: 600px; flex-wrap: nowrap; }
.playcard.flipping {
  transform: rotateY(90deg);
  transition: transform var(--flip-half, 200ms) ease-in;
}
@keyframes flip-face {
  from { transform: rotateY(-90deg); }
  to   { transform: rotateY(0deg); }
}
.playcard.revealed {
  animation: flip-face var(--flip-half, 200ms) ease-out both;
}
