/* =========================================================================
   Casino board layout parity v10 — side-bet family redesigns.
   Every rule below was extracted from tridevexch's live stylesheet
   (versionobj.ecoassetsservice.com/v105/static/front/css/style.css) and
   scoped to the same wrapper classes tridevexch uses per game
   (casino-page-container teenpatti2 / teenpatti20 / teenpattitest /
   onecard1day / duskadum / teenpatti-joker).
   ========================================================================= */

/* ---- Teenpatti 2.0 (teen6): A/B boxes + teen2other + teen2cards ---- */
.teenpatti2 .under-over-row .uo-box .casino-nation-detail {
  width: 70%;
}
.teenpatti2 .under-over-row .uo-box .casino-odds-box {
  width: 30%;
}
.teenpatti2 .teen2other {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border: 0;
}
.teenpatti2 .teen2other .casino-odds-box {
  width: 16%;
  flex-direction: row;
  justify-content: space-between;
  padding: 5px 10px;
}
.teenpatti2 .teen2other .casino-odds-box .casino-odds {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.teenpatti2 .teen2other img {
  height: 35px;
}
.teen2cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border: 0;
  padding: 10px 10px 0 10px;
}
.card-odd-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4px;
  margin-right: 4px;
  cursor: pointer;
}
.card-odd-box .casino-odds {
  margin-bottom: 5px;
  font-size: 14px;
  color: #222;
}
.card-odd-box img {
  height: 65px;
}

/* ---- Teenpatti 20-20 (teen20): per-player market boxes + Black/Red ---- */
.teenpatti20 .casino-odds-box {
  width: 25%;
}
.teenpatti20-other-oods {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}
.teenpatti20-other-oods .casino-table-left-box,
.teenpatti20-other-oods .casino-table-right-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border: 0;
  padding-top: 10px;
  /* These boxes are the wrapper the two Black/Red suit cells are laid out in.
     Without an explicit width they are flex ITEMS of .teenpatti20-other-oods
     (which is `display: flex`), so they shrink to fit their own content —
     measured 208 of the player box's 421px. The suit cells are sized as 49% of
     their parent, so a half-width parent painted them at ~24% each and left the
     right half of the row blank, unlike tridevexch/d247 where the two cells
     fill the player box. Full width restores the intended 49% + 49%. */
  width: 100%;
}
.teenpatti20 .teenpatti20-other-oods .casino-odds-box {
  width: 49%;
  flex-direction: row;
  justify-content: space-between;
  padding: 5px 10px;
}
.teenpatti20 .teenpatti20-other-oods .casino-odds-box .casino-odds {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.teenpatti20 .teenpatti20-other-oods img {
  height: 35px;
}

/* ---- Teenpatti Test (teen9): Tiger/Lion/Dragon columns ---- */
.teenpattitest .casino-nation-detail {
  width: 40%;
}
.teenpattitest .casino-odds-box {
  width: 20%;
}

/* ---- Teenpatti Open (teen8): 8 players + Odds/Pair Plus/Total columns ----
   The reference gives teen8 its OWN page class rather than reusing
   `teenpattitest`, and the two rules are not identical — teenpattiopen also
   centres the cell text (d247 style.css:5067-5084):

     5067  .teenpattitest .casino-nation-detail { width: 40% }
     5071  .teenpattitest .casino-odds-box      { width: 20% }
     5077  .teenpattiopen .casino-nation-detail { width: 40% }
     5081  .teenpattiopen .casino-odds-box      { width: 20%; text-align: center }

   The board's cells are 40% label + 20% x 3, which is what the shared
   `.teenpatti1day .casino-odds-box` base (20%) cannot give once the table also
   carries `teenpatti1day-other-odds` (22% / 13%, specificity 0,3,0) — that
   combination is what made our teen8/teen9 cells a third too narrow and left a
   hole between them on a phone. Neither table carries the other-odds class any
   more (TableConfig.soleTable), so these are the widths that apply. */
.teenpattiopen .casino-nation-detail {
  width: 40%;
}
.teenpattiopen .casino-odds-box {
  width: 20%;
  text-align: center;
}

/* ---- 1 Card 1 Day (teen1): Player/Dealer + sevenupbox ---- */
.onecard1day .casino-odds-box {
  width: 20%;
}
.onecard1day .seven-up-down-box {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  border: 2px solid #72bbef;
}
.onecard1day .up-box {
  width: 50%;
  height: 50px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  padding-right: 40px;
  position: relative;
  justify-content: flex-end;
  cursor: pointer;
}
.onecard1day .up-box .up-down-book {
  position: absolute;
  left: 10px;
  z-index: 1;
}
.onecard1day .up-down-odds {
  font-weight: bold;
  font-size: 18px;
}
.onecard1day .down-box {
  width: 50%;
  text-align: right;
  height: 50px;
  display: flex;
  align-items: center;
  padding-right: 10px;
  padding-left: 40px;
  justify-content: flex-start;
  position: relative;
  cursor: pointer;
}
.onecard1day .down-box .up-down-book {
  position: absolute;
  right: 10px;
  z-index: 1;
}
.onecard1day .seven-box {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
}
.onecard1day .seven-box img {
  height: 70px;
}

/* ---- Dus ka Dum (dum10): main row + aaa Even/Odd + Red/Black ---- */
.duskadum .casino-odds-box {
  width: 20%;
}
.duskadum .casino-table-left-box,
.duskadum .casino-table-right-box {
  width: calc(50% - 2px);
  padding: 4px 4px 0 4px;
}
.duskadum .aaa-odd-box {
  margin-bottom: 4px;
  min-height: 92px;
}
.duskadum .casino-table-left-box .casino-odds-box,
.duskadum .casino-table-right-box .casino-odds-box {
  width: 100%;
  margin: 5px 0;
}
.casino-odds-box-theme {
  background-image: linear-gradient(
    to right,
    var(--g-bg-primary),
    var(--g-bg-secondary)
  );
  color: var(--g-text-white);
  border-radius: 0;
  box-shadow:
    0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 3px 1px -2px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}
.casino-odds-box-theme .casino-odds {
  color: #fff;
}

/* ---- Joker / Poison (joker20, poison, poison20): teenpatti-joker box ---- */
.teenpatti-joker .casino-nation-detail {
  width: 60%;
}
.teenpatti-joker .casino-odds-box {
  width: 20%;
}
.teenpatti-joker .joker-other-odds .casino-nation-detail,
.teenpatti-joker .joker-other-odds .casino-odds-box {
  width: 20%;
}
.teenpatti-joker .dtredblack .casino-table-header .casino-odds-box {
  flex-direction: row;
}
.teenpatti-joker .casino-odds-box.suspended-box::before {
  top: -12px;
}

/* ---- Poison/Joker stream overlay: the first (joker) card sits in its own
   group above the Player A/B hands, like tridevexch's joker-card box ---- */
.teenpatti-joker .joker-card .flip-card-container {
  justify-content: flex-start;
}
.joker-card .text-playerb {
  color: #ef910f;
  font-weight: bold;
}
.joker-card .flip-card-container {
  justify-content: flex-start;
}

/* ---- Card glyphs (tridevexch uses the 'Card Characters' font; the glyphs
   } { [ ] are the fallback faces — black/red coloring matches TD) ---- */
.card-icon {
  display: inline-block;
}
.card-red {
  color: #ff0000 !important;
}
.card-black {
  color: #000000 !important;
}

/* ---- The dealt-card chip a player's hand sits in (teen8, poker6).
   The reference wraps the glyphs in `.patern-name`, an INLINE chip:

     style.css:5086  .patern-name { display:inline-block; vertical-align:middle;
                       font-size:12px; background-color: var(--bg-sidebar);
                       padding:0; margin-left:5px }
     style.css:5095  .patern-name .card-icon { padding: 4px 2px }
     style.css:19    --bg-sidebar: #cccccc

   Our sheets never defined `.patern-name` at all — the only hits in this
   directory are scoped to `.hands-pattern-container`, an unrelated page — so the
   class fell back to a plain DIV. A DIV is a BLOCK, so the cards dropped onto a
   second line under "Player N" instead of sitting inline beside it. Measured
   2026-10-09 with tmp-browser/x-board-pair.mjs on teen8: our
   `.casino-nation-name` was 86x48 against the reference's 127x26, every board row
   came out 2px taller (board 422x406 at 1600, 416x400 at 390), and the chip
   background/the 4px 2px glyph padding were missing entirely.
   `--bg-sidebar` is not in our theme either, so the colour is pinned to the
   reference's own #cccccc, the same way the matka nav pills are pinned
   (casino-markets-rules-v9.css). */
.patern-name {
  display: inline-block;
  vertical-align: middle;
  font-size: 12px;
  background-color: #cccccc;
  padding: 0;
  margin-left: 5px;
}
.patern-name .card-icon {
  padding: 4px 2px;
}

/* ---- Dus ka Dum stream (tridevexch: dkd-total box + ab-cards strip) ---- */
.dkd-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #17233e;
  border: 1px solid #2b3a5c;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  color: #fff;
  gap: 12px;
}
.dkd-total .numeric {
  font-weight: bold;
}
.dkd-total .text-playerb {
  color: #ef910f;
}
.ab-cards-container {
  overflow-x: auto;
  padding-bottom: 4px;
}
.ab-cards-container .slick-track {
  display: flex;
  gap: 2px;
}
.ab-cards-container .slick-slide img {
  height: 56px;
  width: 44px;
  object-fit: contain;
}

/* ==========================================================================
   Bollywood Casino (btable / btable2) — tridevexch's `.bollywood` board
   Copied rule-for-rule from the live tridevexch stylesheet (captured
   2026-09-19). Deliberately appended to v10 rather than casino-boards.css:
   tridevexch's `.bollywood .casino-odds-box { width: calc(50% - 2px) }` ties
   on specificity with this app's `.teenpatti1day .casino-odds-box
   { width: 20% }`, and v9 loads AFTER casino-boards.css — so the block has to
   live in a stylesheet that loads after v9 to win that tie. (index.html order:
   casino-boards → v9 → v10.)

   The board is three stacked `casino-table-box` rows: the six characters
   (2-up `.casino-odd-box-container`, labelled "A.Don" … "F.Ghulam"), then
   Odd + Dulha/Barati, then Red/Black + the four rank cards. Only the character
   rows and the rank cards are counted by the parity harness — the four
   `.aaa-odd-box` deliberately are not row-selector matches.
   ========================================================================== */
