/* ============================================================
   d247 Roulette board (parity with d247/tridevexch style.css)
   ============================================================ */
.roulette-box-container {
  width: 100%;
}
.board-in {
  display: grid;
  grid-template-rows: 105fr 50fr;
  grid-template-columns: 44fr 539fr 44fr;
  grid-template-areas: 'center center right' '.      bottom .    ';
  grid-gap: 0.1328rem;
  gap: 0.1328rem;
  width: 100%;
  position: relative;
  height: 100%;
  pointer-events: none;
}
.board-right {
  display: grid;
  grid-area: right;
  grid-template-rows: repeat(3, 1fr);
  grid-gap: 0.1328rem;
  gap: 0.1328rem;
  pointer-events: all;
}
.board-right .board-cell:first-child,
.board-right .board-cell:last-child {
  border-radius: 0;
}
.board-cell {
  position: relative;
  border-radius: 0;
  min-height: 50px;
}
.board-cell-in {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: inherit;
  transition: background-color 180ms ease;
}
.board-cell-in .rate {
  position: absolute;
  line-height: 14px;
  font-size: 14px;
  bottom: 2px;
}
.board-cell-in::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-width: 0.1328rem;
  border-style: solid;
  border-color: #000;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.board-text,
.board-number {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}
.board-cell-in .bet-chip-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  display: flex;
  justify-content: center;
  align-items: center;
}
.board-cell-in .bet-chip-area.coin-place {
  z-index: 14;
}
.board-bottom {
  display: grid;
  grid-area: bottom;
  grid-template-rows: repeat(2, 1fr);
  grid-template-columns: repeat(6, 1fr);
  grid-template-areas: 'first      first second second third third      ' 'first-half even  red    black  odd   second-half';
  grid-gap: 0.1328rem;
  gap: 0.1328rem;
  pointer-events: all;
}
.board-bottom .board-cell:first-child {
  grid-area: first;
}
.board-bottom .board-cell:nth-child(2) {
  grid-area: second;
}
.board-bottom .board-cell:nth-child(3) {
  grid-area: third;
}
.board-bottom .board-cell:nth-child(4) {
  grid-area: first-half;
  border-radius: 0;
}
.board-bottom .board-cell:nth-child(5) {
  grid-area: even;
}
.board-bottom .board-cell:nth-child(6) {
  grid-area: red;
}
.board-bottom .board-cell:nth-child(7) {
  grid-area: black;
}
.board-bottom .board-cell:nth-child(8) {
  grid-area: odd;
}
.board-bottom .board-cell:last-child {
  grid-area: second-half;
  border-radius: 0;
}
.board-center {
  display: grid;
  grid-area: center;
  grid-template-rows: repeat(3, 1fr);
  grid-template-columns: repeat(13, 1fr);
  grid-template-areas: 'zero c f i l o r u x aa ad ag aj' 'zero b e h k n q t w z  ac af ai' 'zero a d g j m p s v y  ab ae ah';
  grid-gap: 0.1328rem;
  gap: 0.1328rem;
  pointer-events: all;
}
.board-cell.green {
  background-color: #17732e;
  border-radius: 0;
}
.board-cell.red {
  background-color: #b2121f;
}
.board-cell.black {
  background-color: #111111;
}
.board-cell.yellow {
  background-color: #fef0a9;
  color: #b2121f;
}
.board-cell.yellow .board-text,
.board-cell.yellow .borad-number {
  color: red;
}
.board-center .board-cell:nth-child(1) {
  grid-area: zero;
}
.board-center .board-cell:nth-child(2) {
  grid-area: a;
}
.board-center .board-cell:nth-child(3) {
  grid-area: b;
}
.board-center .board-cell:nth-child(4) {
  grid-area: c;
}
.board-center .board-cell:nth-child(5) {
  grid-area: d;
}
.board-center .board-cell:nth-child(6) {
  grid-area: e;
}
.board-center .board-cell:nth-child(7) {
  grid-area: f;
}
.board-center .board-cell:nth-child(8) {
  grid-area: g;
}
.board-center .board-cell:nth-child(9) {
  grid-area: h;
}
.board-center .board-cell:nth-child(10) {
  grid-area: i;
}
.board-center .board-cell:nth-child(11) {
  grid-area: j;
}
.board-center .board-cell:nth-child(12) {
  grid-area: k;
}
.board-center .board-cell:nth-child(13) {
  grid-area: l;
}
.board-center .board-cell:nth-child(14) {
  grid-area: m;
}
.board-center .board-cell:nth-child(15) {
  grid-area: n;
}
.board-center .board-cell:nth-child(16) {
  grid-area: o;
}
.board-center .board-cell:nth-child(17) {
  grid-area: p;
}
.board-center .board-cell:nth-child(18) {
  grid-area: q;
}
.board-center .board-cell:nth-child(19) {
  grid-area: r;
}
.board-center .board-cell:nth-child(20) {
  grid-area: s;
}
.board-center .board-cell:nth-child(21) {
  grid-area: t;
}
.board-center .board-cell:nth-child(22) {
  grid-area: u;
}
.board-center .board-cell:nth-child(23) {
  grid-area: v;
}
.board-center .board-cell:nth-child(24) {
  grid-area: w;
}
.board-center .board-cell:nth-child(25) {
  grid-area: x;
}
.board-center .board-cell:nth-child(26) {
  grid-area: y;
}
.board-center .board-cell:nth-child(27) {
  grid-area: z;
}
.board-center .board-cell:nth-child(28) {
  grid-area: aa;
}
.board-center .board-cell:nth-child(29) {
  grid-area: ab;
}
.board-center .board-cell:nth-child(30) {
  grid-area: ac;
}
.board-center .board-cell:nth-child(31) {
  grid-area: ad;
}
.board-center .board-cell:nth-child(32) {
  grid-area: ae;
}
.board-center .board-cell:nth-child(33) {
  grid-area: af;
}
.board-center .board-cell:nth-child(34) {
  grid-area: ag;
}
.board-center .board-cell:nth-child(35) {
  grid-area: ah;
}
.board-center .board-cell:nth-child(36) {
  grid-area: ai;
}
.board-center .board-cell:nth-child(37) {
  grid-area: aj;
}
.roulette-box-container .suspended-box {
  cursor: unset;
  pointer-events: all;
}
/* The roulette tints for the same box are further down the file, immediately
   after the shared block — they have to be, see the note there. */

