/* Online only. Phone keeps its native bottom navigation and vertical table.
   Tablet: 768–1199px, touch dock and two-column lobby.
   Desktop: 1200px+, a compact navigation dock and a wide poker workspace. */
#section-online.online-at-table .poker-toolbar {grid-template-columns:44px minmax(0,1fr) 36px}
.tg-back #section-online.online-at-table .poker-toolbar {grid-template-columns:minmax(0,1fr) 36px}
#section-online.online-at-table .poker-players-button {
  grid-column:-2/-1;grid-row:1;justify-self:end;display:flex;align-items:center;justify-content:center;gap:5px;
  width:36px;height:36px;min-width:36px;min-height:36px;align-self:center;padding:8px;border:1px solid #c7a35f66;border-radius:9px;background:#172b3f;color:#eddbb4;
  font-size:12px;cursor:pointer;
}
#section-online.online-at-table .poker-players-button svg {width:18px;height:18px}
#section-online.online-at-table .poker-players-button>span {display:none}
#section-online.online-at-table .poker-tables-button {cursor:default}
#section-online.online-at-table .poker-players-button:focus-visible {outline:2px solid #eddbb4;outline-offset:2px}
#section-online .poker-table-loading {flex:1;display:grid;place-content:center;min-height:180px;color:#bdcbbb;text-align:center;padding:24px}
/* A seat profile is a content-sized card, separate from full-height drawers. */
#section-online #online-player-dialog[open] {
  position:fixed;left:0;right:0;top:calc(var(--online-sheet-top,0px) + var(--online-sheet-height,100dvh)/2);bottom:auto;
  width:min(380px,calc(100vw - 32px));max-width:none;height:auto;min-height:0;
  max-height:calc(var(--online-sheet-height,100dvh) - 24px);margin:0 auto;transform:translateY(-50%);
  border-radius:16px;overflow:hidden;
}
#section-online #online-player-dialog>.poker-social-heading {min-height:60px;padding:8px 16px}
#section-online #online-player-dialog>.poker-social-heading h3 {font-size:17px;line-height:1.3}
#section-online #online-player-dialog-content {flex:0 1 auto;padding:16px}
#section-online #online-player-dialog .poker-profile-identity {gap:12px;margin:0 0 10px}
#section-online #online-player-dialog .poker-profile-identity>div {min-width:0}
#section-online #online-player-dialog .poker-profile-identity h4 {margin:0 0 6px;font-size:20px;line-height:1.3}
#section-online #online-player-dialog .online-monogram {flex-basis:44px;width:44px;height:44px;font-size:21px}
#section-online #online-player-dialog .online-badge {font-size:10px}
#section-online #online-player-dialog .online-intro {margin:10px 0;font-size:12px;line-height:1.5}
#section-online #online-player-dialog .online-stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}
#section-online #online-player-dialog .online-stats span {min-width:0;font-size:11px}
#section-online #online-player-dialog .online-stats b {font-size:18px}
#section-online #online-player-dialog [data-online-view-friends] {min-height:44px;margin-top:4px}
#section-online #online-player-dialog button:focus-visible {outline:2px solid #a2cdff;outline-offset:2px}
/* A separate chip on the felt stays visible through folded/showdown avatars. */
#section-online.online-at-table .poker-felt>.poker-dealer {
  position:absolute;left:var(--dealer-left,50%);top:var(--dealer-top,50%);bottom:auto;
  transform:translate(-50%,-50%);z-index:7;display:grid;place-items:center;
  width:32px;height:32px;border:2px solid #d4b97d;border-radius:50%;
  background:#fff8e8;color:#142034;font:800 19px/1 system-ui,sans-serif;
  box-shadow:0 2px 0 #8b7449,0 3px 6px #0009,inset 0 0 0 2px #fff;pointer-events:none;
}
#section-online.online-at-table .poker-felt>.poker-dealer::before {content:'';position:absolute;inset:3px;border:1px dashed #8b7449;border-radius:50%}
@media (min-width:768px) {
  .app-shell.app--online-club:not(.app--online-table) {
    width:100%;max-width:1180px;
    padding:calc(26px + max(var(--tg-top,0px),env(safe-area-inset-top,0px))) 32px calc(100px + max(var(--tg-bottom,0px),env(safe-area-inset-bottom,0px)));
  }
  .app--online-club:not(.app--online-table) main {scrollbar-width:thin;scrollbar-color:#365878 #0b1523;padding-inline:4px}
  #section-online:not(.online-at-table) .online-club-header {min-height:64px;margin-bottom:28px;padding-bottom:20px;border-bottom:1px solid #263b53}
  #section-online:not(.online-at-table) .online-club-brand {font-size:22px}
  #section-online:not(.online-at-table) .online-club-brand small {font-size:10px;letter-spacing:3px}
  #section-online:not(.online-at-table) .online-club-tool {width:46px;height:46px}
  #section-online:not(.online-at-table) .online-heading h2 {font-size:32px}
  #section-online[data-club-tab="hub"] #online-hub-player {margin-bottom:26px}
  #section-online .online-hub-player {grid-template-columns:76px minmax(0,1fr) 100px;gap:20px}
  #section-online .online-hub-avatar {width:76px;height:76px;font-size:32px}
  #section-online .online-hub-name {font-size:30px;margin-bottom:12px}
  #section-online .online-hub-wallet {min-height:38px;font-size:14px;padding-inline:12px}
  #section-online .online-hub-plus {width:66px;height:66px}
  #section-online .online-hub-own-table {font-size:12px}
  #section-online[data-club-tab="hub"] .online-hub-rank {padding:20px 0;margin:0;font-size:14px}
  #section-online[data-club-tab="hub"] .online-mode-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
  #section-online[data-club-tab="hub"] .online-mode {display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;height:242px;margin:0;padding:24px;border-radius:16px}
  #section-online[data-club-tab="hub"] .online-mode:first-child {grid-column:1/-1;height:260px}
  #section-online[data-club-tab="hub"] .online-mode>strong {font-size:34px;line-height:1.12;max-width:75%}
  #section-online[data-club-tab="hub"] .online-mode:first-child>strong br:last-child {display:none}
  #section-online[data-club-tab="hub"] .online-mode-description {display:block;max-width:55%;font-size:13px;line-height:1.7;margin-top:15px}
  #section-online[data-club-tab="hub"] .online-mode:first-child>img {object-position:50% 48%}
  #section-online[data-club-tab="hub"] .online-mode-link {left:24px;bottom:23px;font-size:13px}
  #section-online[data-club-tab="hub"] .online-mode-disclaimer {left:24px;right:20px;bottom:54px;max-width:calc(100% - 44px);font-size:10px;padding:6px 8px}
  #section-online[data-club-tab="hub"] .online-mode--soon .online-mode-unit {display:block;font-size:12px;margin-top:12px}
  #section-online[data-club-tab="hub"] .online-mode--practice .online-mode-description {display:none}
  #section-online[data-club-tab="hub"] .online-mode--practice>.online-mode-link {bottom:54px}
  #section-online[data-club-tab="hub"] .online-mode--practice>.online-mode-disclaimer {bottom:23px;padding:0;font-size:12px}
  #section-online .online-mode-arrow {width:38px;height:38px;right:18px;top:18px}
  .app--online-club:not(.app--online-table) .online-bottom-nav {
    position:fixed;width:520px;bottom:calc(14px + max(var(--tg-bottom,0px),env(safe-area-inset-bottom,0px)));
    padding:9px 12px;border:1px solid #2c4665;border-radius:18px;background:#0e1c2f;
  }
  #section-online:not(.online-at-table) .online-bottom-nav .nav-item {min-height:52px;border-radius:10px}
  #section-online:not(.online-at-table) .online-bottom-nav .nav-item--active {background:#193859;color:#acd3ff}
  #section-online .online-bottom-nav .nav-item small {font-size:12px}
  #section-online .online-friends-intro {font-size:20px;line-height:1.5;margin:4px 0 24px}
  #section-online .online-friends-intro br {display:none}
  #section-online .online-friends-search {max-width:600px}
  #section-online .online-friends-tabs {width:360px;margin-bottom:24px}
  #section-online .online-friends-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  #section-online .online-friend-card {padding:20px}
  #section-online .online-friend-identity strong {font-size:15px}
  #section-online .online-friend-identity small,#section-online .online-friend-follow {font-size:12px}
  #section-online .online-social-section-heading {margin-block:26px 16px}
  #section-online .online-club-invite-hero {min-height:330px;padding:36px}
  #section-online .online-club-invite-copy {max-width:65%}
  #section-online .online-club-invite-copy h3 {font-size:48px}
  #section-online .online-club-invite-copy p {font-size:15px}
  #section-online .online-club-invitation {display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;padding:24px;text-align:left}
  #section-online .online-club-invitation p br {display:none}
  #section-online .online-clubs-empty {padding:34px;min-height:200px}
  #section-online :is([data-online-panel="profile"],[data-online-panel="inventory"]) {max-width:900px;margin-inline:auto}
  #section-online [data-online-panel="rating"] .rating-card {padding:16px 20px;grid-template-columns:28px 48px minmax(0,1fr) auto;gap:14px}
  #section-online [data-online-panel="rating"] .rating-card-name strong {font-size:16px}
  #section-online [data-online-panel="rating"] .rating-card-name small {font-size:12px}
  #section-online [data-online-panel="rating"] .rating-card-score strong {font-size:18px}
  #section-online [data-online-panel="rating"] .rating-card-score small {font-size:12px}
  #section-online #online-lobby .online-tournament-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
  #section-online #online-lobby .online-tile {margin:0}
  #section-online .online-social-close {width:44px;height:44px}
  #section-online .online-coming-dialog {width:420px;border-radius:20px;margin:auto;padding:32px}

  /* Tablet portrait keeps a taller oval and direct touch controls. */
  .app-shell.app--online-table {width:100%;max-width:1500px;padding:calc(14px + max(var(--tg-top,0px),env(safe-area-inset-top,0px))) max(28px,var(--tg-right,0px),env(safe-area-inset-right,0px)) calc(14px + max(var(--tg-bottom,0px),env(safe-area-inset-bottom,0px))) max(28px,var(--tg-left,0px),env(safe-area-inset-left,0px))}
  #section-online.online-at-table .poker-toolbar {min-height:58px;gap:12px}
  #section-online.online-at-table .poker-tables-button strong {font-size:22px}
  #section-online.online-at-table .poker-tables-button span {font-size:12px}
  #section-online.online-at-table .poker-felt {width:100%;max-width:1200px;min-height:0;margin:auto;flex:1}
  #section-online.online-at-table .poker-seat {left:var(--mobile-x,var(--seat-x));top:clamp(62px,var(--mobile-y,var(--seat-y)),calc(100% - 66px));transform:translate(-50%,-50%)}
  #section-online.online-at-table .poker-seat--you {top:clamp(74px,var(--mobile-y,var(--seat-y)),calc(100% - 74px))}
  #section-online.online-at-table .poker-board,#section-online.online-at-table .poker-pot {transform:translate(-50%,-50%)}
  #section-online.online-at-table .poker-result {transform:translateX(-50%);max-width:300px;max-height:60px;font-size:14px;line-height:1.5}
  #section-online.online-at-table .poker-board {gap:8px}
  #section-online.online-at-table .poker-pot b {font-size:32px}
  #section-online.online-at-table .poker-pot small {font-size:11px}
  #section-online.online-at-table .poker-player-name {font-size:14px}
  #section-online.online-at-table .poker-nameplate {width:var(--player-plate-width,100px)}
  #section-online.online-at-table .poker-seat--you .poker-nameplate {width:calc(var(--hero-avatar-size,54px) + 24px)}
  #section-online.online-at-table .poker-seat--you .poker-card--small {width:var(--hero-card-width,55px);height:var(--hero-card-height,78px);font-size:var(--hero-rank-size,27px)}
  #section-online.online-at-table .poker-seat--you .poker-card--small i {font-size:var(--hero-suit-size,32px)}
  #section-online.online-at-table .poker-felt .poker-board>.poker-card,#section-online.online-at-table .poker-felt .poker-board>.poker-card-slot {width:var(--board-card-width,54px);height:calc(var(--board-card-width,54px)*1.45);font-size:24px}
  #section-online.online-at-table .poker-stack {font-size:14px}
  #section-online.online-at-table .poker-seat--you .poker-stack {font-size:17px}
  #section-online.online-at-table .poker-last-action {font-size:11px;line-height:15px}
  #section-online.online-at-table .poker-panel-triggers {width:100%;max-width:1000px;height:50px;min-height:50px;margin:0 auto}
  #section-online.online-at-table .poker-turn-status {font-size:14px}
  #section-online.online-at-table #online-controls-host {width:min(100%,720px);align-self:center;padding:8px 0 0;flex:none;grid-template-rows:66px 0;height:74px;min-height:74px;border:0}
  #section-online.online-at-table .poker-action-buttons {width:100%;max-width:none;gap:12px}
  #section-online.online-at-table .poker-action-buttons button {min-height:60px;font-size:15px}
  #section-online.online-at-table.online-raising #online-controls-host {height:166px;min-height:166px;grid-template-rows:0 158px}
  #section-online.online-at-table .poker-raise-panel {max-width:none;width:100%;height:153px}
  #section-online.online-at-table .poker-seat--showdown:not(.poker-seat--you) .poker-card--small {width:32px;height:45px;font-size:16px}
  #section-online.online-at-table .poker-seat--showdown:not(.poker-seat--you) .poker-seat-hand {top:calc(var(--player-avatar-size,42px) + 36px)}
  #section-online .online-chat-notice {width:350px;height:auto;max-height:160px;top:auto;left:auto;right:28px;bottom:120px;transform:none}
}

/* Wide tablet and desktop tables use horizontal seating, including after rotation. */
@media (min-width:768px) and (orientation:landscape) {
  #section-online.online-at-table .poker-felt::before {inset:42px 60px 58px;border-radius:50% / 48%;border-width:12px}
  #section-online.online-at-table .poker-felt::after {inset:59px 78px 75px;border-radius:50% / 48%}
  #section-online.online-at-table .poker-seat {left:var(--wide-x,var(--seat-x));top:clamp(55px,var(--wide-y,var(--seat-y)),calc(100% - 65px))}
  #section-online.online-at-table .poker-seat--you {top:clamp(74px,var(--wide-y,var(--seat-y)),calc(100% - 74px))}
  #section-online.online-at-table .poker-pot {top:32%}
  #section-online.online-at-table .poker-board {top:52%}
  #section-online.online-at-table .poker-result {top:calc(52% + 54px)}
  #section-online.online-at-table .poker-game-heading {top:68%}
  #section-online.online-at-table .poker-felt-brand {top:68%;font-size:19px}
  #section-online.online-at-table .poker-seat:not(.poker-seat--you) .poker-bet {top:calc(50% + var(--bet-dy,0px));left:calc(50% + var(--bet-dx,0px));transform:translate(-50%,-50%)}
}

/* Desktop keeps navigation at the bottom, as on the other device layouts. */
@media (min-width:1200px) {
  .app-shell.app--online-club:not(.app--online-table) {max-width:1480px;padding:calc(24px + max(var(--tg-top,0px),env(safe-area-inset-top,0px))) 40px calc(106px + max(var(--tg-bottom,0px),env(safe-area-inset-bottom,0px)))}
  #section-online:not(.online-at-table) .online-club-header {margin-bottom:26px}
  .app--online-club:not(.app--online-table) .online-bottom-nav {
    left:50%;top:auto;bottom:calc(18px + max(var(--tg-bottom,0px),env(safe-area-inset-bottom,0px)));transform:translateX(-50%);
    z-index:5;width:600px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:8px;border:1px solid #2c4665;border-radius:16px;background:#0e1c2f;backdrop-filter:none;
  }
  #section-online:not(.online-at-table) .online-bottom-nav .nav-item {display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 10px;border-radius:9px}
  #section-online .online-bottom-nav .nav-item small {font-size:13px;font-weight:600;white-space:nowrap}
  #section-online .online-bottom-nav .nav-icon {margin:0;flex:none;width:20px;height:20px}
  #section-online[data-club-tab="hub"] #online-hub-player {display:flex;align-items:center;gap:32px;padding:0 0 30px;margin-bottom:30px;border-bottom:1px solid #263b53}
  #section-online .online-hub-player {flex:1;grid-template-columns:80px minmax(0,1fr) 110px;gap:24px}
  #section-online[data-club-tab="hub"] .online-hub-rank {width:200px;align-self:stretch;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px;padding:0 0 0 28px;border:0;border-left:1px solid #263b53}
  #section-online .online-hub-rank>b {font-size:24px}
  #section-online[data-club-tab="hub"] .online-mode-list {grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
  #section-online[data-club-tab="hub"] .online-mode,#section-online[data-club-tab="hub"] .online-mode:first-child {grid-column:auto;height:clamp(290px,32vh,370px);padding:24px}
  #section-online[data-club-tab="hub"] .online-mode>strong {font-size:clamp(30px,2.6vw,40px);max-width:95%}
  #section-online[data-club-tab="hub"] .online-mode:first-child>strong br:last-child {display:initial}
  #section-online[data-club-tab="hub"] .online-mode-description {max-width:95%;font-size:13px}
  #section-online[data-club-tab="hub"] .online-mode>img {object-position:60% center}
  #section-online[data-club-tab="hub"] .online-mode:after {background:linear-gradient(180deg,#07172fe8,#07172f70 60%,#07172fe8)}
  #section-online[data-club-tab="hub"] .online-mode--soon:after {background:linear-gradient(180deg,#111824f2,#11182480 60%,#111824f2)}
  #section-online[data-club-tab="hub"] .online-mode-arrow {top:auto;bottom:17px}
  #section-online[data-club-tab="hub"] .online-mode-disclaimer {max-width:calc(100% - 48px);font-size:11px}
  #section-online [data-online-panel="rating"] .rating-tabs {margin-top:0}
  #section-online [data-online-panel="rating"] .podium-name {font-size:14px}
  #section-online .online-club-invite-hero {min-height:350px;padding:42px}
  #section-online .online-club-invite-copy h3 {font-size:56px}
  #section-online .online-clubs-empty {min-height:220px}
  .app-shell.app--online-table {padding-inline:48px}
  #section-online.online-at-table .poker-toolbar {max-width:1260px;width:100%;margin:auto;min-height:62px}
  #section-online.online-at-table .poker-notice {max-width:1100px;width:100%;margin:0 auto;text-align:center}
  #section-online.online-at-table #online-controls-host {width:720px}
  #section-online.online-at-table :is(#online-chat-panel,#online-history-dialog)[open] {width:420px}
}

/* Short laptop windows retain room for the cards when the raise slider is open. */
@media (min-width:768px) and (max-height:650px) {
  .app-shell.app--online-table {padding-block:6px}
  #section-online.online-at-table [data-online-panel="tournaments"] {display:flex;flex-direction:column}
  #section-online.online-at-table .poker-toolbar {min-height:44px}
  #section-online.online-at-table .poker-panel-triggers {height:40px;min-height:40px;position:static}
  #section-online.online-at-table .poker-felt {width:100%}
  #section-online.online-at-table .poker-seat {transform:translate(-50%,-50%) scale(.9)}
  #section-online.online-at-table.online-raising [data-online-panel="tournaments"] {display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px}
  #section-online.online-at-table.online-raising #online-controls-host {width:100%;height:auto;min-height:0;align-self:center}
  #section-online.online-at-table.online-raising .poker-raise-panel {padding-inline:8px}
}

@media (min-width:768px) and (hover:hover) and (pointer:fine) {
  #section-online .online-mode {transition:border-color 180ms ease-out,box-shadow 180ms ease-out}
  #section-online .online-mode:hover {border-color:#90c3ff;box-shadow:0 8px 24px #0004}
  #section-online .online-bottom-nav .nav-item:hover {background:#19304d;color:#e0efff}
  #section-online .online-friend-card:hover {border-color:#527eaf}
}

/* Feedback must size the footer: it can contain a result and two actions,
   rather than the single row reserved for fold/call/raise. */
#section-online.online-at-table #online-controls-host:has(.poker-feedback-card,.poker-waiting-actions),
#section-online.online-at-table.online-showing-feedback #online-controls-host {
  grid-template-rows:auto 0;
  height:auto;min-height:0;flex:none;overflow:visible;transition:none;
}
#section-online.online-at-table.online-showing-feedback #online-actions,
#section-online.online-at-table #online-actions:has(.poker-feedback-card,.poker-waiting-actions) {overflow:visible}

