/* Reference39: compact club screens and a table scene that owns the viewport. */
:root{--reference-green:#18d487;--reference-card:#222;--reference-muted:#9b9fa2}
:root{--club-tools-green:#087a50;--club-tools-green-deep:#05613f}
body{background:#101010;color:#f0f1f0}
[hidden]{display:none!important}
body[data-view=lobby] .app{max-width:1120px;padding:0 18px 85px;margin:auto}
.club-topbar{height:58px;min-height:58px;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;padding:5px 0;border-bottom:1px solid #292929}
.club-topbar .header-meta{display:none}.club-topbar .reference-page-title{font-size:21px;font-weight:650;text-align:center;min-width:0;justify-self:stretch;white-space:nowrap;border:0;background:transparent;cursor:pointer}
.reference-icon{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:6px;border:0;border-radius:9px;color:#eee;background:transparent;font-size:23px;line-height:1;cursor:pointer}
.reference-icon:hover,.reference-icon:focus-visible{background:#333;outline:2px solid #18d487;outline-offset:1px}
.reference-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.reference-bell{position:relative}.reference-bell>svg{display:block;flex:none;width:23px;height:23px;aspect-ratio:1}.reference-bell[data-unread]:not([data-unread="0"]):after{content:attr(data-unread-display);position:absolute;top:3px;right:1px;border-radius:20px;background:#ee4b48;min-width:16px;padding:3px;font-size:10px}
.club-profile{display:grid;grid-template-columns:82px minmax(0,1fr);gap:12px;padding:23px 0 13px;align-items:start;min-height:0}
.club-avatar{width:82px;height:82px;border-radius:16px;border:1px solid #456b56;background:#112b22;grid-column:1;grid-row:1}
.club-avatar img{width:70px;height:70px}.club-summary{grid-column:2;grid-row:1;min-width:0;padding:2px 0}
.club-avatar.reference-home-club-r58{display:flex;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(145deg,#244c3b,#10251d);color:#c3f5d9}.club-avatar.reference-home-club-r58>img.reference-club-logo-r58{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}.club-avatar .reference-club-initials-r58{font-size:27px;line-height:1;font-weight:750;letter-spacing:.5px}.reference-club-members-r58{color:#b6c6bc}
.club-summary .eyebrow{font-size:10px;letter-spacing:1.5px;color:#979d98}.club-summary h1{font-size:25px;line-height:1.18;margin:6px 0 9px;overflow-wrap:normal;word-break:normal;color:#f3f3f3}
.club-stats{gap:13px;font-size:12px;color:#a0a5a2;flex-wrap:wrap}
.reference-wallets{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:0}
.reference-club-chip-total{grid-column:1/-1;display:flex;align-items:baseline;gap:6px;padding-inline:8px;font-size:13px;color:var(--lobby-accent,currentColor)}
.reference-club-chip-total strong{font-variant-numeric:tabular-nums}
.reference-icon.reference-chip-requests{grid-column:1/-1;justify-self:start;width:auto;padding:0 13px;min-height:40px;border:1px solid #418a70;border-radius:12px;background:#203a30;color:#e1f9ee;font-size:13px}
.reference-wallets .wallet-chip{min-width:0;max-width:none;width:auto;margin:0;border-radius:30px;min-height:44px;display:flex;align-items:center;gap:9px;padding:5px 11px;background:#191919;border:1px solid #3a3a3a;text-align:start;cursor:pointer}
.reference-wallets .wallet-chip:hover{border-color:#6a8f7c}
.reference-wallets .wallet-chip:focus-visible{outline:2px solid #18d487;outline-offset:2px}
.reference-wallet-info{min-width:0;display:flex;flex-direction:column;gap:1px;align-items:flex-start;line-height:1.15;width:100%}
.reference-wallets .wallet-chip small{font-size:10px;color:#a1a6a3;flex:1 1 auto}.reference-wallets .wallet-chip strong{font-size:19px;white-space:nowrap;font-variant-numeric:tabular-nums}
body[data-view=lobby] .club-profile{grid-template-columns:72px minmax(0,1fr);align-items:start;margin-bottom:5px}body[data-view=lobby] .club-avatar{width:72px;height:72px;align-self:start}body[data-view=lobby] .club-avatar img{width:62px;height:62px}.reference-wallets .wallet-chip strong{line-height:1.15}.reference-seated:before{background:#3158b6;border-color:#b6d2fa}
.reference-announcement{position:relative;background:#151515;border:1px solid #373737;border-radius:11px;min-height:73px;padding:11px 13px;margin:9px 0 17px}
.reference-announcement strong{font-size:13px;color:#b7bdb8;font-weight:500}.reference-announcement p{font-size:12px;line-height:1.5;color:#929a94;margin:7px 0 8px}
.reference-announcement>.reference-icon{position:absolute;bottom:-18px;left:calc(50% - 22px);background:#151515;border:1px solid #373737;border-top:0;border-radius:0 0 9px 9px;min-height:23px;height:23px;font-size:17px}
.reference-announcement.collapsed{min-height:35px;padding:8px 13px}.reference-announcement.collapsed p{display:none}
.club-tabs{border-bottom:1px solid #353535;gap:12px;padding:0;margin:0 0 9px;min-height:44px}.club-variant-tabs button{padding:12px 4px;font-size:16px;color:#9c9c9c;background:none;border:0;border-bottom:3px solid transparent;border-radius:0;min-height:44px}.club-variant-tabs button[aria-selected=true]{border-color:var(--reference-green);color:white;font-weight:700}
.club-variant-description{font-size:10px;color:#858d87}.club-toolbar{gap:10px;padding:10px 0;border-top:0;align-items:center;flex-wrap:wrap}.club-filter{font-size:11px;gap:6px;min-height:32px}.club-filter input{accent-color:#19d58a;width:18px;height:18px}
.club-toolbar input[type=search]{background:#292929;color:#eee;border-color:#393939;min-height:39px;font-size:12px;padding:8px 12px;flex:1;min-width:135px}
.create-table-button{background:#222;color:#17db91;border:2px solid #129e73;border-radius:10px;font-size:21px;min-height:51px;margin:4px 0 19px}
.club-table-card{background:#202020;border:1px solid #383838;border-radius:13px;margin-bottom:14px;overflow:hidden}.club-table-card.expanded{border-color:#119b70}.club-table-strip{min-height:94px;background:#232323;grid-template-columns:18px 51px minmax(0,1fr) auto;gap:11px;padding:0 15px 0 0;border:0}
.club-table-type{background:linear-gradient(#087b51,#11a977);font-size:11px;min-height:94px;padding:8px 0;align-self:stretch}.occupancy-ring{width:49px;height:49px;border-width:5px;font-size:20px}.club-table-summary{gap:6px;min-width:0}.table-name{font-size:13px;color:#bfc5c0}.club-table-limits{font-size:19px;color:#fff;font-weight:700}.table-status{font-size:10px;color:#9a9e9b}.club-table-buyin{padding:6px 0;text-align:right;min-width:69px}.club-table-buyin small{font-size:9px}.club-table-buyin strong{font-size:17px;white-space:nowrap}.club-table-details{padding:13px;background:#191919}.public-preview-heading{font-size:11px}.public-table-preview{border-color:#323b32;background:#151a14}.club-table-details .open-table-button{background:var(--club-tools-green);border-color:#0a9565;color:#fff;min-height:43px;border-radius:9px;font-size:16px}
.club-table-details details{font-size:12px}.club-footer-note{color:#737d76;font-size:10px}
.reference-floating{position:fixed;bottom:max(20px,env(safe-area-inset-bottom));right:22px;z-index:40;width:57px;height:57px;border-radius:50%;font-size:30px;box-shadow:0 4px 14px #0009;color:white}
.reference-dock{position:fixed;z-index:42;bottom:max(20px,env(safe-area-inset-bottom));left:50%;translate:-50% 0;display:flex;gap:1px;padding:3px 5px;border:1px solid #35e0a4;border-radius:35px;max-width:calc(100vw - 22px);background:linear-gradient(var(--club-tools-green),var(--club-tools-green-deep));box-shadow:0 6px 24px #000b}
.reference-dock button{display:flex;flex-direction:column;gap:4px;min-width:49px;min-height:49px;border-radius:30px;font-size:20px}.reference-dock small{font-size:9px}
.reference-menu{width:min(390px,94vw);max-height:88dvh;overflow:auto;border:1px solid #414141;border-radius:14px;padding:15px;background:#1c1c1c;color:#eee}.reference-menu::backdrop{background:#000b}.reference-menu-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #393939;margin-bottom:8px}.reference-menu h2{font-size:19px;margin:5px 0}.reference-menu>button{display:flex;width:100%;justify-content:flex-start;align-items:center;min-height:45px;margin:4px 0;padding:10px 12px;background:#272727;border:1px solid #3a3a3a;border-radius:7px;color:#eee;font-size:14px}.reference-menu .brand{font-size:17px;margin:6px 0 12px}.reference-account-name{font-size:13px;color:#a6b7ac}
/* Live table geometry and controls. */
html:has(body[data-view=table], .chess-dialog[open]:has(.chess-board:not([hidden]))) {
  overflow: hidden;
  overscroll-behavior: none;
}
body[data-view=table] {
  position: fixed;
  inset: 0;
  overflow: hidden;
  overscroll-behavior: none;
}
#table-view, .chess-board {
  touch-action: none;
  overscroll-behavior: none;
}
body[data-view=table] .app{width:100%;height:100dvh;max-width:none;margin:0;padding:0;overflow:hidden;background:#10130f}
body[data-view=table] #table-view{height:100dvh;min-height:0;display:flex;flex-direction:column}
body[data-view=table] .table-navigation{flex:0 0 44px;height:44px;min-height:44px;padding:0 6px;border-bottom:1px solid #282e25;background:#10130f;gap:6px}
body[data-view=table] .table-navigation button{min-height:40px;min-width:40px;padding:5px;border:0;background:transparent;border-radius:8px;font-size:21px}
body[data-view=table] #back-club-button{font-size:12px;min-width:48px;padding:5px}
body[data-view=table] .table-nav-actions{gap:1px;align-items:center}.table-nav-actions #history-count{display:none}.table-nav-actions #history-button{font-size:22px}
body[data-view=table] .table-nav-title{min-width:0;flex:1;padding:0}.table-nav-title:before{display:none!important}
body[data-view=table] .table-nav-title h1{font-size:14px;line-height:1.2;margin:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.table-nav-title #room-limits{display:none}
body[data-view=table] .table-navigation .table-squeeze-button {
  flex: 0 0 auto;
  min-width: 48px;
  min-height: 32px;
  padding: 4px 6px;
  border: 1px solid #365446;
  border-radius: 12px;
  background: #1b2822;
  color: #d6e4dc;
  font-size: 12px;
}
body[data-view=table] .table-navigation .table-squeeze-button[aria-pressed=true],
.table-squeeze-menu button[aria-pressed=true] {
  border-color: #5cb88e;
  background: #173e2b;
  color: #a9f4cf;
}
body[data-view=table] .table-nav-title .table-private-cards,
.reference-menu[data-kind="table-options"] > .table-header-menu-item,
.reference-preaction-portrait { display: none; }
@media (max-width: 700px) and (orientation: portrait) {
  body[data-view=table] #table-view .table-navigation { padding: 0 4px 0 8px; gap: 0; }
  body[data-view=table] #table-view .table-navigation #back-club-button,
  body[data-view=table] #table-view .table-navigation .reference-table-menu-toggle {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    min-width: 0;
    min-height: 44px;
    padding: 0;
    background: transparent;
    font-size: 0;
  }
  body[data-view=table] #table-view .table-navigation #back-club-button::before { content: '‹'; font-size: 27px; }
  body[data-view=table] #table-view .table-navigation .reference-table-menu-toggle { order: 5; width: 35px; }
  body[data-view=table] #table-view .table-navigation .reference-table-menu-toggle::before { content: '⋯'; font-size: 20px; }
  body[data-view=table] #table-view .table-navigation > .table-nav-title { order: 1; }
  body[data-view=table] #table-view .table-navigation > .table-nav-actions { display: contents; }
  body[data-view=table] #table-view .table-navigation .reference-table-notices {
    position: relative;
    display: grid;
    place-items: center;
    order: 2;
    flex: none;
    width: 35px;
    min-width: 0;
    min-height: 44px;
    padding: 0;
    background: transparent;
    font-size: 0;
  }
  body[data-view=table] #table-view .table-navigation .reference-table-notices::before {
    content: '';
    width: 19px;
    height: 19px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 12V9a6 6 0 0 0-12 0v3c0 2-1 3-2 5h16c-1-2-2-3-2-5zM10 20q2 2 4 0' stroke='black' fill='none' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  body[data-view=table] #table-view .table-navigation .reference-table-notices[aria-label^="Notificaciones ·"]::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 6px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ff595d;
  }
  body[data-view=table] #table-view .table-navigation > .table-squeeze-button {
    position: relative;
    isolation: isolate;
    order: 3;
    width: 58px;
    min-width: 0;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 11px;
  }
  body[data-view=table] #table-view .table-navigation > .table-squeeze-button::before {
    content: '';
    position: absolute;
    inset: 7px 3px;
    z-index: -1;
    border: 1px solid #365446;
    border-radius: 12px;
    background: #1b2822;
  }
  body[data-view=table] #table-view .table-navigation > .table-squeeze-button[aria-pressed=true]::before {
    border-color: #5cb88e;
    background: #173e2b;
  }
  body[data-view=table] #table-view .table-navigation > .table-voice-dock { order: 4; }
  body[data-view=table] #table-view .table-navigation .table-voice-button {
    width: 36px;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    color: #a4b0a7;
  }
  body[data-view=table] #table-view .table-navigation .table-voice-button::before {
    inset: 6px 2px;
    border: 1px solid #48544b;
    background: linear-gradient(#364238, #252e28 53%, #202922);
  }
  body[data-view=table] #table-view .table-navigation .table-voice-button[data-active=true] { color: #77e7a6; }
  body[data-view=table] #table-view .table-navigation .table-voice-button[data-active=true]::before {
    border-color: #58ba87;
    background: linear-gradient(#20513b, #163b2b 53%, #133323);
  }
  body[data-view=table] #table-view .table-navigation .table-voice-button svg { width: 20px; height: 20px; }
  body[data-view=table] .table-nav-actions :is(#history-button, #table-chat-button) { display: none; }
  .reference-menu[data-kind="table-options"] > .table-header-menu-item { display: flex; }
  body[data-view=table] .table-nav-title h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
  }
  body[data-view=table] #table-view .table-nav-title .table-private-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, clamp(45px, calc(100vw - 270px), 90px));
    min-height: 31px;
    border: 1px solid #6aa889;
    border-radius: 18px;
    background: #143b26;
    color: #ecf4ea;
    font-family: ui-monospace, monospace;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
  }
  body[data-view=table] #table-view .table-private-cards .squeeze-capsule-face { display:grid; padding-inline:clamp(1px,1vw,5px); }
  body[data-view=table] #table-view .table-private-cards .squeeze-capsule-face > span { display:block; }
}
@media (max-width: 700px) and (max-height: 599px) and (orientation: portrait) {
  body[data-view=table] #seats .seat.selected[data-position="0"] {
    left: max(15.5%, 43px);
    top: 73%;
  }
  body[data-view=table] #seats:has(.seat.selected) .seat[data-position="1"] { top: 51%; }
  body[data-view=table] #seats:has(.seat.selected) .seat[data-position="3"] { top: 10%; }
  body[data-view=table] #seats:has(.seat.selected) .seat[data-position="5"] { top: 45%; }
}
body[data-view=table] .seat.selected .seat-cards[data-squeeze-active] {
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
}
.seat-cards[data-squeeze-active]::before { content:''; position:absolute; inset:-8px -8px -6px -5px; }
.table-private-cards .squeeze-capsule-face { display:grid; justify-items:center; gap:1px; min-width:0; padding:0 5px; line-height:1; }
.squeeze-capsule-suit { font-size:14px; color:#7b9284; }
.squeeze-capsule-face.red-suit .squeeze-capsule-suit { color:#fa4053; }
.seat-cards > [data-squeeze-incoming], .seat-cards[data-squeeze-active] > .card { visibility:hidden!important; }
.seat-cards .squeeze-visual { position:absolute; inset:0; pointer-events:none; }
.squeeze-layer { position:absolute; display:block; width:var(--squeeze-width); height:var(--squeeze-height); }
body[data-view=table] #table-stage .seat.selected .seat-cards .squeeze-layer > .card,
.squeeze-shadow {
  position:absolute; inset:0; width:100%; height:100%; margin:0; border-radius:var(--squeeze-radius);
  transform:rotate(var(--squeeze-fan-angle,0deg)); transform-origin:center; translate:none;
}
body[data-view=table] #table-stage .seat.selected .seat-cards .squeeze-layer > .card { font-size:inherit; z-index:auto; }
.squeeze-layer > .card.filled .card-rank-main { opacity:var(--squeeze-indices,1); }
body[data-view=table] #table-stage .seat.selected .seat-cards .squeeze-joker {
  display:grid; grid-template-rows:1fr 1.45fr 1fr; align-items:center; justify-items:center;
  border:1px solid #f6f0de; background:linear-gradient(#fffff1,#e3d7b9); color:#305442;
  font-weight:800; box-shadow:0 2px 5px #0006;
}
.squeeze-joker-name { font-size:.37em; align-self:end; }
.squeeze-joker-mark { color:#82552b; font-size:.94em; line-height:1; }
.squeeze-joker-caption { font-size:.23em; align-self:start; }
body[data-view=table] #table-view .table-controls{flex:0 0 20px;min-height:20px;height:20px;padding:1px 10px;gap:8px;background:#11170f;border:0;font-size:10px}
body[data-view=table] .table-controls .status-pill{border:0;background:transparent;padding:0;font-size:10px}.table-controls .toolbar-spacer{flex:1}
body[data-view=table] .workspace{flex:1;min-height:0;display:flex;width:100%;margin:0;padding:0}
body[data-view=table] .table-column{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;position:relative}
body[data-view=table] #table-view .table-stage{flex:1;height:auto!important;min-height:0!important;max-height:none;border:0;border-radius:0;background:radial-gradient(ellipse at 40% 40%,#2b3027 0%,#141a13 65%,#10150e 100%)}
body[data-view=table] .table-scene{height:100%;width:100%;top:0;left:0}
body[data-view=table] .stage-status{font-size:10px;top:7px;left:9px;right:9px;min-height:16px;z-index:3}.stage-status #stage-mode{max-width:65%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-view=table] .felt{left:7%;width:86%;top:19%;height:65%;border:12px solid #141816;border-radius:48%;background:radial-gradient(ellipse at 50% 38%,#218534,#105925 76%,#0b411e);box-shadow:inset 0 1px 7px #020d06,0 7px 0 #080b08,0 16px 19px #000b}
.felt-inner{border-color:#68af6a35}.table-watermark{color:#c9e4aa20;font-weight:750}
body[data-view=table] .board{top:49%;gap:7px}.board-hint,#board-hint{font-size:10px!important;max-width:85%;margin:5px 0}
body[data-view=table] .pot-label{font-size:12px;padding:4px 9px;border:0;background:#092a0ccc;border-radius:20px;color:#eedb9d}
body[data-view=table] .board-cards>.card{width:49px;height:68px;font-size:30px;border-radius:5px}.board-cards{gap:4px!important}
body[data-view=table] .seat{width:94px;min-height:90px}.seat .seat-name{font-size:11px!important;max-width:94px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:linear-gradient(#222a23,#101511);border:1px solid #4a5149;border-radius:4px 4px 0 0;padding:4px 5px 2px}.seat .seat-chips{font-size:19px!important;color:#51d3ed;line-height:1.1;max-width:94px;background:linear-gradient(#141a15,#101410);border:1px solid #414a40;border-top:0;border-radius:0 0 4px 4px;padding:1px 5px 5px;font-variant-numeric:tabular-nums}
body[data-view=table] .seat-avatar{width:52px;height:52px;border:2px solid #74806e;background:radial-gradient(circle at 30% 28%,#52735d,#1d3027);color:#c1cec4;font-size:17px;box-shadow:0 2px 6px #0007}
body[data-view=table] .seat.selected .seat-avatar{width:64px;height:64px}.seat.current-turn .seat-avatar{border-color:#f4de58;box-shadow:0 0 11px #e8d35c99}.seat-clock{height:4px!important;background:#4a4d3b}.seat-clock>span{background:linear-gradient(90deg,#eed654,#fff6ad)}
body[data-view=table] .seat-cards{top:-28px;gap:0}.seat-cards .card{width:27px;height:38px;font-size:17px;border-radius:3px;border-width:1px}
body[data-view=table] .seat.selected .seat-cards{top:-47px}.seat.selected .seat-cards .card{width:50px;height:70px;font-size:29px;border-radius:4px}
body[data-view=table] .seat-bet{font-size:11px;color:#eee}.seat-action{font-size:10px!important;padding:3px 6px;background:#0d120ed9;border:1px solid #454b3d;color:#e0ce8d;border-radius:12px;max-width:110px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.seat-award{font-size:15px!important;letter-spacing:.3px;background:linear-gradient(#8f6e2c,#382611);color:#ffe58a;box-shadow:0 0 14px #d3b34b77;border:1px solid #e0c16d;padding:5px 8px;border-radius:5px}
body[data-view=table] .sit-button{width:57px;height:57px;min-height:57px;font-size:10px;line-height:1.2;border:2px solid #bdc3bd;background:#080c08a8;color:#c9d0c9}.sit-button:before{font-size:13px}
body[data-view=table] .table-caption{display:none}.table-game-info{display:none!important}
body[data-view=table] #table-view .game-bottom-bar{position:relative;flex:0 0 auto;max-width:none;width:100%;right:auto;bottom:auto;padding:2px 7px max(6px,env(safe-area-inset-bottom));background:#11160ff2;z-index:7}
body[data-view=table] .betting-panel{position:relative;padding:4px;background:transparent;border:0;box-shadow:none;border-radius:0}
.betting-panel .betting-heading{position:absolute;bottom:100%;right:6px;left:auto;background:#0b120ce0;padding:3px 7px;border-radius:6px;font-size:11px;min-height:19px;gap:8px}.betting-heading #my-chips{display:none}.betting-heading .turn-clock-label{font-size:12px}
body[data-view=table] .bet-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(40px,1fr)) 56px minmax(50px,1.6fr);gap:4px;margin:0 0 4px;align-items:center}
body[data-view=table] .bet-shortcuts button{min-height:40px;font-size:11px;line-height:1;padding:4px;border-radius:5px;border:1px solid #56616a;background:linear-gradient(#56626b,#303c45);box-shadow:inset 0 1px 2px #ffffff35;color:#f5f6f6;min-width:0}
body[data-view=table] .bet-shortcuts #bet-amount{min-height:38px;height:38px;min-width:0;width:100%;font-size:14px;background:#080a08;border:1px solid #e34e53;text-align:center;color:#fff;padding:2px;border-radius:3px}
body[data-view=table] .bet-shortcuts #bet-slider{width:100%;min-width:0;min-height:40px;accent-color:#ca344e;padding:0;margin:0}
body[data-view=table] .bet-shortcuts>*{order:0;grid-column:auto;grid-row:auto}body[data-view=table] .bet-shortcuts button,body[data-view=table] .bet-shortcuts #bet-slider{min-height:44px}body[data-view=table] .board>p{display:none}body[data-view=table] .seat[data-position="2"] .seat-bet,body[data-view=table] .seat[data-position="3"] .seat-bet,body[data-view=table] .seat[data-position="4"] .seat-bet{top:calc(100% + 32px)}
body[data-view=table] .betting-actions{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:5px}
body[data-view=table] .betting-actions #fold-button,body[data-view=table] .betting-actions #check-call-button,body[data-view=table] .betting-actions #raise-button{min-height:50px;max-height:60px;font-size:15px;line-height:1.2;font-weight:750;white-space:normal;padding:5px 7px;color:#fff;background:linear-gradient(#e64c50 0%,#d9232d 18%,#b91520 78%,#95121a);border:2px solid #fb7375;border-radius:7px;box-shadow:inset 0 1px 3px #ffc9c9aa,0 3px 0 #5e1b1e}
body[data-view=table] .betting-actions button:disabled{opacity:.45}.bet-input-label,#allin-button,#betting-detail{display:none!important}
.reference-table-strip{min-height:42px;padding:2px 6px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#bbc4ba;background:#11170ff0;border-radius:8px}.reference-table-strip>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reference-preaction{display:flex;align-items:center;gap:6px;min-height:42px;white-space:nowrap;padding:4px 8px;border-radius:20px;background:#0a100bea;font-size:11px;color:#c1c8bf}.reference-preaction input{width:18px;height:18px;accent-color:#d3b756;margin:0}
.table-idle-panel{padding:8px 11px!important;border:1px solid #46503e;background:#11190ff0;box-shadow:none;border-radius:8px}.table-idle-panel>strong{font-size:13px!important}.table-idle-panel>p{font-size:11px!important;margin:5px 0!important;line-height:1.35}.table-idle-panel>button{min-height:42px!important;font-size:14px!important}
@media(max-width:380px){body[data-view=lobby] .app{padding-inline:12px}.club-summary h1{font-size:23px}.club-table-strip{gap:7px;padding-right:10px;grid-template-columns:17px 45px minmax(0,1fr) auto}.occupancy-ring{width:44px;height:44px;font-size:18px}.club-table-limits{font-size:16px}.club-table-buyin strong{font-size:15px}.club-table-summary .table-name{font-size:12px}.reference-wallets .wallet-chip strong{font-size:17px}.reference-wallets .wallet-chip{gap:5px;padding-inline:8px}body[data-view=table] .table-navigation{gap:2px}body[data-view=table] .table-navigation button{min-width:38px}.table-nav-title h1{font-size:12px!important}}
@media(min-width:701px) and (orientation:landscape){body[data-view=table] .felt{left:8%;width:84%;top:16%;height:65%;border-width:18px}body[data-view=table] #table-view .game-bottom-bar{position:absolute;right:8px;bottom:8px;width:min(440px,42%);padding:0;background:transparent}body[data-view=table] .seat[data-position="0"]{left:45%;top:84%}body[data-view=table] .seat[data-position="1"]{left:87%;top:50%}body[data-view=table] .seat[data-position="2"]{left:84%;top:25%}body[data-view=table] .seat[data-position="3"]{left:50%;top:16%}body[data-view=table] .seat[data-position="4"]{left:16%;top:25%}body[data-view=table] .seat[data-position="5"]{left:13%;top:65%}body[data-view=table] .board{top:43%}.reference-table-strip{background:#0b100bd9}.table-idle-panel{max-height:125px;overflow:auto}}
@media(min-width:1100px) and (min-height:650px){body[data-view=table] .board-cards>.card{width:77px;height:107px;font-size:42px}body[data-view=table] .seat.selected .seat-cards .card{width:66px;height:92px;font-size:35px}body[data-view=table] .seat.selected .seat-cards{top:-63px}body[data-view=table] .seat-avatar{width:69px;height:69px}body[data-view=table] .seat.selected .seat-avatar{width:80px;height:80px}body[data-view=table] .seat{width:115px;min-height:106px}.seat .seat-name,.seat .seat-chips{max-width:115px}.seat .seat-chips{font-size:22px!important}}
@media(orientation:landscape) and (min-width:700px) and (max-height:530px){body[data-view=table] .table-controls{display:none}body[data-view=table] #table-view .game-bottom-bar{position:absolute;right:7px;bottom:7px;width:max(306px,42%);padding:0;background:transparent}body[data-view=table] .table-stage .seat{width:80px;min-height:0}body[data-view=table] .seat .seat-name,body[data-view=table] .seat .seat-chips{max-width:80px;min-height:18px;font-size:10px!important;padding:2px 4px}body[data-view=table] .seat .seat-chips{font-size:16px!important}body[data-view=table] .seat-avatar{width:34px;height:34px;font-size:12px;margin-bottom:-5px}body[data-view=table] .seat.selected .seat-avatar{width:42px;height:42px}body[data-view=table] .seat .seat-cards{top:-17px}body[data-view=table] .seat .seat-cards .card{width:24px;height:34px;font-size:16px}body[data-view=table] .seat.selected .seat-cards{top:-34px}body[data-view=table] .seat.selected .seat-cards .card{width:40px;height:56px;font-size:24px}body[data-view=table] .seat[data-position="0"]{left:45%;top:76%}body[data-view=table] .seat[data-position="1"]{left:87%;top:44%}body[data-view=table] .seat[data-position="2"]{left:84%;top:19%}body[data-view=table] .seat[data-position="3"]{left:50%;top:18%}body[data-view=table] .seat[data-position="4"]{left:16%;top:19%}body[data-view=table] .seat[data-position="5"]{left:13%;top:67%}body[data-view=table] .seat-action{font-size:9px!important;padding:2px 5px}body[data-view=table] .seat[data-position="2"] .seat-bet,body[data-view=table] .seat[data-position="3"] .seat-bet,body[data-view=table] .seat[data-position="4"] .seat-bet{top:39px;left:125%}body[data-view=table] .seat[data-position="2"] .seat-bet{left:-25%}body[data-view=table] .board{top:42%;gap:4px}body[data-view=table] .board-cards{min-height:50px}body[data-view=table] .board-cards>.card{width:36px;height:50px;font-size:24px}body[data-view=table] .board .pot-label{font-size:10px;padding:3px 7px}body[data-view=table] .table-idle-panel{max-height:112px;font-size:11px}.reference-table-strip{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important}.reference-menu,.reference-dock{animation:none!important}}
@media(orientation:landscape) and (min-width:700px) and (max-height:530px){body[data-view=table] .table-controls{display:none!important}body[data-view=table] .seat[data-position="1"]{left:92%}body[data-view=table] .seat[data-position="5"]{left:8%}body[data-view=table] .seat[data-position="3"] .seat-action,body[data-view=table] .seat[data-position="4"] .seat-action{left:130%;top:65px}body[data-view=table] .seat[data-position="2"] .seat-action{left:-30%;top:65px}}
/* The replay keeps the scene and its transport in the same viewport. */
.hand-history-dialog{width:min(1160px,98vw);max-width:98vw;height:min(900px,96dvh);max-height:96dvh;padding:10px;overflow:hidden;background:#111;color:#eee;border-color:#454545;display:none;grid-template-rows:auto auto auto minmax(0,1fr);gap:4px}
.hand-history-dialog[open]{display:grid}.hand-history-dialog .dialog-heading{display:flex;gap:8px;align-items:center;margin:0;min-height:44px}.hand-history-dialog h2{font-size:15px;line-height:1.2;flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0}.hand-history-dialog button{min-height:44px}.hand-history-archive-info{font-size:11px;color:#aab2a8;max-height:110px;overflow:auto}.hand-history-archive-info>summary{min-height:25px;cursor:pointer}.hand-history-coverage{margin:3px 0;font-size:11px;line-height:1.35}.hand-history-status{font-size:11px;line-height:1.25;min-height:14px;margin:0;color:#a4aca2}
.hand-history-layout{min-height:0;grid-template-columns:230px minmax(0,1fr);gap:10px;overflow:hidden}.hand-history-index{overflow:auto;min-height:0}.hand-history-row{background:#222;border-color:#404040;padding:9px;gap:4px}.hand-history-row>span{font-size:10px}.hand-history-pager{position:sticky;bottom:0;background:#111;padding:4px 0}.hand-history-detail{min-height:0;position:relative;display:flex;flex-direction:column;gap:5px;overflow:hidden}.hand-history-summary h3{font-size:13px;margin:0;min-height:18px}.hand-replay-stage{flex:1;min-height:230px;height:auto;margin:0;overflow:hidden;background:radial-gradient(ellipse,#424535,#25271f 70%);border-radius:7px}
.hand-replay-felt{position:absolute;inset:13% 7% 11%;background:radial-gradient(ellipse,#1d8733,#116024 72%);border-radius:48%;border:13px solid #1b1d1a;box-shadow:0 5px 10px #000b,inset 0 0 7px #0008}.hand-replay-felt:after{content:'';position:absolute;inset:7%;border:1px solid #ffffff15;border-radius:48%}.hand-replay-watermark{position:absolute;left:50%;top:60%;translate:-50% -50%;font-size:24px;font-weight:800;color:#ffffff1c;white-space:nowrap}.hand-replay-board{top:46%;gap:4px}.hand-replay-pot{top:34%;font-size:11px;padding:4px 10px;background:#06270bd9}
.hand-replay-card.card{width:44px;height:62px;font-size:25px;border-radius:4px}.hand-replay-card.card .card-rank-main{font-size:inherit}.hand-replay-card.card .card-suit{font-size:25px}.hand-replay-seat{width:87px;font-size:11px;gap:0;padding:0;border:0;background:none;z-index:2}.hand-replay-avatar{display:flex;width:48px;height:48px;align-items:center;justify-content:center;border:3px solid #737d77;border-radius:50%;background:radial-gradient(circle,#628aa3,#183445);font-size:18px;color:#dfebee;margin-bottom:-8px}.hand-replay-seat>strong,.hand-replay-chips{position:relative;width:100%;padding:3px 4px;background:linear-gradient(#30372f,#0c100b);border:1px solid #59634f;border-radius:3px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hand-replay-chips{font-size:16px;font-weight:750;line-height:1.1;color:#6cd4e9!important}.hand-replay-seat>small{font-size:9px;white-space:nowrap;text-shadow:0 1px 2px #000}.hand-replay-cards{position:absolute;bottom:calc(100% - 28px);left:50%;translate:-50% 0;display:flex;gap:0;z-index:1}.hand-replay-seat .hand-replay-card.card{width:28px;height:39px;font-size:16px;margin-left:-7px;transform:rotate(9deg);flex-shrink:0}.hand-replay-seat .hand-replay-card:first-child{margin-left:0;transform:rotate(-9deg)}.hand-replay-seat.own .hand-replay-card.card{width:44px;height:62px;font-size:25px;margin-left:-12px}.hand-replay-seat.own .hand-replay-card:first-child{margin-left:0}.hand-replay-seat.own .hand-replay-avatar{width:55px;height:55px}.hand-replay-seat.own .hand-replay-cards{bottom:calc(100% - 32px)}.hand-replay-seat.winner{box-shadow:none}.hand-replay-seat.winner>strong{border-color:#ffe08b;color:#ffe08b;box-shadow:0 0 10px #c5a25077}.hand-replay-seat.folded{opacity:.5}
.hand-replay-seat[data-position="0"]{left:50%;top:84%}.hand-replay-seat[data-position="1"]{left:85%;top:65%}.hand-replay-seat[data-position="2"]{left:85%;top:28%}.hand-replay-seat[data-position="3"]{left:50%;top:17%}.hand-replay-seat[data-position="4"]{left:15%;top:28%}.hand-replay-seat[data-position="5"]{left:15%;top:65%}
.hand-replay-transport{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:4px;flex-shrink:0}.hand-replay-transport button{font-size:12px;padding:5px}.hand-replay-transport input{grid-column:1/-1;width:100%;min-height:25px;margin:0;accent-color:#d1b052}.hand-replay-caption{font-size:11px;line-height:1.25;margin:0;min-height:26px;flex-shrink:0;color:#d7c985}.hand-history-metadata{font-size:11px;flex:0 0 auto;max-height:35%;overflow:auto;border-top:1px solid #343c30;background:#111;position:relative}.hand-history-metadata>summary{min-height:40px;display:flex;align-items:center;cursor:pointer;color:#bec9ba}.hand-history-metadata>summary:before{content:'⌃';margin-right:8px}.hand-history-metadata[open]>summary:before{content:'⌄'}.hand-history-metadata h3{font-size:12px;margin:10px 0}.hand-history-metadata p{font-size:11px;line-height:1.35}.hand-history-result-row{font-size:11px;gap:6px;padding:6px 0}.hand-history-actions{font-size:11px;line-height:1.5;max-height:none}
@media all{.hand-history-dialog{padding:6px;border-radius:8px}.hand-history-layout{display:block}.hand-history-index,.hand-history-detail{height:100%}.hand-history-index>div:first-child{display:block;overflow:visible;padding:0}.hand-history-row{min-width:0;margin:0 0 5px}.hand-history-dialog[data-selection=list] .hand-history-detail,.hand-history-dialog[data-selection=hand] .hand-history-index{display:none}.hand-replay-seat{width:72px;font-size:10px}.hand-replay-avatar{width:43px;height:43px}.hand-replay-seat.own .hand-replay-avatar{width:51px;height:51px}.hand-replay-chips{font-size:15px}.hand-replay-card.card{width:43px;height:60px;font-size:24px}.hand-replay-seat[data-position="1"],.hand-replay-seat[data-position="2"]{left:85%}.hand-replay-seat[data-position="4"],.hand-replay-seat[data-position="5"]{left:15%}}
@media(orientation:landscape) and (max-height:500px){.hand-history-dialog{height:98dvh;max-height:98dvh;grid-template-rows:44px minmax(0,1fr);gap:0}.hand-history-dialog>.hand-history-status,.hand-history-dialog>.hand-history-archive-info{display:none}.hand-replay-stage{min-height:130px}.hand-history-summary{display:none}.hand-history-metadata>summary{min-height:30px}.hand-replay-transport{grid-template-columns:repeat(3,1fr) 1.5fr}.hand-replay-transport input{grid-column:auto;min-width:0}.hand-replay-caption{min-height:14px;font-size:10px}.hand-replay-seat{width:65px;font-size:9px}.hand-replay-avatar{height:30px;width:30px;font-size:11px}.hand-replay-chips{font-size:12px}.hand-replay-seat.own .hand-replay-avatar{height:34px;width:34px}.hand-replay-seat.own .hand-replay-card.card{width:31px;height:44px;font-size:18px}.hand-replay-seat .hand-replay-card.card{width:20px;height:28px;font-size:12px}.hand-replay-card.card{width:30px;height:42px;font-size:19px}.hand-replay-seat[data-position="0"]{top:82%}.hand-replay-seat[data-position="3"]{top:18%}}
/* Reference47: keep the table visible behind a compact options curtain. */
.reference-menu[data-kind="table-options"]{position:fixed;inset:auto 0 0;margin:0 auto;box-sizing:border-box;width:100%;max-width:100%;height:calc(152px + env(safe-area-inset-bottom));max-height:66dvh;padding:4px 6px calc(6px + env(safe-area-inset-bottom));overflow:auto;border:0;border-radius:12px 12px 0 0;background:#191b1a;animation:reference47-sheet-in 160ms ease-out}
.reference-menu[data-kind="table-options"]::backdrop{background:rgb(0 0 0/.12);backdrop-filter:none}
.reference-table-menu-quick,.reference-table-menu-preferences,.reference-table-menu-seats{display:flex;align-items:center;width:100%;min-width:0}
.reference-table-menu-quick{min-height:44px;touch-action:none}
.reference-table-menu-preferences{min-height:44px;margin-top:3px;overflow-x:auto;scrollbar-width:none;touch-action:pan-x}
.reference-table-menu-preferences::-webkit-scrollbar{display:none}
.reference-table-menu-seats{min-height:46px;margin-top:3px;border-radius:8px;background:#252725}
.reference-menu[data-kind="table-options"] :is(.reference-table-menu-quick,.reference-table-menu-preferences,.reference-table-menu-seats)>button:not([hidden]){display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;margin:0;padding:2px 4px;background:transparent;border:0;border-radius:6px;color:#e7efe8;font-size:11px;line-height:1.14;text-align:center;white-space:normal}
.reference-menu[data-kind="table-options"] :is(.reference-table-menu-quick,.reference-table-menu-preferences,.reference-table-menu-seats)>button:disabled{opacity:.42}
.reference-table-menu-quick>button,.reference-table-menu-preferences>#table-menu-safety{flex:0 0 44px;width:44px}
.reference-table-menu-quick .reference-icon svg,.reference-table-menu-preferences>#table-menu-safety svg{width:21px;height:21px;stroke-width:1.6;color:#cbd9cf}
.reference-table-menu-draft{flex:1;min-width:0;padding-right:4px;text-align:right;color:#ffdc79;font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.reference-table-menu-preferences.has-spacer::after,.reference-table-menu-seats.has-spacer::after{content:'';flex:1}
.reference-menu[data-kind="table-options"] .reference-table-menu-preferences>button:not(#table-menu-safety):not([hidden]){flex:1;gap:5px;justify-content:flex-start;margin-inline:2px;padding:3px 6px 3px 9px;border-radius:8px;background:#252725;text-align:left;font-size:12px}
.reference-menu[data-kind="table-options"] .reference-table-menu-preferences.is-scrollable>button:not(#table-menu-safety):not([hidden]){flex:0 0 112px}
.reference-menu[data-kind="table-options"] .reference-table-menu-seats>button:not([hidden]){flex:1;min-height:46px;flex-direction:column;justify-content:flex-start;padding:2px 2px 1px;gap:1px;font-size:10px}
.reference-table-menu-preferences .table-menu-icon-label>svg,.reference-table-menu-seats .table-menu-icon-label>svg{flex:0 0 auto;width:17px;height:17px;fill:none;stroke:#cbd9cf;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.reference-table-menu-seats .table-menu-icon-label>svg{width:16px;height:16px}
.table-menu-icon-text{min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.reference-seat-choices{display:grid;gap:6px}
.reference-seat-choices .reference-icon{min-height:48px;padding:6px 10px;justify-content:flex-start}
.table-stand-confirm h2{margin:0;font-size:18px}
.table-stand-confirm p{font-size:14px;line-height:1.4;margin:9px 0 13px}
.table-stand-actions{display:flex;justify-content:flex-end;gap:8px}
.table-stand-actions>button{min-height:44px;padding-inline:12px}
.reference-table-strip>.reference-idle-seat,.reference-card-choice-reopen{min-height:42px;padding:4px 9px;font-size:12px;white-space:nowrap}
@keyframes reference47-sheet-in{from{transform:translateY(20px);opacity:.5}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.reference-menu[data-kind="table-options"]{animation:none}}

/* Review48: primary table choices stay in the first viewport. */
body[data-view=lobby] .club-profile{padding:12px 0 8px;gap:8px 12px}
body[data-view=lobby] .club-summary h1{margin:3px 0 5px}
body[data-view=lobby] .reference-announcement{margin:4px 0 8px;padding:8px 12px}
body[data-view=lobby] .reference-announcement>.reference-icon{position:relative;left:auto;bottom:auto;width:100%;min-height:44px;height:auto;justify-content:space-between;border:0;background:transparent;border-radius:6px;font-size:13px}
body[data-view=lobby] .reference-announcement.collapsed{min-height:44px;padding:0 10px}
body[data-view=lobby] .reference-announcement.collapsed>strong{display:none}
body[data-view=lobby] .union-entry{min-height:44px;padding:4px 0;margin:0 0 6px}
body[data-view=lobby] .club-tabs{margin-bottom:4px}
body[data-view=lobby] .club-variant-description{font-size:12px}
body[data-view=lobby] #union-game-access{min-height:44px;margin:4px 0;padding:5px 10px}
body[data-view=lobby] .club-toolbar{padding:6px 0;gap:8px}
body[data-view=lobby] .create-table-button{min-height:48px;font-size:19px;margin:4px 0 10px}
body[data-view=table] .table-nav-title h1{font-size:16px!important;line-height:1.25}
body[data-view=table] .table-navigation{flex-basis:48px;min-height:48px;height:48px}
body[data-view=table] .table-navigation button{min-height:44px;min-width:44px}

@media(max-width:540px){body[data-view=lobby] .app{padding-inline:12px}body[data-view=table] .table-nav-title h1{font-size:14px!important}}

/* Navigation52: one club entry and a single compact secondary menu. */
#reference-back-clubs{font-size:34px;font-weight:300}.reference-dock{gap:2px}.reference-dock button{min-width:45px}.reference-dock small{white-space:nowrap}.union-game-access{padding:7px 0!important;margin:0 0 8px!important;border:0!important;font-size:12px!important;color:#9daa9e!important}.union-game-access span{width:100%}

.reference-floating.reference-icon,.reference-floating.reference-icon:hover,.reference-floating.reference-icon:focus-visible{background:linear-gradient(145deg,var(--club-tools-green),var(--club-tools-green-deep));color:white;border:1px solid #40e5b4}.reference-dock{left:auto;right:20px;translate:none}
.client-app-settings{box-sizing:border-box;width:min(430px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:18px;border:1px solid #415448;border-radius:16px;background:#141b17;color:#eef4ef}.client-app-settings::backdrop{background:#0009}.client-app-settings .dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.client-app-settings h2{font-size:21px;margin:0}.client-app-settings-status{font-size:12px;line-height:1.5;color:#b3c5b8}.client-app-card{padding:16px;border:1px solid #3c5845;border-radius:12px;background:#1c2b21}.client-app-card h3{font-size:17px;margin:0 0 8px}.client-app-card p{font-size:14px;color:#b7d4c0}.client-app-card a{display:flex;justify-content:center;align-items:center;min-height:48px;border-radius:9px;background:#0aa46d;color:white;text-decoration:none;font-weight:650;padding:9px 14px;box-sizing:border-box}.client-app-settings>button{margin-top:12px;min-height:44px}.client-app-settings button{min-height:44px}
.client-app-settings:has(#client-app-settings-download:not([hidden])) #client-app-settings-retry{display:none}
#seat-dialog{box-sizing:border-box;width:min(430px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:16px}#seat-dialog .dialog-heading{margin:0 0 12px;align-items:flex-start}#seat-dialog h2{font-size:18px;line-height:1.3;margin:4px 0 0}#seat-dialog .eyebrow{font-size:10px}#seat-dialog .buyin-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#seat-dialog .buyin-form>*{grid-column:1/-1}#seat-dialog #seat-room-name{margin:0;font-size:13px}#seat-dialog .buyin-limits{margin:3px 0;font-size:11px}#seat-dialog #buyin-wallet{margin:3px 0;font-size:12px}#seat-dialog .creation-note{margin:3px 0;padding:8px;font-size:11px;line-height:1.45}#seat-dialog #seat-error{margin:0}#seat-dialog #seat-error:empty{display:none}#seat-dialog .buyin-shortcuts button{min-height:44px}#seat-dialog .buyin-cancel{grid-column:1;min-height:46px}#seat-dialog #seat-submit{grid-column:2;min-height:46px}#seat-dialog .icon-button{min-width:40px;min-height:40px}

/* Member lobby, using the same table preview and seating as the union. */
.club-public-id:not([hidden]){display:inline-flex;align-items:center;gap:7px;min-height:28px;padding:0;border:0;border-radius:4px;background:transparent;color:#b0b5b3;font-size:13px;font-variant-numeric:tabular-nums}
.club-public-id:hover,.club-public-id:focus-visible{color:#f3f3f3}
.club-public-id-chip{padding:0 6px;border:1px solid #43514d;border-radius:12px;background:#232c2b;color:#bcc8c5;font-size:10px;letter-spacing:.06em}
.club-filter-toggle{display:none}
body[data-view=lobby][data-club-home=club]{background:#0c0c0d}
body[data-view=lobby][data-club-home=club] .club-profile{padding-block:12px 6px;margin-bottom:0;gap:8px 12px}
body[data-view=lobby][data-club-home=club] .club-avatar{border-radius:12px}
body[data-view=lobby][data-club-home=club] .club-summary>.eyebrow{display:none}
body[data-view=lobby][data-club-home=club] .club-summary h1{font-size:23px;line-height:1.15;margin:0;overflow-wrap:anywhere}
body[data-view=lobby][data-club-home=club] .club-stats{margin-top:1px;gap:4px 9px}
body[data-view=lobby][data-club-home=club] .reference-wallets{gap:8px}
body[data-view=lobby][data-club-home=club] .reference-wallets .wallet-chip{min-height:33px;gap:5px;padding:3px 8px}
body[data-view=lobby][data-club-home=club] .reference-wallet-info{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:2px 4px}
body[data-view=lobby][data-club-home=club] .reference-wallets .wallet-chip strong{font-size:15px}
body[data-view=lobby][data-club-home=club] .reference-announcement{padding:9px 46px 10px 11px;min-height:44px;margin:4px 0 8px;background:#161618}
body[data-view=lobby][data-club-home=club] .reference-announcement>strong{display:block;line-height:24px}
body[data-view=lobby][data-club-home=club] .reference-club-notice{color:#e2e3e4;white-space:pre-wrap;overflow-wrap:anywhere;margin:2px 0 0}
body[data-view=lobby][data-club-home=club] .reference-announcement>.reference-icon{position:absolute;inset:0 0 auto auto;width:44px;height:44px;min-width:44px;justify-content:center;font-size:17px}
body[data-view=lobby][data-club-home=club] #variant-announcement,
body[data-view=lobby][data-club-home=club] #variant-description{display:none}
body[data-view=lobby][data-club-home=club] .club-tabs{margin:0;min-height:40px;gap:16px}
body[data-view=lobby][data-club-home=club] .club-variant-tabs button{font-size:14px;min-height:44px;padding:8px 5px}
body[data-view=lobby][data-club-home=club] .club-variant-tabs button[aria-selected=true]{background:none;border-bottom-color:#1bd18b;color:#fff}
@media(max-width:600px){
  body[data-view=lobby] .club-tabs.club-variant-tabs{column-gap:8px}
  body[data-view=lobby] .club-variant-tabs>button{min-height:44px;padding:8px 5px;font-size:14px;white-space:nowrap}
}
body[data-view=lobby][data-club-home=club] .club-toolbar{display:flex;gap:2px 8px;padding:5px 0 8px;margin:0}
body[data-view=lobby][data-club-home=club] .club-filter{flex:0 1 auto;gap:4px;min-height:44px;white-space:normal}
body[data-view=lobby][data-club-home=club] .club-filter input{flex-shrink:0;width:15px;height:15px}
body[data-view=lobby][data-club-home=club] .club-filter-toggle{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 8px;margin-inline-start:auto;border-color:#434447;background:#27282a;color:#ededed;font-size:11px}
body[data-view=lobby][data-club-home=club] .club-filter-toggle.is-filtered{border-color:#17a875;color:#80e0b5}
body[data-view=lobby][data-club-home=club] .club-filter-toggle[aria-expanded=true] span{transform:rotate(180deg)}
body[data-view=lobby][data-club-home=club] #filter-name:not(.is-expanded){display:none}
body[data-view=lobby][data-club-home=club] #filter-name.is-expanded{flex:1 0 100%}
body[data-view=lobby][data-club-home=club] .club-table-card{margin-bottom:9px}
body[data-view=lobby][data-club-home=club] .club-table-strip{min-height:73px;grid-template-columns:17px 45px minmax(0,1fr) minmax(66px,auto);gap:7px;padding:0 9px 0 0}
body[data-view=lobby][data-club-home=club] .club-table-type{min-height:0;font-size:10px}
body[data-view=lobby][data-club-home=club] .occupancy-ring{position:relative;isolation:isolate;width:42px;height:42px;border:0;font-size:15px;background:conic-gradient(#13a36b var(--occupancy-fill,0%),#494b4e 0)}
body[data-view=lobby][data-club-home=club] .occupancy-ring::before{content:'';position:absolute;inset:4px;border-radius:50%;z-index:-1;background:#232323}
body[data-view=lobby][data-club-home=club] .club-table-summary{gap:2px;padding:7px 0}
body[data-view=lobby][data-club-home=club] .club-table-summary .table-name{margin:0;font-size:13px;overflow-wrap:anywhere}
body[data-view=lobby][data-club-home=club] .club-table-limits{font-size:18px;line-height:1.15}
body[data-view=lobby][data-club-home=club] .table-status{font-size:10px}
body[data-view=lobby][data-club-home=club] .club-table-buyin{padding:6px 0}
body[data-view=lobby][data-club-home=club] .club-table-buyin strong{font-size:14px;white-space:normal;overflow-wrap:anywhere}
:is(#club-table-list,#club-other-table-list) .club-table-summary{grid-column:3/-1}
:is(#club-table-list,#club-other-table-list) .club-table-heading{display:flex;align-items:baseline;justify-content:space-between;gap:6px;min-width:0}
:is(#club-table-list,#club-other-table-list) .club-table-heading .table-name{min-width:0;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:is(#club-table-list,#club-other-table-list) .club-table-heading .club-table-buyin{flex:none;min-width:0;padding:0}
:is(#club-table-list,#club-other-table-list) .club-table-heading .club-table-buyin strong{font-size:14px;white-space:nowrap;overflow-wrap:normal}
:is(#club-table-list,#club-other-table-list) [data-wide-entry] .club-table-strip{row-gap:2px;container-type:inline-size}
:is(#club-table-list,#club-other-table-list) [data-wide-entry] .club-table-summary{display:contents}
:is(#club-table-list,#club-other-table-list) [data-wide-entry] .club-table-type{grid-area:1/1/4/2}
:is(#club-table-list,#club-other-table-list) [data-wide-entry] .occupancy-ring{grid-area:2/2/4/3}
:is(#club-table-list,#club-other-table-list) [data-wide-entry] .club-table-heading{grid-area:1/2/2/-1;margin-top:7px}
:is(#club-table-list,#club-other-table-list) [data-wide-entry] .club-table-heading .club-table-buyin strong{font-size:clamp(8px,3.4cqi,14px)}
:is(#club-table-list,#club-other-table-list) [data-wide-entry] .club-table-limits{grid-area:2/3/3/-1}
:is(#club-table-list,#club-other-table-list) [data-wide-entry] .table-status{grid-area:3/3/4/-1;margin-bottom:7px}
body[data-view=lobby][data-club-home=club] .club-table-details{padding:7px 8px 2px;gap:6px}
body[data-view=lobby][data-club-home=club] .public-table-preview{height:clamp(260px,73vw,330px)}
body[data-view=lobby][data-club-home=club] .public-preview-center{top:36%;gap:5px}
body[data-view=lobby][data-club-home=club] .public-preview-board>.card{width:35px;height:49px}
body[data-view=lobby][data-club-home=club] .public-preview-seat{width:68px}
body[data-view=lobby][data-club-home=club] .public-preview-seat[data-position="0"]{top:calc(100% - 54px)}
body[data-view=lobby][data-club-home=club] .public-preview-seat[data-position="3"]{top:39px}
body[data-view=lobby][data-club-home=club] .public-preview-seat[data-position="1"],
body[data-view=lobby][data-club-home=club] .public-preview-seat[data-position="5"]{top:67%}
body[data-view=lobby][data-club-home=club] .public-preview-backs{top:-29px}
body[data-view=lobby][data-club-home=club] .public-preview-backs>.card{width:19px;height:27px}
body[data-view=lobby][data-club-home=club] .public-preview-seat.has-seat-furniture-r54[data-furniture-occupied=true]>.public-preview-plate{top:16px;height:33px}
body[data-view=lobby][data-club-home=club] .public-preview-seat.has-seat-furniture-r54[data-furniture-occupied=true]>.public-preview-avatar{top:-13px}
body[data-view=lobby][data-club-home=club] .public-preview-seat.has-seat-furniture-r54[data-furniture-occupied=false]>.public-preview-sit{width:58px;height:49px;min-height:49px;padding:28px 0 0}
body[data-view=lobby][data-club-home=club] .public-preview-seat.has-seat-furniture-r54[data-furniture-occupied=false]>.public-preview-sit::after{top:10px}
body[data-view=lobby][data-club-home=club] .preview-toolbar{justify-content:center}
body[data-view=lobby][data-club-home=club] .preview-toolbar .open-table-button{flex:0 1 180px;border-color:#12a170!important;background:#098354!important;color:#fff!important;font-size:14px}
body[data-view=lobby][data-club-home=club] .preview-label{order:2;flex-basis:100%;text-align:center}
body[data-view=lobby][data-club-home=club] .preview-load-status:empty{display:none}

/* Portrait layout measured against the recorded table at 27s, 68s, 77s and 107s. */
.reference-bet-tools,
.reference-bet-popover {
  display: none;
}

@media (max-width: 700px) and (orientation: portrait) {
  body[data-view="table"]:not([data-card-choice="true"]) #table-view .game-bottom-bar:has(.betting-panel:not([hidden]), .reference-table-strip:not([hidden])):not(:has(.table-idle-panel:not([hidden]))) {
    position: absolute;
    inset: auto 0 0;
    padding: 0 clamp(10px, 4.3vw, 20px) max(env(safe-area-inset-bottom), clamp(18px, 4.1dvh, 42px));
    background: transparent;
  }

  body[data-view="table"] #table-view .game-bottom-bar .betting-panel:has(.reference-bet-tools) {
    --bet-gap: clamp(9px, 3.7vw, 18px);
    --bet-height: clamp(44px, 12.3vw, 55px);
    --bet-column: calc((100% - 2 * var(--bet-gap)) / 3);
    --bet-gold: #f4d66f;
    --bet-face: linear-gradient(180deg, #26282a, #202122 55%, #1c1d1e);
    --bet-border: #414343;
    --bet-shadow: inset 0 1px 0 #ced2ce2e, 0 2px 0 #0a0a0a, 0 3px 3px #0008;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .betting-panel:has(.reference-bet-tools) .betting-heading {
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  body[data-view="table"] .betting-panel:has(.reference-bet-tools) .betting-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--bet-gap);
  }

  body[data-view="table"] .betting-panel:has(.reference-bet-tools) .bet-shortcuts {
    position: absolute;
    inset: auto 0 calc(var(--bet-height) + 5px) auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    width: var(--bet-column);
    margin: 0;
  }

  body[data-view="table"] .betting-panel:has(.reference-bet-tools) .bet-shortcuts :is([data-bet-shortcut="0.33"], #bet-amount, #bet-slider) {
    display: none;
  }

  .betting-panel:has(.reference-bet-tools) .bet-shortcuts [data-bet-shortcut="1"] {
    grid-row: 1;
  }

  .betting-panel:has(.reference-bet-tools) .bet-shortcuts [data-bet-shortcut="0.75"] {
    grid-row: 2;
  }

  .betting-panel:has(.reference-bet-tools) .bet-shortcuts [data-bet-shortcut="0.5"] {
    grid-row: 3;
  }

  body[data-view="table"] .betting-panel:has(.reference-bet-tools) .betting-actions :is(#fold-button, #check-call-button, #raise-button),
  body[data-view="table"] .betting-panel:has(.reference-bet-tools) .bet-shortcuts button,
  .betting-panel .reference-bet-tools > button,
  .betting-panel .reference-bet-popover button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: var(--bet-height);
    max-width: none;
    max-height: none;
    padding: 3px 5px;
    border: 1px solid var(--bet-border);
    border-radius: 4px;
    background: var(--bet-face);
    box-shadow: var(--bet-shadow);
    color: #f8f8f7;
    font-size: clamp(14px, 4.4vw, 20px);
    font-weight: 750;
    line-height: 1.06;
    text-shadow: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  body[data-view="table"] .betting-panel:has(.reference-bet-tools) :is(.bet-shortcuts button, #raise-button) {
    position: relative;
    overflow: hidden;
    padding-top: clamp(15px, 4.4vw, 21px);
  }

  body[data-view="table"] .betting-panel:has(.reference-bet-tools) .betting-actions :is(#fold-button, #check-call-button, #raise-button):hover:not(:disabled),
  body[data-view="table"] .betting-panel:has(.reference-bet-tools) .bet-shortcuts button:hover:not(:disabled),
  .betting-panel .reference-bet-tools > button:hover:not(:disabled),
  .betting-panel .reference-bet-popover button:hover:not(:disabled) {
    border-color: #9b9d90;
    background: linear-gradient(#343739, #242727);
  }

  .betting-panel:has(.reference-bet-tools) button:focus-visible,
  .betting-panel .reference-bet-popover input:focus-visible {
    outline: 2px solid var(--bet-gold);
    outline-offset: 1px;
  }

  body[data-view="table"] .betting-panel:has(.reference-bet-tools) button:disabled {
    opacity: .53;
    filter: none;
  }

  .reference-bet-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    min-width: 0;
    padding: 0 4px;
    font-size: clamp(10px, 3vw, 14px);
    white-space: nowrap;
  }

  .bet-shortcuts .reference-bet-caption,
  #raise-button .reference-bet-caption {
    position: absolute;
    inset: 0 0 auto;
    height: clamp(15px, 4.4vw, 21px);
    padding-inline: 0 7px;
    background: linear-gradient(180deg, #242526, #1b1c1d);
  }

  .bet-shortcuts .reference-bet-preset,
  #raise-button .reference-bet-preset {
    align-self: stretch;
    display: grid;
    place-items: center;
    min-width: 39%;
    padding-inline: 4px 8px;
    background: #101112;
    clip-path: polygon(0 0, 100% 0, 87% 100%, 0 100%);
  }

  #raise-button .reference-bet-preset:empty { visibility: hidden; }

  .reference-bet-preset {
    min-width: 0;
    font-weight: 800;
  }

  .reference-bet-verb {
    margin-inline-start: auto;
  }

  .reference-bet-action-label {
    line-height: 1.05;
  }

  .reference-bet-value {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--bet-gold);
    font-size: clamp(16px, 4.6vw, 22px);
    font-weight: 760;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
    line-height: 1.13;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .betting-panel .reference-bet-tools {
    position: absolute;
    inset: auto auto calc(var(--bet-height) + 5px) 50%;
    display: flex;
    justify-content: center;
    gap: clamp(5px, 1.8vw, 10px);
    translate: -50% 0;
  }

  .betting-panel .reference-bet-tools > button,
  .betting-panel .reference-bet-tools > button:hover:not(:disabled) {
    position: relative;
    width: clamp(44px, 11.7vw, 56px);
    min-height: 44px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .reference-bet-tools > button::before {
    position: absolute;
    inset: 5px 0 4px;
    content: "";
    border-top: 1px solid #555953;
    border-radius: 4px;
    background: linear-gradient(180deg, #222624, #141716 88%, #060706);
    clip-path: polygon(4% 0, 96% 0, 100% 8%, 94% 100%, 6% 100%, 0 8%);
  }

  .reference-bet-tools svg {
    position: relative;
    width: 23px;
    height: 23px;
    pointer-events: none;
  }

  .betting-panel .reference-bet-tools > .reference-bet-slider-toggle {
    color: var(--bet-gold);
    touch-action: none;
  }

  .betting-panel[data-bet-editor="keypad"] :is(.bet-shortcuts, .betting-actions, .reference-bet-tools),
  .betting-panel[data-bet-editor="slider"] :is(.bet-shortcuts, .betting-actions, .reference-bet-tools) {
    visibility: hidden;
  }
  .betting-panel[data-bet-drag] .reference-bet-slider-toggle {
    visibility: visible;
    opacity: 0;
  }

  .betting-panel .reference-bet-popover:not([hidden]) {
    position: absolute;
    z-index: 1;
    inset: auto auto 0 clamp(66px, 24vw, 125px);
    display: grid;
    gap: 0;
    width: clamp(188px, 49vw, 232px);
  }

  .reference-bet-popover-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
  }

  .reference-bet-popover-head > :first-child {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 34px;
    padding: 3px 8px;
    overflow: hidden;
    border: 1px solid #64765d70;
    border-radius: 999px;
    background: #0b230bd9;
    color: var(--bet-gold);
    font-size: 17px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    text-align: center;
  }

  .betting-panel .reference-bet-popover-head button,
  .betting-panel .reference-bet-popover-head button:hover:not(:disabled) {
    width: 44px;
    min-height: 44px;
    border-color: #a65354;
    border-radius: 10px;
    background: linear-gradient(#a3212b, #74191f);
    font-size: 23px;
  }

  .reference-bet-keypad {
    display: grid;
    grid-template-columns: repeat(3, minmax(44px, 1fr)) minmax(44px, 1fr);
    gap: 0 4px;
  }

  .betting-panel .reference-bet-keypad .reference-bet-key,
  .betting-panel .reference-bet-keypad .reference-bet-key:hover:not(:disabled) {
    position: relative;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    isolation: isolate;
  }

  .reference-bet-key::before {
    position: absolute;
    inset: 5px 3px;
    z-index: -1;
    content: "";
    border: 1px solid #414443;
    border-radius: 50%;
    background: linear-gradient(#26282a, #1b1d1e);
    box-shadow: 0 2px 1px #000a;
  }

  .reference-bet-keypad .reference-bet-key:nth-child(3n + 1) {
    grid-column: 1;
  }

  .reference-bet-keypad .reference-bet-key:nth-child(3n + 2) {
    grid-column: 2;
  }

  .reference-bet-keypad .reference-bet-key:nth-child(3n) {
    grid-column: 3;
  }

  .betting-panel .reference-bet-keypad .reference-bet-apply {
    grid-column: 4;
    grid-row: 2 / span 3;
    align-self: stretch;
    padding-inline: 1px;
    border-color: #191b1a;
    border-radius: 25px;
    background: linear-gradient(#242625, #1a1c1b);
    font-size: 11px;
    white-space: normal;
  }

  .reference-bet-keypad .reference-bet-apply .reference-bet-caption {
    justify-content: center;
    gap: 0;
    padding: 0;
    font-size: 10px;
  }

  .reference-bet-keypad .reference-bet-apply .reference-bet-verb { margin: 0; }

  .betting-panel .reference-bet-popover[data-mode="slider"]:not([hidden]) {
    inset-inline-start: 56%;
    inset-block-end: clamp(30px, 6.1dvh, 62px);
    width: min(164px, 49vw);
    translate: -50% 0;
  }

  .reference-bet-popover[data-mode="slider"] .reference-bet-popover-head {
    position: absolute;
    inset: 0 -18px auto auto;
    grid-template-columns: 44px;
  }

  .reference-bet-popover[data-mode="slider"] .reference-bet-editor-amount { display: none; }

  .reference-bet-slider-row {
    --bet-track-height: clamp(146px, 23dvh, 230px);
    display: grid;
    grid-template-columns: minmax(44px, 1fr) 58px minmax(44px, 1fr);
    grid-template-rows: 44px auto;
    align-items: start;
    justify-items: center;
    row-gap: 6px;
  }

  .reference-bet-track {
    position: relative;
    grid-column: 2;
    grid-row: 2;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 2px 2px #0009);
  }

  .reference-bet-track::before {
    position: absolute;
    inset: 13px 0 0;
    content: "";
    clip-path: polygon(0 2%, 5% 0, 95% 0, 100% 2%, 82% 19%, 70% 43%, 63% 65%, 61% 97%, 55% 100%, 45% 100%, 39% 97%, 37% 65%, 30% 43%, 18% 19%);
    background:
      repeating-linear-gradient(0deg, transparent 0 16px, #fff4a570 16px 17px),
      linear-gradient(#ffe354, #ecac35 54%, #c96825);
    pointer-events: none;
  }

  .reference-bet-slider-row input[type="range"] {
    position: relative;
    width: 58px;
    height: var(--bet-track-height);
    min-height: 0;
    margin: 0;
    padding: 0;
    appearance: none;
    writing-mode: vertical-lr;
    direction: rtl;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: ns-resize;
    touch-action: none;
  }

  .reference-bet-slider-row input[type="range"]::-webkit-slider-thumb {
    width: 34px;
    height: 34px;
    appearance: none;
    border: 3px dashed #f6f3e8;
    border-radius: 50%;
    background: radial-gradient(circle, #e6e4dc 0 36%, #252524 41% 68%, #e6e4dc 74%);
    box-shadow: 0 2px 4px #000c;
  }

  .reference-bet-slider-row input[type="range"]::-moz-range-thumb {
    width: 29px;
    height: 29px;
    border: 3px dashed #f6f3e8;
    border-radius: 50%;
    background: radial-gradient(circle, #e6e4dc 0 36%, #252524 41% 68%, #e6e4dc 74%);
    box-shadow: 0 2px 4px #000c;
  }

  .betting-panel .reference-bet-slider-row .reference-bet-maximum,
  .betting-panel .reference-bet-slider-row .reference-bet-maximum:hover:not(:disabled) {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    transform: translateY(calc((34px - var(--bet-track-height)) * var(--bet-progress, 0)));
    width: 50px;
    min-height: 44px;
    padding: 2px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(transparent 7px, #351d1a 7px 37px, transparent 37px);
    box-shadow: none;
    color: #ffb3a1;
    font-size: 11px;
    white-space: normal;
  }

  .betting-panel .reference-bet-slider-row .reference-bet-apply,
  .betting-panel .reference-bet-slider-row .reference-bet-apply:hover:not(:disabled) {
    grid-column: 1 / -1;
    grid-row: 1;
    width: min(94px, 26vw);
    min-height: 44px;
    padding: 3px 6px;
    border: 1px solid #4a6947;
    border-radius: 999px;
    background: #102513ed;
  }

  .reference-bet-slider-row .reference-bet-apply .reference-bet-caption {
    justify-content: center;
    gap: 0;
    font-size: 11px;
  }

  .reference-bet-slider-row .reference-bet-apply .reference-bet-verb {
    margin: 0;
  }
}

/* The lower centre stays clear for the two wager editors and the left hand
   stays visible. The slots remain fixed while action moves between players. */
@media (max-width: 700px) and (min-height: 600px) and (orientation: portrait) {
  body[data-view="table"] .table-stage:has(.seat.selected) .felt {
    left: 3%;
    width: 94%;
    top: 11%;
    height: 81%;
    background: radial-gradient(ellipse at 51% 55%, #226c2f 0%, #1b5223 64%, #123617 100%);
    box-shadow: inset 0 2px 9px #020b07, 0 7px 0 #080b08, 0 16px 19px #000b;
  }

  body[data-view="table"] #seats:has(.seat.selected) .seat[data-position="0"] { left: 15.5%; top: 79.5%; }
  body[data-view="table"] #seats:has(.seat.selected) .seat[data-position="1"] { left: 86%; top: 56%; }
  body[data-view="table"] #seats:has(.seat.selected) .seat[data-position="2"] { left: 85%; top: 30%; }
  body[data-view="table"] #seats:has(.seat.selected) .seat[data-position="3"] { left: 50%; top: 18%; }
  body[data-view="table"] #seats:has(.seat.selected) .seat[data-position="4"] { left: 15%; top: 30%; }
  body[data-view="table"] #seats:has(.seat.selected) .seat[data-position="5"] { left: 14%; top: 55%; }

  body[data-view="table"] #seats:has(.seat.selected) .open-seat[data-position="1"] { left: min(91.5%, calc(100% - 34px)); }
  body[data-view="table"] #seats:has(.seat.selected) .open-seat[data-position="2"] { top: 25%; }
  body[data-view="table"] #seats:has(.seat.selected) .open-seat[data-position="3"] { top: 10%; }
  body[data-view="table"] #seats:has(.seat.selected) .open-seat[data-position="4"] { top: 25%; }
  body[data-view="table"] #seats:has(.seat.selected) .open-seat[data-position="5"] { left: max(8.5%, 34px); }

  body[data-view="table"] #seats .seat.selected.has-seat-furniture-r54[data-furniture-occupied="true"] > .seat-avatar {
    margin-bottom: 11px;
  }

  body[data-view="table"] #seats .seat.selected .seat-cards {
    top: -27px;
  }

  body[data-view="table"] #seats .seat.selected .seat-cards .card {
    width: clamp(32px, 9.2vw, 44px);
    height: clamp(45px, 13vw, 61px);
  }

  body[data-view="table"] #seats .seat.selected .seat-cards .card + .card {
    margin-inline-start: -8px;
  }
}

body[data-view="table"] .betting-panel:has(.reference-bet-tools) .betting-actions :is(#fold-button,#check-call-button.is-pass):is(:enabled,:disabled,:hover:not(:disabled)){background:transparent;border-color:transparent;box-shadow:none}
.club-topbar > .club-web-version, .reference-club-identity-button { display:none; }
.club-web-version { display:grid; justify-items:center; align-content:center; gap:1px; min-width:45px; color:inherit; }
.club-web-version small { white-space:nowrap; font-size:11px; }
.club-web-version .club-web-update,.club-web-version .club-web-update:hover:not(:disabled) {
  width:32px; height:32px; min-height:0; padding:0; border-radius:50%;
  border:1px solid #11523c; background:#136e4e; color:#d3ffe9; font-size:22px;
}
.club-web-version .club-web-update svg {
  width:21px; height:21px; display:block; margin:auto;
  stroke:#d3ffe9; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; fill:none;
}
.club-web-update[hidden] { display:none; }
.reference-menu:is([data-kind=club-lobby],[data-kind=club-information]) {
  width:min(350px, calc(100% - 24px)); max-height:calc(100dvh - 28px);
  margin:max(60px, env(safe-area-inset-top)) auto auto; border-radius:18px;
  padding:12px; background:#f7faf7; color:#17342b; border:1px solid #c6dcd0;
}
.reference-menu:is([data-kind=club-lobby],[data-kind=club-information]),.reference-menu[data-kind=account][data-home-profile=true] {
  --nav-surface:#f8fbf8; --nav-ink:#172e27; --nav-muted:#4b685a; --nav-accent:#17654f;
  --nav-border:#d5e4da; --nav-button:#eff6f0; --nav-icon:#dceee3;
  --nav-danger:#8d3d30; --nav-danger-button:#fcf0ed; --nav-danger-icon:#f5ddd6;
  background:repeating-linear-gradient(135deg,#dcebe375 0 1px,transparent 1px 8px),var(--nav-surface);
  color:var(--nav-ink); border:1px solid var(--nav-border); border-radius:21px; padding:12px 13px 15px;
}
.reference-menu:is([data-kind=club-lobby],[data-kind=club-information])::backdrop,
.reference-menu[data-kind=account][data-home-profile=true]::backdrop {
  background:#1b352750;backdrop-filter:none;
}
body[data-home-theme=dark] .reference-menu:is([data-kind=club-lobby],[data-kind=club-information],[data-kind=account][data-home-profile=true]) {
  --nav-surface:#16231c; --nav-ink:#eaf5ee; --nav-muted:#a8bcaf; --nav-accent:#8bd4b5;
  --nav-border:#40574b; --nav-button:#20352a; --nav-icon:#274638;
  --nav-danger:#ffb1a8; --nav-danger-button:#382725; --nav-danger-icon:#52342e;
  background:repeating-linear-gradient(135deg,#a4d5be08 0 1px,transparent 1px 8px),var(--nav-surface);
}
.reference-menu:is([data-kind=club-lobby],[data-kind=club-information]) .reference-menu-heading,
.reference-menu[data-kind=account][data-home-profile=true] .reference-menu-heading {border:0;margin:0;}
.reference-menu:is([data-kind=club-lobby],[data-kind=club-information]) h2,.reference-menu[data-kind=account][data-home-profile=true] h2 {
  color:var(--nav-ink);font-size:21px;overflow-wrap:anywhere;
}
.reference-menu:is([data-kind=club-lobby],[data-kind=club-information]) .reference-menu-heading button,
.reference-menu[data-kind=account][data-home-profile=true] .reference-menu-heading button {
  width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:50%;
  background:var(--nav-icon);color:var(--nav-accent);font-size:22px;
}
.reference-club-menu-user,.reference-menu[data-home-profile=true] .reference-account-name {
  color:var(--nav-muted);font-size:12px;margin:-4px 0 11px;
}
.reference-club-menu-items,.reference-menu[data-home-profile=true] .reference-profile-menu {display:grid;gap:8px;}
.reference-club-menu-items .reference-icon,
.reference-menu[data-home-profile=true] .reference-profile-menu .reference-profile-row {
  box-sizing:border-box;display:grid;grid-template-columns:30px minmax(0,1fr) 13px;align-items:center;gap:9px;
  width:100%;min-height:48px;padding:6px 9px;color:var(--nav-ink);font-size:14px;font-weight:700;text-align:start;
  border:1px solid var(--nav-border);border-radius:13px;background:linear-gradient(var(--nav-surface),var(--nav-button));
  box-shadow:inset 0 -3px 5px #0e2a2218,0 2px 4px #0e2a2238;text-decoration:none;
}
.reference-club-menu-icon,.reference-menu[data-home-profile=true] .reference-profile-glyph {
  width:30px;height:30px;display:grid;place-items:center;color:var(--nav-accent);background:var(--nav-icon);border-radius:8px;
}
.reference-club-menu-icon svg,.reference-profile-glyph svg,.reference-dock svg {
  width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;
}
.reference-club-menu-items .reference-profile-arrow,.reference-menu[data-home-profile=true] .reference-profile-arrow {
  color:var(--nav-accent);font-size:21px;line-height:1;
}
.reference-club-menu-items .reference-profile-signout,
.reference-menu[data-home-profile=true] .reference-profile-menu .reference-profile-signout {
  color:var(--nav-danger);background:var(--nav-danger-button);border-color:var(--nav-danger-icon);
}
.reference-profile-signout :is(.reference-club-menu-icon,.reference-profile-glyph,.reference-profile-arrow) {
  color:var(--nav-danger);
}
.reference-profile-signout :is(.reference-club-menu-icon,.reference-profile-glyph) {background:var(--nav-danger-icon);}
.reference-club-information { padding:4px 9px 10px; }
.reference-club-information > * { margin:7px 0; }
.reference-club-information p { overflow-wrap:anywhere; }
.reference-menu[data-kind=club-information] .reference-club-information > button {
  padding-inline:12px; font-size:14px; font-weight:700; color:var(--nav-ink);
  background:var(--nav-button); border:1px solid var(--nav-border);
}
.reference-menu[data-kind=club-information] .reference-club-information > button:is(:hover,:focus-visible) {
  background:var(--nav-icon); border-color:var(--nav-accent);
}
@media all {
  .club-topbar { grid-template-columns:44px minmax(0,1fr) 48px 44px; gap:2px; }
  .club-topbar:has(>#return-to-table:not([hidden])) { grid-template-columns:44px minmax(0,1fr) 48px 44px 44px; }
  .club-topbar>#return-to-table:not([hidden]) {
    display:grid;place-items:center;width:44px;height:44px;min-height:44px;margin:0;padding:0;
    border-radius:12px;border:1px solid var(--lobby-edge);background:var(--lobby-tint);color:var(--lobby-accent);
    font-size:20px;line-height:1;box-shadow:none;
  }
  .club-topbar > .club-web-version { display:grid; }
  .club-topbar .reference-page-title {transform:none;max-width:100%;}
  .reference-bell[data-unread]:not([data-unread="0"])::after {
    content:'';width:6px;min-width:0;height:6px;padding:0;top:8px;right:9px;
  }
  #club-view .club-profile { position:relative; isolation:isolate; }
  #club-view .club-summary { position:static; }
  body[data-view=lobby][data-lobby-game] #club-view .club-summary h1 {
    font-size:20px;line-height:1.35;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
  }
  #club-view .club-summary :is(h1,.club-stats,.club-public-id,.mobile-club-members) { position:relative; z-index:1; }
  #club-view .club-summary .mobile-club-members { position:absolute; }
  #club-view .club-summary .reference-club-identity-button {
    display:block; position:absolute; top:9px; left:8px; z-index:1; height:64px; width:64px;
    background:transparent; border:0; border-radius:20px; cursor:pointer;
  }
  #club-view .club-footer-note { display:none; }
  body[data-mobile-principal] #club-view .reference-wallets {
    display:flex; flex-direction:column-reverse; align-items:flex-start; gap:2px;
  }
  body[data-mobile-principal] #club-view .reference-wallets .wallet-chip {
    min-height:31px; padding:2px 7px; background:transparent; border:0; box-shadow:none;
  }
  body[data-mobile-principal] #club-view .reference-wallets .wallet-chip::before { display:none; }
  body[data-mobile-principal] #club-view .reference-wallet-info { display:flex; gap:5px; flex-wrap:wrap; }
  body[data-mobile-principal] #club-view .reference-wallet-info small::after { content:' ·'; }
  body[data-mobile-principal] #club-view .reference-wallet-info :is(small,strong) { font-size:14px; }
}
.club-network-web {
  position:fixed; inset:0; margin:0; width:100%; height:100%; max-width:none; max-height:none;
  background:linear-gradient(150deg,#f7fbf9,#deefee); color:#152f35;
  border:0; padding:max(8px, env(safe-area-inset-top)) 12px max(20px, env(safe-area-inset-bottom));
  overflow:auto; overscroll-behavior:contain;
}
.club-network-web > header { display:grid; grid-template-columns:44px minmax(0,1fr) auto 44px; align-items:center; gap:7px; }
.club-network-web > header > button:last-child { grid-column:4; }
.club-network-web > header h2 { margin:0; font-size:clamp(19px, 6vw, 30px); }
.club-network-web button.quiet {
  min-height:42px; padding:5px 9px; background:#e7f4f0; color:#105e57; border:1px solid #7bb9b3; border-radius:12px;
}
.club-network-web > header button { font-size:24px; }
.club-network-web > header .club-network-alerts-toggle {
  position:relative; display:grid; place-items:center; width:44px; height:44px; padding:0;
}
.club-network-alerts-toggle svg,.club-network-members svg {
  flex:none; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round;
}
.club-network-alerts-count {
  position:absolute; inset-block-start:2px; inset-inline-end:2px; min-width:14px; padding:1px 3px;
  border-radius:8px; background:#9f2d40; color:#fff; font-size:9px; line-height:1.2; text-align:center;
}
.club-network-alerts-count[hidden],.club-network-members[hidden] { display:none; }
.club-network-status { padding:9px; border:1px solid #7bb9b3; border-radius:10px; margin:7px 0; }
.club-network-totals { display:flex; flex-wrap:wrap; gap:6px; margin:7px 0 3px; }
.club-network-totals[hidden] { display:none; }
.club-network-stat { display:flex; align-items:baseline; gap:6px; }
.club-network-totals .club-network-stat {
  margin:0; padding:5px 8px; background:#e7f4f0; color:#154f48; border:1px solid #94c4bd;
  border-radius:10px; font-size:clamp(11px,3.5vw,14px);
}
.club-network-totals .club-network-stat strong { font-variant-numeric:tabular-nums; }
.club-network-web .club-network-history-trigger {
  min-height:38px; justify-content:flex-start; text-align:start; line-height:1.3;
}
.club-network-history-trigger::after,.club-network-history-row[type="button"]::after {
  content:'›'; font-size:1.35em; line-height:1; margin-inline-start:3px;
}
.club-network-web .club-network-history-trigger:is(:hover,:focus-visible):not(:disabled) {
  background:#d5ede7; color:#124e45; border-color:#408c81;
}
.club-network-web .club-network-history-trigger:focus-visible,.club-network-earnings-history button:focus-visible {
  outline:2px solid #147066; outline-offset:2px;
}
.club-network-own-earnings .club-network-history-trigger {
  max-inline-size:100%; margin:0; padding:5px 8px; border:1px solid #94c4bd; border-radius:10px;
  background:#e7f4f0; color:#154f48; flex-wrap:wrap;
}
.club-network-viewport {
  position:relative; block-size:clamp(15rem,55dvh,34rem); overflow:hidden; overflow:clip;
  touch-action:none; overscroll-behavior:contain; user-select:none; cursor:grab;
}
.club-network-viewport:focus-visible { outline:2px solid #08756b; outline-offset:-2px; }
.club-network-graph { position:absolute; top:0; left:0; width:max-content; min-width:100%; transform-origin:0 0; }
.club-network-graph-frame { position:relative; min-width:0; }
.club-network-zoom-reset { position:absolute; inset-block-start:8px; inset-inline-end:8px; min-width:44px; min-height:44px; }
.club-network-tree,.club-network-tree ul { display:flex; justify-content:center; list-style:none; padding:0; margin:0; }
.club-network-tree li { display:flex; flex-direction:column; align-items:center; gap:13px; min-width:0; padding-inline:5px; }
.club-network-tree li > ul { border-top:1px solid #70aaa5; padding-top:16px; position:relative; }
.club-network-tree li > ul::before { content:''; height:14px; width:1px; background:#70aaa5; position:absolute; left:50%; top:-14px; }
.club-network-node {
  position:relative; display:grid; align-content:center; gap:5px; padding:15px 33px 12px 11px;
  min-height:76px; width:155px; text-align:left; background:#f2faf8; border:1px solid #469a91;
  color:#173a39; border-radius:9px; overflow-wrap:anywhere;
}
button.club-network-node:is(:hover,:focus-visible,[aria-pressed="true"]):not(:disabled) {
  background:#d7efe9; color:#123b35; border-color:#2f8276;
}
button.club-network-node:focus-visible { outline:2px solid #147066; outline-offset:2px; }
.club-network-node small { font-size:11px; color:#406965; }
.club-network-node-meta { display:flex; align-items:center; flex-wrap:wrap; gap:3px 5px; }
.club-network-members {
  display:inline-flex; align-items:center; gap:3px; border:1px solid #94c4bd; border-radius:7px;
  padding:1px 4px; color:#1d5751; font-size:10px; line-height:1.15; font-variant-numeric:tabular-nums;
}
.club-network-principal:has(.club-network-principal-supply:not([hidden])) {
  width:min(305px,calc(100vw - 36px)); padding-inline:11px;
}
.club-network-principal-heading { display:flex; align-items:center; justify-content:space-between; gap:9px; }
.club-network-principal-supply {
  flex:0 1 auto; display:grid; justify-items:start; gap:2px; max-inline-size:58%; padding:5px 7px;
  border:1px solid #88bdb3; border-radius:8px; background:#d9efe9; color:#174d44;
  font-variant-numeric:tabular-nums;
}
.club-network-principal-supply small { color:#2b5d56; }
.club-network-principal-supply strong { overflow-wrap:anywhere; }
.club-network-online { position:absolute; right:6px; top:5px; border:1px solid #94c4bd; border-radius:20px; padding:2px 5px; font-size:11px; }
.club-network-levels { display:flex; justify-content:center; flex-wrap:wrap; gap:6px; margin:7px auto 0; }
.club-network-card { padding:11px; border:1px solid #9ac7bd; background:#f3faf8; border-radius:12px; margin:8px 0; }
.club-network-card :is(h3,h4,p) { margin:5px 0; }
.club-network-card form { display:flex; align-items:end; gap:8px; }
.club-network-card form label { flex:1; }
.club-network-card input,.club-network-editor input {
  color:#15322e; background:#fff; border-color:#a6c9bf; font:inherit;
}
.club-network-invitation { margin-block:10px; }
.club-network-invitation button { margin-inline-end:5px; }
.club-network-transfer-notice { border-top:1px solid #9ac7bd; padding:9px 4px; }
.club-network-transfer-notice[data-seen="false"] > strong::before { content:'●'; font-size:.7em; margin-inline-end:7px; }
.club-network-transfer-notice p { margin:4px 0; overflow-wrap:anywhere; }
.network-bank-bell-notices:not([hidden]) + div > [data-live-empty="true"] { display:none; }
.club-network-transfer-notice button { min-height:42px; }
.club-network-transfer-notice button,.club-network-card > button { margin-inline-end:6px; }
.club-network-hint { color:#406965; font-size:13px; }
.club-network-editor {
  width:min(430px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); padding:17px; overflow:auto;
  background:#f7fbf8; color:#17372e; border:1px solid #a6c9bf; border-radius:17px;
}
.club-network-editor h2 { margin:0; }
.club-network-editor .union-field { margin:12px 0; }
.club-network-editor button + button { margin-left:8px; }
.club-network-earnings-history > header {
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:7px; align-items:center;
  position:sticky; inset-block-start:-17px; z-index:1; padding-block:6px; background:#f7fbf8;
}
.club-network-earnings-history > header h2 { grid-column:2; font-size:clamp(19px,6vw,25px); }
.club-network-earnings-history .club-network-history-icon {
  inline-size:42px; block-size:42px; padding:0; font-size:25px; line-height:1;
  border:1px solid #94c4bd; border-radius:10px; background:#e7f4f0; color:#154f48;
}
.club-network-earnings-history .club-network-history-icon:last-child { grid-column:3; }
.club-network-history-rows { display:grid; gap:6px; list-style:none; margin:8px 0; padding:0; }
.club-network-history-rows[hidden] { display:none; }
.club-network-history-row {
  display:flex; inline-size:100%; min-height:44px; gap:9px; align-items:center; text-align:start;
  justify-content:space-between; margin:0; padding:7px 9px; border:1px solid #b5d4cd; border-radius:10px;
  background:#eaf6f2; color:#174940; font-size:14px; overflow-wrap:anywhere;
}
button.club-network-history-row:is(:hover,:focus-visible):not(:disabled) {
  background:#d5ede7; color:#124e45; border-color:#408c81;
}
.club-network-history-when,.club-network-history-amount { display:grid; gap:2px; }
.club-network-history-amount { margin-inline-start:auto; text-align:end; }
.club-network-history-row strong { font-variant-numeric:tabular-nums; }
.club-network-history-pending { color:#365751; }
.club-network-earnings-history h3 { margin:9px 0 2px; font-size:17px; }
.club-network-earnings-history section > p { margin:4px 0; }
.club-network-history-status { margin:7px 0; }


@media all {
  body[data-view=lobby] .reference-floating.reference-icon {
    width:48px;height:48px;min-width:48px;min-height:48px;right:max(10px,env(safe-area-inset-right));
    bottom:max(10px,env(safe-area-inset-bottom));padding:0;font-size:23px;border-radius:50%;
    background:linear-gradient(var(--club-tools-green),var(--club-tools-green-deep));
  }
  body[data-view=lobby] .reference-dock[data-scoped=true]:not([hidden]) {
    display:flex;flex-wrap:wrap;gap:4px;
    width:min(var(--club-tool-width,390px),calc(100vw - 18px));padding:3px 4px;border-radius:28px;border:0;
    right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));
    background:linear-gradient(var(--club-tools-green),var(--club-tools-green-deep));box-shadow:0 4px 7px #082d2b4d;
  }
  body[data-view=lobby] .reference-dock[data-scoped=true] button {
    position:relative;flex:1 1 var(--club-tool-minimum,48px);min-width:0;min-height:48px;padding:2px 5px;color:#fff;gap:3px;
  }
  body[data-view=lobby] .reference-dock[data-scoped=true][data-wrap]:not([hidden]) {
    display:grid;grid-template-columns:repeat(var(--club-tool-columns,3),minmax(0,1fr));
  }
  body[data-view=lobby] .reference-dock[data-scoped=true] button[aria-label="Cerrar herramientas del club"] {font-size:24px}
  body[data-view=lobby] .reference-dock[data-scoped=true] svg {width:17px;height:17px}
  body[data-view=lobby] .reference-dock[data-scoped=true] small {
    font-size:12px;font-weight:700;line-height:1.1;white-space:nowrap;
  }
  .reference-floating[data-notices]::after,.reference-dock [data-notices]::after {
    content:'!';position:absolute;inset:0 0 auto auto;width:14px;height:14px;border-radius:50%;
    background:#d51b25;color:#fff;font-size:10px;line-height:14px;text-align:center;
  }
}

.club-network-earnings-toggle:not([hidden]) {
  display:flex; align-items:baseline; flex-wrap:wrap; gap:6px; min-height:38px;
  background:#e7f4f0; color:#154f48; border:1px solid #94c4bd; border-radius:10px;
  padding:5px 8px; text-align:start; font:inherit; font-size:13px;
}

@media all {
  body[data-view=lobby][data-lobby-game] {
    --lobby-ink:#182b25;
    --lobby-muted:#596b63;
    --lobby-accent:#17684f;
    --lobby-edge:#dce7df;
    --lobby-card:#fff;
    --lobby-tint:#eaf2ed;
    --lobby-primary:#17684f;
    --lobby-warning:#864d16;
  }
  body[data-view=lobby][data-lobby-game] #club-view .club-variant-tabs[role=tablist] {
    margin-block:6px 2px;gap:4px;
  }
  body[data-view=lobby][data-lobby-game] #club-view :is(button,.club-filter) { -webkit-tap-highlight-color:transparent; }
  body[data-view=lobby][data-lobby-game] #club-view .club-topbar .reference-icon:is(:hover,:focus-visible) {
    background:var(--lobby-tint);
    outline-color:var(--lobby-accent);
  }
  body[data-view=lobby][data-lobby-game] #club-view .reference-announcement > .reference-icon {
    color:var(--lobby-accent);
  }
  body[data-view=lobby][data-lobby-game] #club-view .reference-announcement > .reference-icon:is(:hover,:focus-visible) {
    background:var(--lobby-tint);
    outline-color:var(--lobby-accent);
  }
  body[data-view=lobby][data-lobby-game] #club-view .club-variant-tabs[role=tablist] [role=tab] {
    height:44px;padding:2px;gap:0;border-radius:14px;font-size:12px;font-weight:400;
    line-height:1.1;letter-spacing:-.12px;
  }
  body[data-view=lobby][data-lobby-game] #club-view [role=tab] .mobile-variant-count {
    height:12px;min-width:13px;box-shadow:none;background:var(--lobby-tint);
    border:1px solid var(--lobby-edge);color:var(--lobby-accent);font-size:9px;font-weight:700;
  }
  body[data-view=lobby][data-lobby-game] #club-view .club-toolbar :is(#create-table-button,#filter-toggle) {
    font-weight:400;
  }
  body[data-view=lobby][data-lobby-game] #club-view .club-toolbar #create-table-button {
    font-size:23px;color:var(--lobby-accent);
  }
  body[data-view=lobby][data-lobby-game] #club-view .club-toolbar #filter-toggle {
    gap:2px;font-size:12px;white-space:nowrap;
  }
  body[data-view=lobby][data-lobby-game] #club-view .club-toolbar #filter-toggle span { font-size:9px; }
  body[data-view=lobby][data-lobby-game] #club-view .club-toolbar input[type=checkbox] {
    margin:0 2px 0 4px;flex-basis:18px;width:18px;height:18px;
  }
  body[data-view=lobby][data-club-home=club] #club-view .club-stats #club-player-count { display:none; }
  body[data-view=lobby][data-club-home=club] #club-view .club-summary .eyebrow { display:none; }
  body[data-view=lobby][data-club-home=club] #club-view .reference-wallets .wallet-chip {
    min-height:30px;padding:2px 9px;
  }
  body[data-view=lobby][data-club-home=club] #club-view .reference-wallets .wallet-chip::before { display:none; }
  body[data-view=lobby][data-club-home=club] #club-view .reference-wallet-info {
    justify-content:flex-start;flex-wrap:nowrap;overflow:hidden;white-space:nowrap;
  }
  body[data-view=lobby][data-club-home=club] #club-view .reference-wallet-info small { flex:0 0 auto; }
  body[data-view=lobby][data-club-home=club] #club-view .reference-wallet-info small::after { content:' ·'; }
  body[data-view=lobby][data-club-home=club] #club-view .reference-wallet-info :is(small,strong) {
    font-size:12px;font-weight:700;
  }
  body[data-mobile-principal] #club-view .reference-wallet-info { flex-direction:row;flex-wrap:nowrap;align-items:baseline; }
  body[data-home-theme=dark][data-mobile-principal] #club-view .reference-wallets .wallet-chip {
    background:transparent;border:0;
  }
  body[data-view=lobby][data-lobby-game] .app-footer { display:none; }
  body[data-view=lobby][data-lobby-game] #club-view .club-table-card {
    margin-bottom:10px;border:0;border-radius:17px;background:var(--lobby-card);
    box-shadow:inset 0 0 0 1px var(--lobby-edge);
  }
  body[data-view=lobby][data-lobby-game] #club-view .club-table-strip {
    display:grid;grid-template-columns:5px 46px minmax(0,1fr);grid-template-rows:auto;align-items:center;
    gap:0;min-height:66px;width:100%;padding:7px 8px;border:0;border-radius:17px;
    background:transparent;color:var(--lobby-ink);text-align:left;
  }
  body[data-view=lobby][data-lobby-game] #club-view .club-table-strip .club-table-type {
    grid-area:1/1;box-sizing:border-box;height:52px;min-height:0;width:5px;padding:0;
    align-self:center;border:1px solid var(--lobby-edge);border-radius:4px;
    font-size:0;background:var(--lobby-primary);
  }
  body[data-view=lobby][data-lobby-game] #club-view .club-table-strip .occupancy-ring {
    grid-area:1/2;display:grid;place-items:center;width:46px;height:46px;margin:0;
    border:3px solid var(--lobby-edge);border-radius:50%;outline:0;background:var(--lobby-tint);color:var(--lobby-accent);
    font-size:11px;font-weight:700;line-height:1;
  }
  body[data-view=lobby][data-lobby-game] #club-view .club-table-card[data-has-players] .occupancy-ring {
    border-color:var(--lobby-primary);
  }
  body[data-view=lobby][data-lobby-game] #club-view .club-table-strip .occupancy-ring::before { content:none; }
  body[data-view=lobby][data-lobby-game] #club-view .club-table-strip .club-table-summary {
    display:grid;grid-area:1/3;gap:1px;min-width:0;padding:0 0 0 8px;
  }
  body[data-view=lobby][data-lobby-game] #club-view .club-table-heading {
    display:flex;align-items:baseline;justify-content:space-between;gap:6px;margin:0;min-width:0;
  }
  body[data-view=lobby][data-lobby-game] #club-view .club-table-heading .table-name {
    min-width:0;margin:0;font-size:14px;font-weight:700;line-height:1.25;
    white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:var(--lobby-ink);
  }
  body[data-view=lobby][data-lobby-game] #club-view .club-table-heading .club-table-buyin {
    min-width:0;flex:0 0 auto;margin:0;padding:0;font-size:11px;line-height:1.25;color:var(--lobby-ink);
  }
  body[data-view=lobby][data-lobby-game] #club-view .club-table-heading .club-table-buyin strong {
    color:inherit;font-size:inherit;font-weight:700;white-space:nowrap;
  }
  body[data-view=lobby][data-lobby-game] #club-view [data-wide-entry] .club-table-heading .club-table-buyin {
    font-size:clamp(7px,3.5cqi,11px);max-width:calc(100% - 38px);
  }
  body[data-view=lobby][data-lobby-game] #club-view [data-wide-entry] .club-table-heading .club-table-buyin strong {
    white-space:normal;overflow-wrap:anywhere;
  }
  body[data-view=lobby][data-lobby-game] #club-view .club-table-strip :is(.club-table-limits,.table-status) {
    grid-area:auto;display:block;min-width:0;margin:0;padding:0;
    font-size:11px;font-weight:400;line-height:1.3;
  }
  body[data-view=lobby][data-lobby-game] #club-view .club-table-strip .club-table-limits {
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--lobby-accent);
  }
  body[data-view=lobby][data-lobby-game] #club-view .club-table-strip .table-status { color:var(--lobby-muted); }
  body[data-view=lobby][data-lobby-game] #club-view .club-table-strip .table-status:empty,
  body[data-view=lobby][data-lobby-game] #club-view .club-table-strip .table-status[hidden],
  body[data-view=lobby][data-lobby-game] #club-view .lobby-desktop-detail { display:none; }
  body[data-view=lobby][data-lobby-game] #club-view .lobby-seat-block {
    display:block;font-size:12px;color:var(--lobby-warning);
  }
  body[data-view=lobby][data-lobby-game] #club-view .club-table-details {
    padding:0 8px 8px;gap:4px;border:0;background:transparent;
  }
  body[data-view=lobby][data-lobby-game] #club-view .club-table-details .public-table-preview { height:210px; }
  body[data-view=lobby][data-lobby-game] #club-view .club-table-details .chess-inline-preview { min-height:210px; }
  body[data-view=lobby][data-lobby-game] #club-view .preview-toolbar {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:0;margin:0;
  }
  body[data-view=lobby][data-lobby-game] #club-view .preview-toolbar button:not([hidden]) {
    width:100%;min-height:44px;min-width:0;margin:0;padding:4px 6px;border-radius:12px;
    font-size:12px;line-height:1.2;font-weight:400;box-shadow:none;
    background:var(--lobby-tint);color:var(--lobby-accent);border:1px solid var(--lobby-edge);
  }
  body[data-view=lobby][data-lobby-game] #club-view .preview-toolbar button[hidden] { display:none; }
  body[data-view=lobby][data-lobby-game] #club-view .domino-lobby-actions button:not([hidden]) { min-height:48px; }
  body[data-view=lobby][data-lobby-game] #club-view .preview-toolbar :is(.lobby-edit-table,.delete-table-button),
  body[data-view=lobby][data-lobby-game] #club-view :is(.card-lobby-actions,.chess-lobby-actions) .open-table-button,
  body[data-view=lobby][data-lobby-game] #club-view .domino-lobby-actions:not(:has(.domino-lobby-choose)) .open-table-button {
    grid-column:1/-1;
  }
  body[data-view=lobby][data-lobby-game] #club-view :is(.card-lobby-actions,.domino-lobby-actions) .open-table-button {
    background:var(--lobby-primary)!important;border-color:var(--lobby-edge)!important;color:white!important;
  }
  body[data-view=lobby][data-lobby-game] #club-view .chess-lobby-actions .chess-lobby-seat {
    border:0;border-radius:8px;background:#28533e;color:#f5fff8;font-size:13px;
  }
  body[data-view=lobby][data-lobby-game] #club-view .chess-lobby-actions .chess-lobby-seat[data-color=b] {
    background:#c0cbc2;color:#101912;
  }
  body[data-view=lobby][data-lobby-game] #club-view .preview-toolbar .delete-table-button {
    background:#a02a32;color:white;border-color:var(--lobby-edge);
  }
  body[data-view=lobby][data-lobby-game] #club-view .preview-toolbar button:disabled { opacity:.45; }
  body[data-view=lobby][data-lobby-game] #club-view .chess-lobby-actions .open-table-button { order:0; }
}

@media (max-width:700px) and (orientation:portrait) and (max-height:499px), (pointer:coarse) and (max-height:530px) and (orientation:landscape) {
  body[data-view=lobby][data-lobby-game] #club-view .club-table-strip { grid-template-columns:5px minmax(0,1fr); }
  body[data-view=lobby][data-lobby-game] #club-view .club-table-strip .occupancy-ring { display:none; }
  body[data-view=lobby][data-lobby-game] #club-view .club-table-strip .club-table-summary { grid-column:2; }
  body[data-view=lobby][data-lobby-game] #club-view .club-table-strip .club-table-limits::after { content:attr(data-seats); }
  body[data-view=lobby][data-lobby-game] #club-view .club-table-details .public-table-preview { height:250px; }
  body[data-view=lobby][data-lobby-game] #club-view .club-table-details .chess-inline-preview { min-height:180px; }
}

@media all {
  html body[data-home-theme=dark][data-view=lobby][data-lobby-game] {
    --lobby-ink:#edf4ee;
    --lobby-muted:#a9b9af;
    --lobby-accent:#81d4b2;
    --lobby-edge:#394943;
    --lobby-card:#1c2b24;
    --lobby-tint:#263b30;
    --lobby-primary:#207f60;
    --lobby-warning:#ffcf80;
    background:repeating-linear-gradient(135deg,#1c2d24 0 1px,transparent 1px 8px),linear-gradient(#111b16,#17281f);
    color:var(--lobby-ink);
  }
  html body[data-home-theme=dark][data-view=lobby][data-lobby-game] :is(.club-topbar,.club-topbar button,.club-summary h1,.club-filter) { color:var(--lobby-ink); }
  body[data-home-theme=dark][data-view=lobby][data-lobby-game] #club-view .club-profile::before { background:linear-gradient(#263a30,var(--lobby-card));border-color:var(--lobby-edge); }
  body[data-home-theme=dark][data-view=lobby][data-lobby-game] #club-view :is(.club-stats,.club-public-id,.mobile-club-live,.reference-announcement) { color:var(--lobby-muted); }
  body[data-home-theme=dark][data-view=lobby][data-lobby-game] #club-view :is(.wallet-chip,.mobile-club-members:not([hidden]),.club-toolbar input[type=search]) {
    background:var(--lobby-tint);border-color:var(--lobby-edge);color:var(--lobby-accent);
  }
  body[data-home-theme=dark][data-view=lobby][data-lobby-game] #club-view .reference-wallets .wallet-chip :is(strong,small) { color:var(--lobby-accent); }
  body[data-home-theme=dark][data-view=lobby][data-lobby-game] #club-view .reference-announcement.no-club-notice::after,
  body[data-home-theme=dark][data-view=lobby][data-lobby-game] #club-view .reference-announcement .reference-club-notice:not([hidden]) {
    background:var(--lobby-card);border-color:var(--lobby-edge);color:var(--lobby-ink);
  }
  body[data-home-theme=dark][data-view=lobby][data-lobby-game] #club-view [role=tablist] [role=tab]:not([aria-selected=true]),
  body[data-home-theme=dark][data-view=lobby][data-lobby-game] #club-view .club-toolbar :is(#create-table-button,#filter-toggle) {
    background:linear-gradient(var(--lobby-tint),var(--lobby-card));border-color:var(--lobby-edge);color:var(--lobby-ink);
  }
  body[data-home-theme=dark][data-view=lobby][data-lobby-game] #club-view [role=tablist] [role=tab][aria-selected=true] {
    background:linear-gradient(#247158,#185940);border-color:#7da394;color:var(--lobby-ink);
  }
  body[data-home-theme=dark][data-view=lobby][data-lobby-game] #club-view .club-toolbar input[type=checkbox] { border-color:var(--lobby-muted); }
}

.table-creation-scope h2 { margin:0 0 8px;font-size:20px; }
.table-creation-scope button { display:block;width:100%;min-height:48px;text-align:start; }
.table-creation-scope button:last-child { margin:6px 0 0 auto;width:auto; }

@media all {
  #create-table-dialog .dialog-heading [data-dialog-close],
  #chess-lobby.table-settings-dialog .chess-navigation-actions { display:none; }
  #rules-dialog[open] { display:flex;flex-direction:column;max-height:85dvh;overflow:hidden; }
  #rules-dialog .dialog-heading [data-dialog-close] { display:none; }
  #rules-dialog .dialog-heading { margin:0 0 10px; }
  #rules-dialog .dialog-heading .eyebrow { display:none; }
  #rules-dialog .rules-dialog-content { overflow:auto;min-height:0;overscroll-behavior:contain; }
  #rules-dialog > button[data-dialog-close] { display:block;width:auto;margin:8px 0 0 auto;min-height:44px; }
  #hand-history-r6[data-selection=list][open] {
    display:flex;flex-direction:column;width:min(460px,calc(100vw - 32px));height:fit-content;max-height:85dvh;
    padding:16px;border-radius:18px;overflow:hidden;
  }
  #hand-history-r6[data-selection=list] :is(.hand-history-layout,.hand-history-index) { height:auto;min-height:0; }
  #hand-history-r6[data-selection=list] .hand-history-layout { overflow:auto; }
  #hand-history-r6[data-selection=list] .hand-history-index { overflow:visible; }
  #hand-history-r6[data-selection=list] :is(.hand-history-archive-info summary,.hand-history-pager>span,.hand-history-status:not([data-origin])) { display:none; }
  #hand-history-r6[data-selection=list] .hand-history-index > div:first-child { display:grid;overflow:visible; }
  #hand-history-r6[data-selection=list] .hand-history-row { min-width:0;width:100%;min-height:44px; }
  #hand-history-r6[data-selection=list] .hand-history-pager button { min-height:44px; }
  .hand-history-list-footer,.table-social-chat-footer { display:flex;justify-content:flex-end;align-items:center; }
  .hand-history-list-footer { flex:0 0 auto;margin-top:6px; }
  :is(.hand-history-list-footer,.table-social-chat-footer) button { min-height:44px; }
  .table-social-dialog[open]:has(.table-social-chat-footer:not([hidden])) {
    grid-template-rows:44px minmax(0,1fr) auto auto 44px;
    height:min(85dvh,680px);max-height:calc(100dvh - 16px);
  }
  .table-social-dialog:has(.table-social-chat-footer:not([hidden])) .table-social-context { display:none; }
  .table-social-dialog:has(.table-social-chat-footer:not([hidden])) .table-social-status { grid-row:3; }
  .table-social-dialog:has(.table-social-chat-footer:not([hidden])) .table-social-composer { grid-row:4; }
  .table-social-chat-footer { grid-row:5; }
}
.club-network-earnings-toggle strong { font-variant-numeric:tabular-nums; }
.club-network-earnings-toggle:is(:hover,:focus-visible):not(:disabled) {
  background:#d5ede7; color:#124e45; border-color:#408c81;
}
.club-network-earnings-toggle:focus-visible { outline:2px solid #147066; outline-offset:2px; }
.club-network-node-box { display:grid; }
.club-network-node-box:has(.club-network-branch-earnings:not([hidden])) > .club-network-node {
  border-end-start-radius:0; border-end-end-radius:0;
}
.club-network-node-box > .club-network-branch-earnings:not([hidden]) {
  min-width:0; border-top:0; border-color:#469a91; border-start-start-radius:0; border-start-end-radius:0;
  font-size:11px; min-height:34px; padding:3px 9px;
}
.club-network-player-earnings {
  display:flex; flex-wrap:wrap; gap:4px 8px; align-items:center;
}
.club-network-own-earnings > .club-network-earnings-toggle { margin-bottom:5px; }
.club-network-web > .club-network-rates-button { margin-block:3px 7px; }
.club-network-currency-rates .club-network-rate-row {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; column-gap:7px;
  margin-block:10px; padding-block-end:7px; border-bottom:1px solid #b5d4cd;
}
.club-network-currency-rates .club-network-rate-row .union-field { min-width:0; margin:0; }
.club-network-editor.club-network-currency-rates .club-network-rate-row input {
  width:100%; background:#fff; color:#17372e; border:1px solid #8bb7ac; box-shadow:none;
}
.club-network-currency-rates > button.quiet {
  min-height:40px; padding:5px 9px; border:1px solid #94c4bd; border-radius:9px;
  background:#e7f4f0; color:#154f48;
}
.club-network-currency-rates .club-network-rate-row small {
  grid-column:1/-1; color:#365751; margin-top:4px; overflow-wrap:anywhere;
}

/* Mobile card tables keep the playing surface and the controls in separate tracks. */
@media (max-width:700px) and (orientation:portrait), (max-height:530px) and (orientation:landscape) {
  body[data-view=table] .app {
    box-sizing:border-box;
    height:100vh;
    height:100dvh;
    padding:0;
  }

  body[data-view=table] #table-view {
    box-sizing:border-box;
    height:100%;
    min-width:0;
    padding:env(safe-area-inset-top) env(safe-area-inset-right)
      env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
  body[data-view=table] #table-view .table-navigation { height:44px; min-height:44px; flex:0 0 44px; }
  body[data-view=table] #table-view .table-controls { height:auto; min-height:26px; flex:0 0 auto; }
  body[data-view=table] #table-view .table-column { min-width:0; }
  body[data-view=table] #table-view .table-stage {
    container-type:size;
    --seat-width:clamp(54px,18cqw,76px);
    --seat-head:clamp(19px,6.8cqh,28px);
    --seat-fan-width:clamp(18px,7.4cqw,27px);
    --seat-fan-height:clamp(25px,9cqh,38px);
    --seat-own-width:clamp(23px,9cqw,35px);
    --seat-own-height:clamp(31px,12cqh,48px);
    --seat-side:max(41px,13.5%);
    --seat-tail:calc(var(--seat-head) + clamp(6px,2cqh,13px) + 52px);
  }

  body[data-view=table] #table-view .table-scene { inset:20px 0 0; height:auto; }
  body[data-view=table] #table-view .stage-status { top:2px; }
  body[data-view=table] #table-view .table-stage .felt {
    inset:10% 3% 9%;
    width:auto;
    height:auto;
    border-width:clamp(8px,2.8cqh,13px);
  }

  body[data-view=table] #table-view #seats .seat {
    width:var(--seat-width);
    min-height:0;
    transform:translateX(-50%);
  }
  body[data-view=table] #table-view #seats .seat[data-position="3"] { left:50%; top:clamp(29px,13cqh,84px); }
  body[data-view=table] #table-view #seats .seat[data-position="2"] { left:calc(100% - var(--seat-side)); top:clamp(54px,28cqh,190px); }
  body[data-view=table] #table-view #seats .seat[data-position="4"] { left:var(--seat-side); top:clamp(54px,28cqh,190px); }
  body[data-view=table] #table-view #seats .seat[data-position="1"] { left:calc(100% - var(--seat-side)); top:61%; }
  body[data-view=table] #table-view #seats .seat[data-position="5"] { left:var(--seat-side); top:61%; }
  body[data-view=table] #table-view #seats .seat[data-position="0"] { left:50%; top:calc(100% - var(--seat-tail)); }

  body[data-view=table] #table-view #seats .seat .seat-avatar {
    width:var(--seat-head);
    height:var(--seat-head);
    margin:0 auto clamp(6px,2cqh,13px);
    font-size:12px;
  }

  body[data-view=table] #table-view #seats .seat .seat-name {
    box-sizing:border-box;
    min-height:16px;
    padding:2px 3px 1px;
    font-size:clamp(9px,2.9cqw,11px)!important;
    line-height:12px;
  }

  body[data-view=table] #table-view #seats .seat .seat-chips {
    min-height:15px;
    padding:1px 3px 2px;
    font-size:clamp(10px,3.4cqw,14px)!important;
    line-height:12px;
    white-space:nowrap;
  }

  body[data-view=table] #table-view #seats .seat .seat-cards { top:calc(-1 * var(--seat-fan-height) - 2px); }
  body[data-view=table] #table-view #seats .seat .seat-cards .card {
    width:var(--seat-fan-width);
    height:var(--seat-fan-height);
    font-size:clamp(15px,4.6cqw,19px);
    transform-origin:center;
  }
  body[data-view=table] #table-view #seats .seat .seat-cards .card + .card { margin-inline-start:-7px; }
  body[data-view=table] #table-view #seats .seat.selected .seat-cards { top:calc(-1 * var(--seat-own-height) - 3px); }
  body[data-view=table] #table-view #seats .seat.selected .seat-cards .card {
    width:var(--seat-own-width);
    height:var(--seat-own-height);
    font-size:clamp(17px,6cqw,25px);
  }

  body[data-view=table] #table-view #seats .seat .sit-button {
    width:clamp(46px,15cqw,60px);
    height:clamp(46px,15cqw,60px);
    min-height:44px;
    padding:clamp(29px,10cqw,43px) 0 0;
    line-height:10px;
  }
  body[data-view=table] #table-view #seats .seat .sit-button::after { top:34%; }

  body[data-view=table] #table-view #seats .seat .seat-action {
    top:100%;
    max-width:100%;
    padding:1px 4px;
    font-size:9px!important;
  }
  body[data-view=table] #table-view #seats .seat:is([data-position="0"],[data-position="3"]) .seat-action {
    top:var(--seat-head);
    left:calc(100% + 18px);
  }
  body[data-view=table] #table-view #seats .seat[data-position="4"] .seat-action {
    top:var(--seat-head);
    left:calc(100% + 18px);
  }
  body[data-view=table] #table-view #seats .seat[data-position="2"] .seat-action {
    top:var(--seat-head);
    left:-18px;
  }
  body[data-view=table] #table-view #seats .seat .seat-clock { top:100%; height:3px!important; }
  body[data-view=table] #table-view #seats .seat .dealer-button { right:0; top:0; width:17px; height:17px; font-size:11px; }
  body[data-view=table] #table-view #seats .seat .seat-bet {
    top:1px;
    left:calc(50% + var(--seat-head)/2 + 14px);
    min-height:14px;
    padding:1px 4px;
    font-size:9px;
    line-height:12px;
  }
  body[data-view=table] #table-view #seats .seat:is([data-position="1"],[data-position="2"]) .seat-bet {
    left:calc(50% - var(--seat-head)/2 - 14px);
  }
  body[data-view=table] #table-view #seats .seat .seat-bet .bet-chip { width:11px; height:11px; }
  body[data-view=table] #table-view #seats .seat .seat-draw-minis-r55 {
    left:50%;
    top:calc(100% + 18px);
    max-width:100%;
  }
  body[data-view=table] #table-view #seats .seat[data-position="0"] .seat-draw-minis-r55 {
    left:calc(100% + 31px);
    top:0;
  }
  body[data-view=table] #table-view #seats .seat:not(.selected) .seat-draw-count {
    left:50%;
    top:calc(100% + 4px);
    max-width:100%;
    font-size:8px;
    padding:2px 4px;
  }
  body[data-view=table] #table-view #seats .seat .seat-action:not([hidden]) ~ .seat-draw-count:not([hidden]) {
    top:calc(100% + 17px);
  }

  body[data-view=table] #table-view .board { top:49%; width:max-content; gap:3px; }
  body[data-view=table] #table-view .board-cards { min-height:0; }
  body[data-view=table] #table-view .board-cards>.card {
    width:clamp(29px,10.6cqw,47px);
    height:clamp(39px,15cqw,65px);
    font-size:clamp(20px,6.2cqw,33px);
  }
  body[data-view=table] #table-view .board .pot-label { padding:2px 7px; font-size:11px; }
  body[data-view=table] #table-view .pot-stack { height:15px; margin:-2px 0 1px; transform:scale(.68); }

  body[data-view=table] #table-view .game-bottom-bar {
    position:relative;
    inset:auto;
    min-width:0;
    width:100%;
    max-width:none;
    padding:4px 7px;
    background:#11160f;
  }
  body[data-view=table] #table-view .game-bottom-bar:has(>.card-choice-panel:not([hidden])) { padding-top:19px; }
  body[data-view=table] #table-view .card-choice-panel:not([hidden]) {
    position:relative;
    inset:auto!important;
    transform:none;
    margin:0 auto;
    width:100%;
    max-height:none;
    gap:4px;
  }
  body[data-view=table] #table-view .card-choice-panel .card-choice-cards { min-height:0; gap:8px; }
  body[data-view=table] #table-view .card-choice-panel .card-choice-button,
  body[data-view=table] #table-view .card-choice-panel .card-choice-button .card {
    width:clamp(35px,10.5vw,48px);
    height:clamp(48px,13.5vw,66px);
    font-size:25px;
  }
  body[data-view=table] #table-view .card-choice-panel .card-choice-actions button {
    min-height:39px;
    max-height:none;
  }
  body[data-view=table] #table-view .card-choice-panel .card-choice-heading { top:-17px; }
}
@media (max-width:700px) and (orientation:portrait) {
  body[data-view=table]:not([data-card-choice=true]) #table-view .game-bottom-bar:has(.betting-panel:not([hidden]), .reference-table-strip:not([hidden])):not(:has(.table-idle-panel:not([hidden]))) {
    position:relative;
    inset:auto;
    min-height:48px;
    padding:2px 8px;
    background:#11160f;
  }

  body[data-view=table] #table-view .game-bottom-bar .betting-panel:has(.reference-bet-tools) {
    --bet-height:44px;
    --bet-gap:3px;
    --bet-column:clamp(88px, 30vw, 126px);
    --bet-gold:#ffdc79;
    --bet-face:linear-gradient(#353632, #222321 52%, #171816);
    --bet-border:#55574f;
    --bet-shadow:0 2px 2px #0008;
  }
  body[data-view=table] #table-view .betting-panel:has(.reference-bet-tools) .bet-shortcuts {
    bottom:calc(var(--bet-height) + 5px);
    gap:var(--bet-gap);
  }
  body[data-view=table] #table-view .betting-panel:has(.reference-bet-tools) .betting-actions {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) var(--bet-column);
    gap:4px;
  }
  body[data-view=table] #table-view .betting-panel:has(.reference-bet-tools) :is(.bet-shortcuts button, #fold-button, #check-call-button, #raise-button) {
    padding:3px;
    min-height:var(--bet-height);
    border-radius:5px;
    font-size:14px;
  }
  body[data-view=table] #table-view .betting-panel:has(.reference-bet-tools) .bet-shortcuts button[aria-pressed=true] { border-color:var(--bet-gold); }
  body[data-view=table] #table-view :is(.bet-shortcuts, #raise-button) .reference-bet-caption {
    position:static;
    justify-content:center;
    height:auto;
    padding:0;
    background:none;
    font-size:clamp(8px, 2.75vw, 11px);
  }
  body[data-view=table] #table-view :is(.bet-shortcuts, #raise-button) .reference-bet-preset {
    display:inline;
    min-width:0;
    padding:0;
    background:none;
    clip-path:none;
  }
  body[data-view=table] #table-view #raise-button .reference-bet-preset:empty { display:none; }
  body[data-view=table] #table-view :is(.bet-shortcuts, #raise-button) .reference-bet-verb { margin:0; }
  body[data-view=table] #table-view .reference-bet-value { font-size:14px; }
  body[data-view=table] #table-view .betting-panel .reference-bet-tools {
    inset:auto calc(var(--bet-column) + 4px) calc(var(--bet-height) + 5px) auto;
    translate:none;
    gap:4px;
  }
  body[data-view=table] #table-view .betting-panel .reference-bet-tools > button {
    width:44px;
    min-height:44px;
    border:1px solid var(--bet-border);
    border-radius:5px;
    background:var(--bet-face);
    box-shadow:var(--bet-shadow);
  }
  body[data-view=table] #table-view .reference-bet-tools > button::before { content:none; }
  body[data-view=table] #table-view .reference-bet-slider-toggle svg path { stroke-width:2.2; }
  body[data-view=table] #table-view .betting-panel[data-bet-editor=keypad] .betting-actions { visibility:visible; }
  body[data-view=table] #table-view .betting-panel[data-bet-can-raise=false] :is(.bet-shortcuts,.reference-bet-tools,#raise-button) { visibility:hidden; }

  body[data-view=table] #table-view .betting-panel .reference-bet-popover[data-mode]:not([hidden]) {
    inset:auto 0 calc(var(--bet-height) + 10px) auto;
    width:144px;
    margin:0;
    translate:none;
  }
  body[data-view=table] #table-view .reference-bet-popover[data-mode=keypad] .reference-bet-popover-head {
    grid-template-columns:minmax(0,1fr);
    gap:0;
  }
  body[data-view=table] #table-view .reference-bet-popover[data-mode=keypad] .reference-bet-editor-amount { min-height:32px; font-size:19px; }
  body[data-view=table] #table-view .reference-bet-popover[data-mode=keypad] .reference-bet-keypad {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:2px 4px;
    margin-block:1px;
  }
  body[data-view=table] #table-view .reference-bet-popover[data-mode=keypad] .reference-bet-key {
    min-height:34px;
    font-size:15px;
  }
  body[data-view=table] #table-view .reference-bet-popover[data-mode=keypad] .reference-bet-key::before {
    inset:0;
    border-radius:16px;
  }
  body[data-view=table] #table-view .reference-bet-popover[data-mode=keypad] .reference-bet-keypad-actions {
    display:grid;
    grid-column:1 / -1;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:4px;
  }
  body[data-view=table] #table-view .reference-bet-popover[data-mode=keypad] .reference-bet-keypad-actions > button {
    grid-area:auto;
    min-width:0;
    min-height:44px;
    border-radius:6px;
  }
  body[data-view=table] #table-view .reference-bet-popover[data-mode=keypad] .reference-bet-keypad-actions .reference-bet-close {
    background:linear-gradient(#a3212b, #74191f);
    border-color:#a65354;
    font-size:20px;
  }
  body[data-view=table] #table-view .reference-bet-popover[data-mode=keypad] .reference-bet-keypad-actions .reference-bet-apply { font-size:13px; }
  body[data-view=table] #table-view .reference-bet-popover[data-mode=keypad] .reference-bet-apply :is(.reference-bet-caption,.reference-bet-verb) { font-size:inherit; }
  body[data-view=table] #table-view .reference-bet-popover[data-mode=keypad] .reference-bet-apply .reference-bet-value:empty { display:none; }
  body[data-view=table] #table-view .betting-panel .reference-bet-popover[data-mode=slider]:not([hidden]) { width:136px; }
  body[data-view=table] #table-view .reference-bet-popover[data-mode=slider] .reference-bet-popover-head { inset:0 auto auto 0; }
  body[data-view=table] #table-view .reference-bet-popover[data-mode=slider] .reference-bet-close {
    border:0;
    background:transparent;
    box-shadow:none;
    color:#e1e6d9;
    font-size:19px;
  }
  body[data-view=table] #table-view .reference-bet-slider-row {
    --bet-track-height:clamp(104px, 25dvh, 166px);
    grid-template-columns:46px 74px 16px;
  }
  body[data-view=table] #table-view .reference-bet-slider-row input[type=range] { width:74px; }
  body[data-view=table] #table-view .reference-bet-slider-row .reference-bet-apply { justify-self:end; width:90px; }
  body[data-view=table] #table-view .reference-bet-slider-row .reference-bet-maximum {
    width:64px;
    min-height:36px;
    border:1px solid #e9b747;
    background:#1a1810;
    color:#ff6a73;
    font-size:13px;
    justify-self:end;
  }

  body[data-view=table] #table-view .reference-table-strip:has(.reference-preaction:not([hidden])) {
    min-height:44px;
    padding:0;
    background:transparent;
  }
  body[data-view=table] #table-view .reference-table-strip:has(.reference-preaction:not([hidden])) .reference-table-strip-status,
  body[data-view=table] #table-view .reference-preaction-default { display:none; }
  body[data-view=table] #table-view .reference-preaction-portrait { display:inline; }
  body[data-view=table] #table-view .reference-preaction:not([hidden]) {
    width:100%;
    min-height:44px;
    padding:0 2px;
    background:transparent;
    color:#e7f2ea;
    font-size:12px;
  }
}
@media (max-height:530px) and (orientation:landscape) {
  body[data-view=table] #table-view .table-column {
    display:grid;
    grid-template-columns:minmax(0,1fr) clamp(162px,30vw,276px);
    grid-template-rows:minmax(0,1fr);
  }
  body[data-view=table] #table-view .table-stage { --seat-side:max(39px,14%); }
  body[data-view=table] #table-view .table-stage .felt { inset:12% 4% 10%; }
  body[data-view=table] #table-view #seats .seat:is([data-position="2"],[data-position="3"],[data-position="4"]) { top:clamp(26px,11cqh,65px); }
  body[data-view=table] #table-view #seats .seat:is([data-position="0"],[data-position="1"],[data-position="5"]) { top:calc(100% - var(--seat-tail)); }
  body[data-view=table] #table-view #seats .seat.selected[data-position="0"] { left:39%; }
  body[data-view=table] #table-view #seats .seat.selected .seat-cards {
    left:calc(100% + 5px);
    top:1px;
    transform:none;
    translate:none;
  }
  body[data-view=table] #table-view .board { top:56%; }
  body[data-view=table] #table-view #seats .seat.selected .seat-bet {
    left:calc(50% - var(--seat-head)/2 - 14px);
  }
  body[data-view=table] #table-view #seats .seat[data-position="0"] .seat-action {
    top:100%;
    left:50%;
  }
  body[data-view=table] #table-view .board-cards>.card {
    width:clamp(26px,8cqw,38px);
    height:clamp(30px,12.8cqh,52px);
    font-size:clamp(18px,7cqh,25px);
  }
  body[data-view=table] #table-view :is(.board-cards,.seat.selected .seat-cards) .card.filled:not(.court-card) .card-rank-main {
    top:2px;
    left:3px;
    font-size:.68em;
  }
  body[data-view=table] #table-view :is(.board-cards,.seat.selected .seat-cards) .card.filled:not(.court-card) .card-suit {
    right:2px;
    bottom:2px;
    font-size:.78em;
  }
  body[data-view=table] #table-view .game-bottom-bar {
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:6px;
    padding:8px 7px;
    border-inline-start:1px solid #354537;
  }
  body[data-view=table] #table-view .betting-panel {
    padding:3px;
    border:0;
    background:none;
    box-shadow:none;
  }
  body[data-view=table] #table-view .betting-heading {
    position:static;
    margin-bottom:5px;
  }
  body[data-view=table] #table-view .bet-shortcuts {
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:3px;
  }
  body[data-view=table] #table-view .bet-shortcuts button {
    min-height:34px;
    padding:3px 0;
    font-size:10px;
  }
  body[data-view=table] #table-view .bet-shortcuts #bet-amount { grid-column:span 2; }
  body[data-view=table] #table-view .bet-shortcuts #bet-slider { grid-column:span 2; }
  body[data-view=table] #table-view .betting-actions {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:3px;
  }
  body[data-view=table] #table-view .betting-actions :is(#fold-button,#check-call-button,#raise-button) {
    min-height:44px;
    max-height:none;
    padding:4px 2px;
    font-size:11px;
  }
  body[data-view=table] #table-view .card-choice-panel .card-choice-button,
  body[data-view=table] #table-view .card-choice-panel .card-choice-button .card {
    width:clamp(34px,6vw,45px);
    height:clamp(47px,15dvh,62px);
  }
  body[data-view=table] #table-view .card-choice-panel .card-choice-cards { gap:4px; }
  body[data-view=table] #table-view .card-choice-panel .card-choice-actions {
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body[data-view=table] #table-view .card-choice-panel .card-choice-actions button { min-width:0; max-width:none; }
  body[data-view=table] #table-view .card-choice-panel #card-choice-cancel { grid-column:1 / -1; }
  body[data-view=table] #table-view .reference-table-strip { flex-wrap:wrap; justify-content:center; }
}

