/* Shared table layout, including the betting tray and the two orientations of the roulette board. */
.site-top .top-row, .site-top .top-actions { flex-wrap: nowrap; }
.site-top .top-row { padding-block: 0; }
.site-top .mast-brand { flex: none; }
.site-top .top-actions { min-width: 0; }
#top-wallet { min-width: 0; }
#top-balance { font-size: .88rem; white-space: nowrap; }
#top-wallet .medal-symbol, #top-wallet .wallet-add { flex-shrink: 0; }
#session-button { flex-shrink: 0; }
@media (max-width: 460px) {
  .site-top .top-row { gap: 6px; }
  .site-top .top-actions { gap: 5px; }
  #top-balance { font-size: .72rem; }
  #top-wallet .medal-symbol { display: none; }
  #session-button.signed-in {
    display: grid;
    place-items: center;
    position: relative;
    width: 34px;
    height: 34px;
    font-size: 0;
    padding: 0;
  }
  #session-button.signed-in::before, #session-button.signed-in::after {
    content: "";
    position: absolute;
    border: 1.5px solid #e0edf0;
  }
  #session-button.signed-in::before { top: 7px; width: 7px; height: 7px; border-radius: 50%; }
  #session-button.signed-in::after { bottom: 6px; width: 14px; height: 7px; border-radius: 9px 9px 3px 3px; }
}
@media (max-width: 360px) {
  .site-top .top-row { padding-inline: 9px; }
  .site-top .brand { font-size: 17px; }
  #top-balance { font-size: .66rem; }
  #top-wallet .wallet-add { width: 19px; }
}

.at-tables {
  --surface-rail: #10262e;
  --surface-panel: #172f37;
  --surface-rim: #38565b;
  --table-ink: #edf6f5;
  --table-muted: #b5c9ca;
  --table-gold: #f1cd87;
  --table-green: #8df0ba;
}
.at-tables #game-area .floor { grid-template-columns: minmax(0,1fr); }
.at-tables #game-area .floor > .sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }
.at-tables #game-area .machine {
  background: linear-gradient(150deg,#1a313a,#122832 55%);
  border: 1px solid var(--surface-rim);
  padding: clamp(14px,1.8vw,25px);
}
.at-tables #game-back { margin-bottom: 12px; }
#game-area .machine-heading { display: flex; align-items: center; min-width: 0; gap: 12px; }
.at-tables #game-area .section-title {
  margin: 0 0 12px;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  min-width: 0;
}
.at-tables #machine-name { font-size: clamp(1.15rem,1.85vw,1.75rem); line-height: 1.28; }
#table-cover { width: 84px; flex-shrink: 0; border: 1px solid #57716d; border-radius: 6px; }
#current-table { display: block; color: var(--table-gold); font-size: .75rem; font-weight: 750; }
.at-tables #seat-balance { display: none; }
#table-switch { position: relative; }
#table-switch > summary, .bet-options > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#table-switch > summary::-webkit-details-marker, .bet-options > summary::-webkit-details-marker { display: none; }
#table-switch > summary::after, .bet-options > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
#table-switch[open] > summary::after, .bet-options[open] > summary::after { transform: translateY(2px) rotate(225deg); }
#table-switch > summary {
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid var(--surface-rim);
  border-radius: 6px;
  background: #203d44;
  color: var(--table-ink);
  font-size: .83rem;
  font-weight: 700;
  white-space: nowrap;
}
#table-switch .narrow-label { display: none; }
#table-switch[open] > summary { border-color: #8bb99e; }
#table-switch #table-nav {
  position: absolute;
  inset: calc(100% + 6px) 0 auto auto;
  z-index: 13;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  width: min(375px, calc(100vw - 50px));
  max-height: min(490px,65dvh);
  overflow-y: auto;
  margin: 0;
  padding: 9px;
  border: 1px solid #53716f;
  border-radius: 9px;
  background: #172f37;
  box-shadow: 0 15px 27px #080e13b0;
}
#table-switch #table-nav a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: flex-start;
  white-space: normal;
  text-align: start;
  font-size: .8rem;
  background: #213f48;
}
#table-switch #table-nav a[aria-current] { border-color: #86bf9e; background: #255349; color: #c8f8dd; }
#room-nav { margin: 0 0 11px; gap: 6px; }
#room-nav a { min-height: 32px; display: grid; place-items: center; background: #142c35; color: #c2d5d7; }
#room-nav a[aria-current] { background: #9aecc2; border-color: #9aecc2; color: #10392d; }
#room-nav a:hover:not([aria-current]) { border-color: #abd2b7; }
.live-strip {
  position: relative;
  min-height: 43px;
  padding: 7px 10px;
  margin: 0 0 12px;
  gap: 6px 10px;
  border: 1px solid #3a5558;
  background: #10262e;
  border-radius: 7px;
  font-size: .81rem;
  color: var(--table-muted);
}
#live-phase {
  gap: 6px;
  color: #f4d7a0;
  background: #423a2d;
  padding: 2px 8px;
  border-radius: 4px;
}
#live-phase::before { flex-shrink: 0; width: 6px; height: 6px; }
#table-room[data-phase="betting"] #live-phase { color: #b2f6d1; background: #20463a; }
#table-room[data-phase="acting"] #live-phase { color: #d0eaff; background: #28465e; }
#live-clock { color: #f0e4c9; white-space: nowrap; }
#live-clock.urgent, #slip-clock.urgent { color: #ffbfaa; }

