/* Poker Online — style "Кино перспектива" / "Црно злато" (see design/DIZAJN.md, design/tokens.css) */
:root {
  --ground: #0A0908;
  --stage: #1C1512;
  --bar: #0E0C0A;
  --panel: #151210;
  --panel-2: #1E1915;
  --text: #F1E9D6;
  --text-2: #D9CFB8;
  --muted: #A89E8A;
  --brass: #C9A34A;
  --brass-l: #E9D08A;
  --brass-d: #8F6F2A;
  --on-brass: #1A1409;
  --brass-grad: linear-gradient(180deg, #E9D08A, #B8923A);
  --felt: #3B1118;
  --danger: #A8252B;
  --danger-t: #E8A094;
  --play: #7FB6D1;
  --play-t: #B9DCEB;
  --card: #F7F1E3;
  --card-back: #15110E;
  --line: rgba(201,163,74,.35);
  --line-strong: rgba(201,163,74,.6);
  --line-2: rgba(241,233,214,.1);
  --font-display: 'Jost', system-ui, sans-serif;
  --font-ui: 'Jost', system-ui, sans-serif;
  --font-money: 'Jost', system-ui, sans-serif;
  --r-sm: 10px; --r-md: 12px; --r-lg: 18px; --r-pill: 999px;
  --shadow-1: 0 10px 24px rgba(0,0,0,.5);
  --shadow-2: 0 30px 60px rgba(0,0,0,.5);
  --glow-brass: 0 0 30px rgba(233,208,138,.45);
  --tap: 44px;
  /* legacy aliases (used by admin.html inline styles and older rules) */
  --bg: var(--ground); --bg2: var(--panel-2); --gold: var(--brass); --red: var(--danger);
  --green: #7FC08F; --blue: var(--play); --radius: var(--r-md);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; max-width: 100vw; overflow-x: hidden; }
html { background: var(--ground); }
body {
  background: var(--ground);
  color: var(--text);
  font: 500 15px/1.4 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--brass-l); text-decoration: none; }
a:hover { color: #fff; }
.hidden { display: none !important; }
h1, h2, h3 { margin: 0 0 12px; font-weight: 600; letter-spacing: 0; }
h1 { font-size: 32px; line-height: 1.1; }
h2 { font-size: 24px; line-height: 1.1; color: var(--brass-l); }
h3 { font-size: 18px; line-height: 1.2; }
h4 { margin: 14px 0 6px; font-weight: 600; font-size: 13px; color: var(--brass); }
.muted { color: var(--muted); }
.pos { color: var(--green); }
.neg { color: var(--danger-t); }
.right { text-align: right; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.money, .balance, .play-bal, .seat .st, .pot-label, .bet-chip, .stat .v, table.data td:nth-child(n) .num,
.action-bar .btn, .raise-row input[type=number], .table-item .blinds { font-family: var(--font-money); font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* Chip icon — brass = real money, blue = free play money */
.chip {
  display: inline-block; flex: none; width: 16px; height: 16px; border-radius: 50%; vertical-align: middle;
  background:
    radial-gradient(circle, var(--brass) 0 38%, var(--card-back) 39% 44%, var(--brass) 45% 58%, transparent 59%),
    repeating-conic-gradient(var(--card-back) 0 15deg, var(--brass) 15deg 45deg);
  box-shadow: 0 2px 4px rgba(0,0,0,.6);
}
.chip.play {
  background:
    radial-gradient(circle, var(--play) 0 38%, var(--card-back) 39% 44%, var(--play) 45% 58%, transparent 59%),
    repeating-conic-gradient(var(--card-back) 0 15deg, var(--play) 15deg 45deg);
}

/* ---------- Top bar ---------- */
#topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px; height: calc(56px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0;
  background: rgba(14,12,10,.95); border-bottom: 1px solid rgba(201,163,74,.4);
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--brass-l); white-space: nowrap; font-weight: 700; font-size: 17px; }
.brand::before {
  content: "♠"; width: 30px; height: 30px; border-radius: 50%; background: var(--brass-grad); color: var(--on-brass);
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-ui); font-size: 16px; font-weight: 700;
}
#topbar nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
#topbar nav a { color: var(--muted); padding: 8px 12px; border-radius: var(--r-sm); white-space: nowrap; font-weight: 600; font-size: 14px; }
#topbar nav a.active, #topbar nav a:hover { color: var(--text); background: rgba(241,233,214,.06); }
.balance-box { display: flex; align-items: center; gap: 8px; }
.balance, .play-bal {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 8px; border-radius: var(--r-pill);
  border: 1px solid rgba(201,163,74,.55); color: var(--brass-l); font-weight: 700; font-size: 16px; white-space: nowrap;
}
.balance::before, .play-bal::before { content: ""; width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: radial-gradient(circle, var(--brass) 0 38%, var(--card-back) 39% 44%, var(--brass) 45% 58%, transparent 59%), repeating-conic-gradient(var(--card-back) 0 15deg, var(--brass) 15deg 45deg); }
.play-bal { border-color: rgba(127,182,209,.45); color: var(--play-t); font-size: 14px; }
.play-bal::before { background: radial-gradient(circle, var(--play) 0 38%, var(--card-back) 39% 44%, var(--play) 45% 58%, transparent 59%), repeating-conic-gradient(var(--card-back) 0 15deg, var(--play) 15deg 45deg); }
.cur-sel { width: auto; height: 34px; padding: 0 8px; font-size: 13px; background: var(--panel); border-radius: var(--r-sm); }
.announcement { background: var(--brass-grad); color: var(--on-brass); padding: 8px 16px; text-align: center; font-weight: 700; }

main { max-width: 1200px; margin: 0 auto; padding: 16px; }
main.full { max-width: none; padding: 0; }

/* ---------- Forms & buttons ---------- */
.card { background: var(--panel); border: 1px solid rgba(201,163,74,.25); border-radius: var(--r-lg); padding: 20px 22px; }
.auth { max-width: 420px; margin: 6vh auto; background: linear-gradient(180deg, var(--stage), var(--bar)); border-color: rgba(201,163,74,.5); box-shadow: var(--shadow-2), 0 0 40px rgba(201,163,74,.08); }
.auth h1 { text-align: center; font-size: 28px; color: var(--brass-l); }
label { display: block; margin: 12px 0 5px; color: var(--muted); font-size: 13px; font-weight: 500; }
input, select, textarea {
  width: 100%; min-height: var(--tap); padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font: 500 14px var(--font-ui);
}
textarea { padding: 10px 14px; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; padding: 0; flex: none; accent-color: var(--brass); }
input[type=range] { padding: 0; border: 0; background: transparent; accent-color: var(--brass); min-height: 28px; }
input[type=number] { font-family: var(--font-money); font-weight: 700; font-size: 18px; }
input::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(233,208,138,.5); outline-offset: 1px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 18px; border-radius: var(--r-md); border: 1px solid rgba(241,233,214,.14);
  background: transparent; color: var(--text); font: 600 14px var(--font-ui); cursor: pointer; white-space: nowrap;
}
.btn:hover { background: rgba(241,233,214,.06); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.gold { background: var(--brass-grad); color: var(--on-brass); border-color: transparent; font-weight: 700; box-shadow: 0 8px 20px rgba(201,163,74,.3); }
.btn.gold:hover { filter: brightness(1.06); }
.btn.red { border-color: rgba(168,37,43,.75); background: rgba(168,37,43,.12); }
.btn.green { border-color: rgba(201,163,74,.6); background: rgba(201,163,74,.1); color: var(--brass-l); }
.btn.blue { border-color: rgba(241,233,214,.35); background: rgba(241,233,214,.06); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; margin-top: 16px; min-height: 48px; }
.links { display: flex; justify-content: space-between; margin-top: 16px; font-size: 14px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; color: var(--muted); font-size: 13px; }

/* ---------- Data tables ---------- */
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { font-weight: 600; font-size: 12px; color: var(--brass); text-align: left; padding: 12px 10px; border-bottom: 1px solid rgba(201,163,74,.3); white-space: nowrap; }
table.data td { padding: 10px; border-bottom: 1px solid rgba(241,233,214,.07); white-space: nowrap; color: var(--text-2); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr.click { cursor: pointer; }
table.data tr.click:hover { background: rgba(241,233,214,.04); }
.scroll-x { overflow-x: auto; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600; border: 1px solid rgba(241,233,214,.2); color: var(--text-2); }
.tag.green { color: var(--brass-l); border-color: var(--line-strong); }
.tag.red { color: var(--text); border-color: rgba(168,37,43,.7); background: rgba(168,37,43,.18); }
.tag.gold { color: var(--play-t); border-color: rgba(127,182,209,.5); }

/* ---------- Lobby ---------- */
.lobby { display: grid; grid-template-columns: 1fr 320px; gap: 16px; }
.table-list { border-radius: 14px; background: var(--bar); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-2); }
.table-item { display: flex; align-items: center; gap: 14px; padding: 0 14px; min-height: 64px; border-bottom: 1px solid rgba(241,233,214,.07); }
.table-item:last-child { border-bottom: 0; }
.table-item .info { flex: 1; min-width: 0; }
.table-item .name { font-weight: 600; font-size: 15px; }
.table-item .muted { font-size: 12px; }
.seats-bar { display: flex; gap: 3px; margin-top: 4px; align-items: center; }
.seats-bar i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(241,233,214,.35); }
.seats-bar i.on { background: var(--brass); border-color: var(--brass); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--panel); border: 1px solid rgba(201,163,74,.2); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column-reverse; gap: 6px; }
.stat .v { font-size: 28px; font-weight: 700; line-height: 1; }
.stat .l { color: var(--muted); font-size: 12px; font-weight: 500; }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; background: var(--bar); border: 1px solid rgba(201,163,74,.3); border-radius: 14px; min-height: 0; }
.chat-head { padding: 0 14px; height: 48px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(201,163,74,.25); color: var(--brass-l); font-weight: 600; font-size: 14px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 10px 14px; font-size: 14px; min-height: 200px; max-height: 60vh; line-height: 1.4; }
.chat-msgs .m { margin: 6px 0; word-wrap: break-word; }
.chat-msgs .m b { color: var(--brass-l); font-weight: 600; }
.chat-msgs .m.me b { color: var(--play-t); }
.chat-msgs .m.sys { padding: 6px 10px; border-radius: var(--r-sm); background: rgba(201,163,74,.1); border: 1px solid rgba(201,163,74,.2); color: var(--text-2); font-size: 13px; }
.chat-msgs .m .adm { color: var(--on-brass); background: var(--brass); border-radius: 4px; padding: 0 4px; font-size: 9px; font-weight: 700; letter-spacing: .08em; margin-right: 4px; vertical-align: middle; }
.chat-msgs .m time { color: var(--muted); font-size: 11px; margin-right: 6px; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid rgba(201,163,74,.25); }
.chat-form input { min-height: 40px; }

