/* One table and one seat order across practice, cash and SOL. */
.practice-controls, :is(.bot-phase-between,.bot-phase-broke) .bot-active-controls { width: min(34rem, calc(100% - 1.5rem)) !important; max-width: 34rem !important; padding-left: 0; padding-right: 0; }
.practice-controls { margin-top: 3rem !important; }
.practice-controls .bot-take-seat, .practice-controls .bot-quit-table { margin-top: 1.5rem !important; }
.bot-quit-wrap { margin-top: 1.5rem !important; }
.bot-phase-between .bot-hand-summary { margin-top: 2rem !important; margin-bottom: 2rem !important; }
.bot-phase-between .bot-active-controls { margin-top: 0 !important; }
.bot-phase-between .bot-between-controls, .bot-phase-between .bot-quit-wrap { margin-top: 2rem !important; }
.tournament-page .tournament-controls { padding-top: 1.5rem !important; }
.tournament-page .table-management-row { margin-top: 1.5rem !important; }
:is(.bot-phase-between,.bot-phase-broke) .bot-hero-meta { display: none !important; }
.practice-controls .bot-take-seat, .practice-controls .bot-quit-table, :is(.bot-phase-between,.bot-phase-broke) .bot-quit-table { width: auto !important; min-height: 1.85rem !important; height: 1.85rem; margin-top: .65rem; padding: .3rem .7rem !important; border-radius: .6rem; font-size: .7rem; }
.practice-ready-status { margin: .5rem 0 0; font-size: .75rem; color: var(--color-muted); }
.bot-phase-hand .bot-hero-meta { display: none !important; }
.bot-phase-hand > .flex-1 { flex: 0 0 auto; }
.bot-phase-hand .bot-active-controls { width: min(34rem, calc(100% - 1.5rem)) !important; max-width: 34rem !important; padding-left: 0; padding-right: 0; }
.practice-action-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-rows: 1.5rem 2rem; gap: .35rem; padding: .6rem; border: 1px solid #393458; border-radius: .85rem; background: #14162f; box-sizing: border-box; }
.practice-dashboard-stack { display: flex; align-items: center; justify-content: space-between; font-size: .75rem; color: var(--color-muted); }
.practice-dashboard-stack strong { font-size: 1rem; color: var(--color-fg); font-variant-numeric: tabular-nums; }
.practice-action-row { display: grid; grid-template-columns: .8fr 1.4fr .8fr; gap: .4rem; grid-column: 1; grid-row: 2; }
.practice-action-panel .practice-action-row button { height: 2rem; min-height: 2rem; min-width: 0; padding: .25rem; font-size: .7rem; white-space: nowrap; border-radius: .8rem; }
.practice-action-row .btn-quiet { color: var(--color-fg); border: 1px solid #49436d; background: #202342; }
.practice-action-row button:disabled { opacity: .45; cursor: not-allowed; }
.practice-raise-controls { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: .3rem; grid-column: 2; grid-row: 1 / 3; border-left: 1px solid #393458; padding-left: .5rem; font-size: .7rem; color: var(--color-muted); }
.practice-raise-controls output { text-align: right; }
.practice-raise-controls input { grid-column: 1 / -1; width: 100%; height: 28px; appearance: none; background: transparent; accent-color: #cfb6ff; }
.practice-raise-controls input::-webkit-slider-runnable-track { height: 7px; border-radius: 999px; background: linear-gradient(90deg,#7957ad,#aa78dc); }
.practice-raise-controls input::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; margin-top: -6.5px; border-radius: 50%; border: 2px solid #e5d6ff; background: linear-gradient(145deg,#e2ceff,#aa78dc); }
.bot-phase-hand .bot-quit-table { width: auto !important; min-height: 1.85rem !important; height: 1.85rem; padding: .3rem .7rem !important; border-radius: .6rem; font-size: .7rem; }
@media (max-width: 1023px) {
  .bot-mobile-fallback, .tournament-mobile-table { display: none !important; }
  .bot-phase-hand > .flex-1, .bot-phase-between > .flex-1 { flex: 0 0 auto; }
  .bot-phase-hand .bot-hero-meta { display: flex; }
  .bot-action-dock :is(.btn-danger, .btn-quiet, .btn-gold) { min-height: 44px; }
  :is(.bot-desktop-table, .bot-play-table, .tournament-desktop-table).table-stage {
    display: block !important;
    width: 100%; max-width: 760px; height: 430px !important;
    margin: 3rem auto 3rem !important;
  }
  .table-stage :is(.table-rail, .table-plinth) {
    width: 78% !important; height: 70% !important; aspect-ratio: auto !important;
    top: 50% !important; border-radius: 50% / 50% !important;
  }
  .table-stage .table-rail { padding: 12px !important; }
  .table-stage .table-plinth { top: 53% !important; }
  .table-stage .table-dealer-layer { width: 100% !important; height: 100% !important; top: 50% !important; aspect-ratio: auto; }
  .table-stage .table-center {
    width: 60% !important; top: 50% !important;
    transform: translate(-50%, -50%) !important; gap: 6px !important;
  }
  .table-stage .seat { width: 100px !important; font-size: 12px; }
  .table-stage .seat-1 { top: 73% !important; left: 88% !important; }
  .table-stage .seat-2 { top: 27% !important; left: 88% !important; }
  .table-stage .seat-3 { top: 5% !important; left: 50% !important; }
  .table-stage .seat-4 { top: 27% !important; left: 12% !important; }
  .table-stage .seat-5 { top: 73% !important; left: 12% !important; }
  .table-stage .seat-you { top: 95% !important; left: 50% !important; width: 150px !important; }
  .tournament-page .tournament-desktop-table.table-stage { margin-top: 4rem !important; margin-bottom: 4rem !important; }
  .table-stage .seat p, .table-stage .seat-name { font-size: 12px !important; }
  .tournament-page .table-stage .seat { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 0; margin-top: 0; transform: translate(-50%, -50%) !important; }
  .tournament-page .table-stage .seat > * { margin: 0 !important; }
  .tournament-page .table-stage .seat-markers { position: absolute; top: -16px; right: 0; min-height: 0; }
  .tournament-page .table-stage .cash-hole-cards { height: 44px !important; min-height: 44px !important; margin: 4px 0 !important; }
  .tournament-page .table-stage .cash-hole-cards .cash-card { width: 28px !important; height: 40px !important; font-size: 13px; }
  .tournament-page .table-stage .seat > .cash-seat-status,
  .tournament-page .table-stage .seat > .cash-seat-status:empty { height: 28px !important; min-height: 28px !important; max-height: 28px !important; width: 100% !important; font-size: 10px !important; margin: 0 !important; }
  .tournament-page .table-stage .seat > .cash-stack { font-size: 12px; }
  .tournament-page .table-stage .seat > .cash-bet { display: none; }
  .tournament-page .table-stage .seat-you .cash-hole-cards { height: 56px !important; min-height: 56px !important; }
  .tournament-page .table-stage .seat-you .cash-hole-cards .cash-card { width: 40px !important; height: 56px !important; }
  .tournament-page .table-stage .seat > .seat-turn-track { width: 60px !important; max-width: 100% !important; margin: 4px 0 !important; }
  .tournament-page .table-stage .seat.tournament-seat-open :is(.seat-turn-track, .cash-stack, .cash-seat-status) { display: none !important; }
  .tournament-page .table-stage .seat.tournament-seat-open .cash-hole-cards { height: 34px !important; min-height: 34px !important; }
  .tournament-page .table-stage .seat-open-chip { margin: 0 !important; width: 30px; height: 30px; }
  .table-stage .table-center > p { font-size: 12px; }
  .table-stage .table-center .text-5xl { font-size: 28px !important; }
  .table-stage .table-center > :is(.text-5xl, .tournament-center-title) { font-size: 26px !important; }
  .table-stage .dealer-puck { width: 22px; height: 22px; font-size: 11px; }
  .table-stage .felt-bet { font-size: 11px !important; gap: 3px; }
  .table-stage .felt-bet .chip { width: 12px; height: 12px; }
  .table-stage :is(.dealer-at-1, .dealer-position-1) { top: 73% !important; left: 75% !important; }
  .table-stage :is(.dealer-at-2, .dealer-position-2) { top: 27% !important; left: 75% !important; }
  .table-stage :is(.dealer-at-3, .dealer-position-3) { top: 17% !important; left: 60% !important; }
  .table-stage :is(.dealer-at-4, .dealer-position-4) { top: 27% !important; left: 25% !important; }
  .table-stage :is(.dealer-at-5, .dealer-position-5) { top: 73% !important; left: 25% !important; }
  .table-stage :is(.dealer-at-you, .dealer-position-0) { top: 83% !important; left: 60% !important; }
  .table-stage .felt-bet-1 { top: 64% !important; left: 70% !important; }
  .table-stage .felt-bet-2 { top: 36% !important; left: 70% !important; }
  .table-stage .felt-bet-3 { top: 22% !important; left: 50% !important; }
  .table-stage .felt-bet-4 { top: 36% !important; left: 30% !important; }
  .table-stage .felt-bet-5 { top: 64% !important; left: 30% !important; }
  .table-stage .felt-bet-you { top: 78% !important; left: 50% !important; }
}
@media (max-width: 600px) {
  :is(.bot-desktop-table, .bot-play-table, .tournament-desktop-table).table-stage {
    height: 560px !important; max-width: 440px;
    margin-top: 4rem !important; margin-bottom: 4.5rem !important;
  }
  .table-stage :is(.table-rail, .table-plinth) { width: 64% !important; height: 74% !important; }
  .tournament-page .tournament-desktop-table.table-stage { margin-top: 5.5rem !important; margin-bottom: 6rem !important; }
  .table-stage .table-center { width: 56% !important; }
  .table-stage .seat:not(.seat-you) { width: 76px !important; }
  .table-stage .seat-1, .table-stage .seat-2 { left: 89% !important; }
  .table-stage .seat-4, .table-stage .seat-5 { left: 11% !important; }
  .table-stage .seat-3 { top: calc(3% - 32px) !important; }
  .table-stage .seat-you { top: calc(97% + 40px) !important; }
  .table-stage .table-center > p { font-size: 11px !important; }
  .table-stage .table-center > :is(.text-5xl, .tournament-center-title) { font-size: 24px !important; }
  .table-stage .table-center .cash-board { gap: 3px; }
  .table-stage .cash-board :is(.cash-card, .community-card-slot) { width: 32px !important; height: 46px !important; }
  .table-stage .seat-you .cash-card { width: 40px !important; height: 56px !important; }
  .table-stage .seat:not(.seat-you) .playing-card { width: 28px !important; height: 40px !important; }
  .table-stage .seat-you .playing-card { width: 44px !important; height: 62px !important; }
  .table-stage .table-center :is(.playing-card, .board-slot) { width: 32px !important; height: 46px !important; }
  .table-stage .seat-reaction-burst { max-width: 120px; }
}
@media (max-width: 360px) {
  .table-stage .seat:not(.seat-you) { width: 66px !important; }
  .table-stage .seat:not(.seat-you) .playing-card { width: 24px !important; height: 34px !important; }
  .table-stage .table-center :is(.playing-card, .board-slot, .cash-card, .community-card-slot) { width: 26px !important; height: 38px !important; }
  .table-stage .table-center > :is(.text-5xl, .tournament-center-title) { font-size: 20px !important; }
}
@media (max-width: 1200px) {
  .site-topbar .top-menu { position: static; transform: none; order: 2; flex: 0 0 44px; }
  .site-topbar-tools { flex: 1 1 auto; justify-content: flex-end; min-width: 0; }
}
@media (max-width: 600px) {
  .site-topbar-inner { gap: 6px; }
  .site-topbar-tools { flex-basis: calc(100% - 50px); order: 1; }
  .site-topbar .site-wordmark { flex-basis: 100%; }
  .site-topbar nav { order: 3; }
}

/* Breathing room below the player seat on every game view. */
.practice-controls { padding-top: 12px; }
.bot-active-controls { padding-top: 12px; }
.tournament-page .tournament-controls { padding-top: calc(1.5rem + 12px) !important; }

/* Match the site spacing beneath the shared header. */
.tournament-page .tournament-content { padding-top: 24px; }

/* Keep table information compact without changing its vertical spacing. */
.tournament-page .tournament-info-strip, .sol-tournament-mode .tournament-info-strip { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }

.table-option-links{display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:12px;margin-top:7px;white-space:nowrap;font-size:11px;line-height:1.4}
.table-option-links>span{color:var(--color-muted)}
.table-option-links a{color:var(--color-gold);text-decoration:none;padding:4px 0;border-bottom:2px solid transparent}
.table-option-links a[aria-current]{color:var(--color-fg);border-bottom-color:var(--color-gold);font-weight:600}
.table-option-links a:hover{color:var(--color-fg)}
.table-option-links a:focus-visible{outline:2px solid var(--color-gold);outline-offset:3px}
.table-option-links a[aria-disabled]{opacity:.55;cursor:default}
@media(max-width:430px){.table-option-links{gap:8px;font-size:10px}}

/* One compact line for table selection; game details remain on the felt. */
.tournament-page .tournament-info-strip{display:flex;align-items:center;justify-content:center;gap:0;padding:6px 14px;border-radius:12px;width:fit-content;max-width:100%}
.tournament-info-strip>.tournament-info-mode,.tournament-info-strip>.tournament-info-details{display:none}
.tournament-info-strip .table-option-links{margin-top:0;gap:14px;font-size:12px;line-height:1.4}
.tournament-info-strip .table-option-links a{padding:3px 0}
@media(max-width:430px){.tournament-page .tournament-info-strip{padding:6px 10px}.tournament-info-strip .table-option-links{gap:8px;font-size:10px}}

.sol-tournament-mode #centerTitle .small-dollar, .sol-tournament-mode #mobileTitle .small-dollar { font-size: .6em; }
.sol-usd-approx, .sol-usd-unit { font-size: .42em; font-weight: 400; vertical-align: middle; }

/* Keep each prize and its live dollar estimate together. */
.sol-tournament-mode #centerStatus, .sol-tournament-mode #mobileStatus { white-space: pre-line; line-height: 1.5; }

/* Compact practice hand results and next-hand controls. */
.bot-phase-between .bot-hand-summary { width:fit-content!important;max-width:calc(100% - 24px)!important;min-width:min(320px,calc(100% - 24px));margin-top:16px!important;margin-bottom:12px!important;padding:10px 16px!important; }
.bot-phase-between .bot-hand-summary>div { gap:20px; }
.bot-phase-between .bot-active-controls { padding-top:0; }
.bot-phase-between .bot-between-controls,.bot-phase-between .bot-quit-wrap { margin-top:12px!important; }
