:root {
  --felt-outer: #0b5d3b;
  --felt-inner: #083b27;
  --felt-edge: #052017;
  --gold: #d4a84a;
  --gold-soft: #b8903a;
  --ivory: #f8f4e8;
  --card-back: #1b2a46;
  --red: #c0392b;
  --black: #1a1a1a;
  --trim: rgba(212, 168, 74, 0.55);
}

.table {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-width: 1024px;
  min-height: 640px;
  background:
    radial-gradient(ellipse at 50% 45%, var(--felt-outer) 0%, var(--felt-inner) 55%, var(--felt-edge) 100%);
  display: grid;
  grid-template-rows: 40px auto auto auto auto auto auto auto;
  overflow: hidden;
}

.top-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--trim);
  color: var(--ivory);
  z-index: 10;
  height: 40px;
}

.hud-title {
  font-size: 14px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
}

.hud-btn {
  font-size: 20px;
  color: var(--ivory);
  padding: 4px 10px;
}

.dealer-row, .player-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 8px 0 4px;
}

.dealer-row { margin-top: 4px; }
.player-row { margin-bottom: 4px; padding: 4px 0 8px; }

.card-slot {
  width: 72px;
  height: 100px;
  border-radius: 8px;
  border: 1px dashed rgba(212, 168, 74, 0.22);
  background: rgba(0, 0, 0, 0.08);
  position: relative;
  perspective: 800px;
}

.qualifier-banner {
  text-align: center;
  font-family: "Georgia", serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  padding: 8px 0 4px;
  border-top: 1px solid rgba(212, 168, 74, 0.18);
  border-bottom: 1px solid rgba(212, 168, 74, 0.18);
  margin: 2px 60px;
}

.felt-centre {
  display: grid;
  grid-template-columns: 170px 1fr 170px;
  align-items: center;
  gap: 20px;
  padding: 4px 32px 8px;
  position: relative;
}

.paytable {
  background: linear-gradient(180deg, #0d2c1f 0%, #06181);
  background: linear-gradient(180deg, rgba(13, 44, 31, 0.92) 0%, rgba(6, 24, 17, 0.95) 100%);
  border: 1px solid var(--trim);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(212, 168, 74, 0.15);
  color: var(--ivory);
}
.paytable h3 {
  text-align: center;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 168, 74, 0.3);
  margin-bottom: 10px;
}
.paytable ul li {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 3px 0;
}
.paytable ul li b {
  color: var(--gold);
  font-weight: 600;
}

.centre-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.wordmark {
  font-size: 16px;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0.55;
}

.community-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 8px 0 4px;
}
.community-row .card-slot {
  width: 60px;
  height: 84px;
}

.bet-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.bet-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.bet-spot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--ivory);
  background: rgba(0, 0, 0, 0.35);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}
.bet-spot:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.1);
}
.bet-spot .bet-label {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.bet-spot .bet-amount {
  display: none;
}

/* Circle bets — ANTE / BLIND / PLAY */
.bet-spot-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid currentColor;
}
.bet-spot-ante  { color: #f4f0e2; }
.bet-spot-ante  .bet-label { color: #f4f0e2; }
.bet-spot-blind { color: #e85a8c; }
.bet-spot-blind .bet-label { color: #e85a8c; }
.bet-spot-play  { color: #f4d23a; }
.bet-spot-play  .bet-label { color: #f4d23a; }

/* Diamond bet — TRIPS (rotated square with text un-rotated) */
.bet-spot-diamond {
  width: 48px;
  height: 48px;
  transform: rotate(45deg);
  border: 2px solid currentColor;
  border-radius: 4px;
  padding: 0;
}
.bet-spot-diamond:hover:not(:disabled) {
  transform: rotate(45deg) translateY(-2px);
}
.bet-spot-diamond .bet-spot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-45deg);
}
.bet-spot-trips { color: #f08a3c; }
.bet-spot-trips .bet-label { color: #f08a3c; }

/* "=" between ANTE and BLIND */
.bet-equals {
  font-size: 22px;
  color: var(--ivory);
  opacity: 0.8;
  font-weight: 300;
  font-family: "Georgia", serif;
}

/* Raise rules text next to PLAY */
.play-rules {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(248, 244, 232, 0.85);
  text-align: left;
  line-height: 1.5;
}
.play-rules li b {
  color: #f4d23a;
  font-weight: 700;
  margin-right: 4px;
}
.bet-row-play {
  gap: 16px;
}

/* Win-flash colour adjusted to match each spot's accent */
.bet-spot-circle.win-flash,
.bet-spot-diamond.win-flash {
  animation: win-flash-glow 1200ms ease-out;
}
@keyframes win-flash-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 168, 74, 0); }
  50% { box-shadow: 0 0 0 12px rgba(212, 168, 74, 0.4); }
}

.limits-plaque {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  border: 1px solid var(--trim);
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
}

.action-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 0;
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid var(--trim);
}

.bottom-hud {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 6px 24px 10px;
  gap: 20px;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--trim);
}

.chip-rack {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(180deg, #2a2a2a 0%, #141414 100%);
  border: 1px solid rgba(0, 0, 0, 0.6);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
              0 4px 10px rgba(0, 0, 0, 0.5);
  justify-self: start;
}

.stats {
  display: flex;
  gap: 28px;
  justify-self: center;
}
.stat {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(248, 244, 232, 0.7);
  text-transform: uppercase;
}
.stat b {
  display: block;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.status-line {
  justify-self: end;
  font-size: 12px;
  color: rgba(248, 244, 232, 0.8);
  max-width: 320px;
  text-align: right;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.overlay[hidden] { display: none; }
.overlay-card {
  background: #0d2c1f;
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 24px 32px;
  max-width: 360px;
  text-align: center;
}
.overlay-card h2 {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.overlay-card p { font-size: 13px; color: var(--ivory); margin: 0 0 16px; }
.overlay-actions { display: flex; justify-content: center; gap: 12px; }

.result-banner {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--gold);
  padding: 14px 32px;
  border-radius: 12px;
  text-align: center;
  z-index: 40;
  animation: result-in 320ms ease-out;
}
.result-banner[hidden] { display: none; }
.result-headline {
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.result-detail { font-size: 13px; color: var(--ivory); margin-top: 4px; }

@keyframes result-in {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.bet-spot.win-flash {
  animation: win-flash 1200ms ease-out;
}
@keyframes win-flash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,168,74,0); }
  50% { box-shadow: 0 0 0 12px rgba(212,168,74,0.45); }
}