#section-online .poker-standings-intro h4 {margin:22px 0 8px;line-height:1.35;overflow-wrap:anywhere}
#section-online .poker-standings-intro .online-intro {margin:0 0 20px}
#section-online .poker-tournament-winner {
  display:flex;align-items:center;gap:12px;margin:0 0 20px;padding:16px 0;
  border-block:1px solid #c7a35f45;color:#f1dca8;
}
#section-online .poker-tournament-winner>.online-ui-icon {width:28px;height:28px;flex:none}
#section-online .poker-tournament-winner>div {min-width:0;flex:1}
#section-online .poker-tournament-winner span,#section-online .poker-tournament-winner small {display:block;font-size:11px;font-weight:500;line-height:1.5;color:#c5ced8}
#section-online .poker-tournament-winner strong {display:block;margin-top:4px;font-size:16px;overflow-wrap:anywhere}
#section-online .poker-tournament-winner>b {font-size:16px;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
#section-online .poker-tournament-winner small {margin-top:4px}
#section-online .poker-standings-table {isolation:isolate}
#section-online .poker-standings-heading {position:sticky;top:0;z-index:1;background:#102039;color:#becfe1}
#section-online .poker-standing--winner {background:#c7a35f0e}
#section-online .poker-standing--winner>div>b {color:#f1dca8}
#section-online .poker-standings-heading>:nth-child(2),#section-online .poker-standing>:nth-child(2) {text-align:center}
#section-online .poker-standings-heading>:last-child {text-align:right}

