/* CASINOIR v0.49.23 — live-table spatial correction.
   The user-supplied EMPTY table is stretched to the exact play area, not cover-cropped.
   All play objects use coordinates of that same area. No cards or chips are baked into art. */
#blackjack .bj-table-area{
  inset:clamp(43px,8.4vh,59px) 0 clamp(78px,12.2vh,100px) 0!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:0!important;
  width:auto!important;
}
#blackjack .bj-table-scenery{
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:fill!important;
  object-position:center!important;
  transform:none!important;
  filter:brightness(.97) saturate(1.06)!important;
}
/* The shoe's physical image stays hidden; card motion still originates at right-top. */
#blackjack .bj-card-shoe{opacity:0!important;pointer-events:none!important}
#blackjack .bj-table-area::before{background:linear-gradient(180deg,rgba(1,12,9,.05),transparent 25%,transparent 78%,rgba(1,12,9,.10))!important}
/* The dealer's horizontal row sits directly in front of the tray. */
#blackjack .bj-dealer-zone{
  top:clamp(25px,10.5%,66px)!important;
  width:min(40%,340px)!important;
  gap:2px!important;
  z-index:5!important;
}
#blackjack #blackjackDealerCards.bj-cards{
  display:flex!important;
  justify-content:center!important;
  align-items:flex-start!important;
  gap:clamp(4px,.48vw,7px)!important;
  height:var(--bj17-card-h)!important;
}
#blackjack #blackjackDealerCards .bj-card{transform:none!important}
#blackjack .bj-dealer-readout{display:none!important}
/* Cards are separate from dealer row and are physically ABOVE the wager circle. */
#blackjack .bj-player-zone{
  top:35.5%!important;
  height:clamp(82px,26vh,182px)!important;
  width:min(65%,650px)!important;
  z-index:6!important;
}
#blackjack .bj-hand,
#blackjack .bj-hand.is-active{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:0!important;
  backdrop-filter:none!important;
}
#blackjack .bj-hand-caption{
  border-radius:12px!important;
  background:rgba(3,27,21,.74)!important;
  padding:1px 4px!important;
  margin-bottom:2px!important;
  width:max-content!important;
  max-width:100%!important;
  margin-inline:auto!important;
  white-space:nowrap!important;
}
#blackjack .bj-hand-cards{margin-inline:auto!important}
/* The central circle is centred at approximately (50%,75%) in the supplied art.
   Its live stack is anchored to the art, not to a player hand's DOM box. */
#blackjack .bj-table-stakes{position:absolute!important;inset:0!important;z-index:7!important}
#blackjack .bj-table-stakes .bj-stack{
  top:81.5%!important;
  left:50%!important;
  transform:translate(-50%,-50%)!important;
}
/* Split stacks match the adjacent left/right circles, not the card group offsets. */
#blackjack .bj-table-stakes .bj-stack[data-count="2"][data-spot="0"]{left:28%!important}
#blackjack .bj-table-stakes .bj-stack[data-count="2"][data-spot="1"]{left:72%!important}
#blackjack .bj-wager-display{top:52%!important;bottom:auto!important;left:clamp(8px,1.3vw,18px)!important}
#blackjack .bj-insurance-marker{bottom:18%!important}
#blackjack .bj-result-ribbon{top:50%!important;left:clamp(8px,1vw,16px)!important}
#blackjack .bj-table-host{top:clamp(27px,7vh,54px)!important;left:clamp(8px,1vw,16px)!important;right:auto!important}
@media(max-width:760px) and (orientation:landscape){
  #blackjack .bj-dealer-zone{top:26px!important;width:42%!important}
  #blackjack .bj-player-zone{top:34.5%!important;height:82px!important;width:64%!important}
  #blackjack .bj-table-stakes .bj-stack{top:81.5%!important}
  #blackjack .bj-wager-display{top:51%!important}
}
@media(min-width:1000px) and (min-height:650px){
  #blackjack .bj-dealer-zone{top:18%!important;width:min(40%,400px)!important}
  #blackjack .bj-player-zone{top:48%!important;height:185px!important;width:min(66%,750px)!important}
  #blackjack .bj-table-stakes .bj-stack{top:78.5%!important}
  #blackjack .bj-wager-display{top:52%!important}
}
@media(prefers-reduced-motion:reduce){#blackjack .bj-card--arriving,#blackjack .bj-card--reveal{animation:none!important}}
/* Keep the live score readable without floating it over the dealer's cards. */
#blackjack.screen--blackjack{--bj19-player-rise:clamp(3px,.48vw,6px)}
#blackjack .bj-hand[data-hand-count="1"] .bj-hand-caption{
  position:relative!important;
  z-index:9!important;
  transform:translateX(calc(-1 * clamp(92px,12vw,155px))) translateY(18px)!important;
}
@media(max-width:760px) and (orientation:landscape){
  #blackjack.screen--blackjack{--bj19-player-rise:3px}
  #blackjack .bj-hand[data-hand-count="1"] .bj-hand-caption{transform:translateX(-91px) translateY(16px)!important}
}
/* Split each live hand above the corresponding left/right wager circle. */
#blackjack .bj-hand[data-hand-count="2"][data-hand-index="0"]{left:15%!important}
#blackjack .bj-hand[data-hand-count="2"][data-hand-index="1"]{left:85%!important}
