/* Isolated Casino Table Styles - Strictly scoped to casino table components */

.casino-page-container {
  width: 100%;
  background: #f8f9fa;
  font-family: inherit;
}
.casino-detail {
  background: #fff;
  border-radius: 4px;
  padding: 8px;
}
.casino-table-box {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}
.casino-table-left-box, .casino-table-right-box {
  width: 49.5%;
}
@media (max-width: 767px) {
  .casino-table-left-box, .casino-table-right-box {
    width: 100%;
  }
}
.casino-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-bottom: 0;
  font-weight: 700;
  min-height: 38px;
}
.casino-table-header .casino-nation-detail {
  padding-left: 12px;
  flex: 1;
}
.casino-table-header .casino-odds-box {
  width: 25%;
  text-align: center;
  padding: 8px 4px;
  font-weight: 700;
}
.casino-table-header .casino-odds-box.back {
  background: #72bbef;
  color: #000;
}
.casino-table-header .casino-odds-box.lay {
  background: #faa9ba;
  color: #000;
}
.casino-table-body {
  border: 1px solid #dee2e6;
}
.casino-table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dee2e6;
  min-height: 44px;
}
.casino-table-row:last-child {
  border-bottom: 0;
}
.casino-table-row .casino-nation-detail {
  padding-left: 12px;
  flex: 1;
  font-weight: 700;
}
.casino-table-row .casino-odds-box {
  width: 25%;
  text-align: center;
  padding: 8px 4px;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.casino-table-row .casino-odds-box.back {
  background: #72bbef;
  color: #000;
}
.casino-table-row .casino-odds-box.lay {
  background: #faa9ba;
  color: #000;
}
.under-over-row {
  display: flex;
  justify-content: space-between;
}
.under-over-row .uo-box {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-right: 1px solid #dee2e6;
}
.under-over-row .uo-box:last-child {
  border-right: 0;
}
.under-over-row .uo-box .casino-nation-detail {
  padding-left: 12px;
  font-size: 13px;
}
.under-over-row .uo-box .casino-odds-box {
  width: 45%;
}

/* Teenpatti2Cards / Mogambo Scoped Styles */
.teenpatti2cards .casino-nation-detail {
  width: 60%;
}
.teenpatti2cards .casino-odds-box {
  width: 20%;
}
.teenpatti2cards .mini-baccarat .casino-nation-detail {
  width: 60%;
}
.teenpatti2cards .mini-baccarat .casino-odds-box {
  width: 40%;
}
.teenpatti2cards .three-card-total {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}
.teenpatti2cards .three-card-total .casino-table-left-box {
  width: 50%;
  min-width: 320px;
  max-width: 480px;
}
.teenpatti2cards .three-card-total .casino-table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
}
.teenpatti2cards .three-card-total .casino-nation-detail {
  width: 60%;
}
.teenpatti2cards .three-card-total .casino-odds-box {
  width: 20%;
  min-height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Universal Suspended Lock Box */
.casino-odds-box.suspended-box {
  background: #3b444b !important;
  color: #fff !important;
  cursor: not-allowed !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
.casino-odds-box.suspended-box img {
  display: block !important;
  margin: 0 auto !important;
  width: 14px !important;
  height: 14px !important;
  filter: invert(1) !important;
}

/* Suits & Odd/Even Row */
.teenpatti2 .teen2other {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
}
.teenpatti2 .teen2other .casino-odds-box {
  flex: 1 1 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #3b444b;
  color: #fff;
  border-radius: 4px;
  min-height: 42px;
  cursor: pointer;
}
.teenpatti2 .teen2other img {
  height: 26px;
  width: auto;
}

/* 12 Cards Grid */
.teenpatti2 .teen2cards {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 3px;
  width: 100%;
}
.teenpatti2 .card-odd-box {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  position: relative;
  cursor: pointer;
}
.teenpatti2 .card-odd-box img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}
.teenpatti2 .card-odd-box .casino-odds {
  font-size: 11px;
  font-weight: 700;
  color: #495057;
  display: block;
  margin-bottom: 2px;
}

/* ---- Doli Dana (2 dice) ---- */
.doli-dana {
  width: 100%;
}
.doli-dana .casino-detail {
  padding: 8px !important;
}
.doli-dana .doli-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
}
.doli-dana .players-bet {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.doli-dana .players-bet .casino-table-row {
  width: 100%;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 2px 12px;
  min-height: 42px;
  margin-bottom: 0;
}
.doli-dana .players-bet .casino-nation-detail {
  flex: 1;
}
.doli-dana .players-bet .player-odds-box {
  width: 72px;
  min-width: 72px;
}
.doli-dana .side-bets {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doli-dana .any-pair {
  width: 100%;
  background: #0000000a;
  padding: 6px 8px 8px;
  border-radius: 4px;
}
.doli-dana .any-pair .casino-odds-box {
  width: 100%;
  min-height: 38px;
  border-radius: 4px;
}
.doli-dana .doli-middle-bets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  width: 100%;
  align-items: flex-end;
  background: #0000000a;
  padding: 8px;
  border-radius: 4px;
}
.doli-dana .doli-middle-bets .doli-odds-box {
  width: 100%;
}
.doli-dana .doli-middle-bets .seven-box-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.doli-dana .seven-img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  transition: transform 0.15s;
}
.doli-dana .seven-img:active {
  transform: scale(0.95);
}
.doli-dana .doli-other-bets {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.doli-dana .particular-pair {
  width: 100%;
  background: #0000000a;
  padding: 8px;
  border-radius: 4px;
}
.doli-dana .particular-pair h4,
.doli-dana .sum-odds h4 {
  font-size: 13px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 6px;
  margin-top: 0;
}
.doli-dana .particular-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  width: 100%;
}
.doli-dana .particular-grid .doli-odds-box {
  width: 100%;
}
.doli-dana .sum-odds {
  width: 100%;
  background: #0000000a;
  padding: 8px;
  border-radius: 4px;
}
.doli-dana .sum-grid-row1 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  width: 100%;
}
.doli-dana .sum-grid-row2 {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: 100%;
}
.doli-dana .sum-grid-row2 .sum-box {
  width: calc((100% - 20px) / 6);
}
.doli-dana .odd-name {
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2px;
  color: #333;
}
.doli-dana .sum-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 22px;
}
.doli-dana .sum-lbl {
  font-size: 8px;
  line-height: 1;
  color: #666;
  white-space: nowrap;
}
.doli-dana .sum-num {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  color: #222;
}
.doli-dana .casino-odds-box {
  border-radius: 4px;
  min-height: 38px;
  width: 100%;
}
.doli-dana .casino-volume {
  font-weight: 400;
  font-size: 10px;
}
.doli-dana .casino-odds {
  font-size: 14px;
  font-weight: bold;
}
.doli-dana .doli-dana-rules {
  margin-top: 8px;
}
.doli-dana .doli-dana-rules .sidebar-title {
  background-color: #20263f !important;
  color: #fff;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  padding: 6px 10px;
}
.doli-dana .doli-dana-rules .sidebar-title h5 {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}
.doli-dana-rules td, .doli-dana-rules th {
  text-align: center;
  vertical-align: middle;
}
.doli-dana-rules img {
  height: 24px;
  width: 24px;
  margin: 0 2px;
}

