.betTableContainer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #b3aca7;
  font-family: Arial, sans-serif;
  border-radius: 4px;
  overflow: hidden;
}

.betTableContainer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #b3aca7;
  font-family: Arial, sans-serif;
  border-radius: 4px;
  overflow: hidden;
  padding-bottom: 5px;
}

/* Top Warnings */
.topWarningRow {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px;
  margin-bottom: 5px;
}

.warningBox {
  background: #666;
  color: white;
  padding: 5px 15px;
  border-radius: 15px;
  font-weight: bold;
  font-size: 12px;
  flex: 1;
  text-align: center;
  position: relative;
}

.centerWarning {
  background: #666;
  flex: 0 0 100px;
  /* Smaller fixed width for center */
}

/* Main Container */
.mainContainer {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
}

.sideBox {
  width: 80px;
  background: #b3aca7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  align-self: stretch;
}

.sideLabel {
  font-size: 18px;
}

.sideRange {
  font-size: 16px;
}

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

/* 18-Column Grid Row */
.row18 {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  gap: 2px;
}

.gridCell {
  background: #c4bcb5;
  padding: 5px 2px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 60px;
  border-radius: 2px;
  position: relative;
}

.anyTripleCell {
  background: #c4bcb5;
  font-size: 10px;
  font-weight: bold;
  line-height: 1.1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Dice Row Cells */
.diceCell {
  background: #c4bcb5;
  padding: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  border-radius: 2px;
  position: relative;
}

.betInfoBox {
  background-color: #666;
  color: white;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  height: 24px;
  white-space: nowrap;
  overflow: hidden;
}

/* Bottom Section */
.bottomSection {
  margin-top: 5px;
}

.bottomHeader {
  background-color: #666;
  color: white;
  padding: 5px;
  text-align: center;
  font-weight: bold;
  border-radius: 15px;
  margin-bottom: 2px;
}

.gridTwoDice {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 2px;
}

/* Common Item Styles */
.gridItem {
  background-color: #c4bcb5;
  padding: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  min-height: 45px;
  position: relative;
}

/* Responsive */
@media (max-width: 1024px) {
  .gridTwoDice {
    grid-template-columns: repeat(8, 1fr);
  }

  .sideBox {
    min-height: auto;
    width: 60px;
  }

  .betInfoBox {
    font-size: 9px;
  }

  .middleComplexGrid {
    display: flex;
    flex-wrap: wrap;
  }

  .gridCell {
    width: 19%;
    height: 50px;
    margin-bottom: 2px;
  }

  /* 5 cols roughly */
  .anyTripleCell {
    width: 100%;
    order: -1;
    margin-bottom: 5px;
  }

  /* Move Any Triple to top of grid on tablet */
}

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

  .sideBox {
    width: 100%;
    height: 50px;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 20px;
    margin-bottom: 5px;
  }

  .row18 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Break into 4 cols on mobile */
    gap: 2px;
  }

  .betInfoBox {
    display: none;
  }

  /* Hide info headers on mobile */
  .anyTripleCell {
    grid-column: span 4;
    order: -1;
    margin-bottom: 2px;
  }

  .diceCell {
    min-height: 50px;
  }

  .gridCell {
    min-height: 50px;
  }

  .gridTwoDice {
    grid-template-columns: repeat(4, 1fr);
  }

  .mainTopSection {
    flex-direction: column;
    height: auto;
  }

  .middleComplexGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }

  .gridCell {
    width: auto;
    height: 50px;
    margin: 0;
  }

  .anyTripleCell {
    grid-column: span 4;
    height: 30px;
  }

  .grid6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .warningBox {
    font-size: 10px;
    padding: 5px;
  }
}

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

  .anyTripleCell {
    grid-column: span 3;
  }

  .gridTwoDice {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Lock Overlay */
.lock {
  position: relative;
  pointer-events: none;
}

.lockOverlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
  .gridTwoDice {
    grid-template-columns: repeat(8, 1fr);
  }

  .middleComplexGrid {
    display: flex;
    flex-wrap: wrap;
  }

  .gridCell {
    width: 19%;
    height: 50px;
    margin-bottom: 2px;
  }

  /* 5 cols roughly */
  .anyTripleCell {
    width: 100%;
    order: -1;
    margin-bottom: 5px;
  }

  /* Move Any Triple to top of grid on tablet */
}

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

  .sideBox {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 20px;
    height: 40px;
    margin-bottom: 5px;
  }

  .middleComplexGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }

  .gridCell {
    width: auto;
    height: 50px;
    margin: 0;
  }

  .anyTripleCell {
    grid-column: span 4;
    height: 30px;
  }

  .grid6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .gridTwoDice {
    grid-template-columns: repeat(4, 1fr);
  }

  .warningBox {
    font-size: 10px;
    padding: 5px;
  }
}