/* CASINOIR v0.49.17 | BLACKJACK · TABLE CRAFT
   Presentation/UI only: no table wager, dealer result, or save-schema logic modified. */
#blackjack.screen--blackjack{--bj17-gold:#e8c477;--bj17-card-w:clamp(43px,5.1vw,69px);--bj17-card-h:clamp(58px,7.0vw,94px);--bj17-card-step:clamp(21px,2.65vw,33px);background:#06120f!important}
#blackjack .bj-topbar{height:clamp(43px,8.4vh,59px)!important;min-height:0!important;gap:clamp(6px,1.2vw,13px)!important;padding:3px clamp(8px,1.5vw,20px)!important;background:linear-gradient(100deg,#091c17,#112921 55%,#071611)!important}
#blackjack .bj-heading h2{font-size:clamp(17px,2.2vw,27px)!important}
#blackjack .bj-top-stat strong{font-size:clamp(16px,2vw,24px)!important}
#blackjack .bj-topbar button{min-height:32px!important}
/* Let the table itself dominate the screen. Artwork remains a single intact source, and
   the interactive cards / chips are layered separately above its felt. */
#blackjack .bj-table-area{inset:clamp(43px,8.4vh,59px) 0 clamp(82px,13vh,110px)!important;border-radius:0!important;box-shadow:inset 0 0 0 1px #c49c5955,0 8px 20px #0008!important}
#blackjack .bj-table-scenery{object-fit:fill!important;filter:brightness(.92) saturate(1.10)!important}
#blackjack .bj-table-area::before{background:linear-gradient(180deg,#00110b30,transparent 20%,transparent 75%,#03100950)!important}
#blackjack .bj-table-area::after{display:none!important}
#blackjack .bj-dealer-zone{top:9%!important;left:50%!important;width:min(49%,380px)!important;gap:3px!important;z-index:4!important}
#blackjack .bj-zone-title{min-height:20px!important;padding:1px 9px!important;border:1px solid #e1bf7a8c!important;border-radius:99px!important;background:#061e19df!important;color:#f3e4c4!important}
#blackjack .bj-zone-title strong{font-size:clamp(9px,.95vw,12px)!important}
#blackjack .bj-zone-title span{font-size:clamp(11px,1.2vw,15px)!important}
#blackjack .bj-dealer-readout{display:none!important}
#blackjack .bj-phase-pill{top:7px!important;left:9px!important;right:auto!important;transform:none!important;max-width:33%!important;white-space:normal!important;font-size:clamp(8px,.85vw,11px)!important;padding:4px 8px!important}
#blackjack .bj-table-host{right:7px!important;top:4px!important;width:clamp(78px,10vw,129px)!important;max-height:65%!important}
#blackjack .bj-host-portrait{height:clamp(43px,11vh,104px)!important}
#blackjack .bj-host-copy{padding:3px 5px!important;max-height:35px!important;overflow:hidden!important}
#blackjack .bj-host-copy strong{font-size:clamp(6px,.67vw,9px)!important}
#blackjack .bj-host-copy p{font-size:clamp(7px,.7vw,10px)!important;line-height:1.2!important;margin:1px 0!important}
/* Real felt-dealt look: each subsequent card overlays the previous, offset diagonally.
   The top-left index remains legible, and cards are NOT radial/fan-shaped. */
