.container {
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pieChartWrapper {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.baccaratTable {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Top row with 4 boxes */
.topRow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.betBox {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  height: 80px;
  position: relative;
  border-radius: 4px;
}

.betName {
  font-size: 0.9rem;
  font-weight: bold;
  padding-top: 8px;
}

.betRatio {
  font-size: 0.8rem;
  padding-bottom: 8px;
}

.exposure {
  font-size: 10px;
  font-weight: bold;
  line-height: 1;
  margin-top: 2px;
}

/* Bottom row with 5 boxes in fixed visual order */
.bottomRow {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}

.betOption {
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  height: 80px;
  position: relative;
  border-radius: 4px;
}

/* Info label in bottom row */
.info {
  font-size: 0.9rem;
  font-weight: bold;
  position: relative;
  top: 8px;
}

/* Lock overlay for both rows */
.lockOverlay {
  position: absolute;
  inset: 0;
  background-color: rgba(88, 91, 93, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  border-radius: inherit;
}

.locked {
  pointer-events: none;
}

/* Card display for Player and Banker in bottom row */
.withCards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-bottom: 8px;
}

.cardIcons {
  display: flex;
  gap: 2px;
}

.card {
  width: 16px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
}

/* Bottom row background colors */
.playerpair {
  background-color: #086cb8;
  border-top-left-radius: 34px;
  border-bottom-left-radius: 34px;
}

.player {
  background-color: #086cb8;
}

.tie {
  background-color: #279532;
}

.banker {
  background-color: #ae2130;
}

.bankerpair {
  background-color: #ae2130;
  border-top-right-radius: 34px;
  border-bottom-right-radius: 34px;
}

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

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

  .bottomRow {
    grid-template-columns: repeat(5, 1fr);
    margin-bottom: 5px;
  }

  .betBox,
  .betOption {
    height: 60px;
    font-size: 0.7rem;
  }

  .betName, .info {
    font-size: 0.75rem;
  }

  .betRatio,
  .withCards {
    font-size: 0.65rem;
  }

  .card {
    width: 12px;
    height: 16px;
  }
}