/* ---------- Poker table view ---------- */
.table-view { position: relative; height: calc(100dvh - 56px - env(safe-area-inset-top)); overflow: hidden; display: flex; }
.table-stage {
  position: relative; flex: 1; min-width: 0;
  background: radial-gradient(ellipse at 50% 88%, rgba(233,208,138,.14), rgba(233,208,138,0) 55%), radial-gradient(ellipse at 50% 45%, var(--stage) 0%, var(--ground) 70%);
}
.table-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(233,208,138,.22), rgba(233,208,138,.04) 65%, rgba(233,208,138,0)); clip-path: polygon(44% 0, 56% 0, 94% 100%, 6% 100%); }
#scene3d { position: absolute; inset: 0; }
#scene3d canvas { display: block; width: 100% !important; height: 100% !important; }
.overlay { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.overlay > * { pointer-events: auto; }
.table-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 10px; align-items: center; z-index: 5; }
.table-top .title { font-weight: 600; font-size: 18px; color: var(--brass-l); line-height: 1; white-space: nowrap; }
.table-top .hash { font-size: 11px; color: var(--muted); max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.side-chat { width: 300px; display: flex; flex-direction: column; border-left: 1px solid rgba(201,163,74,.3); background: var(--bar); }
.side-chat .chat { flex: 1; border-radius: 0; border: 0; }
.side-chat .chat-msgs { max-height: none; }

/* Player plate: cards (3D, on the felt) → ring + avatar → info */
.seat { position: absolute; transform: translate(-50%, -50%); width: 126px; text-align: center; display: flex; flex-direction: column; align-items: center; transition: opacity .2s; }
.seat .seat__cards { display: flex; height: 40px; margin-bottom: -14px; position: relative; z-index: 0; }
/* Cards fly in from the dealer's hands (--dx/--dy = offset to the dealer, --delay = deal order) */
.seat .seat__cards.deal .mini-card { animation: dealin .42s cubic-bezier(.2,.8,.3,1) both; animation-delay: var(--delay, 0ms); }
.seat .seat__cards.deal .mini-card:last-child { animation-delay: calc(var(--delay, 0ms) + 240ms); }
@keyframes dealin { from { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, 40px)) scale(.55) rotate(0); } 30% { opacity: 1; } }
.seat .seat__cards .mini-card { width: 30px; height: 40px; margin: 0; }
.seat .seat__cards .mini-card:first-child { transform: rotate(-8deg); }
.seat .seat__cards .mini-card:last-child { margin-left: -12px; transform: rotate(8deg); }
.seat.winner .seat__cards { transform: translateY(-6px) scale(1.15); z-index: 2; }
/* Revealed cards (showdown / "show cards"): big, fully visible above the avatar, nothing covers them */
.seat:has(.seat__cards.shown) { z-index: 6; }
.seat .seat__cards.shown { height: 0; margin: 0; overflow: visible; justify-content: center; z-index: 3; }
.seat .seat__cards.shown .mini-card { width: 46px; height: 62px; font-size: 20px; box-shadow: 0 6px 14px rgba(0,0,0,.65), 0 0 0 1px rgba(201,163,74,.6); margin-top: 6px; }
.seat .seat__cards.shown .mini-card .rk { left: 5px; top: 5px; }
.seat .seat__cards.shown .mini-card .rk svg { width: 14px; height: 14px; }
.seat .seat__cards.shown .mini-card:first-child { transform: rotate(-6deg); }
.seat .seat__cards.shown .mini-card:last-child { margin-left: -8px; transform: rotate(6deg); }
/* far seats (column-reverse): the cards container sits under the avatar, so lift the cards over it */
.seat.far .seat__cards.shown .mini-card { margin-top: -66px; }
.seat.winner .seat__cards.shown, .seat.far.winner .seat__cards.shown { transform: scale(1.08); }
.seat .seat__ring {
  --progress: 100%;
  position: relative; z-index: 1; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--ground);
  box-shadow: 0 0 0 1px rgba(201,163,74,.55), 0 10px 20px rgba(0,0,0,.6);
}
.seat .seat-av { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; display: block; background: var(--panel-2); }
.seat .seat__timer { position: absolute; top: -4px; right: -10px; min-width: 28px; height: 24px; padding: 0 6px; border-radius: var(--r-pill); background: var(--brass-grad); color: var(--on-brass); font: 700 14px var(--font-money); display: none; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.seat .plate {
  margin-top: -10px; min-width: 118px; padding: 12px 12px 6px; border-radius: var(--r-md);
  background: rgba(14,12,10,.92); border: 1px solid rgba(201,163,74,.35); box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 1px;
}
.seat .nm { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat .st { color: var(--brass-l); font-size: 17px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.seat .act { font-size: 11px; color: var(--muted); min-height: 13px; font-weight: 500; }
.seat .act.allin { color: var(--danger-t); }
.seat .hn { font-size: 11px; font-weight: 600; color: var(--brass-l); }
/* Pre-action bar, quick phrases, leaderboard */
.pre-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; width: 100%; }
.pre-actions .btn { min-height: 40px; }
.quick-phrases { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 10px; border-top: 1px solid rgba(201,163,74,.25); }
.quick-phrases button { min-height: 30px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid rgba(241,233,214,.14); background: transparent; color: var(--text); font: 500 13px var(--font-ui); cursor: pointer; }
.quick-phrases button:hover { border-color: var(--brass); color: var(--brass-l); }
tr.me-row td { background: rgba(201,163,74,.12); }
.seat .empty-seat.move { border-style: dotted; font-size: 11px; height: 32px; }

/* Gifts on a player's plate */
.seat[data-user]:not(.me) { cursor: pointer; }
.seat .seat__gifts { position: absolute; left: calc(100% - 10px); top: 10px; display: flex; flex-direction: column; gap: 2px; font-size: 18px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.7)); pointer-events: none; }
.seat .seat__gifts span { opacity: .85; }
.seat .seat__gifts span.keep { opacity: 1; font-size: 22px; }
.seat.far .seat__gifts { top: auto; bottom: 10px; }
.gift-fly { position: absolute; left: 50%; top: 40%; font-size: 40px; pointer-events: none; animation: giftfly 1.6s ease-out forwards; }
@keyframes giftfly { 0% { transform: translate(-50%, 60px) scale(.4); opacity: 0; } 25% { opacity: 1; transform: translate(-50%, -10px) scale(1.3); } 100% { transform: translate(-50%, -70px) scale(1); opacity: 0; } }
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gift-opt { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; border-radius: var(--r-md); border: 1px solid rgba(241,233,214,.14); background: var(--panel-2); color: var(--text); font: 600 13px var(--font-ui); cursor: pointer; }
.gift-opt:hover { border-color: var(--brass); }
.gift-opt:disabled { opacity: .5; }
.gift-opt .gift-ico { font-size: 30px; }
.gift-opt .money { color: var(--brass-l); font-size: 14px; }

