.game-art.bac-art,.bac-table{background:repeating-linear-gradient(115deg,transparent 0 10px,#ffffff08 10px 11px),radial-gradient(ellipse at top,#277353,#113c32);color:#fff4d4}
.game-art.bac-art{display:flex;align-items:center;justify-content:center}
.bac-art b,.bac-hand i{background:#fffaf0;color:#24252c;border:2px solid #222;border-radius:6px;box-shadow:1px 3px #1117;font:700 1.45rem Georgia,serif}
.bac-art b{width:31%;height:53%;display:grid;place-items:center;transform:rotate(-14deg)}
.bac-art b+b{color:#ac2a48;transform:rotate(11deg);margin-left:-9%}
#view-baccarat{padding-bottom:4rem}
.bac-table{padding:1rem;border:3px solid #302f27;border-radius:20px;text-align:center;outline:1px dashed #eed29980;outline-offset:-8px}
.bac-table small{font:bold .73rem monospace;letter-spacing:.13em;color:#f1cd84}
.bac-table h2{font:bold 2.2rem Georgia,serif;margin:.3rem}
.bac-funds,.bac-hands{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem;margin:.7rem 0}
.bac-funds span,.bac-hands>div{border:1px solid #eac98277;border-radius:10px;background:#082e27aa;padding:.5rem .2rem}
.bac-funds b{display:block;font-variant-numeric:tabular-nums}
.bac-hand{display:flex;justify-content:center;align-items:center;min-height:5rem}
.bac-hand i{display:grid;place-items:center;width:31%;max-width:58px;aspect-ratio:.68;font-size:clamp(.85rem,4vw,1.25rem);animation:bacDeal .5s both;animation-delay:var(--delay,0s)}
.bac-hand i.red{color:#a62542}.bac-hand i.back{color:#f6d88f;background:repeating-linear-gradient(45deg,#1d3858 0 5px,#354963 5px 6px);border:2px solid #e5d8b7}
@keyframes bacDeal{from{opacity:0;transform:perspective(180px) rotateY(85deg) translateY(-8px)}}
@media(prefers-reduced-motion:reduce){.bac-hand i{animation:none}}
#view-baccarat fieldset{border:0;padding:0;margin:1rem 0}
#view-baccarat legend{font-weight:bold;margin-bottom:.4rem}
.bac-choices{display:flex;gap:.35rem}.bac-choices button,#bacPlace{min-width:0;flex:1;min-height:44px;border:2px solid #263d33;border-radius:10px;background:#fff7e6;color:#20352a;font:700 .87rem var(--font-heading)}
.bac-choices button[aria-pressed=true],#bacPlace{background:#f1cf79;box-shadow:0 2px #263d33}
#bacPlace{width:100%}#bacPlace:disabled{opacity:.65}
#bacChips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
#bacRoad{display:flex;gap:.3rem;flex-wrap:wrap;list-style:none;padding:0}#bacRoad li{border-radius:50%;background:#305596;color:white;padding:.25rem .5rem;font-weight:bold}#bacRoad .banker{background:#973552}#bacRoad .tie{background:#28614a}
.bac-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.4rem;margin-bottom:.65rem}
.bac-head h2{font:900 1.5rem var(--font-heading);margin:0}
.bac-head .bac-funds{margin:0;font-size:.74rem;text-align:center}
.bac-head .bac-funds span{background:#fff5d6;color:#23241e;border:1px solid #29261c;padding:.2rem .5rem}
.bac-table{background:radial-gradient(ellipse at 44% 12%,#19875f,#0d5139);border:3px solid #151a17;border-radius:22px;box-shadow:0 5px #181a16;outline-color:#ecd17388;padding:clamp(.7rem,3vw,1rem)}
.bac-strip,.bac-slip,.bac-hands header{display:flex;align-items:center;gap:.35rem}
#bacPhase,#bacTime,.bac-slip button,#bacChips button,#bacSides button{border:2px solid #151515;box-shadow:0 3px #151515}
#bacPhase,#bacTime{border-radius:99px;padding:.23rem .5rem;color:#151515;background:#ffd667;font:900 .66rem var(--font-heading);text-transform:uppercase}
#bacTime{background:#8fe9b3;white-space:nowrap}
#bacMini{margin:0 0 0 auto;padding:0;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:2px;list-style:none}
#bacMini li{border:1px solid #131313;background:#235baf;color:white;border-radius:50%;width:1rem;height:1rem;line-height:.9rem;font-size:.62rem;font-weight:bold}
#bacMini .banker{background:#be2549}#bacMini .tie{background:#20744d}
#bacClock{display:block;appearance:none;width:100%;height:9px;margin:.6rem 0;border:1px solid #0c2118;border-radius:6px;overflow:hidden;background:#093c2a}
#bacClock::-webkit-progress-bar{background:#093c2a}#bacClock::-webkit-progress-value{background:#87ebb1}#bacClock::-moz-progress-bar{background:#87ebb1}
.bac-hands>div{background:#103f3270;border:2px solid #ffffff38;border-radius:15px;padding:.6rem}
.bac-hands header{justify-content:space-between;color:#a6d4ff;text-transform:uppercase;font:900 .75rem var(--font-heading)}
.bac-hands>div+div header{color:#ffb3c2}
.bac-hands header b{border:2px solid #161616;background:#2866be;color:white;border-radius:50%;min-width:1.65rem;line-height:1.45rem}
.bac-hands>div+div header b{background:#be2549}
.bac-hand{min-height:clamp(6.2rem,24vw,8rem)}
.bac-hand i.back{width:40%;background:transparent;border:2px dashed #ffffff42;color:#c9e2ce88;box-shadow:none}
.bac-hand i.bac-card-down{color:#ffda8d;background:repeating-linear-gradient(45deg,#263e62 0 4px,#42566f 4px 6px);border:2px solid #efe1bb;animation:bacSlide .4s ease-out both}
.bac-hand i.bac-card-up{animation:bacTurn .43s ease-out both}
@keyframes bacSlide{from{opacity:0;transform:translateY(-22px) rotate(-7deg) scale(.9)}}
@keyframes bacTurn{from{transform:perspective(240px) rotateY(88deg)}}
@media(prefers-reduced-motion:reduce){.bac-hand i.bac-card-down,.bac-hand i.bac-card-up{animation:none}}
#bacResult:empty{display:none}
.bac-receipt:not([hidden]){position:fixed;z-index:100;top:calc(env(safe-area-inset-top,0px) + 1rem);left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 2rem);box-sizing:border-box;pointer-events:none;display:grid;grid-template-columns:auto minmax(0,1fr);gap:.65rem;align-items:center;padding:.6rem .9rem;border:2px solid #242922;border-radius:16px;box-shadow:0 3px #242922;color:#24362a;background:linear-gradient(115deg,#fff4cd,#ffe3a0)}
.bac-receipt[data-outcome=loss]{color:#522b35;background:linear-gradient(115deg,#ffedef,#f6d9db)}
.bac-receipt[data-outcome=push]{color:#243a4b;background:linear-gradient(115deg,#edf6fc,#d8e8ed)}
.bac-seal{display:grid;place-items:center;width:2.65rem;aspect-ratio:1;border:3px double currentColor;border-radius:50%;font:bold 1.35rem Georgia,serif}
.bac-receipt small{font:bold .65rem monospace;letter-spacing:.08em}
.bac-receipt h3{font:800 1.05rem var(--font-heading);margin:.2rem 0}
.bac-receipt strong{display:block;font:bold clamp(1.5rem,6vw,2.15rem) Georgia,serif;font-variant-numeric:tabular-nums}
.bac-receipt p{margin:.35rem 0 0;font-size:.85rem;line-height:1.45}
.bac-slip{background:#fffdf7;color:#111;border:2px solid #111;border-radius:14px;padding:.55rem;box-shadow:0 3px #111;flex-wrap:wrap}
.bac-slip div{margin-right:auto;text-align:left}.bac-slip small,.bac-slip strong{display:block}.bac-slip small{color:#596269;font:800 .65rem var(--font-heading);text-transform:uppercase}
.bac-slip button{font:800 .75rem var(--font-heading);color:#764400;background:#ffefbd;border-radius:20px;min-height:34px;padding:0 .45rem}
#bacRepeat{background:#e3f4ff;color:#155783}#bacReset{background:#fff0f4;color:#ab2647}
#bacChips button{background:white;color:#171717;border-radius:99px}
#bacChips button[aria-pressed=true]{background:#ffd668}
#bacSides{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;margin-bottom:.9rem}
#bacSides button{display:grid;justify-items:center;gap:.25rem;padding:.6rem .1rem;border-radius:16px;background:var(--wash);color:var(--ink);--wash:#eff6ff;--ink:#164685;--badge:#2a62b6}
#bacSides [data-side=tie]{--wash:#ecfcf4;--ink:#155f41;--badge:#187852}
#bacSides [data-side=banker]{--wash:#fff1f4;--ink:#89213b;--badge:#b42a4b}
#bacSides small,#bacSides output{border:1.5px solid #222;border-radius:20px;padding:.12rem .46rem}
#bacSides small{background:var(--badge);color:white}#bacSides strong{text-transform:uppercase}#bacSides span{font-size:.69rem}#bacSides output{background:white;color:#333}
#bacSides button[aria-pressed=true]{outline:3px solid var(--badge);outline-offset:-5px}