.casino-odd-box-container {
  width: 100%;
}
.bollywood .casino-odd-box-container {
  width: calc(33.33% - 6px);
  margin-right: 4px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 4px;
}
.bollywood .casino-odd-box-container:nth-child(3n) {
  margin-right: 0;
}
.bollywood .casino-nation-name {
  width: 100%;
  text-align: center;
}
.bollywood .casino-odds-box {
  width: calc(50% - 2px);
}
.bollywood .casino-table-left-box,
.bollywood .casino-table-right-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 5px;
}
.bollywood .casino-table-left-box.left-odd-box {
  width: 25%;
  padding: 5px;
}
.bollywood .casino-table-left-box.left-odd-box .casino-odd-box-container {
  width: 100%;
  margin: 0%;
}
.bollywood .casino-table-right-box.right-odd-box {
  width: calc(75% - 4px);
  padding: 5px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.bollywood .casino-table-left-box .aaa-odd-box,
.bollywood .casino-table-right-box .aaa-odd-box {
  width: 49%;
}
.bollywood .casino-table-left-box .aaa-odd-box .casino-odds-box,
.bollywood .casino-table-right-box .aaa-odd-box .casino-odds-box {
  width: 100%;
}
.bollywood .casino-table-right-box.right-cards {
  justify-content: center;
}

/* ==========================================================================
   `.casino-nation-book` — read-only book row baseline.

   tridevexch carries this UNPREFIXED (style.css line ~4630), so every board
   that emits a book row reserves 18px for it:
       .casino-nation-book { font-size: 12px; font-weight: bold;
                             min-height: 18px; z-index: 1; }
   This app only copied it scoped to `.ab2` (casino-boards.css), so on every
   other board the book collapsed to 0px and the row came out short. Measured
   on the live aaa board 2026-09-20: the character row was 70px here vs TD's
   88px, and each card cell 65px vs TD's 83px — the 18px book, exactly.

   Deliberately global rather than scoped, because that is what tridevexch
   does: scoping it to `.aaa` would leave bollywood (btable/btable2) and every
   other book-bearing board with the same short rows.
   ========================================================================== */
.casino-nation-book {
  font-size: 12px;
  font-weight: bold;
  min-height: 18px;
  z-index: 1;
}

/* The book row is emitted with Bootstrap's `d-none d-md-block` idiom — hidden
   below md, shown from md up — exactly as tridevexch emits it. That idiom is
   broken in this app: diamond-theme.css re-declares `.d-none
   { display: none !important }` and loads AFTER bootstrap.min.css, so with
   equal specificity and both `!important` the later rule wins and defeats
   `.d-md-block` at every width. Measured on the live aaa board 2026-09-20: the
   book resolved to `display: none` here vs `display: block` on tridevexch.

   Scoped deliberately to `.casino-table` rather than fixing `.d-none`
   globally — re-enabling `d-md-block` application-wide would reveal elements
   on unrelated screens, which is a separate decision.
   A book carrying `d-none` WITHOUT `d-md-block` stays hidden, as Bootstrap
   intends. */
@media (min-width: 768px) {
  .casino-table .casino-nation-book.d-md-block {
    display: block !important;
  }

  /* Same broken idiom, second shape: tridevexch emits the 32-Cards right-box
     header as `casino-table-header d-none d-md-flex`, so the diamond-theme
     `.d-none` above also suppressed that header — measured live 2026-10-06 on
     card32: TD's right box header was 422x29 visible, ours 0x0, which is why
     our right box came out 95px tall against TD's 124px. (0,3,0)+!important
     outranks the (0,1,0) `.d-none`, exactly like the book rule above. */
  .casino-table .casino-table-header.d-md-flex {
    display: flex !important;
  }

  /* Third shape of the same idiom: dtl20's DESKTOP board box is emitted as
     `casino-table-box d-none d-md-flex` (tdl20 is the four-box game: one
     desktop box plus a phone tab group). With only the two rules above, the
     desktop box stayed `display: none` while the three phone boxes rendered —
     the parity harness read 54 visible rows against tridevexch's 18. */
  .casino-table .casino-table-box.d-md-flex {
    display: flex !important;
  }
}

/* The mirror image of the `.d-md-flex` problem, on the phone side.

   dtl20's phone half is the reference's tab group: `ul.d-xl-none.nav.nav-pills`
   plus `.tab-content > .fade.d-xl-none.tab-pane` (only the active pane shows).
   Bootstrap hides the inactive panes with `.tab-content > .tab-pane
   { display: none }`, but this app's diamond-theme.css re-declares
   `@media (max-width: 1199.98px) { .d-xl-none { display: block !important } }`
   (line 1583), which outranks it — so all three hands would stack on a phone
   where tridevexch shows one. Scoped to the casino board: the header's own
   `d-xl-none` usage is untouched. */
@media (max-width: 1199.98px) {
  .casino-table .tab-content > .tab-pane.d-xl-none:not(.active) {
    display: none !important;
  }
}

/* ==========================================================================
   Casino board `h4` headings — tridevexch's type scale.

   tridevexch sets a global heading scale (style.css ~line 291):
       h3 { font-size: 22px; font-weight: 700; margin-bottom: 0 }
       h4 { font-size: 20px; font-weight: 400; margin-bottom: 0 }
       h5 { font-size: 18px; font-weight: 400; margin-bottom: 0 }
   This app ships Bootstrap's defaults instead (h4 = 24px / weight 500), so
   every board heading renders 4px larger and one step bolder. Measured on the
   live aaa board 2026-09-20: the shared card-strip `<h4><b>12</b></h4>` came
   out 29px tall here vs TD's 24px, which pushed the 13-card strip 6px lower
   and made the whole board 6px taller than tridevexch's.

   Scoped to `.casino-table` (the board root) rather than applied globally:
   the same scale would reflow headings on unrelated screens, which is a
   separate decision from board parity. Existing narrower rules such as
   `.matka.worli .pana .tab-content h4` and `.teenpatti1day .doli-other-bets h4`
   outrank this and are unaffected.
   ========================================================================== */
.casino-table h4,
.casino-table .h4 {
  font-size: 20px;
  font-weight: 400;
}

/* ==========================================================================
   Amar Akbar Anthony (aaa / aaa2) — tridevexch's `.aaa` board
   Copied rule-for-rule from the live tridevexch stylesheet (`.aaa` block of
   style.css, captured 2026-09-20). Appended to v10 for the same specificity
   reason as Bollywood above: tridevexch's `.aaa .casino-table-left-box
   { width: calc(33.3% - 2px) }` ties on specificity with this app's
   `.teenpatti1day .casino-table-left-box { width: calc(50% - 2px) }` in v9, so
   it has to live in a sheet that loads after v9 (index.html order:
   casino-boards → v9 → v10).

   The board is three stacked `casino-table-box` rows:
     1. the three characters as 2-up `.casino-odd-box-container` rows —
        `A. Amar` / `B. Akbar` / `C. Anthony`, each with back/lay cells
     2. Even/Odd | Red/Black | Under 7/Over 7 as six `.aaa-odd-box`, which
        put the odds in a bare `.casino-odds` ABOVE a label-bearing themed box
        (the inverse of the usual nesting — see renderAaaBoard)
     3. `.aaacards` — a shared odds header + 13 rank cards A..K
   Only the 3 character rows and the 13 rank cards are harness rows (= 16),
   which is exactly why TD fingerprints 16 and our previous 22 flat generic
   rows could never line up.
   ========================================================================== */
.aaa .casino-odd-box-container {
  width: calc(33.33% - 7.5px);
  margin-right: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.aaa .casino-nation-name {
  width: 100%;
  text-align: center;
}
.aaa .casino-odds-box {
  width: 49%;
}
.aaa .casino-odd-box-container:last-child {
  margin-right: 0;
}
.aaa .casino-table-left-box,
.aaa .casino-table-center-box,
.aaa .casino-table-right-box {
  width: calc(33.3% - 2px);
  padding: 4px 4px 0 4px;
  border-bottom: 1px solid var(--g-table-border);
}
.aaa .aaa-odd-box {
  margin-bottom: 4px;
  min-height: 92px;
}
.aaa .casino-table-left-box .casino-odds-box,
.aaa .casino-table-center-box .casino-odds-box,
.aaa .casino-table-right-box .casino-odds-box {
  width: 100%;
  margin: 5px 0;
}
.aaacards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border: 0;
  padding: 10px 10px 0 10px;
}

/* ---- Amar Akbar Anthony — mobile (tridevexch's max-width: 767px block) ----
   The three characters become full-width rows: name left, two 20% cells. The
   three thematic boxes keep their desktop width but tighten their padding.

   The width re-assertion below is NOT decoration — without it the three boxes
   stack, which is what the user saw as "aaa2 is not the same on mobile as on
   tridev". The reference keeps them side by side at 390px (measured
   2026-10-16 with element-probe.mjs on tridevexch: `.casino-table-left-box`
   125x199, the six `.aaa-odd-box` 113x92 at x=11/139/266 — three columns of
   two). Ours had left/right at 378x199 full width and only the centre at 124,
   so the Even/Odd, Red/Black and Under/Over pairs became three stacked rows
   and the board measured 388x1007 against the reference's 390x563.

   Why: the reference's generic phone rule
   `.casino-table-left-box, .casino-table-right-box { width: 100% }`
   (responsive.css:316) is ONE class and LOSES to its own
   `.aaa .casino-table-left-box { width: calc(33.3% - 2px) }` (two classes).
   Our port of that same generic rule carries the `.casino-container-box` scope
   prefix, which makes it TWO classes — a tie that our ported sheet then wins on
   load order (index.html loads casino-responsive-parity.css last). The prefix
   was added for scoping, not for specificity, so it silently inverted this
   one cascade. Re-asserting the width with the scope prefix gives it the same
   outcome the reference's cascade produces.

   aaa and aaa2 share this board (board-configs: both -> custom 'aaa'), and the
   reference does too — its /casino/aaa2 carries `casino-page-container aaa`,
   the same class as /casino/aaa. So the two games are identical at every width
   on both sides; a defect here is a defect for both. */
@media (max-width: 767px) {
  .aaa .casino-odd-box-container {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid var(--g-table-border);
  }
  .aaa .casino-nation-name {
    width: 60%;
    text-align: left;
    padding-left: 5px;
  }
  .aaa .casino-odds-box {
    width: 20%;
  }
  .casino-container-box .aaa .casino-table-left-box,
  .casino-container-box .aaa .casino-table-center-box,
  .casino-container-box .aaa .casino-table-right-box {
    width: calc(33.3% - 2px);
    padding: 5px 5px 0 5px;
  }
  /* Same inversion, ONE LEVEL DEEPER — and this is the one that was still
     visible on a phone after the box width was fixed.

     The reference's ≤767 block sets `.aaa .casino-odds-box { width: 20% }` for
     the character rows' back/lay pair, and its base sheet sets
     `.aaa .casino-table-left-box .casino-odds-box { width: 100% }` for the
     themed cell inside the six `.aaa-odd-box`. Two vs three classes, so the
     100% rule wins on the reference and the themed cell fills its column
     (measured there: `.aaa-odd-box .casino-odds-box` = the full 113px column,
     label centred at x=54 of 113) while the character-row pair stays 20%.

     Our port prefixes the phone rule (`.casino-container-box .aaa
     .casino-odds-box`, three classes), which TIES with the 100% rule — and the
     parity sheet loads last, so 20% won. Measured 2026-10-16 on the deployed
     page at 390px: our themed cell was **22x46 at the column's left edge** with
     the label wrapping ("Under" / "7"), against the reference's full-width
     cell. Re-asserting the width here (four classes) restores the reference's
     outcome; the character rows keep their 20% because this selector is scoped
     to the three thematic boxes. */
  .casino-container-box .aaa .casino-table-left-box .casino-odds-box,
  .casino-container-box .aaa .casino-table-center-box .casino-odds-box,
  .casino-container-box .aaa .casino-table-right-box .casino-odds-box {
    width: 100%;
  }
}

/* ---- Amar Akbar Anthony — the `.card-odd-box img` height BANDS.
   The reference sizes the rank cards per breakpoint (responsive.css: the
   ≤767 band at 45px, 768-1199 at 55px, 1200-1399 at 45px, 1400-1599 at 50px,
   base 65px) and our port of that sheet dropped every one of them — the same
   gap the AB family hit above (see its four bands). Only the 65px base
   survived, so the 13 rank cards rendered 46x83 at every width: measured
   2026-10-16 at 390 ours `.card-odd-box` 46x83 (7 per row) against the
   reference's 32x63 (8 per row), and at 768 ours 46x83 against 39x73. Scoped
   `.casino-container-box .aaa`, i.e. this board only, mirroring the AB block. */
@media only screen and (max-width: 767px) {
  .casino-container-box .aaa .card-odd-box img {
    height: 45px;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1199px) {
  .casino-container-box .aaa .card-odd-box img {
    height: 55px;
  }
}
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .casino-container-box .aaa .card-odd-box img {
    height: 45px;
  }
}
@media only screen and (min-width: 1400px) and (max-width: 1599px) {
  .casino-container-box .aaa .card-odd-box img {
    height: 50px;
  }
}

/* ---- Baccarat 29 (teensin) ------------------------------------------------
   The board used to borrow the teenpatti20 template, which is what sized its
   cells 25% — correct by luck, but it also dragged in the 20-20 board's rules
   and, worse, left the Lucky 9 full box unstyled (and unrendered). tridevexch's
   /casino/teensin carries `casino-page-container baccarat29` (measured
   2026-10-11), so the page class below is the reference's own and these six
   rules are transcribed from its stylesheet — including the odd-box container
   that splits the Lucky 9 market into back/lay cells under lucky9.png. */
.baccarat29 .casino-odds-box {
  width: 25%;
}
.baccarat29 .casino-table-full-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 10px;
  /* the reference stylesheet's --table-border is not defined in ours */
  border-bottom: 1px solid var(--table-border, #ddd);
}
.baccarat29 .casino-table-full-box img {
  height: 100px;
  z-index: 10;
}
.baccarat29 .casino-odd-box-container {
  width: 25%;
  display: flex;
  flex-wrap: wrap;
  margin-left: -5px;
  margin-top: 20px;
}
.baccarat29 .casino-odd-box-container .casino-odds-box {
  width: 50%;
}
.baccarat29 .casino-odds-box.suspended-box::before {
  top: -12px;
}

/* ---- Teenpatti Muflis (teenmuf) -------------------------------------------
   Three markets per player box, so the reference's own page class sizes the
   cells 33.33% (`teenpattimuflis`, measured on tridevexch 2026-10-11: 140px of
   a 422px row). Our board borrowed `teenpatti20` and rendered 105px cells. */
.teenpattimuflis .casino-odds-box {
  width: 33.33%;
}
.teenpattimuflis .casino-odds-box.suspended-box::before {
  top: -12px;
}

/* ---- Teenpatti 2 Cards (patti2) -------------------------------------------
   The reference keys patti2's row widths on `.mini-baccarat` (the Mini Baccarat
   row's single cell is 40% wide = 169px of a 422px row) and paints the Color
   Plus market in a full-width `.color-plus` box whose one back cell keeps 100%
   — that last rule is GLOBAL in the reference stylesheet, not scoped to a page
   class, and is transcribed unmodified. Page class `teenpatti2cards`, measured
   on tridevexch 2026-10-11. */
.teenpatti2cards .casino-nation-detail {
  width: 60%;
}
.teenpatti2cards .casino-odds-box {
  width: 20%;
}
.teenpatti2cards .mini-baccarat .casino-odds-box {
  width: 40%;
}
.color-plus .casino-odds-box {
  width: 100%;
}
.teenpatti2cards .color-plus .casino-odds-box.suspended-box::before {
  top: -12px;
}

/* ---- Unlimited Joker (joker1 / joker120) ----------------------------------
   Both 1-day joker games are the reference's `teenpatti-joker1` page. Its
   stylesheet (d247 style.css, transcribed below) is the whole contract, and it
   was missing from our sheet, which is why our page carried no joker picker and
   no joker card in the stream box. Measured live 2026-10-12: `.joker1-box`
   851x76 (margin-bottom 8) above two 424x48 player rows, and in the video box a
   `.joker-card` 60x108 at the TOP-LEFT (x=285 y=152, i.e. the video's own
   origin) with the hands strip pushed down to `top: 140px`. The nation detail
   and 20% cell widths this page needs are already in the shared `.teenpatti1day`
   block in casino-markets-rules-v9.css (both are identical there). */
.teenpatti-joker1 .casino-nation-detail {
  width: 60%;
}
.teenpatti-joker1 .casino-odds-box {
  width: 20%;
}
.joker1-box {
  width: 100%;
  margin-bottom: 8px;
}
.joker1-other-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  background-color: var(--bg-secondary70, rgba(255, 255, 255, 0.07));
  color: var(--text-secondary);
  width: 100%;
  overflow: hidden;
}
.joker1-other-cards h4 {
  color: var(--text-primary, #fff);
  background: var(--bg-primary90, rgba(15, 36, 98, 0.9));
  padding: 8px;
  border-radius: 4px;
  font-size: 18px;
  margin-bottom: 0;
}
.joker1-other-cards div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.joker1-other-cards img {
  height: 60px;
  /* The reference's picker is clickable (its bundle toggles `.select` on the
     clicked rank) but never says so visually; a pointer cursor is what makes
     "Select your Joker" an affordance instead of decoration. */
  cursor: pointer;
}
.joker1-other-cards img.select {
  transform: scale(1.2);
}
.joker1-video-card {
  flex-wrap: wrap;
  flex-direction: column;
  position: absolute;
  display: flex;
  top: 0;
  left: 0;
  padding: 5px;
}
.joker1-video-card h4 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 4px;
}
.joker1-video-card span img {
  width: 50px;
}
/* `.Tp1Day` prefix, not a bare class: casino-markets-rules-v9.css pins every
   Tp1Day board's strip with `.Tp1Day .casino-video-cards { position: absolute;
   top: 0 }` (0,2,0), and a bare `.joker1-hands-strip` loses that fight — measured
   on the live DOM, computed top stayed 0px until the prefix was added. */
