/* CASINOIR 0.49.16 — clearer actionable amounts and showdown readability. */
#tablePreview.screen { transform:none; transition-property:opacity; }
#tablePreview .decision-strip .decision-metric { container:holdem-decision / inline-size; }
#tablePreview .live-seat--you .seat-meta {
  container-type:inline-size;
}
#tablePreview .live-seat--you [data-player-name] {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  width:calc(100% + 12px);
  max-width:none;
  font-size:clamp(9px,14cqi,11px)!important;
  letter-spacing:0;
  white-space:normal;
  overflow-wrap:anywhere;
  text-wrap:balance;
}
/* Keep the result and its next-hand control in the same bottom row. */
#tablePreview .holdem-hand-controls {
  --holdem-hand-control-height:clamp(44px, 7vmin, 48px);
  position:absolute;
  inset-inline:max(8px, var(--safe-inline, 0px), var(--safe-left, 0px)) max(8px, var(--safe-inline, 0px), var(--safe-right, 0px));
  bottom:calc(4px + var(--safe-bottom, 0px));
  display:grid;
  grid-template-columns:minmax(0,1fr) clamp(120px, 28vw, 310px);
  align-items:end;
  gap:clamp(6px, 1vw, 14px);
  z-index:76;
  pointer-events:none;
}
#tablePreview .holdem-hand-controls > #handResult:not([hidden]) {
  grid-area:1 / 1;
  min-width:0;
  pointer-events:auto;
}
#tablePreview .holdem-hand-controls > .holdem-settlement-summary {
  width:min(100%, 580px);
  justify-self:start;
}
#tablePreview .holdem-hand-controls:has(.holdem-settlement-summary:not([hidden])) { align-items:stretch; }
#tablePreview .holdem-hand-controls > .hand-result {
  position:static!important;
  width:min(100%, clamp(128px, 22.5vw, 430px))!important;
  transform:none!important;
  justify-self:end;
}
#tablePreview .holdem-hand-controls > .deal-controls {
  position:static!important;
  width:auto!important;
  grid-area:1 / 2;
  transform:none!important;
}
#tablePreview .holdem-hand-controls > .deal-controls:not(:has(button:not([hidden]))) { display:none; }
#tablePreview .holdem-hand-controls .primary-game-button { min-height:var(--holdem-hand-control-height)!important; }
#tablePreview .tournament-result-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
#tablePreview .tournament-result-actions [data-result-details] {
  min-height:40px;
  padding:5px 12px;
  border:1px solid #c9a75c;
  border-radius:8px;
  background:#192823;
  color:#ffe4a0;
}
#tournamentSummaryHand { margin-block:8px; text-align:left; }
#tournamentSummaryHand summary { padding:8px; color:#ffe4a0; cursor:pointer; }
#tournamentSummaryHand > div { padding:4px 8px; }

