/* Shared game entrance, followed by a table that also hosts the waiting room. */
.site-shell { width: min(1440px, calc(100% - 56px)); }
.compact-primary { background: var(--lime); color: #11121a; border: 0; border-radius: 10px; padding: 14px 20px; font-size: 12px; font-weight: 800; }
.is-empty .seat-avatar { background: transparent; color: var(--muted); border: 1px dashed var(--line); font-weight: 400; }
.game-layout { display: block; }
#solo-lobby { border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--ink); padding: 11px 14px; font-size: 11px; }
.poker-table.table { position: relative; height: 660px; min-height: 660px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; isolation: isolate; margin: 22px auto 28px; max-width: 1220px; color: #f5f3ec; }
.poker-table:before { content: ""; position: absolute; z-index: -2; inset: 57px 46px 45px; border: 18px solid #282b36; border-radius: 48%; background: repeating-linear-gradient(45deg, #ffffff02 0 1px, transparent 1px 4px), radial-gradient(ellipse at 50% 36%, #26564c, #173c37 60%, #122e2e); box-shadow: inset 0 0 0 2px #76926d, inset 0 0 45px #071e21, 0 0 0 2px #474955, 0 8px 0 3px #11151d, 0 25px 45px #0006; }
.poker-table:after { content: ""; position: absolute; z-index: -1; inset: 91px 80px 79px; border: 1px solid #c8df9f29; border-radius: 48%; pointer-events: none; }
.felt-ornament { position: absolute; left: 50%; top: 59%; transform: translate(-50%, -50%); text-align: center; color: #abc1a83b; pointer-events: none; }
.felt-ornament span { display: block; font-size: 14px; font-weight: 800; letter-spacing: 4px; white-space: nowrap; }
.felt-ornament b { display: inline-block; font-family: Georgia, serif; font-size: 34px; line-height: 1; margin: 6px 0; }
.felt-ornament small { display: block; font-size: 7px; letter-spacing: 3px; }
.poker-table .table-top { position: absolute; top: 51%; left: 50%; transform: translateX(-50%); text-align: center; display: block; width: 240px; font-size: 9px; letter-spacing: 1.5px; }
.dealer-badge { display: none; }
.poker-table .table-top > span:last-child { opacity: 1; color: #d5e4b8; font-size: 9px; }
.deck-shoe { position: absolute; top: 33%; left: 67%; width: 55px; height: 78px; transform: rotate(10deg); }
.deck-shoe img { width: 100%; height: 100%; border-radius: 6px; box-shadow: 1px 2px 0 #d6d9c3, 2px 4px 0 #626b64, 3px 6px 0 #d6d9c3, 4px 8px 0 #626b64, 4px 10px 8px #0008; }
.deck-shoe span { position: absolute; right: -10px; bottom: -5px; display: grid; place-items: center; width: 24px; height: 24px; background: #111b20; border: 1px solid #72867b; border-radius: 50%; font-size: 8px; }
.poker-table .dealer-area { position: absolute; top: 29%; left: 50%; transform: translateX(-50%); margin: 0; width: 300px; }
.poker-table .hand-heading { height: 20px; gap: 8px; margin-bottom: 10px; }
.poker-table .hand-heading h2 { font-size: 10px; }
.poker-table .hand-note { color: #c7d8cb; font-size: 8px; }
.poker-table .score { font-size: 11px; padding: 3px 7px; min-width: 26px; border-radius: 6px; background: #081c2470; }
.poker-table .hand { --card-width: 74px; min-height: 106px; padding: 0; }
.poker-table .card-corner { font-size: 17px; left: 6px; top: 7px; }
.poker-table .card-corner small { font-size: 12px; }
.poker-table .card-corner--bottom { inset: auto 6px 7px auto; }
.poker-table .card-center { inset: 20px 13px; }
.poker-table .card-center > span { font-size: 35px; }
.poker-table .card-center small { font-size: 4px; letter-spacing: .5px; }
.poker-table .card-center.face > span { font-size: 30px; letter-spacing: -2px; }
.poker-table .card-center.face:before { width: 34px; height: 42px; }
.poker-table .card-center.face:after { font-size: 10px; top: -4px; }
.poker-table .player-area { position: absolute; width: 320px; left: 50%; bottom: 0; transform: translateX(-50%); margin: 0; display: flex; flex-direction: column; align-items: center; }
.poker-table .player-area .hand { width: 100%; --card-width: 78px; min-height: 112px; }
.poker-table .player-area .hand-heading { order: 0; }
.poker-table .player-area .hand { order: 1; }
.self-identity { order: 2; display: grid; grid-template-columns: 34px 1fr; align-items: center; column-gap: 10px; margin-top: 14px; padding: 11px 14px; border: 1px solid #56696b; border-radius: 13px; background: #151b25; min-width: 190px; box-shadow: 0 6px 15px #0003; }
.self-identity .seat-avatar { grid-row: span 2; width: 34px; height: 34px; background: var(--lime); color: #182319; font-size: 15px; }
.self-identity strong { display: block; font-size: 12px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.self-identity div > span { display: block; font-size: 10px; color: #c1cabd; margin-top: 3px; }
#self-state { grid-column: 2; color: #9fafa8; font-size: 8px; margin-top: 4px; }
.player-area.is-turn .self-identity { border-color: var(--lime); box-shadow: 0 0 0 3px #c8ff3d12, 0 8px 24px #0004; }
.player-area.is-turn #self-state { color: var(--lime); }
.player-area[data-outcome=win] #self-state { color: var(--lime); }
.self-wager.table-wager { position: absolute; left: calc(50% + 105px); bottom: 91px; gap: 5px; }
.self-wager.table-wager > span:last-child { font-size: 11px; font-weight: 800; color: #e5f2cf; }
.poker-table .players-strip { display: contents; }
.poker-table .player-seat { position: absolute; width: 160px; min-height: 145px; transform: translateX(-50%); padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: center; }
.player-seat[data-position="1"] { left: 18%; top: 61%; }
.player-seat[data-position="2"] { left: 16%; top: 14%; }
.player-seat[data-position="3"] { left: 50%; top: 0; }
.player-seat[data-position="4"] { left: 84%; top: 14%; }
.player-seat[data-position="5"] { left: 82%; top: 61%; }
.player-seat .seat-identity { display: grid; grid-template-columns: 31px minmax(0, 1fr); align-items: center; column-gap: 8px; border: 1px solid #56696b; border-radius: 12px; background: #151b25; padding: 9px; text-align: left; box-shadow: 0 6px 15px #0003; }
.player-seat .seat-avatar { grid-row: span 2; width: 31px; height: 31px; font-size: 14px; border-radius: 10px; }
.player-seat .seat-name { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-seat .seat-balance { font-size: 9px; color: #c1cabd; margin: 3px 0 0; font-weight: 600; }
.player-seat.is-turn .seat-identity { border-color: var(--lime); box-shadow: 0 0 0 3px #c8ff3d12, 0 8px 24px #0004; }
.poker-table .player-seat .seat-status { color: #b5c7bc; font-size: 9px; line-height: 1.3; margin: 8px 0 0; }
.poker-table .player-seat.is-turn .seat-status { color: var(--lime); }
.poker-table .seat-cards { --card-width: 46px; display: flex; flex-wrap: nowrap; justify-content: center; gap: 0; margin-top: 10px; min-height: 0; }
.seat-cards .playing-card { height: 65px; width: 46px; border-radius: 5px; }
.seat-cards .playing-card + .playing-card { margin-left: var(--seat-gap, 5px); }
.seat-cards .card-center { inset: 13px 8px; }
.seat-cards .card-center > span { font-size: 23px; }
.seat-cards .card-center small { display: none; }
.seat-cards .card-corner { font-size: 11px; left: 4px; top: 4px; }
.seat-cards .card-corner small { font-size: 8px; }
.seat-cards .card-corner--bottom { inset: auto 4px 4px auto; }
.seat-cards .card-center.face > span { font-size: 19px; }
.seat-cards .card-center.face:before { width: 20px; height: 26px; }
.seat-cards .card-center.face:after { display: none; }
.seat-points { position: absolute; top: 63px; right: -2px; padding: 3px 5px; border-radius: 6px; background: #101e23; border: 1px solid #6b826b; color: var(--lime); font-size: 10px; font-weight: 800; z-index: 2; }
.seat-wager { display: flex; align-items: center; gap: 5px; color: #d7e7b6; font-size: 10px; }
.player-seat .seat-wager { position: absolute; right: -47px; top: 78px; }
.player-seat[data-position="4"] .seat-wager, .player-seat[data-position="5"] .seat-wager { right: auto; left: -47px; flex-direction: row-reverse; }
.player-seat[data-position="3"] .seat-wager { right: -60px; top: 55px; }
.seat-wager .wager-stack { transform: scale(.85); width: 35px; }
.poker-table .player-seat.is-empty { opacity: .55; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 110px; }
.player-seat.is-empty .seat-avatar { width: 43px; height: 43px; border-radius: 50%; border-color: #a3bbaf70; color: #c1d3c6; background: #0f232838; font-size: 24px; }
.player-seat.is-empty strong { font-size: 9px; font-weight: 600; color: #becfc3; margin-top: 8px; }
.player-seat.is-empty small { display: none; }
.control-dock { display: grid; grid-template-columns: 175px minmax(290px, 350px) minmax(0, 1fr); gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.control-dock .panel { border-radius: 17px; padding: 20px; height: 100%; }
.control-dock .wallet { display: flex; flex-direction: column; justify-content: center; }
.control-dock .balance strong { font-size: 32px; letter-spacing: -1.5px; }
.control-dock .balance { gap: 8px; }
.control-dock .chip-icon { width: 26px; height: 26px; font-size: 15px; flex: none; }
.control-dock .session-stats { gap: 18px; margin-top: 18px; padding-top: 14px; }
.control-dock .session-stats > div { display: block; }
.control-dock .session-stats strong { font-size: 15px; margin-right: 5px; }
.control-dock .session-stats span { font-size: 8px; }
.control-dock .bet-panel .panel-heading { margin-bottom: 12px; }
.control-dock #bet-controls { display: grid; grid-template-columns: 1fr 100px; gap: 14px; align-items: center; }
.control-dock .bet-presets { gap: 6px; padding: 4px 0 6px; margin: 0; }
.control-dock .bet-presets button { max-width: 40px; min-height: 32px; }
.control-dock .bet-presets button span { font-size: 9px; }
.control-dock .bet-presets button:before { inset: 4px; }
.control-dock .bet-presets button[aria-pressed=true] { outline-offset: 2px; }
.control-dock .bet-stepper { grid-template-columns: 23px 1fr 23px; padding: 1px; }
.control-dock .bet-stepper input { font-size: 11px; }
.control-dock .deal-button, .control-dock .refill-button { padding: 12px 14px; margin-top: 12px; }
.control-dock .bet-help { font-size: 8px; margin-top: 8px; }
.control-dock .table-status { color: var(--ink); text-align: left; min-height: 56px; margin: 0 0 14px; }
.control-dock .table-status small { color: var(--muted); font-size: 10px; line-height: 1.6; }
body[data-theme=light] .table-status[data-outcome=win] strong { color: #638716; }
.control-dock .action { padding: 13px 12px; font-size: 11px; }
.control-dock .action-outline { color: var(--ink); border-color: var(--line); background: transparent; }
.control-dock .action-light { border-color: #11121a20; }
.control-dock .keyboard-hint { color: var(--muted); font-size: 8px; }
.history-panel { margin-top: 16px; padding: 15px 20px; }
.history-panel summary { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; cursor: pointer; }
.history-panel[open] summary { margin-bottom: 14px; }
.save-note { margin: 14px 0 22px; }
body[data-view=table] footer { margin-top: 24px; }
@media (min-width: 1400px) { .poker-table.table { height: 700px; min-height: 700px; } .poker-table .dealer-area { top: 30%; } }
@media (max-width: 1080px) {
  .site-shell { width: calc(100% - 36px); }
  .poker-table:before { inset-inline: 30px; }
  .poker-table:after { inset-inline: 64px; }
  .poker-table .player-seat { width: 138px; }
  .player-seat[data-position="2"] { left: 14%; }
  .player-seat[data-position="4"] { left: 86%; }
  .control-dock { grid-template-columns: 145px minmax(260px, 1fr) minmax(290px, 1.2fr); gap: 10px; }
  .control-dock .panel { padding: 16px; }
  .control-dock .balance strong { font-size: 27px; }
  .control-dock #bet-controls { grid-template-columns: 1fr 90px; gap: 8px; }
  .control-dock .play-actions { gap: 7px; }
  .control-dock .action { font-size: 10px; padding: 12px 8px; }
  .control-dock .action span { font-size: 16px; }
}
@media (max-width: 800px) {
  .brand span { display: none; }
  .poker-table.table { height: 690px; min-height: 690px; }
  .poker-table .player-seat { width: 116px; }
  .player-seat[data-position="2"] { left: 13%; top: 17%; }
  .player-seat[data-position="4"] { left: 87%; top: 17%; }
  .player-seat[data-position="1"] { left: 16%; top: 63%; }
  .player-seat[data-position="5"] { left: 84%; top: 63%; }
  .player-seat .seat-identity { grid-template-columns: 25px minmax(0, 1fr); gap: 5px; padding: 7px; }
  .player-seat .seat-avatar { width: 25px; height: 25px; font-size: 12px; border-radius: 8px; }
  .player-seat .seat-name { font-size: 10px; }
  .player-seat .seat-balance { font-size: 8px; }
  .poker-table .seat-cards { --card-width: 38px; }
  .seat-cards .playing-card { width: 38px; height: 54px; }
  .seat-cards .card-center { inset: 13px 7px; }
  .seat-cards .card-center > span { font-size: 21px; }
  .seat-cards .card-corner small { display: none; }
  .player-seat .seat-wager { position: static; justify-content: center; height: 35px; margin-top: 4px; }
  .player-seat[data-position="4"] .seat-wager, .player-seat[data-position="5"] .seat-wager { flex-direction: row; }
  .seat-wager .wager-stack { transform: scale(.65); width: 27px; }
  .seat-points { top: 58px; right: -4px; }
  .deck-shoe { left: 72%; top: 39%; width: 42px; height: 60px; }
  .control-dock { grid-template-columns: 150px 1fr; }
  .control-dock .action-panel { grid-column: 1 / -1; }
  .control-dock .table-status { min-height: 44px; margin-bottom: 12px; }
  .control-dock .action { font-size: 12px; padding: 15px; }
  .control-dock .bet-presets button { max-width: 44px; }
  .control-dock .keyboard-hint { display: none; }
}
@media (max-width: 540px) {
  .site-shell { width: calc(100% - 24px); }
  .brand img { width: 32px; height: 32px; }
  #solo-lobby { font-size: 9px; padding: 9px 10px; }
  .poker-table.table { height: 750px; min-height: 750px; margin-top: 20px; margin-bottom: 18px; }
  .poker-table:before { inset: 55px 3px 40px; border-width: 11px; border-radius: 46%; box-shadow: inset 0 0 0 1px #76926d, inset 0 0 30px #071e21, 0 0 0 1px #474955, 0 6px 0 2px #11151d, 0 16px 30px #0005; }
  .poker-table:after { inset: 77px 25px 62px; border-radius: 46%; }
  .poker-table .player-seat { width: 94px; }
  .player-seat[data-position="1"] { left: 15%; top: 62%; }
  .player-seat[data-position="2"] { left: 15%; top: 23%; }
  .player-seat[data-position="3"] { left: 50%; top: 0; }
  .player-seat[data-position="4"] { left: 85%; top: 23%; }
  .player-seat[data-position="5"] { left: 85%; top: 62%; }
  .player-seat .seat-identity { grid-template-columns: 21px minmax(0, 1fr); gap: 5px; padding: 6px; border-radius: 10px; }
  .player-seat .seat-avatar { width: 21px; height: 21px; font-size: 10px; border-radius: 7px; }
  .player-seat .seat-name { font-size: 8px; }
  .player-seat .seat-balance { font-size: 7px; }
  .poker-table .player-seat .seat-status { font-size: 8px; }
  .poker-table .seat-cards { --card-width: 32px; margin-top: 8px; }
  .seat-cards .playing-card { width: 32px; height: 46px; }
  .seat-cards .card-corner { font-size: 9px; top: 3px; left: 3px; }
  .seat-cards .card-corner--bottom { inset: auto 3px 3px auto; }
  .seat-cards .card-center { inset: 11px 5px; }
  .seat-cards .card-center > span { font-size: 18px; }
  .seat-cards .card-center.face > span { font-size: 16px; }
  .seat-cards .card-center.face:before { width: 15px; height: 22px; }
  .seat-points { top: 48px; right: -3px; font-size: 8px; padding: 2px 4px; }
  .poker-table .dealer-area { top: 39%; width: 180px; }
  .poker-table .dealer-area .hand { --card-width: 53px; min-height: 76px; }
  .poker-table .dealer-area .hand-note { display: none; }
  .poker-table .dealer-area .card-corner { font-size: 12px; }
  .poker-table .dealer-area .card-corner small { font-size: 9px; }
  .poker-table .dealer-area .card-center > span { font-size: 25px; }
  .poker-table .dealer-area .card-center small { display: none; }
  .poker-table .table-top { top: 54%; width: 200px; }
  .poker-table .table-top > span:last-child { font-size: 8px; }
  .felt-ornament { top: 61%; }
  .felt-ornament span { font-size: 8px; letter-spacing: 2px; }
  .felt-ornament b { font-size: 24px; }
  .felt-ornament small { font-size: 5px; letter-spacing: 1px; }
  .deck-shoe { top: 43%; left: 79%; width: 27px; height: 38px; }
  .deck-shoe span { width: 18px; height: 18px; font-size: 6px; }
  .poker-table .player-area { width: 215px; bottom: 0; }
  .poker-table .player-area .hand { --card-width: 62px; min-height: 89px; }
  .poker-table .player-area .hand-note { display: none; }
  .poker-table .player-area .card-center > span { font-size: 28px; }
  .poker-table .player-area .card-corner { font-size: 14px; }
  .self-identity { min-width: 165px; padding: 9px 11px; margin-top: 12px; }
  .self-identity strong { font-size: 11px; max-width: 115px; }
  .self-identity div > span { font-size: 9px; }
  #self-state { font-size: 8px; }
  .self-wager.table-wager { left: calc(50% + 85px); bottom: 98px; transform: scale(.7); transform-origin: left bottom; flex-direction: column; gap: 0; }
  .poker-table .player-seat.is-empty .seat-avatar { width: 35px; height: 35px; font-size: 20px; }
  .player-seat.is-empty strong { font-size: 7px; }
  .control-dock { grid-template-columns: 1fr; gap: 10px; padding-top: 10px; }
  .control-dock .wallet { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 12px; padding: 13px 16px; }
  .control-dock .wallet .eyebrow { grid-column: 1; font-size: 8px; margin: 0; }
  .control-dock .wallet .balance { grid-column: 1; }
  .control-dock .wallet .session-stats { grid-column: 2; grid-row: 1 / 3; margin: 0; border: 0; padding: 0; display: flex; }
  .control-dock .wallet .session-stats strong { display: block; }
  .control-dock .balance strong { font-size: 28px; }
  .control-dock #bet-controls { grid-template-columns: 1fr 110px; gap: 20px; }
  .control-dock .bet-presets button { max-width: 42px; }
  .control-dock .action-panel { grid-column: 1; }
  .control-dock .table-status strong { font-size: 14px; }
  .control-dock .action { font-size: 11px; padding: 15px 12px; }
  .history-panel { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) { .poker-table * { animation: none !important; transition: none !important; } }
/* Entrance uses the same shared-auth and game-rebuild components as the other games. */
#auth-view[hidden], #auth-view [hidden], #room-bar[hidden] { display: none !important; }
#auth-view { background: radial-gradient(ellipse at 0 0, #5367ff0d, transparent 60%), var(--paper); border: 1px solid var(--line); border-radius: 24px; }
#auth-view :where(h1,h2,p) { margin: 0; }
#auth-view .eyebrow { display: flex; align-items: center; gap: 8px; }
#auth-view .eyebrow__icon, #auth-view .ghost-link__icon { display: inline-flex; width: 18px; height: 18px; }
#auth-view .eyebrow__icon svg, #auth-view .ghost-link__icon svg { width: 100%; height: 100%; }
#auth-view .panel__kicker { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
#auth-view .auth-hero { position: relative; overflow: hidden; }
#auth-view .auth-hero:after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
#auth-view .auth-hero > * { position: relative; z-index: 1; }
#auth-view .auth-card { position: relative; overflow: hidden; }
#auth-view .auth-card:before { position: absolute; right: 18px; top: 8px; font: 800 clamp(4rem,8vw,7rem)/1 Manrope,sans-serif; pointer-events: none; }
#auth-view .auth-card:first-child:before { content: "01"; }
#auth-view .auth-card:last-child:before { content: "02"; }
#auth-view .auth-card > * { position: relative; }
#auth-view .solo-start { background: var(--g-control-bg); color: var(--g-ink); min-height: 42px; }
#auth-view .auth-card > button:disabled { opacity: .5; cursor: wait; }
#auth-view .auth-footer:has(.auth-status:empty) { display: none; }
#room-bar .topbar__line { display: flex; flex-wrap: wrap; align-items: center; }
#room-bar .code-chip { padding: 0 12px; }
#room-bar .icon-chip { font-size: 24px; }
#room-bar .topbar__subtitle { margin: 12px 0 0; font-size: 13px; }
#room-bar #start-table { min-height: 42px; border-radius: 12px; }
#room-bar #table-start-slot:has([hidden]) { display: none; }
#room-bar + .game-layout { margin-top: 16px; }
@media(max-width: 600px) {
}
/* Blackjack table: straight dealer edge, curved player rail, all controls on the felt. */
.poker-table.table { height: 850px; min-height: 850px; margin: 12px auto 28px; border-radius: 24px; --ink: #f5f3ec; --muted: #a9c7bf; --line: #b3d7c02d; --paper: #0a2928; --bg: #103c35; }
.poker-table:before { inset: 0; border: 15px solid #49372f; border-top: 9px solid #302b29; border-radius: 28px 28px 42% 42% / 28px 28px 18% 18%; background: repeating-linear-gradient(25deg,#ffffff02 0 1px,transparent 1px 4px),radial-gradient(ellipse at 50% 20%,#226457,#164e43 60%,#103e36); box-shadow: inset 0 0 0 3px #77957870,inset 0 0 60px #001b16b0,0 0 0 2px #76604a,0 8px 0 2px #241e1c,0 24px 40px #0005; }
.poker-table:after { inset: 24px; border-radius: 15px 15px 42% 42% / 15px 15px 18% 18%; border: 1px solid #d3dfaf30; }
.poker-table .dealer-area { top: 40px; left: 50%; width: 290px; }
.poker-table .dealer-area .hand-heading { justify-content: center; }
.poker-table .table-top { top: 198px; }
.deck-shoe { top: 65px; left: 82%; width: 60px; height: 85px; }
.felt-ornament { top: 31%; color: #d0ddb24f; }
.felt-ornament span { font-size: 18px; letter-spacing: 5px; }
.felt-ornament b { font-size: 30px; }
.felt-ornament small { font-size: 8px; letter-spacing: 3px; }
.poker-table .player-seat { width: 138px; min-height: 0; display: flex; flex-direction: column; align-items: stretch; }
.player-seat[data-position="1"] { left: 8.5%; top: 31%; }
.player-seat[data-position="2"] { left: 24.5%; top: 40%; }
.player-seat[data-position="3"] { left: 41.5%; top: 44%; }
.player-seat[data-position="4"] { left: 75.5%; top: 40%; }
.player-seat[data-position="5"] { left: 91.5%; top: 31%; }
.poker-table .player-seat .seat-cards { order: 0; min-height: 65px; margin: 0; }
.poker-table .player-seat .seat-status { order: 2; margin: 7px 0; }
.poker-table .player-seat .seat-identity { order: 3; background: #092a27e6; border-color: #d7e6c044; padding: 8px; }
.poker-table .seat-wager { position: static; transform: none; order: 1; display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 32px; margin-top: 10px; }
.poker-table .seat-wager .wager-stack { transform: scale(.65); transform-origin: center; margin: -7px; }
.poker-table .seat-wager b { font-size: 11px; color: #e3edc8; }
.poker-table .seat-points { top: 43px; right: 8px; }
.poker-table .player-seat.is-empty { min-height: 165px; justify-content: center; }
.poker-table .player-seat.is-empty .seat-avatar { border-color: #ccddb755; color: #dce9c6; }
.poker-table .player-seat.is-empty strong { color: #d0dcc7; }
.poker-table .player-area { left: 58.5%; top: 44%; bottom: auto; width: 155px; }
.poker-table .player-area .hand { --card-width: 60px; min-height: 86px; }
.poker-table .player-area .hand-heading { position: absolute; top: -27px; margin: 0; }
.poker-table .player-area .hand-note { display: none; }
.poker-table .player-area .hand-heading h2 { font-size: 9px; }
.poker-table .self-wager { position: static; order: 2; transform: none; margin: 9px 0 0; min-height: 27px; }
.poker-table .self-wager .wager-stack { transform: scale(.7); margin: -6px; }
.poker-table .self-identity { order: 3; min-width: 0; width: 100%; margin-top: 10px; padding: 8px; background: #092a27e6; border-color: #c8ff3d70; grid-template-columns: 28px 1fr; gap: 6px; }
.poker-table .self-identity .seat-avatar { width: 28px; height: 28px; font-size: 12px; }
.poker-table .self-identity strong { font-size: 10px; }
.poker-table .self-identity div > span { font-size: 9px; }
.poker-table .self-identity #self-state { font-size: 8px; }
.poker-table .control-dock { position: absolute; left: 5%; right: 5%; bottom: 38px; display: grid; grid-template-columns: 140px minmax(250px, 1fr) minmax(290px, 1.2fr); gap: 12px; margin: 0; align-items: stretch; }
.poker-table .control-dock .panel { border: 1px solid #bed9c52b; border-radius: 18px; padding: 16px; background: #062b29d9; color: #f5f3ec; box-shadow: 0 6px 18px #001c1940; }
.poker-table .wallet .eyebrow { color: #b8ccba; font-size: 8px; }
.poker-table .wallet .balance { margin: 14px 0; gap: 7px; }
.poker-table .wallet .balance strong { font-size: 26px; }
.poker-table .wallet .chip-icon { width: 24px; height: 24px; font-size: 12px; }
.poker-table .wallet .session-stats { gap: 14px; margin: 14px 0 0; padding-top: 14px; }
.poker-table .wallet .session-stats strong { font-size: 16px; }
.poker-table .wallet .session-stats span { font-size: 8px; }
.poker-table .bet-panel .panel-heading { margin-bottom: 12px; }
.poker-table .bet-panel .panel-heading h2 { font-size: 13px; }
.poker-table .bet-panel .panel-heading > span { color: #d6f39d; font-size: 15px; }
.poker-table #bet-controls { display: grid; grid-template-columns: 1fr 90px; gap: 12px; align-items: center; }
.poker-table .bet-presets { gap: 8px; margin: 0; }
.poker-table .bet-presets button { width: 43px; height: 43px; padding: 5px; border-width: 5px; }
.poker-table .bet-presets button span { font-size: 10px; }
.poker-table .bet-stepper { margin: 0; height: 35px; grid-template-columns: 23px 1fr 23px; }
.poker-table .bet-stepper input { min-width: 0; padding: 0; font-size: 11px; }
.poker-table .bet-panel .deal-button { min-height: 42px; height: 42px; margin-top: 12px; padding: 11px 14px; font-size: 11px; border-radius: 30px; }
.poker-table .bet-help { font-size: 9px; margin: 9px 0 0; }
.poker-table .action-panel { display: flex; flex-direction: column; justify-content: center; }
.poker-table .table-status { min-height: 42px; margin: 0 0 12px; }
.poker-table .table-status strong { font-size: 15px; }
.poker-table .table-status small { font-size: 10px; margin-top: 6px; line-height: 1.5; }
.poker-table .play-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.poker-table .play-actions button { min-height: 50px; padding: 10px; font-size: 10px; border-radius: 14px; display: flex; flex-direction: column-reverse; gap: 6px; align-items: center; justify-content: center; }
.poker-table .play-actions button span { font-size: 18px; }
.poker-table .keyboard-hint { margin: 10px 0 0; font-size: 8px; text-align: center; color: #a7c5b9; }
@media(min-width: 801px) and (max-width: 1100px) {
  .poker-table .control-dock { left: 3%; right: 3%; grid-template-columns: 115px minmax(245px,1fr) minmax(250px,1fr); gap: 8px; }
  .poker-table .control-dock .panel { padding: 12px; }
  .poker-table .player-seat { width: 120px; }
  .poker-table .player-area { width: 137px; }
  .poker-table .self-identity strong { font-size: 9px; }
}
@media(max-width: 800px) {
  .poker-table.table { height: 980px; min-height: 980px; }
  .poker-table:before { border-width: 10px; border-radius: 20px 20px 80px 80px; }
  .poker-table:after { inset: 20px; border-radius: 12px 12px 65px 65px; }
  .poker-table .dealer-area { top: 32px; width: 230px; }
  .poker-table .dealer-area .hand { --card-width: 60px; min-height: 86px; }
  .poker-table .table-top { top: 157px; }
  .deck-shoe { top: 70px; left: 83%; width: 34px; height: 48px; }
  .felt-ornament { top: 202px; }
  .felt-ornament span { font-size: 10px; letter-spacing: 3px; }
  .felt-ornament b, .felt-ornament small { display: none; }
  .poker-table .player-seat { width: 112px; }
  .player-seat[data-position="1"] { left: 18%; top: 245px; }
  .player-seat[data-position="2"] { left: 50%; top: 245px; }
  .player-seat[data-position="3"] { left: 82%; top: 245px; }
  .player-seat[data-position="4"] { left: 18%; top: 430px; }
  .player-seat[data-position="5"] { left: 82%; top: 430px; }
  .poker-table .player-area { left: 50%; top: 430px; width: 120px; }
  .poker-table .player-area .hand { --card-width: 45px; min-height: 64px; }
  .poker-table .player-seat .seat-cards { min-height: 54px; }
  .poker-table .self-identity { margin-top: 8px; }
  .poker-table .self-identity strong { font-size: 9px; }
  .poker-table .self-identity #self-state { grid-column: 1/-1; text-align: center; }
  .poker-table .control-dock { left: 24px; right: 24px; bottom: 35px; grid-template-columns: 120px minmax(0,1fr); gap: 10px; }
  .poker-table .action-panel { grid-column: 1/-1; }
  .poker-table .control-dock .panel { padding: 14px; }
}
@media(max-width: 540px) {
  .poker-table.table { height: 1080px; min-height: 1080px; }
  .poker-table .player-seat { width: 88px; }
  .poker-table .player-seat .seat-cards { min-height: 46px; }
  .poker-table .player-seat .seat-identity { padding: 6px; }
  .poker-table .seat-wager { margin-top: 7px; }
  .poker-table .seat-points { top: 30px; right: 0; }
  .poker-table .player-area { width: 100px; }
  .poker-table .self-identity { grid-template-columns: 18px 1fr; gap: 4px; padding: 6px; }
  .poker-table .self-identity .seat-avatar { width: 18px; height: 18px; font-size: 9px; }
  .poker-table .self-identity strong { font-size: 8px; }
  .poker-table .self-identity div > span { font-size: 7px; }
  .poker-table .player-area .hand { --card-width: 38px; min-height: 54px; }
  .poker-table .player-area .card-corner { font-size: 10px; left: 4px; top: 4px; }
  .poker-table .player-area .card-corner--bottom { inset: auto 4px 4px auto; }
  .poker-table .player-area .card-corner small { font-size: 7px; }
  .poker-table .player-area .card-center { inset: 13px 6px; }
  .poker-table .player-area .card-center > span { font-size: 20px; }
  .poker-table .player-area .card-center small { display: none; }
  .poker-table .control-dock { left: 18px; right: 18px; bottom: 30px; grid-template-columns: 1fr; }
  .poker-table .control-dock .wallet { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; }
  .poker-table .wallet .eyebrow { margin: 0; max-width: 45px; line-height: 1.6; }
  .poker-table .wallet .balance { margin: 0; }
  .poker-table .wallet .balance strong { font-size: 23px; }
  .poker-table .wallet .session-stats { display: none; }
  .poker-table .action-panel { grid-column: auto; }
  .poker-table .bet-presets { gap: 5px; }
  .poker-table .bet-presets button { width: 36px; height: 36px; border-width: 4px; }
  .poker-table #bet-controls { gap: 7px; grid-template-columns: 1fr 78px; }
  .poker-table .keyboard-hint { display: none; }
}
/* Keep the whole game compact, with the controls safely inside the curved rail. */
.theme-toggle { z-index: 80; }
@media(min-width: 801px) {
  .poker-table.table { height: 790px; min-height: 790px; }
  .poker-table:before { border-radius: 28px 28px 42% 42% / 28px 28px 14% 14%; }
  .poker-table:after { border-radius: 15px 15px 42% 42% / 15px 15px 14% 14%; }
  .player-seat[data-position="1"], .player-seat[data-position="5"] { top: 28%; }
  .player-seat[data-position="2"], .player-seat[data-position="4"] { top: 36%; }
  .player-seat[data-position="3"], .poker-table .player-area { top: 40%; }
  .poker-table .control-dock { left: 6%; right: 6%; bottom: 55px; padding-top: 0; border-top: 0; }
}
@media(max-width: 540px) {
  #room-bar .topbar__actions .ghost-button { padding-inline: 12px !important; }
}
/* Room heading follows the shared topbar used by Spyfall and Codenames. */
#room-bar .topbar__line { display: flex; align-items: center; flex-wrap: wrap; }
#room-bar .topbar__line h2 { margin: 0; }
#room-bar .topbar__room-meta { display: inline-flex; align-items: center; gap: 10px; }
#room-bar .icon-chip { display: inline-flex; align-items: center; justify-content: center; padding: 9px; }
#room-bar .icon-chip svg { width: 22px; height: 22px; flex: none; }
#room-bar .topbar__actions { padding-right: 44px; }
#room-bar .topbar__subtitle { margin: 12px 0 0; }
#room-bar .topbar .eyebrow { margin: 0 0 10px; }
#room-bar [hidden] { display: none !important; }
.poker-table.table { max-width: none; margin-top: 18px; }
@media(min-width: 801px) {
  .poker-table.table { height: clamp(610px, 44vw, 690px); min-height: 610px; }
  .poker-table .dealer-area { top: 22px; }
  .poker-table .dealer-area .hand { --card-width: 64px; min-height: 91px; }
  .poker-table .table-top { top: 154px; }
  .felt-ornament { top: 31%; }
  .felt-ornament span { font-size: 14px; letter-spacing: 4px; }
  .felt-ornament b { display: none; }
  .felt-ornament small { margin-top: 10px; font-size: 6px; }
  .deck-shoe { top: 45px; width: 52px; height: 74px; }
  .player-seat[data-position="1"], .player-seat[data-position="5"] { top: 25%; }
  .player-seat[data-position="2"], .player-seat[data-position="4"] { top: 32%; }
  .player-seat[data-position="3"], .poker-table .player-area { top: 37%; }
  .poker-table .player-area .hand { --card-width: 54px; min-height: 77px; }
  .poker-table .player-seat .seat-status { margin: 4px 0; font-size: 8px; }
  .poker-table .player-seat .seat-identity { padding: 6px 8px; }
  .poker-table .seat-wager { margin-top: 7px; min-height: 25px; }
  .poker-table .self-identity { margin-top: 7px; padding: 6px 8px; }
  .poker-table .self-wager { min-height: 23px; margin-top: 7px; }
  .poker-table .control-dock { bottom: 34px; }
  .poker-table .control-dock .panel { padding: 12px 14px; }
  .poker-table .bet-panel .panel-heading { margin-bottom: 8px; }
  .poker-table .bet-presets { padding: 0; }
  .poker-table .bet-panel .deal-button { height: 38px; min-height: 38px; margin-top: 8px; padding: 10px 14px; }
  .poker-table .bet-help { margin-top: 6px; line-height: 1.4; }
  .poker-table .table-status { min-height: 36px; margin-bottom: 8px; }
  .poker-table .keyboard-hint { margin-top: 6px; }
  .poker-table .wallet .balance { margin: 9px 0; }
  .poker-table .wallet .session-stats { padding-top: 9px; margin-top: 9px; }
}
@media(max-width: 600px) {
  #room-bar .topbar__actions { padding-right: 0; justify-content: flex-start !important; }
  #room-bar .topbar__line { align-items: flex-start; flex-direction: column; }
}
.poker-table .player-seat .seat-wager, .poker-table .self-wager { flex-direction: row; gap: 4px; }
.poker-table .seat-wager .wager-stack, .poker-table .self-wager .wager-stack { width: 40px; flex: 0 0 40px; height: 42px; transform: scale(.65); margin: -8px -3px; }
@media(min-width: 801px) and (max-width: 1100px) {
  .poker-table .player-area { top: 34%; }
}
/* Each participant sits on the rail; the local controls belong to their own seat. */
.poker-table.table { height: 730px; min-height: 730px; }
.poker-table .player-seat[data-position="1"] { left: 13%; top: 55%; }
.poker-table .player-seat[data-position="2"] { left: 12%; top: 12%; }
.poker-table .player-seat[data-position="3"] { left: 50%; top: 12px; }
.poker-table .player-seat[data-position="4"] { left: 88%; top: 12%; }
.poker-table .player-seat[data-position="5"] { left: 87%; top: 55%; }
.poker-table .dealer-area { top: 178px; width: 260px; }
.poker-table .table-top { top: 300px; }
.poker-table .deck-shoe { left: 68%; top: 197px; }
.poker-table .felt-ornament { left: 33%; top: 39%; opacity: .65; }
.poker-table .felt-ornament span { font-size: 10px; letter-spacing: 2px; }
.poker-table .felt-ornament small { font-size: 5px; letter-spacing: 1px; }
.poker-table #self-seat { left: 50%; top: 345px; width: 180px; }
.poker-table #self-seat .self-identity { width: 180px; }
.poker-table #self-seat .control-dock { position: static; transform: none; order: 4; width: 460px; max-width: calc(100vw - 76px); margin: 10px 0 0; padding: 12px 14px; display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 8px 12px; border: 1px solid #bbd4b64d; border-radius: 18px; background: #092a27f5; box-shadow: 0 8px 24px #001b1b50; }
.poker-table #self-seat .control-dock .panel { height: auto; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; }
.poker-table #self-seat .wallet { justify-content: flex-start; align-items: flex-start; gap: 4px; padding-right: 10px; border-right: 1px solid #d3e6c024; }
.poker-table #self-seat .wallet .eyebrow { margin: 0; max-width: none; font-size: 8px; }
.poker-table #self-seat .wallet .balance { margin: 0; gap: 5px; }
.poker-table #self-seat .wallet .balance strong { font-size: 23px; }
.poker-table #self-seat .wallet .chip-icon { width: 20px; height: 20px; font-size: 10px; }
.poker-table #self-seat .session-stats { display: none; }
.poker-table #self-seat .bet-panel .panel-heading { margin: 0 0 6px; align-items: center; }
.poker-table #self-seat .bet-panel .panel-heading h2 { font-size: 10px; }
.poker-table #self-seat .bet-panel .panel-heading > span { font-size: 12px; }
.poker-table #self-seat #bet-controls { grid-template-columns: 1fr 86px; gap: 8px; }
.poker-table #self-seat .bet-presets { padding: 0; gap: 6px; }
.poker-table #self-seat .bet-presets button { width: 34px; height: 34px; min-height: 34px; border-width: 4px; padding: 3px; }
.poker-table #self-seat .bet-presets button span { font-size: 9px; }
.poker-table #self-seat .bet-stepper { height: 32px; }
.poker-table #self-seat .bet-panel .deal-button, .poker-table #self-seat .refill-button { min-height: 34px; height: auto; margin: 8px 0 0; padding: 9px 12px; font-size: 10px; border-radius: 10px; }
.poker-table #self-seat .bet-help, .poker-table #self-seat .keyboard-hint { display: none; }
.poker-table #self-seat .action-panel { grid-column: 1/-1; }
.poker-table #self-seat .table-status { min-height: 0; margin: 0 0 8px; text-align: center; }
.poker-table #self-seat .table-status strong { font-size: 11px; line-height: 1.4; }
.poker-table #self-seat .table-status small { margin-top: 3px; font-size: 9px; line-height: 1.4; }
.poker-table #self-seat .play-actions { gap: 6px; }
.poker-table #self-seat .play-actions button { min-height: 36px; padding: 9px 10px; font-size: 10px; flex-direction: row; gap: 7px; border-radius: 10px; }
.poker-table #self-seat .play-actions button span { font-size: 13px; }
body[data-betting=true] .poker-table #self-seat .play-actions { display: none; }
body[data-betting=true] .poker-table #self-seat .table-status { margin: 0; }
body[data-betting=false] .poker-table #self-seat #bet-controls,
body[data-betting=false] .poker-table #self-seat #deal { display: none; }
body[data-betting=false] .poker-table #self-seat .bet-panel .panel-heading { min-height: 35px; margin: 0; }
@media(max-width: 800px) {
  .poker-table.table { height: 920px; min-height: 920px; }
  .poker-table .player-seat[data-position="1"] { left: 17%; top: 425px; }
  .poker-table .player-seat[data-position="2"] { left: 17%; top: 180px; }
  .poker-table .player-seat[data-position="3"] { left: 50%; top: 14px; }
  .poker-table .player-seat[data-position="4"] { left: 83%; top: 180px; }
  .poker-table .player-seat[data-position="5"] { left: 83%; top: 425px; }
  .poker-table .dealer-area { top: 250px; width: 150px; }
  .poker-table .dealer-area .hand { --card-width: 45px; min-height: 64px; }
  .poker-table .dealer-area .hand-note { display: none; }
  .poker-table .table-top { top: 355px; }
  .poker-table .deck-shoe { left: 67%; top: 345px; width: 28px; height: 40px; }
  .poker-table .felt-ornament { left: 50%; top: 408px; }
  .poker-table #self-seat { top: 560px; width: 120px; }
  .poker-table #self-seat .self-identity { width: 160px; }
  .poker-table #self-seat .control-dock { width: 420px; }
  .poker-table #self-seat .wallet { flex-direction: column; }
}
@media(max-width: 540px) {
  .poker-table.table { height: 950px; min-height: 950px; }
  .poker-table .dealer-area { width: 116px; }
  .poker-table .dealer-area .hand { --card-width: 39px; min-height: 56px; }
  .poker-table .dealer-area .card-corner { font-size: 9px; top: 4px; left: 4px; }
  .poker-table .dealer-area .card-corner--bottom { inset: auto 4px 4px auto; }
  .poker-table .dealer-area .card-corner small { font-size: 7px; }
  .poker-table .dealer-area .card-center { inset: 12px 6px; }
  .poker-table .dealer-area .card-center > span { font-size: 19px; }
  .poker-table .table-top { top: 345px; width: 190px; }
  .poker-table #self-seat { width: 100px; top: 550px; }
  .poker-table #self-seat .self-identity { width: 140px; grid-template-columns: 24px 1fr; padding: 7px; }
  .poker-table #self-seat .self-identity .seat-avatar { width: 24px; height: 24px; }
  .poker-table #self-seat .self-identity strong { font-size: 10px; }
  .poker-table #self-seat .self-identity div > span { font-size: 9px; }
  .poker-table #self-seat .self-identity #self-state { grid-column: 2; text-align: left; }
  .poker-table #self-seat .control-dock { max-width: calc(100vw - 66px); padding: 10px; grid-template-columns: 72px minmax(0,1fr); gap: 8px; }
  .poker-table #self-seat .wallet .balance strong { font-size: 19px; }
  .poker-table #self-seat .wallet .chip-icon { display: none; }
  .poker-table #self-seat #bet-controls { grid-template-columns: 1fr; gap: 7px; }
  .poker-table #self-seat .bet-presets { justify-content: space-between; }
  .poker-table #self-seat .bet-stepper { height: 28px; }
  .poker-table #self-seat .bet-panel .deal-button { margin-top: 7px; }
  .poker-table #self-seat .play-actions button { min-height: 38px; padding: 8px 5px; font-size: 9px; gap: 4px; }
}
