/* ── Animation retournement carte croupier ── */
@keyframes card-flip {
  from {
    transform: rotateY(90deg) scale(1.08);
    opacity: 0;
  }
  to {
    transform: rotateY(0deg) scale(1);
    opacity: 1;
  }
}

.card-reveal {
  animation: card-flip 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: left center;
}

/* ── Cartes ── */
.card {
  width: 66px;
  height: 97px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.6);
  background: white;
  border: 2px solid #e5e7eb;
  padding: 3px 5px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.card-back {
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
  border: 2px solid #60a5fa;
  align-items: center;
  justify-content: center;
}

.card-back-symbol {
  font-size: 30px;
  color: #93c5fd;
}

.card.red .card-rank,
.card.red .card-suit {
  color: #dc2626;
}

.card.black .card-rank,
.card.black .card-suit {
  color: #111827;
}

.card-rank {
  font-size: 17px;
  line-height: 1;
  font-weight: bold;
}

.card-rank-bottom {
  align-self: flex-end;
  transform: rotate(180deg);
}

.card-suit {
  font-size: 26px;
  width: 100%;
  text-align: center;
  line-height: 1;
}