/* Leave independent space for the actions at the two left seats. */
#tablePreview .ls1 .holdem-seat-badges {
  inset:calc(100% - 4px) 4px auto 4px;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
}
#tablePreview .ls1 .position-marker { order:-1; margin-inline-start:0; }
#tablePreview .live-seat--you > .seat-action {
  position:absolute;
  inset:auto calc(100% - 30px) 0 auto;
  transform:none!important;
  min-width:0!important;
  max-width:11em!important;
  white-space:nowrap;
  pointer-events:none;
  z-index:13;
}
#tablePreview .ls1.live-seat--you > .seat-action { left:-12px; right:auto; bottom:-12px; }
#tablePreview .ls1.live-seat--you .holdem-seat-badges { align-items:flex-end; inset-inline-end:0; }
#tablePreview :is(.ls1 .seat-action,.live-seat--you > .seat-action) {
  padding:2px 4px!important;
  font-size:clamp(9px, 1.18vw, 13px)!important;
  line-height:1.15;
  letter-spacing:0!important;
}
#tablePreview .table-header > .holdem-solo-leave {
  width:auto!important;
  min-width:44px;
  padding-inline:7px!important;
  font-size:clamp(12px,1.4vw,16px)!important;
  white-space:nowrap;
}
#tablePreview .ls5 .holdem-seat-badges {
  bottom:0;
  align-items:flex-start;
  pointer-events:none;
}
#tablePreview .ls5 .seat-action {
  max-width:66%!important;
  pointer-events:auto;
}
#tablePreview .ls5 .position-marker {
  position:absolute!important;
  inset:auto auto 0 calc(100% + 3px)!important;
  margin-inline-start:0;
  pointer-events:auto;
}
#tablePreview .ls6 .holdem-seat-badges { inset-inline-start:4px; }
@media (min-width:981px) {
  #tablePreview .ls6 .holdem-seat-badges { top:-43px; }
}
@media (max-width:980px) and (max-height:460px) and (orientation:landscape) {
  #tablePreview .ls6 .holdem-seat-badges { inset-inline-end:calc(3px + var(--safe-left) * .72); }
}
@media (max-width:600px) and (orientation:landscape) {
  #tablePreview .ls6 .holdem-seat-badges { inset-inline-start:18px; top:-17px; }
}
#tablePreview .decision-strip .decision-metric strong.holdem-decision-amount {
  max-width:100%;
  text-align:center;
  line-height:1.05!important;
  white-space:normal!important;
  overflow:visible;
}
#tablePreview .holdem-decision-amount > :is(.holdem-decision-chips,.holdem-decision-blinds) {
  display:inline-block;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
  letter-spacing:0;
  font-size:min(1em, calc(145cqi / var(--holdem-decision-characters)));
}
@container holdem-decision (max-width:108px) {
  #tablePreview .holdem-decision-amount > .holdem-decision-separator { display:none; }
  #tablePreview .holdem-decision-amount > .holdem-decision-blinds {
    display:block;
    font-size:min(.88em, calc(140cqi / var(--holdem-decision-characters)));
  }
}
#tablePreview .live-table {
  --holdem-all-in-width: clamp(38px, 4.8vw, 55px);
  --holdem-all-in-height: calc(var(--holdem-all-in-width) * .72);
  --holdem-dealer-size: clamp(19px, 2.45vw, 30px);
  --holdem-marker-inline-gap: calc((var(--holdem-all-in-width) + var(--holdem-dealer-size)) / 2 + 4px);
  --holdem-marker-block-gap: calc((var(--holdem-all-in-height) + var(--holdem-dealer-size)) / 2 + 4px);
}
#tablePreview .position-marker:empty,
#tablePreview .live-dealer[hidden] { display:none!important; }
#tablePreview .live-dealer {
  --dealer-art: url('./assets/ui/holdem-dealer-ivory-v06914.webp');
  width:var(--holdem-dealer-size)!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:drop-shadow(0 2px 2px #100300c9);
}
html[data-table-dealer="noir"] #tablePreview .live-dealer {
  --dealer-art: url('./assets/ui/holdem-dealer-noir-v06914.webp');
}
#tablePreview .live-dealer::after {
  content:"";
  position:absolute;
  inset:0;
  background:var(--dealer-art) center / contain no-repeat;
}
#tablePreview .action-buttons .action-button{font-variant-numeric:tabular-nums!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;letter-spacing:-.015em!important}
#tablePreview .action-buttons .action-button:focus-visible{outline:2px solid #ffe4a1!important;outline-offset:2px!important}
#tablePreview .action-buttons .action-button:not(:disabled):active{transform:translateY(1px)!important;filter:brightness(1.13)!important}
#tablePreview .holdem-felt-position {
  position:absolute;
  left:var(--marker-x);
  top:var(--marker-y);
  z-index:27;
  pointer-events:none;
}
#tablePreview .holdem-all-in-marker {
  --marker-art: url('./assets/ui/holdem-all-in-classic-v06913.webp');
  position:absolute;
  left:0;
  top:0;
  width:var(--holdem-all-in-width);
  height:var(--holdem-all-in-height);
  transform:translate(-50%,-50%);
  background:var(--marker-art) center / contain no-repeat;
  filter:drop-shadow(0 2px 2px #100300e0);
}
html[data-table-all-in="neon"] #tablePreview .holdem-all-in-marker { --marker-art: url('./assets/ui/holdem-all-in-neon-v06913.webp'); }
#tablePreview .holdem-dealer-position {
  position:absolute;
  left:var(--dealer-x, 0px);
  top:var(--dealer-y, 0px);
}
#tablePreview [data-marker-seat="0"] { --marker-x:calc(24% + 4px); }
#tablePreview [data-marker-seat="3"] { --marker-x:75%; }
#tablePreview :is([data-marker-seat="0"],[data-marker-seat="3"]) {
  --marker-y:calc(43% + 4px);
  --dealer-y:var(--holdem-marker-block-gap);
}
#tablePreview [data-marker-seat="1"] { --marker-x:34.7%; --dealer-x:var(--holdem-marker-inline-gap); }
#tablePreview [data-marker-seat="2"] { --marker-x:64.8%; --dealer-x:calc(-1 * var(--holdem-marker-inline-gap)); }
#tablePreview :is([data-marker-seat="1"],[data-marker-seat="2"]) { --marker-y:calc(24.4% - 8px); }
#tablePreview [data-marker-seat="4"] { --marker-x:61%; }
#tablePreview [data-marker-seat="5"] { --marker-x:39%; }
#tablePreview :is([data-marker-seat="4"],[data-marker-seat="5"]) {
  --marker-y:53%;
  --dealer-y:calc(-1 * var(--holdem-marker-block-gap));
}
/* The left seat and its wager clear the landscape camera cutout together. */
#tablePreview :is(.ls1,.table-bet.tb1) { margin-left:calc(var(--safe-left) + 7px); }
#tablePreview .table-bet:is(.tb2,.tb3) { margin-top:-8px; }
#tablePreview .table-bet.tb3 { margin-left:-16px; }
#tablePreview .hand-result.is-showdown-result .result-winner__headline em{color:#ffe6a8!important;font-weight:850!important}
#tablePreview .hand-result .result-pots{scrollbar-width:thin;overscroll-behavior:contain}
@media(max-width:980px) and (max-height:460px) and (orientation:landscape){
 #tablePreview .live-table {
   --top-marker-lift:clamp(3px, calc(10vh - 29px), 10px);
   --side-seat-half-width:6.8%;
   --side-avatar-overhang:12px;
   --side-wager-clearance:51px;
   --noa-seat-shift:0px;
 }
 #tablePreview .live-table :is(.ls5,.ls6){top:calc(66% - var(--safe-bottom))!important}
 #tablePreview .live-table .ls5 { margin-left:10px; }
 #tablePreview :is([data-marker-seat="1"],[data-marker-seat="2"]) {
   --marker-y:calc(37.749% - 3.8vw - var(--holdem-all-in-height) / 2 - 3px - var(--top-marker-lift));
 }
 #tablePreview .table-bet:is(.tb2,.tb3) {
   top:calc(37.749% - 3.8vw - var(--holdem-all-in-height) - 19px - var(--top-marker-lift))!important;
   margin-top:0;
 }
 /* The side seats' buttons share a row toward the board. Bets have a separate spot on each shoulder of the felt. */
 #tablePreview :is([data-marker-seat="0"],[data-marker-seat="3"]) { --marker-y:40%; --dealer-y:0px; }
 #tablePreview [data-marker-seat="0"] {
   --marker-x:calc(8.71% + var(--side-seat-half-width) + var(--safe-left) + 12px + var(--holdem-all-in-width) / 2);
   --dealer-x:var(--holdem-marker-inline-gap);
 }
 #tablePreview [data-marker-seat="3"] {
   --marker-x:calc(86.37% - var(--side-seat-half-width) - var(--side-avatar-overhang) + var(--noa-seat-shift) - 5px - var(--holdem-all-in-width) / 2);
   --dealer-x:calc(-1 * var(--holdem-marker-inline-gap));
 }
 #tablePreview .table-bet.tb1 {
   left:calc(10.8% + var(--safe-left) * .33)!important;
   top:calc(46.92% - var(--side-wager-clearance))!important;
   margin-left:0;
 }
 #tablePreview .table-bet.tb4 {
   left:calc(89.7% - var(--safe-right) * .33)!important;
   top:calc(46.28% - var(--side-wager-clearance))!important;
 }
 #tablePreview .live-table .ls4 { margin-left:var(--noa-seat-shift); }
 #tablePreview [data-marker-seat="4"] { --marker-x:calc(61.5% - 12px); }
 #tablePreview [data-marker-seat="5"] { --marker-x:calc(38.5% + 12px); }
 #tablePreview :is([data-marker-seat="4"],[data-marker-seat="5"]) {
   --marker-y:61%;
   --dealer-y:calc(var(--holdem-marker-block-gap) - 2px);
 }
 /* Move the lower wagers above the markers into the lane below the board. */
 #tablePreview .table-bet:is(.tb5,.tb6) {
   top:calc(37.749% + 3.8vw + 16px)!important;
   margin-top:0;
 }
 #tablePreview .table-bet.tb5 { left:calc(62% - 24px)!important; }
 #tablePreview .table-bet.tb6 { left:calc(38% + 24px)!important; }
 /* Long totals get a full row within the space between the two lower markers. */
 #tablePreview .live-pot:has(> [data-wide-amount]) {
   --holdem-pot-width:min(112px, calc(23vw - 28px - var(--holdem-all-in-width)));
   width:var(--holdem-pot-width);
   min-width:0!important;
   padding-inline:0!important;
   column-gap:2px;
 }
 #tablePreview .live-pot:has(> [data-wide-amount]) > .pot-chip-stack { grid-row:1; min-width:0; }
 #tablePreview .live-pot > [data-wide-amount] {
   grid-column:1 / -1;
   font-size:clamp(8px, calc(var(--holdem-pot-width) * 1.58 / var(--holdem-pot-characters)), 16px);
   font-variant-numeric:tabular-nums;
   letter-spacing:0;
   white-space:nowrap;
 }
}
@media(max-width:760px) and (orientation:landscape){
 #tablePreview .action-buttons .action-button{font-size:11.5px!important;letter-spacing:-.025em!important;padding-inline:3px!important}
 #tablePreview .action-buttons .action-button:disabled{opacity:.54!important}
 #tablePreview .live-table :is(.ls5,.ls6){top:calc(64% - var(--safe-bottom))!important}
}
@media(max-width:760px) and (max-height:460px) and (orientation:landscape){
 #tablePreview .live-table {
   --side-seat-half-width:7.1%;
   --side-avatar-overhang:10px;
   --side-wager-clearance:46px;
 }
}
@media(max-width:600px) and (max-height:460px) and (orientation:landscape){
 #tablePreview .live-table { --noa-seat-shift:12px; }
 #tablePreview .live-pot { min-width:66px!important; padding-inline:2px!important; column-gap:2px; }
 #tablePreview :is(.ls2,.ls4).live-seat--you > .seat-action { top:0; bottom:auto; right:calc(100% - 24px); }
}
@media(max-width:760px) and (max-height:360px) and (orientation:landscape){
 #tablePreview .live-table :is(.ls5,.ls6){top:calc(61% - var(--safe-bottom))!important}
}
@media(prefers-reduced-motion:reduce){#tablePreview .action-buttons .action-button:active{transform:none!important}}