.Tp1Day .joker1-hands-strip {
  top: 140px;
}
/* The reference scopes the two rules above to `.teenpatti-joker1`, but its own
   page class sits on the PAGE container while ours sits on the board root, and
   the video box is a sibling of the board — so a `.teenpatti-joker1` descendant
   selector can never match our stream. Hence the dedicated classes added by the
   overlay for joker1/joker120 (`joker1-video-card`, `joker1-hands-strip`). */
@media only screen and (max-width: 767px) {
  .joker1-video-card span img {
    width: 22px;
  }
  .Tp1Day .joker1-hands-strip {
    top: 70px;
  }
}

/* ---- Poker family pages (poker / poker20 / poker6) -------------------------
   Ported verbatim from the reference's own sheet (d247 style.css, the blocks
   commented `/*Poker 1day*`, `/*Poker 2020*`, `/*Poker 6 Player*`). It was
   missing from our sheets entirely, which is what the user saw as "poker,
   poker20 and poker6 also look different": on our deployed /casino/poker the
   `poker1day-other-odds` bonus block measured **12x186** with four **1x46**
   cells stacked at one x, where the reference renders **855x56** with two
   **208x46** (49%) cells side by side, and the whole 900ms board looked
   unstyled because none of these selectors could match.

   The page class (`poker1day` / `poker20` / `poker6player`) is applied to
   `.casino-container-box` by casino-page-classes.ts, and the board is a
   descendant of that element, so these descendant selectors reach the board.
   The reference's own scoping (`.poker1day .poker1day-other-odds .casino-odds-box`
   = 0,3,0) beats the plain `.poker1day .casino-odds-box { width: 20% }` above
   it, exactly as it does there. */
.poker1day .casino-nation-detail {
  width: 60%;
}
.poker1day .casino-odds-box {
  width: 20%;
}
.poker1day-other-odds {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.poker1day-other-odds .casino-table-left-box,
.poker1day-other-odds .casino-table-right-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border: 0;
  padding-top: 10px;
}
.poker1day .poker1day-other-odds .casino-odds-box {
  width: 49%;
}
.poker1day .poker1day-other-odds .casino-odds-box.suspended-box::before {
  top: -12px;
}

.poker20-other-odds {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.poker20-other-odds .casino-table-left-box,
.poker20-other-odds .casino-table-right-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border: 0;
  padding-top: 10px;
}
.poker20 .poker20-other-odds .casino-odds-box-container {
  width: 32%;
  margin-bottom: 10px;
}
.poker20 .poker20-other-odds .casino-odds-box {
  width: 100%;
}
.poker20 .poker20-other-odds .casino-odds-box.suspended-box::before {
  top: -12px;
}

.poker6player .nav,
.poker6player .tab-content {
  width: 100%;
}
.poker6player .hands .col-md-6,
.poker6player .pattern .col-md-4,
.poker6player .pattern .col-6 {
  margin-bottom: 10px;
}
/* The cell has to FILL its bootstrap column here, and the shared
   `.teenpatti1day .casino-odds-box { width: 20% }` base (v9) would otherwise
   win: every board root in this app carries `teenpatti1day`, so poker6's
   boxes measured **85x116 inside a 433px col-md-6** against the reference's
   **423x46**, i.e. the six player cells collapsed into narrow stacked blocks
   and the board grew to 855x422 where the reference renders 855x208. The
   reference has no width rule for these boxes at all (its 423 = the column's
   423px content box), so 100% is the equivalent of "auto" with the fight
   against our shared base lost on purpose. Scoped to the tab panes (0,3,0) so
   it beats that base rule wherever the sheets are concatenated. */
.poker6player .hands .casino-odds-box,
.poker6player .pattern .casino-odds-box {
  width: 100%;
}
/* The tab bar is 32px on the reference (nav-link 74x32 = 8px padding + a 16px
   line box at font-size 16), so the tab's own line-height has to be pinned:
   ours measured 36 (855x36 nav, board 855x212 against the reference 855x208).
   `.nav-pills` is in the selector because this sheet loads BEFORE style.css and
   admin-style.css, which both carry `.nav-pills .nav-link` at the same 0,2,0
   weight — without the extra class the later sheet wins and the tab stays 36. */
.poker6player .nav-pills .nav-link {
  line-height: 1;
  /* Our tabs are <button>s and carry a 2px black border (top, bottom and the
     active tab's left edge) that the reference's tabs do not have, which is the
     remaining 4px of the 36px bar (16 line + 16 padding + 4 border). */
  border-width: 0;
}
.poker6player .casino-odds-box {
  flex-direction: row;
  justify-content: space-between;
  padding: 5px 10px;
}
.poker6player .casino-odds-box .casino-nation-book {
  position: relative;
}
.poker6player .casino-odds-box .casino-odds {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* The live-card strip for the poker pages.
   The reference's strip rules are UNSCOPED in its own sheet (`style.css:
   .casino-video-cards { position:absolute; top:0; left:0; background:
   rgba(0,0,0,.4); height:auto; padding:5px }`, `.flip-card { height:50px;
   width:40px; margin-right:5px }`, `.casino-video-cards img { height:100%;
   width:100% }`), so every page gets them — including poker. Our port kept them
   only under `.Tp1Day` (v9, plus the phone values), and a poker page's UI code is
   `onedaypoker` / `onedaypoker20` / `poker6player`, never `Tp1Day`: measured on
   our deployed /casino/poker the strip was **853x1032** with cards at their
   natural size against the reference's **230x157**.  Same values as the Tp1Day
   block so the poker strip matches every other ported board. */
.poker1day .casino-video-cards,
.poker20 .casino-video-cards,
.poker6player .casino-video-cards {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.4);
  height: auto;
  padding: 5px;
  z-index: 2;
  /* NO fixed width. The strip is an absolutely positioned box with `left: 0`
     and only `top`/`left` set, so the reference leaves `width: auto` and the
     browser shrink-to-fits it to the widest row — the Board row, five cards
     plus four 5px gaps. That is what makes the strip 230px wide on desktop
     (5x40 + 4x5 = 220 of content) but only 110px on a phone (5x16 + 4x5 =
     100), which is where the reference's own strip sits.

     We had `width: 230px` here, ported from a desktop measurement. On a phone
     that made the strip bigger than its content, and because the Player A /
     Player B row is `justify-content: space-between` inside it, the two hand
     groups were flung to opposite edges of the 220px row (Player A at x 7,
     Player B at x 179 on a 390px viewport) with the Board row centred
     underneath (x 62..176) — the "cards showing any where and everywhere"
     report. The reference at the same width is a compact 110x78 block: Player
     A at x 5, Player B at x 57, Board at x 5, all left-aligned.
     Measured 2026-10-14 with tmp-browser/stream-overlay-probe.mjs (ours vs
     tridevexch, 390px, mobile UA): 230x82 vs 110x78.

     Trade-off to keep in mind: shrink-to-fit means the strip's width now
     follows the card size. A `max-width`/`width` cap narrower than one Board
     row (220px of content) would wrap the five cards onto two rows — which is
     why the values below are the reference's own and not rounded down. */
  width: auto;
}
.poker1day .casino-video-cards h5,
.poker20 .casino-video-cards h5,
.poker6player .casino-video-cards h5 {
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
  /* 18px/1.2 with no margin: the reference's strip label measures 85x22 on
     poker (measured 2026-10-12 with tmp-browser/td-pk-stream.mjs), which is
     what puts the Player A / Player B / Board rows at 72px each. */
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
}
.poker1day .casino-video-cards .flip-card-container,
.poker20 .casino-video-cards .flip-card-container,
.poker6player .casino-video-cards .flip-card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.poker1day .casino-video-cards .flip-card,
.poker20 .casino-video-cards .flip-card,
.poker6player .casino-video-cards .flip-card {
  background-color: transparent;
  perspective: 1000px;
  height: 50px;
  width: 40px;
  /* 5px, the reference's own card margin (0 5px 0 0): four gaps + five 40px
     cards = the 220px row the strip is sized on. A 3px gap row measured 212px
     into a 210px box, which is why the cards wrapped. */
  margin-right: 5px;
}
.poker1day .casino-video-cards .flip-card:last-child,
.poker20 .casino-video-cards .flip-card:last-child,
.poker6player .casino-video-cards .flip-card:last-child {
  margin-right: 0;
}
.poker1day .casino-video-cards .flip-card-inner,
.poker20 .casino-video-cards .flip-card-inner,
.poker6player .casino-video-cards .flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
}
.poker1day .casino-video-cards .flip-card-front,
.poker1day .casino-video-cards .flip-card-back,
.poker20 .casino-video-cards .flip-card-front,
.poker20 .casino-video-cards .flip-card-back,
.poker6player .casino-video-cards .flip-card-front,
.poker6player .casino-video-cards .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
  border-radius: 3px;
}
.poker1day .casino-video-cards .flip-card-back,
.poker20 .casino-video-cards .flip-card-back,
.poker6player .casino-video-cards .flip-card-back {
  transform: rotateY(180deg);
}
.poker1day .casino-video-cards img,
.poker20 .casino-video-cards img,
.poker6player .casino-video-cards img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
@media (max-width: 767px) {
  /* 16x20, the reference's own phone size. `.flip-card` is UNSCOPED in its
     sheet: base 40x50 with `margin-right: 5px`, plus
     `@media only screen and (max-width: 767px) { .flip-card { height: 20px;
     width: 16px } }` — confirmed on the live page 2026-10-14 with
     tmp-browser/td-css-why.mjs, which prints the matched rules and their media
     conditions for /casino/poker at 390 and 1600. We had 18x22 (ported from the
     Tp1Day block), which inflated the Board row to 110px and therefore the
     whole strip to 120px against the reference's 110px. */
  .poker1day .casino-video-cards .flip-card,
  .poker20 .casino-video-cards .flip-card,
  .poker6player .casino-video-cards .flip-card {
    height: 20px;
    width: 16px;
  }
  .poker1day .casino-video-cards h5,
  .poker20 .casino-video-cards h5,
  .poker6player .casino-video-cards h5 {
    font-size: 10px;
  }
}

/* ---- Sidebar paytable box (poker 1-day, teenmuf, teensin, patti2) ---------
   The reference's OWN widget, ported node-for-node from tridevexch /casino/poker
   and captured whole on 2026-10-13 by tmp-browser/td-poker-rules-box.mjs:

     <div class="sidebar-box my-bet-container">
       <div class="sidebar-title"><h4>Rules</h4></div>
       <div><div class="table-responsive"><table class="table table-bordered">…</table></div>…</div>
     </div>

   The values below are that box's **computed styles** at 1600x1200, not
   approximations. Side by side (tridev vs ours before this block):

     box             450 x 448          430 x 534
     title row       450 x 30, #0470a5   428 x 36, #0f2462 (inline), centered
     table           450 x 209          410 x 239
     th/td font      14px               16px
     th/td padding   2px 4px 2px 10px   4.8px 12px
     th/td line-h    21px (row 26px)    normal (row 30px)
     card chrome     none               white bg + 1px #999 + drop shadow

   The ~86px of extra height is what the user reported as "looks so big on
   maaganga but on tridev its look compact and smaller kinda box". Every rule is
   scoped to `.cc-rules-paytable`, the class this component alone carries, so
   the other `.cc-rules` cards (provider rule images) are untouched. */
.cc-rules-paytable {
  margin: 0 0 5px;
  font-size: 16px;
  color: #000;
}
/* The global `.sidebar-title` (style.css) paints the theme background, 4px 6px
   padding and a pointer cursor, and is a collapsible header elsewhere in the
   app; the reference's is a flat 30px bar with 3px of vertical padding. */
.cc-rules-paytable .sidebar-title {
  height: 30px;
  box-sizing: border-box;
  background-color: #0470a5;
  padding: 0 5px 0 0;
  margin: 0;
  cursor: default;
}
.cc-rules-paytable .sidebar-title h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin: 0;
  text-align: left;
}
.cc-rules-paytable .table {
  margin-bottom: 0;
  font-size: 16px;
}
/* Rows are 26px: 21px line-height + 2+2 padding + 1px border, as measured.
   The border colour is Bootstrap's own #dee2e6, not this app's global
   `.table-bordered` override (#f5f5f5, style.css:8051) — the reference's grid
   lines are the slightly darker ones, and a re-measure on 2026-10-13 read ours
   as rgb(245,245,245) against tridev's rgb(222,226,230). */
.cc-rules-paytable .table > :not(caption) > * > * {
  padding: 2px 4px 2px 10px;
  font-size: 14px;
  line-height: 21px;
  border-color: #dee2e6;
}
.cc-rules-paytable .table th {
  font-weight: 700;
  text-align: center;
}
/* The two table headers measured 26.5px against the reference's 26: this app's
   global `.table-bordered thead th` sets `border-bottom-width: 2px`
   (style.css), which the reference does not. Scoped back to 1px, which is what
   takes the box from 450 to the reference's 448. */
.cc-rules-paytable .table thead th {
  border-bottom-width: 1px;
}

/* ---- Unique Roulette's "Rates" box ----------------------------------------
   The roulette family's Statistics box (RouletteStatistics.tsx) is what the
   reference mounts above My Bet — except on Unique Roulette, where the same
   slot holds a Rates table instead: `.sidebar-box my-bet-container
   roulette-rules` under My Bet, with a 30px `#0470a5` title strip and one
   `table.table-bordered` of four cells (Single / Split / Street / Corner).

   Captured whole from tridevexch /casino/ourroullete on 2026-10-27 with
   tmp-browser/td-ourroullete-rates-box.mjs. Computed values, desktop copy
   (the page mounts a `d-xl-none` twin too; both read the same):

     box          450 x 92   at y 179, My Bet ends at 174 (5px gap)
     title strip  450 x 30   #0470a5, h4 14px/700 white, lh 16.8
     table        450 x 62   bg rgb(247,247,247), no table border
     thead th     449 x 23   12px/700, lh 18px, padding 2px 4px 2px 10px
     tbody tr     449 x 38   bg rgb(242,242,242)
     tbody td     449 x 38   22px/400, lh 33px, value in a bold <b>
     cell borders left/right 1px solid rgb(199,200,202), none top/bottom
     ROW borders  1px top+bottom solid rgb(199,200,202) on the `tr` itself
                  (td-ourroullete-rates-borders.mjs) — that is the pixel each of
                  our rows was short: 22/37 against the reference's 23/38, and
                  the table's own extra 1px line above the header row

   Scoped to `.cc-roulette-rates`, the class this component alone carries, so
   the family's Statistics box (which shares `roulette-rules`) keeps its own
   `roulette11-table` metrics. */
.cc-roulette-rates {
  margin: 0 0 5px;
  font-size: 16px;
  color: #000;
}
/* The global `.sidebar-title` (style.css) paints the theme background, 4px 6px
   padding and a pointer cursor; the reference's is a flat 30px bar. */
.cc-roulette-rates .sidebar-title {
  height: 30px;
  box-sizing: border-box;
  background-color: #0470a5;
  padding: 0 5px 0 0;
  margin: 0;
  cursor: default;
}
.cc-roulette-rates .sidebar-title h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 16.8px;
  margin: 0;
  text-align: left;
}
.cc-roulette-rates .table {
  margin-bottom: 0;
  width: 100%;
  background-color: #f7f7f7;
  font-size: 16px;
}
.cc-roulette-rates .table > :not(caption) > * > * {
  padding: 2px 4px 2px 10px;
  text-align: center;
  color: #333;
  background-color: transparent;
  border-color: #c7c8ca;
  border-top: 0;
  border-bottom: 0;
  border-left-width: 1px;
  border-right-width: 1px;
}
.cc-roulette-rates .table thead th {
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  /* this app's global `.table-bordered thead th` draws a 2px bottom border,
     which would add a pixel to the measured 23px header row */
  border-bottom-width: 1px;
}
.cc-roulette-rates .table thead tr,
.cc-roulette-rates .table tbody tr {
  border-top: 1px solid #c7c8ca;
  border-bottom: 1px solid #c7c8ca;
}
.cc-roulette-rates .table tbody tr {
  background-color: #f2f2f2;
}
.cc-roulette-rates .table tbody td {
  font-size: 22px;
  font-weight: 400;
  line-height: 33px;
}
.cc-roulette-rates .table tbody td b {
  font-weight: 700;
}

