/* Table kit: the parts shared by the roulette, sic bo, Caribbean stud and
   Ultimate poker tables (intro, settings bar, felt and seats, chips, bottom
   console, panels, session report, playing cards). Each game adds its own
   stylesheet after this one. Loaded after style.css. */

/* ---------- intro ---------- */

.intro {
  padding: 18px 0 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 4px 28px;
}

.intro h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.2;
  color: var(--ivory);
}

.intro-lead {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- game bar ---------- */

.game-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 24px;
  margin-bottom: 12px;
}

.bank {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.bank-label {
  font-size: 13px;
  color: var(--muted);
}

.bank-value {
  font-family: "Bodoni Moda", serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: var(--brass-hi);
  font-variant-numeric: tabular-nums lining-nums;
}

.text-btn {
  padding: 2px 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-btn:hover:not(:disabled) {
  color: var(--brass-hi);
}

.text-btn[data-armed="1"] {
  color: var(--warn);
}

.text-btn:disabled {
  opacity: 0.4;
}

.settings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.set {
  display: flex;
  align-items: center;
  gap: 8px;
}

.set-label {
  font-size: 12px;
  color: var(--muted);
}

.seg,
.stepper {
  display: inline-flex;
  border: 1px solid rgba(212, 175, 106, 0.4);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
}

.seg button,
.stepper button {
  min-width: 34px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  background: none;
  font-size: 13px;
}

.seg button + button {
  border-left: 1px solid rgba(212, 175, 106, 0.25);
}

.seg button[aria-pressed="true"] {
  background: var(--brass);
  color: var(--room-deep);
  font-weight: 700;
}

.stepper output {
  min-width: 28px;
  display: grid;
  place-items: center;
  font-weight: 700;
  border-left: 1px solid rgba(212, 175, 106, 0.25);
  border-right: 1px solid rgba(212, 175, 106, 0.25);
}

.stepper button:disabled,
.seg button:disabled {
  opacity: 0.45;
}

.select {
  height: 30px;
  padding: 0 26px 0 10px;
  border: 1px solid rgba(212, 175, 106, 0.4);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23D4AF6A'/%3E%3C/svg%3E") no-repeat right 9px center;
  appearance: none;
  -webkit-appearance: none;
  font-size: 13px;
}

.select option {
  background: var(--room-deep);
}

.select:disabled {
  opacity: 0.45;
}

/* ---------- table ---------- */

.table-wrap {
  position: relative;
  width: 100%;
  max-width: max(940px, calc((100vh - 430px) * 2.15 + 32px));
  margin: 0 auto;
}

.table-rim {
  position: relative;
  width: 100%;
  padding: 16px;
  border-radius: 34px 34px 50% 50% / 34px 34px 78% 78%;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.07), transparent 40%),
    linear-gradient(180deg, #3a2219, #1c0e09 60%, #0d0604);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -2px 0 rgba(0, 0, 0, 0.6);
}

.table-rim::before {
  /* thin brass edge between rail and felt */
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 30px 30px 50% 50% / 30px 30px 78% 78%;
  border: 1px solid rgba(212, 175, 106, 0.45);
  pointer-events: none;
}


.felt-msg {
  position: absolute;
  top: calc(4% + var(--ch) + 46px);
  left: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  max-width: min(78%, 560px);
  margin: 0;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(6, 26, 23, 0.72);
  border: 1px solid rgba(212, 175, 106, 0.35);
  color: var(--ivory);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.felt-msg:empty {
  display: none;
}

.felt-msg[data-tone="good"] {
  color: var(--good);
  border-color: rgba(127, 211, 168, 0.5);
}

.felt-msg[data-tone="bad"] {
  color: var(--bad);
  border-color: rgba(255, 138, 143, 0.5);
}

.felt-msg[data-tone="warn"] {
  color: var(--warn);
  border-color: rgba(255, 210, 122, 0.55);
}

.felt-msg.pop {
  animation: pop 0.25s ease-out;
}

@keyframes pop {
  from { opacity: 0.4; transform: translate(-50%, -50%) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}


.chips {
  display: flex;
  gap: 8px;
}

.chip {
  --chip: #2463b4;
  position: relative;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--chip) 0 54%, transparent 55%),
    repeating-conic-gradient(var(--chip) 0 30deg, #f4ebd6 30deg 45deg);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45), 0 6px 10px rgba(0, 0, 0, 0.4), inset 0 0 0 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.12s;
}

.chip span {
  position: absolute;
  inset: 22%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.6);
  font-family: "Bodoni Moda", serif;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.chip:hover:not(:disabled) {
  transform: translateY(-3px);
}

.chip:active:not(:disabled) {
  transform: translateY(0) scale(0.96);
}

.chip:disabled {
  opacity: 0.35;
  filter: saturate(0.4);
}

.c25 { --chip: #2e8b57; --chip-side: #1b5636; }

.c100 { --chip: #2a2a2e; --chip-side: #0c0c0e; }

.c500 { --chip: #6b3fa0; --chip-side: #3f235f; }

.c1000 { --chip: #d98f20; --chip-side: #8a5a12; }

.c1000 span,
.c100 span {
  color: #fff;
}

/* ---------- study panels ---------- */

.study {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.panel {
  border: 1px solid rgba(212, 175, 106, 0.38);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 8, 10, 0.88), rgba(14, 5, 7, 0.92));
  overflow: hidden;
}

.panel > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  list-style: none;
  cursor: pointer;
}

.panel > summary::-webkit-details-marker {
  display: none;
}

.panel > summary::before {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  transform: rotate(-45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.panel[open] > summary::before {
  transform: rotate(45deg);
}

.p-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--brass-hi);
}

.p-toggle {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid rgba(212, 175, 106, 0.3);
  border-radius: 999px;
  padding: 1px 10px;
}

.panel .when-open,
.panel[open] .when-closed {
  display: none;
}

.panel[open] .when-open {
  display: inline;
}

.panel-body {
  padding: 0 18px 18px;
}

.p-sub {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.p-foot {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.switch-ui {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.15s;
  flex-shrink: 0;
}

.switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ivory);
  transition: transform 0.15s;
}

.switch input:checked + .switch-ui {
  background: var(--brass);
}

.switch input:checked + .switch-ui::after {
  transform: translateX(14px);
  background: var(--room-deep);
}

.switch input:focus-visible + .switch-ui {
  outline: 2px solid var(--brass-hi);
  outline-offset: 2px;
}


.score {
  display: flex;
  gap: 18px;
  margin: 0;
}

.score div {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.score dt {
  font-size: 12px;
  color: var(--muted);
}

.score dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* table rules panel */

.p-summary {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.panel[open] .p-summary {
  visibility: hidden;
}

.rules-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 10px 28px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(15, 81, 72, 0.22);
  border: 1px solid rgba(212, 175, 106, 0.2);
}

.rule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  border-bottom: 1px dashed rgba(212, 175, 106, 0.15);
}

.rule-label {
  font-size: 13px;
  color: var(--ivory);
}

.rule-row .seg button {
  min-width: 58px;
  height: 32px;
}

.rule-row .select {
  min-width: 110px;
  height: 32px;
}

.rules-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

.rules-actions .btn {
  min-height: 40px;
  font-size: 13px;
}

.btn[data-armed="1"] {
  border-color: var(--warn);
  color: var(--warn);
}

.rules-form[title]:not([title=""]) {
  opacity: 0.6;
}


/* seats along the rail */

.seats {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.seat {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.seat-bets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  min-height: 20px;
}

.sb {
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.sb-p { background: var(--pc); }
.sb-b { background: var(--bc); }
.sb-s { background: rgba(0, 0, 0, 0.45); color: var(--brass-hi); border: 1px solid rgba(212, 175, 106, 0.5); }

.plate {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 2px 9px 2px 2px;
  border: 1px solid rgba(212, 175, 106, 0.3);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  font-size: 11.5px;
  color: var(--ivory);
}

.plate:disabled {
  cursor: default;
}

.avatar {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #555;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.pname {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seat[data-kind="you"] .plate {
  border-color: var(--brass-hi);
  background: linear-gradient(180deg, var(--brass-hi), var(--brass));
  color: var(--room-deep);
  font-weight: 700;
}

.seat[data-kind="you"] .avatar {
  background: var(--room-deep);
  box-shadow: inset 0 0 0 2px var(--brass-hi);
}

.seat[data-kind="vacant"] .plate {
  border-style: dashed;
  background: rgba(0, 0, 0, 0.15);
  color: var(--ink);
}

.seat[data-kind="vacant"] .avatar {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(236, 214, 160, 0.4);
}

.can-sit .seat[data-kind="vacant"] .plate:hover {
  border-color: var(--brass-hi);
  color: var(--ivory);
}

.seat-no {
  position: absolute;
  bottom: -14px;
  font-family: "Bodoni Moda", serif;
  font-size: 10px;
  color: var(--ink-soft);
}

.seat-res {
  position: absolute;
  top: -16px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 12.5px;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.seat-res[data-tone="good"] { color: var(--good); }
.seat-res[data-tone="bad"] { color: var(--bad); }

.seat.squeezing .plate {
  animation: squeeze-glow 0.9s ease-in-out infinite alternate;
}

@keyframes squeeze-glow {
  to { box-shadow: 0 0 0 2px var(--warn), 0 0 14px var(--warn); }
}

/* ---------- dock: chips and betting board ---------- */

.dock {
  position: relative;
  z-index: 6;
  margin-top: 14px;
  padding: 12px 16px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(31, 14, 10, 0.94), rgba(14, 6, 5, 0.96));
  border: 1px solid rgba(212, 175, 106, 0.4);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  display: grid;
  gap: 12px;
}

.dock-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 106, 0.18);
}

.dock .bank-value {
  font-size: 26px;
}

.bet-sum {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.bet-sum strong {
  font-family: "Bodoni Moda", serif;
  font-size: 22px;
  color: var(--ivory);
  font-variant-numeric: tabular-nums lining-nums;
}

.dock .chips {
  justify-content: center;
  flex-wrap: wrap;
}

.c1 { --chip: #e9e2d0; --chip-side: #8f8672; }
.c5 { --chip: #c73a3a; --chip-side: #7a1f1f; }
.c10 { --chip: #2463b4; --chip-side: #173f73; }
.c25 { --chip: #2e8b57; --chip-side: #1b5636; }
.c50 { --chip: #d98f20; --chip-side: #8a5a12; }
.c100 { --chip: #2a2a2e; --chip-side: #0c0c0e; }
.c500 { --chip: #6b3fa0; --chip-side: #3f235f; }
.c1000 { --chip: #c9a24a; --chip-side: #7c6024; }

.c100 span,
.c500 span,
.c1000 span {
  color: #fff;
}

.chip[aria-checked="true"] {
  transform: translateY(-6px);
  box-shadow: 0 0 0 3px var(--brass-hi), 0 0 16px rgba(241, 217, 154, 0.7), 0 8px 12px rgba(0, 0, 0, 0.5);
}

.spot {
  --tone: rgba(212, 175, 106, 0.55);
  --tone-bg: rgba(212, 175, 106, 0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 52px;
  padding: 6px 8px;
  border: 1.5px solid var(--tone);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--tone-bg), rgba(0, 0, 0, 0.28));
  color: var(--ivory);
  text-align: center;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
}

.spot:hover:not(:disabled) {
  box-shadow: 0 0 0 1px var(--tone), 0 0 14px -2px var(--tone);
}

.spot:active:not(:disabled) {
  transform: scale(0.98);
}

.spot:disabled {
  cursor: default;
}

.spot-p { grid-area: p; --tone: var(--pc); --tone-bg: rgba(63, 127, 208, 0.22); min-height: 78px; }
.spot-b { grid-area: b; --tone: var(--bc); --tone-bg: rgba(208, 71, 90, 0.22); min-height: 78px; }
.spot-t { grid-area: t; --tone: var(--tc); --tone-bg: rgba(47, 163, 107, 0.2); }
.spot-pp { grid-area: pp; --tone: var(--pc); --tone-bg: rgba(63, 127, 208, 0.1); }
.spot-bp { grid-area: bp; --tone: var(--bc); --tone-bg: rgba(208, 71, 90, 0.1); }
.spot.tone-p { --tone: rgba(63, 127, 208, 0.75); --tone-bg: rgba(63, 127, 208, 0.1); }
.spot.tone-b { --tone: rgba(208, 71, 90, 0.75); --tone-bg: rgba(208, 71, 90, 0.1); }

.spot-name {
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.25;
}

.spot-p .spot-name,
.spot-b .spot-name {
  font-family: "Bodoni Moda", var(--font-display);
  font-size: 20px;
  letter-spacing: 0.08em;
}

.spot-p .spot-name { color: var(--pc-hi); }
.spot-b .spot-name { color: var(--bc-hi); }
.spot-t .spot-name { color: #8fe3b6; font-size: 17px; }

.spot-name b {
  color: var(--brass-hi);
}

.spot-pay {
  font-family: "Bodoni Moda", serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.spot-amt:empty {
  display: none;
}

.spot-amt {
  position: absolute;
  top: -8px;
  right: -6px;
  z-index: 1;
  min-width: 34px;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass));
  color: var(--room-deep);
  font-weight: 800;
  font-size: 11.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  font-variant-numeric: tabular-nums;
}

.spot.has-bet {
  box-shadow: inset 0 0 0 1px var(--tone), 0 0 18px -6px var(--tone);
}

.spot[data-res="win"] {
  box-shadow: 0 0 0 2px var(--good), 0 0 18px rgba(127, 211, 168, 0.6);
}

.spot[data-res="lose"] {
  opacity: 0.55;
}

.spot[data-res="push"] {
  box-shadow: 0 0 0 2px var(--warn);
}

.props-wrap {
  border: 1px solid rgba(212, 175, 106, 0.25);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.props-wrap > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--brass-hi);
}

.props-wrap > summary::-webkit-details-marker {
  display: none;
}

.props-wrap > summary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  transform: rotate(-45deg);
  transition: transform 0.2s;
}

.props-wrap[open] > summary::before {
  transform: rotate(45deg);
}

.side-count {
  padding: 0 8px;
  border-radius: 999px;
  background: var(--brass);
  color: var(--room-deep);
  font-size: 11px;
}

.side-count:empty {
  display: none;
}

.board-note {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
}

/* Sticks to the bottom of the screen while the table is in view, so the visitor
   can rebet and deal without scrolling down to the board. */
.action-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border: 1px solid rgba(212, 175, 106, 0.45);
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, rgba(36, 16, 12, 0.96), rgba(16, 6, 5, 0.98));
  box-shadow: 0 -10px 24px -10px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ab-info {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.ab-info b {
  margin-right: 8px;
  font-family: "Bodoni Moda", serif;
  font-size: 19px;
  color: var(--brass-hi);
  font-variant-numeric: tabular-nums lining-nums;
}

/* strategy verdict, as on the blackjack table */
.ab-advice {
  flex: 1 1 220px;
  margin: 0;
  min-height: 1.4em;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.ab-advice:empty {
  visibility: hidden;
}

.ab-advice[data-tone="good"] {
  color: var(--good);
}

.ab-advice[data-tone="bad"] {
  color: var(--bad);
}

.ab-advice.pop {
  animation: ab-advice-pop 0.35s ease-out;
}

@keyframes ab-advice-pop {
  from {
    transform: scale(0.94);
    opacity: 0.2;
  }
}

.dock-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.dock-actions .btn-deal {
  min-width: 150px;
}

.btn-rebuy {
  margin-right: auto;
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 4px 18px;
  margin: 0;
  padding: 10px 12px;
  list-style: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 13px;
}

.results li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.r-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.r-stake {
  color: var(--muted);
  font-size: 12px;
}

.results li[data-tone="good"] b { color: var(--good); }
.results li[data-tone="bad"] b { color: var(--bad); }

.results .r-total {
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding-top: 4px;
  border-top: 1px solid rgba(212, 175, 106, 0.2);
}

/* ---------- panels ---------- */

.pay-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.55;
  background: rgba(10, 4, 5, 0.55);
}

.pay-table th,
.pay-table td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(212, 175, 106, 0.16);
  text-align: left;
  vertical-align: top;
}

.pay-table thead th {
  background: rgba(212, 175, 106, 0.12);
  color: var(--brass-hi);
  white-space: nowrap;
}

.pay-table tbody th {
  color: var(--brass-hi);
  white-space: nowrap;
  font-weight: 700;
}

.pay-table .num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.table-scroll {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 106, 0.28);
}

.score {
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.score dd {
  font-family: "Bodoni Moda", serif;
  font-size: 20px;
  color: var(--brass-hi);
}

.score dd[data-tone="good"] { color: var(--good); }
.score dd[data-tone="bad"] { color: var(--bad); }

/* ---------- console ---------- */

.ab-bets {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip.ab-chip {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  font-size: 12px;
}

.chip.ab-chip:disabled {
  opacity: 0.5;
}

.ab-q {
  position: relative;
  min-width: 92px;
  min-height: 44px;
  padding: 4px 14px;
  border: 1.5px solid var(--line, rgba(244, 235, 214, 0.7));
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(15, 81, 72, 0.6), rgba(0, 0, 0, 0.3));
  color: var(--ivory);
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.1s, box-shadow 0.15s;
}

.ab-q:hover:not(:disabled) {
  box-shadow: 0 0 0 1px var(--brass-hi), 0 0 14px -2px var(--brass-hi);
}

.ab-q:active:not(:disabled) {
  transform: scale(0.98);
}

.ab-q:disabled {
  opacity: 0.45;
  cursor: default;
}

.ab-q[data-tone="come"] .ab-q-name {
  color: #ff9a9a;
}

.ab-q[data-spot="field"] .ab-q-name {
  color: var(--gold, #f6d77d);
}

.ab-q .spot-amt:empty {
  display: none;
}

.ab-q .spot-amt {
  position: absolute;
  top: -8px;
  right: -6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass));
  color: var(--room-deep);
  font-weight: 800;
  font-size: 11px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.ab-q[data-res="win"] {
  box-shadow: 0 0 0 2px var(--good);
}

.ab-q[data-res="lose"] {
  opacity: 0.6;
}


/* ======================================================================
   Kit additions: felt, seats with cards and bets, playing cards, the
   console that rises from the bottom, the round meter and the report.
   ====================================================================== */

.kt {
  --pw: clamp(40px, 4.4vw, 58px); /* playing-card width */
  --line: rgba(244, 235, 214, 0.78);
  --gold: #f6d77d;
}

.kt .table-wrap {
  max-width: none;
}

.kt .table-rim {
  border-radius: 30px 30px 46% 46% / 30px 30px 26% 26%;
  padding: 14px;
}

.kt .table-rim::before {
  border-radius: 26px 26px 46% 46% / 26px 26px 26% 26%;
  inset: 10px;
}

.k-felt {
  position: relative;
  aspect-ratio: 2.1 / 1;
  min-height: 360px;
  border-radius: 20px 20px 46% 46% / 20px 20px 26% 26%;
  overflow: hidden;
  background-color: var(--felt);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"),
    radial-gradient(80% 90% at 50% 25%, var(--felt-hi), var(--felt) 55%, var(--felt-deep));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4), inset 0 18px 40px -10px rgba(0, 0, 0, 0.55), inset 0 -30px 60px -20px rgba(0, 0, 0, 0.6);
}

/* Printed rule text arcing across the felt. */
.k-print {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 2px;
  font-family: "Bodoni Moda", serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(244, 222, 160, 0.5);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  text-transform: uppercase;
}

.k-print span:first-child {
  font-size: clamp(11px, 1.3vw, 15px);
}

.k-print span + span {
  font-size: clamp(8px, 0.85vw, 10.5px);
  letter-spacing: 0.12em;
  color: rgba(244, 222, 160, 0.38);
}

.k-felt .felt-msg {
  top: 46%;
}

.k-felt .seat {
  width: min(16%, 150px);
}

.seat-play {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 12px;
}

.kt .seat-res {
  top: auto;
  bottom: -30px;
}

.seat.active .plate {
  animation: k-turn 0.9s ease-in-out infinite alternate;
}

@keyframes k-turn {
  to { box-shadow: 0 0 0 2px var(--brass-hi), 0 0 14px rgba(246, 215, 125, 0.7); }
}

.seat.folded .seat-play {
  opacity: 0.4;
}

.seat-tag {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 106, 0.4);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--brass-hi);
  white-space: nowrap;
}

.seat-tag:empty {
  display: none;
}

.seat-tag[data-tone="good"] { color: var(--good); border-color: rgba(120, 220, 160, 0.5); }
.seat-tag[data-tone="bad"] { color: var(--bad); border-color: rgba(240, 120, 120, 0.45); }

/* A stack of chips standing in a betting circle. */
.kchip {
  --c: #c8892d;
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 4px;
  border-radius: 999px;
  background:
    repeating-conic-gradient(from 0deg, #fff 0 10deg, transparent 10deg 45deg),
    var(--c);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.35);
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.kchip::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: var(--c);
}

.kchip b {
  position: relative;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}

.kchip.drop {
  animation: kchip-drop 0.28s cubic-bezier(0.2, 0.8, 0.25, 1);
}

@keyframes kchip-drop {
  from { transform: translateY(-14px) scale(1.15); opacity: 0; }
}

/* ---------- playing cards ---------- */

.pc {
  position: relative;
  width: var(--pw);
  aspect-ratio: 100 / 140;
  perspective: 600px;
  flex-shrink: 0;
}

.pc-in {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(180deg);
  transition: transform 0.38s cubic-bezier(0.3, 0.7, 0.3, 1);
}

.pc.up .pc-in {
  transform: none;
}

.pc.no-anim .pc-in {
  transition: none;
}

.pc-f,
.pc-b {
  position: absolute;
  inset: 0;
  /* .pc-b is also a class of the top page's hero; keep its padding off the cards */
  padding: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 7%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}

.pc-b {
  transform: rotateY(180deg);
}

.pc svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pc.win .pc-f {
  box-shadow: 0 0 0 2px var(--gold), 0 0 12px rgba(246, 215, 125, 0.75);
}

.pc.dim {
  filter: brightness(0.55);
}

.cards-row {
  display: flex;
  justify-content: center;
}

.cards-row .pc + .pc {
  margin-left: calc(var(--pw) * -0.42);
}

/* ---------- round meter in the settings bar ---------- */

.k-round {
  display: grid;
  gap: 3px;
  min-width: 150px;
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.k-round b {
  font-family: "Bodoni Moda", serif;
  font-size: 18px;
  color: var(--brass-hi);
  font-variant-numeric: tabular-nums lining-nums;
}

.k-round-bar {
  --p: 0;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.k-round-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: calc(var(--p) * 100%);
  background: linear-gradient(90deg, var(--brass), var(--brass-hi));
  transition: width 0.4s ease;
}

/* ---------- console: rises from the bottom of the screen ---------- */

.kt .action-bar {
  margin-top: 12px;
}

.kt .action-bar.rise {
  animation: k-rise 0.42s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

@keyframes k-rise {
  from {
    transform: translateY(70%);
    opacity: 0;
  }
}

.ab-chips {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ab-chips .chip {
  width: 42px;
  height: 42px;
}

.ab-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ab-group[hidden] {
  display: none;
}

.ab-prompt {
  margin: 0;
  font-size: 13px;
  color: var(--ivory);
}

.ab-prompt b {
  color: var(--brass-hi);
}

.btn-fold {
  background: linear-gradient(180deg, #5b4b52, #3a2f35);
  border-color: rgba(220, 200, 210, 0.35);
  color: #f1e6ea;
}

.btn-raise {
  min-width: 120px;
}

/* ---------- session report ---------- */

.kr {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(10, 30, 26, 0.75), rgba(5, 1, 2, 0.9));
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.kr[hidden] {
  display: none;
}

body.kr-open {
  overflow: hidden;
}

.kr-panel {
  width: min(94vw, 560px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 2px solid var(--brass);
  background-color: var(--felt);
  background-image: radial-gradient(90% 80% at 50% 20%, var(--felt-hi), var(--felt) 60%, var(--felt-deep));
  box-shadow: 0 0 0 6px #24120b, 0 0 0 7px rgba(212, 175, 106, 0.55), 0 30px 60px rgba(0, 0, 0, 0.7);
  text-align: center;
  animation: k-rise 0.45s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.kr-panel .kicker {
  margin: 0 0 2px;
}

.kr-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ivory);
}

.kr-sub {
  margin: 0 auto 12px;
  max-width: 44ch;
  font-size: 12.5px;
  color: rgba(244, 235, 214, 0.85);
}

.kr-list {
  margin: 0 0 14px;
  padding: 6px 14px;
  border: 1px solid rgba(212, 175, 106, 0.3);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  text-align: left;
}

.kr-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(212, 175, 106, 0.14);
}

.kr-list > div:last-child {
  border-bottom: 0;
}

.kr-list dt {
  font-size: 12.5px;
  color: var(--muted);
}

.kr-list dd {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  color: var(--ivory);
  text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
}

.kr-list .kr-main dd {
  font-family: "Bodoni Moda", serif;
  font-size: 22px;
  color: var(--brass-hi);
}

.kr-list dd[data-tone="good"] { color: var(--good); }
.kr-list dd[data-tone="bad"] { color: var(--bad); }

#rp-next {
  min-width: 240px;
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .kt {
    --pw: 34px;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .game-bar {
    justify-content: flex-start;
  }

  .settings {
    gap: 8px 12px;
  }

  .k-round {
    min-width: 0;
    width: 100%;
  }

  .kt .table-rim {
    margin: 0 -8px;
    padding: 8px;
    border-radius: 22px;
  }

  .kt .table-rim::before {
    inset: 5px;
    border-radius: 18px;
  }

  .k-felt {
    aspect-ratio: auto;
    min-height: 520px;
    border-radius: 16px;
  }

  .k-felt .seat {
    width: 31%;
  }

  .k-felt .plate {
    font-size: 10.5px;
    padding-right: 6px;
  }

  .k-felt .avatar {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .k-felt .felt-msg {
    max-width: 92%;
    white-space: normal;
    font-size: 12.5px;
    padding: 5px 12px;
  }

  .kchip {
    min-width: 22px;
    height: 22px;
    font-size: 9px;
  }

  .kt .action-bar {
    margin: 10px -4px 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }

  .ab-info {
    width: 100%;
    justify-content: center;
    font-size: 11px;
  }

  .ab-info b {
    font-size: 16px;
  }

  .ab-advice {
    flex-basis: 100%;
    min-height: 0;
    font-size: 12px;
  }

  .ab-advice:empty {
    display: none;
  }

  .ab-chips {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }

  .ab-chips .chip {
    width: 40px;
    height: 40px;
  }

  .ab-group {
    width: 100%;
    justify-content: center;
  }

  .dock-actions {
    width: 100%;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 6px;
    margin-left: 0;
  }

  .dock-actions .btn {
    min-height: 44px;
    min-width: 0;
    padding: 0 6px;
    font-size: 13px;
  }

  .dock-actions .btn-deal {
    min-width: 0;
    font-size: 15px;
  }

  .panel > summary {
    padding: 12px 14px;
  }

  .p-title {
    font-size: 17px;
  }

  .panel-body {
    padding: 0 12px 14px;
  }

  .pay-table {
    font-size: 12px;
  }

  #rp-next {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kt .action-bar.rise,
  .kr-panel,
  .seat.active .plate,
  .kchip.drop {
    animation: none;
  }

  .pc-in {
    transition: none;
  }
}

/* On phones the felt becomes a column: the game's own area first, then the
   message, then the six seats in two rows (seat 1 at the top right). */
@media (max-width: 760px) {
  .k-felt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 8px 22px;
  }

  .k-felt .k-print {
    position: static;
    transform: none;
  }

  .k-felt .felt-msg {
    position: static;
    transform: none;
    order: 5;
  }

  .k-felt .seats {
    position: static;
    order: 6;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 4px;
    width: 100%;
    margin-top: 6px;
  }

  .k-felt .seat {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    transform: none;
  }

  .k-felt .seat[data-seat="1"] { order: 3; }
  .k-felt .seat[data-seat="2"] { order: 2; }
  .k-felt .seat[data-seat="3"] { order: 1; }
  .k-felt .seat[data-seat="4"] { order: 6; }
  .k-felt .seat[data-seat="5"] { order: 5; }
  .k-felt .seat[data-seat="6"] { order: 4; }
}

/* ---------- console buttons and spots ---------- */

.btn-watch {
  margin: 0 16px 0 8px;
  background: linear-gradient(180deg, #4d6378, #33465a);
  border-color: rgba(190, 215, 240, 0.4);
  color: #eef4fa;
}

.ab-spot {
  min-width: 132px;
  min-height: 46px;
  padding: 4px 14px;
  border-radius: 12px;
  display: inline-grid;
  justify-items: center;
  gap: 0;
}

.ab-spot .spot-name {
  font-weight: 700;
  font-size: 14px;
}

/* ---------- poker tables: dealer, deck, betting circles ---------- */

.dealer-area {
  position: absolute;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 5px;
  z-index: 3;
}

.dealer-label {
  margin: 0;
  font-family: "Bodoni Moda", serif;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 222, 160, 0.65);
}

.dealer-area .cards-row {
  min-height: calc(var(--pw) * 1.4);
}

.dealer-area .cards-row .pc + .pc {
  margin-left: 4px;
}

.deck-stack {
  position: absolute;
  top: 5%;
  right: 6%;
  width: calc(var(--pw) * 0.95);
  aspect-ratio: 100 / 140;
}

.deck-stack span {
  position: absolute;
  inset: 0;
  border-radius: 7%;
  background: #6e1726;
  border: 2px solid #f4ebd6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.deck-stack span:nth-child(2) { transform: translate(2px, -2px); }
.deck-stack span:nth-child(3) { transform: translate(4px, -4px); background-image: repeating-linear-gradient(45deg, rgba(212, 175, 106, 0.4) 0 2px, transparent 2px 6px); }

.circles {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(244, 222, 160, 0.55);
  background: rgba(0, 0, 0, 0.12);
  color: rgba(244, 222, 160, 0.75);
}

button.circle:not(:disabled) {
  cursor: pointer;
}

button.circle:not(:disabled):hover {
  border-color: var(--brass-hi);
  background: rgba(246, 215, 125, 0.12);
}

.c-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.c-chip {
  position: relative;
  z-index: 1;
}

.hand .pc + .pc {
  margin-left: calc(var(--pw) * -0.5);
}

@media (max-width: 760px) {
  .dealer-area {
    position: static;
    transform: none;
    order: 1;
  }

  .k-felt .k-print {
    order: 2;
  }

  .deck-stack {
    top: 12px;
    right: 12px;
  }

  .circle {
    width: 34px;
    height: 34px;
  }

  .c-label {
    font-size: 7px;
  }

  .hand .pc + .pc {
    margin-left: calc(var(--pw) * -0.55);
  }

  .btn-watch {
    margin: 0;
  }

  .ab-spot {
    min-width: 0;
    flex: 1;
  }
}

.seat[data-kind="vacant"] .circles {
  visibility: hidden;
}

.seat[data-kind="you"] .hand .pc + .pc {
  margin-left: calc(var(--pw) * -0.36);
}

@media (max-width: 760px) {
  .seat[data-kind="you"] .hand .pc + .pc {
    margin-left: calc(var(--pw) * -0.5);
  }
}

/* ---------- felts with the seats in a row along the rail (dice and wheel games) ---------- */

.k-rail .felt-msg {
  position: static;
  transform: none;
  align-self: center;
  white-space: normal;
}

.k-rail .seats {
  position: static;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.k-rail .seat {
  position: relative;
  left: auto;
  top: auto;
  width: auto;
  transform: none;
  padding-top: 26px;
}

.k-rail .seat[data-seat="1"] { order: 6; }
.k-rail .seat[data-seat="2"] { order: 5; }
.k-rail .seat[data-seat="3"] { order: 4; }
.k-rail .seat[data-seat="4"] { order: 3; }
.k-rail .seat[data-seat="5"] { order: 2; }
.k-rail .seat[data-seat="6"] { order: 1; }

.k-rail .seat-play {
  position: absolute;
  top: 0;
  min-height: 0;
}

.k-rail .seat-res {
  bottom: -26px;
}

@media (max-width: 760px) {
  .k-rail .seats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 6px;
  }

  .k-rail .seat[data-seat="1"] { order: 3; }
  .k-rail .seat[data-seat="2"] { order: 2; }
  .k-rail .seat[data-seat="3"] { order: 1; }
  .k-rail .seat[data-seat="4"] { order: 6; }
  .k-rail .seat[data-seat="5"] { order: 5; }
  .k-rail .seat[data-seat="6"] { order: 4; }
}

/* ---------- progressive jackpot (poker tables): meter and conditions, top left ---------- */

.jp {
  position: absolute;
  top: 3%;
  left: 2.5%;
  z-index: 4;
  width: clamp(170px, 20%, 230px);
  padding: 8px 10px 7px;
  border-radius: 12px;
  border: 1px solid rgba(246, 215, 125, 0.55);
  background: linear-gradient(180deg, rgba(20, 8, 4, 0.82), rgba(8, 3, 2, 0.86));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(0, 0, 0, 0.5);
  color: var(--ivory);
}

.jp:empty {
  display: none;
}

.jp-kicker {
  margin: 0;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--brass-hi);
}

.jp-meter {
  margin: 1px 0 5px;
  font-family: "Bodoni Moda", serif;
  font-weight: 700;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.1;
  color: #ffe9a8;
  text-shadow: 0 0 10px rgba(246, 215, 125, 0.55);
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}

.jp-rows {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 4px 0 0;
  border-top: 1px solid rgba(246, 215, 125, 0.25);
  list-style: none;
  font-size: 10.5px;
}

.jp-rows li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 3px;
  border-radius: 4px;
}

.jp-rows li span {
  color: rgba(244, 235, 214, 0.86);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jp-rows li b {
  color: var(--brass-hi);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.jp-rows li.hit {
  animation: jp-hit 0.6s ease-in-out 4 alternate;
}

@keyframes jp-hit {
  to { background: rgba(246, 215, 125, 0.4); }
}

.jp-note {
  margin: 4px 0 0;
  font-size: 9.5px;
  line-height: 1.35;
  color: var(--muted);
}

/* the light on a seat's name plate */
.jp-lamp {
  display: none;
  margin-left: 2px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #2a1404;
  background: linear-gradient(180deg, #ffe9a8, #d4af6a);
  box-shadow: 0 0 6px rgba(246, 215, 125, 0.7);
}

.jp-lamp.on {
  display: inline-block;
}

.ab-jp[aria-pressed="true"] {
  border-color: var(--brass-hi);
  box-shadow: 0 0 0 1px var(--brass-hi), 0 0 12px rgba(246, 215, 125, 0.35);
}

.ab-jp[aria-pressed="false"] .spot-amt {
  color: var(--muted);
}

.panel-body .pt-sub {
  margin: 18px 0 8px;
  font-size: 15px;
  color: var(--brass-hi);
}

@media (max-width: 760px) {
  /* Above the dealer, leaving the top right corner to the deck. */
  .jp {
    position: static;
    order: 0;
    align-self: flex-start;
    width: calc(100% - 52px);
    padding: 6px 9px 5px;
  }

  .jp-meter {
    font-size: 19px;
    margin-bottom: 3px;
  }

  .jp-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 10px;
    font-size: 9.5px;
  }

  .jp-rows li {
    padding: 0;
    gap: 4px;
  }

  .jp-note {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jp-rows li.hit {
    animation: none;
    background: rgba(246, 215, 125, 0.3);
  }
}

/* Three or four bet spots in the console: two to a row on phones. */
@media (max-width: 760px) {
  .ab-group:has(> .ab-spot:nth-child(3)):not([hidden]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .ab-group:has(> .ab-spot:nth-child(3)) > .ab-spot {
    min-height: 40px;
  }

  .ab-group:has(> .ab-spot:nth-child(3)):has(> .ab-spot:nth-child(4)) > .ab-spot:nth-child(3):last-child,
  .ab-group:has(> .ab-spot:nth-child(3)):not(:has(> .ab-spot:nth-child(4))) > .ab-spot:nth-child(3) {
    grid-column: 1 / -1;
  }
}