.table-play-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0,1fr) clamp(245px,22vw,300px);
  gap: clamp(12px,1.45vw,22px);
  min-width: 0;
}
.table-view { min-width: 0; }
#table-console {
  min-width: 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--surface-rim);
  background: #142a32;
}
@media (min-width: 821px) {
  #table-console {
    position: sticky;
    top: 79px;
    max-height: calc(100dvh - 91px);
    overflow: auto;
    scrollbar-width: thin;
  }
  #table-console:not(:has(#bet-confirm:not([hidden]))) { visibility: hidden; }
}

#table-room .table-felt {
  padding: 14px clamp(12px,2vw,23px) 16px;
  border: 5px solid #4c3529;
  border-radius: 14px 14px 28px 28px;
  box-shadow: 0 0 0 1px #9b7952,inset 0 0 0 2px #b39461,inset 0 -8px 22px #061d1388,0 6px 17px #060f1380;
}
#table-felt::after {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: -1;
  border: 1px solid #fbdf9b4a;
  border-radius: 8px 8px 21px 21px;
  background: repeating-linear-gradient(122deg,transparent 0 2px,#f8e3ba07 2px 3px);
  pointer-events: none;
}
#table-room .hand-caption { font-size: .83rem; }
#table-room .hand-cards { min-height: 63px; }
#table-room .felt-print { min-height: 21px; }
#felt-mark { white-space: nowrap; }
#table-room[data-table="baccarat"] #card-layout {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  grid-template-areas: "player banker" "mark mark" "seats seats";
  align-items: center;
}
#table-room[data-table="baccarat"] #dealer-zone { grid-area: banker; }
#table-room[data-table="baccarat"] #player-zone { grid-area: player; }
#table-room[data-table="baccarat"] .felt-print { grid-area: mark; }
#table-room[data-table="baccarat"] #table-seats { grid-area: seats; }
#table-seats .seat-caption { color: #ffe7b2; font-size: .8rem; }
#bet-boxes { width: 100%; gap: 7px; margin: 7px auto 0; }
#bet-boxes .felt-box {
  position: relative;
  min-height: 65px;
  padding: 5px 4px;
  gap: 1px;
  border: 1px solid #c1af768e;
  border-radius: 9px 9px 22px 22px;
  background: #071f215e;
  color: #e8f0dc;
}
#bet-boxes .seat-number {
  display: grid;
  place-items: center;
  width: 23px;
  aspect-ratio: 1;
  border: 1px solid #d7c690aa;
  border-radius: 50%;
  line-height: 1;
  font-size: .88rem;
}
#bet-boxes .seat-name { font-size: .72rem; }
#bet-boxes .felt-box[aria-pressed="true"] { outline: 2px solid #f7d68c; outline-offset: -1px; background: #61502d9a; }
#bet-boxes .felt-box[aria-pressed="true"] .seat-number { background: #f5d188; border-color: #f5d188; color: #332815; }
#bet-boxes .felt-box.occupied:not(.mine) { border-color: #98aaa159; background: #091e267a; color: #b8c8c5; }
#bet-boxes .felt-box.mine { border-color: #f8d18a; }
#table-room .table-status {
  min-height: 0;
  padding: 9px 0;
  margin: 3px 0;
  font-size: .86rem;
  color: #c9d9d8;
}
#table-room .table-status.won { color: #fbd482; }
#table-room #wheel-recent { padding-top: 10px; }