@media (min-width:768px) {
  .app-shell.app--online-table {max-width:1440px;padding-inline:clamp(24px,4vw,56px)}
  #section-online.online-at-table .poker-toolbar {
    display:grid;grid-template-columns:112px minmax(0,1fr) 112px;
    width:100%;max-width:1260px;margin-inline:auto;min-height:64px;
    padding-bottom:8px;border-bottom:1px solid #c7a35f26;
  }
  #section-online.online-at-table .poker-toolbar>[data-online-lobby] {width:104px;gap:8px;font-size:13px;justify-content:flex-start;color:#d8dfd9}
  #section-online.online-at-table .poker-toolbar>[data-online-lobby]::before {font-size:25px}
  #section-online.online-at-table .poker-tables-button {grid-column:2;max-width:100%;justify-content:center;gap:5px}
  #section-online.online-at-table .poker-tables-button strong {font-size:clamp(18px,1.6vw,24px);line-height:1.25;overflow:hidden;text-overflow:ellipsis;max-width:100%;white-space:nowrap}
  #section-online.online-at-table .poker-tables-button span {font-size:12px;color:#bdcabb}
  #section-online.online-at-table .poker-notice {max-height:none;padding:10px 0 4px;font-size:12px;line-height:1.5;color:#c6d1c4;flex:none}
  #section-online.online-at-table .poker-felt {max-width:1180px;max-height:620px}
  #section-online.online-at-table #online-table-view {flex:1 1 auto}
  #section-online.online-at-table .poker-felt-brand {top:73%;font-size:15px;opacity:.22}
  #section-online.online-at-table .poker-seat:not(.poker-seat--you) .poker-player-name {font-size:13px;line-height:1.35}
  #section-online.online-at-table .poker-seat--showdown:not(.poker-seat--you) .poker-nameplate {top:calc(var(--player-avatar-size,42px) - 8px);width:var(--player-plate-width,112px);padding:9px 4px 3px}
  #section-online.online-at-table .poker-seat--showdown:not(.poker-seat--you) .poker-seat-hand {top:calc(var(--player-avatar-size,42px) + 38px);left:50%;transform:translateX(-50%);display:flex}
  #section-online.online-at-table .poker-seat--showdown:not(.poker-seat--you) .poker-combination {top:-22px;max-width:140px;font-size:10px}
  #section-online.online-at-table .poker-seat--showdown:not(.poker-seat--you) .poker-stack {font-size:14px}
  #section-online.online-at-table .poker-seat--showdown:not(.poker-seat--you) .poker-card--small {width:32px;height:45px;font-size:17px}
  #section-online.online-at-table .poker-seat--showdown:not(.poker-seat--you) .poker-card--small i {font-size:21px}
  #section-online.online-at-table .poker-felt::before {inset:40px 64px 56px;border-width:7px}
  #section-online.online-at-table .poker-felt::after {inset:54px 78px 70px}
  #section-online.online-at-table .poker-panel-triggers {max-width:1180px;height:50px;min-height:50px;border-top:1px solid #c7a35f26;padding:0 8px;position:relative}
  #section-online.online-at-table .poker-panel-triggers .poker-panel-button {
    display:inline-flex;align-items:center;justify-content:center;gap:8px;
    width:auto;min-width:44px;padding:10px 12px;font-size:12px;border-radius:8px;
  }
  #section-online.online-at-table .poker-panel-triggers .poker-panel-button svg {width:19px;height:19px;flex:none}
  #section-online.online-at-table .poker-sound-button [data-online-sound-label] {display:none}
  #section-online.online-at-table .poker-turn-status {font-size:13px;color:#c6d1c4}
  #section-online.online-at-table #online-controls-host {width:min(100%,1000px);padding:12px 0 0;height:auto;min-height:0;grid-template-rows:auto 0;overflow:visible}
  #section-online.online-at-table .poker-feedback-card {flex-direction:row;align-items:center;gap:24px;padding:16px 20px;border-color:#c7a35f59;background:#101d2b;border-radius:12px}
  #section-online.online-at-table .poker-feedback-card>div:first-child {flex:1}
  #section-online.online-at-table .poker-feedback-card strong {font-size:17px;line-height:1.35}
  #section-online.online-at-table .poker-feedback-card p {margin:6px 0 0;font-size:13px;line-height:1.5}
  #section-online.online-at-table .poker-feedback-actions {flex:none;gap:10px;flex-wrap:nowrap}
  #section-online.online-at-table .poker-feedback-actions .online-button {min-width:136px;min-height:46px;padding:12px 18px;font-size:13px;white-space:nowrap}
  #section-online.online-at-table.online-raising #online-controls-host {width:min(100%,720px);height:auto;min-height:0;grid-template-rows:0 auto}
  #section-online.online-at-table .poker-raise-panel {height:auto;min-height:0}
  #section-online.online-at-table .poker-action-buttons {max-width:760px}
  .tg-back #section-online.online-at-table .poker-toolbar {grid-template-columns:112px minmax(0,1fr) 112px}
  #section-online.online-at-table[data-tournament-status="finished"] .poker-game-heading {display:none}

  #section-online #online-tournament-dialog[open] {
    left:50%;right:auto;top:calc(var(--online-viewport-top,0px) + var(--online-safe-top,0px) + 24px);
    transform:translateX(-50%);margin:0;width:min(860px,calc(100vw - 64px));
    height:min(820px,calc(var(--online-vh,100dvh) - var(--online-safe-top,0px) - var(--online-safe-bottom,0px) - 48px));
    max-height:calc(var(--online-vh,100dvh) - var(--online-safe-top,0px) - var(--online-safe-bottom,0px) - 48px);
    border:1px solid #3c536c;border-radius:16px;background:#102039;animation:none;
    box-shadow:0 24px 80px #0008;
  }
  #section-online #online-tournament-dialog>.poker-social-heading {min-height:78px;padding:16px 28px;background:#102039}
  #section-online #online-tournament-dialog>.poker-social-heading h3 {font-size:22px}
  #section-online #online-standings-content {padding:0 28px 28px;scrollbar-color:#5b7797 #102039}
  #section-online .poker-standings-intro h4 {font-size:20px;margin-top:24px}
  #section-online .poker-standings-intro .online-intro {font-size:13px;line-height:1.6}
  #section-online .poker-tournament-winner {gap:18px;padding-block:20px}
  #section-online .poker-tournament-winner strong,#section-online .poker-tournament-winner>b {font-size:20px}
  #section-online .poker-tournament-winner span,#section-online .poker-tournament-winner small {font-size:12px}
  #section-online .poker-table-switcher {gap:10px;margin-block:20px}
  #section-online .poker-table-switcher .online-button {min-width:96px;min-height:56px;padding:10px 18px;font-size:13px}
  #section-online .poker-standings-heading,#section-online .poker-standing {grid-template-columns:minmax(0,1fr) 72px 132px;gap:20px;padding:16px 12px;font-size:14px}
  #section-online .poker-standings-heading {padding-block:12px;font-size:12px}
  #section-online .poker-standing>div {gap:18px;align-items:baseline}
  #section-online .poker-standing>div>b {min-width:28px;font-variant-numeric:tabular-nums}
  #section-online .poker-standing>strong {font-size:13px;color:#e8d29a}
  #section-online .poker-standing--you {background:#29436566}
  #section-online .poker-standing:hover {background:#ffffff06}
  #section-online :is(button,input,select):focus-visible {outline:2px solid #e8c878;outline-offset:3px}
}

