/* ==========================================================================
   Blackjack table — a half-moon table: dealer on top, printed rules, player spot
   ========================================================================== */

.bj-table {
  --w: 80px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-5) var(--s-6);
  border: 1px solid rgba(194, 162, 122, 0.28);
  border-top: 0;
  border-radius: 0 0 50% 50% / 0 0 120px 120px;
  background:
    radial-gradient(120% 90% at 50% 0%, #1d2a3a 0%, #14202c 55%, #0f1820 100%);
  box-shadow: inset 0 0 0 6px rgba(0, 0, 0, 0.22), inset 0 -30px 60px rgba(0, 0, 0, 0.35);
}
.bj-table .pcard { --w: inherit; width: var(--w); }
.bj-table .card-row { gap: calc(var(--w) * 0.1); flex-wrap: nowrap; }

/* Printed on the felt: "Blackjack pays 3:2 · Dealer stands on 17" */
.bj-arc {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-5);
  border-top: 1px solid rgba(194, 162, 122, 0.35);
  border-bottom: 1px solid rgba(194, 162, 122, 0.35);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(214, 188, 151, 0.75);
  white-space: nowrap;
}
.bj-arc__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-lo); }

.bj-spot { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); }
.bj-spot__head { display: flex; align-items: center; gap: var(--s-3); min-height: 36px; }
.bj-spot__label {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: rgba(237, 230, 214, 0.75);
}
.bj-bet { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-small); color: var(--ivory); }

/* Totals appear after the answer */
.bj-total { min-height: 1.6em; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; color: var(--ivory); }
.bj-spot.is-win .bj-total { color: var(--positive); }
.bj-spot.is-lose .bj-total { color: var(--negative); }
.bj-spot.is-push .bj-total { color: var(--accent-hi); }

.bj-table--single { padding-top: var(--s-4); }
.bj-table--card { --w: 112px; }

@media (max-width: 767px) {
  .bj-table {
    --w: min(calc((100vw - 96px) / 4.4), 72px);
    gap: var(--s-3);
    padding: var(--s-4) var(--s-3) var(--s-5);
    border-radius: 0 0 50% 50% / 0 0 64px 64px;
  }
  .bj-table--card { --w: 96px; }
  .bj-arc { gap: var(--s-2); padding: 6px var(--s-3); letter-spacing: 0.12em; font-size: 0.5625rem; }
  .bj-total { font-size: 1.25rem; }
}