#table-wager { padding: 0; border: 0; }
#table-chip-controls {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 9px 5px;
  align-items: center;
}
#table-bet-label { color: var(--table-ink); font-weight: 750; font-size: .92rem; }
#table-limit { justify-self: end; color: var(--table-muted); font-size: .68rem; text-align: end; }
.stake-input {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  min-height: 42px;
  background: #0e2229;
  border: 1px solid #517275;
  border-radius: 6px;
  color: #b9cfcf;
  font-size: .82rem;
}
#table-chip-controls .stake-input input {
  flex: 1;
  min-width: 0;
  min-height: 41px;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: start;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--table-ink);
}
.stake-input:focus-within { outline: 2px solid #86d7ad; outline-offset: 2px; }
.stake-input #table-bet:focus { outline: none; }
#table-chip-controls #chip-rack {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  justify-items: center;
  margin: 2px 0 5px;
  padding: 3px 0;
  width: 100%;
  gap: 4px;
}
#table-chip-controls #chip-rack .denom {
  width: min(100%,44px);
  min-height: 32px;
  font-size: clamp(.62rem,1vw,.74rem);
}
#table-chip-controls #chip-rack .denom[aria-pressed="true"] { outline: 2px solid #f7d688; outline-offset: 2px; }
#table-chip-controls #chip-rack .denom:hover:not(:disabled) { filter: brightness(1.16); }

#live-extra-panel { margin: 9px 0 0; }
#table-room .bet-options {
  padding: 0 9px;
  border: 1px solid #3f5b60;
  border-radius: 6px;
  background: #142c34;
  margin-top: 8px;
}
#table-room .bet-options > summary {
  min-height: 40px;
  padding: 4px 0;
  color: #d5e6e4;
  font-size: .83rem;
  font-weight: 700;
  width: auto;
}
#table-room .bet-options > summary:hover { color: #aff7d3; }
#live-extras .extra-line { grid-template-columns: minmax(0,1fr) 52px 46px; font-size: .77rem; gap: 4px; }
#live-extras .extra-line input { min-height: 36px; color: var(--table-ink); background: #0d2227; }
#live-extras .extra-line > small { font-size: .66rem; }
#live-extras .extra-line:last-child { border-bottom: 0; padding-bottom: 8px; }