/* The phone twin must FLOW, not overlay the board.

   casino-responsive-parity.css ports the reference's own portrait rule
   `.casino-container-box .roulette-rules { position: absolute; right: 0 }`
   (responsive.css, inside `@media (orientation: portrait)`). On the family's
   framed pages that rule only ever reaches a Statistics box the reference hides
   at phone width, so it was harmless. On THIS page it reaches the
   `d-xl-none` Rates twin, which we mount in the Game tab after the board, and
   an absolute box anchors to the page container instead:

     measured live 2026-10-29 at 390x844, ours
       .cc-roulette-rates.mt-2.d-xl-none   [205,190,185,62]  position: absolute
       .casino-table                       [  1,211,388,560]
       overlap 7559px² — the table sat ON TOP OF the board's first rows

   The reference's mobile twin is absolute too ([233,166,157,24] on the same
   page), i.e. its own overlay, which is the behaviour being fixed here: on a
   phone the rates belong in the page flow, under the last-results strip.

   Specificity (0,3,0) beats the parity rule's (0,2,0), and scoping to `.roulette`
   keeps it off every other page in the box. */
@media (orientation: portrait) {
  .casino-container-box.roulette .cc-roulette-rates {
    position: static;
    right: auto;
  }
}

/* ==========================================================================
   Dragon Tiger family (dt6 / dt20 / dt202 / dtl20) — the reference's own
   per-game rules.

   Read out of tridevexch's stylesheets with the new
   `tmp-browser/td-css-rules.mjs --slug=dt20 --pat='\.dt'` probe (it re-fetches
   the CDN sheets through the page, because `cssRules` is blocked
   cross-origin), and every value confirmed against the reference's computed
   styles on 2026-10-14 at 1600x1400 on /casino/dt6, /casino/dt20 and
   /casino/dtl20. Nothing here is estimated.

   Why they were missing: the reference keys these rules on the PAGE class —
   `dt1day` (dt6), `dt20` (dt20 and dt202), `dtl20` — and only the phone halves
   had been ported (casino-responsive-parity.css, @media max-width 767px). On
   desktop every one of them was absent, and because every board root in this
   app carries the shared `.teenpatti1day` base from v9 the boards still passed
   board-diff-harness (which compares only row count / labels / stream / board
   width) while being visibly wrong:

     dt20   box1 855x257 block — the four top tiles stacked — vs 855x78 flex;
            box2 855x289 vs 114; box3 855x930 vs 190 (13 cards in one column)
     dtl20  desktop rows wrapped, board 855x1111 vs 855x453
            (shared label 60% + 3 x 20% cells = 120%)
     dt6    suits box 244 vs 124 (shared label 60% + 4 x 20% = 140%) and the
            Red/Black header cells stacking instead of sitting on one line

   Every selector is rooted COMPOUND at the page container
   (`.casino-container-box.dt20 …`), not as a descendant of a bare `.dt20`.
   Two reasons, and the first one bit immediately:

     * this app puts a game class on the board's `card-body` too, and for dt6
       that class is the resolved UI code **dt20** — so a bare `.dt20 …` rule
       also matched the dt6 page, where it made `.casino-table-left-box` a flex
       container and collapsed the whole board to 95px-wide rows;
     * the page class is set ON the container (`row mtc-5 row5
       casino-container-box ${casinoPageClass}`, CasinoWrapper.tsx:2105), so
       `.casino-container-box .dt20` (descendant) never matched anything — the
       same descendant-vs-compound fault that hid the race family and the
       baccarat chips.

   Specificity is (0,3,0) — one class above the v9 base they override — and
   this sheet also loads after it (index.html is casino-boards → v9 → v10 →
   batch3 → style.css), so they win either way.
   ========================================================================== */

/* --- 1 Day Dragon Tiger (dt6). The reference's page class is `dt1day`; the dt6
   slug resolved to `dt20` through UI_FAMILY_ALIASES (the provider code the two
   games share), which is why the family's desktop rules could not match. The
   page identity now comes from casino-page-classes.ts, like doli-dana/goal2. */
.casino-container-box.dt1day .casino-nation-detail {
  /* the shared v9 base already says 60% — restated because the reference does,
     so the family block reads as a whole and a future v9 edit cannot silently
     change dt6 alone. */
  width: 60%;
}
.casino-container-box.dt1day .casino-odds-box {
  width: 20%;
}
/* Pair is its own centred column box: the reference fixes its display, padding,
   row background and bottom border, none of which the shared
   `.teenpatti1day .casino-table-right-box` (width + 3 borders) gives it.
   `--bg-table-row` / `--table-border` do not exist in our theme, so the
   reference's own values are pinned as literals — #f2f2f2 / #c7c8ca, the same
   pair this app already carries as `--g-bg-table-row` / `--g-table-border`
   (casino-markets-rules-v9.css :20/:10). */
.casino-container-box.dt1day .dtpair {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background: #f2f2f2;
  border-bottom: 1px solid #c7c8ca;
}
.casino-container-box.dt1day .dtpair .casino-odds-box {
  width: 100%;
  margin: 5px 0;
  padding: 10px;
}
/* Red/Black header cells carry "Red {[" / "Black }]" as three inline parts and
   the reference lays them out in a ROW; the shared cell is a column flex box,
   so without this they stack and the box grows 48px. */
.casino-container-box.dt1day .dtredblack .casino-table-header .casino-odds-box {
  flex-direction: row;
}
/* Suits box: label + 4 suit cells = 100%. The shared 60% label made it 140%,
   so the row wrapped and the box measured 244px against the reference's 124. */
.casino-container-box.dt1day .dt1day-other-odds .casino-nation-detail,
.casino-container-box.dt1day .dt1day-other-odds .casino-odds-box {
  width: 20%;
}

/* --- 20-20 Dragon Tiger (dt20 / dt202). Both slugs carry the reference's page
   class `dt20` and render the same board (measured: 38 harness rows, same
   templates). */
.casino-container-box.dt20 .casino-table-full-box,
.casino-container-box.dt20 .casino-table-left-box,
.casino-container-box.dt20 .casino-table-right-box {
  /* flex + 4px padding is what puts the four top tiles on one line (Dragon 243
     / Tie 95 / Tiger 243 / Pair 243 inside 847px of content) and turns each
     side's Even/Odd/Red/Black into a 2x2 instead of a single 4-deep column. */
  display: flex;
  flex-wrap: wrap;
  padding: 4px;
  border: 0;
}
/* The 4px gap is what makes the side boxes 114px tall instead of 110: the
   DRAGON/TIGER `<h4>` (24px + its own 8px margin-bottom) sits on the first flex
   line and the four tiles on the second, 8 + 4 = 12px apart. Measured live:
   h4 y=612 h=24, tiles y=648, box 608..722. It also makes the four 101px tiles
   fill the 416px content box exactly (4 x 101 + 3 x 4). */
.casino-container-box.dt20 .casino-table-left-box,
.casino-container-box.dt20 .casino-table-right-box {
  gap: 4px;
}
.casino-container-box.dt20 .dt20-odd-box {
  margin-right: 8px;
}
/* The odds CELL under each dt20 tile is a plain block in the reference: no rule
   sets its width, so it fills the tile (measured 100.875px inside a 101px
   tile). Our shared `.teenpatti1day .casino-odds-box { width: 20% }` base
   shrinks it to 20px — a slim cell inside a wide tile — so pin it back to the
   tile's full width. */
.casino-container-box.dt20 .dt20-odd-box > .casino-odds-box {
  width: 100%;
}
.casino-container-box.dt20 .dt20dragon,
.casino-container-box.dt20 .dt20tiger,
.casino-container-box.dt20 .dt20pair {
  /* 29% of the padded content box (847px) - 3px = 242.63, the reference's
     measured 242.625. */
  width: calc(29% - 3px);
}
.casino-container-box.dt20 .dt20tie {
  /* 13% - 15px = 95.11, the reference's measured 95.109. */
  width: calc(13% - 15px);
}
.casino-container-box.dt20 .dt20pair {
  margin-right: 0;
  border-left: 5px solid #0470a5; /* reference: var(--bg-secondary) */
  padding-left: 8px;
}
.casino-container-box.dt20 .casino-odds-box {
  margin: 2px 0;
  padding: 6px;
}
.casino-container-box.dt20 .casino-odds {
  /* the odds number above each tile: 20px tall (its font is the shared 18px) */
  height: 20px;
}
/* Even/Odd/Red/Black tiles: 4 per side, 25% of the 4px-padded side box
   (25% of 415.5 - 3px = 100.875, the reference's measured 100.875). */