@media (min-width:1200px) {
  .app-shell.app--online-club:not(.app--online-table) {
    max-width:none;padding-inline:clamp(24px,3vw,56px);
    padding-bottom:calc(106px + max(var(--tg-bottom,0px),env(safe-area-inset-bottom,0px)));
  }
  #section-online:not(.online-at-table) .online-club-header {margin-bottom:28px;min-height:76px}
  #section-online .online-club-brand .online-club-logo {width:270px}
  #section-online:not(.online-at-table) .online-heading,#section-online #online-lobby {max-width:none;margin-inline:0}
  #section-online[data-club-tab="hub"] #online-hub-player {display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:32px;margin-bottom:26px;padding-bottom:26px}
  #section-online[data-club-tab="hub"] .online-hub-player {display:grid;grid-template-columns:68px minmax(0,1fr) 92px;gap:20px}
  #section-online[data-club-tab="hub"] .online-hub-avatar {width:68px;height:68px}
  #section-online[data-club-tab="hub"] .online-hub-name {font-size:30px}
  #section-online[data-club-tab="hub"] .online-hub-rank {width:auto;padding-left:28px}
  #section-online[data-club-tab="hub"] .online-mode {height:320px}
  #section-online[data-club-tab="hub"] .online-mode>strong {max-width:88%;font-size:clamp(28px,2.4vw,36px);line-height:1.16}
  #section-online #online-lobby .online-tournament-list {gap:24px}
  #section-online #online-lobby .online-tile {padding:0}
  #section-online #online-lobby .online-tile-open {padding:24px 24px 0}
  #section-online #online-lobby .online-tile:only-child {grid-column:1/-1}
  #section-online #online-lobby .online-tile:only-child .online-tile-open {display:grid;grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr);column-gap:40px}
  #section-online #online-lobby .online-tile:only-child .online-tile-top {grid-column:1/-1;padding-bottom:20px;margin:0}
  #section-online #online-lobby .online-tile:only-child .online-tile-mid {grid-column:1;grid-row:2;gap:24px}
  #section-online #online-lobby .online-tile:only-child .online-tile-time {grid-column:1;grid-row:3;margin-bottom:20px}
  #section-online #online-lobby .online-tile:only-child .online-tile-bottom {grid-column:2;grid-row:2/4;flex-wrap:wrap;justify-content:space-between;align-content:center;gap:16px;border:0;padding:0 0 20px}
  #section-online #online-lobby .online-tile:only-child .online-tile-reward {flex:auto}
  #section-online #online-lobby .online-tile:only-child .online-tile-enter {width:100%;justify-content:space-between;min-height:44px;border-top:1px solid #ffffff12;padding-top:12px}
  #section-online #online-lobby .online-tile-title {font-size:17px}
  #section-online #online-lobby .online-tile-blinds>strong {font-size:36px}
  #section-online #online-lobby .online-tile-roster,#section-online #online-lobby .online-tile-conditions {padding-inline:24px}
}