.display-currency { min-height: 33px; padding: 4px 7px; border-radius: 8px; flex: none; font-size: .72rem; font-weight: 750; white-space: nowrap; }
.club-topbar:has(>.display-currency:not([hidden])) { grid-template-columns: 44px minmax(0,1fr) auto auto 44px; }
.club-topbar:has(>.display-currency:not([hidden])):has(>#return-to-table:not([hidden])) { grid-template-columns: 44px minmax(0,1fr) auto auto 44px 44px; }
.chip-input-equivalent { display: block; color: inherit; opacity: .87; }

.display-currency::after { content: "▾"; margin-inline-start: 3px; }

@media all {
  body[data-home-theme=dark][data-view=lobby][data-lobby-game] #club-view .reference-wallets .wallet-chip {
    background:var(--trio-tint);border-color:var(--trio-edge);
  }
  body[data-home-theme=dark][data-view=lobby][data-lobby-game] #club-view .reference-wallets .wallet-chip :is(strong,small) { color:var(--trio-copper); }
}

/* Buttons stay outside the flow of the lobby and the toggle keeps its anchor. */
.reference-version-stack {
  display:grid; justify-items:center; align-content:center; gap:1px; min-inline-size:47px;
}
.reference-version-stack .club-web-version {min-inline-size:0}
.reference-version-stack .club-web-version small {font-size:10px; line-height:1.1}
.reference-version-stack .display-currency {min-block-size:24px; padding:2px 5px; font-size:11px}
.club-topbar:has(>.reference-version-stack) {
  block-size:auto; min-block-size:58px; grid-template-columns:44px minmax(0,1fr) auto 44px;
}
.club-topbar:has(>.reference-version-stack):has(>#return-to-table:not([hidden])) {
  grid-template-columns:44px minmax(0,1fr) auto 44px 44px;
}
.mobile-groups-header:has(>.reference-version-stack) {grid-template-columns:minmax(0,1fr) auto 44px}
html body[data-view=lobby] #reference-club-toggle.reference-floating {
  place-items:center; inline-size:48px; min-inline-size:48px;
  block-size:48px; min-block-size:48px; padding:0; border-radius:11px;
  right:max(10px,env(safe-area-inset-right)); bottom:max(10px,env(safe-area-inset-bottom));
  background:linear-gradient(var(--trio-dock-start),var(--trio-dock-end)); border-color:#454952;
  color:var(--trio-dock-copper); box-shadow:inset 0 1px #ffffff4d,0 2px 5px #0005;
  -webkit-tap-highlight-color:transparent;
}
body[data-view=lobby] #reference-club-toggle:not([hidden]) {display:grid}
html body[data-view=lobby] #reference-club-toggle.reference-floating[aria-expanded=true] {
  background:linear-gradient(#855839,#684432); border-color:#835c47;
}
html body[data-view=lobby] #reference-club-toggle.reference-floating:hover { outline:none; }
html body[data-view=lobby] #reference-club-toggle.reference-floating:focus-visible {
  outline:2px solid var(--trio-dock-blue); outline-offset:2px;
}
body[data-view=lobby] #reference-club-toggle svg {
  width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round;
}
body[data-view=lobby] #reference-club-tools[data-scoped]:not([hidden]) {
  display:flex; flex-direction:column-reverse; gap:5px;
  width:48px; max-inline-size:none; max-block-size:calc(100dvh - 72px - env(safe-area-inset-bottom));
  right:max(10px,env(safe-area-inset-right)); bottom:calc(max(10px,env(safe-area-inset-bottom)) + 54px);
  left:auto; translate:none; overflow:auto; overscroll-behavior:contain;
  padding:0; border:none; border-radius:0; background:none; box-shadow:none;
}
body[data-view=lobby] #reference-club-tools[data-scoped] button {
  position:relative; display:flex; flex:none; flex-direction:column; align-items:center; justify-content:center;
  inline-size:48px; min-inline-size:0; block-size:48px; min-block-size:48px; gap:2px; padding:2px;
  border:1px solid #454952; border-radius:11px; color:#f9f6f0;
  background:linear-gradient(var(--trio-dock-start),var(--trio-dock-end));
  box-shadow:inset 0 1px #ffffff4d,0 2px 6px #0005;
}
body[data-view=lobby] #reference-club-tools[data-scoped] button:is(:hover,:focus-visible) {border-color:var(--trio-dock-copper)}
body[data-view=lobby] #reference-club-tools[data-scoped] button:focus-visible {
  outline:2px solid var(--trio-dock-blue); outline-offset:-3px;
}
body[data-view=lobby] #reference-club-tools[data-scoped] svg {width:17px;height:17px}
body[data-view=lobby] #reference-club-tools[data-scoped] small {font-size:9px; white-space:nowrap;line-height:1.1}
@media(prefers-reduced-motion:no-preference) {
  body[data-view=lobby] #reference-club-tools:not([hidden]) button {
    animation:club-tool-open 160ms ease-out both;
    animation-delay:calc(var(--club-tool-index,0) * 24ms);
  }
  @keyframes club-tool-open {
    from {opacity:0;transform:translateY(5px)}
  }
}