/* Desktop layout: keep side-by-side view on laptop/desktop */
@media (min-width: 769px) {
  .doli-dana .doli-main {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
  }
  .doli-dana .players-bet {
    width: 38%;
    justify-content: space-between;
  }
  .doli-dana .players-bet .casino-table-row {
    margin-bottom: 4px;
  }
  .doli-dana .side-bets {
    width: 62%;
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
  }
  .doli-dana .any-pair {
    width: 20%;
    margin-bottom: 0;
  }
  .doli-dana .doli-middle-bets {
    width: 80%;
    margin-bottom: 0;
  }
  .doli-dana .doli-other-bets {
    flex-direction: row;
    gap: 12px;
  }
  .doli-dana .particular-pair {
    width: 38%;
  }
  .doli-dana .sum-odds {
    width: 62%;
  }
}

/* Authentic Video Cards Overlay (Teenpatti, 20-20, etc.) */
.casino-video-cards {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 10px;
  border-radius: 4px;
  z-index: 10;
  pointer-events: none;
}
.casino-video-cards h5 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 3px 0;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}
.casino-video-cards .flip-card-container {
  display: flex;
  gap: 5px;
  align-items: center;
}
.casino-video-cards .flip-card {
  width: 32px;
  height: 44px;
  perspective: 1000px;
  background: transparent;
}
.casino-video-cards .flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
}
.casino-video-cards .flip-card-front,
.casino-video-cards .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
}
.casino-video-cards .flip-card img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  display: block;
}
@media (max-width: 767px) {
  .casino-video-cards {
    top: 4px !important;
    left: 4px !important;
    padding: 3px 6px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border-radius: 5px !important;
    backdrop-filter: blur(2px) !important;
    z-index: 10 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5) !important;
  }
  .casino-video-cards h5 {
    font-size: 9.5px !important;
    font-weight: 800 !important;
    margin-bottom: 2px !important;
    line-height: 1 !important;
  }
  .casino-video-cards .teen-players-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
  }
  .casino-video-cards .teen-players-row > div {
    margin-top: 0 !important;
  }
  .casino-video-cards .flip-card-container {
    gap: 2px !important;
  }
  .casino-video-cards .flip-card {
    width: 19px !important;
    height: 27px !important;
  }
  .casino-video-cards .flip-card img {
    border-radius: 2px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
  }
}