.casino-container-box.dt20 .dt20odds {
  width: calc(25% - 3px);
  margin-right: 0;
  margin-bottom: 0;
}
/* The 13-card A..K grid: flex/wrap/centre carries them onto two rows per side
   as 46x65 cells. The reference declares `border: 0` first and
   `border: 1px solid var(--bg-sidebar)` after it in the same block — the last
   one wins, and --bg-sidebar is #cccccc (our theme defines no such variable,
   so the literal is pinned). */
.casino-container-box.dt20 .dt20cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border: 0;
  padding: 10px 10px 0 10px;
  border: 1px solid #cccccc;
}
.casino-container-box.dt20 .casino-odds-box.suspended-box.lock-top::before {
  background-position: top 3px center;
}

/* --- 20-20 D T L (dtl20). Three hands (Dragon/Tiger/Lion), so the desktop rows
   carry THREE cells: label 40% + 3 x 20% = 100%. The shared 60% label made the
   row 120% wide, so the last cell wrapped and the board measured 855x1111
   against the reference's 855x453 — a delta the row-count harness cannot see.
   The phone halves (label 60% / cell 40%, side boxes 49%) were already ported
   into casino-responsive-parity.css under @media max-width 767px, which is
   exactly where the reference keeps them. */
.casino-container-box.dtl20 .casino-nation-detail {
  width: 40%;
}
.casino-container-box.dtl20 .casino-odds-box {
  width: 20%;
}
.casino-container-box.dtl20 .casino-nation-name img {
  /* the 13 card-image rows' label: the reference pins the rank artwork to 35px,
     otherwise the full-size card PNG is what sizes the row. */
  height: 35px;
}
.casino-container-box.dtl20 .casino-table .tab-content {
  width: 100%;
}

/* --- dtl20's phone TAB GROUP (Dragon / Tiger / Lion).
   User report 2026-10-14: "three tabs dragon tiger and lion on maaganga color is
   different as compared to tridev also these tabs are not aligned as its on
   tridev". Measured on /casino/dtl20 at 390 with tmp-browser/element-probe.mjs
   (ours vs tridevexch):

     ul.nav-pills      77x96   display:block   tabs STACKED vertically
     tridevexch       202x32   display:flex    one 32px row, tabs side by side
     link width         77 (equal, because the bar was a block)  vs 78 / 65 / 59
                        (content-sized — Dragon is wider than Lion)
     link font-weight   500                          vs 400
     active tab         #007bff (bootstrap's default) vs #0470a5 + #fff text
     idle tab           #0088cc bg + #007bff text    vs #ccc bg + #000 text

   Two causes, both ours. (1) The theme's blanket
   `@media (max-width: 1199.98px) { .d-xl-none { display: block !important } }`
   (diamond-theme.css:1583) outranks bootstrap's `.nav { display: flex }`, and
   our phone tab bar carries `d-xl-none` — so the three tabs stacked in a 77px
   column instead of sitting in a row. (2) We never ported the reference's own
   `.nav-pills .nav-link` colours; its sheet has
   `.nav-pills .nav-link { background-color: var(--bg-sidebar); color:
   var(--text-sidebar) }` and `.nav-pills .nav-link.active, .nav-pills .show >
   .nav-link { background-color: var(--bg-secondary); color:
   var(--text-secondary) }` (cdn.926assets.com, read with
   tmp-browser/td-css-rules.mjs --pat=nav-pills). Its theme vars are #ccc / #fff
   / #0470a5 / #000 — pinned here as literals because OUR --bg-sidebar is the
   site's #0088cc, which is what produced the blue-on-blue idle tabs the user
   saw. No border: the reference's `border-right: 1px solid var(--bg-secondary)`
   is beaten by bootstrap's later `.nav-pills .nav-link { border: 0 }`, and the
   live reference measures no border at all. */
/* The `display: flex` MUST stay inside this media query: the bar carries
   `d-xl-none`, so above 1200px the reference hides it (bootstrap's
   `@media (min-width: 1200px) { .d-xl-none { display: none !important } }`) and
   an unscoped `display: flex !important` here outranks that and reveals the tab
   row on desktop — measured 2026-10-14 before the scope was added: the board
   grew 855x453 → 855x485 with the tab bar sitting under it at y=982. The bar's
   COLOURS are safe unscoped (nothing paints the bar above 1200px) but they are
   kept here with the layout rule so the whole phone half reads as one block.
   1199.98px, not 1199: the same boundary the theme's own `.d-xl-none` uses. */
@media (max-width: 1199.98px) {
  .casino-container-box.dtl20 .casino-table > .nav-pills {
    display: flex !important;
  }
  .casino-container-box.dtl20 .casino-table > .nav-pills .nav-link {
    background-color: #ccc;
    color: #000;
    font-weight: 400;
  }
  .casino-container-box.dtl20 .casino-table > .nav-pills .nav-link.active,
  .casino-container-box.dtl20 .casino-table > .nav-pills .show > .nav-link {
    background-color: #0470a5;
    color: #fff;
  }
}

/* --------------------------------------------------------------------------
   Dragon Tiger family — the LIVE-STREAM BAND and its card overlay.

   User report 2026-10-14: "before live stream starts for these games there are
   big cards displaying in the live stream box … when streams start playing then
   those cards disappear". Reproduced on /casino/dt202 at 1600x1400 before
   touching anything:

     .casino-video-cards   853x1000, position static, padding 0, no background
     .flip-card-container   200x1000, display block
     .flip-card             200x500  (natural size of the 200x250 card images,
                                      stacked front/back)
     .casino-video-cards img 200x250 each, four of them

   Cause 1 — `.casino-video-cards` had NO rules for these pages. This app ships
   the reference's overlay CSS per PAGE CLASS (`.Tp1Day …`, `.lucky7a …`,
   `.poker1day …`, `.race20 …`, `.lottery …`) and the family never had one, so
   no rule ever sized the cards. Cause 2 — `.video-box-container` is our
   `.casino-stream-frame` (`style.css:1670  position: absolute; inset: 0`), and a
   positioned element paints ABOVE in-flow content, so the oversized overlay sat
   under the frame as "big cards" until the stream resolved and then vanished
   when the iframe painted. That is the same pair of causes the lucky5 block in
   casino-batch3-boards.css documents.

   Reference numbers, measured live on /casino/dt20 with
   `tmp-browser/td-dt-stream2.mjs` (stage = 16:9 of `100% - 220px`; the REMAINING
   220px black band on the left is where the card strip lives):

     viewport      .casino-video   .video-box-container   overlay   .flip-card
     >= 1600       855x357         635x357                95x60     40x50 (mr 5)
     1400-1599     745x295         525x295                87x55     36x45
     1200-1399     725x284         505x284                71x45     28x35
     768-1199      full width      width - 220            95x60     40x50
     <= 767        390x219         full width             47x30     16x20

   Sources, all the reference's own: style.css:4393 `.casino-video-cards`,
   :4404 `.flip-card` (50x40, margin-right 5px), :4427 `.flip-card-inner`,
   :4441 `.flip-card-front/back`, :4471 `.casino-video-cards img`;
   responsive.css:3327 (1200-1399) and :3579 (1400-1599) for the two middle
   breakpoints, :312 / :441 for the phone scale. `.casino-stream-stage` and
   `.casino-stream-frame` are OUR invented classes (style.css:1659/1670) and the
   reference has neither, which is why their floor (420px) and 16:9-of-the-full-
   column ratio have to be cancelled here before the band can be 357 tall.
   -------------------------------------------------------------------------- */

/* The band: 220px of black on the left, the video right-aligned beside it. */
.casino-container-box.dt1day .video-box-container,
.casino-container-box.dt20 .video-box-container,
.casino-container-box.dtl20 .video-box-container {
  max-width: calc(100% - 220px);
  margin-left: auto;
}

.casino-container-box.dt1day .casino-stream-frame,
.casino-container-box.dt20 .casino-stream-frame,
.casino-container-box.dtl20 .casino-stream-frame {
  position: static;
  inset: auto;
  width: 100%;
  overflow: hidden;
}

.casino-container-box.dt1day .casino-stream-stage,
.casino-container-box.dt20 .casino-stream-stage,
.casino-container-box.dtl20 .casino-stream-stage {
  min-height: 0;
  aspect-ratio: auto;
}

/* The overlay: absolutely positioned, so it paints over the frame and keeps the
   dealt cards visible in the black band instead of disappearing under it. */
.casino-container-box.dt1day .casino-video-cards,
.casino-container-box.dt20 .casino-video-cards,
.casino-container-box.dtl20 .casino-video-cards {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.4);
  height: auto;
  padding: 5px;
  z-index: 2;
}

.casino-container-box.dt1day .casino-video-cards h5,
.casino-container-box.dt20 .casino-video-cards h5,
.casino-container-box.dtl20 .casino-video-cards h5 {
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
}

.casino-container-box.dt1day .casino-video-cards .flip-card-container,
.casino-container-box.dt20 .casino-video-cards .flip-card-container,
.casino-container-box.dtl20 .casino-video-cards .flip-card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.casino-container-box.dt1day .casino-video-cards .flip-card,
.casino-container-box.dt20 .casino-video-cards .flip-card,
.casino-container-box.dtl20 .casino-video-cards .flip-card {
  background-color: transparent;
  perspective: 1000px;
  height: 50px;
  width: 40px;
  margin-right: 5px;
}

.casino-container-box.dt1day .casino-video-cards .flip-card:last-child,
.casino-container-box.dt20 .casino-video-cards .flip-card:last-child,
.casino-container-box.dtl20 .casino-video-cards .flip-card:last-child {
  margin-right: 0;
}

.casino-container-box.dt1day .casino-video-cards .flip-card-inner,
.casino-container-box.dt20 .casino-video-cards .flip-card-inner,
.casino-container-box.dtl20 .casino-video-cards .flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
}

.casino-container-box.dt1day .casino-video-cards .flip-card-front,
.casino-container-box.dt1day .casino-video-cards .flip-card-back,
.casino-container-box.dt20 .casino-video-cards .flip-card-front,
.casino-container-box.dt20 .casino-video-cards .flip-card-back,
.casino-container-box.dtl20 .casino-video-cards .flip-card-front,
.casino-container-box.dtl20 .casino-video-cards .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.casino-container-box.dt1day .casino-video-cards .flip-card-back,
.casino-container-box.dt20 .casino-video-cards .flip-card-back,
.casino-container-box.dtl20 .casino-video-cards .flip-card-back {
  transform: rotateY(180deg);
}

/* Without this the 200x250 card images keep their natural size inside the 40x50
   flip-card — which is the "big cards" itself. The extra `.flip-card` step is
   load-bearing, exactly as in the lucky5 block: it lifts the rule to (0,4,1) so
   no page-scoped `.casino-container-box.… img` rule in the parity sheet can win
   on source order. */
.casino-container-box.dt1day .casino-video-cards .flip-card img,
.casino-container-box.dt20 .casino-video-cards .flip-card img,
.casino-container-box.dtl20 .casino-video-cards .flip-card img {
  height: 100%;
  width: 100%;
}

/* The board sits back-to-back under the band. Our page floor (.card-body's
   inline `min-height: 400px`) and `.card.m-b-10`'s margin exist in neither the
   reference nor these games, and both are inline / shorthand, hence the
   !important. Scoped to the family's own column so the sidebar's
   `.card.m-b-10.my-bet` (same class list, different column) is untouched. */
.casino-container-box.dt1day .col-8 > .card > .card-body,
.casino-container-box.dt20 .col-8 > .card > .card-body,
.casino-container-box.dtl20 .col-8 > .card > .card-body {
  min-height: 0 !important;
}

.casino-container-box.dt1day .col-8 > .card.my-bet,
.casino-container-box.dt20 .col-8 > .card.my-bet,
.casino-container-box.dtl20 .col-8 > .card.my-bet {
  margin-bottom: 0 !important;
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .casino-container-box.dt1day .casino-video-cards .flip-card,
  .casino-container-box.dt20 .casino-video-cards .flip-card,
  .casino-container-box.dtl20 .casino-video-cards .flip-card {
    height: 35px;
    width: 28px;
  }
}

@media only screen and (min-width: 1400px) and (max-width: 1599px) {
  .casino-container-box.dt1day .casino-video-cards .flip-card,
  .casino-container-box.dt20 .casino-video-cards .flip-card,
  .casino-container-box.dtl20 .casino-video-cards .flip-card {
    height: 45px;
    width: 36px;
  }
}

@media only screen and (max-width: 767px) {
  /* the reference uncaps the box and lets the overlay sit ON the video here */
  .casino-container-box.dt1day .video-box-container,
  .casino-container-box.dt20 .video-box-container,
  .casino-container-box.dtl20 .video-box-container {
    max-width: 100%;
  }

  .casino-container-box.dt1day .casino-video-cards .flip-card,
  .casino-container-box.dt20 .casino-video-cards .flip-card,
  .casino-container-box.dtl20 .casino-video-cards .flip-card {
    height: 20px;
    width: 16px;
  }
}

