.betTableContainer {
  width: 100%;
  background-color: var(--color-bg-alt);
  color: var(--color-text-main);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 5px;
}

/* Desktop View - Show on xl (1200px) and above */
.desktopView {
  display: block;
  width: 100%;
}

/* Mobile View - Hide on xl and above */
.mobileView {
  display: none;
  width: 100%;
}

@media (min-width: 1200px) {
  .desktopView {
    display: block;
  }

  .mobileView {
    display: none;
  }
}

/* Top Warnings Row */
.topWarningRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 2px;
}

.warningBox {
  background-color: var(--color-overlay-lock);
  color: var(--color-text-inverse);
  border-radius: 10px;
  padding: 0 5px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  min-width: 70px;

}

.centerWarning {
  flex: 0 0 auto;
  min-width: 60px;
}

@media (min-width: 1200px) and (max-width: 1599px) {
  .warningBox {
    padding: 0 10px;
    font-size: 9px;
  }
}

/* Main Container */
.mainContainer {
  display: flex;
  width: 100%;
  gap: 2px;
  margin-top: 5px;
}

/* Side Boxes (Small/Big) */
.sideBox {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  min-width: 60px;
}

.smallBox,
.bigBox {
  flex: unset;
  min-width: 60px;
}

/* Square Box - Base Style */
.squareBox {
  text-transform: uppercase;
  background-image: linear-gradient(rgba(153, 146, 135, 0.7), rgba(162, 142, 130, 0.7));
  border-radius: 6px;
  padding: 6px 5px;
  color: var(--color-text-black);
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin: 0 1px;
  /* flex: 1 1 auto; */
  cursor: pointer;
  position: relative;
  min-width: 37px;
  /* width: 100%; */
}

@media (max-width: 768px) {
  .squareBox {
    min-width: 50px;
    flex: 1;
  }
}

