/* VALBLOX Blackjack page, on top of styles.css.
   The control panel, fields, buttons, the board well and the result plate are Mines' components: mines.css is
   imported here (not linked from the page head, so a shell sync that rewrites the head keeps them), as Keno does,
   so every game is one product. This file adds the Blackjack parts:
   - the action band: Hit / Stand / Double / Split as big buttons, insurance Accept / Decline when it is offered;
     a live move carries its colour (green, red, gold, frost), an unavailable one simply steps back (no grey wash)
   - the table: the Mines well on a deep, clean fjord-blue felt; three rows (dealer, the rules plate, you), the deck
     top right. The rules plate carries the table's print ("Blackjack pays 3 to 2", insurance, dealer rule) and, once
     taken, the insurance bet; the result plate takes its place when a round ends
   - the cards: a real deck (Adrian Kennard's public-domain SVG playing cards, assets/games/blackjack/deck/), white
     faces with big indices, and the valblox back (cobalt, the round shield in ice); they slide out of the deck on a
     short arc and turn over in the air, or fade in when reduced motion is asked for. A settled hand rings its cards
     in the result's colour
   - hand totals as clear plates over each hand, in the state's colour
   - the fairness dialog (the same modal as the cases pages).
   Shadows fall down and a little to the right, from the site's one light (top, tilted 10deg left). */
@import url("mines.css");

.bj { width: 100%; }

