/* Compact controls sit outside the felt, directly below the local player's seat. */
.poker-table #self-seat .self-identity {
  display: inline-grid;
  grid-template-columns: 24px minmax(0, auto) auto;
  align-items: center;
  column-gap: 7px;
  width: max-content;
  max-width: 300px;
  min-width: 0;
  margin-top: 6px;
  padding: 5px 9px 5px 5px;
  border-radius: 999px;
  background: #082a24dc;
  box-shadow: 0 3px 10px #001b1830;
}

body #game-layout > .control-dock {
  margin: 24px 0 28px calc(35% - 150px);
  color: #f5f3ec;
  transform: none;
}
body #game-layout > .control-dock .panel { min-height: 0; height: auto; padding: 0; border: 0; background: none; box-shadow: none; }
#game-layout .control-dock .bet-help,
#game-layout .control-dock .keyboard-hint { display: none; }
body[data-betting="true"] #game-layout .play-actions { display: none; }
body[data-betting="false"] #game-layout #bet-controls,
body[data-betting="false"] #game-layout #deal { display: none; }
body[data-mode="solo"] #game-layout > .control-dock { margin-inline: auto; }
@media(max-width: 800px) {
  body #game-layout > .control-dock { margin-inline: auto; }
}
.poker-table #self-seat .self-identity .seat-avatar {
  grid-row: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
}
.poker-table #self-seat .self-identity strong {
  max-width: 126px;
  font-size: 11px;
  line-height: 1.3;
}
.poker-table #self-seat #self-balance { display: none; }
.poker-table #self-seat .self-identity #self-state {
  grid-column: auto;
  max-width: 105px;
  margin: 0;
  padding-left: 7px;
  border-left: 1px solid #d6eac22b;
  font-size: 9px;
  line-height: 1.3;
  text-align: left;
}
#game-layout .control-dock {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px 10px;
  align-items: center;
  width: 300px;
  max-width: calc(100vw - 50px);
  margin: 7px 0 0;
  padding: 8px 10px;
  border: 1px solid #cee3bf38;
  border-radius: 14px;
  background: linear-gradient(180deg, #082820eb, #061e1bd9);
  box-shadow: 0 5px 14px #00120d3b, inset 0 1px #ffffff06;
}
#game-layout .control-dock .wallet {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: 5px;
  padding: 0;
  border: 0;
}
#game-layout .wallet .eyebrow {
  max-width: none;
  margin: 0;
  color: #adc4b7;
  font-size: 7px;
  line-height: 1;
  letter-spacing: .5px;
  white-space: nowrap;
}
#game-layout .wallet .balance {
  display: inline-flex;
  gap: 0;
  margin: 0;
}
#game-layout .wallet .balance strong {
  font-size: 15px;
  line-height: 22px;
  letter-spacing: -.4px;
}
#game-layout .wallet .chip-icon,
#game-layout .wallet .session-stats { display: none; }
#game-layout #table-bet-slot,
#game-layout #bet-panel,
#game-layout .action-panel { display: contents; }
#game-layout .bet-panel .panel-heading,
body[data-betting=false] #game-layout .bet-panel .panel-heading {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  min-height: 0;
  gap: 6px;
  margin: 0;
}
#game-layout .bet-panel .panel-heading h2 {
  color: #adc4b7;
  font-size: 9px;
  font-weight: 600;
  line-height: 22px;
}
#game-layout .bet-panel .panel-heading > span {
  font-size: 15px;
  line-height: 22px;
  color: #d4f3b3;
  font-weight: 800;
}
#game-layout #bet-controls {
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 10px;
  align-items: center;
  margin: 0;
}
#game-layout .bet-presets {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  margin: 0;
  padding: 5px 0;
}
#game-layout .bet-presets button {
  width: 32px;
  height: 32px;
  min-height: 32px;
  max-width: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--chip-edge);
  border-radius: 50%;
  line-height: 1;
  background: radial-gradient(circle, var(--chip-color) 0 56%, transparent 58%), repeating-conic-gradient(from 15deg, #fff3dc 0deg 17deg, var(--chip-color) 17deg 60deg);
  color: var(--chip-ink);
  box-shadow: inset 0 1px 1px #ffffff80, 0 2px 0 var(--chip-edge), 0 3px 4px #0004;
  transform: none;
}
#game-layout .bet-presets button:before { inset: 5px; border: 1px solid #ffffff70; background: none; box-shadow: none; z-index: 0; }
#game-layout .bet-presets button span { font-size: 9px; line-height: 1; text-shadow: none; z-index: 1; }
#game-layout .bet-presets button[aria-pressed=true] { outline: 2px solid var(--chip-color); outline-offset: 3px; transform: none; }
#game-layout .bet-presets button:not(:disabled):hover { filter: brightness(1.12); transform: none; }
#game-layout .bet-stepper {
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  background: #ffffff05;
}
#game-layout .bet-stepper button { height: 28px; font-size: 16px; }
#game-layout .bet-stepper input { font-size: 11px; }
#game-layout .bet-panel .deal-button,
#game-layout .refill-button {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-content: center;
  width: 100%;
  min-height: 32px;
  height: 32px;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 10px;
  background: #c8ff3d;
  color: #14271b;
  box-shadow: inset 0 -2px #243e1f25;
}
#game-layout .bet-panel .deal-button > span { font-size: 13px; }
#game-layout .play-actions {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr .9fr;
  gap: 5px;
  margin: 0;
}
#game-layout .play-actions button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  height: 36px;
  padding: 7px 6px;
  gap: 5px;
  border-radius: 999px;
  font-size: 10px;
  white-space: nowrap;
  box-shadow: inset 0 -2px #001b1b19;
}
#game-layout .play-actions button span { font-size: 13px; }
#game-layout .play-actions .action-outline {
  background: #d8e9db12;
  border-color: #d8e9db30;
  color: #d8e9db;
}
#game-layout .control-dock button:focus-visible,
#game-layout .control-dock input:focus-visible {
  outline: 2px solid #c8ff3d;
  outline-offset: 3px;
}
/* Keep the existing live announcements without adding a duplicate status paragraph. */
#game-layout .table-status,
body[data-betting=true] #game-layout .table-status {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
#game-layout .control-dock [hidden] { display: none !important; }
@media(max-width: 540px) {
  #game-layout .control-dock {
    width: 280px;
    max-width: calc(100vw - 48px);
    padding: 7px 8px;
    gap: 6px 8px;
  }
  #game-layout .self-identity { max-width: 280px; }
  #game-layout .self-identity strong { max-width: 112px; font-size: 10px; }
  #game-layout .self-identity #self-state { max-width: 90px; font-size: 8px; }
  #game-layout #bet-controls { grid-template-columns: minmax(0, 1fr) 82px; gap: 8px; }
  #game-layout .wallet .balance strong { font-size: 14px; }
  #game-layout .play-actions button { font-size: 9px; padding-inline: 5px; }
}