#blackjack .bj-cards,#blackjack .bj-hand-cards{display:flex!important;flex-direction:row!important;align-items:flex-start!important;justify-content:flex-start!important;gap:0!important;min-width:0!important;overflow:visible!important}
#blackjack .bj-cards .bj-card,#blackjack .bj-hand-cards .bj-card{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;flex:none!important;width:var(--bj17-card-w)!important;height:var(--bj17-card-h)!important;min-width:0!important;min-height:0!important;margin:0!important;transform:translateY(calc(var(--bj-card-down,0) * 1px)) rotate(calc(var(--bj-card-tilt,0) * 1deg));transform-origin:50% 84%!important;box-shadow:0 3px 8px #001e,0 0 0 1px #fff7 inset!important;overflow:hidden!important}
#blackjack .bj-cards .bj-card+.bj-card,#blackjack .bj-hand-cards .bj-card+.bj-card{margin-left:calc(var(--bj17-card-step) - var(--bj17-card-w))!important}
#blackjack .bj-card-corner{position:absolute!important;top:3px!important;left:3px!important;font-size:clamp(11px,1.15vw,17px)!important;line-height:1!important;letter-spacing:-.04em!important}
#blackjack .bj-card-suit{font-size:clamp(24px,2.8vw,42px)!important}
#blackjack .bj-cards .bj-card{--bj-card-down:0}
#blackjack .bj-card--arriving{animation:bj17Deal .22s ease-out var(--bj-deal-delay,0ms) both!important}
#blackjack .bj-card--reveal{animation:bj17Reveal .32s ease-out both!important}
@keyframes bj17Deal{from{opacity:.1;transform:translate(36px,-25px) rotate(-9deg) scale(.91)}to{opacity:1;transform:translateY(calc(var(--bj-card-down,0) * 1px)) rotate(calc(var(--bj-card-tilt,0) * 1deg))}}
@keyframes bj17Reveal{from{opacity:.2;filter:brightness(.4)}to{opacity:1;filter:brightness(1)}}
#blackjack .bj-player-zone{top:46%!important;left:50%!important;bottom:auto!important;transform:translateX(-50%)!important;width:min(65%,650px)!important;height:clamp(81px,24vh,195px)!important;overflow:visible!important;padding:0!important;z-index:5!important}
#blackjack .bj-hand{display:grid!important;justify-items:center!important;align-content:start!important;gap:5px!important;left:50%!important;bottom:auto!important;top:0!important;width:min(100%,290px)!important;height:auto!important;min-height:0!important;max-width:none!important;min-width:0!important;padding:4px 9px 6px!important;border-radius:10px!important;background:linear-gradient(180deg,#041b16c5,#09261d48)!important;border:1px solid #e0bc7580!important;box-shadow:0 4px 13px #0008!important}
#blackjack .bj-hand-caption{position:relative!important;display:flex!important;justify-content:center!important;align-items:center!important;flex-wrap:nowrap!important;gap:7px!important;min-height:17px!important;font-size:11px!important;white-space:nowrap!important}
#blackjack .bj-hand-caption b{font-size:clamp(13px,1.5vw,19px)!important}
#blackjack .bj-hand-caption small{font-size:9px!important}
#blackjack .bj-hand-cards{width:100%!important;min-height:calc(var(--bj17-card-h) + 14px)!important;justify-content:center!important;padding-right:8px!important}
#blackjack .bj-hand[data-hand-count="2"]{width:min(47%,230px)!important}
#blackjack .bj-hand[data-hand-count="2"][data-hand-index="0"]{left:25%!important}
#blackjack .bj-hand[data-hand-count="2"][data-hand-index="1"]{left:75%!important}
#blackjack .bj-hand.is-active{border-color:#f9df9c!important;box-shadow:0 0 0 1px #ffdf8b42,0 0 16px #f4c45b55!important}
#blackjack .bj-hand.is-waiting{opacity:.83!important}
#blackjack .bj-hand-verdict{font-size:clamp(9px,.92vw,12px)!important}
/* Actual stakes are rendered as individual denomination chips by the existing UI.
   Keep the amounts on the felt and make chip stacks visually primary. */