/* Far-side seats: plate above the avatar, cards toward the felt */
.seat.far { flex-direction: column-reverse; transform: translate(-50%, -62%); }
.seat.far .plate { margin-top: 0; margin-bottom: -10px; padding: 6px 12px 12px; }
.seat.far .seat__cards { margin-bottom: 0; margin-top: -14px; }
.seat.far.winner .seat__cards { transform: translateY(6px) scale(1.15); }
.seat.turn .seat__ring { width: 70px; height: 70px; padding: 4px; background: conic-gradient(var(--brass-l) 0 var(--progress), rgba(241,233,214,.14) var(--progress) 100%); box-shadow: var(--glow-brass); }
.seat.turn .seat-av { box-shadow: 0 0 0 4px var(--ground); }
.seat.turn .seat__timer { display: inline-flex; }
.seat.turn .plate { border-color: rgba(201,163,74,.7); }
.seat.me .seat__ring { box-shadow: 0 0 0 2px var(--brass); }
.seat.me .plate { border-color: rgba(201,163,74,.7); }
.seat.me .st { font-size: 20px; }
.seat.winner .seat__ring { box-shadow: 0 0 0 3px var(--brass-l), 0 0 34px rgba(233,208,138,.8); }
.seat.winner .plate { background: var(--brass-grad); color: var(--on-brass); border-color: transparent; box-shadow: 0 10px 28px rgba(201,163,74,.45); }
.seat.winner .st, .seat.winner .hn, .seat.winner .act, .seat.winner .act .pos { color: var(--on-brass); }
.seat.folded { opacity: .45; filter: grayscale(.7); }
.seat .empty-seat {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  border: 2px dashed rgba(233,208,138,.5); background: rgba(10,9,8,.85); color: var(--brass-l); font-size: 13px; font-weight: 600; cursor: pointer;
}
.seat .empty-seat::before { content: "+"; font-size: 18px; line-height: 1; }
.seat .empty-seat:hover { border-color: var(--brass-l); color: #fff; }
.bot-tag { font-size: 9px; font-weight: 700; background: var(--play); color: var(--on-brass); border-radius: 4px; padding: 0 4px; vertical-align: middle; letter-spacing: .08em; }
.bet-chip {
  position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 4px;
  border-radius: var(--r-pill); background: rgba(10,9,8,.8); border: 1px solid rgba(201,163,74,.3); color: var(--text); font-size: 14px; font-weight: 700; pointer-events: none; white-space: nowrap;
}
.bet-chip::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, var(--brass) 0 38%, var(--card-back) 39% 44%, var(--brass) 45% 58%, transparent 59%), repeating-conic-gradient(var(--card-back) 0 15deg, var(--brass) 15deg 45deg); }
.pot-label { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; pointer-events: none; white-space: nowrap; }
.pot-label::before { content: "Pot"; font-size: 13px; font-weight: 600; color: var(--brass); }
.pot-label .v { font-size: 30px; font-weight: 800; color: #fff; line-height: 1; text-shadow: 0 0 24px rgba(233,208,138,.5); }
.result-banner {
  position: absolute; left: 12px; bottom: 110px; padding: 10px 16px; border-radius: var(--r-md); text-align: left; pointer-events: none; font-size: 14px; max-width: min(60%, 420px);
  background: rgba(14,12,10,.92); border: 1px solid rgba(201,163,74,.5); box-shadow: var(--shadow-1);
}
.result-banner b { color: var(--brass-l); font-weight: 600; }
.free-mode .seat .st, .free-mode .bet-chip::before, .free-mode .pot-label::before { color: var(--play-t); }
.free-mode .bet-chip::before { background: radial-gradient(circle, var(--play) 0 38%, var(--card-back) 39% 44%, var(--play) 45% 58%, transparent 59%), repeating-conic-gradient(var(--card-back) 0 15deg, var(--play) 15deg 45deg); }

/* Dealer behind the far rail */
.dealer-seat { position: absolute; transform: translate(-50%, -55%); display: flex; flex-direction: column; align-items: center; pointer-events: none; z-index: 1; }
.dealer-seat img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--brass); box-shadow: 0 10px 24px rgba(0,0,0,.7), 0 0 0 4px rgba(10,9,8,.8); background: var(--panel); }
/* Photo dealer: a cut-out figure sitting behind the far rail */
/* The cut-out includes her hands, which rest on the felt just inside the far rail */
.dealer-seat.figure { transform: translate(-50%, -82%); z-index: 1; }
.dealer-seat.figure img { width: auto; height: 120px; border: 0; border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(0 12px 18px rgba(0,0,0,.75)); }
.dealer-seat.figure .dealer-tag { margin-top: 4px; } /* below her hands, on the felt */
/* Speech bubble next to the dealer (not over her face), always on top and easy to read */
.dealer-seat.figure .dealer-say {
  bottom: auto; top: 10px; left: calc(50% + 46px); transform: translate(0, 6px);
  border-radius: 12px 12px 12px 3px; font-size: 14px; padding: 8px 14px; z-index: 9;
  background: #F7F1E3; color: #1a1512; box-shadow: 0 6px 18px rgba(0,0,0,.6), 0 0 0 1px rgba(201,163,74,.6);
}
.dealer-seat.figure .dealer-say.show { transform: translate(0, 0); }
.dealer-seat.figure .dealer-say::before { content: ""; position: absolute; left: -7px; bottom: 10px; border: 7px solid transparent; border-right-color: #F7F1E3; border-left: 0; }
.dealer-tag { margin-top: -8px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--brass-grad); color: var(--on-brass); font-size: 10px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; box-shadow: 0 4px 10px rgba(0,0,0,.5); }
.dealer-say { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translate(-50%, 6px); padding: 6px 12px; border-radius: 12px 12px 12px 3px; background: rgba(247,241,227,.95); color: #1a1512; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .2s, transform .2s; box-shadow: var(--shadow-1); }
.dealer-say.show { opacity: 1; transform: translate(-50%, 0); }
.dealer-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.dealer-opt { flex: 1; min-width: 140px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border-radius: var(--r-lg); border: 2px solid rgba(241,233,214,.14); background: var(--panel-2); color: var(--text); cursor: pointer; font: inherit; }
.dealer-opt img { width: 84px; height: 84px; border-radius: 50%; }
.dealer-opt.sel { border-color: var(--brass); box-shadow: 0 0 24px rgba(201,163,74,.25); }
.dealer-opt span { font-size: 12px; }

/* Hand strength meter (bottom-left, above the action bar) */
.strength { position: absolute; left: 12px; bottom: 104px; z-index: 6; width: 230px; padding: 8px 10px; border-radius: var(--r-md); background: rgba(14,12,10,.9); border: 1px solid rgba(201,163,74,.4); box-shadow: var(--shadow-1); }
.strength__top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.strength__top span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strength__top b { font-size: 14px; color: var(--brass-l); }
.strength__help { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--brass-l); font: 700 12px var(--font-ui); cursor: pointer; }
.strength__bar { margin-top: 6px; height: 8px; border-radius: 99px; background: rgba(241,233,214,.1); overflow: hidden; }
.strength__bar i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .4s, background .4s; }
.rankings { display: flex; flex-direction: column; }
.rank-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); border-bottom: 1px solid rgba(241,233,214,.07); }
.rank-row.cur { background: rgba(201,163,74,.14); border: 1px solid var(--line-strong); }
.rank-row .mini-card { width: 26px; height: 36px; font-size: 11px; }