#bet-confirm {
  padding: 1px 0 0;
  color: var(--table-ink);
  font-variant-numeric: tabular-nums;
}
#table-wager:not([hidden]) + #bet-confirm { border-top: 1px solid #3c5658; margin-top: 13px; padding-top: 10px; }
.slip-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.slip-caption { min-width: 0; }
#slip-label { font-size: .85rem; }
#slip-target { display: block; color: var(--table-muted); font-size: .72rem; }
#slip-target:empty { display: none; }
.slip-amount { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: end; gap: 1px 4px; text-align: end; }
.slip-amount strong { color: var(--table-gold); font-size: clamp(1.04rem,1.55vw,1.33rem); overflow-wrap: anywhere; }
.slip-amount span { font-size: .7rem; color: var(--table-muted); }
#bet-confirm.has-payout .slip-amount strong { color: #9df4bd; }
#slip-clock { color: var(--table-muted); font-size: .72rem; text-align: end; }
#slip-lines { margin: 0 0 8px; padding: 0; list-style: none; max-height: 150px; overflow: auto; }
#slip-lines li {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: start;
  padding: 3px 0;
  font-size: .78rem;
  color: #d2e3e3;
}
#slip-lines strong { color: var(--table-gold); white-space: nowrap; }
#table-actions { margin: 10px 0 0; }
#table-actions:empty { display: none; }
#table-actions button {
  min-height: 45px;
  min-width: min(100%,94px);
  padding: 7px 9px;
  font-size: .91rem;
  line-height: 1.35;
  background: #254049;
  border-color: #537176;
}
#table-actions button[data-move="fold"] { background: #362c34; border-color: #734b51; }
#table-actions .primary { background: #8fe3b7; border-color: #a1eeca; color: #113a28; }
#table-actions .primary:disabled { background: #477266; border-color: #5d8779; color: #e1f4eb; opacity: 1; }
#table-actions button small { display: inline-block; white-space: nowrap; }
.bet-edit { display: flex; gap: 6px; margin-top: 6px; }
.bet-edit button {
  flex: 1;
  min-height: 33px;
  padding: 3px 6px;
  border-radius: 5px;
  border: 1px solid #445f64;
  background: #213b43;
  color: #d3e7e8;
  font-size: .77rem;
  white-space: nowrap;
}
.bet-edit button:hover:enabled { border-color: #a8cabc; }
#table-error { margin-top: 7px; color: #ffc0ac; }
#raise-control { justify-content: start; font-size: .83rem; }
#raise-range { color: var(--table-muted); }

#bet-areas { container-type: inline-size; min-width: 0; }
#bet-areas h3, #baccarat-bets legend {
  margin: 0;
  color: var(--table-ink);
  font-size: .98rem;
  font-weight: 750;
}
.bet-area-head { display: flex; justify-content: space-between; align-items: center; gap: 5px 12px; flex-wrap: wrap; margin-bottom: 7px; }
.bet-key { display: flex; flex-wrap: wrap; gap: 4px 11px; color: var(--table-muted); font-size: .72rem; }
.bet-key span { display: inline-flex; align-items: center; gap: 4px; }
.bet-key span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--table-gold); }
.bet-key span:last-child::before { background: #8fdbc3; }
#roulette-grid {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(14,minmax(0,1fr));
  gap: 2px;
  padding: 4px;
  border: 1px solid #d3ba79;
  border-radius: 6px;
  background: #c2ac72;
}
#roulette-grid .spot {
  position: relative;
  border: 0;
  display: grid;
  justify-items: center;
  place-content: center;
  min-width: 0;
  min-height: 45px;
  grid-column: var(--column);
  grid-row: var(--row);
  padding: 4px 2px;
  color: #fff7e2;
  font: 740 clamp(.79rem,1.2vw,1rem)/1.2 var(--lobby-font);
  background: #1b533e;
  border-radius: 1px;
}
#roulette-grid .spot.zero { background: #237351; }
#roulette-grid .spot.red { background: #8a2e3d; }
#roulette-grid .spot.black { background: #20272a; }
#roulette-grid .spot:disabled { opacity: 1; cursor: default; }
#roulette-grid .spot:enabled:hover, #roulette-grid .spot:focus-visible { box-shadow: inset 0 0 0 2px var(--table-gold); outline-offset: 1px; z-index: 1; }
#roulette-grid .spot.winning { outline: 2px solid #faf1ba; outline-offset: -2px; background: #b08343; color: #151a1b; }
#roulette-grid .spot.has-chip { box-shadow: inset 0 0 0 2px #f3cd89; }
#roulette-grid .placed-chip:not(:empty), #roulette-grid .spot-boost:not(:empty) {
  padding: 1px 3px;
  border-radius: 9px;
  font-size: .64rem;
  font-weight: 800;
  white-space: nowrap;
}
#roulette-grid .placed-chip:not(:empty) { margin-top: 2px; background: #f3d28b; color: #312617; }
#roulette-grid .spot-boost:not(:empty) { background: #553678; color: #f6e7ff; }
#roulette-grid .has-shared::before {
  content: "";
  position: absolute;
  inset: 3px 3px auto auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #97e6cd;
}
#roulette-grid .roulette-mobile-label { display: none; }
@container (max-width: 550px) {
  #roulette-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
  #roulette-grid .spot {
    grid-column: var(--mobile-column);
    grid-row: var(--mobile-row);
    min-height: 40px;
    font-size: 1rem;
  }
  #roulette-grid .outside { font-size: .76rem; }
  #roulette-grid .roulette-mobile-label {
    display: grid;
    place-items: center;
    grid-row: 14;
    background: #204b3e;
    color: #f7ebcf;
    font-size: .68rem;
  }
  #roulette-grid .roulette-mobile-label.dozen { grid-column: 4; }
  #roulette-grid .roulette-mobile-label.outside { grid-column: 5; }
}
.inside-controls { align-items: end; margin: 2px 0 9px; }
.inside-controls button, .inside-controls select { min-height: 39px; }
.inside-controls label { color: #d5e6e4; }
#shared-chip-list { margin-bottom: 7px; }

.side-spots, #special-spots .special-grid { gap: 6px; }
#baccarat-bets { margin: 0; }
#baccarat-bets legend { margin-bottom: 7px; }
#baccarat-bets .side-spots button, #special-spots .special-spot {
  min-width: 0;
  min-height: 64px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-color: #5a796e;
  background: #254a41;
  color: #f1f6ec;
  font: inherit;
  text-align: center;
}
#baccarat-bets .side-spots button { min-height: 83px; gap: 3px; }
#baccarat-bets .side-spots [data-side="player"] { background: #224b67; border-color: #5a7c94; }
#baccarat-bets .side-spots [data-side="banker"] { background: #6c3442; border-color: #a66568; }
#baccarat-bets .side-spots button[aria-pressed="true"], #special-spots .special-spot.has-stake { outline: 2px solid #f4d48a; outline-offset: -2px; }
#baccarat-bets button strong, #special-spots .special-spot strong { font-size: .92rem; }
#baccarat-bets button small, #special-spots .special-spot small { font-size: .76rem; color: #dfebd9; margin: 0; line-height: 1.35; }
#baccarat-bets button small { font-size: .94rem; }
#baccarat-bets .side-stake, #special-spots .spot-pool { font-size: .69rem; color: #b9ddd4; }
#special-spots .spot-stake:not(:empty) {
  padding: 0 6px;
  margin-top: 2px;
  border-radius: 10px;
  background: #f0ca82;
  color: #302518;
  font-size: .74rem;
  font-weight: 750;
}
#baccarat-bets .side-stake:empty, #special-spots .spot-pool:empty { display: none; }
#special-spots fieldset { margin-top: 6px; }
#special-spots legend { margin: 2px 0 6px; }
#special-spots .bet-options .special-grid { margin: 0 0 9px; }
#special-spots .special-grid { grid-template-columns: repeat(auto-fit,minmax(72px,1fr)); }
#special-spots .main-spots { grid-template-columns: repeat(auto-fit,minmax(96px,1fr)); }
#special-spots [data-special-spot="small"], #special-spots [data-special-spot="cho"] { background: #206657; }
#special-spots [data-special-spot="big"], #special-spots [data-special-spot="han"], #special-spots [data-special-spot="dragon"] { background: #742d46; }
#special-spots [data-special-spot="tiger"], #special-spots [data-special-spot="andar"] { background: #244c71; }
#special-spots [data-special-spot="anyTriple"], #special-spots [data-special-spot="bonus"] { background: #654a2e; }
#special-spots .special-spot:hover:enabled { border-color: var(--table-gold); filter: brightness(1.11); }
#keno-ticket { margin-bottom: 0; }
#keno-numbers button { min-height: 39px; }
.table-company {
  margin-top: 14px;
  padding: 0 9px;
  border: 1px solid var(--surface-rim);
  border-radius: 7px;
  color: var(--table-muted);
}
.table-company > .company-head { min-height: 42px; justify-content: flex-start; cursor: pointer; }
.table-company > .company-head::before { content: "+"; color: var(--table-gold); }
.table-company[open] > .company-head::before { content: "−"; }
#live-total { margin-inline-start: auto; }
#live-people { margin: 1px 0 8px; }

