/* table.css — the poker table, locked design "Table B" (owner 2026-10-04):
   charcoal room, thin dark rail, bright felt (felt colour = 3 CSS vars),
   gold-ring avatars over glass name plates with country flags, dark bet
   pills, pot pill, sharp cards, red / blue / green action buttons.
   Geometry (seat anchors, bets, dealer) comes from table.js; nothing here
   is nudged per seat. */

:root { --felt-1: #2CC873; --felt-mid: #1BA75B; --felt-2: #0F7F44; --tb-font: 'Archivo', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
/* alternative felts (table option / theme): only the three stops change */
[data-felt="blue"]   { --felt-1: #3A8FE0; --felt-mid: #2468B8; --felt-2: #164A8A; }
[data-felt="red"]    { --felt-1: #D9545B; --felt-mid: #B13239; --felt-2: #7E1D23; }
[data-felt="purple"] { --felt-1: #9566E0; --felt-mid: #7046B8; --felt-2: #4C2C8A; }
[data-felt="black"]  { --felt-1: #4A4D55; --felt-mid: #33363D; --felt-2: #202227; }
/* server felt_theme names (table option / store themes) */
[data-felt="classic_green"] { --felt-1: #2CC873; --felt-mid: #1BA75B; --felt-2: #0F7F44; }
[data-felt="royal"]    { --felt-1: #3A8FE0; --felt-mid: #2468B8; --felt-2: #164A8A; }
[data-felt="arctic"]   { --felt-1: #6FB7D6; --felt-mid: #4A93B5; --felt-2: #2E6E8C; }
[data-felt="crimson"]  { --felt-1: #D9545B; --felt-mid: #B13239; --felt-2: #7E1D23; }
[data-felt="mahogany"] { --felt-1: #A8653C; --felt-mid: #84482A; --felt-2: #5C2F1B; }
[data-felt="midnight_teal"] { --felt-1: #2BA79A; --felt-mid: #1A847A; --felt-2: #0F5C55; }

main[data-view="table"] { background: #121214; }
#frame.tbl-mode { background: #101012; }

.tbl-wrap { position: relative; height: calc(100dvh / var(--tnet, 1)); display: flex; flex-direction: column; color: #F4F4F5; font-family: var(--tb-font); overflow: hidden; }
.tbl-wrap.tbl-opening::after {
  content: "";
  position: absolute;
  inset: 38px 0 0;
  z-index: 20;
  background: radial-gradient(85% 60% at 50% 42%, #1E1F23, #101012 72%);
  pointer-events: none;
}
.tbl-wrap.tbl-opening .tbl-stage,
.tbl-wrap.tbl-opening .actions {
  visibility: hidden;
}

/* ---------- header: menu, home, table pills, history, exit ---------- */
.tbl-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 6px; height: 38px; flex-shrink: 0; position: relative; z-index: 12; }
.tb-btn {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(44,46,52,.94), rgba(14,15,18,.96)); border: 1px solid rgba(231,200,115,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 8px rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; padding: 0;
}
.tb-btn:active { transform: scale(.96); }
.mt-pills { flex: 1 1 auto; display: flex; justify-content: center; gap: 6px; margin: 0 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mt-pills::-webkit-scrollbar { display: none; }
.mt-pill {
  position: relative; height: 28px; padding: 0 12px; border-radius: 14px; flex-shrink: 0;
  background: #1A1A1D; border: 1px solid #2E2E33; color: #F4F4F5;
  font: 800 11.5px var(--tb-font); letter-spacing: .06em; cursor: pointer;
}
.mt-pill.cur { background: #0E0E10; border: 1.5px solid #E7C873; color: #E7C873; }
.mt-pill .tm {
  position: absolute; right: -6px; top: -7px; height: 15px; min-width: 15px; padding: 0 4px; box-sizing: border-box;
  border-radius: 8px; background: #E5484D; border: 1.5px solid #161618; font: 900 8.5px var(--tb-font); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.mt-pill.plus { width: 28px; padding: 0; border: 1.5px dashed #55555C; background: transparent; color: #E4E4E7; font-size: 15px; }

/* ---------- stage: rail + felt (SVG, stretched), seats hang on it ---------- */
.tbl-stage { position: relative; flex-grow: 1; min-height: 0; margin: 4px 8px 6px; }
.tbl-rail { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.tbl-felt { position: absolute; left: 6.6%; top: 4.14%; width: 86.8%; height: 91.72%; pointer-events: none; }

/* felt print: blinds + info, POLARIS · POKER, game name, composite hand ID */
.felt-print {
  position: absolute; left: 50%; top: 60%; transform: translateX(-50%); width: 320px;
  display: flex; flex-direction: column; align-items: center; pointer-events: none;
}
.felt-print .blinds { display: flex; align-items: center; gap: 7px; font: 700 11.5px var(--tb-font); color: rgba(255,255,255,.5); white-space: nowrap; }
.felt-print .info-btn {
  pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; padding: 0; cursor: pointer;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.28);
  font: 700 italic 11px Georgia, serif; color: rgba(255,255,255,.8);
  display: flex; align-items: center; justify-content: center;
}
.felt-print .w1 { margin-top: 20px; font: 600 34px 'Cormorant Garamond', Georgia, serif; letter-spacing: .32em; padding-left: .32em; line-height: 1; color: rgba(255,255,255,.10); }
.felt-print .w2 { margin-top: 6px; font: 700 9px var(--tb-font); letter-spacing: .7em; padding-left: .7em; color: rgba(255,255,255,.10); }
.felt-print .game { display: flex; align-items: center; gap: 10px; margin-top: 8px; font: 600 11px var(--tb-font); letter-spacing: .42em; padding-left: .42em; color: rgba(255,255,255,.24); white-space: nowrap; }
.felt-print .game i { width: 34px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.22)); }
.felt-print .game i + span + i { background: linear-gradient(90deg, rgba(255,255,255,.22), transparent); }
.felt-print .hid { margin-top: 9px; font: 600 9.5px var(--tb-font); letter-spacing: .06em; color: rgba(255,255,255,.32); font-variant-numeric: tabular-nums; }
.tbl-stage.max9 .felt-print .w1, .tbl-stage.max9 .felt-print .w2 { display: none; }

/* glass side buttons on the rail corners: time bank, sound | chat, mic */
.side-btn {
  position: absolute; z-index: 6; width: 40px; height: 40px; border-radius: 12px; padding: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(44,46,52,.92), rgba(14,15,18,.95));
  border: 1px solid rgba(231,200,115,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 10px rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; color: #D4D4D8;
}
.side-btn.tl { left: 4px; top: 4px; font: 800 11.5px var(--tb-font); color: #F4F4F5; }
.side-btn.tl.on { border-color: #E7C873; color: #E7C873; box-shadow: 0 0 10px rgba(231,200,115,.35); }
.side-btn.tl.empty { color: #8A8178; }
.side-btn.l2 { left: 4px; top: 50px; }
.side-btn.tr { right: 4px; top: 4px; }
.side-btn.r2 { right: 4px; top: 50px; }
.side-btn .spk-off { display: none; }
.side-btn.muted .spk-on { display: none; }
.side-btn.muted .spk-off { display: block; }
.side-btn#tb-mic.live, .side-btn#tb-mic.talking { background: #B4232A; border-color: #E0575C; color: #fff; }
.side-btn .badge {
  position: absolute; right: -6px; top: -6px; min-width: 16px; height: 16px; padding: 0 3px; box-sizing: border-box;
  border-radius: 8px; background: #E5484D; border: 2px solid #161618; font: 900 9px var(--tb-font); color: #fff;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- seats ----------
   A seat is a zero-size anchor at its avatar centre; every part is placed
   relative to that point and the whole component scales with --s. */
#tbl-layer { position: absolute; inset: 0; pointer-events: none; }
#tbl-layer > * { pointer-events: auto; }
.seat { position: absolute; width: 0; height: 0; z-index: 5; transform: scale(var(--s, 1)); transform-origin: 0 0; }
.seat .av {
  position: absolute; left: -25px; top: -25px; width: 50px; height: 50px; border-radius: 50%; padding: 2px;
  box-sizing: border-box; z-index: 2; background: linear-gradient(145deg, #F7E3A6, #B8892E);
  box-shadow: 0 4px 12px rgba(0,0,0,.7);
}
.seat .av .in {
  width: 100%; height: 100%; border-radius: 50%; border: 2px solid #0B0B0C; box-sizing: border-box; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font: 800 18px var(--tb-font); color: #F4F4F5;
}
.seat .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seat .lvl {
  position: absolute; left: -31px; top: 4px; min-width: 16px; height: 14px; padding: 0 3px; box-sizing: border-box; z-index: 3;
  border-radius: 4px; background: #0E0E10; border: 1px solid rgba(231,200,115,.5);
  font: 800 8px var(--tb-font); color: #E7C873; display: flex; align-items: center; justify-content: center;
}
.seat .plate {
  position: absolute; left: -40px; top: 18px; width: 80px; padding: 3px 0 4px; border-radius: 9px; z-index: 4;
  background: rgba(14,14,16,.58); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgba(231,200,115,.28); text-align: center; box-sizing: border-box;
}
.seat .plate .nm {
  display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 4px;
  font: 600 10.5px var(--tb-font); color: #A8A29A; white-space: nowrap; overflow: hidden;
}
.seat .plate .nm b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.seat .plate .flag { width: 15px; height: 11px; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 0 .5px rgba(255,255,255,.35); object-fit: cover; }
.seat .plate .st { font: 800 13px var(--tb-font); color: #F4F4F5; font-variant-numeric: tabular-nums; line-height: 16px; }
.seat.allin .plate .st { color: #D98B72; }
.seat.actor .plate, .seat.actor-you .plate { border-color: #E7C873; box-shadow: 0 0 12px rgba(231,200,115,.35); }
.seat.winner .plate { border-color: #D4B98A; box-shadow: 0 0 10px rgba(212,185,138,.3); }
/* folding dims the portrait, never the ring (Flutter: the ring always stays crisp) */
.seat.folded > .av > .in, .seat.folded > .plate, .seat.folded > .cards { opacity: .45; filter: grayscale(.6); }

/* last action tag under the plate: FOLD / CHECK / CALL / BET / RAISE / ALL-IN */
.seat .tag {
  position: absolute; left: -36px; top: 56px; width: 72px; text-align: center; z-index: 5; pointer-events: none;
}
.seat .tag span {
  padding: 1px 7px; border-radius: 5px; background: #3F3F46; white-space: nowrap;
  font: 800 9px var(--tb-font); letter-spacing: .06em; color: #fff;
}
.seat .tag.t-fold span, .seat .tag.t-check span, .seat .tag.t-away span { background: #3F3F46; color: #D4D4D8; }
.seat .tag.t-leave span { background: #5B4636; color: #F5D7A1; }
.seat .tag.t-call span { background: #2563EB; }
.seat .tag.t-bet span, .seat .tag.t-raise_to span, .seat .tag.t-raise span { background: #D97706; }
.seat .tag.t-all_in span, .seat .tag.t-allin span { background: #C0674A; }
.seat .tag.t-post span { background: #52525B; }

/* villain cards: dark backs with a gold edge, tucked at the inner shoulder */
.seat .cards { position: absolute; top: -31px; display: flex; z-index: 1; }
.seat .cards.in-r { left: 17px; }
.seat .cards.in-l { right: 17px; flex-direction: row-reverse; }
.cardback {
  width: 19px; height: 26px; border-radius: 3px; box-sizing: border-box; flex-shrink: 0;
  background: repeating-linear-gradient(45deg, #1b1b1f 0 3px, #24242a 3px 6px);
  border: 1.5px solid #D4B98A; box-shadow: 0 2px 6px rgba(0,0,0,.6);
}
.seat .cards .cardback + .cardback { margin-left: -13px; }
.seat .cards.in-l .cardback + .cardback { margin-left: 0; margin-right: -13px; }
.seat .cards.up { z-index: 3; top: -34px; }
.seat .cards.up .pcard + .pcard { margin-left: -9px; }
.seat .cards.in-l.up .pcard + .pcard { margin-left: 0; margin-right: -9px; }

/* countdown: gold conic sweep on the avatar ring + seconds bubble */
.seat .ring { position: absolute; left: -29px; top: -29px; pointer-events: none; z-index: 1; }
.seat .ring .track { stroke: rgba(231,200,115,.15); }
.seat .ring .fill { stroke: #E7C873; transition: stroke-dashoffset .2s linear; }
.seat .secb {
  position: absolute; left: -36px; top: -34px; width: 20px; height: 20px; border-radius: 50%; z-index: 4;
  background: #E7C873; color: #1A1406; font: 800 11px var(--tb-font); font-variant-numeric: tabular-nums;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,.6);
}
.seat.cards-l .secb { left: 16px; }
.seat.cards-l .lvl { left: 15px; }

/* hero: big sharp hole cards on the right shoulder */
.seat.hero .hcards { position: absolute; left: 14px; top: -50px; display: flex; z-index: 3; }
.seat.hero .hcards .pcard { width: 52px; height: 72px; border-radius: 5px; }
.seat.hero .hcards .pcard + .pcard { margin-left: -16px; }
.seat.hero .hcards .pcard .r { font-size: 25px; left: 5px; top: 3px; }
.seat.hero .hcards .pcard .s { top: 27px; left: 6px; font-size: 16px; }
.seat.hero .hcards .pcard .bigsuit { font-size: 30px; right: 4px; bottom: 2px; }
.seat.hero .hcards.n4 .pcard, .seat.hero .hcards.n5 .pcard, .seat.hero .hcards.n6 .pcard { width: 38px; height: 54px; }
.seat.hero .hcards.n4 .pcard + .pcard, .seat.hero .hcards.n5 .pcard + .pcard, .seat.hero .hcards.n6 .pcard + .pcard { margin-left: -12px; }
.seat.hero .hcards.n4 .pcard .r, .seat.hero .hcards.n5 .pcard .r, .seat.hero .hcards.n6 .pcard .r { font-size: 18px; left: 4px; top: 2px; }
.seat.hero .hcards.n4 .pcard .s, .seat.hero .hcards.n5 .pcard .s, .seat.hero .hcards.n6 .pcard .s { top: 20px; left: 4px; font-size: 12px; }
.seat.hero .hcards.n4 .pcard .bigsuit, .seat.hero .hcards.n5 .pcard .bigsuit, .seat.hero .hcards.n6 .pcard .bigsuit { display: none; }
.seat.hero.folded .hcards { opacity: .45; }
.seat.winner .hcards .pcard.win, .board .pcard.win { box-shadow: 0 0 0 2px #D4B98A, 0 0 8px rgba(212,185,138,.35); }
.board .pcard.dim, .seat .hcards .pcard.dim { filter: brightness(.55) saturate(.6); }

/* empty seat (you're seated) and open-seat SIT button */
.seat-empty {
  position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; z-index: 4;
  border: 1.5px dashed rgba(255,255,255,.22); background: rgba(0,0,0,.18); transform: scale(var(--s, 1));
}
.sit-btn {
  position: absolute; transform: translate(-50%, -50%) scale(var(--s, 1)); width: 50px; height: 50px; z-index: 5;
  border-radius: 50%; padding: 2px; border: none; cursor: pointer;
  background: linear-gradient(145deg, #F7E3A6, #B8892E); box-shadow: 0 4px 12px rgba(0,0,0,.7);
}
.sit-btn > span {
  width: 100%; height: 100%; border-radius: 50%; border: 2px solid #0B0B0C; box-sizing: border-box;
  background: #161618; display: flex; align-items: center; justify-content: center;
  font: 800 11px var(--tb-font); letter-spacing: .12em; color: #E7C873;
}

/* dealer button */
.dbtn {
  position: absolute; width: 20px; height: 20px; border-radius: 50%; z-index: 6; transform: translate(-50%, -50%) scale(var(--s, 1));
  background: #fff; color: #111; font: 900 11px var(--tb-font); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,.6);
}

/* ---------- bets + pot: dark pills with a red chip ---------- */
.bet-chip, .pot-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px 0 4px; border-radius: 13px;
  background: rgba(0,0,0,.42); white-space: nowrap; box-sizing: border-box;
}
.bet-chip { position: absolute; transform: translate(-50%, -50%) scale(var(--s, 1)); z-index: 4; }
.bet-chip .bchip, .pot-pill .bchip { flex-shrink: 0; }
.bet-chip .amt, .pot-pill .amt { font: 800 13px var(--tb-font); color: #fff; font-variant-numeric: tabular-nums; }
.bet-chip.win { background: rgba(0,0,0,.55); box-shadow: 0 0 0 1px rgba(231,200,115,.55); }
.bet-chip.win .amt { color: #FDE68A; }
.pot-zone {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 5px; z-index: 3;
  transform: translate(-50%, -100%) scale(var(--s, 1)); transform-origin: 50% 100%;
}
.pot-pill { height: 28px; padding: 0 13px 0 5px; border-radius: 14px; }
.pot-pill .amt { font-size: 14px; }
.pot-label {
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 13px; white-space: nowrap;
  background: rgba(0,0,0,.55); border: 1px solid rgba(231,200,115,.45); font: 800 13.5px var(--tb-font); color: #fff;
}
.pot-label .v { color: #FDE68A; font-variant-numeric: tabular-nums; margin-left: 4px; }
.antes-line { font: 700 10px var(--tb-font); color: rgba(255,255,255,.6); }

/* ---------- cards: sharp, crisp, 4-colour (PPP-style) ---------- */
.board {
  position: absolute; display: flex; gap: 2px; z-index: 3;
  transform: translateX(-50%) scale(var(--s, 1)); transform-origin: 50% 0;
}
.board-label {
  position: absolute; right: calc(100% + 4px); top: 50%; transform: translateY(-50%);
  font: 800 9px var(--tb-font); color: rgba(255,255,255,.7); letter-spacing: .08em;
}
/* run it twice / 3 times: that run's winner, right of the row (owner 2026-10-08) */
.board-tag {
  position: absolute; left: calc(100% + 5px); top: 50%; transform: translateY(-50%);
  max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 2px 5px; border-radius: 8px; background: rgba(10,10,12,.82);
  border: 1px solid rgba(34,240,138,.35); font: 800 9.5px var(--tb-font); color: var(--win, #22F08A);
}
.rit-offer { border-color: rgba(251,191,36,.35); }
.rit-offer.done { text-align: center; }
.rit-ft { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: 10px; }
.rit-ft button { height: 38px; border-radius: 10px; border: 0; font: 700 13.5px var(--tb-font); cursor: pointer; }
.rit-ft .ev-yes { background: #FBBF24; color: #1C1405; }
.pcard {
  width: 38px; height: 52px; border-radius: 5px; background: #FAFAF7; position: relative; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.6); font-family: var(--tb-font); box-sizing: border-box;
  -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision;
}
.pcard .r { position: absolute; left: 5px; top: 2px; font-weight: 800; font-size: 17px; line-height: 1; letter-spacing: -.5px; }
.pcard .s { position: absolute; left: 5px; top: 19px; font-size: 14px; line-height: 1; }
.pcard .bigsuit { position: absolute; right: 3px; bottom: 1px; font-size: 24px; line-height: 1; }
.pcard.empty { border: 1.5px dashed rgba(255,255,255,.3); background: transparent; box-shadow: none; }
.pcard.c-spade { color: #111; } .pcard.c-heart { color: #D9363E; }
.pcard.c-diamond { color: #1F5FD6; } .pcard.c-club { color: #138A3C; }
.pcard.back {
  background: repeating-linear-gradient(45deg, #1b1b1f 0 3px, #24242a 3px 6px);
  border: 1.5px solid #D4B98A;
}
.pcard.mata-down { box-shadow: 0 0 0 2px #D6B36A, 0 0 14px rgba(214,179,106,.38); }
.pcard.mata-down::after {
  content: "H"; position: absolute; right: 3px; top: 3px; min-width: 12px; height: 12px;
  border-radius: 999px; display: grid; place-items: center;
  background: #17110A; color: #E7C873; font: 900 8px/1 var(--tb-font);
  border: 1px solid rgba(231,200,115,.7);
}
.pcard.sm { width: 24px; height: 33px; border-radius: 3px; }
.pcard.sm .r { font-size: 14px; left: 3px; top: 1px; }
.pcard.sm .s { top: 15px; left: 3px; font-size: 10px; }
.pcard.sm .bigsuit { display: none; }
.hand-tag {
  position: absolute; padding: 1px 7px; border-radius: 7px; background: rgba(0,0,0,.6);
  font: 700 10px var(--tb-font); color: #FDE68A; white-space: nowrap; z-index: 5;
}

/* result (winning hand) pill above the pot */
.result-bar {
  position: absolute; transform: translate(-50%, -100%); z-index: 8; box-sizing: border-box; white-space: nowrap;
  max-width: 92%; overflow: hidden; text-overflow: ellipsis;
  height: 30px; line-height: 28px; padding: 0 14px; border-radius: 15px;
  background: rgba(10,10,12,.82); border: 1px solid rgba(231,200,115,.55);
  font: 800 13px var(--tb-font); color: #fff; text-align: center;
}
.result-bar b { color: #E7C873; font-weight: 800; }
.result-bar i { font-style: normal; color: rgba(255,255,255,.4); padding: 0 6px; }

/* ---------- action panel: presets, slider, Fold / Call / Raise ---------- */
.actions {
  flex-shrink: 0; height: 164px; box-sizing: border-box; padding: 9px 10px 10px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  background: #121214; border-top: 1px solid #2A2A2F; position: relative; z-index: 8;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.act-sizing { display: flex; flex-direction: column; gap: 7px; transition: opacity .2s; }
.act-sizing.off { opacity: 1; }
.act-sizing.off .act-presets, .act-sizing.off .act-slider { opacity: .35; pointer-events: none; }
.act-presets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.act-presets button {
  height: 28px; border-radius: 8px; background: #1F1F22; border: 1px solid #2E2E33; padding: 0;
  font: 700 12.5px var(--tb-font); color: #E4E4E7; cursor: pointer;
}
.act-presets button.on { border-color: #E7C873; color: #E7C873; }
.act-slider { display: flex; align-items: center; gap: 8px; }
.act-slider .step {
  width: 28px; height: 26px; border-radius: 7px; background: #1F1F22; border: 1px solid #2E2E33; padding: 0;
  font: 900 15px var(--tb-font); color: #E4E4E7; cursor: pointer;
}
.act-slider .track { flex: 1; height: 22px; position: relative; }
.act-slider .track::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 5px; border-radius: 3px; background: #2E2E33; }
.act-slider .fill { position: absolute; left: 0; top: 9px; height: 5px; border-radius: 3px; background: #22B464; }
.act-slider .knob {
  position: absolute; top: 1px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.5); pointer-events: none;
}
.act-slider input[type=range] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; touch-action: none; }
.act-amount {
  min-width: 72px; height: 26px; padding: 0 6px; box-sizing: border-box; border-radius: 7px; background: #0B0B0D; border: 1px solid #33333A;
  display: flex; align-items: center; justify-content: center; font: 800 13px var(--tb-font); color: #F4F4F5;
}
.act-main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.act-main button {
  height: 44px; border-radius: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px;
  font: 800 14.5px var(--tb-font); color: #fff; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.act-main .fold { background: linear-gradient(180deg, #C93A40, #9E2329); border: 1px solid #E0575C; }
.act-main .call { background: linear-gradient(180deg, #2F6BE0, #1D4FB8); border: 1px solid #4A84F0; }
.act-main .raise { background: linear-gradient(180deg, #22B464, #158A4A); border: 1px solid #3BCB7A; }
.act-main button:disabled { opacity: .4; cursor: default; }
/* pre-actions while waiting: same slots, dark buttons, gold when armed */
.act-main .pre { background: linear-gradient(180deg, #2A2A2F, #1F1F23); border: 1px solid #3A3A40; }
.act-main .pre.on { background: #0E0E10; border-color: #E7C873; color: #E7C873; }
.act-flags { display: flex; justify-content: space-between; align-items: center; padding: 0 2px; }
.act-flags label { display: flex; align-items: center; gap: 7px; font: 600 11.5px var(--tb-font); color: #A8A29A; cursor: pointer; }
.act-flags input {
  appearance: none; -webkit-appearance: none; width: 14px; height: 14px; margin: 0; border-radius: 4px;
  border: 1.5px solid #6A6570; background: transparent; cursor: pointer;
}
.act-flags input:checked { background: #E7C873; border-color: #E7C873; }
.act-msg { font: 600 11.5px var(--tb-font); color: #8A8178; text-align: center; }
.act-wait { text-align: center; padding: 12px 0 4px; color: #A8A29A; font: 600 13px var(--tb-font); }
.act-main.one { grid-template-columns: 1fr; }
.act-main.two { grid-template-columns: 1fr 1fr; }

/* ---------- table menu ---------- */
.tbl-menu {
  position: absolute; left: 10px; top: 54px; width: 230px; padding: 8px 0; border-radius: 14px; z-index: 50;
  background: rgba(24,24,27,.96); border: 1px solid #33333A; box-shadow: 0 18px 40px rgba(0,0,0,.6);
}
.tbl-menu button {
  display: flex; width: 100%; height: 40px; align-items: center; gap: 10px; padding: 0 16px;
  background: none; border: none; color: #F4F4F5; font: 700 14px var(--tb-font); text-align: left; cursor: pointer;
}
.tbl-menu button:hover { background: rgba(255,255,255,.04); }
.tbl-menu .div { height: 1px; background: #33333A; margin: 6px 14px; }
.tbl-menu button.danger { color: #F87171; }

/* ---------- dialogs on the table (exit confirm, table info) ---------- */
.tb-modal { position: absolute; inset: 0; z-index: 60; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tb-modal .box {
  width: 100%; max-width: 360px; border-radius: 16px; background: #18181B; border: 1px solid #33333A;
  box-shadow: 0 24px 60px rgba(0,0,0,.6); overflow: hidden; font-family: var(--tb-font);
}
.tb-modal .hd {
  position: relative; height: 54px; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid #2A2A2F; font: 800 17px var(--tb-font); color: #F4F4F5;
}
.tb-modal .hd .x {
  position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; border-radius: 8px; border: none;
  background: #232327; font: 800 15px var(--tb-font); color: #E4E4E7; cursor: pointer;
}
.tb-modal .bd { padding: 26px 22px; font: 600 14.5px var(--tb-font); color: #E4E4E7; line-height: 1.45; text-align: center; }
.tb-modal .row { display: flex; align-items: center; min-height: 40px; padding: 0 18px; }
.tb-modal .row:nth-child(even) { background: #1C1C1F; }
.tb-modal .row span:first-child { width: 44%; text-align: right; padding-right: 12px; font: 600 13px var(--tb-font); color: #8A8178; }
.tb-modal .row span:last-child { font: 700 13.5px var(--tb-font); color: #F4F4F5; }
.tb-modal .ft { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 18px 18px; }
.tb-modal .ft button { height: 44px; border-radius: 11px; font: 800 15px var(--tb-font); color: #fff; cursor: pointer; }
.tb-modal .ft .no { background: linear-gradient(180deg, #2A2A2F, #1F1F23); border: 1px solid #3A3A40; }
.tb-modal .ft .yes { background: linear-gradient(180deg, #C93A40, #9E2329); border: 1px solid #E0575C; }

/* ---------- chat panel ---------- */
/* chat (locked 2026-10-02): A = tall glass panel over the table that stops
   above the action bar; C = seat bubbles + one-line ticker while closed */
.chat-panel.glass {
  /* a side panel like hand history, not the whole table (owner 2026-10-05):
     the left of the table stays in clear view, the buttons stay reachable */
  position: absolute; right: 46px; top: 6px; bottom: 6px; z-index: 50;
  width: min(64%, 300px); animation: chatIn .22s cubic-bezier(.2,.8,.25,1);
  border-radius: 16px; background: rgba(10,10,12,.5);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(231,200,115,.24); box-shadow: 0 18px 40px rgba(0,0,0,.45);
  display: flex; flex-direction: column; overflow: hidden; font-family: var(--tb-font);
}
.chat-panel .head {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 9px;
  font: 800 11px var(--tb-font); letter-spacing: .12em; text-transform: uppercase; color: #E3C998;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.chat-panel .head button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.25); color: #D4D4D8; font-size: 13px; cursor: pointer; }
.chat-panel .head button:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.chat-panel .msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-panel .msgs > :first-child { margin-top: auto; }
.chat-panel .empty { color: rgba(255,255,255,.55); font-size: 12.5px; text-align: center; padding: 8px 0; }
.chat-panel .msg { align-self: flex-start; max-width: 82%; display: flex; flex-direction: column; gap: 2px; }
.chat-panel .msg .nm { font: 800 10.5px var(--tb-font); color: #E3C998; padding-left: 4px; }
.chat-panel .msg .tx { background: rgba(255,255,255,.1); color: #F4F4F5; font-size: 13px; line-height: 1.35; padding: 7px 11px; border-radius: 4px 14px 14px 14px; overflow-wrap: anywhere; }
.chat-panel .msg.me { align-self: flex-end; }
.chat-panel .msg.me .tx { background: linear-gradient(180deg,#E7C873,#C9A463); color: #1A1406; font-weight: 700; border-radius: 14px 4px 14px 14px; }
.chat-panel .quick { display: flex; gap: 6px; padding: 8px 10px 0; overflow-x: auto; scrollbar-width: none; }
.chat-panel .quick button { flex: none; height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid rgba(231,200,115,.3); background: rgba(0,0,0,.3); color: #F4F4F5; font: 700 12px var(--tb-font); cursor: pointer; }
.chat-panel .quick button:hover:not(:disabled) { border-color: #E7C873; }
.chat-panel form { display: flex; gap: 6px; padding: 8px 10px 10px; }
.chat-panel input {
  flex: 1; min-width: 0; height: 36px; border-radius: 18px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.4);
  color: #F4F4F5; padding: 0 14px; font-size: 13px; outline: none;
}
.chat-panel input:focus { border-color: rgba(231,200,115,.6); }
.chat-panel form button { border: none; border-radius: 18px; background: linear-gradient(180deg,#E7C873,#C9A463); color: #1A1406; font: 800 12.5px var(--tb-font); padding: 0 16px; cursor: pointer; }
.chat-panel button:disabled, .chat-panel input:disabled { opacity: .45; cursor: not-allowed; }

.side-btn.br { right: 4px; bottom: 4px; }
.side-btn.bl { left: 4px; bottom: 4px; }
/* chat + hand history (owner 2026-10-05): coloured icons, no glass box */
.side-btn.ico { width: 42px; height: 42px; background: none; border: none; backdrop-filter: none; -webkit-backdrop-filter: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.55)); }
.side-btn.ico:hover svg { transform: scale(1.06); } .side-btn.ico svg { transition: transform .12s; }

.chat-bub {
  position: absolute; z-index: 40; transform: translate(-50%,-100%); width: max-content; max-width: 150px; pointer-events: none;
  background: #F4F4F5; color: #18181B; font: 700 11.5px/1.3 var(--tb-font); padding: 5px 9px; border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.4); animation: chatBubIn .18s ease-out; transition: opacity .35s;
}
.chat-bub::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: #F4F4F5; }
.chat-bub.out { opacity: 0; }
@keyframes chatBubIn { from { opacity: 0; transform: translate(-50%,-80%) scale(.9); } }
.chat-ticker {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%); max-width: calc(100% - 110px); z-index: 7; pointer-events: none;
  font: 600 11.5px var(--tb-font); color: #F4F4F5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(0,0,0,.55); padding: 5px 11px; border-radius: 12px;
}
.chat-ticker b { color: #E3C998; }
@keyframes chatIn { from { opacity: 0; transform: translateX(24px); } }
@media (prefers-reduced-motion: reduce) { .chat-bub, .chat-panel.glass { animation: none; } }

/* ---------- OFC ---------- */
.ofc-row { display: flex; gap: 2px; }
.ofc-grid { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; z-index: 3; transform: translateX(-50%) scale(var(--s, 1)); transform-origin: 50% 0; }
.ofc-line { position: relative; display: flex; align-items: center; }
.ofc-line .rowlab { position: absolute; right: calc(100% + 6px); }
.ofc-grid .rowlab { font: 800 9px var(--tb-font); letter-spacing: .14em; color: rgba(255,255,255,.7); }
.ofc-grid .pcard { width: 34px; height: 47px; }
.ofc-grid .pcard .r { font-size: 16px; } .ofc-grid .pcard .s { top: 17px; font-size: 12px; } .ofc-grid .pcard .bigsuit { font-size: 18px; }
.ofc-actions { display: flex; gap: 8px; }
.ofc-actions button { height: 42px; flex: 1; border-radius: 10px; border: 1px solid #3A3A40; background: #1F1F22; color: #E4E4E7; font: 800 13px var(--tb-font); }
.ofc-actions button.confirm { background: linear-gradient(180deg, #22B464, #158A4A); color: #fff; border: 1px solid #3BCB7A; }
.discard-slot { width: 46px; height: 64px; border-radius: 5px; border: 1.5px dashed rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); font: 700 10px var(--tb-font); }
.tray { display: flex; gap: 6px; justify-content: center; }
.tray .pcard.selected { outline: 2px solid #E7C873; outline-offset: 1px; }

/* momentary action bubble at the acting seat (in addition to the tag) */
.act-tag { position: absolute; left: 0; top: -44px; transform: translateX(-50%);
  z-index: 30; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  font: 800 10px var(--tb-font); letter-spacing: .06em;
  background: rgba(10,10,12,.88); border: 1px solid rgba(255,255,255,.22); color: #F4F4F5;
  box-shadow: 0 4px 12px rgba(0,0,0,.45); animation: actTagIn .18s ease-out; pointer-events: none; }
.act-tag.act-fold { color: #D4D4D8; }
.act-tag.act-check { color: #D4D4D8; }
.act-tag.act-call { color: #93B4FF; border-color: rgba(74,132,240,.5); }
.act-tag.act-raise_to, .act-tag.act-bet { color: #FCD34D; border-color: rgba(217,119,6,.55); }
.act-tag.act-all_in { color: #fff; background: rgba(220,38,38,.92); }
.act-tag.out { opacity: 0; transition: opacity .4s ease; }
@keyframes actTagIn { from { opacity: 0; transform: translateX(-50%) translateY(6px); } }

/* "your turn" nudge while you're on another screen of the table (HH, chat) */
.turn-nudge {
  position: absolute; left: 50%; bottom: 172px; transform: translateX(-50%); z-index: 70;
  display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 14px;
  background: rgba(14,14,16,.92); border: 1.5px solid #E7C873; box-shadow: 0 10px 30px rgba(0,0,0,.6);
  font: 800 13px var(--tb-font); color: #E7C873; cursor: pointer; animation: actTagIn .2s ease-out;
}
.turn-nudge .pcard { width: 30px; height: 42px; }
.turn-nudge .pcard .r { font-size: 14px; left: 4px; } .turn-nudge .pcard .s { top: 16px; left: 4px; font-size: 11px; } .turn-nudge .pcard .bigsuit { display: none; }
.turn-nudge .cs { display: flex; gap: 2px; }

/* gold metal icon set (owner pick A, 2026-10-05) */
.gi { width: 22px; height: 22px; display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.45)); }
.side-btn .gi { width: 23px; height: 23px; }
.side-btn.tl { color: #E7C873; }

/* ---------- action bar: jewel buttons + gold chip slider (owner pick C, 2026-10-05) ---------- */
.actions { height: 184px; padding: 10px 12px 10px; background: linear-gradient(180deg, rgba(18,19,22,.97), rgba(8,9,11,.99)); border-top: 1px solid rgba(231,200,115,.18); }
.act-presets button {
  height: 30px; border-radius: 15px; border: none; color: #1a1405; font: 800 12.5px var(--tb-font);
  background: linear-gradient(180deg, #F3DA9C, #C9A55E); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 5px rgba(0,0,0,.45);
}
.act-presets button.on { background: linear-gradient(180deg, #FFF0C4, #E0B85E); color: #1a1405; box-shadow: 0 0 0 2px #fff3cf, 0 2px 6px rgba(0,0,0,.5); }
.act-slider { gap: 9px; }
.act-slider .step {
  width: 30px; height: 30px; border-radius: 50%; font: 800 17px var(--tb-font); color: #E7C873;
  background: linear-gradient(180deg, #2c2e34, #121316); border: 1px solid rgba(231,200,115,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 2px 5px rgba(0,0,0,.5);
}
.act-slider .track { height: 34px; }
.act-slider .track::before { top: 13px; height: 8px; border-radius: 5px; background: #08090b; box-shadow: inset 0 1px 3px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.08); }
.act-slider .fill { top: 13px; height: 8px; border-radius: 5px; background: linear-gradient(90deg, #8C6420, #E0B85E 70%, #FBE7AE); }
.act-slider .knob {
  top: 0; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: url("../assets/ui/slider-chip.svg") center/100% no-repeat;
  box-shadow: none; filter: drop-shadow(0 3px 5px rgba(0,0,0,.7));
}
.act-amount {
  min-width: 70px; height: 32px; border-radius: 10px; font: 800 15px var(--tb-font); color: #F7E2A8;
  background: linear-gradient(180deg, #24262b, #0f1013); border: 1px solid rgba(231,200,115,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.act-main { gap: 9px; }
.act-main button {
  height: 54px; border-radius: 15px; border: 1.5px solid #D9B76A; padding: 0 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 0 0 2px rgba(0,0,0,.25), 0 5px 12px rgba(0,0,0,.55);
}
.act-main button b { font: 800 11.5px var(--tb-font); letter-spacing: .14em; }
.act-main button em { font: 800 19px var(--tb-font); font-style: normal; margin-top: 2px; }
.act-main button b:only-child { font-size: 15px; }
.act-main .fold { background: radial-gradient(120% 90% at 50% 0, #e0464f, #8e1219 70%); border-color: #D9B76A; }
.act-main .call { background: radial-gradient(120% 90% at 50% 0, #3f7fff, #12308f 70%); border-color: #D9B76A; }
.act-main .raise { background: radial-gradient(120% 90% at 50% 0, #2ccf72, #0b6b37 70%); border-color: #D9B76A; }
.act-main .pre { background: linear-gradient(180deg, #2A2B30, #141518); border: 1.5px solid rgba(231,200,115,.35); font: 800 13px var(--tb-font); }
.act-main .pre.on { background: #0E0E10; border-color: #E7C873; color: #E7C873; }
.act-main button:disabled { opacity: .45; }
.act-slider .track { margin: 0 15px; }

/* ---------- table art: emerald / ruby / sapphire / onyx / amethyst (owner 2026-10-07) ----------
   One transparent portrait table image per skin (1015x1513, rail thickness
   visible), drawn at its TRUE aspect (never stretched), contained and
   centred in the stage on a plain dark backdrop (no room image, no veil).
   The stage is a size container; --aw/--ah/--ax/--ay are the art box.
   The seat engine's .tbl-felt box = the rail's centre line on the art
   (Flutter TableLayout.artRailOf: left 8.0% top 3.0% width 83.5% height
   85.4%), so seats sit on the rail; the cloth itself (artFeltOf) is
   left 13.4% top 6.0% width 72.0% height 81.7%. */
.tbl-roombg, .tbl-glass { display: none !important; }
.tbl-room { display: none; }
.tbl-wrap[data-skin] .tbl-stage {
  z-index: 1; container-type: size;
  --aw: min(100cqw, 100cqh * 1015 / 1513);
  --ah: min(100cqh, 100cqw * 1513 / 1015);
  --ax: calc((100cqw - var(--aw)) / 2);
  --ay: calc((100cqh - var(--ah)) / 2);
}
.tbl-wrap[data-skin] .tbl-rail { display: none; }
.tbl-wrap[data-skin] .tbl-room {
  display: block; position: absolute; pointer-events: none;
  left: var(--ax); top: var(--ay); width: var(--aw); height: var(--ah);
}
.tbl-room img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.55)); }
.tbl-wrap[data-skin] .tbl-felt {
  left: calc(var(--ax) + var(--aw) * .080); top: calc(var(--ay) + var(--ah) * .030);
  width: calc(var(--aw) * .835); height: calc(var(--ah) * .854);
}
.tbl-wrap[data-skin] .actions { z-index: 8; }

/* ---------- hexagon badge seats (owner pick A, 2026-10-05) ---------- */
.seat .av, .seat .av .in { clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); border-radius: 0; }
.seat .av { left: -27px; top: -28px; width: 54px; height: 56px; padding: 2.5px; box-shadow: none;
  background: linear-gradient(160deg, #FBE7AE, #D9AE55 45%, #8C6420); filter: drop-shadow(0 4px 8px rgba(0,0,0,.65)); }
.seat .av .in { border: none; background: #111; }
.seat.actor .av, .seat.actor-you .av { background: linear-gradient(160deg, #9CF5C2, #3EDB86 45%, #118a45); }
.seat.winner .av { background: linear-gradient(160deg, #EFE4CE, #D4B98A 45%, #8F7650); }
.seat .plate {
  left: -46px; top: 20px; width: 92px; padding: 1.5px; border: none; border-radius: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  background: linear-gradient(160deg, #FBE7AE, #D9AE55 45%, #8C6420);
  clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%); filter: drop-shadow(0 3px 6px rgba(0,0,0,.6));
}
.seat .plate::before {
  content: ""; position: absolute; inset: 1.5px; z-index: -1;
  background: linear-gradient(180deg, #24262c, #0a0b0d); clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
}
.seat .plate { isolation: isolate; }
.seat .plate .nm { padding: 3px 12px 0; font: 700 10.5px var(--tb-font); color: #E4DED2; }
.seat .plate .st { padding-bottom: 3px; color: #F7E2A8; }
.seat.actor .plate, .seat.actor-you .plate, .seat.winner .plate { box-shadow: none; }
.seat.actor .plate, .seat.actor-you .plate { background: linear-gradient(160deg, #9CF5C2, #3EDB86 45%, #118a45); }
.seat .ring { left: -29px; top: -29px; }
.seat .ring .track { stroke: rgba(0,0,0,.35); }
/* slider chip scales with the screen: ~24px on small phones, 30px max (owner 2026-10-05) */
.act-slider { --chip: clamp(24px, 6.4vw, 30px); }
.act-slider .track { height: var(--chip); margin: 0 calc(var(--chip) / 2); }
.act-slider .track::before, .act-slider .fill { top: calc(50% - 4px); }
.act-slider .knob { width: var(--chip); height: var(--chip); margin-left: calc(var(--chip) / -2); top: 0; }

/* real-time results sheet */
.rr-sh { padding: 14px 18px 8px; font-family: var(--tb-font); }
.rr-t { text-align: center; font: 800 17px var(--tb-font); color: #F2EFEA; margin-bottom: 12px; }
.rr-h, .rr { display: grid; grid-template-columns: 1fr 72px 92px; gap: 8px; align-items: center; }
.rr-h { padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.05); font: 700 12px var(--tb-font); color: #A8A29A; }
.rr-h span:nth-child(n+2), .rr span:nth-child(n+2) { text-align: right; }
.rr { padding: 11px 10px; border-bottom: 1px solid rgba(255,255,255,.06); font: 700 14px var(--tb-font); color: #F4F4F5; }
.rr .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr.me .n, .rr.me .b { color: #E7C873; }
.rr .w.up { color: #3EDB86; } .rr .w.dn { color: #F06464; }
.rr-note, .rr-empty { padding: 12px 10px; font: 600 12px var(--tb-font); color: #8A8178; text-align: center; }
.rr-s { margin-top: 14px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.05); text-align: center; font: 700 12.5px var(--tb-font); color: #D4D4D8; }
.rr-sp { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 4px; }
.rr-sp .sp { padding: 5px 10px; border-radius: 12px; background: #1d1e22; font: 700 12px var(--tb-font); color: #D4D4D8; }
.rr-sp .sp.none { background: none; color: #8A8178; }
/* time bank: gold alarm-clock art with the live seconds written on its face (owner art 2026-10-05) */
.side-btn#tb-bank { background: url("../assets/ui/timebank-clock-128.webp") center 45% / 30px auto no-repeat, linear-gradient(180deg, rgba(44,46,52,.92), rgba(14,15,18,.95)); }
.side-btn#tb-bank #tb-bank-s { position: relative; top: 4px; font: 800 9.5px var(--tb-font); color: #F3D58A; text-shadow: 0 1px 2px #000; }
.side-btn#tb-bank.empty #tb-bank-s { color: #8A8178; }

/* last 5 s of your turn: the clock rattles like an alarm bell */
@keyframes tb-ring { 0%,100% { transform: rotate(0) } 15% { transform: rotate(-11deg) } 30% { transform: rotate(10deg) } 45% { transform: rotate(-8deg) } 60% { transform: rotate(6deg) } 75% { transform: rotate(-3deg) } }
.side-btn#tb-bank.urgent { animation: tb-ring .5s ease-in-out infinite; border-color: #F06464; }
.side-btn#tb-bank.urgent #tb-bank-s { color: #FF8A8A; }
@media (prefers-reduced-motion: reduce) { .side-btn#tb-bank.urgent { animation: none; } }

/* open seat: gold "+" circle on the rail (owner 2026-10-05); empty seats while you sit: faint ring */
.sit-btn { width: 50px; height: 50px; padding: 2.5px; background: linear-gradient(160deg, #FBE7AE, #D9AE55 45%, #8C6420); }
.sit-btn > span { background: radial-gradient(circle at 50% 35%, #2a2c32, #0c0d10 75%); border: none; }
.sit-btn > em { position: absolute; left: 50%; top: calc(100% + 3px); transform: translateX(-50%); font: 800 10px var(--tb-font); font-style: normal;
  letter-spacing: .08em; color: #F3DA9C; text-shadow: 0 1px 3px #000; white-space: nowrap; }
.sit-btn:hover > span, .sit-btn:active > span { background: radial-gradient(circle at 50% 35%, #3a3d44, #121316 75%); }
.seat-empty { border: 1.5px solid rgba(231,200,115,.28); background: rgba(0,0,0,.28); }
/* open seat stands out from players: solid bright-gold disc, dark "+", white ring */
.sit-btn { background: #fff; padding: 2px; box-shadow: 0 4px 10px rgba(0,0,0,.6); }
.sit-btn > span { background: radial-gradient(circle at 40% 30%, #FFF0C4, #E9C46A 55%, #B88A3A); }
.sit-btn:hover > span, .sit-btn:active > span { background: radial-gradient(circle at 40% 30%, #FFF6D8, #F3D27E 55%, #C99A45); }
.sit-btn > em { color: #fff; }
/* PPP-style packing (owner 2026-10-05): cards hug the avatar, overlap tightly,
   fanned a few degrees — only the corner index of each card shows */
.seat.hero .hcards { left: 8px; top: -58px; }
.seat.hero .hcards .pcard { transform-origin: 50% 110%; box-shadow: -2px 2px 6px rgba(0,0,0,.45); }
.seat.hero .hcards .pcard + .pcard { margin-left: -27px; }
.seat.hero .hcards:not(.n4):not(.n5):not(.n6) .pcard:first-child { transform: rotate(-5deg); }
.seat.hero .hcards:not(.n4):not(.n5):not(.n6) .pcard:last-child { transform: rotate(5deg); }
.seat.hero .hcards.n4 .pcard, .seat.hero .hcards.n5 .pcard, .seat.hero .hcards.n6 .pcard { width: 42px; height: 60px; }
.seat.hero .hcards.n4 .pcard + .pcard { margin-left: -27px; }
.seat.hero .hcards.n5 .pcard + .pcard, .seat.hero .hcards.n6 .pcard + .pcard { margin-left: -29px; }
.seat.hero .hcards.n4 .pcard:nth-child(1) { transform: rotate(-9deg); } .seat.hero .hcards.n4 .pcard:nth-child(2) { transform: rotate(-3deg); }
.seat.hero .hcards.n4 .pcard:nth-child(3) { transform: rotate(3deg); }  .seat.hero .hcards.n4 .pcard:nth-child(4) { transform: rotate(9deg); }
.seat.hero .hcards.n4 .pcard .r, .seat.hero .hcards.n5 .pcard .r, .seat.hero .hcards.n6 .pcard .r { font-size: 17px; left: 3px; }
.seat.hero .hcards.n4 .pcard .s, .seat.hero .hcards.n5 .pcard .s, .seat.hero .hcards.n6 .pcard .s { left: 4px; top: 19px; }
.seat .cards { top: -24px; }
.seat .cards.in-r { left: 14px; } .seat .cards.in-l { right: 14px; }
.seat .cards .cardback { transform-origin: 50% 100%; }
.seat .cards .cardback + .cardback { margin-left: -17px; }
.seat .cards.in-l .cardback + .cardback { margin-right: -17px; }
.seat .cards.in-r .cardback:nth-child(1) { transform: rotate(-6deg); } .seat .cards.in-r .cardback:nth-child(2) { transform: rotate(4deg); }
.seat .cards.in-l .cardback:nth-child(1) { transform: rotate(6deg); }  .seat .cards.in-l .cardback:nth-child(2) { transform: rotate(-4deg); }
.seat .cards.up .pcard + .pcard { margin-left: -16px; } .seat .cards.in-l.up .pcard + .pcard { margin-right: -16px; }
/* time bank sits next to hand history, bottom-left, close to your seat (owner 2026-10-05) */
.side-btn#tb-bank { left: 50px; top: auto; bottom: 4px; }
.side-btn.l2 { top: 4px; }
/* hero cards sit to the RIGHT of the avatar (avatar stays visible), PPP style */
.seat.hero .hcards { left: 20px; top: -52px; }
.seat.hero .hcards.n4, .seat.hero .hcards.n5, .seat.hero .hcards.n6 { left: 22px; top: -46px; }
/* opponents' backs: bigger, tucked beside the avatar so they read clearly */
.seat .cards .cardback { width: 24px; height: 34px; border-radius: 4px; }
.seat .cards { top: -30px; }
.seat .cards.in-r { left: 20px; } .seat .cards.in-l { right: 20px; }
/* real-time results: left side pane */
.rr-pane-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.35); }
.rr-pane { position: fixed; left: 0; top: 0; bottom: 0; width: min(82vw, 340px); z-index: 61; overflow-y: auto;
  background: linear-gradient(180deg, rgba(24,25,29,.98), rgba(12,13,16,.98)); border-right: 1px solid rgba(231,200,115,.22);
  box-shadow: 8px 0 24px rgba(0,0,0,.5); transform: translateX(-100%); transition: transform .22s ease; padding-top: env(safe-area-inset-top); }
.rr-pane.open { transform: none; }
.rr-pane .rr-sh { padding-top: 18px; }
.rr-pane .rr-x { position: absolute; right: 10px; top: 12px; width: 32px; height: 32px; border-radius: 10px; border: 1px solid rgba(231,200,115,.35);
  background: #17181b; color: #E7C873; font: 800 16px var(--tb-font); cursor: pointer; }
.rr-pane .rr-h, .rr-pane .rr { grid-template-columns: 1fr 64px 84px; }
/* a touch smaller (owner 2026-10-05) */
.seat.hero .hcards .pcard { width: 46px; height: 64px; }
.seat.hero .hcards .pcard + .pcard { margin-left: -24px; }
.seat.hero .hcards .pcard .r { font-size: 22px; } .seat.hero .hcards .pcard .s { top: 24px; font-size: 14px; } .seat.hero .hcards .pcard .bigsuit { font-size: 26px; }
.seat.hero .hcards.n4 .pcard, .seat.hero .hcards.n5 .pcard, .seat.hero .hcards.n6 .pcard { width: 36px; height: 52px; }
.seat.hero .hcards.n4 .pcard + .pcard { margin-left: -22px; }
.seat.hero .hcards.n5 .pcard + .pcard, .seat.hero .hcards.n6 .pcard + .pcard { margin-left: -24px; }
.seat.hero .hcards { top: -46px; } .seat.hero .hcards.n4, .seat.hero .hcards.n5, .seat.hero .hcards.n6 { top: -40px; }
.seat .cards .cardback { width: 21px; height: 30px; }
/* ---------- card face v2 + tighter packing (owner 2026-10-05) ----------
   PPP-style face: big condensed rank top-left, suit under it, large suit
   bottom-right; cards sit right on the avatar's shoulder, heavily overlapped */
.pcard { background: linear-gradient(180deg, #FFFFFF, #F1EEE6); border: 1px solid rgba(0,0,0,.18); border-radius: 6px; }
.pcard .r { font-family: 'Archivo', var(--tb-font); font-weight: 800; letter-spacing: -1.5px; }
.pcard.c-heart { color: #E0282F; } .pcard.c-diamond { color: #1C5BE0; } .pcard.c-club { color: #11903F; } .pcard.c-spade { color: #121214; }
.seat.hero .hcards { left: 10px; top: -44px; }
.seat.hero .hcards .pcard { width: 46px; height: 64px; }
.seat.hero .hcards .pcard + .pcard { margin-left: -28px; }
.seat.hero .hcards .pcard .r { font-size: 24px; left: 3px; top: 2px; }
.seat.hero .hcards .pcard .s { font-size: 15px; left: 4px; top: 26px; }
.seat.hero .hcards .pcard .bigsuit { font-size: 28px; right: 3px; bottom: 1px; }
.seat.hero .hcards.n4, .seat.hero .hcards.n5, .seat.hero .hcards.n6 { left: 12px; top: -40px; }
.seat.hero .hcards.n4 .pcard, .seat.hero .hcards.n5 .pcard, .seat.hero .hcards.n6 .pcard { width: 38px; height: 54px; }
.seat.hero .hcards.n4 .pcard + .pcard { margin-left: -24px; }
.seat.hero .hcards.n5 .pcard + .pcard, .seat.hero .hcards.n6 .pcard + .pcard { margin-left: -26px; }
.seat.hero .hcards.n4 .pcard .r, .seat.hero .hcards.n5 .pcard .r, .seat.hero .hcards.n6 .pcard .r { font-size: 19px; left: 2px; top: 1px; }
.seat.hero .hcards.n4 .pcard .s, .seat.hero .hcards.n5 .pcard .s, .seat.hero .hcards.n6 .pcard .s { font-size: 12px; left: 3px; top: 21px; }
.seat .cards.in-r { left: 16px; } .seat .cards.in-l { right: 16px; }
.seat .cards .cardback + .cardback { margin-left: -16px; } .seat .cards.in-l .cardback + .cardback { margin-right: -16px; }
.seat .cards.up .pcard + .pcard { margin-left: -14px; } .seat .cards.in-l.up .pcard + .pcard { margin-right: -14px; }
/* time bank beside your seat */
.side-btn#tb-bank.by-hero { z-index: 7; }
/* results pane: partial width like the hand-history pane */
.rr-pane { width: min(72vw, 300px); }
.rr-pane .rr-h, .rr-pane .rr { grid-template-columns: 1fr 52px 70px; gap: 6px; font-size: 13px; }
.rr-pane .rr { font-size: 13px; padding: 10px 8px; }
.rr-pane-scrim { background: rgba(0,0,0,.18); }
/* results pane: numbers never wrap or spill */
.rr-pane .rr-h, .rr-pane .rr { grid-template-columns: minmax(0,1fr) 58px 76px; }
.rr .b, .rr .w { white-space: nowrap; font-variant-numeric: tabular-nums; }
.seat .plate .st { white-space: nowrap; }
/* chat emojis (owner 2026-10-05) */
.chat-panel .emo { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 2px; padding: 8px 10px 0; max-height: 120px; overflow-y: auto; }
.chat-panel .emo button { height: 34px; border: none; border-radius: 8px; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; }
.chat-panel .emo button:hover { background: rgba(255,255,255,.08); }
.chat-panel form #chat-emo-btn { flex: none; width: 36px; padding: 0; font-size: 18px; background: rgba(0,0,0,.35); border: 1px solid rgba(231,200,115,.3); }
.chat-panel .msg .tx, .chat-bub, .chat-ticker { font-family: var(--tb-font), "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

/* ---------- chat sticker packs ---------- */
.chat-panel .emo.stk-tray { display: block; max-height: 210px; padding: 6px 10px 0; }
.stk-tabs { display: flex; gap: 4px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
.stk-tabs button { width: 40px; height: 34px; border-radius: 10px; border: 1px solid transparent; background: transparent; display: grid; place-items: center; font-size: 19px; padding: 0; }
.stk-tabs button img { width: 26px; height: 26px; object-fit: contain; }
.stk-tabs button.on { background: rgba(231,200,115,.14); border-color: rgba(231,200,115,.45); }
.stk-emo { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 2px; padding-top: 6px; max-height: 150px; overflow-y: auto; }
.stk-emo button { height: 34px; border: 0; border-radius: 8px; background: transparent; font-size: 20px; }
.stk-head { font: 700 11px 'Manrope', sans-serif; color: #A79F94; padding: 6px 2px 2px; letter-spacing: .04em; } .stk-head b { color: #E7C873; }
.stk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 4px; max-height: 140px; overflow-y: auto; padding-bottom: 6px; }
.stk-grid button { height: 58px; border: 0; border-radius: 10px; background: transparent; padding: 3px; display: grid; place-items: center; }
.stk-grid button:active { background: rgba(255,255,255,.08); }
.stk-grid .stk { width: 50px; height: 50px; }
.stk-grid.locked .stk { filter: grayscale(.4) brightness(.7); }
.stk-get { width: 100%; margin: 2px 0 8px; padding: 10px; border-radius: 11px; border: 0; background: linear-gradient(180deg, #F3DEAE, #C9A15E); color: #15120D; font: 800 13px 'Manrope', sans-serif; }
.stk { width: 22px; height: 22px; vertical-align: -5px; object-fit: contain; }
.stk.big { width: 72px; height: 72px; vertical-align: middle; }
.msg .tx.stk-only { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 2px 0 !important; }
.chat-bub.stk-bub { background: transparent; border: 0; box-shadow: none; padding: 0; }
.chat-bub.stk-bub .stk.big { width: 64px; height: 64px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
/* animated pack: plays three times then rests */
.stk-a { animation-duration: 1s; animation-iteration-count: 3; animation-timing-function: ease-in-out; transform-origin: 50% 70%; }
.stk-grid .stk-a { animation-iteration-count: infinite; animation-duration: 1.6s; }
.a-shake { animation-name: stkShake; } .a-roll { animation-name: stkRoll; } .a-bob { animation-name: stkBob; } .a-pop { animation-name: stkPop; }
.a-beat { animation-name: stkBeat; } .a-wobble { animation-name: stkWobble; } .a-flicker { animation-name: stkFlicker; } .a-fly { animation-name: stkFly; }
.a-swim { animation-name: stkSwim; } .a-spin { animation-name: stkSpin; }
@keyframes stkShake { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(6deg); } }
@keyframes stkRoll { 0% { transform: rotate(0); } 50% { transform: rotate(-25deg) translateX(-3px); } 100% { transform: rotate(0); } }
@keyframes stkBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes stkPop { 0%,100% { transform: scale(1); } 40% { transform: scale(1.22); } 60% { transform: scale(.94); } }
@keyframes stkBeat { 0%,100% { transform: scale(1); } 25% { transform: scale(1.15); } 45% { transform: scale(1); } 65% { transform: scale(1.12); } }
@keyframes stkWobble { 0%,100% { transform: rotate(0) scale(1); } 30% { transform: rotate(8deg) scale(1.06); } 60% { transform: rotate(-8deg) scale(.96); } }
@keyframes stkFlicker { 0%,100% { transform: scale(1) translateY(0); filter: brightness(1); } 50% { transform: scale(1.08, 1.14) translateY(-2px); filter: brightness(1.25); } }
@keyframes stkFly { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(4px,-8px) rotate(6deg); } }
@keyframes stkSwim { 0%,100% { transform: translateX(0) rotate(0); } 50% { transform: translateX(6px) rotate(-5deg); } }
@keyframes stkSpin { 0% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { .stk-a { animation: none !important; } }


/* EV cashout offer — floats over the felt, board stays visible */
.ev-offer { position: absolute; left: 50%; bottom: calc(var(--act-h, 120px) + 18px); transform: translateX(-50%); z-index: 55; width: min(300px, 86vw); padding: 12px 14px 14px; border-radius: 14px; background: rgba(18,18,20,.94); border: 1px solid rgba(34,240,138,.35); box-shadow: 0 10px 30px rgba(0,0,0,.5); font: 600 13px var(--tb-font); color: #E4E4E7; animation: evIn .18s ease-out; }
.ev-offer.done { display: flex; flex-direction: column; gap: 4px; text-align: center; border-color: rgba(255,255,255,.12); }
.ev-offer.done span { color: #A1A1AA; font-weight: 500; }
.ev-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ev-hd b { letter-spacing: .02em; }
.ev-clock { font-style: normal; font-variant-numeric: tabular-nums; color: #FBBF24; }
.ev-num { display: flex; justify-content: space-between; padding: 3px 0; }
.ev-num span { color: #A1A1AA; font-weight: 500; }
.ev-num b { font-variant-numeric: tabular-nums; }
.ev-num b.win { color: var(--win, #22F08A); }
.ev-ft { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 10px; }
.ev-ft button { height: 38px; border-radius: 10px; border: 0; font: 700 13.5px var(--tb-font); cursor: pointer; }
.ev-no { background: #27272A; color: #E4E4E7; }
.ev-yes { background: var(--win, #22F08A); color: #052E16; }
.ev-ft button:disabled { opacity: .5; }
.ev-wait { margin-top: 10px; text-align: center; color: #A1A1AA; font-weight: 500; }
@keyframes evIn { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- action buttons: bright red / green / gold (owner 2026-10-06,
   same red and green as the Counter's Send / Take) ---------- */
.act-main .fold { background: linear-gradient(180deg, #FF5463, #E0283B); border: 1px solid #FF7A86; color: #fff; text-shadow: 0 1px 2px rgba(80,0,10,.45); }
.act-main .call { background: linear-gradient(180deg, #3BF59A, #12B866); border: 1px solid #7DFBBE; color: #04140B; text-shadow: none; }
.act-main .raise { background: linear-gradient(180deg, #FFD66B, #F2A516); border: 1px solid #FFE49A; color: #1F1300; text-shadow: none; }
.act-main .fold, .act-main .call, .act-main .raise { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 5px 14px rgba(0,0,0,.5); }

/* ---------- round avatars (owner 2026-10-06: circles, not hexagons) ---------- */
.seat .av, .seat .av .in { clip-path: none; border-radius: 50%; }
.seat .av { left: -27px; top: -27px; width: 54px; height: 54px; padding: 2.5px; }
.seat .ring { left: -29px; top: -29px; }

/* last seconds: red glow round the avatar and a big countdown on it */
@keyframes avRedGlow { 0%, 100% { box-shadow: 0 0 0 2px rgba(255,59,74,.85), 0 0 14px 4px rgba(255,59,74,.55); } 50% { box-shadow: 0 0 0 2px #ff3b4a, 0 0 26px 9px rgba(255,59,74,.85); } }
#tbl-layer .seat[data-ring="amber"] .av, #tbl-layer .seat[data-ring="red"] .av { filter: none; animation: avRedGlow 1s ease-in-out infinite; }
#tbl-layer .seat[data-ring="red"] .av { animation-duration: .5s; }
#tbl-layer .seat[data-ring="amber"] .secb, #tbl-layer .seat[data-ring="red"] .secb {
  left: -23px; top: -23px; width: 46px; height: 46px; z-index: 5; background: rgba(60,0,8,.5); color: #fff;
  font: 900 24px var(--tb-font); text-shadow: 0 0 8px #ff3b4a, 0 2px 4px rgba(0,0,0,.9); box-shadow: none;
}
#tbl-layer .seat[data-ring="red"] .secb { background: rgba(110,0,14,.55); }
@media (prefers-reduced-motion: reduce) { .seat[data-ring] .av { animation: none !important; } }
#tbl-layer .seat[data-ring="amber"] .ring .fill, #tbl-layer .seat[data-ring="red"] .ring .fill { stroke: #ff3b4a; filter: drop-shadow(0 0 4px #ff3b4a); }
#tbl-layer .seat .ring { z-index: 3; }

/* ---------- LOCKED (owner 2026-10-06): cards stand VERTICAL, packed close
   like PPP — no fan, no tilt, hero or opponents. Keep this block last. ---------- */
#tbl-layer .seat .hcards .pcard, #tbl-layer .seat .cards .cardback, #tbl-layer .seat .cards .pcard { transform: none !important; }
#tbl-layer .seat.hero .hcards { left: 10px; top: -44px; }
#tbl-layer .seat.hero .hcards .pcard { width: 46px; height: 64px; }
#tbl-layer .seat.hero .hcards .pcard + .pcard { margin-left: -28px; }
#tbl-layer .seat.hero .hcards.n4, #tbl-layer .seat.hero .hcards.n5, #tbl-layer .seat.hero .hcards.n6 { left: 12px; top: -40px; }
#tbl-layer .seat.hero .hcards.n4 .pcard, #tbl-layer .seat.hero .hcards.n5 .pcard, #tbl-layer .seat.hero .hcards.n6 .pcard { width: 38px; height: 54px; }
#tbl-layer .seat.hero .hcards.n4 .pcard + .pcard { margin-left: -24px; }
#tbl-layer .seat.hero .hcards.n5 .pcard + .pcard, #tbl-layer .seat.hero .hcards.n6 .pcard + .pcard { margin-left: -26px; }

/* Polaris Mata Aces: 5 personal card slots + 3 Ayudas, compact enough for 7-max. */
#tbl-layer .seat .cards.up.mata .pcard + .pcard { margin-left: -15px; }
#tbl-layer .seat .cards.in-l.up.mata .pcard + .pcard { margin-left: 0; margin-right: -15px; }
#tbl-layer .seat.hero .hcards.mata { left: 12px; top: -58px; }
#tbl-layer .seat.hero .hcards.mata .pcard { width: 36px; height: 52px; }
#tbl-layer .seat.hero .hcards.mata .pcard + .pcard { margin-left: -24px; }
#tbl-layer .board.mata-ayudas { gap: 4px; }
#tbl-layer .board.mata-ayudas .board-label { color: #E7C873; letter-spacing: .14em; }

/* ---------- off-felt controls (owner 2026-10-06) ----------
   left corner: hand history, time bank above it (only when the table has
   one); right corner: chat with voice right above it */
.tbl-wrap .side-btn#tb-hh2 { display: flex !important; }
.side-btn#tb-hh2 { left: 4px; right: auto; top: auto; bottom: 4px; }
.side-btn#tb-bank, .side-btn#tb-bank.by-hero { left: 4px !important; right: auto; top: auto !important; bottom: 50px !important; }
.side-btn#tb-bank[hidden] { display: none; }
.side-btn#tb-mic { right: 4px; left: auto; top: auto; bottom: 50px; }
.side-btn#tb-chat { right: 4px; left: auto; top: auto; bottom: 4px; }

/* top-up pill: left end of the raise pills, always live (owner 2026-10-06) */
.act-prow { display: flex; gap: 6px; align-items: stretch; }
.act-prow .act-presets { flex: 1 1 auto; min-width: 0; }
.act-tu { flex: 0 0 auto; width: 34px; height: 28px; padding: 0; margin-right: 2px; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.act-tu svg { width: 30px; height: 30px; }
.act-tu:active { transform: scale(.92); }
.act-wait.act-out { color: #E4E4E7; font-weight: 700; }
.act-main .act-back { font-size: 15px; }
/* top-up sheet */
.tu-bd { padding: 18px 20px 6px; display: grid; gap: 10px; font: 600 14px var(--tb-font); color: #E4E4E7; }
.tu-row { display: flex; justify-content: space-between; }
.tu-row span { color: #A1A1AA; font-weight: 500; }
.tu-row b { font-variant-numeric: tabular-nums; } .tu-row small { color: #3BF59A; font-weight: 600; }
.tu-quick { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.tu-quick button { height: 34px; border-radius: 9px; border: 1px solid #33333A; background: #1F1F22; color: #E4E4E7; font: 700 13px var(--tb-font); cursor: pointer; }
.tu-in input { width: 100%; box-sizing: border-box; height: 42px; border-radius: 10px; border: 1px solid #33333A; background: #0E0E10; color: #F4F4F5; font: 700 16px var(--tb-font); text-align: center; }
.tu-note { color: #A1A1AA; font: 500 12.5px var(--tb-font); text-align: center; }
.tb-modal .ft .tu-go { background: linear-gradient(180deg, #3BF59A, #12B866); color: #04140B; border-color: #7DFBBE; }

/* voice: joined = quiet listening dot; red only while you're talking */
.side-btn#tb-mic.live { background: linear-gradient(180deg, rgba(44,46,52,.92), rgba(14,15,18,.95)); border-color: rgba(59,245,154,.55); }
.side-btn#tb-mic.live::after { content: ""; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: #3BF59A; box-shadow: 0 0 6px #3BF59A; }
.side-btn#tb-mic.talking { background: linear-gradient(180deg, #FF5463, #E0283B) !important; border-color: #FF7A86 !important; box-shadow: 0 0 0 3px rgba(255,59,74,.35), 0 0 16px rgba(255,59,74,.6); }

/* voice messages in chat (owner 2026-10-06) */
.chat-panel .msg .vm { display: inline-flex; align-items: center; gap: 8px; min-width: 150px; padding: 7px 12px 7px 8px; border: 0; cursor: pointer; font: 700 12.5px var(--tb-font); color: inherit; }
.vm .vm-pl { width: 26px; height: 26px; border-radius: 50%; background: #3BF59A; flex: 0 0 auto; position: relative; }
.vm .vm-pl::after { content: ""; position: absolute; left: 10px; top: 7px; border-left: 9px solid #04140B; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.vm.playing .vm-pl::after { left: 8px; top: 8px; width: 3px; height: 10px; border: 0; background: #04140B; box-shadow: 6px 0 0 #04140B; }
.vm.busy .vm-pl { opacity: .55; }
.vm .vm-wave { display: flex; align-items: center; gap: 2px; height: 20px; flex: 1 1 auto; }
.vm .vm-wave b { width: 3px; border-radius: 2px; background: currentColor; opacity: .55; }
.vm.playing .vm-wave b { opacity: .9; animation: vmPulse .6s ease-in-out infinite alternate; }
.vm.playing .vm-wave b:nth-child(odd) { animation-delay: .15s; }
@keyframes vmPulse { to { transform: scaleY(.55); } }
.vm .vm-t { font-variant-numeric: tabular-nums; opacity: .8; }
.vm-ic { width: 14px; height: 14px; vertical-align: -2px; color: #3BF59A; }
@media (prefers-reduced-motion: reduce) { .vm.playing .vm-wave b { animation: none; } }

/* ---------- table settings: felt picker + volume (owner 2026-10-07, Flutter parity) ----------
   selected = neutral white (never gold) */
.gs-felt-sub { font: 600 11.5px 'Manrope', sans-serif; color: #8F8A82; margin: -4px 0 8px; }
.gs-felts { display: flex; flex-wrap: wrap; gap: 6px; }
.gs-felt { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 5px; border-radius: 18px; cursor: pointer;
  background: #232328; border: 1px solid #34343B; color: #F4F2EE; font: 800 12.5px 'Manrope', sans-serif; }
.gs-felt i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); flex: none; }
.gs-felt.on { background: #F4F2EE; border-color: #F4F2EE; color: #121214; }
.tset label.tset-vol { gap: 10px; }
.tset label.tset-vol[hidden] { display: none; }
.tset label.tset-vol span { flex: none; }
.tset label.tset-vol input[type="range"] { flex: 1 1 auto; width: auto; min-width: 0; accent-color: #F4F2EE; }
.tset label.tset-vol b { flex: none; width: 30px; text-align: right; font: 800 12px 'Manrope', sans-serif; color: #F4F2EE; font-variant-numeric: tabular-nums; }
.gs .tset input[type="checkbox"] { accent-color: #F4F2EE; }

/* ---------- action bar skin: black glass (owner 2026-10-08, replaces the
   yellow pills / jewel buttons; layout unchanged) ---------- */
.actions { border-top-color: rgba(255,255,255,.08); }
.act-presets button {
  color: #F4F2EE; font: 800 12.5px var(--tb-font);
  background: linear-gradient(180deg, rgba(46,47,53,.96), rgba(19,20,23,.98));
  border: 1px solid rgba(255,255,255,.10); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 5px rgba(0,0,0,.45);
}
.act-presets button.on { background: #F4F2EE; color: #111214; border-color: #F4F2EE; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.act-slider .step { color: #F4F2EE; border-color: rgba(255,255,255,.14); }
.act-slider .fill { background: linear-gradient(90deg, #5A5C63, #E9E7E2); }
.act-amount { color: #F4F2EE; border-color: rgba(255,255,255,.14); }
.act-main button {
  border: 1px solid rgba(255,255,255,.10); color: #F4F2EE; text-shadow: none;
  background: linear-gradient(180deg, rgba(46,47,53,.96), rgba(19,20,23,.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 5px 12px rgba(0,0,0,.5);
}
.act-main .fold, .act-main .call, .act-main .raise { background: linear-gradient(180deg, rgba(46,47,53,.96), rgba(19,20,23,.98)); border-color: rgba(255,255,255,.10); }
.act-main .fold b { color: #E9A3A6; }
.act-main .raise { border-color: rgba(255,255,255,.22); }
.act-main .pre { border: 1px solid rgba(255,255,255,.10); }
.act-main .pre.on { background: #0E0E10; border-color: #F4F2EE; color: #F4F2EE; }
.act-flags input:checked { background: #F4F2EE; border-color: #F4F2EE; }
.act-main button b, .act-main button em, .act-main .call b, .act-main .raise b, .act-main .raise em, .act-main .call em { color: #F4F2EE; }
.act-main .fold b { color: #E9A3A6; }
/* owner pick B (2026-10-08): one gold action — BET/RAISE gold lettering +
   gold edge; selected size gold outline; FOLD soft red; CHECK/CALL white */
.act-presets button.on { background: #0E0E10; color: #E3C998; border-color: #E3C998; }
.act-amount { color: #E3C998; }
.act-main .raise { border-color: rgba(227,201,152,.55); }
.act-main .raise b, .act-main .raise em { color: #E3C998; }
.act-main .pre.on { border-color: #E3C998; color: #E3C998; }