@media (min-width:1200px) and (max-height:820px) {
  #section-online:not(.online-at-table) .online-club-header {min-height:60px;margin-bottom:18px;padding-bottom:12px}
  #section-online .online-club-brand .online-club-logo {width:240px}
  #section-online[data-club-tab="hub"] #online-hub-player {margin-bottom:18px;padding-bottom:18px}
  #section-online:not(.online-at-table)[data-club-tab="hub"] .online-mode-list>.online-mode {height:270px;min-height:270px}
  #section-online[data-club-tab="hub"] .online-mode>strong {font-size:30px}
}

@media (min-width:768px) and (max-height:650px) {
  #section-online.online-at-table .poker-toolbar {min-height:48px;padding-bottom:4px}
  #section-online.online-at-table .poker-notice {padding:4px 0;font-size:11px}
  #section-online.online-at-table .poker-panel-triggers {height:44px;min-height:44px}
  #section-online.online-at-table #online-controls-host {padding-top:6px}
  #section-online.online-at-table .poker-feedback-card {padding:10px 14px;gap:14px}
  #section-online.online-at-table .poker-feedback-card strong {font-size:14px}
  #section-online.online-at-table.online-raising #online-controls-host {width:100%}
}

/* iPhone fixes only. Keep the existing table, cards, chips and blue drawers. */
#section-online.online-at-table .poker-standings-group-title {margin:20px 0 8px;font-size:13px;line-height:1.4}
#section-online.online-at-table .poker-standings-caption {margin:0 0 12px}
#section-online .poker-history-note {margin:14px 0 0;color:#abc2de;font-size:11px;line-height:1.5}
#section-online .poker-history-columns {display:flex;gap:8px;font-size:10px;color:#abc2de;margin:14px 0 6px}
#section-online .poker-history-columns>span:first-child {flex:1;min-width:0}
#section-online .poker-history-columns>span:nth-child(2),
#section-online .poker-history-players p>span:nth-child(2) {width:54px;flex:none}
#section-online .poker-history-columns>span:last-child,
#section-online .poker-history-players p>b {width:65px;flex:none;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
#section-online.online-at-table .poker-action-buttons button:disabled {opacity:.42;filter:saturate(.15);box-shadow:none;cursor:default}
#section-online.online-at-table :is(#online-chat-panel,#online-history-dialog,#online-tournament-dialog,#online-player-dialog) :is(button,textarea):focus:not(:focus-visible) {outline:none}
@media (hover:none) and (pointer:coarse) {
  #section-online.online-at-table:not([data-input-mode="keyboard"]) :is(#online-chat-panel,#online-history-dialog,#online-tournament-dialog,#online-player-dialog) :is(button,textarea):focus {outline:none}
}
@media (max-width:767px) {
  #section-online.online-at-table .poker-seat:not(.poker-seat--you) {translate:var(--seat-edge-shift,0px) 0}
  #section-online.online-at-table .poker-seat--you .poker-bet {top:-26px}
  #section-online.online-at-table .poker-turn-status {white-space:normal;line-height:16px;text-overflow:clip}
  #section-online.online-at-table :is(#online-chat-panel,#online-history-dialog,#online-tournament-dialog)[open] {
    position:fixed;left:12px;right:12px;top:calc(var(--online-sheet-top,var(--online-safe-top,0px)) + 8px);bottom:auto;
    width:auto;min-width:0;max-width:none;margin:0;transform:none;translate:none;
    height:calc(var(--online-sheet-height,100dvh) - 16px);max-height:calc(var(--online-sheet-height,100dvh) - 16px);
    min-height:0;border:1px solid #3d6593;border-radius:16px;animation:none;
  }
  #section-online.online-at-table #online-chat-panel .poker-chat-messages {min-height:0;overscroll-behavior:contain}
  #section-online.online-at-table .poker-chat-form-footer>small {display:none}
  #section-online.online-at-table[data-keyboard-open="true"] #online-chat-panel[open] {height:calc(var(--online-sheet-height) - 8px);max-height:calc(var(--online-sheet-height) - 8px)}
  #section-online.online-at-table #online-chat-input {min-height:44px;resize:none}
  #section-online.online-at-table[data-keyboard-open="true"] #online-chat-input {max-height:80px}
}

/* Tournament structure: fixed context, independently scrollable levels. */
#section-online.online-at-table .poker-table-meta {display:flex;align-items:center;justify-content:center;gap:2px;min-height:22px}
#section-online.online-at-table .poker-table-meta .poker-structure-help {margin:-11px -7px -11px 0}
#section-online.online-at-table[data-input-mode="pointer"] .poker-structure-help:focus {outline:none}

#section-online.online-at-table .poker-structure-help {display:inline-grid;place-items:center;flex:none;width:44px;min-width:44px;height:44px;min-height:44px;margin:-12px -9px -12px -9px;vertical-align:middle;padding:0;border:0;border-radius:50%;background:transparent;color:#d9c18d;cursor:pointer;touch-action:manipulation}
#section-online.online-at-table .poker-structure-help>span {display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#142b40;transition:background .16s ease,color .16s ease}
#section-online .poker-structure-help svg {display:block;width:20px;height:20px}
#section-online .poker-structure-help:hover>span {background:#294761;color:#fff0ca}
#section-online .poker-structure-help:active>span {background:#355573}
#section-online .poker-structure-help:focus-visible {outline:2px solid #eddbb4;outline-offset:-5px}
#section-online.online-at-table #online-structure-dialog[open] {display:flex;flex-direction:column;gap:0;position:fixed;left:50%;right:auto;top:calc(var(--online-sheet-top,var(--online-safe-top,0px)) + 12px);bottom:auto;translate:none;transform:translateX(-50%);width:min(480px,calc(100vw - 24px));height:auto;max-height:calc(var(--online-sheet-height,100dvh) - 24px);min-height:0;margin:0;padding:0;overflow:hidden;border:1px solid #3a5069;border-radius:16px;background:#102238;color:#e4ebf3;animation:none;font-family:var(--t2-text,system-ui,sans-serif)}
#section-online .poker-structure-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:18px 16px 14px;border-bottom:1px solid #ffffff12}
#section-online .poker-structure-heading>div {min-width:0}
#section-online .poker-structure-heading h3 {margin:0;color:#f2f3ee;font:600 19px/1.3 var(--t2-text,system-ui,sans-serif);letter-spacing:0}
#section-online .poker-structure-heading small {display:block;margin-top:5px;color:#b5c4d4;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
#section-online .poker-structure-close {display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #496078;border-radius:10px;background:#1b324b;color:#dce7f2;cursor:pointer}
#section-online .poker-structure-close svg {width:20px;height:20px}
#section-online .poker-structure-close:hover {background:#2a4662}
#section-online :is(.poker-structure-close,.poker-structure-scroll):focus-visible {outline:2px solid #dfc48c;outline-offset:-3px}
#section-online .poker-structure-overview {display:grid;grid-template-columns:1fr 1.2fr .8fr;gap:12px;flex:none;margin:0;padding:16px;color:#b5c4d4;font-size:12px}
#section-online .poker-structure-overview>span {display:flex;flex-direction:column;gap:5px;min-width:0}
#section-online .poker-structure-overview small {font-size:10px;line-height:1.4}
#section-online .poker-structure-overview b {color:#f1eee6;font-size:14px;line-height:1.3;font-weight:600;font-variant-numeric:tabular-nums}
#section-online .poker-structure-current {display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none;padding:12px 14px;margin:0 16px 12px;border:1px solid #496078;border-radius:10px;background:#1a334d;color:#c5d3e1;font-size:12px}
#section-online .poker-structure-current strong {font-size:18px;line-height:1.3;font-weight:600;font-variant-numeric:tabular-nums;color:#eddbb4;text-align:right}
#section-online .poker-structure-scroll {min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 16px;scrollbar-width:thin;scrollbar-color:#536b83 #102238;scroll-padding-block:44px 12px}
#section-online .poker-structure-table {border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;font-size:12px;font-variant-numeric:tabular-nums;line-height:1.4}
#section-online .poker-structure-table :is(th,td) {padding:11px 4px;border-bottom:1px solid #ffffff0d;text-align:right;white-space:nowrap;font-weight:400}
#section-online .poker-structure-table th:first-child {width:15%;text-align:left}
#section-online .poker-structure-table th:nth-child(2) {width:42%;text-align:left}
#section-online .poker-structure-table th:nth-child(3) {width:23%}
#section-online .poker-structure-table th:nth-child(4) {width:20%}
#section-online .poker-structure-table td:nth-child(2) {text-align:left}
#section-online .poker-structure-table thead th {position:sticky;top:0;z-index:1;background:#102238;color:#b5c4d4;font-size:10px;border-bottom:1px solid #40556d;padding-block:10px}
#section-online .poker-structure-table tbody th {font-weight:600}
#section-online .poker-structure-table tr.is-current {background:#2a4158;color:#fff1cc}
#section-online .poker-structure-table tr.is-current>:first-child {border-radius:8px 0 0 8px}
#section-online .poker-structure-table tr.is-current>:last-child {border-radius:0 8px 8px 0}
#section-online .poker-structure-table tr.is-complete {color:#adbdcd}
#section-online .poker-structure-table th small {display:block;margin-top:2px;color:#eddbb4;font-size:9px;line-height:1.2;font-weight:500}
#section-online .poker-structure-table tr.is-break {color:#c8d6e3;background:#172c42}
#section-online .poker-structure-table tr.is-break td:nth-child(2) {white-space:normal;overflow-wrap:anywhere}
#section-online .poker-structure-note {margin:16px 0;color:#adbdcd;font-size:11px;line-height:1.6}
@media(max-width:359px) {
 #section-online .poker-structure-heading h3 {font-size:17px}
 #section-online .poker-structure-table {font-size:11px}
 #section-online .poker-structure-table :is(th,td) {padding-inline:2px}
 #section-online .poker-structure-overview {gap:8px}
 #section-online .poker-structure-overview b {font-size:12px}
}

