/* Texas Hold'em — game-specific styles on top of the shared theme. */

.page {
  display: grid;
  place-items: center;
}

.table {
  width: min(640px, 100%);
  padding: 28px 26px 24px;
  text-align: center;
  background:
    radial-gradient(ellipse at center, var(--felt-2) 0%, var(--felt) 75%),
    var(--surface);
  border-color: rgba(245, 197, 66, 0.18);
}

.game-title {
  margin: 0;
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  letter-spacing: 0.16em;
  background: linear-gradient(180deg, #ffe9a3 0%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 26px rgba(245, 197, 66, 0.2);
}

.tagline {
  margin: 6px 0 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hand-row {
  padding: 10px 0;
}

.player-tag {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.player-tag .name { font-weight: 600; }

.player-tag .chips {
  color: var(--gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.player-tag .chips::before {
  content: "⬤ ";
  font-size: 0.6rem;
  vertical-align: middle;
  color: var(--secondary);
}

.cards {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-height: 84px;
}

.card {
  width: 58px;
  height: 84px;
  border-radius: 8px;
  background: #fafafa;
  color: #212121;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  animation: deal-in 0.25s ease-out;
}

.card .rank { font-size: 1.35rem; line-height: 1.1; }
.card .suit { font-size: 1.2rem; line-height: 1.1; }
.card.red { color: #c62828; }

.card.back {
  background:
    repeating-linear-gradient(45deg, var(--primary) 0 6px, var(--primary-bright) 6px 12px);
  border: 2px solid #fafafa;
}

.card.placeholder {
  background: transparent;
  border: 2px dashed var(--edge);
  box-shadow: none;
}

@keyframes deal-in {
  from { transform: translateY(-14px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.hand-note {
  min-height: 1.2em;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.hand-note.strong { color: var(--win); font-weight: 600; }

.board-area {
  margin: 14px 0;
  padding: 16px 0 12px;
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}

.pot {
  margin-top: 12px;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.pot span {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.05rem;
  margin-left: 6px;
}

.message {
  min-height: 1.4em;
  margin: 14px 0;
  color: var(--muted);
}

.message.win  { color: var(--win); font-weight: 600; }
.message.lose { color: var(--secondary); font-weight: 600; }

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.help {
  margin-top: 18px;
  text-align: left;
  font-size: 0.85rem;
  color: var(--muted);
}

.help summary {
  cursor: pointer;
  text-align: center;
  list-style-position: inside;
}

.help p { line-height: 1.55; }

@media (max-width: 480px) {
  .table { padding: 20px 14px 16px; }
  .cards { gap: 6px; min-height: 70px; }
  .actions { gap: 8px; }
  .actions .btn { padding: 12px 18px; font-size: 0.85rem; }
}