.ball-runs.lucky15-result-badge,
.player-unique-r,
.ball-runs.player-unique-r {
  width: 28px !important;
  height: 28px !important;
  line-height: 28px !important;
  border-radius: 50% !important;
  background: #236338 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 4px !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
  text-decoration: none !important;
}

.ball-runs.lucky15-result-badge span,
.ball-runs.lucky15-result-badge * {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}

.ball-runs.lucky7-result-badge {
  width: 28px !important;
  height: 28px !important;
  line-height: 28px !important;
  border-radius: 50% !important;
  background: #236338 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 4px !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
  text-decoration: none !important;
}

.ball-runs.lucky7-result-badge.low,
.ball-runs.lucky7-result-badge.low * {
  color: #ffb703 !important;
}

.ball-runs.lucky7-result-badge.high,
.ball-runs.lucky7-result-badge.high *,
.ball-runs.lucky7-result-badge.tie,
.ball-runs.lucky7-result-badge.tie * {
  color: #ffffff !important;
}

.ball-runs.btable-result {
  background-color: #276738 !important;
  color: #ffff33 !important; /* D247: yellow letters */
  font-weight: 800 !important;
}

.ball-runs.casino-dt-t {
  background-color: #279532 !important;
  color: #fff !important;
  border-radius: 50% !important;
  font-weight: 700 !important;
}

.ball-runs.casino-dt-d {
  background-color: #dc2626 !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  font-weight: 700 !important;
}

.ball-runs.casino-dt-tie {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  font-weight: 700 !important;
}

/* ===== Teen32 (Instant Teenpatti 2.0) Betting Table Responsive ===== */
.teen32-players-row {
  display: flex;
  flex-direction: row;
}

.teen32-player-col {
  flex: 1;
  min-width: 0;
}

.teen32-player-col-divider {
  border-right: 2px solid #94a3b8;
}

@media (max-width: 767px) {
  .teen32-players-row {
    flex-direction: column !important;
  }

  .teen32-player-col {
    flex: none !important;
    width: 100% !important;
  }

  .teen32-player-col-divider {
    border-right: none !important;
    border-bottom: 2px solid #94a3b8;
  }
}

/* ===== Premium Casino Announcement / Marquee Ticker ===== */
.notice-casino-odds {
  background: #0d4a36 !important;
  border: 1px solid #063d2c !important;
  border-radius: 3px !important;
  padding: 4px 10px !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  margin: 6px 0 10px 0 !important;
  display: flex !important;
  align-items: center !important;
  min-height: 32px !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2) !important;
  overflow: hidden !important;
}

.marqueeN {
  width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
}

.marqueeN p {
  display: inline-block !important;
  padding-left: 100% !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  animation: marquee 22s linear infinite !important;
}

/* ===== Casino Queen Result Circle Badges ===== */
.ball-runs.casino-queen-badge {
  background-color: #1b5e20 !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}


/* D247 virtual tables (vlucky7, vtrio, vdtl20, vteenmuf): phones get a smaller flip timer pinned inside the green table */
@media (max-width: 768px) {
  .card-body.vlucky7 .clock2digit,
  .card-body.vtrio .clock2digit,
  .card-body.vdtl20 .clock2digit,
  .card-body.vteenmuf .clock2digit,
  .card-body.vaaa .clock2digit,
  .card-body.vbtable .clock2digit,
  .card-body.vdt6 .clock2digit,
  .card-body.vteen .clock2digit,
  .card-body.vteen20 .clock2digit {
    transform: scale(0.42);
    transform-origin: right bottom;
    right: 6px;
    bottom: 4px;
  }
}

/* Rules popups: the global CSS hides list bullets; bring them back where a popup opts in */
.rules-bullets ul {
  padding-left: 20px;
}
.rules-bullets ul > li {
  list-style: disc !important;
  display: list-item !important;
}
.rules-bullets-list > li {
  list-style: disc !important;
  display: list-item !important;
}
/* rules popup tables drawn as a grid, like D247 / noballexch */
.rules-bullets table {
  width: 100%;
  border-collapse: collapse !important;
  margin-bottom: 10px;
}
.rules-bullets table th,
.rules-bullets table td {
  border: 1px solid #c8cdd3 !important;
  padding: 7px 8px !important;
  text-align: center;
  background: #f2f2f2;
  font-weight: 400;
}