/* Labelled table controls: readable at a glance, including on narrow phones. */
#section-online.online-at-table .poker-toolbar {grid-template-columns:52px minmax(0,1fr) 52px}
.tg-back #section-online.online-at-table .poker-toolbar {grid-template-columns:minmax(0,1fr) 52px}
#section-online.online-at-table .poker-toolbar>.online-back,
#section-online.online-at-table .poker-players-button {
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  width:52px;min-width:52px;height:44px;min-height:44px;margin:0;padding:2px;
  border:0;border-radius:8px;background:transparent;color:#e4eaf1;font:600 11px/1.1 var(--t2-text,system-ui,sans-serif);
}
.tg-back #section-online.online-at-table .poker-toolbar>[data-online-lobby] {display:none}
#section-online.online-at-table .poker-toolbar>.online-back::before {content:none}
#section-online.online-at-table .poker-players-button>span {display:block}
#section-online.online-at-table .poker-tool-icon,
#section-online.online-at-table .poker-players-button svg {display:block;width:22px;height:22px;flex:none;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#section-online.online-at-table .poker-panel-triggers {
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:18px 44px;gap:4px 6px;
  position:relative;left:auto;right:auto;bottom:auto;width:100%;height:72px;min-height:72px;
  box-sizing:border-box;padding:4px 0 2px;margin:0 auto;border:0;pointer-events:auto;
}
#section-online.online-at-table .poker-table-tools {display:contents;position:static}
#section-online.online-at-table .poker-panel-triggers .poker-table-tools button {
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  grid-row:2;min-width:0;width:100%;height:44px;min-height:44px;margin:0;padding:3px 2px;
  border:1px solid #32465d;border-radius:8px;background:#101e2e;color:#e4eaf1;
  font:600 11px/1.1 var(--t2-text,system-ui,sans-serif);box-shadow:none;cursor:pointer;touch-action:manipulation;
}
#section-online.online-at-table .poker-table-tools [data-online-history] {grid-column:1}
#section-online.online-at-table .poker-table-tools [data-online-sound] {grid-column:2}
#section-online.online-at-table .poker-table-tools [data-online-bb] {grid-column:3}
#section-online.online-at-table .poker-table-tools [data-online-chat] {grid-column:4}
#section-online.online-at-table .poker-panel-triggers .poker-table-tools button svg {width:20px;height:20px;flex:none}
#section-online.online-at-table .poker-table-tools [data-online-sound-label] {display:block}
#section-online.online-at-table .poker-table-tools button>span:not(.poker-chat-count) {display:block;white-space:nowrap}
#section-online.online-at-table .poker-table-tools .poker-unit-button {font:600 11px/1.1 var(--t2-text,system-ui,sans-serif)}
#section-online.online-at-table .poker-turn-status {grid-row:1;grid-column:1/-1;align-self:center;min-width:0;color:#bdcad8;font-size:11px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#section-online.online-at-table .poker-turn-status {display:flex;align-items:center;justify-content:center;gap:5px}
#section-online.online-at-table .poker-turn-status-copy {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#section-online.online-at-table .poker-turn-status>b {flex:none;font-variant-numeric:tabular-nums;color:#ffe4aa}
#section-online.online-at-table .poker-table-tools button:is([aria-pressed="true"],[aria-expanded="true"]) {background:#293b4c;border-color:#b69b65;color:#ffe4aa}
#section-online.online-at-table .poker-table-tools button:disabled {color:#94a3b4;background:#101923;border-color:#283646;opacity:1;cursor:default}
#section-online.online-at-table .poker-table-tools .poker-chat-count {right:5px;top:1px}
#section-online.online-at-table :is(.poker-table-tools button,.poker-players-button,.poker-toolbar>.online-back):focus-visible {outline:2px solid #f3d494;outline-offset:2px}
@media (hover:hover) {
  #section-online.online-at-table :is(.poker-table-tools button,.poker-players-button,.poker-toolbar>.online-back):enabled:hover {background:#263d54;color:#fff2d3}
}
@media (min-width:768px), (orientation:landscape) and (max-height:600px) {
  #section-online.online-at-table .poker-panel-triggers {grid-template-columns:auto auto minmax(80px,1fr) auto auto;grid-template-rows:44px;height:52px;min-height:52px;gap:8px;padding:4px 0}
  #section-online.online-at-table .poker-panel-triggers .poker-table-tools button {grid-row:1;flex-direction:row;width:auto;min-width:86px;padding:6px 10px;gap:6px}
  #section-online.online-at-table .poker-table-tools [data-online-bb] {grid-column:4}
  #section-online.online-at-table .poker-table-tools [data-online-chat] {grid-column:5}
  #section-online.online-at-table .poker-turn-status {grid-row:1;grid-column:3;white-space:normal;line-height:1.3}
}

/* Explicit header areas also cover Telegram's hidden native back control. */
#section-online.online-at-table .poker-toolbar {
  grid-template-columns:52px minmax(0,1fr) 52px;
  grid-template-areas:"back title players";grid-template-rows:auto;
}
#section-online.online-at-table .poker-toolbar>.online-back {grid-area:back}
#section-online.online-at-table .poker-toolbar>.poker-tables-button,
#section-online.online-at-table .poker-toolbar>.poker-toolbar-title {grid-area:title;min-width:0;justify-self:stretch}
#section-online.online-at-table .poker-toolbar>.poker-players-button {grid-area:players}
.tg-back #section-online.online-at-table .poker-toolbar {
  grid-template-columns:minmax(0,1fr) 52px;grid-template-areas:"title players";
}
@media (min-width:768px) {
  .tg-back #section-online.online-at-table .poker-toolbar {
    grid-template-columns:52px minmax(0,1fr) 52px;grid-template-areas:"back title players";
  }
}

