/* Baccarat */
/* ---------- Baccarat ---------- */
.bc-stage{flex-direction:column;justify-content:flex-start;gap:24px;padding:24px}
.bc-history{display:flex;gap:5px;flex-wrap:wrap;min-height:24px;width:100%;max-width:640px}
.bc-history span{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;animation:pop .3s ease}
.bc-history .player{background:#1475e1}.bc-history .banker{background:#e8364f}.bc-history .tie{background:#1f9d3a}
.bc-hands{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:16px;width:100%;max-width:640px}
.bc-hand{background:var(--bg);border-radius:10px;padding:16px;display:flex;flex-direction:column;align-items:center;gap:14px;border:2px solid transparent;transition:border-color .3s,box-shadow .3s}
.bc-hand.win{border-color:var(--green);box-shadow:0 0 24px rgba(0,231,1,.25)}
.bc-hand.tie{border-color:#1f9d3a}
.bc-label{font-weight:700;color:var(--muted);display:flex;align-items:center;gap:10px}
#bcPlayerHand .bc-label{color:#4fa3ff} #bcBankerHand .bc-label{color:#ff6b81}
.bc-score{min-width:34px;height:34px;border-radius:50%;background:var(--bg-dark);color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:800}
.bc-cards{display:flex;gap:6px;min-height:100px;align-items:center;justify-content:center}
.pcard{width:66px;height:94px;perspective:700px;animation:dealIn .3s ease-out}
@keyframes dealIn{from{transform:translateY(-40px) scale(.9);opacity:0}}
.pcard-inner{position:relative;width:100%;height:100%;transform-style:preserve-3d;transform:rotateY(180deg);transition:transform .35s ease}
.pcard.up .pcard-inner{transform:rotateY(0)}
/* the house's cards: a golden pulse while face down, then a slow turn (see suspenseFlip) */
.pcard.slow .pcard-inner{transition:transform var(--flip, 600ms) cubic-bezier(.5,.05,.25,1)}
.pcard.tense .pcard-face.back{animation:tense .35s ease-in-out infinite alternate}
@keyframes tense{from{box-shadow:0 4px 10px rgba(0,0,0,.35)}to{box-shadow:0 0 0 2px #ffc400,0 0 20px rgba(255,196,0,.65)}}
.pcard-face{position:absolute;inset:0;border-radius:7px;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:0 4px 10px rgba(0,0,0,.35)}
.pcard-face.front{background:#fff;color:#1a2c38;display:flex;flex-direction:column;justify-content:space-between;padding:6px 7px;font-weight:800}
.pcard-face.front.red{color:#e11d48}
.pcard-face.front .r{font-size:20px;line-height:1}
.pcard-face.front .s{font-size:30px;line-height:1;align-self:flex-end}
.pcard-face.back{transform:rotateY(180deg);background:repeating-linear-gradient(45deg,#1475e1 0 6px,#0f63c4 6px 12px);border:4px solid #fff}
.bc-bets{display:grid;grid-template-columns:1fr .8fr 1fr;gap:10px;width:100%;max-width:640px}
.bc-spot{position:relative;border-radius:10px;padding:22px 8px;display:flex;flex-direction:column;align-items:center;gap:4px;border:2px solid;transition:filter .12s,transform .1s;min-height:96px;justify-content:center}
.bc-spot b{font-size:16px}
.bc-spot small{color:var(--muted);font-weight:600}
.bc-spot.player{background:rgba(20,117,225,.15);border-color:#1475e1}
.bc-spot.banker{background:rgba(232,54,79,.15);border-color:#e8364f}
.bc-spot.tie{background:rgba(31,157,58,.15);border-color:#1f9d3a}
.bc-spot:hover{filter:brightness(1.2)}
.bc-spot:active{transform:scale(.98)}
.bc-spot.won{box-shadow:0 0 0 3px #fff inset}
.bc-spot .rchip{position:absolute;right:8px;top:8px;width:32px;height:32px;font-size:10px}
#bcChips .chip{width:38px;height:38px}
/* eight chip values (1 to 10k) on one row */
.chips .chip,#bcChips .chip{width:33px;height:33px;font-size:10px}
.chips{gap:5px;flex-wrap:nowrap;justify-content:space-between}