/* ---------------------------------------------------------------- panel: the action band */
.bjp__band { padding-top: 16px; padding-bottom: 18px; }
.bjp__acts, .bjp__ins-btns { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bjp__act {
  --tint: var(--lilac-rgb);
  height: 52px; padding: 0 10px 4px; gap: 10px; font-size: 15px; letter-spacing: 1.2px; color: var(--white);
  --c: 11px; --n: 4px;
}
.bjp__act .ic { width: 19px; height: 19px; color: rgb(var(--tint)); }
.bjp__act--hit, .bjp__act--yes { --tint: var(--green-rgb); }
.bjp__act--stand, .bjp__act--no { --tint: 255, 92, 80; }
.bjp__act--double { --tint: var(--gold-rgb); }
.bjp__act--split { --tint: var(--lilac-rgb); }
/* a live move: its colour pooled at the foot of the face and along the rim, the icon lit */
.bjp__act:not(:disabled, [aria-disabled="true"]) {
  --rim: rgba(var(--tint), .5);
  --face: radial-gradient(64% 120% at 50% 100%, rgba(var(--tint), .34) 0%, rgba(var(--tint), 0) 100%), var(--raised);
  --glow: inset 0 0 12px rgba(var(--tint), .1);
}
.bjp__act:not(:disabled, [aria-disabled="true"]) .ic { filter: drop-shadow(0 0 6px rgba(var(--tint), .6)); }
.bjp__act:not(:disabled, [aria-disabled="true"]):hover { --rim: rgba(var(--tint), .9); --glow: inset 0 0 16px rgba(var(--tint), .24); }
/* unavailable (switched off between rounds, or marked aria-disabled inside a round so a focused button keeps its
   focus): the same button, stepped back, its colour kept faintly */
.mpanel .bjp__act:is(:disabled, [aria-disabled="true"]) { filter: none; cursor: default; opacity: .42; }
/* the rest of the panel steps back the same way while a round is on (Mines' grey wash reads muddy on gold) */
.bjp .mquick .btn:disabled { filter: none; opacity: .45; }
/* Start while a round is on: a plain stone stepped back exactly as ½ / 2X / MAX are, its word in the neutral ink (any
   gold left on a stepped-back face reads brown) */
.bjp .mstart[aria-disabled="true"] {
  filter: none; opacity: .45; color: var(--lilac-light); text-shadow: none;
  --rim: var(--rim-iron); --face: var(--raised); --bt: rgba(var(--hi), .36); --bb: rgba(var(--lo), .56); --glow: none;
}

.bjp__ins[hidden], .bjp__acts[hidden] { display: none; }
.bjp__ins-q {
  clear: both; margin-bottom: 10px; min-height: 52px;
  font-family: "Skranji", sans-serif; font-size: 14px; line-height: 22px; letter-spacing: .4px; color: var(--muted);
}
.bjp__ins-q b { font-weight: 700; color: var(--lilac-light); white-space: nowrap; }
.bjp__ins-q img { display: inline-block; width: 16px; height: 17px; margin: 0 4px 0 2px; vertical-align: -3px; }
.mpanel .mhint b { font-weight: 400; color: var(--lilac-light); }

/* ---------------------------------------------------------------- table */
.bjt { --pt: 22px; --pr: 24px; padding: var(--pt) var(--pr) 30px; }   /* the deck hangs off these two */
/* Mines' carved well on a clean felt: the panel's own slate (hue 219, about 40% saturated, owner 23 Nov 2026: the felt
   was 70% and glowed blue), a little lighter across the middle where the plate sits, one faint diagonal sheen; no
   texture, so the cards and totals carry the contrast */
.bjt > .mboard__well {
  --face:
    radial-gradient(58% 40% at 50% 50%, rgba(146, 164, 198, .05) 0%, rgba(146, 164, 198, 0) 100%),
    linear-gradient(116deg, rgba(255, 255, 255, 0) 24%, rgba(255, 255, 255, .03) 42%, rgba(0, 0, 0, .05) 70%, rgba(255, 255, 255, .02) 100%),
    linear-gradient(180deg, #171D2A 0%, #222A3B 50%, #171D2A 100%);
}
.bjt__in {
  --cw: 100px; --ch: calc(var(--cw) * 1.4);   /* card size (the deck is 240 x 336: 1 to 1.4) */
  --fan: .38;                                 /* the share of a card the next one leaves showing */
  --tp: 42px;                                 /* room above a hand for its total */
  --r: calc(var(--cw) * .0667);               /* the cards' corner (16 of 240) */
  position: relative; align-self: stretch; justify-self: stretch; min-height: 636px;
  display: grid; grid-template-rows: auto auto auto; align-content: space-between; justify-items: center; row-gap: 12px;
}
.bjt__zone { position: relative; width: 100%; display: flex; justify-content: center; align-items: flex-start; gap: 36px; padding-top: var(--tp); }

/* the deck the cards are dealt from: a 3D pile rendered in Blender (brand/viking/blackjack-deck/blender), its shadow
   baked in, tucked under the felt's top edge; CSS adds the slot cut into the felt it stands in and the pool of light from above
   it (warm at the edge, frost further out). The image box is --dw (the top card's near edge) times 1.2439 wide, 1.5263 tall; the shares
   below come from build_render.cjs. Static. The cards are dealt off the top card: the deck's last child marks its
   face (an upright card; blackjack.js tilts the dealt card back by data-tilt under data-p to lie exactly on it). The
   deck paints under the hands. */
.bjt__deck {
  --dk: .9; --dw: calc(var(--cw) * var(--dk)); --di: calc(var(--dw) * 1.2439); --ds: 10px;
  position: absolute; z-index: 0; isolation: isolate; top: calc(7px - var(--pt)); right: calc(var(--dr, 34px) - var(--pr));   /* the felt starts 7px inside the well */
  width: var(--di); height: calc(var(--di) / 0.815); pointer-events: none;
  clip-path: inset(0 -60px -60px -200px);   /* nothing above the felt's edge: the deck and its light come from under it */
}
.bjt__pile { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; }
.bjt__slot {   /* its place on the felt: a soft hollow (an inner shade, no edge), under the edge at the top */
  position: absolute; z-index: -1; top: -12px; left: calc(6.8% - var(--ds)); right: calc(12.8% - var(--ds)); bottom: calc(24.7% - var(--ds));
  border-radius: 0 0 16px 16px; background: rgba(3, 7, 14, .08); box-shadow: inset 0 -2px 12px rgba(2, 5, 10, .32);
}
.bjt__top { position: absolute; left: 8.93%; top: -18.78%; width: 76.10%; height: 86.83%; visibility: hidden; }
/* the light: a soft glow on the felt behind the deck, and the same light where it falls on the top card */
.bjt__deck::before, .bjt__deck::after { content: ""; position: absolute; left: 47.0%; top: 0; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; }
.bjt__deck::before {
  z-index: -2; width: 258%; height: 89%;
  background: radial-gradient(closest-side, rgba(236, 200, 150, .15) 0%, rgba(196, 186, 170, .07) 42%, rgba(146, 164, 198, .03) 72%, rgba(146, 164, 198, 0) 100%);
}
.bjt__deck::after {
  z-index: 1; width: 152%; height: 51%;
  background: radial-gradient(closest-side, rgba(240, 206, 156, .07) 0%, rgba(240, 206, 156, .02) 50%, rgba(240, 206, 156, 0) 100%);
}

/* the middle row: the rules plate (with the insurance bet once taken), and the result plate over it */
.bjt__mid { position: relative; width: 100%; display: grid; place-items: center; min-height: 132px; }   /* the result plate's height: the player row never moves when it comes up */
.bjt__mid > * { grid-area: 1 / 1; }
.bjt__felt { position: relative; width: 100%; display: flex; justify-content: center; }
.bjt__mid:has(.bjr:not([hidden])) .bjt__felt { visibility: hidden; }   /* the result takes the plate's place */

/* the rules plate: cut into the felt (bands swapped, as the bet field), a thin gold rim and the Norse notch (the heavy
   corner, without the forged iron: the gold rim stays), the table's print on it, the title between two gold knots */
.bjinfo {
  position: relative; isolation: isolate; width: min(440px, 100%); min-height: 80px; padding: 14px 22px 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
}
.bjinfo > .plate {
  --c: 14px; --n: 5px; --cap-c: 100px; --cap-n: 100px;
  --rim: rgba(var(--gold-rgb), .42); --bt: rgba(3, 6, 12, .5); --bb: rgba(var(--hi), .28);
  --face: radial-gradient(64% 100% at 50% 0%, rgba(var(--gold-rgb), .13) 0%, rgba(var(--gold-rgb), 0) 100%), linear-gradient(180deg, #11151F 0%, #181E2A 100%);
  transition: filter .25s;
}
.bjinfo__t {
  display: flex; align-items: center; gap: 12px;
  font-size: 21px; line-height: 26px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold);
  text-shadow: 0 0 14px rgba(var(--gold-rgb), .38), 0 2px 0 rgba(0, 0, 0, .4);
}
.bjinfo__t::before, .bjinfo__t::after {   /* the site's knotwork divider (as the section heads), small */
  content: ""; width: 44px; height: 8px; flex: none; margin-top: -2px;
  background: url("assets/img/divider-bronze.svg") right center / 44px 8px no-repeat;
}
.bjinfo__t::after { transform: scaleX(-1); }
.bjinfo__s {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px;
  font-size: 12px; line-height: 16px; letter-spacing: 1.3px; text-transform: uppercase; color: rgba(var(--lilac-rgb), .86);
}
.bjinfo__s i { width: 5px; height: 5px; flex: none; transform: rotate(45deg); background: rgba(var(--gold-rgb), .7); }
.bjinfo__ins { transition: color .25s, text-shadow .25s; }
/* insurance offered: its line lights up and the plate takes the frost rim */
.bjt.is-ins .bjinfo > .plate { --rim: rgba(var(--lilac-rgb), .85); --glow: inset 0 0 18px rgba(var(--lilac-rgb), .2); }
.bjt.is-ins .bjinfo__ins { color: var(--lilac-lighter); text-shadow: 0 0 10px rgba(var(--lilac-rgb), .7); }
/* insurance taken: the bet takes the second line's place, "[chips] INSURED 5.00"; a lost one stays, faded, until the
   result plate comes up */
.bjinfo:has(.bjins:not([hidden])) .bjinfo__s { display: none; }
.bjins { display: flex; align-items: center; gap: 10px; height: 26px; }
.bjins[hidden] { display: none; }
.bjins .bjstack { width: 26px; height: 26px; transition: opacity .3s; }
.bjins .bjstack::before { display: none; }
.bjins .bjstack img { width: 26px; bottom: calc(var(--k) * 2.5px); }
.bjins__l { font-size: 12px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--lilac-light); }
.bjins__l::before { content: "Insured"; }
.bjins.is-lost .bjins__l::before { content: "Insurance lost"; }
.bjins.is-lost .bjins__l { color: var(--salmon); }
.bjins .bjh__amt { position: static; font-size: 14px; gap: 5px; color: var(--white); background: none; padding: 0; clip-path: none; }
.bjins .bjh__amt img { width: 14px; height: 15px; }
.bjins .bjh__amt.is-up { color: var(--green); }
.bjins .bjh__amt.is-down { color: var(--salmon); }
.bjins.is-lost .bjstack { opacity: .45; filter: saturate(.4); }

/* ---------------------------------------------------------------- hands */
.bjh { position: relative; display: flex; flex-direction: column; align-items: center; min-width: var(--cw); }
.bjh__cards { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; min-height: calc(var(--ch) + 18px); }
.bjh__cards:empty::before {   /* the spot where a hand's first card lands: a faint frost outline on the felt */
  content: ""; width: var(--cw); height: var(--ch); border-radius: var(--r);
  box-shadow: inset 0 0 0 1.5px rgba(var(--lilac-rgb), .16); background: rgba(3, 7, 14, .16);
}
/* the total: a plate over the hand, in the state's colour (as the totals of a real table's display) */
.bjh__total.chip {
  position: absolute; top: calc(2px - var(--tp)); left: 50%; transform: translateX(-50%); z-index: 3;
  height: 31px; min-width: 50px; padding: 0 13px 3px; font-family: "Skranji", sans-serif; font-weight: 700; font-size: 17px;
  letter-spacing: .6px; color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap;
  --c: 8px; --n: 3px; --rim: rgba(var(--lilac-rgb), .3); --bt: rgba(var(--hi), .42); --bb: rgba(var(--lo), .6);
  --face: linear-gradient(180deg, #22324B 0%, #18243A 100%);
  transition: color .25s;
}
.bjh__total[hidden] { display: none; }
.bjh.is-active .bjh__total {
  color: var(--lilac-lighter); --rim: rgba(var(--lilac-rgb), .95); text-shadow: 0 0 10px rgba(var(--lilac-rgb), .6);
  --face: linear-gradient(180deg, rgba(var(--lilac-rgb), .3) 0%, rgba(var(--lilac-rgb), .08) 100%), #182A44;
}
.bjh.is-win .bjh__total { color: var(--green); --rim: rgba(var(--green-rgb), .85); text-shadow: 0 0 10px rgba(var(--green-rgb), .55);
  --face: linear-gradient(180deg, rgba(var(--green-2-rgb), .32) 0%, rgba(var(--green-2-rgb), .06) 100%), #14272E; }
.bjh.is-bj .bjh__total { color: var(--gold); --rim: rgba(var(--gold-rgb), .9); text-shadow: 0 0 10px rgba(var(--gold-rgb), .55);
  --face: linear-gradient(180deg, rgba(var(--gold-rgb), .32) 0%, rgba(var(--gold-rgb), .06) 100%), #2A2418; }
.bjh.is-lose .bjh__total { color: #FF8577; --rim: rgba(253, 74, 63, .85); text-shadow: 0 0 10px rgba(253, 74, 63, .45);
  --face: linear-gradient(180deg, rgba(253, 74, 63, .3) 0%, rgba(253, 74, 63, .06) 100%), #2B1A20; }
.bjh.is-push .bjh__total { color: var(--lilac-light); --rim: rgba(150, 161, 182, .7); }
.bjh__cards, .bjh__bet { transition: opacity .3s, transform .3s cubic-bezier(.2, .7, .3, 1); transform-origin: 50% 0; }
.bjh.is-wait .bjh__cards { opacity: .9; transform: scale(.92); }   /* the hand waiting its turn steps back; its faces stay white */
.bjh.is-wait .bjh__bet { opacity: .9; }

/* ---------------------------------------------------------------- cards */
.bjc {
  --i: 0;
  position: relative; isolation: isolate; flex: none; width: var(--cw); height: var(--ch);
  margin-top: calc(var(--i) * 6px); perspective: 760px;
  filter: drop-shadow(0 1px 1px rgba(2, 5, 10, .55)) drop-shadow(2px 8px 9px rgba(2, 5, 10, .38));
}
.bjc + .bjc { margin-left: calc(var(--cw) * (var(--fan) - 1)); }
.bjc__in { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(180deg); }
.bjc.is-down .bjc__in { transform: rotateY(0deg); }
.bjc__in img {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--r);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; user-select: none;
}
.bjc__face { transform: rotateY(180deg); transition: box-shadow .35s ease; }
/* a settled hand rings its cards: green for a win, gold for blackjack, red for a loss or bust, frost for a push; the
   ring alone says it (no dimming: the faces stay white) */
.bjh--player.is-win .bjc__face { box-shadow: 0 0 0 3px rgb(var(--green-rgb)), 0 0 16px rgba(var(--green-rgb), .45); }
.bjh--player.is-bj .bjc__face { box-shadow: 0 0 0 3px rgb(var(--gold-rgb)), 0 0 16px rgba(var(--gold-rgb), .5); }
.bjh--player.is-lose .bjc__face { box-shadow: 0 0 0 3px rgb(253, 74, 63), 0 0 14px rgba(253, 74, 63, .35); }
.bjh--player.is-push .bjc__face { box-shadow: 0 0 0 3px rgba(var(--lilac-rgb), .8); }

/* ---------------------------------------------------------------- bets on the felt */
.bjh__bet { position: relative; width: 100%; height: 60px; margin-top: 14px; display: flex; justify-content: center; }
.bjstack { position: relative; display: block; flex: none; width: 46px; height: 52px; }
.bjstack::before {   /* the betting ring the stack stands in: a frost line round a shaded seat */
  content: ""; position: absolute; left: -11px; right: -11px; bottom: -8px; height: 32px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(var(--lilac-rgb), .34); background: radial-gradient(closest-side, rgba(2, 6, 12, .42), rgba(2, 6, 12, 0));
}
.bjstack img { position: absolute; left: 0; width: 46px; height: auto; bottom: calc(var(--k) * 4.42px); }
.bjstack img:first-child { filter: drop-shadow(1px 2px 1.5px rgba(3, 6, 12, .55)); }
/* the bet's amount: a small dark plate beside the stack */
.bjh__amt {
  position: absolute; left: calc(50% + 42px); bottom: 12px; display: flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 4px 10px 5px 8px; background: rgba(6, 11, 20, .62); box-shadow: inset 0 0 0 1px rgba(var(--lilac-rgb), .14);
  clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
  font-family: "Skranji", sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .6px; color: var(--white); font-variant-numeric: tabular-nums;
}
.bjh__amt[hidden] { display: none; }
.bjh__amt img { width: 16px; height: 17px; }
.bjh__amt.is-up { color: var(--green); }
.bjh__amt.is-push { color: var(--lilac-light); }
.bjh__amt.is-down { color: var(--salmon); }
.bjh__amt.is-down [data-f] { text-decoration: line-through; text-decoration-thickness: 1.5px; }
/* split hands stand side by side: each keeps its amount beside its own stack, never under the next hand's chips */
.bjh.is-split .bjh__bet { gap: 8px; align-items: flex-end; }
.bjh.is-split .bjh__amt { position: static; margin-bottom: 6px; }

/* ---------------------------------------------------------------- result plate (Mines' plate, in the result's colour) */
.bjr { --rc: var(--gold-rgb); }
.bjr--win { --rc: var(--green-rgb); }
.bjr--push { --rc: var(--lilac-rgb); }
.bjr--lose { --rc: 253, 74, 63; }
.bjt .mresult { min-width: 360px; padding: 18px 30px 20px; gap: 2px; }
.bjt .bjr > .plate {
  background: rgba(var(--rc), .7);   /* a clean rim in the result's colour */
  --face: radial-gradient(72% 100% at 50% 0%, rgba(var(--rc), .26) 0%, rgba(var(--rc), 0) 100%), linear-gradient(180deg, #1A2537 0%, #111A28 100%);
  --glow: inset 0 0 22px rgba(var(--rc), .16);
}
.bjr__t.h-gold { font-size: 34px; line-height: 40px; text-shadow: 0 0 18px rgba(var(--gold-rgb), .4), 0 3px 0 rgba(0, 0, 0, .35); }
.bjr__t.h-gold { gap: 14px; }
.bjr__t.h-gold::before, .bjr__t.h-gold::after {   /* the rules plate's knotwork, cut out in the result's colour */
  width: 52px; height: 10px; margin-top: -4px; background: rgb(var(--rc)); opacity: .9;
  -webkit-mask: url("assets/img/divider-bronze.svg") right center / 52px 10px no-repeat;
  mask: url("assets/img/divider-bronze.svg") right center / 52px 10px no-repeat;
}
.bjr--win .bjr__t { color: var(--green); text-shadow: 0 0 18px rgba(var(--green-rgb), .4), 0 3px 0 rgba(0, 0, 0, .35); }
.bjr--push .bjr__t { color: var(--lilac-light); text-shadow: 0 0 18px rgba(var(--lilac-rgb), .3), 0 3px 0 rgba(0, 0, 0, .35); }
.bjr--lose .bjr__t { color: #FF7A6B; text-shadow: 0 0 18px rgba(253, 74, 63, .32), 0 3px 0 rgba(0, 0, 0, .35); }
.bjr .mresult__pay[hidden] { display: none; }
.bjr__loss { color: var(--salmon); text-shadow: 0 0 12px rgba(253, 74, 63, .2); }   /* a loss: what it cost, "-10.00" */
.bjr--lose .mresult__pay img { filter: grayscale(1); opacity: .55; }
.bjr__sub { font-family: "Skranji", sans-serif; font-size: 14px; line-height: 20px; letter-spacing: .4px; color: var(--muted); }
.bjr__sub:empty { display: none; }

/* bets table tabs (assets/js/bets-tabs.js): filtered rows hide; an empty filter says so */
.bets .brows > [hidden], .bets__empty[hidden] { display: none; }
.bets__empty { width: 100%; height: 56px; margin: 0; display: grid; place-items: center; font-family: "Skranji", sans-serif; font-size: 15px; letter-spacing: .6px; color: var(--muted); }

/* ---------------------------------------------------------------- fairness dialog (as on the cases pages) */
.fair { padding: 0; border: 0; background: none; color: inherit; width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: visible; }
.fair::backdrop { background: rgba(7, 10, 15, .66); }
.fair__in { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 12px; padding: 26px 30px 28px; }
.fair__in > .plate {
  --c: 16px; --n: 6px; --bt: rgba(var(--hi), .3); --bb: rgba(var(--lo), .6);
  --face: radial-gradient(70% 90% at 50% 0%, rgba(var(--lilac-rgb), .12) 0%, rgba(var(--lilac-rgb), 0) 100%), linear-gradient(180deg, #2A3446 0%, #1F2734 100%);
}
.fair__t { font-size: 22px; line-height: 30px; color: var(--lilac-light); text-transform: uppercase; }
.fair__in p { font-family: "Skranji", sans-serif; font-size: 14px; line-height: 20px; letter-spacing: .4px; color: var(--muted); }
.fair__in p b { font-weight: 400; color: var(--lilac-light); }
.fair__vals { margin: 2px 0; display: flex; flex-direction: column; gap: 8px; }
.fair__vals div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 10px; align-items: center; }
.fair__vals dt { font-size: 12px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.fair__vals dd { margin: 0; min-width: 0; padding: 6px 10px 7px; background: #171D27; box-shadow: inset 0 2px 0 rgba(5, 8, 12, .5);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
.fair__vals code { display: block; font: 12px/16px ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--white); overflow-wrap: anywhere; }
.fair__in .fair__demo { color: var(--gold); }
.fair__x { align-self: center; margin-top: 4px; height: 40px; }

/* ---------------------------------------------------------------- table sizes */
@container (min-width: 900px) {
  .bjt__in { --cw: 112px; }
}
@container (max-width: 600px) {
  .bjt__in { --cw: 86px; min-height: 540px; }
  .bjt__zone { gap: 24px; }
}
@container (max-width: 470px) {
  .bjt__in { --cw: 74px; --fan: .38; --tp: 36px; min-height: 0; row-gap: 12px; }
  .bjt__zone--player:has(.bjh + .bjh) { --fan: .34; gap: 16px; }   /* split hands sit closer */
  .bjt__deck { --dk: .8; --ds: 7px; --dr: 16px; }
  .bjt__mid { min-height: var(--mid, 112px); }   /* the result plate's height (it comes up in the rules plate's place) */
  .bjinfo { min-height: 70px; padding: 11px 12px 12px; gap: 5px; }
  .bjinfo > .plate { --c: 12px; --n: 4px; }
  .bjinfo__t { font-size: 16px; line-height: 20px; letter-spacing: 1.1px; gap: 8px; }
  .bjinfo__t::before, .bjinfo__t::after { width: 24px; background-size: 44px 8px; }
  .bjinfo__s { flex-direction: column; gap: 2px; font-size: 11.5px; line-height: 15px; letter-spacing: 1px; }   /* two short lines */
  .bjinfo__s i { display: none; }
  .bjh__cards { min-height: calc(var(--ch) + 14px); }
  .bjc { margin-top: calc(var(--i) * 5px); }
  .bjh__total.chip { height: 27px; min-width: 42px; padding: 0 10px 3px; font-size: 15px; --c: 7px; }
  .bjh__bet { height: 44px; margin-top: 10px; gap: 8px; align-items: flex-end; }
  .bjstack { width: 36px; height: 40px; }
  .bjstack img { width: 36px; bottom: calc(var(--k) * 3.46px); }
  .bjstack::before { left: -8px; right: -8px; height: 24px; bottom: -6px; }
  .bjh__amt { position: static; margin-bottom: 4px; font-size: 13px; gap: 4px; padding: 3px 8px 4px 6px; }   /* beside the stack: split hands sit close */
  .bjh__amt img { width: 14px; height: 15px; }
  .bjt .mresult { min-width: 0; width: calc(100% - 8px); padding: 14px 12px 16px; }
  .bjr__t.h-gold { font-size: 26px; line-height: 32px; gap: 8px; }
  .bjr__t.h-gold::before, .bjr__t.h-gold::after { width: 28px; height: 9px; -webkit-mask-size: 48px 9px; mask-size: 48px 9px; }
  .bjt .mresult__pay { font-size: 20px; line-height: 26px; }
}
@media (max-width: 1100px) {
  .bjt { --pt: 20px; --pr: 18px; }
}
@media (max-width: 600px) {
  .bjt { --pt: 14px; --pr: 10px; padding-bottom: 12px; }
  .bjp__act { height: 48px; font-size: 14px; }
  .fair__in { padding: 22px 18px 22px; }
  .fair__vals div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .bjinfo__ins, .bjinfo > .plate, .bjc__face, .bjh__total, .bjh__cards, .bjh__bet { transition: none; }
}

/* phones: "BLACKJACK PAYS 3 TO 2" stays on one line */
@media (max-width: 420px) { .bjinfo__t { white-space: nowrap; font-size: 16px; gap: 8px; } }