#section-online .online-hub-shortcuts {display:flex;align-items:center;justify-content:center;gap:10px}
#section-online .online-hub-player--playing {grid-template-columns:62px minmax(0,1fr) auto}
#section-online .online-hub-resume {display:flex;flex-direction:column;align-items:center;gap:9px;min-width:58px;border:0;padding:0;background:none;color:#d6e8ff;font:500 11px var(--t2-text,system-ui,sans-serif);cursor:pointer;white-space:nowrap}
#section-online .online-hub-resume-icon {display:grid;place-items:center;width:55px;height:55px;border:1px solid #5c95d3;border-radius:50%;background:#173b65;color:#b9dcff}
#section-online .online-hub-resume-icon svg {width:25px;height:25px}
#section-online .online-hub-resume:focus-visible {outline:2px solid #a2cdff;outline-offset:4px;border-radius:8px}
#section-online .online-hub-player--playing .online-hub-plus {width:55px;height:55px}
@media(max-width:420px) {
  #section-online .online-hub-player--playing {grid-template-columns:44px minmax(0,1fr) auto;gap:8px}
  #section-online .online-hub-player--playing .online-hub-avatar {width:44px;height:44px}
  #section-online .online-hub-player--playing .online-hub-name {font-size:18px}
  #section-online .online-hub-player--playing .online-hub-shortcuts {gap:6px}
  #section-online .online-hub-player--playing :is(.online-hub-plus,.online-hub-resume-icon) {width:44px;height:44px}
  #section-online .online-hub-player--playing :is(.online-hub-own-table,.online-hub-resume) {min-width:48px;font-size:10px;gap:6px}
}

/* Players: a compact roster, with table navigation only when it is needed. */
#section-online.online-at-table #online-tournament-dialog[open] {
  position:fixed;left:50%;right:auto;top:calc(var(--online-sheet-top,0px) + 12px);bottom:auto;
  width:min(600px,calc(100vw - 24px));min-width:0;max-width:none;height:auto;min-height:0;
  max-height:calc(var(--online-sheet-height,100dvh) - 24px);margin:0;padding:0;
  transform:translateX(-50%);translate:none;overflow:hidden;animation:none;
  border:1px solid #3d6593;border-radius:16px;background:#102039;box-shadow:none;
}
#section-online #online-tournament-dialog>.poker-social-heading {min-height:64px;padding:10px 16px;background:#122842}
#section-online #online-tournament-dialog>.poker-social-heading h3 {margin:0;font-size:19px;line-height:1.3}
#section-online #online-tournament-dialog #online-standings-content {padding:0 16px 16px;scrollbar-gutter:stable}
#section-online #online-tournament-dialog .poker-table-switcher {display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 20px}
#section-online #online-tournament-dialog .poker-table-switcher .online-button {
  flex:0 1 auto;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;
  min-width:0;min-height:44px;padding:8px 12px;border-radius:8px;font-size:12px;line-height:1.3;
  background:#152d4b;border-color:#365a82;color:#e5f2ff;
}
#section-online #online-tournament-dialog .poker-table-switcher small {font-size:11px;opacity:1;color:#b6cce5}
#section-online #online-tournament-dialog .poker-table-switcher [aria-pressed="true"] {background:#244e7b;border-color:#87bfff;color:#fff}
#section-online #online-tournament-dialog .poker-roster-group+.poker-roster-group {margin-top:24px}
#section-online #online-tournament-dialog .poker-standings-group-title {display:flex;align-items:baseline;gap:8px;margin:18px 0 4px;font-size:14px;line-height:1.4;color:#e5f2ff}
#section-online #online-tournament-dialog .poker-standings-group-title>span {font-size:12px;font-weight:500;color:#b6cce5;font-variant-numeric:tabular-nums}
#section-online #online-tournament-dialog :is(.poker-standings-heading,.poker-standing) {
  grid-template-columns:minmax(0,1fr) 92px;gap:12px;padding:10px 8px;border-color:#294666;font-size:13px;
}
#section-online #online-tournament-dialog .poker-standings-table--multi :is(.poker-standings-heading,.poker-standing) {grid-template-columns:minmax(0,1fr) 32px 92px}
#section-online #online-tournament-dialog .poker-standings-heading {padding-block:8px;font-size:11px;background:#102039;color:#b6cce5}
#section-online #online-tournament-dialog .poker-standing {min-height:54px;color:#e5f2ff}
#section-online #online-tournament-dialog .poker-standing:last-child {border-bottom:0}
#section-online #online-tournament-dialog .poker-standing-person {display:flex;align-items:center;gap:10px;min-width:0;overflow:hidden}
#section-online #online-tournament-dialog .poker-standing-avatar {position:relative;display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;overflow:hidden;background:#28496c;color:#d7eaff;font-size:13px;font-weight:600}
#section-online #online-tournament-dialog .poker-standing-avatar img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#section-online #online-tournament-dialog .poker-standing-label {display:flex;align-items:baseline;gap:6px;min-width:0}
#section-online #online-tournament-dialog .poker-standing-name {min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:500}
#section-online #online-tournament-dialog .poker-standing-label small {flex:none;font-size:10px;color:#b6cce5}
#section-online #online-tournament-dialog .poker-standing-value {text-align:right;white-space:nowrap;font-size:13px;font-weight:600;color:#e8d29a}
#section-online #online-tournament-dialog .poker-standing--you {background:#244366;color:#eef6ff;border-radius:6px}
#section-online #online-tournament-dialog .poker-standing--winner .poker-standing-value {color:#ffe6a3}
#section-online #online-tournament-dialog .poker-results-header {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}
#section-online #online-tournament-dialog .poker-results-header h4 {margin:0;font-size:15px;overflow-wrap:anywhere}
#section-online #online-tournament-dialog .poker-results-header .online-button {flex:none;min-height:44px}
#section-online #online-tournament-dialog .poker-standings-table--results :is(.poker-standings-heading,.poker-standing) {
  grid-template-columns:minmax(0,2fr) minmax(34px,.48fr) minmax(34px,.6fr) minmax(64px,1.5fr);gap:clamp(5px,1.5vw,12px);
}
#section-online #online-tournament-dialog .poker-standings-table--results :is(.poker-standings-heading,.poker-standing)>:nth-child(3),
#section-online #online-tournament-dialog .poker-standings-table--results .poker-standing-value {text-align:center}
#section-online #online-tournament-dialog .poker-standings-table--results .poker-standings-heading>:last-child {text-align:left}
#section-online #online-tournament-dialog .poker-standings-table--results .poker-standing-name {white-space:normal;overflow-wrap:anywhere;line-height:1.25}
#section-online #online-tournament-dialog .poker-standing-points {color:#e8d29a;font-weight:600}
#section-online #online-tournament-dialog .poker-standing-prize {font-size:11px;line-height:1.3;overflow-wrap:anywhere;color:#b6cce5}
#section-online #online-tournament-dialog .poker-standing-prize :is(b,small) {display:block}
#section-online #online-tournament-dialog .poker-standing-prize b {color:#ddecff;font-weight:600}
#section-online #online-tournament-dialog .poker-standing-prize small {font-size:inherit}
#section-online #online-tournament-dialog .poker-standing-prize>span+span {display:block;margin-top:6px}
#section-online .poker-felt--podium {z-index:4;pointer-events:none}
#section-online .poker-felt--podium > :is(.poker-community,.poker-seat,.poker-dealer) {opacity:.3;pointer-events:none}
#section-online .poker-felt--podium .poker-player-hit {visibility:hidden}
#section-online .poker-finish-podium {
  position:absolute;z-index:24;inset:50% auto auto 50%;transform:translate(-50%,-50%);
  width:min(600px,calc(100% - 12px));padding:clamp(10px,2vw,20px);box-sizing:border-box;
  border:1px solid #52739a;border-radius:20px;background:#0d2035f5;box-shadow:0 16px 36px #0006;
  color:#edf5ff;text-align:center;pointer-events:auto;
}
#section-online .poker-finish-podium h3 {margin:0 0 12px;color:#f1dfb8;font-size:clamp(16px,2vw,23px);line-height:1.2}
#section-online .poker-finish-winners {
  display:flex;align-items:end;justify-content:center;gap:clamp(5px,1.3vw,12px);list-style:none;padding:0;margin:0;
}
#section-online .poker-finish-winners li {
  --place-color:#bdd5ee;display:grid;justify-items:center;align-content:start;gap:5px;flex:1;min-width:0;max-width:178px;
  padding:10px 5px;border:1px solid #395473;border-radius:13px;background:#162d47;overflow-wrap:anywhere;
}
#section-online .poker-finish-winners [data-place="1"] {--place-color:#f5d48b;border-color:#b59755;background:#263449;padding-top:14px}
#section-online .poker-finish-winners [data-place="2"] {order:-1}
#section-online .poker-finish-winners [data-place="3"] {--place-color:#e8b69a}
#section-online .poker-finish-winners:not([data-count="3"]) [data-place="2"] {order:0}
#section-online .poker-finish-place {color:var(--place-color);font-size:11px;font-weight:700}
#section-online .poker-finish-winners .poker-finish-avatar {
  width:clamp(32px,6vw,52px);height:clamp(32px,6vw,52px);border:2px solid var(--place-color);
}
#section-online .poker-finish-name {font-size:clamp(11px,1.7vw,15px);line-height:1.2}
#section-online .poker-finish-score {font-size:clamp(11px,1.5vw,14px);color:var(--place-color);font-variant-numeric:tabular-nums}
#section-online .poker-finish-prize {font-size:clamp(10px,1.5vw,12px);color:#e2eefb;line-height:1.25}
#section-online .poker-finish-actions {display:flex;justify-content:center;gap:8px;margin-top:12px}
#section-online .poker-finish-actions .online-button {min-height:44px}
@media (orientation:landscape) and (max-height:500px) {
  #section-online .poker-finish-podium {padding:8px 12px;border-radius:14px}
  #section-online .poker-finish-podium h3 {font-size:16px;margin-bottom:5px}
  #section-online .poker-finish-winners li {gap:2px;padding:4px}
  #section-online .poker-finish-winners .poker-finish-avatar {width:30px;height:30px}
  #section-online .poker-finish-actions {margin-top:5px}
}
#section-online #online-tournament-dialog .poker-roster-empty {margin:12px 8px;color:#b6cce5;font-size:13px;line-height:1.5}
#section-online #online-tournament-dialog button:focus-visible {outline:2px solid #a2cdff;outline-offset:2px}
#section-online #online-tournament-dialog ::selection {background:#376da5;color:#fff}
@media (hover:hover) {
  #section-online #online-tournament-dialog .poker-table-switcher button:hover {background:#2a4d73;border-color:#87bfff}
}
@media (max-width:374px) {
  #section-online #online-tournament-dialog #online-standings-content {padding-inline:10px}
  #section-online #online-tournament-dialog :is(.poker-standings-heading,.poker-standing) {gap:8px;padding-inline:4px;grid-template-columns:minmax(0,1fr) 78px}
  #section-online #online-tournament-dialog .poker-standings-table--multi :is(.poker-standings-heading,.poker-standing) {grid-template-columns:minmax(0,1fr) 26px 78px}
  #section-online #online-tournament-dialog .poker-standing-person {gap:8px}
}

