/* Own hand, mini cards, bank status, answer controls
   Load order matters: these stylesheets are ordered fragments of one cascade
   (see index.html). Mobile overrides live in responsive.css. */

.hand-toggle {
  width: 100%;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hand-toggle span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.bank-status {
  margin: 0.65rem 0 0;
  color: var(--casino-muted);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
}

.hand-toggle span:last-child {
  min-width: 1.75rem;
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  background: rgba(216, 180, 95, 0.18);
  text-align: center;
}

.own-cards {
  display: flex;
  gap: 0.5rem;
  min-height: 4.25rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.mini-card {
  width: 3.1rem;
  min-width: 3.1rem;
  aspect-ratio: 2.5 / 3.5;
  border-radius: 6px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  place-items: center;
  background: var(--casino-cream);
  color: #171818;
  border: 1px solid rgba(216, 180, 95, 0.28);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  font-weight: 900;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.mini-card.red-card {
  color: #b82d33;
}

.mini-card.affected-card {
  border-color: var(--casino-gold);
  box-shadow:
    0 0 0 2px rgba(216, 180, 95, 0.34),
    0 12px 24px rgba(0, 0, 0, 0.26);
  transform: translateY(-0.12rem);
}

.mini-card.correct-card {
  border-color: #55c878;
  border-width: 2px;
  box-shadow:
    0 0 0 3px rgba(85, 200, 120, 0.38),
    0 12px 24px rgba(0, 0, 0, 0.26);
}

.mini-card.wrong-card {
  border-color: #e05761;
  border-width: 2px;
  box-shadow:
    0 0 0 3px rgba(224, 87, 97, 0.4),
    0 12px 24px rgba(0, 0, 0, 0.26);
}

.mini-card.card-jump {
  animation: card-jump 520ms ease-out;
}

.mini-rank {
  align-self: end;
  font-size: 1.25rem;
}

.mini-suit {
  align-self: start;
  font-size: 1.35rem;
  line-height: 0.9;
}

.empty-hand {
  align-self: center;
  margin: 0;
  color: var(--casino-muted);
}

.controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(8rem, auto));
  gap: 0.75rem;
}

.answer-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.75rem;
}

.question-prompt {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--casino-cream);
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