/* Mini playing cards (history, lobby) */
.mini-card { position: relative; display: inline-flex; flex: none; width: 32px; height: 44px; background: var(--card); border-radius: 4px; color: #1A1512; font: 700 13px/1 var(--font-ui);
  box-shadow: 0 4px 10px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.4), inset 0 0 0 2px var(--card), inset 0 0 0 3px rgba(201,163,74,.55); margin-right: 3px; }
.mini-card .rk { position: absolute; left: 4px; top: 4px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.mini-card .rk svg { width: 9px; height: 9px; fill: currentColor; }
.mini-card.red { color: var(--danger); }
.mini-card.back { background-color: var(--card-back); background-image: repeating-linear-gradient(45deg, rgba(201,163,74,.45) 0 1px, transparent 1px 6px), repeating-linear-gradient(-45deg, rgba(201,163,74,.45) 0 1px, transparent 1px 6px); border: 2px solid var(--brass); box-shadow: 0 4px 10px rgba(0,0,0,.6); }

/* Action bar */
.action-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; min-height: 92px; padding: 10px 16px; padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: var(--bar); border-top: 1px solid rgba(201,163,74,.4);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
}
.raise-row { display: flex; gap: 8px; align-items: center; flex: 1; min-width: 280px; }
.raise-row input[type=range] { flex: 1; min-width: 120px; }
.raise-row input[type=number] { width: 110px; text-align: center; color: var(--brass-l); background: var(--ground); border-color: var(--line-strong); font-size: 18px; }
.raise-row .btn { min-height: 44px; padding: 0 12px; font-size: 12px; }
.action-bar .btns { display: flex; gap: 10px; margin-left: auto; }
.action-bar .btns .btn { min-height: 56px; min-width: 104px; padding: 0 16px; font-size: 16px; }
.action-bar .btns .btn.gold { min-width: 170px; }
.action-bar .btns .btn .amt { font-family: var(--font-money); font-size: 20px; font-weight: 700; }
.my-controls { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

/* ---------- Wallet / history ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.section { margin-bottom: 16px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 12px; flex-wrap: wrap; }
.tabs button { min-height: 40px; padding: 0 16px; border-radius: var(--r-md); border: 0; background: transparent; color: var(--muted); cursor: pointer; font: 600 13px var(--font-ui); letter-spacing: .04em; }
.tabs button.active { background: var(--brass-grad); color: var(--on-brass); font-weight: 700; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 12px; align-items: center; }
.chart { width: 100%; height: 160px; }

/* ---------- Modal & toasts ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(10,9,8,.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box { background: var(--panel); border: 1px solid rgba(201,163,74,.5); border-radius: var(--r-lg); padding: 24px; width: 100%; max-width: 460px; max-height: 90vh; overflow: auto; box-shadow: var(--shadow-2); }
.modal-box.wide { max-width: 900px; }
#toasts { position: fixed; top: 70px; right: 12px; z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: 340px; }
.toast { background: rgba(14,12,10,.92); border: 1px solid rgba(201,163,74,.5); padding: 10px 16px; border-radius: var(--r-pill); box-shadow: var(--shadow-1); animation: tin .2s; font-size: 14px; }
.toast.error { border-color: rgba(168,37,43,.7); }
.toast.action { border-radius: var(--r-md); border-color: var(--brass); }
.toast.ok { border-color: var(--brass); }
@keyframes tin { from { transform: translateX(30px); opacity: 0; } }

/* ---------- Avatars ---------- */
.av-xs { width: 20px; height: 20px; border-radius: 50%; vertical-align: middle; margin-right: 4px; object-fit: cover; }
.av-sm { width: 34px; height: 34px; border-radius: 50%; vertical-align: middle; object-fit: cover; border: 2px solid var(--brass); background: var(--panel-2); }
.av-lg { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brass); margin-right: 10px; }
.av-xl { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--brass); background: var(--panel-2); }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-top: 14px; }
.av-grid img { width: 100%; aspect-ratio: 1; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: transform .1s; }
.av-grid img:hover { transform: scale(1.06); }
.av-grid img.sel { border-color: var(--brass); }