/* Visible feedback during lobby reads; existing tournament cards stay usable. */
#section-online .online-lobby-progress {display:flex;align-items:center;gap:14px;min-height:100px;padding:20px 16px;margin:0 0 16px;border:1px solid #344f6b;border-radius:12px;background:#102238;color:#e4ebf3}
#section-online .online-lobby-progress>div {flex:1;min-width:0}
#section-online .online-lobby-progress strong {font-size:14px;font-weight:600;line-height:1.5}
#section-online .online-lobby-progress p {margin:4px 0 0;color:#b5c4d4;font-size:12px;line-height:1.5}
#section-online .online-loading-spinner {flex:none;width:22px;height:22px;border:2px solid #496078;border-top-color:#eddbb4;border-radius:50%;animation:online-lobby-spin .8s linear infinite}
#section-online .online-lobby-progress .online-button {flex:none;min-height:44px;padding:8px 12px;font-size:12px}
@keyframes online-lobby-spin {to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce) {#section-online .online-loading-spinner {animation:none}}
@media(max-width:359px) {#section-online .online-lobby-progress {flex-wrap:wrap;padding:16px 12px;gap:10px}}

#section-online #online-lobby:has(>[data-online-lobby-progress]):not(:has(.online-tile))>:not([data-online-lobby-progress]) {
  display:none;
}
#section-online #online-lobby .online-lobby-progress {min-height:64px;padding-block:12px}
#section-online #online-lobby .online-tournament-list>.online-blank {grid-column:1/-1}


@media (min-width:768px) {
  .app--online-club:not(.app--online-table) main:has(#section-online:is([data-club-tab="friends"],[data-club-tab="club"],[data-club-tab="rating"])) {
    scrollbar-gutter:stable both-edges;
  }
  #section-online:not(.online-at-table):is([data-club-tab="friends"],[data-club-tab="club"],[data-club-tab="rating"]) {
    max-width:1120px;
    margin-inline:auto;
  }
  #section-online .online-friends-search {max-width:none}
  #section-online .online-friends-grid:has(> :only-child) {grid-template-columns:minmax(0,1fr)}
  #section-online[data-club-tab="tournaments"]:not(.online-at-table) > .online-heading,
  #section-online[data-club-tab="tournaments"]:not(.online-at-table) #online-lobby {
    max-width:960px;
    margin-inline:auto;
  }
  #section-online[data-club-tab="rating"]:not(.online-at-table) > .online-heading,
  #section-online [data-online-panel="rating"] {
    max-width:760px;
    margin-inline:auto;
  }
  #section-online[data-club-tab="rating"] .online-title-row {justify-content:center}
  #section-online #online-rating-season {margin:0 0 16px;text-align:center}
  #section-online #online-rating-podium:not(:empty) {
    padding:18px 16px 4px;
    background:#101f33;
    border-radius:16px;
  }
}

/* Keep the lobby controls and results on the same reading axis. */
#section-online:not(.online-at-table) #online-lobby {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:16px;
}
#section-online #online-lobby .online-lobby-summary {
  gap:8px 20px;
  margin:0;
  font-size:13px;
}
#section-online #online-lobby .online-lobby-summary>span {
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  min-height:24px;
}
#section-online #online-lobby .online-lobby-tabs {
  display:flex;
  gap:4px;
  margin:0;
  padding:4px;
  border:1px solid #293a50;
  border-radius:12px;
  background:#101c2b;
}
#section-online #online-lobby .online-lobby-tabs button {
  flex:1;
  min-width:0;
  min-height:44px;
  padding:8px 12px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#acbcd2;
  font:inherit;
  font-size:13px;
  font-weight:600;
}
#section-online #online-lobby .online-lobby-tabs button.is-active {
  background:#243d59;
  color:#f0f6ff;
}
#section-online #online-lobby .online-lobby-toggle {
  width:auto;
  max-width:100%;
  min-height:44px;
  gap:10px;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  font:inherit;
  font-size:12px;
  color:#acbcd2;
}
#section-online #online-lobby .online-tournament-list>.online-blank {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:200px;
  padding:32px 16px;
  border-top:1px solid #243348;
}
#section-online #online-lobby .online-blank h4 {
  max-width:100%;
  margin:0;
  font-size:18px;
  line-height:1.4;
  text-wrap:balance;
}
#section-online #online-lobby .online-blank p {
  max-width:34ch;
  margin:0;
  font-size:13px;
  line-height:1.6;
  text-wrap:balance;
}
#section-online #online-lobby :is(.online-lobby-tabs button,.online-lobby-toggle):focus-within {
  outline:2px solid #83bafa;
  outline-offset:3px;
}
@media (min-width:768px) {
  #section-online:not(.online-at-table) #online-lobby {
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    column-gap:24px;
  }
  #section-online #online-lobby .online-lobby-summary,
  #section-online #online-lobby .online-tournament-list,
  #section-online #online-lobby [data-online-lobby-progress] {grid-column:1/-1}
  #section-online #online-lobby .online-lobby-tabs {width:360px;max-width:100%}
  #section-online #online-lobby .online-lobby-toggle {justify-self:end}
}