/* ==========================================================================
   ANDAR BAHAR (ab20 / ab3 / ab4) — tridevexch's `.ab` board.
   User report 2026-10-14 (after the Dragon Tiger family was signed off):
   "start with Andar Bahar family and games are ab20, ab3, ab4, abj".

   Our board was not at parity at ANY width — the row-count harness saw the 26
   `.card-odd-box` cells and called it PASS, while the layout was a 50px column
   per side. Measured 2026-10-14 with tmp-browser/element-probe.mjs, ours vs
   tridevexch:

     board root       855x1255 (@1600)   vs   855x220
     .andar-box        50x1255 x=293     vs   851x99  x=285  bg #ffa07a
     .bahar-box        50x1255 x=1093    vs   851x99  x=285  bg #90ee90
     .ab-cards         50x1231           vs   766x99  (90%, flex, wrap)
     .card-odd-box     46x91             vs   46x83
     @390 board        388x1265          vs   390x324
     @390 .andar-box   50x1255           vs   380x146 (cards wrapped 32x63)
     @390 .andar-box   bg transparent    vs   #ffa07a

   Cause: the reference keys this family on a PAGE class (`casino-page-container
   ab`, measured on /casino/ab20 and /casino/ab4) and we never set it, so none of
   its `.ab …` rules could match — the two boxes stayed their markup defaults
   (block boxes that are flex items of `.casino-table-box`, so each collapsed to
   one card's width and stacked its 13 cards vertically).

   Everything below is the reference's OWN declarations, copied from its sheet
   (`.ab .andar-box`, `.ab-title`, `.ab-cards`, `.ab .bahar-box` of its
   style.css; the ≤767 / 768-1199 / 1200-1399 / 1400-1599 `.card-odd-box img`
   bands of its responsive.css). Scoped `.casino-container-box.ab` — compound,
   because this app puts the page class ON the container element, not on an
   ancestor of it. The four card bands cover `.ab` AND `.ab2`: the reference's
   band rules are unscoped `.card-odd-box img`, so its abj board takes them too
   (measured: TD abj's `.card-odd-box` is 32x63 at 390, the same 45 + 18 as ab20,
   against our 46x83 that the 65px base produced). The one thing not ported is its border-less card images: the
   `.card-odd-box` sizing itself already lives in v10 (img 65px = the reference's
   large-desktop value, which is why 1600 needs no override) — only the four
   narrower bands had never been copied.
   ========================================================================== */
.casino-container-box.ab .andar-box {
  background-color: #ffa07a;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-content: center;
}
.casino-container-box.ab .bahar-box {
  background-color: #90ee90;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-content: center;
}
.casino-container-box.ab .ab-title {
  width: 10%;
  text-align: center;
  border-left: 1px solid #000;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  font-weight: bold;
}
.casino-container-box.ab .ab-cards {
  width: 90%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border: 1px solid #000;
  padding: 10px;
  padding-bottom: 0;
}
/* The book under each card sits flush (the reference's `.card-odd-box` is
   exactly img + book: 65 + 18 = 83 at 1600, 45 + 18 = 63 at 390). Our port had
   carried Bootstrap's `mt-2` on that div, which is `margin-top: .5rem
   !important` — 8px that no plain rule can cancel — so it was removed from
   renderAb20Board instead. Nothing to override here; the numbers are the
   reference's own once the markup matches. */
@media only screen and (max-width: 767px) {
  .casino-container-box.ab .card-odd-box img,
  .casino-container-box.ab2 .card-odd-box img {
    height: 45px;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1199px) {
  .casino-container-box.ab .card-odd-box img,
  .casino-container-box.ab2 .card-odd-box img {
    height: 55px;
  }
}
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .casino-container-box.ab .card-odd-box img,
  .casino-container-box.ab2 .card-odd-box img {
    height: 45px;
  }
}
@media only screen and (min-width: 1400px) and (max-width: 1599px) {
  .casino-container-box.ab .card-odd-box img,
  .casino-container-box.ab2 .card-odd-box img {
    height: 50px;
  }
}
/* The reference rotates the ANDAR / BAHAR strip title on very narrow phones. */
@media only screen and (max-width: 374px) {
  .casino-container-box.ab .ab-title {
    writing-mode: vertical-lr;
    text-orientation: upright;
  }
}

/* ---- Andar Bahar's live-stream strip (`.ab-cards-container`).
   Same page-class fault as the board, one level further out: the reference's
   strip rules are `.ab-cards-container { width: 155px }` +
   `.ab-cards-container img { height:50px !important; width:auto !important }`
   (desktop) and `{ width:95px }` + `.flip-card { height:30px; width:24px }` +
   `img { height:30px; width:24px }` below 768px — and OURS were already ported,
   but into casino-boards.css scoped to `.ab2`. CasinoWrapper renders the overlay
   OUTSIDE the board root (it lives in `.casino-video`), so a class carried only
   by the board root could never reach it: our abj strip measured **391x1008** on
   a 390px phone (the card images at their natural 200x250, three of them stacked
   by bootstrap's `.col-*`) against the reference, which paints no overlay at all
   between rounds. With `ab`/`ab2` now on the page container those existing rules
   apply; these two declarations cover the gap for the `ab` family's own strip. */
.casino-container-box.ab .ab-cards-container {
  width: 155px;
  /* The reference's container is exactly `h5 12 + cards 30 (photos) = 42` on a
     phone (measured mid-round on /casino/ab20: `div.ab-cards-container`
     95x42, h5 95x12 margin 0, then `.ms-4` 71x30), so bootstrap's
     `h5 { margin-bottom: .5rem }` and this rule's own 4px padding-bottom are
     both ours and cost 12px per side — the two-slider overlay measured 118 tall
     against the reference's 94. Only the AB strip is reset; the dum10 / trap
     strips share the class and keep their padding. */
  padding-bottom: 0;
}
.casino-container-box.ab .ab-cards-container h5,
.casino-container-box.ab2 .ab-cards-container h5 {
  margin: 0;
  text-transform: uppercase;
  /* Measured against the reference at 1600: its strip h5 is 18px/21.6,
     weight 700. Ours was bootstrap's 20px/24 weight 500 (5px of overlay height)
     and 18px weight 500 after the first pass. The reference's phone value is
     12px/12 (see the ≤767 block below) — the earlier note that "both are
     already 12px" was wrong: our 18px rule applied at every width. */
  font-size: 18px;
  font-weight: 700;
}
/* The reference's desktop card rule (§ the AB strip block in its style.css):
   `height: 50px !important; width: auto !important` — an img 50 tall, and the
   slide takes the image's width. Ours was the shared 56x44 from the dum10/trap
   block above, i.e. 6px too tall and a fixed width. */
.casino-container-box.ab .ab-cards-container img {
  height: 50px !important;
  width: auto !important;
}
/* The same `width: auto` for abj, whose image height comes from the ab2 board's
   own `height: 35px !important` (casino-boards.css). The reference measures
   28x35 there — the card's 4:5 aspect taken from the 35px height — while our
   overlay inherited the dum10/trap block's fixed `width: 44px`, so every abj
   stream card was stretched to 44x35 (measured 2026-10-15, both rows). Desktop
   only: at ≤767 the reference pins 24x30, and a selector with one more class
   would out-rank that `!important` pair even on a phone. */
@media only screen and (min-width: 768px) {
  .casino-container-box.ab2 .ab-cards-container .slick-slide img {
    width: auto !important;
  }
}
/* The reference's `.ms-4` (bootstrap 5's `margin-left: 1.5rem`) indents each
   side's strip by 24px — measured: `div.ms-4` 71x30 at x29 inside the 95px
   container. OUR bootstrap has no `ms-4` utility (this app ships the 4.x
   `ml-*` names), so the class was inert and both card rows started at the
   container's left edge (95x30 at x7). The 24px band is also where the
   reference parks its slick prev arrow (20x20 at x4). */
.casino-container-box.ab .ab-cards-container .ms-4,
.casino-container-box.ab2 .ab-cards-container .ms-4 {
  margin-left: 1.5rem;
}
@media only screen and (max-width: 767px) {
  /* ONLY the `ab` (ab20/ab3/ab4) strip narrows to 95px here. abj's container is
     NOT this element: the reference's `.ab2 .ab-cards-container { width: 250px }`
     holds at every width (measured 250x74 @390 and 250x104 @1600 on /casino/abj)
     and its 95px phone rule never reaches it — the abj overlay used to collapse to
     95x218 because we scoped this override to `.ab2` as well. */
  .casino-container-box.ab .ab-cards-container {
    width: 95px;
  }
  .casino-container-box.ab .ab-cards-container img,
  .casino-container-box.ab2 .ab-cards-container img {
    height: 30px !important;
    width: 24px !important;
  }
  .casino-container-box.ab .ab-cards-container h5,
  .casino-container-box.ab2 .ab-cards-container h5 {
    font-size: 12px;
    line-height: 1;
  }
  .casino-container-box.ab .ab-cards-container .slick-track,
  .casino-container-box.ab2 .ab-cards-container .slick-track {
    gap: 0;
  }
  .casino-container-box.ab2 .casino-video-cards .flip-card {
    width: 24px;
    height: 30px;
  }
  /* tridevexch's phone base font is 12/18 — its `body` AND `.casino-page-container`
     both measure 12px/18px at 390 against this app's 16px/24px, which is what sizes
     the ab3/ab4 "Next Card Count" line and the abj A/B labels there. Pinned for
     these two panels only: applying a 12px base to the whole app is a separate,
     much wider decision (see docs/casino-dtl20-tabs-and-andar-bahar-2026-10-14.md). */
  .casino-container-box.ab .casino-video-cards,
  .casino-container-box.ab2 .casino-video-cards {
    font-size: 12px;
    line-height: 18px;
  }
}

/* ---- The strip's slider behaviour, and the abj panel. */
/* abj's 250px, from the reference's `.ab2 .ab-cards-container { width: 250px }`
   (casino-boards.css carries it scoped to the `.ab2` BOARD root, which our
   overlay — rendered in `.casino-video` — can never match). Its `padding-bottom`
   is 0 there: 104 = 50 + 4 (mb-1) + 50, and the generic 4px this app adds made
   the abj panel 4px taller than the reference's. */
.casino-container-box.ab2 .ab-cards-container {
  width: 250px;
  padding-bottom: 0;
}
/* The reference's flip-card inside the abj panel: 40x50 on desktop, 24x30 on a
   phone (the same box as its AB strips). Ours fell through to a global rewrite
   that measures 80px tall, which is why our abj panel was 168 tall against the
   reference's 104. Guarded at >=768 rather than overridden in the ≤767 block
   above, which sits EARLIER in this file and would lose the tie on source order. */
@media only screen and (min-width: 768px) {
  .casino-container-box.ab2 .casino-video-cards .flip-card {
    width: 40px;
    height: 50px;
  }
}
/* The strip is a slick carousel on the reference: the list clips (`overflow:
   hidden`) and the track is translated so its END is flush with the list's right
   edge — the cards you see are the NEWEST ones (measured mid-round on /casino/ab4:
   list 131x50, the last visible image being the last card dealt). Ours kept the
   list `overflow: visible`, so every card of the strip painted outside the black
   panel across the video area, oldest first. `justify-content: flex-end` with a
   clipped box reproduces the reference's `translateX(-1584px)` state without a
   slate of JS. The 4px spacing is the reference's own: its slide is 44 wide
   around a 40px image on desktop, 24 around 24 at phone (where the gap is 0). */
.casino-container-box.ab .ab-cards-container .slick-slider,
.casino-container-box.ab2 .ab-cards-container .slick-slider {
  position: relative;
  display: block;
}
.casino-container-box.ab .ab-cards-container .slick-list,
.casino-container-box.ab2 .ab-cards-container .slick-list {
  position: relative;
  display: block;
  overflow: hidden;
}
/* The ab20/ab3/ab4 strips are sliders too, and the same one abj has: the
   reference's track is laid out from the LEFT and moved by `translate3d`, which
   is why `flex-end` had to go — it is only correct in the end state the strip
   OPENS in and cannot step. The 4px gap went with it, since it set the pitch at
   48 against the reference's 44; the pitch is now the slide's own width, exactly
   as slick sizes it.
   `--ab-slide` carries that pitch, per breakpoint because the reference's is: its
   `.slick-slide` is 44px on desktop and 24px on a phone (measured mid-round on
   /casino/ab4 — `width: 1100px` for 25 slides against a 131x50 list at 1600, and
   `width: 600px` against a 71x30 list at 390, i.e. three 24s). `--ab-at` and
   `--ab-n` come from the row component (its offset and its card count) and
   `margin: auto` is slick's own, which is what centres a track that is still
   narrower than the list — the reference sits a lone remaining card 45px into
   the 136px abj list at both widths. */
.casino-container-box.ab .ab-cards-container .slick-track {
  --ab-slide: 44px;
  justify-content: flex-start;
  gap: 0;
  margin-left: auto;
  margin-right: auto;
  width: calc(var(--ab-n, 0) * var(--ab-slide));
  transform: translate3d(calc(var(--ab-at, 0) * var(--ab-slide) * -1), 0, 0);
}
/* A flex item may shrink below its stated width, which would squeeze 5+ cards
   into the list instead of overflowing it; the list's `overflow: hidden` is what
   clips the strip to three. */