/* Center Section */
.centerSection {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* 18-Column Grid Row */
.row18 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Grid Cell */
.gridCell {
  min-height: 50px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .gridCell {
    min-height: auto;
  }
}

/* Middle Top Row - Odd/Even boxes */
.grayCell {
  /* font-size: 12px;
  font-weight: bold; */
}

.cellLabel {
  font-size: 11px;
  /* font-weight: bold; */
  line-height: 1.2;
}

.grayCell>div:first-child {
  /* font-size: 13px; */
  /* font-weight: bold; */
}

.number {
  font-weight: bold;
  font-size: 16px;
  line-height: 1.2;
}

.boxValue {
  font-size: 10px;
  margin-top: 3px;
  font-weight: normal !important;
  /* line-height: 1.2; */
}

.anyTripleCell {
  grid-column: span 2;
  min-width: 0;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.anyTripleText {
  font-size: 11px;
  /* font-weight: bold; */
  text-align: center;
  word-break: break-word;
  line-height: 1.3;
  padding: 2px;
}

/* Middle Middle Row */
.middleMiddleRow {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 10px;
  width: 100%;
}

.middleMiddleRow .cubeBoxContainer {
  flex: 1 auto;
}

.cubeBoxContainer {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  margin: 0 1px;
}

.cubeBoxGroup {
  display: flex;
  flex-wrap: wrap;
  margin-top: 5px;
}

/* Title Box (Info Headers) */
.titleBox {
  background-color: var(--color-secondary);
  color: var(--color-text-inverse);
  border-radius: 10px;
  padding: 0 5px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  min-width: 70px;
  white-space: nowrap;
  flex-direction: row;
}

.titleBox span {
  margin: 0 3px;
  white-space: nowrap;
}

/* Dice Cell */
.diceCell {
  /* min-height: 55px; */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Cube Box - Dice Container */
.cubeBox {
  width: 50px;
  height: 50px;
  position: relative;
}

/* Single Dice */
.cubeSingle img {
  height: 30px;
  /* width: auto; */
  /* object-fit: contain; */
  display: block;
  margin: 0 auto;
}

/* Double Dice */
.cubeDouble {
  position: relative;
}

.cubeDouble img {
  height: 17px;
  width: 17px;
  object-fit: contain;
  flex-shrink: 0;
}

.cubeDouble img:first-child {
  position: absolute;
  left: 5px;
  top: 5px;
}

.cubeDouble img:last-child {
  position: absolute;
  right: 5px;
  bottom: 5px;
}

/* Triple Dice */
.cubeTriple {
  position: relative;
}

.cubeTriple img {
  height: 17px;
  width: 17px;
  object-fit: contain;
  flex-shrink: 0;
}

.cubeTriple img:nth-child(1) {
  position: absolute;
  left: 5px;
  top: 5px;
}

.cubeTriple img:nth-child(2) {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.cubeTriple img:nth-child(3) {
  position: absolute;
  right: 5px;
  bottom: 5px;
}

/* Combination Dice (Two different dice) */
.cubeCombination {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

.cubeCombination img {
  height: 17px;
  width: 17px;
  object-fit: contain;
  flex-shrink: 0;
  position: static;
}

@media only screen and (min-width: 1400px) and (max-width: 1599px) {
  .middleMiddleRow .cubeBox {
    width: 32px;
  }

  .cubeSingle img {
    height: 30px;
  }

  .cubeDouble img {
    height: 17px;
    width: 17px;
  }

  .cubeTriple img {
    height: 17px;
    width: 17px;
  }

  .cubeCombination img {
    height: 17px;
    width: 17px;
  }
}

/* Bottom Section */
.bottomSection {
  display: flex;
  margin-top: 10px;
  width: 100%;
}

/* Mobile styles for Bottom Section - Two Dice */
@media only screen and (max-width: 767px) {
  .bottomSection .cubeBoxContainer {
    width: 100%;
    margin: 0 auto;
    flex-direction: column;
  }

  .bottomSection .cubeBoxGroup {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 5px;
  }

  .bottomSection .cubeBox {
    width: 19%;
    height: auto;
    margin-bottom: 5px;
    flex: 0 0 auto;
    min-width: 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2px;
  }

  /* Remove absolute positioning for dice in mobile bottom section */
  .bottomSection .cubeCombination img {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    height: 20px !important;
    width: 20px !important;
    object-fit: contain;
    flex-shrink: 0;
  }

  /* Ensure images maintain size when suspended */
  .bottomSection .suspendedBox .cubeCombination img {
    height: 20px !important;
    width: 20px !important;
    flex-shrink: 0;
  }
}

/* Suspended Box Overlay */
.suspendedBox {
  position: relative;
  pointer-events: none;
  cursor: not-allowed;
}

/* Ensure images maintain their size in suspended boxes */
.suspendedBox img {
  flex-shrink: 0;
  max-width: 100%;
}

.suspendedBox::after {
  content: "";
  background-color: var(--color-overlay-lock);
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  cursor: not-allowed;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  /* border-radius: 6px; */
  z-index: 1;
}

.suspendedBox::before {
  content: "";
  background-image: url('../../../assets/img/lock.svg');
  background-size: 17px 17px;
  filter: invert(1);
  background-repeat: no-repeat;
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  pointer-events: none;
}

/* Lock Overlay (for React icon) */
.lockOverlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
  pointer-events: none;
}

/* Side Label and Range */
.sideLabel {
  font-weight: bold;
  font-size: 16px;
  line-height: 1.2;
}

.sideRange {
  font-size: 13px;
  margin-top: 3px;
  line-height: 1.2;
}

/* Media Queries */
@media only screen and (min-width: 1400px) and (max-width: 1599px) {
  .grayCell {
    margin: 0 2px;
    min-width: 33px;
    font-size: 10px;
    padding: 0;
  }
}

@media (max-width: 1024px) {
  .row18 {
    grid-template-columns: repeat(9, 1fr);
  }

  .sideBox {
    min-width: 50px;
  }
}

/* Mobile Middle Section */
.mobileMiddle {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
}

.mobileMiddleLeft {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobileMiddleRight {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 1199px) {

  /* Hide desktop view on mobile */
  .desktopView {
    display: none !important;
  }

  /* Show mobile view */
  .mobileView {
    display: block !important;
  }

  .mobileView .topWarningRow {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 5px;
  }

  .mobileView .cubeBoxContainer {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    margin: 0 1px;
  }

  .mobileView .cubeBoxGroup {
    display: flex;
    flex-wrap: wrap;
    margin: 5px 0px;
    gap: 2px;
  }

  .mobileMiddle {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 10px;
  }

  .mobileMiddleLeft {
    flex: 0 0 auto;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobileMiddleRight {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobileView .row18 {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
  }

  .mobileView .middleMiddleRow {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 10px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .mobileMiddle {
    flex-direction: column;
  }

  .mobileMiddleLeft {
    width: 100%;
  }

  .mobileMiddleRight {
    width: 100%;
  }

  .cubeBox {
    width: 45px;
    height: 45px;
  }

  .cubeSingle img {
    height: 28px;
  }

  .cubeDouble img {
    height: 20px;
    /* width: 20px; */
  }

  .cubeTriple img {
    height: 20px;
    /* width: 20px; */
  }

  .cubeCombination img {
    height: 20px;
    /* width: 20px; */
  }

  .warningBox {
    font-size: 9px;
    padding: 0 3px;
  }
}

@media (max-width: 480px) {
  .row18 {
    grid-template-columns: repeat(3, 1fr);
  }

  .anyTripleCell {
    grid-column: span 3;
  }

  .cubeBoxGroup {
    grid-template-columns: repeat(2, 1fr);
  }
}