/* Show the next deal countdown beside the bet during the intermission. */
body[data-auto-next="true"] #bet-panel #bet-help { display:block; margin:8px 0 0; font-size:10px; line-height:1.5; text-align:center; }

/* Table wagers use the same denominations and palette as the betting controls. */
.poker-table .wager-tokens { display:inline-flex; align-items:flex-end; gap:3px; flex:none; }
.poker-table .wager-denomination { --chip-color:#d6dcdf; --chip-edge:#7b858d; --chip-ink:#25303a; --token-width:28px; --token-height:22px; position:relative; display:block; width:var(--token-width); height:calc(var(--token-height) + var(--layers)*3px); }
.poker-table .wager-denomination[data-value="50"] { --chip-color:#c8ff3d; --chip-edge:#617f1b; --chip-ink:#263710; }
.poker-table .wager-denomination[data-value="100"] { --chip-color:#8c87ff; --chip-edge:#403880; --chip-ink:#fff; }
.poker-table .wager-denomination[data-value="250"] { --chip-color:#ff9e78; --chip-edge:#975437; --chip-ink:#4e271d; }
.poker-table .wager-denomination i { position:absolute; bottom:var(--lift); left:0; display:grid; place-items:center; width:var(--token-width); height:var(--token-height); border:1px solid var(--chip-edge); border-radius:50%; background:radial-gradient(ellipse,var(--chip-color) 0 56%,transparent 58%),repeating-conic-gradient(from 15deg,#fff3dc 0deg 17deg,var(--chip-color) 17deg 60deg); color:var(--chip-ink); box-shadow:inset 0 1px 1px #fff8,0 2px var(--chip-edge),0 3px 4px #0004; font:800 8px/1 Manrope,Arial,sans-serif; }
.poker-table .wager-denomination i:before { content:""; position:absolute; inset:3px 4px; border:1px solid #fff7; border-radius:50%; }
.poker-table .wager-denomination b { position:relative; font:inherit; }
.poker-table .self-wager { min-height:30px; align-items:center; }
@media(max-width:800px) {
  .poker-table .wager-denomination { --token-width:24px; --token-height:19px; }
  .poker-table .wager-denomination i { font-size:7px; }
  .poker-table .wager-tokens { gap:0; }
  .poker-table .wager-denomination+.wager-denomination { margin-left:-2px; }
}