/* ---------- Responsive ---------- */
/* Table chat: a drawer on phones/tablets (any screen under 1100px wide or 500px tall); the table gets the whole screen */
@media (max-width: 1100px), (max-height: 500px) {
  .side-chat { position: absolute; right: 0; top: 0; bottom: 0; z-index: 10; width: min(320px, 90vw); transform: translateX(100%); transition: transform .2s; box-shadow: -10px 0 30px rgba(0,0,0,.6); }
  .side-chat.open { transform: none; }
}
@media (max-width: 900px) {
  .lobby, .grid2 { grid-template-columns: 1fr; }
  #topbar { gap: 8px; padding-left: 10px; padding-right: 10px; overflow-x: auto; scrollbar-width: none; }
  #topbar nav { flex: none; }
  .balance-box { flex: none; }
  .brand { font-size: 0; }
  .seat { width: 96px; }
  .seat .seat__ring { width: 48px; height: 48px; }
  .seat .seat-av { width: 42px; height: 42px; }
  .seat.turn .seat__ring { width: 56px; height: 56px; }
  .seat .plate { min-width: 92px; padding: 4px 10px; }
  .seat .nm { font-size: 11px; }
  .seat .st, .seat.me .st { font-size: 14px; }
  .mini-card { width: 26px; height: 36px; font-size: 11px; }
}
@media (min-width: 1101px) and (min-height: 501px) { .chat-toggle { display: none; } }

