/* ══════════════════════════════════════
   Hand Recognition — Card styles
   ══════════════════════════════════════ */

/* ── Card table container ── */
.hr-table {
  padding: 4px 0 8px;
  margin: -18px 0 -8px;
}

.hr-label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
}

.hr-row {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.hr-divider {
  width: 48px;
  height: 0.5px;
  background: var(--border);
  margin: 14px auto;
}


/* ── Individual card ── */
.hr-card {
  width: 50px;
  height: 72px;
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 500;
  line-height: 1.1;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #F5F0E8;
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hr-card-rank {
  font-size: 15px;
}

.hr-card-suit {
  font-size: 16px;
  margin-top: -1px;
}

.hr-card.red {
  color: #B8342E;
}


/* ── Winner highlight ── */
.hr-card.winner {
  border-color: var(--accent);
  box-shadow: 0 0 0 1.5px var(--accent), 0 2px 8px rgba(0, 0, 0, 0.35);
}


/* ── Responsive: slightly smaller cards on very narrow screens ── */
@media (max-width: 360px) {
  .hr-card {
    width: 44px;
    height: 64px;
  }

  .hr-card-rank {
    font-size: 13px;
  }

  .hr-card-suit {
    font-size: 14px;
  }

  .hr-row {
    gap: 4px;
  }
}
