.chip-select {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip-btn {
  flex: 1;
  min-width: 52px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  color: var(--text-dim);
  padding: 10px 6px;
  border-radius: 20px;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.chip-btn:hover { border-color: var(--gold); color: var(--gold-bright); }
.chip-btn.active {
  background: var(--gold);
  color: #1a1200;
  border-color: var(--gold);
}

.history-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.history-chip {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}
.history-chip.red { background: #d81e2f; }
.history-chip.black { background: #232323; border: 1px solid #444; }
.history-chip.green { background: #1a9e4b; }

/* ---------- Wheel ---------- */
.wheel-stage {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 20px solid var(--gold-bright);
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.wheel-outer {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #3a2c10, #1a1400 90%);
  border: 8px solid #7a5a12;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), inset 0 0 20px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-spin {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  will-change: transform;
}

.wheel-spin svg { width: 100%; height: 100%; display: block; }

.wheel-center {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a2035, #14101c);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: var(--gold-bright);
  box-shadow: 0 0 12px rgba(245,184,0,0.4);
}

/* ---------- Table ---------- */
.table-wrap {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.number-grid {
  display: grid;
  grid-template-columns: 52px repeat(12, 1fr);
  grid-template-rows: repeat(3, 44px);
  gap: 3px;
  margin-bottom: 6px;
}

.bet-cell {
  border: none;
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.12s, transform 0.08s;
  user-select: none;
}
.bet-cell:hover { filter: brightness(1.25); }
.bet-cell:active { transform: scale(0.96); }

.bet-cell.zero-cell {
  grid-row: 1 / span 3;
  grid-column: 1;
  background: linear-gradient(160deg, #1a9e4b, #12703a);
  border-radius: 6px 4px 4px 6px;
}
.bet-cell.red { background: linear-gradient(160deg, #e0293d, #b3172a); }
.bet-cell.black { background: linear-gradient(160deg, #2e2e34, #17171a); }

.outside-bets {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bet-row {
  display: grid;
  gap: 4px;
}
.columns-row { grid-template-columns: 52px repeat(3, 1fr); }
.columns-row .spacer { visibility: hidden; }
.dozens-row { grid-template-columns: 52px repeat(3, 1fr); }
.dozens-row .spacer { visibility: hidden; }
.evenmoney-row { grid-template-columns: 52px repeat(6, 1fr); }
.evenmoney-row .spacer { visibility: hidden; }

.outside-bets .bet-cell {
  height: 42px;
  background: linear-gradient(160deg, #1c2438, #141b2b);
  border: 1px solid var(--border);
  font-size: 12px;
}
.outside-bets .bet-cell.red-text { color: #f66; }
.outside-bets .bet-cell.black-text { color: #ccc; }

.chip-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: var(--gold);
  color: #1a1200;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 10px;
  border: 2px solid #0a0e17;
  min-width: 18px;
  text-align: center;
  pointer-events: none;
}

.bet-cell.winning-cell {
  animation: winning-glow 0.7s ease infinite alternate;
}
@keyframes winning-glow {
  from { box-shadow: 0 0 0 2px var(--gold-bright); }
  to { box-shadow: 0 0 14px 4px var(--gold-bright); }
}

.bet-cell.disabled-board {
  pointer-events: none;
  opacity: 0.75;
}

@media (max-width: 720px) {
  .number-grid { grid-template-columns: 36px repeat(12, 1fr); grid-template-rows: repeat(3, 34px); }
  .bet-cell { font-size: 11px; }
  .columns-row, .dozens-row { grid-template-columns: 36px repeat(3, 1fr); }
  .evenmoney-row { grid-template-columns: 36px repeat(6, 1fr); }
  .outside-bets .bet-cell { height: 34px; font-size: 10px; }
  .wheel-stage, .wheel-outer { width: 240px; height: 240px; }
  .wheel-spin { width: 224px; height: 224px; }
}