@media (max-width: 820px) {
  html:has(body.at-tables) { scroll-padding: 64px 0 135px; }
  .table-play-layout, #table-console { display: block; }
  #table-console { padding: 0; border: 0; background: transparent; }
  #table-wager { padding: 10px; margin: 0 0 10px; border: 1px solid var(--surface-rim); border-radius: 7px; background: #132d34; }
  #table-chip-controls { grid-template-columns: auto minmax(78px,1fr) auto; }
  #table-chip-controls .stake-input { grid-area: 1 / 2; min-height: 36px; padding-inline: 6px; }
  #table-chip-controls .stake-input input { min-height: 35px; font-size: .96rem; }
  #table-bet-label { grid-area: 1 / 1; font-size: .84rem; }
  #table-limit { grid-area: 1 / 3; font-size: .66rem; }
  #table-chip-controls #chip-rack { margin-bottom: 0; }
  #bet-confirm, #table-wager:not([hidden]) + #bet-confirm {
    padding: 9px 10px;
    margin: 10px 0 0;
    border: 1px solid #59796c;
    border-radius: 8px;
    background: #132e35;
  }
  #bet-confirm[data-mode="spectator"] { display: none; }
  #slip-lines { max-height: 95px; }
  #bet-confirm[data-mode="draft"].has-placement, #bet-confirm[data-mode="decision"] {
    position: sticky;
    bottom: max(5px,env(safe-area-inset-bottom));
    z-index: 9;
    box-shadow: 0 -2px 17px #061519a1;
  }
  #bet-confirm[data-mode="draft"] {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    grid-template-areas: "total actions" "clock edit" "details details" "error error";
    column-gap: 9px;
    align-items: center;
  }
  #bet-confirm[data-mode="draft"] .slip-head { grid-area: total; flex-wrap: wrap; justify-content: flex-start; gap: 0 6px; }
  #bet-confirm[data-mode="draft"] #table-actions { grid-area: actions; margin: 0; }
  #bet-confirm[data-mode="draft"] #slip-clock { grid-area: clock; text-align: start; }
  #bet-confirm[data-mode="draft"] .bet-edit { grid-area: edit; }
  #bet-confirm[data-mode="draft"] #slip-details { grid-area: details; }
  #bet-confirm[data-mode="draft"] #table-error { grid-area: error; }
}
@media (max-width: 620px) {
  #table-cover { width: 54px; }
  #game-area .machine-heading { gap: 7px; }
  #table-switch .wide-label { display: none; }
  #table-switch .narrow-label { display: inline; }
  #table-switch > summary { min-height: 40px; padding: 6px 7px; gap: 6px; font-size: .75rem; }
  #room-nav a { min-height: 37px; }
  #table-room .table-felt { padding: 12px 9px 14px; }
  #bet-boxes { max-width: 390px; grid-template-columns: repeat(4,minmax(0,1fr)); }
  #bet-boxes .felt-box { min-height: 59px; }
  #table-room .live-strip { font-size: .73rem; padding-inline: 6px; }
  #table-room #live-phase { padding-inline: 5px; }
  #table-room .table-status { font-size: .82rem; }
  #slip-label { font-size: .77rem; }
  #slip-target { font-size: .65rem; }
  #table-actions button { font-size: .88rem; }
  .at-tables #game-area .floor > .sidebar { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 370px) {
  #table-cover { width: 42px; }
  #game-area .machine-heading { gap: 5px; }
  .at-tables #machine-name { font-size: 1.02rem; }
  #table-switch > summary { min-height: 36px; padding-inline: 5px; font-size: .69rem; }
  #table-room .live-strip { column-gap: 4px; }
  .bet-edit button { font-size: .69rem; }
  #baccarat-bets button strong { font-size: .82rem; }
  #table-bet-label { font-size: .73rem; }
  #table-limit { font-size: .61rem; }
}