/* ============================================================
   d247 Sic Bo board (parity with d247/tridevexch style.css)
   ============================================================ */
.sicbo-board .sicbo-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sicbo-board .sicbo-title-box {
  background-color: #666666;
  color: #fff;
  border-radius: 10px;
  padding: 0 5px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  min-width: 70px;
}
.sicbo-board .sicbo-middle {
  display: flex;
  flex-wrap: nowrap;
  margin-top: 5px;
  justify-content: space-between;
}
.sicbo-board .sicbo-middle-midle {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: auto;
}
.sicbo-board .sicbo-middle-top-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}
.sicbo-board .sicbo-square-box {
  text-transform: uppercase;
  background-image: linear-gradient(rgba(153, 146, 135, 0.7), rgba(162, 142, 130, 0.7));
  border-radius: 6px;
  padding: 5px;
  color: #1d1b2d;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin: 0 1px;
  flex: 1 1 auto;
  cursor: pointer;
  /* tridevexch computes 24px here (16px font), so a label+value box is
     2x24 + 10 padding = 58px tall and the Small/Big columns are 214px. Ours
     inherited 15px, which made every box 40px and the columns 196px — the
     single largest geometry delta on this board. Captured live 2026-09-21. */
  line-height: 24px;
}
.sicbo-board .sicbo-middle-small,
.sicbo-board .sicbo-middle-big {
  flex: unset;
  min-width: 60px;
}
/* tridevexch's stylesheet declares margin:0 5px / min-width:50px for this
   class, but its own live DOM computes to the .sicbo-square-box values
   (margin 0 1px, width 40/47px — measured 2026-09-21), so the declaration
   loses the cascade there. Matching the measured values, not the declaration,
   is what makes our ODD/EVEN boxes 40px and 47px wide like tridev's. */