.rotate-hint { display: none !important; }
/* Phone held upright: the table is ALWAYS horizontal, so the whole table view is turned sideways
   (the player can keep rotation lock on). Nothing else of the page is visible behind it. */
@media (orientation: portrait) and (max-width: 700px) {
  body.on-table { overflow: hidden; }
  body.on-table #topbar, body.on-table #announcement { display: none !important; }
  body.on-table .table-view {
    position: fixed; top: 0; left: 0; width: 100dvh !important; height: 100dvw !important; transform-origin: top left; transform: rotate(90deg) translateY(-100%);
    z-index: 30; overflow: hidden;
  }
}

/* Phones (held sideways, or upright with the view turned): header 44px, action bar 72px, table in between */
@media (orientation: landscape) and (max-height: 500px), (orientation: portrait) and (max-width: 500px) {
  body.on-table #topbar, body.on-table #announcement { display: none !important; }
  body.on-table .table-view { height: 100dvh; }
  .table-top { top: 0; left: 0; right: 0; height: 44px; padding: 0 6px; background: var(--bar); border-bottom: 1px solid rgba(201,163,74,.4); }
  .table-top .title { font-size: 16px; }
  .table-top .hash { display: none; }
  #scene3d { top: 44px; bottom: 72px; }
  .seat { width: 80px; }
  .seat .seat__ring { width: 38px; height: 38px; }
  .seat .seat-av { width: 32px; height: 32px; }
  .seat.turn .seat__ring { width: 46px; height: 46px; padding: 3px; }
  .seat .seat__timer { height: 18px; min-width: 22px; font-size: 11px; top: -3px; right: -8px; }
  .seat .plate { min-width: 72px; padding: 8px 6px 3px; margin-top: -8px; }
  .seat.far .plate { padding: 3px 6px 8px; margin-top: 0; margin-bottom: -8px; }
  .seat.far .seat__cards { margin-top: -10px; }
  .seat .nm { font-size: 10px; }
  .seat .st, .seat.me .st { font-size: 12px; }
  .seat .act { font-size: 8px; min-height: 10px; }
  .seat .hn { font-size: 9px; }
  .seat .seat__cards { height: 30px; margin-bottom: -10px; }
  .seat .seat__cards .mini-card { width: 22px; height: 30px; font-size: 9px; }
  .seat .seat__cards .mini-card:last-child { margin-left: -9px; }
  .seat .seat__cards.shown { height: 0; margin: 0; }
  .seat .seat__cards.shown .mini-card { width: 36px; height: 48px; font-size: 16px; margin-top: 4px; }
  .seat .seat__cards.shown .mini-card .rk svg { width: 11px; height: 11px; }
  .seat .seat__cards.shown .mini-card:last-child { margin-left: -6px; }
  .seat.far .seat__cards.shown .mini-card { margin-top: -52px; }
  .pot-label::before { font-size: 11px; }
  .seat .empty-seat { height: 34px; padding: 0 12px; font-size: 12px; }
  .strength { bottom: 78px; left: 8px; width: 190px; padding: 5px 8px; }
  .strength__bar { height: 6px; margin-top: 4px; }
  .dealer-seat img { width: 36px; height: 36px; }
  .dealer-seat.figure { transform: translate(-50%, -70%); }
  .dealer-seat.figure img { width: auto; height: 66px; }
  .dealer-seat.figure .dealer-say { left: calc(50% + 26px); top: 2px; font-size: 11px; padding: 4px 8px; }
  .dealer-seat.figure .dealer-tag { margin-top: -4px; }
  .dealer-tag { font-size: 8px; padding: 1px 6px; }
  .bet-chip { height: 18px; font-size: 11px; padding: 0 7px 0 3px; gap: 3px; background: rgba(10,9,8,.9); }
  .bet-chip::before { width: 10px; height: 10px; }
  .pot-label { gap: 5px; }
  .pot-label::before { font-size: 10px; }
  .pot-label .v { font-size: 20px; }
  .seat .plate { background: rgba(14,12,10,.96); }
  .seat .seat__cards .mini-card { box-shadow: 0 2px 5px rgba(0,0,0,.6); }
  .result-banner { font-size: 11px; padding: 5px 8px; bottom: auto; top: 50px; left: 6px; max-width: 30%; }
  .action-bar { min-height: 72px; height: 72px; padding: 0 12px; padding-right: calc(12px + env(safe-area-inset-right)); flex-wrap: nowrap; gap: 10px; }
  .raise-row { min-width: 0; flex: none; }
  .raise-row input[type=range] { display: none; }
  .raise-row input[type=number] { width: 90px; font-size: 16px; }
  .action-bar .btns { gap: 8px; }
  .pre-actions > span { display: none; }
  .my-controls .btn { min-height: 32px; padding: 0 8px; font-size: 11px; }
  #watchers { display: none; }
  .action-bar .btns .btn { min-width: 0; min-height: 50px; padding: 0 14px; font-size: 14px; }
  .action-bar .btns .btn.gold { min-width: 150px; }
  .side-chat { top: 0; }
}

