/* Poker table. Panels/buttons/top bar come from ../shared/arcade.css. */

#table {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  max-width: 640px;
  margin: 0 auto;
}

.hand-no { font-size: 0.86rem; color: #9d8bb5; }

.seat { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.seat.me { margin-top: auto; }

.seat-line { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; }
/* What you are holding, said plainly. This is the thing you glance at before
   every decision, so it gets to look like a label on the table rather than a
   footnote under your cards. */
.my-hand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #241a10;
  background: linear-gradient(180deg, #ffd97a, #f5b942);
  border-radius: 999px;
  padding: 5px 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.my-hand.final { background: linear-gradient(180deg, #e8dcc8, #c8b79c); }
.my-hand.hidden { display: none; }
.seat-name { color: #cbbfe0; font-weight: 600; }
.seat-name.acting { color: #ffd076; }
.chips {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px 12px;
  font-variant-numeric: tabular-nums;
}
.bet { color: #ffd076; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 3ch; }

.middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pot {
  font-size: 1.05rem;
  color: #ffd076;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-height: 1.4em;
}

.status { min-height: 2.6em; text-align: center; color: #b9a8cf; font-size: 0.95rem; line-height: 1.35; }
.status b { color: #f3ecdf; }

/* ── cards ── */
.cards { display: flex; gap: 6px; justify-content: center; min-height: 74px; }
.cards.board { gap: 5px; }

.card {
  width: clamp(42px, 12vw, 54px);
  aspect-ratio: 5 / 7;
  border-radius: 7px;
  background: #f6f1e6;
  color: #1a1420;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  animation: deal 0.28s ease;
}
@keyframes deal { from { transform: translateY(-14px) scale(0.9); opacity: 0; } }

.card .r { font-size: clamp(1.05rem, 4vw, 1.4rem); font-weight: 700; }
.card .s { font-size: clamp(0.95rem, 3.6vw, 1.25rem); }
.card.red { color: #c62828; }
.card.back {
  background: repeating-linear-gradient(45deg, #4a3a6e, #4a3a6e 5px, #3c2f5b 5px, #3c2f5b 10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.card.slot { background: rgba(255, 255, 255, 0.045); box-shadow: none; border: 1px dashed rgba(255, 255, 255, 0.12); }
.card.win { outline: 2px solid #ffd076; outline-offset: 2px; }
/* The five cards currently building your hand. Deliberately quieter than
   .win — this is a running hint, not a result. */
.card.making { box-shadow: 0 0 0 2px rgba(255, 217, 122, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3); }
.card.dim { opacity: 0.45; }

/* ── actions ── */
.actions { display: flex; flex-direction: column; gap: 10px; }

.action-row { display: flex; gap: 8px; }

.act {
  flex: 1;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 8px;
  border-radius: 12px;
  cursor: pointer;
  color: #f3ecdf;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.act:active { transform: scale(0.98); }
.act:disabled { opacity: 0.3; cursor: default; }
.act.gold { background: #ffd076; color: #241a10; border-color: #ffd076; }
.act.danger { background: rgba(255, 110, 90, 0.18); border-color: rgba(255, 130, 110, 0.35); color: #ffb4a6; }

.raise-row { display: flex; flex-direction: column; gap: 8px; }
.raise-presets { display: flex; gap: 8px; justify-content: center; }
.raise-presets .chip {
  font: inherit;
  font-size: 0.85rem;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  color: #f3ecdf;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

#raise-slider {
  width: 100%;
  accent-color: #ffd076;
  height: 28px;
}
