/* Баккара: two hands side by side with big totals, a result line, three raised side chips */
.g-baccarat .g-stage { padding: 0; }
.bac-board { position: relative; padding: 40px 12px 14px; }
.bac-hands { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bac-hand { position: relative; padding: 2px 6px 8px; border-radius: 16px; }
.bac-glow { position: absolute; inset: 0; border-radius: 16px; opacity: 0; pointer-events: none; box-shadow: inset 0 0 0 2px var(--win), 0 0 26px rgba(212,255,58,.22), inset 0 0 34px rgba(212,255,58,.10); }
.bac-hand.bac-t .bac-glow { box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 30px rgba(255,195,55,.10); }

.bac-head { position: relative; height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 4px; }
.bac-hand[data-h="b"] .bac-head { flex-direction: row-reverse; }
.bac-name { display: grid; gap: 3px; min-width: 0; }
.bac-hand[data-h="b"] .bac-name { justify-items: end; text-align: right; }
.bac-name b { font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--fg); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.bac-hand.bac-mine .bac-name b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pick); box-shadow: 0 0 0 3px rgba(139,123,255,.25); }
.bac-hand[data-h="b"].bac-mine .bac-name b { flex-direction: row-reverse; }
.bac-tag { font-size: 11px; font-weight: 800; color: var(--gold); white-space: nowrap; min-height: 13px; }
.bac-tot { display: inline-block; font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -.02em; color: var(--fg); }
.bac-hand.bac-w .bac-tot { color: var(--win); text-shadow: 0 0 18px rgba(212,255,58,.45); }
.bac-hand.bac-l .bac-tot { color: var(--fg2); }
.bac-hand.bac-t .bac-tot { color: var(--gold); }

.bac-cards { position: relative; height: 141px; margin-top: 4px; }
.bac-cards .pcard { --cw: 62px; --cr: 7px; --ce: 3px; position: absolute; left: 50%; top: 0; transform-origin: 50% 50%; }
.bac-cards .pcard .pcard-f { box-shadow: 0 var(--ce) 0 #cdd1dc, -4px 2px 8px rgba(0,0,0,.3), 0 7px 12px rgba(0,0,0,.45); }
.bac-cards .pcard .pcard-b { box-shadow: 0 var(--ce) 0 var(--pick-2), -4px 2px 8px rgba(0,0,0,.3), 0 7px 12px rgba(0,0,0,.45); }

.bac-msg { height: 34px; margin: 6px 0 8px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 800; color: var(--fg); white-space: nowrap; }
.bac-board[data-msg="l"] .bac-msg-t { color: var(--loss); }
.bac-board[data-msg="t"] .bac-msg-t { color: var(--gold); }
.bac-amt { display: inline-flex; align-items: center; gap: 5px; font-size: 24px; font-weight: 900; color: var(--win); }
.bac-amt:empty { display: none; }
.bac-amt img { width: 21px; height: 21px; }

.bac-chips { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding-bottom: 5px; }
.bac-chip { position: relative; top: 0; height: 58px; border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 60%) var(--tile); box-shadow: 0 5px 0 var(--tile-edge), inset 0 1px 0 rgba(255,255,255,.1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--fg); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.bac-chip span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bac-chip b { font-size: 19px; font-weight: 900; line-height: 1; }
.bac-chip:not(:disabled):active { top: 3px; box-shadow: 0 2px 0 var(--tile-edge); background: var(--tile-hi); }
.bac-chip.on { background: linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 60%) var(--pick); box-shadow: 0 5px 0 #4b3cc4, 0 0 22px rgba(139,123,255,.3); color: #ffffff; }
.bac-chip.on:not(:disabled):active { box-shadow: 0 2px 0 #4b3cc4; background: var(--pick); }
.bac-chip:disabled:not(.on) { opacity: .55; }

/* lobby tile: burgundy felt, a gold table arc, two cards (a natural nine), two chips */
.bac-tile { background: radial-gradient(85% 60% at 50% 32%, #a3264c 0%, #5a1030 55%, #1c0612 100%); overflow: hidden; }
.bac-tile-felt { position: absolute; inset: 0; width: 100%; height: 100%; }
.bac-tile-c { position: absolute; top: 12cqw; }
.bac-tile-c .pcard { --cw: 36cqw; --cr: 3.6cqw; --ce: 1.2cqw; }
.bac-tile-c .pcard-f { box-shadow: 0 1.2cqw 0 #cdd1dc, 0 3cqw 5cqw rgba(0,0,0,.45); }
.bac-tile-c.a { left: 15cqw; transform: rotate(-12deg); }
.bac-tile-c.n { left: 47cqw; top: 9cqw; transform: rotate(10deg); }
.bac-tot.bac-none { visibility: hidden; }