/* Native controls follow the current document palette. */
body[data-home-theme=dark] { color-scheme:dark; }
body[data-home-theme=light] { color-scheme:light; }
/* Reuse the light category ink on the active category's pale surface. */
html body[data-home-theme=light] #club-view #club-card-toggle {
  --club-selected-text:var(--club-category-text);
}

/* Grupos, Club and club tools use the same mobile column on wide screens. */
:root { --club-mobile-width: 480px; }

body[data-view=lobby] #app,
.mobile-groups-page {
  box-sizing: border-box;
  max-inline-size: var(--club-mobile-width);
  margin-inline: auto;
}

@media (min-width: 481px) {
  body[data-view=lobby] #app { padding-inline: 12px; }

  .mobile-groups-page {
    --group-canvas: min(calc(var(--club-mobile-width) - 40px), 420px);
  }

  body[data-view=lobby] :is(#reference-club-toggle,#reference-club-tools[data-scoped]:not([hidden])) {
    right: calc((100% - var(--club-mobile-width)) / 2 + 10px);
  }

  html body dialog.club-management-dialog:not(.account-inbox,.account-inbox-detail,.union-counter-detail),
  html body dialog.club-network-web,
  #union-dialog-r44 {
    box-sizing: border-box;
    max-inline-size: var(--club-mobile-width);
    margin-inline: auto;
  }

  #union-dialog-r44 .union-club-row {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  #union-dialog-r44 .union-club-actions {
    max-width: none;
    justify-content: flex-start;
    padding-inline-start: 64px;
  }

  #union-dialog-r44 .union-club-actions button { font-size: 11px; }
}

@media (any-pointer: fine) {
  .mobile-groups-carousel[data-mouse-dragging] {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
    user-select: none;
  }
}
