/* ── TABLE THEME ───────────────────────────────────────────────────────────────────────────
   Visual polish for the online table (table.html) and the hand-history viewer (history.html).
   Loaded AFTER style.css and the layout sheet (style6.css / styleHU.css), so everything here is
   an override. Styling only — no layout geometry changes (the rail thickness and the felt mask
   percentages in the layout sheets are untouched). To undo the whole look, remove the
   <link href="/table-theme.css"> line from those two pages.
   ──────────────────────────────────────────────────────────────────────────────────────────── */

/* Room: a soft pool of light behind the table instead of a flat background. It goes on <html>
   (which paints the whole window) — style.css makes html a centred flex column, so <body> is only
   as wide as the table on a wide screen; a background on body showed up as a darker box there.
   The edges fade back to style.css's own #0e1a12 so nothing reads as a separate panel. */
html {
  background: radial-gradient(ellipse 75% 70% at 50% 42%, #16301f 0%, #112117 45%, #0e1a12 75%) fixed #0e1a12;
}
body { background: transparent; }

/* ── 1. Rail: black leather (a soft top-lit sheen, not flat black) ──
   .table6's own background IS the rail; .table6::after repaints the same rail above the seats
   (see style6.css), so both get the identical gradient to stay seamless. */
.table6,
.table6::after {
  background: linear-gradient(180deg, #2b2b2b 0%, #151515 40%, #0a0a0a 70%, #040404 100%);
}
.table6 {
  box-shadow:
    0 0 0 2px #000,                    /* seam */
    0 0 0 9px #1b1b1b,                 /* outer leather roll */
    0 0 0 10px rgba(255, 255, 255, .06),/* faint sheen on the outside of the roll */
    0 0 0 13px #050505,                /* base */
    0 34px 80px rgba(0, 0, 0, .85);    /* drop shadow onto the room */
}

/* ── 2. Felt: centre spotlight falling off to darker edges, a fine cloth grain, and an inner
   shadow along the edge so the rail looks raised. ── */
.table6::before {
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    radial-gradient(ellipse 62% 58% at 50% 46%, #2c7448 0%, #1d5534 42%, #123821 75%, #0b2516 100%);
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, .45),       /* dark lip where the felt meets the rail */
    inset 0 10px 40px rgba(0, 0, 0, .45),     /* rail casts a shadow onto the felt */
    inset 0 0 90px rgba(0, 0, 0, .35);
}

/* Betting line: a quiet off-white hairline (softer than the layout sheet's white). */
.betting-line {
  border: 1.5px solid rgba(255, 255, 255, .16);
}

/* ── 5. Pot: gold amount on a darker pill so the money is easy to follow ── */
.pot-pill {
  background: rgb(6, 14, 9);
  border: 1px solid rgba(210, 191, 85, .38);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
  padding: 5px 15px 5px 10px;
}
.pot-lbl { color: rgba(210, 191, 85, .65); }
.pot-amt { color: #f3d978; font-weight: 700; font-size: 1.12rem; }
.chip-amt { color: #f6e4a4; font-weight: 600; background: rgb(6, 14, 9); }

/* ── 6. Action buttons in the house colours: gold raise, green call/check, dark fold, with the
   same small lift on hover as the home screen buttons ── */
.action-buttons button {
  font-weight: 700;
  border-radius: 9px;
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.action-buttons button:hover:not(:disabled) { transform: translateY(-2px); }
.action-buttons button:active:not(:disabled) { transform: translateY(0) scale(.97); }
.btn-raise { background: #D2BF55; color: #16241a; box-shadow: 0 6px 18px rgba(210, 191, 85, .2); }
.btn-raise:hover:not(:disabled) { filter: brightness(1.06); box-shadow: 0 9px 22px rgba(210, 191, 85, .3); }
.btn-call,
.btn-check { background: #2a6340; color: #f4eedc; border: 1px solid #3a7d52; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.btn-call:hover:not(:disabled),
.btn-check:hover:not(:disabled) { filter: none; background: #306f48; }
.btn-fold { background: #7a2a24; color: #fde3dc; border: 1px solid #9a3a32; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.btn-fold:hover:not(:disabled) { filter: none; background: #8a312a; }

/* Sit In / Stay In / Add Chips (shown while sitting out) — the same green as Call. Its colours are
   inline in table.html, hence !important. */
#big-sitin-btn6 {
  background: #2a6340 !important;
  color: #f4eedc !important;
  border: 1px solid #3a7d52 !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3) !important;
  font-weight: 700 !important;
  transition: background .15s, transform .15s, box-shadow .15s;
}
#big-sitin-btn6:hover { background: #306f48 !important; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .35) !important; }
#big-sitin-btn6:active { transform: translateY(0) scale(.97); }

/* ── 7. Nameplate: the player's first letter on a cream tile (with its letter score, like the
   logo) poking out of the left of the plate. The plate is a rounded rectangle with a gold outline
   while it's that player's turn; the turn clock stays as the bar along the bottom of the plate.
   The bottom of the hole cards tucks BEHIND the plate (plate layered above the cards). ── */
.seat6-cards { position: relative; z-index: 1; }
.seat6-plate-wrap { z-index: 3; }
.seat6-nameplate {
  border-radius: 12px;
  background: rgb(10, 18, 13);
}
.seat6-avatar.tile-avatar {
  left: -12px;
  width: 38px;
  height: 43px;
  border-radius: 7px;
  background: linear-gradient(#f6eed8, #e6d7ae) !important;   /* beats the per-name colour set inline */
  color: #1d1a12 !important;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .5), inset 0 -3px 0 rgba(0, 0, 0, .13);
  font-size: 1.4rem;
  font-weight: 800;
  transform: translateY(-50%) rotate(-4deg);
}
.seat6-avatar.tile-avatar sub {
  position: absolute;
  right: 4px;
  bottom: 2px;
  font-size: .6rem;
  font-weight: 700;
  color: rgba(29, 26, 18, .55);
}
.seat6-stack { color: #e6cf6a; }         /* gold stack, like the pot */
.seat6.active .seat6-stack { color: #f3d978; }
.seat6.active .seat6-name { color: #fff3c0; }
.seat6.active .seat6-nameplate {
  border-color: #d2bf55;
  box-shadow: 0 0 0 2px rgba(210, 191, 85, .25), 0 0 20px rgba(210, 191, 85, .3);
}
@media (max-width: 480px) {
  .seat6-avatar.tile-avatar { width: 28px; height: 32px; left: -3px; font-size: 1.05rem; border-radius: 6px; }   /* tucked in so edge seats don't touch the screen side */
  .seat6-avatar.tile-avatar sub { right: 3px; bottom: 1px; font-size: .5rem; }
}

/* ── 8. Bet chip: one small round chip per bet, coloured by bet size (paintChipStack in
   table-client.js): black 100bb+ · green 25bb+ · red 5bb+ · white 1bb+ · blue under 1bb.
   No stacking — just the chip and the amount. ── */
.chip-disc.stacked {
  width: auto;
  height: auto;
  background: none;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
}
.chip-disc.stacked::after { display: none; }
.cchip {
  --side: color-mix(in srgb, var(--c) 72%, #000);
  display: block;
  width: 17px;
  height: 14px;
  margin-bottom: 3px;                               /* room for the chip's edge below it */
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px var(--e), 0 2px 0 var(--side), 0 3px 0 var(--e), 0 4px 4px rgba(0, 0, 0, .4);
}
@media (max-width: 480px) {
  .cchip { width: 14px; height: 12px; }
}

/* ── 9. Dealer button: a raised acrylic puck instead of a flat disc — glossy cream face with a
   soft top-left highlight, a thin black inset ring around the "D", a visible edge underneath and a
   shadow on the felt. (left/top/transform are set inline by the positioner; not touched here.) ── */
.seat6-dealer {
  width: 28px;
  height: 28px;
  border: none;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .95) 0, rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 50% 50%, #fbf6e8 0, #efe6cc 62%, #ddd0ab 100%);
  box-shadow:
    inset 0 0 0 2.5px #f7f0dc,                 /* bright rim */
    inset 0 0 0 4px #111,                      /* thin black ring inside the rim */
    0 2px 0 #b9a676,                           /* edge of the puck */
    0 3px 0 #8a7a50,                           /* bottom of the edge */
    0 5px 8px rgba(0, 0, 0, .5);               /* shadow on the felt */
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #2a2010;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
@media (max-width: 480px) {
  .seat6-dealer { width: 22px; height: 22px; font-size: .64rem; }
}

/* ── 10. Balance pill (6-max tables): the guest wallet balance, top right ── */
#ot-balance {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 6px;
  padding: 6px 12px;
  border-radius: 9px;
  background: rgb(10, 18, 13);
  border: 1px solid rgba(210, 191, 85, .35);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #f3d978;
  white-space: nowrap;
}
#ot-balance .lbl { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
@media (max-width: 480px) { #ot-balance { padding: 4px 9px; font-size: .88rem; } #ot-balance .lbl { display: none; } }

/* ── 11. Sit Down / Add Chips window — same look as the lobby's vs-bot windows ── */
.cm-panel { background: #111c14; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 18px 18px 20px; width: min(94vw, 380px); box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 36px); overflow-y: auto; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.cm-head { position: relative; text-align: center; padding: 2px 34px 2px; }
.cm-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1.35rem; font-weight: 700; letter-spacing: .04em; color: #D2BF55; line-height: 1.2; }
.cm-sub { font-family: 'Barlow', sans-serif; font-size: .82rem; color: rgba(255, 255, 255, .5); margin-top: 2px; }
.cm-sub:empty { display: none; }
.cm-close { position: absolute; right: -6px; top: -2px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: none; border: none; color: rgba(255, 255, 255, .45); cursor: pointer; transition: background .15s, color .15s; }
.cm-close:hover { background: rgba(255, 255, 255, .07); color: #f0e8d0; }

.cm-stats { display: flex; gap: 8px; }
.cm-stats:not(:has(.cm-stat[style*="flex"])) { display: none; }
.cm-stat { flex: 1; flex-direction: column; gap: 3px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; padding: 9px 12px; display: flex; }
.cm-stat span { font-family: 'Barlow Condensed', sans-serif; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.cm-stat b { font-family: 'Barlow Condensed', sans-serif; font-size: 1.2rem; font-weight: 700; color: #f4eedc; }

.cm-amount { display: flex; flex-direction: column; gap: 10px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 14px; }
.cm-amount-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cm-label { font-family: 'Barlow Condensed', sans-serif; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.cm-money { display: flex; align-items: center; gap: 2px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .12); border-radius: 9px; padding: 4px 10px; }
.cm-money span { font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; font-weight: 700; color: #e6cf6a; }
.cm-money input { width: 92px; font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; font-weight: 700; color: #f4eedc; background: none; border: none; outline: none; text-align: right; -moz-appearance: textfield; }
.cm-money input::-webkit-outer-spin-button, .cm-money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cm-money:focus-within { border-color: #D2BF55; }
.cm-slider { width: 100%; accent-color: #D2BF55; cursor: pointer; margin: 2px 0; }
.cm-range { display: flex; justify-content: space-between; font-family: 'Barlow Condensed', sans-serif; font-size: .78rem; letter-spacing: .04em; color: rgba(255, 255, 255, .35); }
.cm-presets { display: flex; gap: 6px; }
.cm-presets button { flex: 1; padding: 7px 4px; border-radius: 8px; cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .7); transition: background .15s, border-color .15s; }
.cm-presets button:hover { background: rgba(210, 191, 85, .12); border-color: rgba(210, 191, 85, .45); color: #e8d77a; }

.cm-total { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; font-family: 'Barlow Condensed', sans-serif; }
.cm-total span { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.cm-total b { font-size: 1.35rem; font-weight: 700; color: #8fe29c; }
.cm-note { font-family: 'Barlow', sans-serif; font-size: .8rem; color: rgba(255, 255, 255, .45); text-align: center; margin-top: -6px; }

.cm-atr { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .07); padding-top: 12px; }
.cm-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.cm-switch b { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: .98rem; font-weight: 700; letter-spacing: .03em; color: #f4eedc; }
.cm-switch small { display: block; font-family: 'Barlow', sans-serif; font-size: .76rem; color: rgba(255, 255, 255, .45); }
.cm-switch input { position: absolute; opacity: 0; pointer-events: none; }
.cm-switch i { position: relative; flex-shrink: 0; width: 38px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .14); transition: background .15s; }
.cm-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #f4eedc; transition: transform .15s; }
.cm-switch input:checked + i { background: #2a6340; }
.cm-switch input:checked + i::after { transform: translateX(16px); }
.cm-switch input:focus-visible + i { box-shadow: 0 0 0 2px #D2BF55; }
.cm-atr-settings { flex-direction: column; gap: 8px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px 14px; }
.cm-atr-label { font-family: 'Barlow Condensed', sans-serif; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-top: 2px; }
.cm-radio { display: flex; align-items: center; gap: 9px; cursor: pointer; font-family: 'Barlow', sans-serif; font-size: .86rem; color: rgba(255, 255, 255, .75); }
.cm-radio input[type=radio] { accent-color: #D2BF55; width: 15px; height: 15px; margin: 0; cursor: pointer; }
.cm-radio input[type=number] { width: 52px; font-family: 'Barlow Condensed', sans-serif; font-size: .9rem; font-weight: 600; color: #f0e8d0; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; padding: 4px 6px; text-align: center; outline: none; -moz-appearance: textfield; }
.cm-radio input[type=number]:focus { border-color: #D2BF55; }
.cm-radio em { font-style: normal; font-size: .8rem; color: rgba(255, 255, 255, .45); }

.cm-confirm { width: 100%; padding: 14px; border-radius: 11px; border: none; cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-size: 1.08rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: #D2BF55; color: #16241a; box-shadow: 0 8px 22px rgba(210, 191, 85, .18); transition: filter .15s, transform .15s; }
.cm-confirm:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.cm-confirm:active:not(:disabled) { transform: translateY(0) scale(.985); }

/* Free refill offer inside the Sit Down window (only when the wallet can't cover the minimum) */
.cm-refill { align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 11px; background: rgba(210, 191, 85, .08); border: 1px solid rgba(210, 191, 85, .4); }
.cm-refill span { font-family: 'Barlow', sans-serif; font-size: .84rem; line-height: 1.35; color: rgba(255, 255, 255, .75); }
.cm-refill b { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: .98rem; letter-spacing: .03em; color: #f3d978; }
.cm-refill button { flex-shrink: 0; padding: 8px 12px; border-radius: 8px; border: none; cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #D2BF55; color: #16241a; }

/* ── 12. Table chat: button with unread badge (top left), panel, and speech bubbles over seats ── */
#ot-chat-btn { position: relative; }
#ot-chat-badge {
  display: none; position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  align-items: center; justify-content: center; border-radius: 999px; background: #e5484d; color: #fff;
  font: 700 .66rem/1 'Barlow', sans-serif; border: 2px solid #0d1710; box-sizing: border-box;
}
#ot-chat {
  position: fixed; top: 56px; left: 12px; z-index: 500;   /* above seats and table chrome, below pop-up windows (600+) */ width: 320px; height: min(380px, calc(100vh - 140px));
  display: none; flex-direction: column; border-radius: 14px; overflow: hidden;
  background: #0e1811; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
}
#ot-chat.open { display: flex; animation: ocIn .18s ease-out; }
@keyframes ocIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
#ot-chat .oc-head {
  display: flex; align-items: center; justify-content: space-between; padding: 9px 10px 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font: 700 .82rem 'Barlow Condensed', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6);
}
#ot-chat .oc-close { width: 28px; height: 28px; border: none; border-radius: 8px; background: none; color: rgba(255, 255, 255, .5); font-size: 1.3rem; line-height: 1; cursor: pointer; }
#ot-chat .oc-close:hover { background: rgba(255, 255, 255, .07); color: #f0e8d0; }
#ot-chat .oc-list { flex: 1; overflow-y: auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; overscroll-behavior: contain; }
#ot-chat .oc-empty { margin: auto; font: 500 .84rem 'Barlow', sans-serif; color: rgba(255, 255, 255, .35); }
#ot-chat .oc-msg { font: 400 .88rem/1.35 'Barlow', sans-serif; color: rgba(255, 255, 255, .85); word-wrap: break-word; overflow-wrap: anywhere; }
#ot-chat .oc-name { display: inline; padding: 0; margin-right: 6px; border: none; background: none; cursor: pointer; font: 700 .88rem 'Barlow', sans-serif; color: #e6cf6a; }
#ot-chat .oc-name:hover { text-decoration: underline; }
#ot-chat .oc-msg.mine .oc-name { color: #8fd0ff; cursor: default; text-decoration: none; }
#ot-chat .oc-msg.muted .oc-text { font-style: italic; color: rgba(255, 255, 255, .3); }
#ot-chat .oc-err { display: none; padding: 6px 12px; font: 500 .8rem 'Barlow', sans-serif; color: #ff8a80; }
#ot-chat .oc-form { gap: 6px; padding: 8px; border-top: 1px solid rgba(255, 255, 255, .08); }
#ot-chat .oc-form input {
  flex: 1; min-width: 0; height: 38px; padding: 0 11px; border-radius: 10px; outline: none;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .14); color: #f4eedc; font: 500 16px 'Barlow', sans-serif;
}
#ot-chat .oc-form input:focus { border-color: #D2BF55; }
#ot-chat .oc-form { position: relative; }
#ot-chat .oc-count { position: absolute; right: 56px; top: 50%; transform: translateY(-50%); font: 600 .74rem 'Barlow', sans-serif; color: rgba(255, 255, 255, .4); pointer-events: none; }
#ot-chat .oc-count.low { color: #ff8a80; }
#ot-chat .oc-form input { padding-right: 34px; }
#ot-chat .oc-form button { width: 40px; height: 38px; border: none; border-radius: 10px; background: #D2BF55; color: #16241a; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#ot-chat .oc-lock { align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-top: 1px solid rgba(255, 255, 255, .08); font: 500 .84rem 'Barlow', sans-serif; color: rgba(255, 255, 255, .6); }
#ot-chat .oc-lock a { flex-shrink: 0; padding: 7px 12px; border-radius: 9px; background: #D2BF55; color: #16241a; text-decoration: none; font: 700 .8rem 'Barlow Condensed', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.chat-bubble {
  position: absolute; z-index: 30; max-width: 170px; width: max-content;   /* above bet chips (15) and seats (12) */
  padding: 6px 10px; border-radius: 12px; background: #f6eed8; color: #1d1a12;
  font: 600 .8rem/1.3 'Barlow', sans-serif; text-align: left; box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(-50%) scale(.94); transition: opacity .2s, transform .2s; pointer-events: none;
}
.chat-bubble::after { content: ''; position: absolute; top: 50%; margin-top: -6px; border: 6px solid transparent; }
.chat-bubble.to-right { transform-origin: left center; }
.chat-bubble.to-right::after { right: 100%; border-right-color: #f6eed8; }
.chat-bubble.to-left { transform-origin: right center; }
.chat-bubble.to-left::after { left: 100%; border-left-color: #f6eed8; }
.chat-bubble.show { opacity: 1; transform: translateY(-50%) scale(1); }
@media (max-width: 700px) {
  #ot-chat { left: 8px; right: 8px; width: auto; top: 52px; height: min(46vh, 360px); }
  .chat-bubble { max-width: 130px; font-size: .74rem; padding: 5px 8px; }
}

/* ── 13. House bot: red "send away" arrow on its nameplate, and its chat styling ── */
.seat6-plate-wrap { position: relative; }
.bot-kick {
  position: absolute; top: -10px; right: -10px; z-index: 7;   /* on the plate wrapper, above the plate and cards */ width: 26px; height: 26px; padding: 0;
  display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer;
  background: #2a1513; border: 1px solid rgba(224, 88, 74, .7); color: #ff6f5e;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .45); transition: transform .12s, background .12s;
}
.bot-kick:hover { background: #3a1a17; transform: scale(1.08); }
.bot-kick:disabled { opacity: .5; cursor: default; transform: none; }
#ot-chat .oc-msg.bot .oc-name { color: #9fe3ff; }
.chat-bubble.from-bot { max-width: 220px; }
@media (max-width: 700px) { .bot-kick { width: 24px; height: 24px; top: -8px; right: -8px; } }

/* ── 14. Table emojis: the picker under the smiley button, and the pop-up over a seat ── */
#ot-emotes {
  display: none; position: fixed; z-index: 520; gap: 4px; padding: 6px; border-radius: 14px;
  background: #0e1811; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}
#ot-emotes.open { display: flex; animation: emIn .15s ease-out; }
@keyframes emIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
#ot-emotes button {
  width: 48px; height: 48px; border: none; border-radius: 10px; background: none; cursor: pointer;
  font-size: 30px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .12s, transform .12s;
}
#ot-emotes button:hover { background: rgba(255, 255, 255, .08); transform: scale(1.12); }
.emote-pop {
  position: absolute; z-index: 31; font-size: 54px; line-height: 1; pointer-events: none;
  transform: translate(-50%, -50%); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
  animation: emotePop 2.6s ease-out forwards;
}
@keyframes emotePop {
  0%   { opacity: 0; transform: translate(-50%, -20%) scale(.3); }
  12%  { opacity: 1; transform: translate(-50%, -60%) scale(1.25); }
  22%  { transform: translate(-50%, -55%) scale(.95); }
  30%  { transform: translate(-50%, -60%) scale(1.05); }
  75%  { opacity: 1; transform: translate(-50%, -95%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -130%) scale(.9); }
}
@media (prefers-reduced-motion: reduce) { .emote-pop { animation: emoteFade 2.2s ease-out forwards; } @keyframes emoteFade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } } }
@media (max-width: 700px) { .emote-pop { font-size: 42px; } #ot-emotes button { width: 44px; height: 44px; font-size: 28px; } }

/* ── 15. All-in equity: chance-of-winning badge on each live nameplate during a run-out ── */
.eq-badge {
  position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%); z-index: 6;
  min-width: 44px; padding: 2px 8px; border-radius: 999px; text-align: center;
  font-weight: 800; font-size: .78rem; line-height: 1.25; font-variant-numeric: tabular-nums; letter-spacing: .02em;
  background: #1b1f26; color: #d7dde6; border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .45); pointer-events: none;
  animation: eqIn .25s ease-out; transition: opacity .2s;
}
.eq-badge.stale { opacity: .45; }
.eq-badge.lead { background: #143522; color: #8ff0b0; border-color: rgba(110, 220, 150, .65); }
@keyframes eqIn { from { opacity: 0; transform: translate(-50%, 4px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 700px) { .eq-badge { min-width: 38px; padding: 1px 6px; font-size: .7rem; bottom: -9px; } }

/* ── 15b. Chat: report a message (small flag at the end of other players' messages) ── */
#ot-chat .oc-report { display: inline-flex; vertical-align: middle; margin-left: 6px; padding: 2px; border: none; background: none; cursor: pointer;
  color: rgba(255, 255, 255, .28); border-radius: 4px; }
#ot-chat .oc-report:hover { color: #ff8a80; background: rgba(255, 255, 255, .06); }
#ot-chat .oc-report.done { color: #ff8a80; cursor: default; }
#ot-chat .oc-err.note { color: #9fe3ac; }

/* ── 16. Empty seats take less room ──
   Once you're seated an empty seat is just a faint dashed dot (you can't sit twice). While you're
   watching, phones get a small round "+ Sit" button instead of a player-sized box; desktop keeps
   the "Take Seat" pill. The seat stays where it is, so nothing else on the table moves. */
.seat6-empty-label .es-short { display: none; }
.seat6.empty-passive .seat6-nameplate {
  width: 16px; min-width: 16px; max-width: 16px; height: 16px; margin: 0 auto;
  border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .22); background: transparent; box-shadow: none;
}
.seat6.empty-passive .seat6-empty { min-height: 0; padding: 0; height: 100%; }
.seat6.empty-passive .seat6-empty-label { display: none; }
.seat6.empty-passive .timer-wrap { display: none; }
@media (max-width: 700px) {
  .seat6.empty6:not(.empty-passive) .seat6-nameplate {
    width: 48px; min-width: 48px; max-width: 48px; height: 48px; margin: 0 auto;
    border-radius: 50%; border: 1.5px dashed rgba(210, 191, 85, .55); background: rgba(10, 18, 13, .85);
  }
  .seat6.empty6:not(.empty-passive) .seat6-empty { min-height: 0; padding: 0; height: 100%; }
  .seat6.empty6:not(.empty-passive) .seat6-empty-label .es-long { display: none; }
  .seat6.empty6:not(.empty-passive) .seat6-empty-label .es-short { display: flex; flex-direction: column; align-items: center; line-height: 1; font-size: .62rem; letter-spacing: .08em; }
  .seat6.empty6:not(.empty-passive) .seat6-empty-label .es-short b { font-size: 1.05rem; font-weight: 700; margin-bottom: 1px; }
  .seat6.empty6:not(.empty-passive) .timer-wrap { display: none; }
}

/* ── 17. Tutorial coach (tutorial.js) ──
   A short card that sits next to what it's talking about, a gold pulse on that thing, a nudge when
   you press a button the lesson isn't teaching yet, and the end-of-lesson card. Distractions
   (hand history, add chips, sit out, emojis) are hidden while a lesson runs. */
body.tutorial #ot-history-btn, body.tutorial #ot-addchips, body.tutorial #sitout-slot6, body.tutorial #ot-emote-btn,
body.tutorial .bot-topup, body.tutorial .bot-kick { display: none !important; }
#tut-card {
  position: fixed; z-index: 1200; box-sizing: border-box; padding: 14px 16px 12px; border-radius: 14px;
  background: #101a13; border: 1px solid rgba(210, 191, 85, .55); box-shadow: 0 14px 36px rgba(0, 0, 0, .6);
  font-family: 'Barlow', sans-serif; color: #efe7cf; opacity: 0; pointer-events: none; transform: translateY(6px);
  transition: opacity .2s, transform .2s, top .25s;
}
#tut-card.show { opacity: 1; pointer-events: auto; transform: none; }
#tut-card.nudge { animation: tutNudge .35s; }
@keyframes tutNudge { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
#tut-card .tut-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
#tut-card .tut-step { font-family: 'Barlow Condensed', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #d2bf55; }
#tut-card .tut-skip { background: none; border: 0; padding: 2px 4px; font: 600 .75rem 'Barlow', sans-serif; color: rgba(255, 255, 255, .45); cursor: pointer; }
#tut-card .tut-skip:hover { color: #fff; }
#tut-card .tut-text { margin: 0; font-size: .95rem; line-height: 1.5; }
#tut-card .tut-btns { display: flex; justify-content: flex-end; margin-top: 10px; }
#tut-card .tut-next { background: #d2bf55; color: #16241a; border: 0; border-radius: 9px; padding: 8px 18px; font: 700 .85rem 'Barlow Condensed', sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
/* The glow stays at the element's own layer: lifting it would pull your hole cards in front of
   your nameplate (normally their bottom tucks behind it). Hole cards glow tile by tile instead. */
.tut-hl { border-radius: 10px; animation: tutPulse 1.4s ease-in-out infinite; }
.seat6-cards.tut-hl { animation: none; }
.seat6-cards.tut-hl .card { animation: tutPulse 1.4s ease-in-out infinite; }
@keyframes tutPulse { 0%, 100% { box-shadow: 0 0 0 2px rgba(210, 191, 85, .9), 0 0 0 6px rgba(210, 191, 85, .15); } 50% { box-shadow: 0 0 0 2px rgba(210, 191, 85, .9), 0 0 0 12px rgba(210, 191, 85, 0); } }
#tut-end { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 18px;
  background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
#tut-end.show { opacity: 1; }
#tut-end .tut-end-card { width: min(92vw, 380px); box-sizing: border-box; padding: 24px 22px; border-radius: 16px; text-align: center;
  background: #111c14; border: 1px solid rgba(210, 191, 85, .45); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); font-family: 'Barlow', sans-serif; }
#tut-end .tut-end-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(210, 191, 85, .14); color: #e6cf6a;
  font: 700 .74rem 'Barlow Condensed', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
#tut-end h2 { margin: 12px 0 6px; font: 800 1.7rem 'Barlow Condensed', sans-serif; color: #f4eedc; letter-spacing: .02em; }
#tut-end p { margin: 0 0 18px; font-size: .95rem; line-height: 1.5; color: rgba(255, 255, 255, .7); }
#tut-end .tut-end-note { margin: -6px 0 18px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  font-size: .84rem; line-height: 1.5; color: rgba(255, 255, 255, .6); text-align: left; }
#tut-end .tut-end-btns { display: flex; flex-direction: column; gap: 8px; }
#tut-end a { display: block; padding: 12px; border-radius: 11px; text-decoration: none; font: 700 .95rem 'Barlow Condensed', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
#tut-end .tut-primary { background: #d2bf55; color: #16241a; }
#tut-end .tut-end-row { display: flex; gap: 8px; }
#tut-end .tut-end-row a { flex: 1; }
#tut-end .tut-secondary { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .14); }

/* ── 18. PRE-TURN ACTIONS AND BEST WORD ──────────────────────────────────────────────────────── */
/* Sits where the action buttons go while someone else is acting, same height so nothing shifts. */
#preact6 { flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 8px; min-height: 96px; margin-left: auto; box-sizing: border-box; }
#preact6 .pa-btns { display: flex; gap: 6px; }
#preact6 .pa-btn { position: relative; width: auto; min-width: 104px; height: 42px; padding: 0 8px 0 26px; border-radius: 8px; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .78);
  font: 600 .86rem 'Barlow Condensed', sans-serif; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .12s, border-color .12s, color .12s; }
/* tick box drawn inside each toggle */
#preact6 .pa-btn::before { content: ''; position: absolute; left: 9px; top: 50%; width: 11px; height: 11px; margin-top: -6.5px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .4); }
#preact6 .pa-btn.on { background: rgba(210, 191, 85, .16); border-color: #d2bf55; color: #f3d978; }
#preact6 .pa-btn.on::before { background: #d2bf55; border-color: #d2bf55; box-shadow: inset 0 0 0 2px #16241a; }
@media (max-width: 480px) {
  #preact6 { min-height: 84px; gap: 7px; }
  #preact6 .pa-btns { gap: 4px; }
  #preact6 .pa-btn { min-width: 88px; height: 38px; font-size: .74rem; padding: 0 5px 0 21px; letter-spacing: .03em; }
  #preact6 .pa-btn::before { left: 7px; width: 9px; height: 9px; margin-top: -5.5px; }
}
@media (max-width: 360px) { #preact6 .pa-btn { min-width: 80px; font-size: .7rem; } }

/* Your current best word, just under your own nameplate: mini tiles like the board's, with the
   letters from your own two cards in gold, and the score in a gold badge */
#best-word6 { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 7px; z-index: 6; pointer-events: none;
  display: flex; align-items: center; gap: 6px; padding: 4px 5px 4px 9px; border-radius: 9px; white-space: nowrap;
  background: rgb(6, 13, 8); border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
  font-family: 'Barlow Condensed', sans-serif; }
#best-word6 .bw-l { font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(210, 191, 85, .85); }
#best-word6 .bw-tiles { display: flex; gap: 2px; }
#best-word6 .bw-t { position: relative; width: 19px; height: 23px; border-radius: 3px; display: flex; align-items: center; justify-content: center;
  background: #f8f3e6; border: 1px solid #d8c8a0; box-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  font-style: normal; font-size: .86rem; font-weight: 700; line-height: 1; color: #1a1008; padding-right: 5px; box-sizing: border-box; }
#best-word6 .bw-t.hole { background: linear-gradient(#f3d978, #d9c25a); border-color: #b9a240; }
#best-word6 .bw-t sub { position: absolute; right: 2px; bottom: 2px; font-size: .55rem; font-weight: 800; line-height: 1; color: #6a4830; }
#best-word6 .bw-s { gap: 2px; height: 23px; padding: 0 6px; box-sizing: border-box; border-radius: 5px; display: flex; align-items: center; justify-content: center;
  background: #d2bf55; color: #16241a; font-size: .86rem; font-weight: 800; }
#best-word6 .bw-s small { font-size: .58rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
/* Your buttons ignore taps for a beat right after replacing the pre-turn toggles */
#action-cluster6.pa-guard { pointer-events: none; }

/* ── 19. SHOW YOUR HAND ──────────────────────────────────────────────────────────────────────── */
/* After a hand ends: Show D / Show E / Show both, where the action buttons usually sit. */
#show6 { align-items: flex-end; justify-content: flex-end; gap: 6px; min-height: 96px; margin-left: auto; box-sizing: border-box; padding-bottom: 2px; }
#show6 .sh-btn { min-width: 92px; height: 42px; padding: 0 12px; border-radius: 8px; cursor: pointer; white-space: nowrap;
  background: rgba(210, 191, 85, .1); border: 1px solid rgba(210, 191, 85, .55); color: #f3d978;
  font: 600 .86rem 'Barlow Condensed', sans-serif; letter-spacing: .05em; text-transform: uppercase; }
#show6 .sh-btn.both { background: #d2bf55; border-color: #d2bf55; color: #16241a; font-weight: 700; }
#show6 .sh-btn:active { transform: scale(.97); }
@media (max-width: 480px) {
  #show6 { min-height: 84px; gap: 4px; }
  #show6 .sh-btn { min-width: 84px; height: 38px; font-size: .76rem; padding: 0 8px; }
}
/* Your own letters after you fold: still there for you, dimmed */
.seat6-cards.folded-own .card { opacity: .38 !important; filter: grayscale(.5); }   /* !important: the deal-in animation would otherwise hold it at full */
/* Letters shown after the hand, with a small tag; on your own seat a letter you kept back stays dim */
.seat6-cards.has-shown { position: relative; z-index: 3; }   /* tossed cards fly out over the nameplate */
.seat6-cards .shown-fan { display: flex; gap: 3px; position: relative; will-change: transform; }
.seat6-cards .shown-fan .card { transform-origin: 50% 90%; box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.seat6-cards .card.unshown { opacity: .35 !important; filter: grayscale(.5); }
.seat6-cards .shown-tag { position: absolute; left: 50%; top: -6px; transform: translate(-50%, -100%); z-index: 4; white-space: nowrap; pointer-events: none;
  padding: 2px 8px; border-radius: 999px; background: #d2bf55; color: #16241a; box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
  font: 700 .62rem 'Barlow Condensed', sans-serif; letter-spacing: .1em; text-transform: uppercase; }

/* Daily challenges button (top bar): same square style as its neighbours */
#ot-chal-btn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; cursor: pointer; line-height: 0;
  background: rgba(8, 18, 12, .55); border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .6); transition: color .15s ease; }
#ot-chal-btn:hover { color: #D2BF55; }
body.tutorial #ot-chal-btn { display: none !important; }

/* ── 20. PHONE TABLE ─────────────────────────────────────────────────────────────────────────── */
/* Phone-only extras stay out of the way on bigger screens. */
.qb-x, #ot-menu-btn, #ot-menu { display: none; }

@media (max-width: 480px) {
  /* The page is exactly one screen tall, so the table can fill everything between the top bar and
     the action bar instead of floating as a short oval with empty bands above and below. */
  body.table-page { width: 100%; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
  body.table-page #table6-wrap { width: 100%; box-sizing: border-box; }
  body.table-page #table6-wrap { padding: 56px 12px 26px; align-items: center; }   /* bottom room for the best-word pill under your plate */
  body.table-page .table6 { width: 100% !important; height: 100%; max-height: 660px; aspect-ratio: auto; }
  body.table-page #table6 { margin-top: 0; }   /* the older short-phone nudge (table.html) isn't needed with a table that fills the space */

  /* Bigger letters: the board, your own two cards, and (a little) everyone else's */
  body.table-page .center6 { top: 47%; }
  body.table-page .center6 .community { width: 266px; height: 68px; }
  body.table-page .center6 .comm-card { width: 50px; height: 68px; }
  body.table-page .center6 .comm-card .ltr { font-size: 1.8rem; }
  body.table-page .center6 .comm-card .sv { font-size: .85rem; }
  body.table-page .center6 .pot-amt { font-size: 1.1rem; }
  body.table-page .my-seat .seat6-cards { min-height: 70px; }
  body.table-page .my-seat .seat6-cards .card { width: 52px; height: 72px; }
  body.table-page .my-seat .seat6-cards .card .ltr { font-size: 1.75rem; }
  body.table-page .my-seat .seat6-cards .card .sv { font-size: 1.05rem; top: 16px; }
  body.table-page .seat6:not(.my-seat) .seat6-cards .card { width: 38px; height: 52px; }
  body.table-page .seat6:not(.my-seat) .seat6-cards .card .ltr { font-size: 1.25rem; }
  body.table-page .seat6:not(.my-seat) .seat6-cards .card .sv { font-size: .8rem; top: 10px; }
  /* the top seat's cards hang BELOW its nameplate (no room above on a phone); style6.css tucks them
     24px up behind the plate, which hid all but a sliver, so they just overlap the plate a little */
  body.table-page .seat6:not(.cards-above):not(.my-seat) .seat6-cards { transform: translateY(14px); }
  /* Compact nameplates: on a 351px-wide table the desktop-sized plates reached nearly to the
     middle. ~104px wide, a smaller avatar, and long names cut short with … instead of shrinking. */
  body.table-page .seat6-nameplate { width: 104px; min-width: 104px; max-width: 104px; }
  body.table-page .seat6-avatar { width: 28px; height: 28px; font-size: .72rem; left: -6px; }
  body.table-page .seat6-info { padding: 4px 7px 4px 23px; }
  body.table-page .seat6-empty { padding: 4px 7px; }
  body.table-page .seat6-name, body.table-page .seat6-name.long2, body.table-page .seat6-name.long3, body.table-page .seat6-name.long4 {
    font-size: .8rem; letter-spacing: .02em; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.table-page .seat6-stack { font-size: .84rem; }
  body.table-page .seat6-action { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Top bar: leave and chat on the left; balance and one menu on the right */
  body.table-page #ot-settings-btn, body.table-page #ot-emote-btn,
  body.table-page #ot-history-btn, body.table-page #ot-addchips, body.table-page #ot-chal-btn { display: none !important; }
  body.table-page #ot-menu-btn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px;
    background: rgba(8, 18, 12, .55); border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .7); line-height: 0; cursor: pointer; }
  body.table-page #ot-menu.open { display: flex; }
  #ot-menu { position: fixed; top: 54px; right: 12px; z-index: 60; flex-direction: column; min-width: 220px; padding: 6px;
    background: #111c14; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, .55); }
  #ot-menu button, #ot-menu .om-check { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 0 12px; box-sizing: border-box;
    background: none; border: 0; border-radius: 8px; color: #f0e8d0; text-align: left; cursor: pointer; font: 500 1rem 'Barlow', sans-serif; }
  #ot-menu button:active, #ot-menu .om-check:active { background: rgba(255, 255, 255, .06); }
  #ot-menu .om-check { border-top: 1px solid rgba(255, 255, 255, .07); border-radius: 0; color: rgba(240, 232, 208, .85); }
  #ot-menu .om-check input { width: 20px; height: 20px; margin: 0; accent-color: #d2bf55; }

  /* Action bar: a fixed height (so the table never jumps), everything full width and thumb sized */
  body.table-page #action-bar6 { position: relative; flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 0;
    height: calc(112px + env(safe-area-inset-bottom)); min-height: 0; padding: 6px 10px calc(8px + env(safe-area-inset-bottom)); }
  body.table-page #sitout-slot6 { display: none !important; }   /* sit out lives in the menu on phones */
  body.table-page #action-cluster6 { width: 100%; min-height: 0; gap: 8px; justify-content: flex-end; }
  body.table-page #qb-slider-row6 { flex-direction: column; align-items: stretch; gap: 8px; }
  body.table-page #quick-bets6 { display: flex; gap: 5px; }
  body.table-page #quick-bets6 .qb, body.table-page #quick-bets6 .qb-x { display: block; flex: 1; min-width: 0; height: 36px; padding: 0 2px; border-radius: 18px;
    font-family: 'Barlow Condensed', sans-serif; font-size: .82rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); color: #a9c4ae; cursor: pointer; white-space: nowrap; }
  body.table-page #quick-bets6 .active-qb { background: rgba(201, 168, 76, .22); color: #ffe866; border-color: #c9a84c; }
  body.table-page .bet-slider-row { display: none; max-width: none; }
  body.table-page .bottom-row { flex-direction: column; align-items: stretch; gap: 8px; }
  body.table-page #bet-section6 { display: none; width: auto; }
  body.table-page #action-buttons6 { display: flex; width: 100%; gap: 8px; }
  body.table-page #action-buttons6 > button, body.table-page #action-buttons6 .checkcall-slot6 { flex: 1; width: auto; min-width: 0; height: 52px; }
  body.table-page #action-buttons6 button { font-size: 1.02rem; letter-spacing: .05em; border-radius: 10px; }
  body.table-page #action-buttons6 .checkcall-slot6 > button { height: 100%; }   /* Check and Call share one slot, stacked */
  /* Custom amount: a panel that floats above the bar (slider on top, exact amount below), so
     opening it doesn't push the table around */
  body.table-page #action-cluster6.sizing-open #bet-section6 { display: flex; position: absolute; left: 10px; right: 10px; bottom: calc(100% + 6px);
    padding: 52px 12px 12px; background: #111c14; border: 1px solid rgba(210, 191, 85, .4); border-radius: 14px; box-shadow: 0 -8px 26px rgba(0, 0, 0, .5); z-index: 30; }
  body.table-page #action-cluster6.sizing-open #bet-section6 .bet-input-wrap { height: 46px; }
  body.table-page #action-cluster6.sizing-open #bet-section6 .bet-input-wrap input { width: auto; font-size: 1.15rem !important; }
  body.table-page #action-cluster6.sizing-open #bet-section6 .adj-btn { width: 46px; font-size: 1.2rem; }
  body.table-page #action-cluster6.sizing-open .bet-slider-row { display: block; position: absolute; left: 26px; right: 26px; bottom: calc(100% + 6px + 70px); height: 30px; z-index: 31; }

  /* Pre-turn toggles and Show buttons: full width, same height as the action buttons */
  body.table-page #preact6, body.table-page #show6 { width: 100%; min-height: 0; margin-left: 0; justify-content: flex-end; }
  body.table-page #preact6 .pa-btns { width: 100%; gap: 8px; }
  body.table-page #preact6 .pa-btn, body.table-page #show6 .sh-btn { flex: 1; min-width: 0; height: 52px; font-size: .9rem; }
  body.table-page #show6 { gap: 8px; }

  /* Readability floor: small labels no smaller than 12px */
  body.table-page .center6 .pot-lbl, body.table-page #best-word6 .bw-l, body.table-page #best-word6 .bw-s small { font-size: 12px; }

  /* Sit In bar (when sitting out) fits the fixed-height bar */
  body.table-page #sitting-out-bar6 { justify-content: flex-end; }
  body.table-page #big-sitin-btn6 { width: 100%; padding: 15px 0 !important; }
}


/* ── Sign-up nudge for guests (table-client signupNudge) ── */
#ot-nudge{ position:fixed; left:50%; top:62px; transform:translate(-50%,-14px); z-index:1004; opacity:0; pointer-events:none; transition:opacity .25s, transform .25s;
  display:flex; align-items:center; gap:10px; width:max-content; max-width:calc(100vw - 20px); box-sizing:border-box; padding:10px 8px 10px 14px; border-radius:12px;
  background:#111c14; border:1px solid #D2BF55; box-shadow:0 10px 30px rgba(0,0,0,.5); font-family:'Barlow',sans-serif; }
#ot-nudge.show{ opacity:1; transform:translate(-50%,0); pointer-events:auto; }
#ot-nudge .nd-txt{ min-width:0; }
#ot-nudge b{ display:block; font-family:'Barlow Condensed',sans-serif; font-size:1rem; letter-spacing:.04em; text-transform:uppercase; color:#f3d978; }
#ot-nudge span{ display:block; font-size:.86rem; line-height:1.3; color:#f0e8d0; max-width:300px; }
#ot-nudge .nd-go{ flex-shrink:0; padding:8px 12px; border:none; border-radius:8px; cursor:pointer; background:#D2BF55; color:#16241a; font-family:'Barlow Condensed',sans-serif; font-size:.88rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
#ot-nudge .nd-x{ flex-shrink:0; width:28px; height:28px; border:none; background:none; color:rgba(255,255,255,.5); font-size:1.2rem; cursor:pointer; }
@media (max-width:480px){ #ot-nudge{ top:6px; } #ot-nudge span{ max-width:none; } }


/* ── Daily Flip table (table-client flip mode) ── */
body.flip-mode #ot-chat-btn, body.flip-mode #ot-emote-btn, body.flip-mode #ot-history-btn, body.flip-mode #ot-addchips,
body.flip-mode #ot-chal-btn, body.flip-mode #ot-chat, body.flip-mode #best-word6, body.flip-mode #sitout-slot6 { display:none !important; }
body.flip-mode #table-wait6 { display:none !important; }
body.flip-mode #ot-settings div:has(> label > #ot-toggle-bb) { display:none !important; }   /* no blinds, so no BB amounts */
body.flip-mode .bot-topup { display:none !important; }
#flip-info{ position:absolute; left:50%; top:30%; transform:translate(-50%,-50%) scale(.96); z-index:30; width:min(84%, 320px); box-sizing:border-box; padding:12px 14px;
  border-radius:14px; background:#0f1a12; border:1px solid rgba(210,191,85,.45); box-shadow:0 10px 26px rgba(0,0,0,.45); text-align:center;
  font-family:'Barlow',sans-serif; font-size:.84rem; line-height:1.3; color:rgba(255,255,255,.82); opacity:0; pointer-events:none; transition:opacity .25s, transform .25s; }
#flip-info.show{ opacity:1; transform:translate(-50%,-50%) scale(1); }
#flip-info b{ display:block; margin-bottom:2px; font-family:'Barlow Condensed',sans-serif; font-size:1.35rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:#f3d978; }
#flip-info.lose b{ color:#f0a890; }
#flip-info.win b{ animation:fbPop .45s ease-out; }
@keyframes fbPop{ 0%{ transform:scale(.88); } 60%{ transform:scale(1.07); } 100%{ transform:scale(1); } }
#flip-info .fi-dots{ display:flex; justify-content:center; gap:7px; margin-top:9px; }
#flip-info .fi-dots i{ width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.2); }
#flip-info .fi-dots i.on{ background:#D2BF55; border-color:#D2BF55; box-shadow:0 0 8px rgba(210,191,85,.5); }
#flip-bar{ position:fixed; left:50%; bottom:max(10px, env(safe-area-inset-bottom)); transform:translate(-50%, 12px); z-index:60; opacity:0; pointer-events:none;
  width:min(94vw, 440px); display:flex; gap:8px; transition:opacity .25s, transform .25s; }
#flip-bar.show{ opacity:1; transform:translate(-50%, 0); pointer-events:auto; }
#flip-bar .fb-btn{ flex:1; height:50px; border:none; border-radius:12px; cursor:pointer; font-family:'Barlow Condensed',sans-serif; font-size:1.05rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; box-shadow:0 8px 20px rgba(0,0,0,.4); }
#flip-bar .fb-btn.go{ background:#D2BF55; color:#16241a; }
#flip-bar .fb-btn.ghost{ background:#1d2a20; border:1px solid rgba(255,255,255,.18); color:#f4eedc; }
#flip-bar .fb-btn:disabled{ opacity:.55; cursor:default; }


/* ── Sit & Go (table-client sng mode) ── */
body.sng-pre .seat6{ display:none !important; }
body.sng-mode #ot-addchips, body.sng-mode #sitout-slot6, body.sng-mode #ot-autorebuy-wrap { display:none !important; }
#sng-card{ position:fixed; left:50%; top:50%; transform:translate(-50%,-50%) scale(.97); z-index:1002; width:min(92vw, 380px); box-sizing:border-box; padding:22px 18px 16px;
  border-radius:18px; background:#111c14; border:1px solid rgba(210,191,85,.4); box-shadow:0 20px 50px rgba(0,0,0,.6); text-align:center; font-family:'Barlow',sans-serif;
  opacity:0; pointer-events:none; transition:opacity .25s, transform .25s; display:flex; flex-direction:column; gap:10px; }
#sng-card.show{ opacity:1; transform:translate(-50%,-50%) scale(1); pointer-events:auto; }
#sng-card .sg-title{ font-family:'Barlow Condensed',sans-serif; font-size:1.9rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:#D2BF55; line-height:1; }
#sng-card .sg-tag{ font-family:'Barlow Condensed',sans-serif; font-size:1rem; font-weight:600; letter-spacing:.04em; color:#f4eedc; }
#sng-card .sg-rules{ list-style:none; margin:4px 0 6px; padding:0; display:flex; flex-direction:column; gap:6px; font-size:.9rem; color:rgba(255,255,255,.7); }
#sng-card .sg-tiles{ display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-top:4px; }
#sng-card .sg-tile{ display:flex; flex-direction:column; align-items:center; gap:1px; padding:9px 4px 8px; border-radius:12px; background:rgba(210,191,85,.08); border:1px solid rgba(210,191,85,.25); }
#sng-card .sg-tile b{ font-family:'Barlow Condensed',sans-serif; font-size:1.45rem; font-weight:800; color:#f3d978; line-height:1.05; }
#sng-card .sg-tile span{ font-size:.74rem; font-weight:600; color:#f4eedc; }
#sng-card .sg-tile i{ font-style:normal; font-size:.68rem; color:rgba(255,255,255,.5); }
#sng-card .sg-sched{ padding:9px 8px 8px; border-radius:12px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1); }
#sng-card .sg-sched-h{ font-family:'Barlow Condensed',sans-serif; font-size:.78rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,.55); margin-bottom:6px; }
#sng-card .sg-lvs{ display:grid; grid-template-columns:repeat(6,1fr); gap:3px; }
#sng-card .sg-lv{ display:flex; flex-direction:column; align-items:center; padding:4px 0; border-radius:8px; }
#sng-card .sg-lv span{ font-size:.66rem; color:rgba(255,255,255,.45); }
#sng-card .sg-lv b{ font-family:'Barlow Condensed',sans-serif; font-size:.95rem; font-weight:700; color:#f4eedc; }
#sng-card .sg-lv.now{ background:rgba(210,191,85,.16); }
#sng-card .sg-lv.now b{ color:#f3d978; }
#sng-card .sg-sched-f{ margin-top:5px; font-size:.7rem; color:rgba(255,255,255,.45); }
#sng-card .sg-rules li::before{ content:'•'; color:#D2BF55; margin-right:7px; }
#sng-card .sg-note{ font-size:.86rem; line-height:1.4; color:rgba(255,255,255,.65); }
#sng-card .sg-note.err{ color:#f0a890; }
#sng-card .sg-wait{ display:flex; align-items:center; justify-content:center; gap:10px; margin:8px 0 2px; font-family:'Barlow Condensed',sans-serif; font-size:1.25rem; font-weight:700; color:#f4eedc; }
#sng-card .sg-spin{ width:18px; height:18px; border-radius:50%; border:2.5px solid rgba(210,191,85,.25); border-top-color:#D2BF55; animation:sgSpin .9s linear infinite; }
@keyframes sgSpin{ to{ transform:rotate(360deg); } }
#sng-card .sg-found{ margin-top:6px; font-family:'Barlow Condensed',sans-serif; font-size:1.6rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:#f3d978; animation:fbPop .45s ease-out; }
.sg-btn{ height:48px; border:none; border-radius:12px; cursor:pointer; font-family:'Barlow Condensed',sans-serif; font-size:1.05rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.sg-btn.go{ background:#D2BF55; color:#16241a; box-shadow:0 6px 18px rgba(210,191,85,.25); }
.sg-btn.ghost{ background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.18); color:#f4eedc; }
.sg-btn:disabled{ opacity:.55; cursor:default; }
#sng-hud{ position:fixed; left:50%; top:10px; transform:translate(-50%,-8px); z-index:40; opacity:0; pointer-events:none; transition:opacity .25s, transform .25s;
  padding:4px 12px; border-radius:10px; background:rgb(10,20,13); border:1px solid rgba(210,191,85,.35); text-align:center; font-family:'Barlow',sans-serif; white-space:nowrap; }
#sng-hud.show{ opacity:1; transform:translate(-50%,0); }
#sng-hud b{ font-family:'Barlow Condensed',sans-serif; font-size:.9rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:#f3d978; }
#sng-hud span{ margin-left:8px; font-size:.74rem; color:rgba(255,255,255,.65); }
#sng-hud.flash span{ color:#f3d978; font-weight:600; }
#sng-hud.flash{ border-color:#D2BF55; box-shadow:0 0 16px rgba(210,191,85,.45); }
#sng-result{ display:none; position:fixed; inset:0; z-index:1003; background:rgba(0,0,0,.7); backdrop-filter:blur(6px); align-items:center; justify-content:center; padding:16px; }
#sng-result.show{ display:flex; }
#sng-result .sr-card{ width:min(100%, 360px); padding:24px 18px 16px; border-radius:18px; background:#111c14; border:1px solid rgba(210,191,85,.4); text-align:center; font-family:'Barlow',sans-serif; animation:rwIn .25s ease-out; }
#sng-result .sr-title{ font-family:'Barlow Condensed',sans-serif; font-size:2rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:#f0a890; }
#sng-result .sr-title.win{ color:#f3d978; }
#sng-result .sr-sub{ margin-top:4px; font-size:.95rem; color:rgba(255,255,255,.7); }
#sng-result .sr-btns{ display:flex; gap:8px; margin-top:16px; }
#sng-result .sr-btns .sg-btn{ flex:1; }
@keyframes rwIn{ from{ opacity:0; transform:translateY(10px) scale(.98); } to{ opacity:1; transform:none; } }
@media (max-width:480px){ #sng-hud{ top:6px; } }