.casino-container-box.ab .ab-cards-container .slick-slide {
  flex: 0 0 auto;
  width: var(--ab-slide);
}
@media only screen and (max-width: 767px) {
  .casino-container-box.ab .ab-cards-container .slick-track {
    --ab-slide: 24px;
  }
}
/* Every AB row — abj's two and the ab20/ab3/ab4 pair — is a slider the user can
   step, so the track is laid out from the LEFT and moved by `translate3d` (the
   component's `--ab-at`, turned into px right here) — the same mechanism, and
   the same numbers, slick uses there. Measured on the live
   /casino/abj DOM 2026-10-15: every `.slick-slide` carries inline `width: 46px`
   with a 46px PITCH at 1600 and at 390 (its `.slick-list` is 136 both times;
   slides sit at x=312,358,404,450 = 46 apart) and the track's inline transform
   steps by exactly -46px per click. The 4px this rule used to add was therefore
   a gap the reference does not have — 48px of pitch against its 46 — and the
   `flex-end` put the track's START at the list's right edge, which is only
   correct while the row is at its end state. `margin: auto` is slick's own
   (`margin-left/right: auto` on `.slick-track`), which is what centres a track
   that is still narrower than the list: with ONE remaining card the reference
   sits it at x=164 inside the list at x=119 (136 wide) — 45px in, dead centre —
   at 1600 and at 390 alike. */
.casino-container-box.ab2 .ab-cards-container .slick-track {
  --ab-slide: 46px;
  justify-content: flex-start;
  gap: 0;
  margin-left: auto;
  margin-right: auto;
  width: calc(var(--ab-n, 0) * var(--ab-slide));
  transform: translate3d(calc(var(--ab-at, 0) * var(--ab-slide) * -1), 0, 0);
}
/* A flex item may shrink below its stated width (the slide's min-content would
   otherwise let 5+ cards squeeze into the 136px list), so the 46px slides are
   pinned rigid: the track overflows the list and the list's `overflow: hidden`
   clips it, exactly as the reference's floated slides do. */
.casino-container-box.ab2 .ab-cards-container .slick-slide {
  flex: 0 0 auto;
  width: var(--ab-slide);
}
/* The reference's Prev/Next buttons: 20x20, absolute, 25px outside the slider on
   each side, vertically centred (slick's own `top: 50%` + `translateY(-50%)`),
   showing a white '←' / '→' glyph at opacity .75 — .25 once `slick-disabled`
   (its "next" is ALWAYS disabled: the track is already at the end). The reference
   draws the glyph from slick's icon font; we have no slick font in this app, so
   the same character is rendered from the panel's own font at the reference's
   20px/20px. The button's own label text ("Previous"/"Next", which is what the
   reference's innerText carries too) is hidden by the 0 font-size, as on TD. */
.casino-container-box.ab .ab-cards-container .slick-arrow,
.casino-container-box.ab2 .ab-cards-container .slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
  font-size: 0;
  line-height: 0;
  color: #fff;
  opacity: .75;
  cursor: pointer;
  z-index: 2;
}
.casino-container-box.ab .ab-cards-container .slick-arrow::before,
.casino-container-box.ab2 .ab-cards-container .slick-arrow::before {
  font-size: 20px;
  line-height: 20px;
}
.casino-container-box.ab .ab-cards-container .slick-arrow.slick-prev,
.casino-container-box.ab2 .ab-cards-container .slick-arrow.slick-prev {
  left: -25px;
}
.casino-container-box.ab .ab-cards-container .slick-arrow.slick-prev::before,
.casino-container-box.ab2 .ab-cards-container .slick-arrow.slick-prev::before {
  content: '\2190';
}
.casino-container-box.ab .ab-cards-container .slick-arrow.slick-next,
.casino-container-box.ab2 .ab-cards-container .slick-arrow.slick-next {
  right: -25px;
}
.casino-container-box.ab .ab-cards-container .slick-arrow.slick-next::before,
.casino-container-box.ab2 .ab-cards-container .slick-arrow.slick-next::before {
  content: '\2192';
}
.casino-container-box.ab .ab-cards-container .slick-arrow.slick-disabled,
.casino-container-box.ab2 .ab-cards-container .slick-arrow.slick-disabled {
  opacity: .25;
}

/* Andar Bahar 3 / 50 / 150 (ab3, ab4) — the reference carries BOTH page classes
   (`casino-page-container ab ab3`, measured on /casino/ab4) and overrides only
   the two box colours: `.ab.ab3 .andar-box { background-color: #fc424280 }` and
   `.ab.ab3 .bahar-box { background-color: #fdcf1380 }` (its style.css, the
   "Andar Bahar 3" block). Measured live at 390: andar-box rgba(252,66,66,.5),
   bahar-box rgba(253,207,19,.5). Two compound classes are needed to outrank the
   `.casino-container-box.ab …` pair above (0,4,0 > 0,3,0). */
.casino-container-box.ab.ab3 .andar-box {
  background-color: #fc424280;
}
.casino-container-box.ab.ab3 .bahar-box {
  background-color: #fdcf1380;
}
/* NOT ported: `.casino-video-cards .col-9 { padding-left: 20px }`.
   The previous pass added it here (reasoning from the reference's `.ab2` block),
   but the live overlay does not carry it: on tridevexch /casino/abj every
   `.col-9` in `.casino-video-cards` computes `padding: 0 5px`, and the 20px we
   added pushed our middle column 11px right of the reference's and squeezed its
   rows to 135px against the reference's 146px (that padding exists on the ab2
   BOARD's col-9, which casino-boards.css already covers). */

/* Andar Bahar's stream overlay PANEL — the reference's global
   `.casino-video-cards { position:absolute; top:0; left:0; background:
   rgba(0,0,0,.4); height:auto; padding:5px }` (its style.css:4393), which this
   app has only ever ported per page class. For the AB family it was never
   ported at all, so our panel stayed in flow and painted the whole 853px column:
   measured 853x92 at 1600 and 391x54/218 at 390, against the reference's
   **165x153** (@1600) and **105x94** (@390 for ab20, 143x112 for ab4) — those
   numbers are the shrink-to-fit result of its absolute positioning: the panel
   wraps its `.ab-cards-container` (155px desktop / 95px phone) plus its own 5px
   padding, and the black film covers only the cards instead of the whole band.
   Same three declarations the lucky5 and dt families received; see the poker
   block above for the same fault class. */
.casino-container-box.ab .casino-video-cards,
.casino-container-box.ab2 .casino-video-cards {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.4);
  height: auto;
  padding: 5px;
  z-index: 2;
  width: auto;
}

/* ==========================================================================
   ANDAR BAHAR's live-stream BAND — the video box beside the cards, not under
   them. User report 2026-10-14: "live stream video plays and on the left cards
   are showing on tridev but on maaganga video is under cards as well means full
   in live stream box".

   Measured on tridevexch /casino/ab20 @1600, mid-round:

     .casino-video (band)      855x357        position relative
     .video-box-container      635x357 @x505  max-width calc(100% - 220px)
                                              (right-aligned: 285 + 220)
     .casino-video-cards       165x153 @285   absolute, top-left
     @390:  band 390x219, box 390x219 (the cap is dropped), overlay 105x94

   Ours, same instant: band **853x480**, `.video-box-container.casino-stream-frame`
   **853x480** — the video covered the entire band and the cards painted over it.
   Two of our own classes are responsible and the reference has neither:
   `.casino-stream-stage` (style.css:1701) carries `aspect-ratio: 16 / 9` of the
   FULL column plus a `min-height: 420px` floor, and `.casino-stream-frame`
   (style.css:1715) is `position: absolute; inset: 0`, so the box could never be
   narrower than the band. The reference's 16:9 comes from
   `.casino-video-box { position: relative; padding-bottom: 56.25% }`
   (style.css:4380, already ported at casino-markets.css:402) INSIDE the capped
   box: 56.25% of 635 = 357 at 1600 and 56.25% of 390 = 219 at 390, which is
   exactly the band height the reference shows at both widths.

   Same three declarations the dt family received (see the block above); ab3/ab4
   and abj ride the same page classes, so their bands come along.
   ========================================================================== */
.casino-container-box.ab .video-box-container,
.casino-container-box.ab2 .video-box-container {
  max-width: calc(100% - 220px);
  margin-left: auto;
}

.casino-container-box.ab .casino-stream-frame,
.casino-container-box.ab2 .casino-stream-frame {
  position: static;
  inset: auto;
  width: 100%;
  overflow: hidden;
}

/* The stage's own ratio/floor has to go first: with `aspect-ratio: 16 / 9` the
   band is 480 tall at 1600 no matter what the box does, and `min-height: 420px`
   (250/220 on the mobile variant) is a floor the reference never had. */
.casino-container-box.ab .casino-stream-stage,
.casino-container-box.ab2 .casino-stream-stage {
  min-height: 0;
  aspect-ratio: auto;
}

@media only screen and (max-width: 767px) {
  /* the reference uncaps the box on a phone and lets the cards sit ON the video */
  .casino-container-box.ab .video-box-container,
  .casino-container-box.ab2 .video-box-container {
    max-width: 100%;
  }
}

/* ==========================================================================
   ANDAR BAHAR's RESULT CARD (ab20 / ab3 / ab4 / abj) — one row of the round's
   dealt cards per side. User report 2026-10-14: "ab20 first result modal is not
   same as tridev".

   The markup is now the reference's own (built in
   fan-react-stone/src/controllers/CasinoController.ts, branch 2-AB): its
   `.ab-result-slider` rows hold one bare `<div>` per card. The reference fills
   those with slick at runtime, which is what gives each slide its 63px slot
   (941px of row / 15 slides at 1600 — measured on tridevexch's ab20 dialog:
   images at x348, 411, 474, 537… i.e. 63px apart, each 40x50). This app ships no
   slick, so the slot has to come from CSS.

   Specificity is load-bearing: `style.css` (loaded AFTER this sheet, for the same
   reason it is in this block at all) carries the reference's own
   `.ab-result-container .ab-result-slider { … display: block !important }`, and
   with equal specificity and importance the later sheet wins — hence the
   `.modal-body` prefix, which lifts these rules to (0,3,0).
   ========================================================================== */
.modal-body .ab-result-container .ab-result-slider,
.modal-body .ab2-result-container .ab-result-slider {
  display: flex !important;
  flex-wrap: nowrap;
  /* `safe center` is slick's own behaviour, which is what the reference renders:
     a run of cards that FITS the row is centred, one that overflows starts at
     the row's left edge. Slick does it by giving `.slick-track` a computed
     margin (measured on tridevexch abj@1600: viewport 541px, 4-slide track 220px
     -> margin-left 105.4 = (541-220)/2, first card x874; the 6-slide track 330px
     -> 105.5, x874; ab20's 14-card row 882px in 941px -> first card x347.5, while
     its 15-card row overflows and starts flush at x318). `safe` is what keeps a
     long deal (ab4: 75 cards) starting at the left edge and reachable by scroll
     instead of being clipped off the left. */
  justify-content: safe center;
  /* The reference scrolls these rows with its slick Previous/Next arrows; ours
     is a plain scroll container rather than a second slider implementation. */
  overflow-x: auto;
}

/* The row is INSET, and that inset is the reference's own declaration — copied
   verbatim from its sheet (`.ab-result-container .ab-result-slider {
   margin-left: 7%; margin-right: 7%; width: 84% !important }`, and the ab2
   variant at 4% / 4% / 65%), which lives in ours only inside
   `_deleted_backup/style-d247.css` and so never applied. Measured on the same
   round 123261014231923 at 1600 (2026-10-14): tridev's row is 941px wide at
   x318 inside the 1120px column — 7% of 1120 = 78.4px of inset each side —
   while ours was the full 1120 at x240, i.e. every card sat 96px left of the
   reference's (first image x252 vs x348). Without it the dialog's cards are
   left-aligned to the modal edge instead of inset like the reference's. */
.modal-body .ab-result-container .ab-result-slider {
  margin-left: 7%;
  margin-right: 7%;
  width: 84% !important;
}

.modal-body .ab2-result-container .ab-result-slider {
  margin-left: 4%;
  margin-right: 4%;
  width: 65% !important;
  margin-bottom: 5px;
  /* The element carries Bootstrap's `col-9`, whose `flex: 0 0 75%` is the flex
     BASE size — a `width` declaration cannot shrink that, so the row computed to
     75% (635.6px) instead of 65%, no longer fitted beside the col-3 card, wrapped
     onto its own line, and doubled the dialog's height (rows 105px apart where
     tridevexch's are 55). The reference escapes this because its
     `.ab-result-slider` is `display: block`; ours has to stay flex to place the
     slides, so the basis is pinned instead. Measured on abj@1600: our col-9 row
     x551 y158 vs tridevexch's x763 y98. */
  flex: 0 0 auto !important;
}

.modal-body .ab-result-container .ab-result-slider > div {
  flex: 0 0 auto;
  /* `flex: 0 0 auto` above is what keeps the slot 63px wide under the centring. */
  width: 63px;
  /* LEFT, not centred: the reference's own cards sit flush with each slide's
     edge, which is what puts its first card at the row's x (measured on
     tridevexch ab3@1600: row x318, first card x318, pitch 63). Centring shifted
     every card 12px right (ours x330). */
  text-align: left;
}

