/* CASINOIR v0.49.18: chip-built wager, vertical-shift card overlap, staged dealer & table focus. */
#blackjack.screen--blackjack{--bj18-step:clamp(20px,2.8vw,34px);--bj18-rise:clamp(7px,1.05vw,12px)}
/* Crop the source photograph rather than distorting its table and circles. */
#blackjack .bj-table-scenery{object-fit:cover!important;object-position:center 51%!important;filter:brightness(.96) saturate(1.13)!important}
#blackjack .bj-table-area{overflow:hidden!important}
#blackjack .bj-table-arc{display:none!important}
#blackjack .bj-table-rule{display:none!important}
#blackjack .bj-table-meta{opacity:.70!important}
#blackjack .bj-player-zone{top:41%!important;height:clamp(91px,25vh,205px)!important}
#blackjack .bj-dealer-zone{top:5%!important}
#blackjack .bj-stack{top:83%!important}
#blackjack .bj-hand{background:linear-gradient(180deg,#061e17d5,#0b271a55)!important}
/* Each new card overlaps the previous card to its upper right; exposed indices remain legible. */
#blackjack .bj-hand-cards,#blackjack .bj-cards{position:relative!important;display:block!important;box-sizing:border-box!important;width:calc(var(--bj17-card-w) + var(--bj-card-ext-w,0px))!important;max-width:100%!important;height:calc(var(--bj17-card-h) + var(--bj-card-ext-h,0px))!important;min-height:var(--bj17-card-h)!important;overflow:visible!important;margin-inline:auto!important;padding:0!important}
#blackjack .bj-hand-cards .bj-card,#blackjack .bj-cards .bj-card{position:absolute!important;top:auto!important;bottom:var(--bj-card-y,0px)!important;left:var(--bj-card-x,0px)!important;right:auto!important;margin:0!important;transform:rotate(calc(var(--bj-card-tilt,0)*1deg))!important;transform-origin:center 80%!important}
#blackjack .bj-hand-cards .bj-card+.bj-card,#blackjack .bj-cards .bj-card+.bj-card{margin-left:0!important}
#blackjack .bj-card--arriving{animation:bj18Deal .23s cubic-bezier(.22,.86,.32,1) var(--bj-deal-delay,0ms) both!important}
@keyframes bj18Deal{from{opacity:.1;transform:translate(26px,-20px) rotate(-10deg) scale(.94)}to{opacity:1;transform:rotate(calc(var(--bj-card-tilt,0)*1deg))}}
#blackjack .bj-hand-cards{max-width:calc(100% - 7px)!important}
#blackjack .bj-card-corner{z-index:2!important}
#blackjack .bj-table-host{z-index:7!important}
#blackjack .bj-host-portrait img{object-fit:contain!important;object-position:center bottom!important}
#blackjack .bj-host-copy strong{font-size:clamp(8px,.78vw,11px)!important;line-height:1.1!important}
#blackjack .bj-stack-disc[data-tier="purple"]{background:repeating-conic-gradient(#5e3c9c 0 30deg,#f8e7ba 30deg 42deg)!important;color:#fff!important}
#blackjack #blackjackBetBar{gap:clamp(3px,.45vw,7px)!important}
#blackjack #blackjackBetBar .bj-bet-amount{font:700 clamp(11px,1vw,15px)/1.05 system-ui!important;display:flex;align-items:center;gap:5px!important;min-width:76px!important;white-space:nowrap!important}
#blackjack #blackjackBetTotal{font:900 clamp(15px,1.5vw,21px)/1 Georgia,serif!important;color:#ffe0a0!important;min-width:18px!important}
#blackjack #blackjackBetBar [data-bj-bet]{flex:0 0 clamp(36px,4.5vw,51px)!important;width:clamp(36px,4.5vw,51px)!important;height:clamp(36px,6.1vh,51px)!important;min-height:0!important;max-height:51px!important;aspect-ratio:1;border:3px dashed #fff2d0!important;font-size:clamp(11px,1.3vw,17px)!important}
#blackjack #blackjackBetBar [data-bj-bet="1"]{background:repeating-conic-gradient(#ece4d2 0 30deg,#767b72 30deg 42deg)!important;color:#fff!important}
#blackjack #blackjackBetBar [data-bj-bet="5"],[data-chip-preview-value="5"]{background:repeating-conic-gradient(#a9213a 0 30deg,#f6e2b5 30deg 42deg)!important;color:#fff!important}
#blackjack #blackjackBetBar [data-bj-bet="25"],[data-chip-preview-value="25"]{background:repeating-conic-gradient(#176b4b 0 30deg,#f6e2b5 30deg 42deg)!important;color:#fff!important}
#blackjack #blackjackBetBar [data-bj-bet="100"],[data-chip-preview-value="100"]{background:repeating-conic-gradient(#292b34 0 30deg,#f6e2b5 30deg 42deg)!important;color:#fff!important}
#blackjack #blackjackBetBar [data-bj-bet="500"]{background:repeating-conic-gradient(#553185 0 30deg,#f6e2b5 30deg 42deg)!important;color:#fff!important}
#blackjack #blackjackBetBar [data-bj-bet]:disabled{opacity:.43!important;cursor:not-allowed!important}
#blackjack #blackjackBetBar .bj-bet-edit{flex:0 1 auto!important;min-width:42px!important;max-width:76px!important;padding:2px 7px!important;white-space:nowrap!important;font-size:clamp(10px,.9vw,13px)!important;background:#173126!important;color:#f8dfad!important;border:1px solid #9f8049!important}
#blackjack #blackjackBetBar .bj-bet-edit.bj-rebet{min-width:58px!important;white-space:normal!important;line-height:1.15}
#blackjack #blackjackStart{min-width:113px!important;flex:1 1 130px!important;max-width:245px!important}
#blackjack #blackjackStart:disabled{opacity:.50!important;cursor:not-allowed!important}
#blackjack .bj-console-actions[hidden]{display:none!important}
#blackjack[aria-busy="true"] .bj-phase-pill{border-color:#edca84!important;color:#ffe8b9!important;background:#132d23e8!important}
@media(max-width:760px) and (orientation:landscape){
 #blackjack .bj-player-zone{top:39%!important}
 #blackjack .bj-dealer-zone{top:4%!important}
 #blackjack .bj-stack{top:80%!important}
 #blackjack #blackjackBetBar .bj-bet-amount{min-width:68px!important;gap:3px!important;font-size:10px!important}
 #blackjack #blackjackBetTotal{font-size:14px!important}
 #blackjack #blackjackBetBar [data-bj-bet]{flex-basis:36px!important;width:36px!important;height:36px!important;font-size:11px!important}
 #blackjack #blackjackBetBar .bj-bet-edit{min-width:36px!important;padding:2px 4px!important;font-size:10px!important}
 #blackjack #blackjackStart{min-width:102px!important;max-width:130px!important;font-size:11px!important}
 #blackjack .bj-host-copy strong{font-size:8px!important}
}
@media(min-width:1000px) and (min-height:650px){
 #blackjack .bj-dealer-zone{top:8%!important}
 #blackjack .bj-player-zone{top:42%!important}
 #blackjack .bj-stack{top:82%!important}
}
@media(prefers-reduced-motion:reduce){#blackjack .bj-card--arriving{animation:none!important}}

/* Exact-value compact chip stacks: denomination with visible quantity, never silently drop a chip. */
#blackjack .bj-stack-disc{left:calc(50% + var(--depth,0)*6px)!important;bottom:calc(14px + var(--depth,0)*4px)!important;overflow:visible!important}
#blackjack .bj-stack-disc span{font-style:normal!important}
#blackjack .bj-stack-multiplier{position:absolute;top:-8px;right:-9px;z-index:2;border:1px solid #e9c481;border-radius:9px;padding:1px 3px;min-width:12px;background:#071812;color:#ffedbc;font:800 9px/1 system-ui;white-space:nowrap;font-style:normal}
/* Recognizable upper-body portraits rather than a tiny full-length thumbnail. */
#blackjack .bj-table-host{top:2px!important;right:7px!important;width:clamp(88px,10.5vw,132px)!important;max-height:52%!important}
#blackjack .bj-host-portrait{height:clamp(65px,18vh,112px)!important;width:100%!important;align-items:flex-start!important;overflow:hidden!important}
#blackjack .bj-host-portrait img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center 0!important}
#blackjack .bj-host-copy{position:relative!important;margin-top:-9px!important}