/* The edge colour matches the tray. A raised edge marks a stack on the felt. */
[data-chip-face="1"], .denom[data-denom="1"] { --chip-ink: #736253; }
[data-chip-face="100"], .denom[data-denom="100"] { --chip-ink: #614943; }
[data-chip-face="500"], .denom[data-denom="500"] { --chip-ink: #a5454c; }
[data-chip-face="1000"], .denom[data-denom="1000"] { --chip-ink: #357359; }
[data-chip-face="10000"], .denom[data-denom="10000"] { --chip-ink: #375682; }
[data-chip-face="100000"], .denom[data-denom="100000"] { --chip-ink: #6c478b; }
[data-chip-face="1000000"], .denom[data-denom="1000000"] { --chip-ink: #98712c; }
#table-room :is(#bet-boxes,#special-spots,#baccarat-bets,#roulette-grid,.poker-seat,.poker-pot) [data-chip-face] {
  display: inline-block;
  position: relative;
  justify-self: center;
  max-width: 100%;
  padding: 2px .5em;
  border: 1px solid #826f56;
  border-radius: 50% / 44%;
  background: radial-gradient(ellipse at center,#fff8d9 0 58%,transparent 61%),
    repeating-conic-gradient(from 12deg,var(--chip-ink) 0 28deg,#f7e0b0 28deg 44deg,var(--chip-ink) 44deg 60deg);
  color: #28261f;
  box-shadow: 0 1px #e1c892,0 var(--chip-depth) var(--chip-ink),0 calc(var(--chip-depth) + 1px) 2px #101a18ae;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}
#table-room #roulette-grid [data-chip-face] { min-width: 1.8em; padding-inline: .23em; }
#table-room .poker-pot [data-chip-face] { padding-inline: .8em; }

#chip-rack .denom[data-denom] { --chip: var(--chip-ink); }