#blackjack .bj-wager-display{top:40px!important;left:9px!important;bottom:auto!important;padding:3px 7px!important;background:#09251de3!important}
#blackjack .bj-wager-caption{font-size:8px!important}
#blackjack .bj-wager-display b{font-size:clamp(11px,1.2vw,16px)!important}
#blackjack .bj-stack{top:86%!important;z-index:5!important}
#blackjack .bj-stack-disc{width:clamp(39px,4.6vw,59px)!important;height:clamp(27px,3.15vw,40px)!important;box-shadow:inset 0 0 0 3px #291c19a6,0 3px 5px #000a!important}
#blackjack .bj-stack-caption{bottom:-3px!important;font-size:clamp(8px,.9vw,11px)!important}
#blackjack .bj-stack[data-count="2"][data-spot="0"]{left:25%!important}
#blackjack .bj-stack[data-count="2"][data-spot="1"]{left:75%!important}
#blackjack .bj-insurance-marker{left:6%!important;top:48%!important;font-size:9px!important}
#blackjack .bj-result-ribbon{top:40%!important;left:7px!important;max-width:25%!important;z-index:8!important}
/* The former console occupied too much of the playable table. */
#blackjack .bj-console{box-sizing:border-box!important;min-height:0!important;height:clamp(82px,13vh,110px)!important;max-height:110px!important;padding:4px clamp(7px,1.25vw,16px)!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:space-between!important;gap:4px!important;overflow:visible!important;background:linear-gradient(180deg,#122d23f8,#05150ffb)!important}
#blackjack .bj-console-info{flex:0 0 23px!important;width:100%!important;gap:clamp(4px,.7vw,10px)!important;min-height:0!important}
#blackjack .bj-console-info p{flex:1!important;min-width:0!important;max-width:none!important;white-space:nowrap!important;display:block!important;max-height:23px!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:clamp(9px,.88vw,11px)!important}
#blackjack .bj-console-prompt{flex:none!important;font-size:clamp(9px,.9vw,12px)!important}
#blackjack .bj-action-trail,#blackjack .bj-history,#blackjack .bj-console-info details{display:none!important}
#blackjack .bj-console-info button{flex:none!important;min-height:24px!important;height:24px!important;max-height:24px!important;padding:2px 7px!important;font-size:clamp(9px,.83vw,11px)!important;white-space:nowrap!important}
#blackjack .bj-console-actions{flex:1 1 auto!important;grid-column:auto!important;grid-row:auto!important;width:100%!important;height:clamp(38px,6.8vh,65px)!important;min-height:0!important;justify-content:center!important;gap:clamp(4px,.65vw,9px)!important;overflow:visible!important}
#blackjack .bj-console-actions button{height:100%!important;min-height:0!important;max-height:62px!important;font-size:clamp(10.5px,1.15vw,14px)!important;white-space:normal!important;text-wrap:balance!important;line-height:1.12!important;padding:3px 7px!important;border-radius:7px!important}
#blackjack #blackjackActionBar{display:grid!important;grid-template-columns:1.14fr 1.16fr 1.2fr 1.1fr 1.18fr auto!important}
#blackjack #blackjackActionBar[hidden],#blackjack #blackjackBetBar[hidden],#blackjack #blackjackInsuranceBar[hidden]{display:none!important}
#blackjack #blackjackActionBar button{min-width:0!important;max-width:none!important}
#blackjack #blackjackInsuranceBar{display:flex!important}
#blackjack #blackjackInsuranceBar button{flex:1 1 auto!important;min-width:0!important}
#blackjack #blackjackBetBar{display:flex!important;align-items:center!important}
#blackjack #blackjackBetBar>span{font-size:12px!important;letter-spacing:.08em!important}
/* Four visible casino chips represent the existing fixed, non-redeemable bet presets. */
#blackjack #blackjackBetBar [data-bj-bet]{position:relative!important;display:grid!important;place-items:center!important;flex:0 0 clamp(37px,5.6vw,57px)!important;width:clamp(37px,5.6vw,57px)!important;height:clamp(37px,6vh,57px)!important;min-width:0!important;max-height:57px!important;border:3px dashed #f9e7c2!important;border-radius:50%!important;padding:1px!important;font:900 clamp(12px,1.3vw,18px)/1 Georgia,serif!important;text-shadow:0 1px 2px #000b!important;box-shadow:0 3px 0 #161714,0 5px 7px #000a,inset 0 0 0 3px #ffffff24!important;transition:filter .12s,transform .12s!important}
#blackjack #blackjackBetBar [data-bj-bet]::before{content:"";position:absolute;inset:7px;border-radius:50%;background:#14211cdd;box-shadow:inset 0 0 0 1px #f4d99c77;pointer-events:none}
#blackjack #blackjackBetBar .bj-chip-value{position:relative;z-index:2;display:grid;place-items:center;line-height:1!important;text-shadow:0 2px 2px #000b}
#blackjack #blackjackBetBar [data-bj-bet="10"]{background:repeating-conic-gradient(#c62d4b 0 30deg,#f8e5bc 30deg 42deg)!important;color:#fffaf2!important}
#blackjack #blackjackBetBar [data-bj-bet="20"]{background:repeating-conic-gradient(#31825b 0 30deg,#f8e5bc 30deg 42deg)!important;color:#fffaf2!important}
#blackjack #blackjackBetBar [data-bj-bet="50"]{background:repeating-conic-gradient(#24528b 0 30deg,#f8e5bc 30deg 42deg)!important;color:#fffaf2!important}
#blackjack #blackjackBetBar [data-bj-bet="100"]{background:repeating-conic-gradient(#25252e 0 30deg,#f8e5bc 30deg 42deg)!important;color:#fffaf2!important}
#blackjack #blackjackBetBar [data-bj-bet].is-active{outline:2px solid #ffde80!important;outline-offset:2px!important;filter:brightness(1.17)!important;transform:translateY(-2px)!important}
#blackjack #blackjackStart{flex:1 1 160px!important;max-width:270px!important;min-width:116px!important;font-size:clamp(12px,1.25vw,16px)!important}
#blackjack #blackjackReset{flex:0 1 auto!important;max-width:190px!important}
#blackjack #blackjackActionBar .bj-hint{min-width:48px!important}
#blackjack .bj-coach{bottom:calc(clamp(82px,13vh,110px) + 4px)!important;z-index:30!important}
#blackjack button:focus-visible{outline:2px solid #ffe39a!important;outline-offset:2px!important}
@media(max-width:920px) and (orientation:landscape){
 #blackjack.screen--blackjack{--bj17-card-w:clamp(40px,5.5vw,52px);--bj17-card-h:clamp(51px,13vh,65px);--bj17-card-step:clamp(19px,2.55vw,25px)}
 #blackjack .bj-dealer-zone{top:6%!important;width:min(46%,315px)!important}
 #blackjack .bj-player-zone{top:41%!important;width:min(62%,480px)!important;height:clamp(75px,22vh,110px)!important}
 #blackjack .bj-hand{width:min(100%,225px)!important;padding:3px 5px 5px!important;gap:2px!important}
 #blackjack .bj-hand[data-hand-count="2"]{width:min(49%,170px)!important}
 #blackjack .bj-hand-cards{min-height:calc(var(--bj17-card-h) + 10px)!important}
 #blackjack .bj-stack{top:87%!important}
 #blackjack .bj-host-portrait{height:clamp(43px,11vh,65px)!important}
 #blackjack .bj-host-copy p{display:none!important}
 #blackjack .bj-console{height:82px!important;max-height:82px!important}
 #blackjack .bj-console-info{flex-basis:23px!important}
 #blackjack .bj-console-actions{height:43px!important}
 #blackjack .bj-console-info button{padding:2px 5px!important}
 #blackjack #blackjackBetBar [data-bj-bet]{flex-basis:40px!important;width:40px!important;height:38px!important;font-size:13px!important}
 #blackjack .bj-card-corner{font-size:11px!important}
 #blackjack .bj-card-suit{font-size:24px!important}
 #blackjack .bj-hand-caption small{display:none!important}
 #blackjack .bj-result-ribbon{top:42%!important}
}
@media(max-width:700px) and (orientation:landscape){
 #blackjack.screen--blackjack{--bj17-card-w:40px;--bj17-card-h:54px;--bj17-card-step:19px}
 #blackjack .bj-player-zone{top:40%!important;width:62%!important}
 #blackjack .bj-hand[data-hand-count="2"]{width:48%!important}
 #blackjack .bj-console-info p{max-width:32vw!important}
 #blackjack .bj-console-info button{font-size:9px!important}
 #blackjack #blackjackActionBar{grid-template-columns:1fr 1.07fr 1.08fr 1fr 1.2fr auto!important}
 #blackjack:not([data-blackjack-online]) #blackjackInsuranceBar{flex-wrap:nowrap}
 #blackjack .bj-console-actions button{font-size:10.5px!important;padding-inline:3px!important}
 #blackjack .bj-wager-display{top:35px!important}
 #blackjack .bj-phase-pill{max-width:25%!important}
}
@media(min-width:1000px) and (min-height:650px){
 #blackjack.screen--blackjack{--bj17-card-w:72px;--bj17-card-h:98px;--bj17-card-step:34px}
 #blackjack .bj-dealer-zone{top:12%!important}
 #blackjack .bj-player-zone{top:47%!important;height:175px!important}
 #blackjack .bj-hand{width:290px!important}
 #blackjack .bj-hand[data-hand-count="2"]{width:240px!important}
 #blackjack .bj-stack{top:85%!important}
 #blackjack .bj-console{height:108px!important}
}
@media(prefers-reduced-motion:reduce){#blackjack .bj-card--arriving,#blackjack .bj-card--reveal{animation:none!important}}
