/* Baccarat presentation measured from the user-supplied recording. */
.baccarat-body .baccarat-game-panel { display:block; height:auto; min-height:0; padding:0; overflow:hidden; border:0; background:#0f212e; }
.baccarat-body .baccarat-table-surface { --card-width:clamp(44px,11.11cqw,100px); container-type:inline-size; position:relative; height:634px; min-height:0; overflow:hidden; background:#0f212e; border-radius:5px; }
.baccarat-body .baccarat-metrics-row,.baccarat-body .baccarat-result-grid,.baccarat-body .baccarat-recent-results { display:none; }
.baccarat-body .bet-stepper { display:grid; grid-template-columns:minmax(0,1fr) 44px 44px; gap:0; border:2px solid #2f4553; border-radius:5px; overflow:hidden; }
.baccarat-body .bet-stepper input { min-width:0; border:0; border-radius:0; background:#0f212e; }
.baccarat-body .step-button { padding:0; min-height:38px; border:0; border-radius:0; background:#2f4553; color:#fff; font-weight:700; cursor:pointer; }
.baccarat-body .step-button:hover { background:#557086; }
.baccarat-body .control-label > span:first-child { display:flex; justify-content:space-between; }
.baccarat-body .control-label small { font-size:11px; font-weight:400; }
.baccarat-body .chip-value-label { display:flex; justify-content:space-between; margin-bottom:6px; }
.baccarat-body .chip-carousel { display:grid; grid-template-columns:42px minmax(0,1fr) 42px; height:52px; margin-bottom:16px; border-radius:5px; overflow:hidden; background:#3c5667; }
.baccarat-body .chip-page { border:0; background:transparent; color:#fff; font-size:26px; cursor:pointer; }
.baccarat-body .chip-options { display:flex; align-items:center; justify-content:space-around; gap:4px; padding:5px; background:#162f3e; }
.baccarat-body .chip-button,.baccarat-body .bet-chip { display:inline-flex; align-items:center; justify-content:center; padding:0; width:33px; height:33px; flex:0 1 33px; aspect-ratio:1; border-radius:50%; border:3px dashed #ffecad; background:radial-gradient(circle,#ffca36 0 53%,#f2a918 54%); color:#3d2a00; font-size:10px; font-weight:800; box-shadow:inset 0 0 0 1px #dc9510; }
.baccarat-body .chip-button { cursor:pointer; }
.baccarat-body .chip-button:nth-child(2) { background:radial-gradient(circle,#ffc34a 0 53%,#eaa019 54%); }
.baccarat-body .chip-button:nth-child(3),.baccarat-body .bet-chip { background:radial-gradient(circle,#ffab54 0 53%,#e97923 54%); }
.baccarat-body .chip-button:nth-child(4) { background:radial-gradient(circle,#ff8f47 0 53%,#d95c21 54%); }
.baccarat-body .chip-button.active { outline:2px solid white; outline-offset:2px; }
.baccarat-body [hidden] { display:none !important; }
.baccarat-body .baccarat-hand { position:absolute; top:10.1%; width:calc(var(--card-width) * 2); height:calc(var(--card-width) * 2); transform:translateX(-50%); }
.baccarat-body .player-hand { left:25.56%; }
.baccarat-body .banker-hand { left:73.78%; }
.baccarat-body .hand-heading { position:absolute; top:calc(var(--card-width) * -.2); right:calc(var(--card-width) * -.35); z-index:12; }
.baccarat-body .hand-heading > span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.baccarat-body .hand-heading strong { display:block; min-width:calc(var(--card-width) * .6); padding:2px 10px; border-radius:20px; background:#2f4553; color:white; text-align:center; font-size:clamp(11px,1.6cqw,14px); line-height:1.1; font-weight:800; }
.baccarat-body .hand-heading strong:empty { visibility:hidden; }
.baccarat-body .card-row { position:relative; height:100%; }
.baccarat-body .playing-card { position:absolute; left:calc(var(--card-index) * var(--card-width) * .5); top:calc(var(--card-index) * var(--card-width) * .2); width:var(--card-width); height:calc(var(--card-width) * 1.58); padding:0; border-radius:calc(var(--card-width) * .08); background:#fff; color:#21323a; box-shadow:0 2px 5px #0004; transform-origin:center; }
.baccarat-body .playing-card.red { color:#e60046; }
.baccarat-body .card-rank { position:absolute; left:12%; top:5%; font-size:calc(var(--card-width) * .4); font-weight:750; line-height:1.2; }
.baccarat-body .card-suit-centre { position:absolute; left:10%; top:43%; font-size:calc(var(--card-width) * .4); line-height:1; }
.baccarat-body .recording-back,.baccarat-body .baccarat-shoe { background:#147efb; border:4px solid white; }
.baccarat-body .recording-back::after,.baccarat-body .baccarat-shoe span::after { content:""; position:absolute; inset:12%; border:1px solid #ffffff80; border-radius:5px; }
.baccarat-body .recording-back > span { visibility:hidden; }
.baccarat-body .winning-hand .playing-card { outline:5px solid #00e701; }
.baccarat-body .tie-hand .playing-card { outline:5px solid #ffcc33; }
.baccarat-body .baccarat-hand.winner .hand-heading strong { background:#00e701; color:#063b00; }
.baccarat-body .baccarat-hand.tied .hand-heading strong { background:#ffcc33; color:#352c08; }
.baccarat-body .baccarat-shoe { position:absolute; top:calc(var(--card-width) * -1.12); right:5.56%; width:var(--card-width); height:calc(var(--card-width) * 1.58); border-radius:7px; box-shadow:0 3px 0 #ced2d4,0 6px 0 #eceef0,0 9px 0 #bec7cc; }
.baccarat-body .baccarat-shoe span { display:block; width:100%; height:100%; }
.baccarat-body .baccarat-ribbon { position:absolute; top:46%; left:50%; transform:translateX(-50%); width:30%; min-width:164px; padding:12px 6px; text-align:center; color:#7e91a3; font-size:clamp(10px,1.55cqw,14px); font-weight:800; background:#172f3b; border:3px solid #122b37; border-radius:4px; }
.baccarat-body .baccarat-ribbon::before,.baccarat-body .baccarat-ribbon::after { content:""; position:absolute; z-index:-1; width:28px; height:32px; top:10px; background:#172f3b; clip-path:polygon(0 0,100% 0,100% 100%,0 100%,20% 50%); }
.baccarat-body .baccarat-ribbon::before { left:-32px; }
.baccarat-body .baccarat-ribbon::after { right:-32px; transform:scaleX(-1); }
.baccarat-body .baccarat-result { position:absolute; z-index:20; left:50%; top:50%; transform:translate(-50%,-50%); display:grid; justify-items:center; min-width:145px; max-width:55%; gap:16px; padding:20px 22px; border:5px solid #00e701; border-radius:16px; color:#00e701; background:#1a2c38; text-align:center; pointer-events:none; }
.baccarat-body .baccarat-result.draw { border-color:#ffcc33; color:#ffcc33; }
.baccarat-body .baccarat-result.partial { border-color:#b1bad3; color:#b1bad3; }
.baccarat-body .baccarat-result strong { font-size:23px; }
.baccarat-body .baccarat-result > span { position:relative; padding-top:16px; font-size:16px; font-weight:700; overflow-wrap:anywhere; }
.baccarat-body .baccarat-result > span::before { content:""; width:60px; height:3px; background:#3c5360; position:absolute; top:0; left:50%; transform:translateX(-50%); }
.baccarat-body .baccarat-bet-spots { position:absolute; bottom:9.3%; left:11.11%; right:11.11%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.baccarat-body .bet-spot { container-type:inline-size; position:relative; height:110px; min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; border:2px solid #567180; border-radius:4px; background:#2f4553; color:#c2cde0; cursor:pointer; box-shadow:0 2px 4px #0003; }
.baccarat-body .bet-spot strong { font-size:20px; }
.baccarat-body .bet-spot .spot-amount { font-size:clamp(7px,calc(140cqw / var(--amount-length,4)),15px); font-weight:600; max-width:90%; white-space:nowrap; font-variant-numeric:tabular-nums; }
.baccarat-body .bet-spot:hover:not(:disabled) { background:#3f596a; }
.baccarat-body .bet-spot:disabled { opacity:1; cursor:default; }
.baccarat-body .bet-chip { position:absolute; right:10px; bottom:12px; }
.baccarat-body .baccarat-board-actions { position:absolute; bottom:7px; left:14px; right:14px; display:flex; justify-content:space-between; }
.baccarat-body .baccarat-board-actions button { min-height:36px; padding:4px; font-size:13px; color:#d5e0ea; }
.baccarat-body .baccarat-board-actions span { font-size:21px; vertical-align:-2px; }
.baccarat-body button:focus-visible { outline:2px solid #77cfff; outline-offset:3px; }
.baccarat-body .tool-row { gap:8px; flex-wrap:wrap; }
@media(max-width:1000px) {
 .baccarat-body .baccarat-table-surface { height:560px; }
 .baccarat-body .baccarat-bet-spots { left:5%; right:5%; gap:10px; }
 .baccarat-body .bet-spot strong { font-size:17px; }
 .baccarat-body .bet-chip { right:5px; bottom:6px; width:27px; height:27px; font-size:9px; }
}
@media(max-width:600px) {
 .baccarat-body .baccarat-table-surface { height:440px; }
 .baccarat-body .baccarat-hand { top:13%; }
 .baccarat-body .baccarat-bet-spots { left:4%; right:4%; gap:8px; bottom:12%; }
 .baccarat-body .bet-spot { height:90px; justify-content:flex-start; padding-top:12px; gap:5px; }
 .baccarat-body .bet-spot strong { font-size:15px; }
 .baccarat-body .bet-spot .spot-amount { font-size:clamp(7px,calc(140cqw / var(--amount-length,4)),12px); }
 .baccarat-body .bet-chip { width:23px; height:23px; font-size:8px; bottom:4px; }
 .baccarat-body .baccarat-result { min-width:118px; gap:10px; padding:14px; border-width:4px; }
 .baccarat-body .baccarat-result strong { font-size:20px; }
 .baccarat-body .baccarat-result > span { font-size:13px; }
 .baccarat-body .winning-hand .playing-card,.baccarat-body .tie-hand .playing-card { outline-width:3px; }
}
@media(prefers-reduced-motion:reduce) { .baccarat-body * { animation:none !important; transition:none !important; } }