/* ---------- GSAP motion hooks ----------
   fx.js animates these CSS variables; the independent scale / translate properties compose with
   the transform each element already uses for positioning. */
.seat { scale: var(--pop, 1); translate: var(--sx, 0px) 0; }
.bet-chip, .pot-label { scale: var(--pop, 1); }
.action-bar, .result-banner, .table-item { translate: 0 var(--ay, 0px); }
.modal-box { scale: var(--pop, 1); translate: 0 var(--ay, 0px); }
.fx-float {
  position: absolute; transform: translate(-50%, -50%); translate: 0 var(--ay, 0px); scale: var(--pop, 1);
  pointer-events: none !important; z-index: 8; white-space: nowrap;
  font-family: var(--font-money, Jost, sans-serif); font-weight: 800; font-size: 22px; color: var(--brass-l, #E9D08A);
  text-shadow: 0 0 18px rgba(233,208,138,.85), 0 2px 4px rgba(0,0,0,.9);
}
.fx-float.me { font-size: 28px; color: #fff3c4; }
.fx-banner {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); scale: var(--pop, 1);
  pointer-events: none !important; z-index: 9; text-align: center; white-space: nowrap;
  font-family: Jost, sans-serif; font-weight: 800; font-size: clamp(40px, 8vw, 84px); line-height: 1; letter-spacing: .08em;
  background: linear-gradient(180deg, #fff6d8 0%, #E9D08A 40%, #B8923A 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px rgba(201,163,74,.55));
}
.fx-banner small { display: block; margin-top: 8px; font-size: .34em; letter-spacing: .04em; font-weight: 700; }
.fx-banner.allin { background-image: linear-gradient(180deg, #fff1d6 0%, #ffb15c 45%, #d2452b 100%); filter: drop-shadow(0 6px 26px rgba(255,106,61,.6)); }
@media (max-height: 420px) { .fx-banner { top: 36%; font-size: 44px; } .fx-float { font-size: 17px; } }

/* ---------- Table designs: stage around the 3D table ---------- */
.table-stage[data-theme] { transition: background .8s ease; }
.table-stage[data-theme=micro]  { background: radial-gradient(ellipse at 50% 88%, rgba(200,255,220,.10), transparent 55%), radial-gradient(ellipse at 50% 45%, #0f241b 0%, #060a08 72%); }
.table-stage[data-theme=low]    { background: radial-gradient(ellipse at 50% 88%, rgba(233,208,138,.14), transparent 55%), radial-gradient(ellipse at 50% 45%, #2a0c12 0%, #0a0606 72%); }
.table-stage[data-theme=medium] { background: radial-gradient(ellipse at 50% 88%, rgba(63,224,208,.12), transparent 55%), radial-gradient(ellipse at 50% 45%, #08262a 0%, #040909 72%); }
.table-stage[data-theme=high]   { background: radial-gradient(ellipse at 50% 92%, rgba(255,191,63,.18), transparent 50%), radial-gradient(ellipse at 50% 45%, #1d1606 0%, #050403 72%); }
.table-stage[data-theme=free]   { background: radial-gradient(ellipse at 50% 88%, rgba(47,200,255,.16), transparent 55%), radial-gradient(ellipse at 50% 45%, #0a1d33 0%, #03070d 72%); }
.table-stage[data-theme=medium]::before { background: linear-gradient(180deg, rgba(220,255,250,.18), rgba(220,255,250,.03) 65%, transparent); }
.table-stage[data-theme=high]::before   { background: linear-gradient(180deg, rgba(255,214,120,.26), rgba(255,214,120,.05) 65%, transparent); }
.table-stage[data-theme=free]::before   { background: linear-gradient(180deg, rgba(160,230,255,.2), rgba(160,230,255,.03) 65%, transparent); }

/* Lobby: mini table in each design */
.tswatch { flex: none; width: 54px; height: 34px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.5); }
.tswatch i { width: 42px; height: 24px; border-radius: 50%; display: block; }
.tswatch.th-micro  { background: linear-gradient(135deg, #8a5228, #4a2510); border: 1px solid #c9a34a; }
.tswatch.th-micro i  { background: radial-gradient(ellipse at 50% 35%, #1b6a4e, #0b3a2a); box-shadow: inset 0 0 0 1px rgba(201,163,74,.7); }
.tswatch.th-low    { background: linear-gradient(135deg, #2a221d, #0c0a08); border: 1px solid #d4ae55; }
.tswatch.th-low i    { background: radial-gradient(ellipse at 50% 35%, #6a1e30, #3a0e18); box-shadow: inset 0 0 0 1px rgba(201,163,74,.7); }
.tswatch.th-medium { background: linear-gradient(135deg, #1d2426, #020303); border: 1px solid #e3c98a; box-shadow: 0 0 12px rgba(63,224,208,.45); }
.tswatch.th-medium i { background: repeating-conic-gradient(from 0deg at 50% 50%, #0c5a63 0 6deg, #0a4a52 6deg 12deg); box-shadow: inset 0 0 0 1px rgba(227,201,138,.8); }
.tswatch.th-high   { background: linear-gradient(135deg, #2a2418, #050403); border: 1px solid #f0d58c; box-shadow: 0 0 14px rgba(255,191,63,.55); }
.tswatch.th-high i   { background: repeating-linear-gradient(45deg, rgba(233,208,138,.18) 0 1px, transparent 1px 6px), repeating-linear-gradient(-45deg, rgba(233,208,138,.18) 0 1px, transparent 1px 6px), #111114; box-shadow: inset 0 0 0 1px rgba(240,213,140,.8); }
.tswatch.th-free   { background: linear-gradient(135deg, #16263c, #070d16); border: 1px solid #7fd6f0; box-shadow: 0 0 14px rgba(47,200,255,.5); }
.tswatch.th-free i   { background: radial-gradient(ellipse at 50% 35%, #1d5a92, #0f3358); box-shadow: inset 0 0 0 1.5px #38d6ff; }
.tdesign { color: var(--brass-l); font-weight: 600; }
@media (max-width: 600px) { .tswatch { width: 42px; height: 27px; } .tswatch i { width: 32px; height: 19px; } }

/* ---------- Cards and chips per table design (HTML layer) ---------- */
.table-stage[data-theme=micro] .mini-card { background: #F7F1E3; color: #1A1512; box-shadow: 0 4px 10px rgba(0,0,0,.6), inset 0 0 0 1.5px rgba(201,163,74,.6); }
.table-stage[data-theme=micro] .mini-card.red { color: #A8252B; }
.table-stage[data-theme=micro] .mini-card.back { background-color: #0E3B2B; border-color: #C9A34A; }
.table-stage[data-theme=low] .mini-card { background: #FBF5E6; color: #1A1210; font-family: Georgia, 'Times New Roman', serif; box-shadow: 0 4px 10px rgba(0,0,0,.6), inset 0 0 0 2px #C9A34A, inset 0 0 0 3.5px #FBF5E6, inset 0 0 0 4.5px rgba(201,163,74,.7); }
.table-stage[data-theme=low] .mini-card.red { color: #8E1B2C; }
.table-stage[data-theme=low] .mini-card.back { background-color: #4A1220; background-image: radial-gradient(circle, rgba(212,174,85,.35) 1.5px, transparent 2px); background-size: 7px 7px; border-color: #D4AE55; }
.table-stage[data-theme=medium] .mini-card { background: #FAFAF7; color: #0E1A1C; font-weight: 500; box-shadow: 0 4px 10px rgba(0,0,0,.6), inset 0 0 0 1.5px #0F6670; }
.table-stage[data-theme=medium] .mini-card.red { color: #B3263A; }
.table-stage[data-theme=medium] .mini-card.back { background-color: #0A0C0D; background-image: repeating-conic-gradient(from 0deg at 50% 50%, rgba(227,201,138,.35) 0 8deg, rgba(63,224,208,.12) 8deg 16deg); border-color: #E3C98A; }
.table-stage[data-theme=high] .mini-card { background: #111114; color: #E9D08A; box-shadow: 0 4px 12px rgba(0,0,0,.7), inset 0 0 0 2px #C9A34A; }
.table-stage[data-theme=high] .mini-card.red { color: #FF4D5E; }
.table-stage[data-theme=high] .mini-card.back { background-color: #0B0B0D; background-image: repeating-linear-gradient(45deg, rgba(233,208,138,.35) 0 1px, transparent 1px 5px), repeating-linear-gradient(-45deg, rgba(233,208,138,.35) 0 1px, transparent 1px 5px); border-color: #F0D58C; box-shadow: 0 0 10px rgba(255,191,63,.35); }
.table-stage[data-theme=free] .mini-card { background: #F4FBFF; color: #10233A; font-weight: 800; box-shadow: 0 4px 10px rgba(0,0,0,.6), 0 0 8px rgba(56,214,255,.55), inset 0 0 0 1.5px #38D6FF; }
.table-stage[data-theme=free] .mini-card.red { color: #E5336B; }
.table-stage[data-theme=free] .mini-card.back { background-color: #0F2848; background-image: radial-gradient(circle, rgba(56,214,255,.4) 1px, transparent 1.5px); background-size: 6px 6px; border-color: #38D6FF; box-shadow: 0 0 10px rgba(56,214,255,.5); }
.table-stage[data-theme] .bet-chip::before { background: radial-gradient(circle, var(--chip-b) 0 30%, var(--chip-a) 31% 44%, transparent 45%), repeating-conic-gradient(var(--chip-a) 0 22deg, var(--chip-b) 22deg 38deg, var(--chip-a) 38deg 60deg); border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.table-stage[data-theme=micro]  { --chip-a: #1E6B48; --chip-b: #F3EBD6; }
.table-stage[data-theme=low]    { --chip-a: #6B1A2A; --chip-b: #D4AE55; }
.table-stage[data-theme=medium] { --chip-a: #0F6670; --chip-b: #F2F0EA; }
.table-stage[data-theme=high]   { --chip-a: #0C0C0E; --chip-b: #E9C46A; }
.table-stage[data-theme=free]   { --chip-a: #26B7E8; --chip-b: #FFFFFF; }

/* admin → user: the money of section 1, section 2 and the private room, each with + / − */
.money3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 12px; }
.money3__box { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2, #191928); border: 1px solid var(--line, rgba(255, 255, 255, .08)); }
.money3__box b { font-size: 22px; }
.money3__box .row { gap: 6px; margin-top: 6px; }
/* add / remove money: where (section 1, section 2, private room), one per line */
.sec-pick { display: grid; gap: 8px; }
.sec-pick .check { margin: 0; align-items: center; font-size: 14px; color: var(--text); cursor: pointer; }
.sec-pick input[type=radio] { width: 18px; height: 18px; }