.sicbo-board .sicbo-middle-top-box-odd {
  margin: 0 1px;
}
.sicbo-board .sicbo-box-value {
  font-weight: bold;
}
.sicbo-board .sicbo-middle-middle-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 10px;
  width: 100%;
}
.sicbo-board .sicbo-cube-box-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  margin: 0 1px;
}
.sicbo-board .sicbo-middle-middle-row .sicbo-cube-box-container {
  flex: 1 auto;
}
.sicbo-board .sicbo-cube-box-group {
  display: flex;
  flex-wrap: wrap;
  margin-top: 5px;
}
.sicbo-board .sicbo-cube-box {
  width: 50px;
  height: 50px;
  position: relative;
}
.sicbo-board .sicbo-cube-single img {
  height: 30px;
}
.sicbo-board .sicbo-cube-double,
.sicbo-board .sicbo-cube-tripple {
  position: relative;
}
.sicbo-board .sicbo-cube-double img {
  height: 20px;
}
.sicbo-board .sicbo-cube-double img:first-child {
  position: absolute;
  left: 5px;
  top: 5px;
}
.sicbo-board .sicbo-cube-double img:last-child {
  position: absolute;
  right: 5px;
  bottom: 5px;
}
.sicbo-board .sicbo-cube-tripple img {
  height: 13px;
}
.sicbo-board .sicbo-cube-tripple img:first-child {
  position: absolute;
  left: 5px;
  top: 5px;
}
.sicbo-board .sicbo-cube-tripple img:nth-child(2) {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.sicbo-board .sicbo-cube-tripple img:last-child {
  position: absolute;
  right: 5px;
  bottom: 5px;
}
.sicbo-board .sicbo-bottom {
  display: flex;
  margin-top: 10px;
}
.sicbo-board .sicbo-bottom .sicbo-cube-box-container {
  margin: 0 auto;
}
/* tridevexch's rule for the 15 two-dice combination boxes: they are 40x60
   (tall), not the 50x50 square of the single/double/triple cubes. Ours reused
   .sicbo-cube-box's square size, which is why the combination row measured
   50x50 against tridev's 40x60. */
.sicbo-board .sicbo-bottom .sicbo-cube-box {
  flex: unset;
  width: 40px;
  height: 60px;
  justify-content: space-between;
}
.sicbo-board .sicbo-cube-combination img {
  height: 20px;
}
.sicbo-board .sicbo-cube-box .rate {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: bold;
  color: #1d1b2d;
}

/* ==========================================================================
   Andar Bahar family (ab20 / ab3 / ab4) — ONE padlock per SIDE, never per card.

   The 26 cells are a single market group: the provider moves all of them
   26/26 OPEN -> 26/26 SUSPENDED when the ~30-second betting window at the head
   of each 5-minute round opens and shuts, so the closed state belongs to the
   side, not to each card. Our port marked every cell `.suspended-box` instead,
   which painted a 17px padlock over each of the 26 cards for the ~4½ minutes
   of every round in which betting is shut — the padlock wall on this board.

   Measured on tridevexch's own /casino/ab20 (1600px, 2026-10-16, cells 46x83):
   `suspended-box=0` inside `.casino-table` and every cell `innerLock=""` /
   `cellLock=""` — so the lock belongs to the SIDE, never to a card.

   THE SKIN IS THE REFERENCE'S `.suspended-box`, verbatim (d247/tridevexch
   `style.css` :1973-2009, and the same rule has always been the one that paints
   a shut box there):
     .suspended-box::before  lock.svg, 17x17, **filter: invert(1)**, centred, z-index 1
     .suspended-box::after   background-color: #373636d6 over 100%x100%
   The `::after` is the veil UNDER the lock. Our first port drew only the lock,
   with no veil and no invert, so the padlock sat straight on the card art and
   read as "a padlock on a card" (user report, 2026-10-18). Both halves are now
   copied: the veil at z-index 1 and the white lock at z-index 2, so the lock is
   always painted above the veil regardless of paint order.
   ========================================================================== */
.teenpatti1day .andar-box.ab-side-closed,
.teenpatti1day .bahar-box.ab-side-closed {
  position: relative;
}
/* A shut side takes no bet, so the pointer has to say so: without this the whole
   row still reads as clickable and a click is swallowed in silence — the
   "nothing happens when I click a card" report (2026-10-16). The reference's own
   side box carries `.suspended-box`, whose rule sets `cursor: none`. */
.teenpatti1day .andar-box.ab-side-closed,
.teenpatti1day .bahar-box.ab-side-closed,
.teenpatti1day .andar-box.ab-side-closed .card-odd-box,
.teenpatti1day .bahar-box.ab-side-closed .card-odd-box {
  cursor: not-allowed;
}
.teenpatti1day .andar-box.ab-side-closed::before,
.teenpatti1day .bahar-box.ab-side-closed::before {
  background-image: url('../img/icons/lock.svg');
  background-size: 17px 17px;
  /* The reference inverts the glyph, i.e. a WHITE lock — over the dark veil
     below. `invert(1)` is verbatim from its `.suspended-box::before`. */
  filter: invert(1);
  -webkit-filter: invert(1);
  background-repeat: no-repeat;
  background-position: center;
  content: '';
  position: absolute;
  /* Above the veil (z-index 1) and above the cells: the reference's ::before
     carries z-index 1 and its ::after is unpositioned by z-index, so the lock
     always reads on top; here both are explicit so paint order cannot differ. */
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* The overlay UNDER the padlock — the reference's own veil for a shut box
   (`.suspended-box::after { background-color: #373636d6 }`). Without it the
   lock floats directly over the card art, which is what the user saw. */
.teenpatti1day .andar-box.ab-side-closed::after,
.teenpatti1day .bahar-box.ab-side-closed::after {
  content: '';
  background-color: #373636d6;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: not-allowed;
  pointer-events: none;
}

/* Suspended overlay shared by both boards (scoped to the board containers so it
   cannot leak onto other components that happen to use the .suspended-box class) */
.roulette-box-container .suspended-box,
.sicbo-board .suspended-box {
  position: relative;
  pointer-events: none;
  cursor: none;
}
.roulette-box-container .suspended-box::before,
.sicbo-board .suspended-box::before {
  background-image: url('../img/icons/lock.svg');
  background-size: 17px 17px;
  background-repeat: no-repeat;
  content: '';
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  pointer-events: none;
}
.roulette-box-container .suspended-box::after,
.sicbo-board .suspended-box::after {
  content: '';
  background-color: #373636d6;
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  cursor: not-allowed;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

/* THE ROULETTE BOARD'S SUSPENDED CELL IS *LIGHT*, AND ITS PADLOCK SITS ABOVE
   THE TINT — the dark `#373636d6` just above is Sic Bo's.

   These two rules have to sit AFTER the shared block. Both selectors are
   (0,2,0), so the later declaration wins, and the shared block is written for
   both boards. Declared BEFORE it — which is where they used to be, at :281-288
   — they were silently overridden: measured on the deployed build 2026-09-26,
   `.suspended-box::after` computed `rgba(55, 54, 54, 0.84)` where the reference
   paints `rgba(214, 222, 219, 0.84)`, and the lock's `z-index` was 1 where the
   reference's is 2, so its `::after` painted over it.

   The visible consequence was the whole difference the user reported as "looks
   not broken, not exactly as tridev": with a dark film over the board and the
   padlock underneath it, our round-in-play board read as a dark grid of dimmed
   numbers, where the reference reads as a washed-out grey grid of crisp black
   padlocks.

   Measured on tridevexch (tmp-browser/roulette-cell-probe.mjs), round in play,
   both widths, same values on roulette12:

     390x844    ::after rgba(214,222,219,0.84)  ::before lock.svg 17x17 invert(0) z=2
     1600x1200  ::after rgba(214,222,219,0.84)  ::before lock.svg 17x17 invert(0) z=2

   and 49/49 cells carrying the lock on both. */
.roulette-box-container .suspended-box::after {
  background-color: #d6dedbd6;
  z-index: 1;
}
.roulette-box-container .suspended-box::before {
  filter: invert(0);
  z-index: 2;
}

/* Small/Big side boxes: keep the static 4-10 / 11-17 label, show live rate below */
/* ------------------------------------------------------------------------
   Sic Bo: tridevexch ships BOTH arrangements in one DOM and toggles them by
   breakpoint (its own responsive.css keys Sic Bo to max-width 767 /
   768-1199 / 1200-1399 / 1400-1599 / 1600-1800). Measured on tridev 2026-09-22:
   at 1600 and 1366 the desktop set is visible and the narrow set is
   `display:none`; at 1024/768/414/375 the reverse. The switch therefore sits at
   1200px, and 59 boxes are visible at every width on both sites.
   The two sets are genuinely different arrangements (the narrow one re-groups
   Small/Odd beside the titles and puts the doubles/triples above the totals),
   so one arrangement cannot be re-ordered into the other with `order`. */
.sicbo-board .sicbo-mobile {
  display: none;
}
@media (max-width: 1199.98px) {
  .sicbo-board .sicbo-desktop {
    display: none;
  }
  .sicbo-board .sicbo-mobile {
    display: block;
  }
  /* stack tridev's two narrow blocks and let the three top title boxes wrap */
  .sicbo-board .sicbo-mobile .sicbo-top {
    flex-wrap: wrap;
  }
  .sicbo-board .sicbo-mobile .sicbo-middle {
    flex-direction: column;
    align-items: stretch;
  }
  .sicbo-board .sicbo-mobile .sicbo-middle-left,
  .sicbo-board .sicbo-mobile .sicbo-middle-right {
    width: 100%;
  }
  .sicbo-board .sicbo-mobile .sicbo-middle-right .sicbo-cube-box-container {
    margin-top: 10px;
  }
}

.sicbo-board .sicbo-box-rate {
  font-weight: bold;
  color: #1d1b2d;
}


/* ============================================================
   d247 game-page shell: transfer-board, statistics, chip areas
   ============================================================ */
.roulette-game-shell {
  width: 100%;
}
.transfer-board {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 3px 8px 8px;
}
.switch-board-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.switch-board-icon > div {
  min-width: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
}
.switch-board-icon .back {
  background: #72bbef;
  color: #000;
}
.switch-board-icon .lay {
  background: #faa9ba;
  color: #000;
}
.switch-board-icon .back.active {
  background: #72bbef;
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35) inset;
}
.switch-board-icon .lay.active {
  background: #faa9ba;
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35) inset;
}
.casino-table-box {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding-right: 4px;
}
.roulette11-table {
  border-top: 1px solid var(--table-border, #ddd);
}
.roulette11-table-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border-bottom: 1px solid var(--table-border, #ddd);
  border-left: 1px solid var(--table-border, #ddd);
  background-color: var(--bg-table, #fff);
  color: var(--text-table, #000);
}
.roulette11-table-cell {
  max-width: 50%;
  width: 33.33%;
  flex: 1;
  padding: 4px 8px;
  text-align: center;
  border-right: 1px solid var(--table-border, #ddd);
  display: flex;
  justify-content: space-between;
}
.sidebar-box {
  margin-top: 10px;
}
.sidebar-title {
  background-color: var(--bg-primary, #007bff);
  color: var(--text-primary, #fff);
  position: relative;
  height: 30px;
  display: flex;
  align-items: center;
}
.sidebar-title h4 {
  padding: 4px;
  font-size: 14px;
  font-weight: bold;
  margin: 0;
}
.roulette-rules .table th {
  font-size: 12px;
}
.roulette-rules .table td {
  font-size: 22px;
}

/* split / corner / street hit-box positions inside number cells (d247 parity) */
.board-center .bet-chip-area.center-left {
  top: 50%;
  left: 0;
  width: 50%;
  height: 50%;
  transform: translate3d(-50%, -50%, 0);
  z-index: 20;
}
.board-center .bet-chip-area.bottom-left {
  bottom: 0;
  top: 50%;
  left: 0;
  width: 50%;
  height: 50%;
  transform: translate3d(-50%, 50%, 0);
  z-index: 20;
}
.board-center .bet-chip-area.top-center {
  top: 0;
  left: 50%;
  width: 50%;
  height: 50%;
  transform: translate3d(-50%, -50%, 0);
  z-index: 20;
}

/* ==========================================================================
   Andar Bahar Joker (abj) — tridevexch's `.ab2` board
   Copied rule-for-rule from the live tridevexch stylesheet (captured
   2026-09-19) so the abj board inherits tridev's own values instead of
   hand-rolled ones. TeenPattiBoard's renderAb2Board puts `.ab2` on the board
   root; tridevexch puts it on the page container, so these descendant
   selectors resolve identically either way.

   The board is three stacked regions (measured from the live TD
   /casino/abj DOM): two `playera-bets` columns of SA/First Bet/Second Bet,
   a middle box of Odd/Even + the four suits, and a 13-cell rank ladder
   (`.ab2cards` + `.card-odd-box`). The ladder is what the parity harness
   counts, and why this game needed its own renderer.
   ========================================================================== */
.ab2 .casino-table-full-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border-bottom: 1px solid var(--table-border, #ddd);
  padding: 10px;
}
.ab2 .playera-bets {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 49%;
}
.playera-title {
  width: 10%;
  text-align: center;
  font-weight: bold;
  padding-top: 10px;
}
.player-sa {
  width: 20%;
  margin-left: 2%;
}
.player-sa-box {
  text-align: center;
  padding: 5px 0;
  border: 3px solid yellow;
  border-radius: 8px;
  margin-bottom: 5px;
}
.player-bet {
  width: 25%;
  margin-left: 2%;
}
.player-bet-box {
  text-align: center;
  padding: 5px 0;
  border: 3px solid yellow;
  border-radius: 8px;
  background-color: #086cb8;
  color: #fff;
  margin-bottom: 5px;
}
.ab2 .casino-table-left-box,
.ab2 .casino-table-right-box {
  padding: 5px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border-bottom: 1px solid var(--table-border, #ddd);
}
.ab2-box {
  width: 49%;
}
.casino-table-right-box .ab2-box {
  width: 24%;
}
/* Phone padding. The ported mobile rule `.casino-container-box
   .casino-table-left-box { width: 100%; padding: 0 5px }`
   (casino-responsive-parity.css :181) is 0,2,0 — the same weight as the block
   above — and it loads LATER, so it zeroed this board's vertical padding on
   phones: measured on the deployed site 2026-10-15 at 390, our two boxes were
   378x101 against the reference's 380x111, and the board 388x? against its
   390x598. The reference's own responsive.css :316 carries the same rule at
   0,1,0, which simply LOSES to its page-class rule (0,2,0) — so the reference
   keeps the 5px and we did not. Merging the page class with the container
   prefix restores the reference's outcome: the page class sits ON the
   container, so this is 0,3,0 and wins on any order (the same fix, for the
   same tie, as `.casino-container-box.lucky7a` in casino-batch3-boards.css). */
.casino-container-box.ab2 .casino-table-left-box,
.casino-container-box.ab2 .casino-table-right-box {
  padding: 5px;
}
.ab2 .casino-table-left-box .casino-odds {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  height: 35px;
}
/* Every `.casino-odds-box` on this board spans the full width of its own
   `.ab2-box`, the way the reference's does. Without this the shared base
   `.teenpatti1day .casino-odds-box { width: 20% }` wins and each cell collapses
   to a sliver: measured on the deployed site 2026-10-15, the four suit cells
   were **19.75x46** and the ODD/EVEN cells **40x46**, where tridevexch's are
   **98.76x46** and **201.63x46** — exactly the width of their 99px / 202px
   `.ab2-box` (`.ab2-box { width: 49% }`, `.casino-table-right-box .ab2-box
   { width: 24% }`, both already ported above). Same base-rule fight the dt20
   block below pins down with its own `width: 100%`. */
/* The compound selector is load-bearing: `.teenpatti1day .casino-odds-box
   { width: 20% }` is 0,2,0 too, so a bare `.ab2 .casino-odds-box` TIES with it
   and loses wherever that base rule comes later (measured after the first
   version of this fix: the cells were still 19.75px). 0,3,0 wins on any order,
   the same way the dt20 block below does it. */
.ab2 .casino-table-left-box .casino-odds-box,
.ab2 .casino-table-right-box .casino-odds-box {
  width: 100%;
}
/* The suit marks are 35x35 on the reference, which carries this rule globally
   (`_deleted_backup/style-d247.css` :4663 `.casino-odds img { height: 35px;
   margin-right: 5px }`). We render the provider's own PNGs at their natural
   50x50, so each `.casino-odds` label measured 50px tall against the
   reference's 35 and the whole middle box 126 against the reference's 111.
   Scoped to `.ab2` like the rest of this block, since this is the only board
   that puts an image inside `.casino-odds`. */
.ab2 .casino-odds img {
  height: 35px;
  margin-right: 5px;
}
.ab2 .ab2cards {
  justify-content: center;
}
.ab2 .ab-cards-container {
  width: 250px;
  color: #fff;
}
.ab2 .ab-cards-container img {
  height: 35px !important;
  margin-bottom: 5px !important;
}
/* Base type rules tridevexch carries globally but this app carries only per
   template — scoped to .ab2 so the board does not depend on them. */
.ab2 .casino-volume {
  font-size: 12px;
  font-weight: 100;
  line-height: 1;
  margin-top: 5px;
}
.ab2 .casino-nation-book {
  font-size: 12px;
  font-weight: bold;
  min-height: 18px;
  z-index: 1;
}

/* ---------------------------------------------------------------------------
   tridev sports-casino boards (goal2): section titles are TITLE CASE there.
   tridev's own .market-title rule carries no text-transform; our casino CSS
   uppercases .market-title globally, so this marker restores the reference
   casing only for the boards whose titles really are title case.
   Measured 2026-09-22 (tmp-browser/td-goal2-sections.mjs): "Who Will Goal Next?".
   --------------------------------------------------------------------------- */
/* Specificity matters here: the rule we are overriding is
   `.game-market .market-title { text-transform: uppercase }` (0,2,0) in
   casino-markets.css / casino-markets-rules-v9.css. A single-class marker ties
   it and loses on source order, so the selector carries .game-market too. */
.game-market.td-sports-titlecase .market-title {
  text-transform: none;
}

@media (max-width: 767px) {
  .ab2 .playera-bets {
    width: 100%;
    margin-bottom: 20px;
  }
  .ab2 .playera-bets:last-child {
    margin-bottom: 0;
  }
  .ab2 .ab-cards-container img {
    height: 30px !important;
    width: 24px !important;
  }
}

/* ============================================================================
   goal2 — sports board, PORTED from d247/tridevexch's own stylesheet
   (tmp-browser/d247-assets/css/style.css:3376 & 3620-3690, and the
   max-width:767 block in responsive.css) rather than invented.

   Two things this fixes, both measured on tridev 2026-09-22:
     1. the odds wrapper is NOT one class for the whole board. tridev's
        market-6 rows (Who Will Goal Next? / Method Of Next Goal) carry
        `blb-box goal2-odds-box` = 160px (2 x 80px cells) while its
        market-comb rows carry bare `blb-box` = 80px (1 cell). Sizing comes
        from those two different selectors, so emitting `blb-box` everywhere
        left the market-6 cells with no width at all.
     2. the market-6 blocks sit two-per-row at desktop (measured 424px blocks
        in tridev's 855px container) and drop to one-per-row at <=767px.

   Everything is scoped to .goal2 so the already-verified cricket / sports
   parity is not touched; the .goal2 class is on our casino page wrapper and on
   tridev's (.casino-page-container.ball-by-ball.goal.goal2).
   ============================================================================ */
/* The blocks are flex items inside a wrapping row, exactly as d247 does it: its
   `.market-N` classes are flex items (`min-width` / `max-width` / `flex`),
   which only works inside a flex container. The container is now real markup
   (`.game-market-row`, emitted by the goal2 sports path) so no other casino
   route can inherit this layout.

   Measured on maaganga 2026-09-22 before this fix: both market-6 blocks were
   425px wide but at the same x (stacked), because the container was
   `display: block`. */
.goal2 .game-market-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* Suspended rows on this board show ONLY the padlock (the goal2 rows no longer
   emit `suspended-row` at all - see GenericCasino). Kept as insurance so a
   caption can never reappear on top of the padlock: the padlock and dark veil
   come from `.suspended-box::before/::after` on the odds wrapper, which is the
   element tridev marks `blb-box goal2-odds-box suspended-box`. */
.goal2 .suspended-row::after {
  content: '';
}

/* Specificity note: our own `.game-market` is full width and is what actually
   sized these blocks in the first attempt (measured 845px blocks, one per row),
   so a bare `.goal2 .market-6` was not enough. The compound
   `.game-market.market-6` plus an explicit flex-basis matches d247, whose own
   goal2 rule for the pair is `.goal .market-6 { min/max-width: calc(50% - 4px) }`
   (d247 style.css:3634) and whose <=767px rule puts them back on one row each
   (`.goal2 .market-6 { max-width: 100% }`, responsive.css:1773). */
.goal2 .game-market.market-6 {
  min-width: calc(50% - 4px);
  max-width: calc(50% - 4px);
  width: calc(50% - 4px);
  margin-left: 2px;
  margin-right: 2px;
  flex: 0 0 calc(50% - 4px);
}

/* market-comb (Method Of Combination Goal) owns its own full-width row. */
.goal2 .game-market.market-comb {
  min-width: calc(100% - 4px);
  max-width: calc(100% - 4px);
  width: calc(100% - 4px);
  margin-left: 2px;
  margin-right: 2px;
  flex: 1 0 calc(100% - 4px);
}

/* Phone: d247 stacks them again (responsive.css:1773 `.goal2 .market-6 {
   max-width: 100% }` inside its max-width:767px block). */
@media (max-width: 767px) {
  .goal2 .game-market.market-6 {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    flex: 1 0 100%;
  }
}

.goal2 .market-6 .market-nation-detail {
  width: calc(100% - 240px);
  position: relative;
}

.goal2 .market-6 .goal2-odds-box {
  display: flex;
  width: 160px;
}

.goal2 .market-6 .goal2-odds-box .market-odd-box {
  flex: 0 0 80px;
  width: 80px;
}

.goal2 .market-comb .market-nation-detail {
  width: calc(100% - 160px);
}

.goal2 .market-comb .blb-box {
  display: flex;
  width: 80px;
}

.goal2 .market-comb .blb-box .market-odd-box {
  flex: 0 0 80px;
  width: 80px;
}

/* the suspended veil must only cover the odds columns, not the label */
.goal2 .market-6 .suspended-row::after,
.goal2 .market-6 .suspended-table::after {
  width: 240px;
}

/* long combination labels ("Cristiano Ronaldo and Header Goal") wrap to two
   lines on the reference, not one clipped line */
.goal2 .market-nation-detail .market-nation-name {
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: calc(100% - 50px);
}

@media (max-width: 767px) {
  .goal2 .game-market.market-6 {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    margin: 0;
    flex: 1 0 100%;
  }
  .goal2 .game-market.market-comb {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    margin: 0;
    flex: 1 0 100%;
  }
  .goal2 .market-6 .market-nation-detail {
    width: calc(100% - 60%);
  }
  .goal2 .market-6 .goal2-odds-box {
    display: flex;
    width: 40%;
  }
  .goal2 .market-6 .goal2-odds-box .market-odd-box {
    flex: 0 0 50%;
    width: 50%;
  }
  .goal2 .market-comb .market-nation-detail {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    min-height: 78px;
    align-content: center;
    padding: 8px 18px 8px 8px;
    position: relative;
  }
  .goal2 .market-comb .blb-box {
    display: flex;
    flex: 0 0 74px;
    width: 74px;
  }
  .goal2 .market-comb .blb-box .market-odd-box {
    flex: 0 0 100%;
    width: 100%;
    min-height: 64px;
  }
  .goal2 .market-comb .market-header {
    display: none;
  }
  .goal2 .market-comb .fancy-market,
  .goal2 .market-comb .market-row {
    border-bottom: 0;
  }
  .goal2 .market-comb .fancy-min-max-box {
    display: none;
  }
}