.modal-body .ab2-result-container .ab-result-slider > div {
  flex: 0 0 auto;
  /* abj's slot is 55px in the reference (images 55 apart: x929, 984, 1039, 1094
     at 1600), not the 60px this app first shipped. */
  width: 55px;
  text-align: left;
}

/* Dus ka Dum reuses the same result row for its whole shoe, but the reference's
   slick slot there is 53px with the face centred in it (measured 2026-10-22 on
   mid 152261022230939: 22 cards at x312…1425, pitch 53, each 40x50 inside a
   53x50 slide), and the row sits 5px below the round-id line. The 63px slot
   above is ab20's. */
.modal-body .ab-result-container .ab-result-slider.dum10-result-slider {
  margin-top: 5px;
}

.modal-body .ab-result-container .ab-result-slider.dum10-result-slider > div {
  flex: 0 0 auto;
  width: 53px;
  text-align: center;
}

/* abj (`.ab2-result-container`) draws its cards OUTSIDE `.casino-result-cards`
   — col-2 and col-3 carry one card each and the col-9 sliders carry the rest —
   so the generic `.casino-result-modal .casino-result-cards img` sizing never
   reached them and every card rendered at its natural 200x250. That inflated
   the rows (columns wrapped, so each slider dropped to a 250px-tall line below
   its col-3 sibling) and made the dialog three screens tall. Measured against
   tridevexch's abj dialog on the same round 124261014232916 before this: its
   cards 40x50 with rows at y98/y153, ours 200x250 with rows at y358/y863.
   Values are the reference's own, from its sheet (kept in
   `_deleted_backup/style-d247.css`, never carried into style.css). */
.modal-body .ab2-result-container img {
  height: 50px !important;
  width: 40px !important;
  margin-right: 5px;
}

.modal-body .ab2-result-container {
  align-items: center;
}

/* Dus ka Dum's result strip on a phone: the reference keeps DESKTOP-sized cards
   there. Measured at 390x900 on 2026-10-22, its slick slides are 64px wide
   holding 40x50 faces, while only the single drawn card beside the strip drops
   to the generic 28x35 phone size. Our phone rule shrank the whole strip to
   28x35, so the row measured 40px instead of the reference's 55 and the dialog
   came out 15px short (280 vs 295).

   These live here, not in v9, because the 53px desktop slot they override is
   declared in THIS sheet and v9 loads first — equal specificity would otherwise
   hand the desktop value the win. */
@media only screen and (max-width: 767px) {
  .modal-body .ab-result-container .ab-result-slider.dum10-result-slider > div {
    width: 64px;
  }

  .modal-body .ab-result-container .ab-result-slider.dum10-result-slider img {
    height: 50px;
  }
}

/* ==========================================================================
   BOARD layout parity — dum10 / trap / teenunique (2026-10-23)

   The user compares these three against tridevexch/d247 and they did NOT
   match: our sheets carried result-modal and rules rules for these slugs but
   never the boards' own layout rules, so each fell back to a squashed
   approximation. Everything below is measured from the live reference board
   (tmp-browser/td-board-structure.mjs + td-matched-rules.mjs, 1600x2400):

     dum10       .casino-table 855x300 @285,514
                 first box 598.5x87 @413,514 (70% wide, margin 0 auto)
                 header/body each 100% of it; nation 60%, odds 20%/20%
                 aaa row 855x197: two 424px columns, each .aaa-odd-box 414x92
     trap        .casino-table 855x153 @285,514
                 box1 855x48: left-box 423.5 | divider 2 | right-box 423.5
                 each body > row: nation 253 (60%) + odds 84 + 84 (20%)
                 sevenupbox 855x55, remark 855x18
     teenunique  .unique-teen20 wrapper > .casino-table 855x197
                 title 518x34 centred (bg #0470a5), slots row 530x145 with
                 six 80x135 cards (30px sN icon + 80x100 face, gap 10)
   ========================================================================== */

/* ---- Dus ka Dum (dum10) ------------------------------------------------- */
.duskadum .casino-table-header,
.duskadum .casino-table-body {
  width: 100%;
}

.duskadum .casino-nation-detail {
  width: 60%;
  flex-direction: revert;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

.duskadum .casino-odds-box {
  width: 20%;
}

/* The Back/Lay header cells are 28px tall on the reference (16px/24px bold
   text + 2px padding); ours measured 20px because `.casino-odds` pins
   line-height:1 and the header's inner span collapsed to 16px. */
.duskadum .casino-table-header .casino-odds-box {
  min-height: 28px;
}

/* Even/Odd + Red/Black tiles: the reference paints the themed gradient
   (#0ca1f8 -> #0470a5) with white 16px/24px text. The generic
   `.teenpatti1day .casino-odds-box.back { background: … }` shorthand was
   resetting background-image, leaving flat #72bbef with 13px black labels. */
.teenpatti1day .casino-odds-box.casino-odds-box-theme {
  background-color: #72bbef;
  background-image: linear-gradient(to right, #0ca1f8, #0470a5);
  color: #fff;
  font-size: 16px;
  line-height: 24px;
}

.duskadum .aaa-odd-box .casino-odds-box {
  font-size: 16px;
  line-height: 24px;
}

.teenpatti1day .casino-odds-box.casino-odds-box-theme .casino-odds {
  color: #fff;
}

/* Main "Next Total" box: 70% wide and centred, with a 1px rule under it. */
.duskadum .casino-table-box:first-child {
  width: 70%;
  margin: 0 auto;
  padding-bottom: 10px;
  position: relative;
  margin-bottom: 0 !important;
}

.duskadum .casino-table-box:first-child::after {
  content: '';
  background-color: rgba(4, 112, 165, 0.35);
  height: 1px;
  width: 50%;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
}

/* ---- The Trap (trap) ---------------------------------------------------- */
/* `trap` is added to the board root by TeenPattiBoard's renderTrapBoard so
   these reference rules never leak into teen1 (the other `.onecard1day`
   game, already verified against tridev at 855x153). */
.trap .casino-nation-detail {
  width: 60%;
}

.trap .casino-nation-detail img {
  height: 30px;
  margin-right: 5px;
}

.trap .casino-odds-box {
  width: 20%;
}

/* ---- Unique Teenpatti (teenunique) ------------------------------------- */
.unique-teen20 .casino-table {
  width: 100%;
  max-width: 855px;
  margin: 0 auto;
  padding: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f7f7f7;
  color: #333;
  font-size: 16px;
}

/* `h4` inside the casino container is 20px in the shared sheet, so this has to
   out-specify it: the reference title is 16px/22px (measured 518x34). */
.casino-container-box .unique-teen-title,
.unique-teen20 .unique-teen-title {
  text-align: center;
  background: #0470a5;
  color: #fff;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  margin: 0 0 8px;
  opacity: 0.9;
}

.unique-teen-title i {
  font-size: 20px;
}

.unique-teen20-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  padding: 0;
  margin: 0 auto;
  gap: 10px;
}

.unique-teen20-box.suspended {
  cursor: not-allowed;
  pointer-events: unset;
}

/* The shared `.casino-container-box .suspended::after` veil in style.css is
   written for ODDS boxes: it paints a full-height rgba(0,0,0,.6) padlock
   glyph. It also matched this board WRAPPER, and with no `width` declared the
   absolutely-positioned pseudo shrink-wrapped to the glyph, leaving a ~15px
   dark vertical strip with a lock at the right edge of the six-card row that
   sat on top of card 6 (user report 2026-10-23: "some kinda bar with padlock,
   extra from cards"). The reference has no veil here — its padlocks are the
   per-slot 0.png card faces — so this board opts out of the shared rule. */
.casino-container-box .unique-teen20-box.suspended::after {
  content: none;
  display: none;
}

.unique-teen20-box.suspended .unique-teen20-card {
  pointer-events: none;
}

.unique-teen20-box .unique-teen20-card {
  text-align: center;
  margin: 5px 0;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.unique-teen20-box .unique-teen20-card img:first-child {
  width: 30px;
}

.unique-teen20-box .unique-teen20-card img {
  width: 80px;
  height: auto;
  cursor: pointer;
}

/* Pick feedback: the board shipped with a `selected` class that no stylesheet
   painted, so a player could not see which of the six slots they had taken
   (user: "cannot select 3 cards"). A plain gold outline is NOT enough — the
   face-down card art (sequence/1.jpg) already carries a gold border — so a
   picked slot gets a green ring, a lift, and a check badge. */
.unique-teen20-box .unique-teen20-card {
  position: relative;
  transition: transform 0.12s ease;
}

.unique-teen20-box .unique-teen20-card img:last-child {
  border-radius: 3px;
}

.unique-teen20-box .unique-teen20-card.selected {
  transform: translateY(-6px);
}

.unique-teen20-box .unique-teen20-card.selected img:last-child {
  outline: 3px solid #19c37d;
  outline-offset: -3px;
  box-shadow: 0 0 0 3px rgba(25, 195, 125, 0.55), 0 0 14px rgba(25, 195, 125, 0.6);
}

.unique-teen20-box .unique-teen20-card.selected img:first-child {
  filter: drop-shadow(0 0 4px #19c37d);
}

.unique-teen20-box .unique-teen20-card.selected::after {
  content: '\2713';
  position: absolute;
  top: 0;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #19c37d;
  color: #05231a;
  font: 700 14px/22px system-ui, sans-serif;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

/* "Picked 1, 3, 5 (3/3)" — the count under the title, so the state is
   readable even where the cards are small. */
.unique-teen-picked {
  color: #19c37d;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 6px;
}

/* Stream band: hug the 16:9 iframe exactly (2026-10-23).
   Our shared `.casino-stream-stage` carries `min-height: 420px` and
   `aspect-ratio: 16/9`, so at 853px wide the stage rendered 480px tall with the
   633x356 video letterboxed inside it — 123px of dead black that the reference
   does not have (tridevexch: `.casino-video` 855x357, iframe 635x357). The page
   classes these three boards now carry (trap / duskadum / unique-teen20) let us
   scope the fix without touching the other casino families. */
.casino-container-box.trap .casino-stream-stage,
.casino-container-box.duskadum .casino-stream-stage,
.casino-container-box.unique-teen20 .casino-stream-stage {
  min-height: 0;
  aspect-ratio: auto;
}

/* Reference: the live-card column beside the stream is 220px wide and the
   video box takes the remaining width, right-aligned — DESKTOP ONLY. Scoping
   this to every width shrank trap's phone video to 170x95 (measured 390px,
   2026-10-23) because 100% - 220px leaves almost nothing at phone width. */
@media only screen and (min-width: 768px) {
  .casino-container-box.trap .video-box-container,
  .casino-container-box.duskadum .video-box-container,
  .casino-container-box.unique-teen20 .video-box-container {
    max-width: calc(100% - 220px);
    margin-left: auto;
  }
}

/* The page floor `.card-body { min-height: 400px }` (inline) and
   `.card.m-b-10`'s 10px margin exist in neither the reference nor these three
   boards — they left the 356px stream card 400px tall (43px of dead black)
   and pushed the board 84px below the reference's. Same fix the Dragon Tiger
   family already carries; scoped to the column so the sidebar's
   `.card.m-b-10.my-bet` is untouched. */
.casino-container-box.trap .col-8 > .card > .card-body,
.casino-container-box.duskadum .col-8 > .card > .card-body,
.casino-container-box.unique-teen20 .col-8 > .card > .card-body {
  min-height: 0 !important;
}

.casino-container-box.trap .col-8 > .card.my-bet,
.casino-container-box.duskadum .col-8 > .card.my-bet,
.casino-container-box.unique-teen20 .col-8 > .card.my-bet {
  margin-bottom: 0 !important;
}

/* The Trap: the reference does NOT render a live-card overlay in the stream's
   black column (measured 2026-10-23 at the same second: tridevexch's 220px
   column holds only the feed's own watermark, ours painted a six-card strip
   plus a "A 2B 10" total). Scoped to the page class so teen-family games that
   really do show the strip keep it. */
.casino-container-box.trap .casino-video-cards {
  display: none;
}

/* …but the reference DOES paint the dealt-cards strip on a phone, over the
   full-width stream (measured 390x1200, 2026-10-23). */
@media only screen and (max-width: 767px) {
  .casino-container-box.trap .casino-video-cards {
    display: block;
  }
}

/* dum10 below the reference's 1280px breakpoint: the main "Next Total" box is
   FULL width (the 70% + auto-margin rule is scoped to >=1280 in the reference),
   and on a phone the Even/Odd | Red/Black halves stay side by side, giving the
   reference's 2x2 grid instead of a four-row column. Measured 2026-10-23 at
   390x1200: TD box 358 wide, four 172px tiles in two columns. */
@media only screen and (max-width: 1279px) {
  .casino-container-box.duskadum .casino-table-box:first-child {
    width: 100%;
  }
}

@media only screen and (max-width: 767px) {
  .casino-container-box.duskadum .casino-table-box:nth-child(2) .casino-table-left-box,
  .casino-container-box.duskadum .casino-table-box:nth-child(2) .casino-table-right-box {
    width: calc(50% - 2px);
    padding: 0 4px;
  }
}
