body {
  font-family: "Poppins", sans-serif;
  background: radial-gradient(circle at top, #222, #000);
  color: #fff;
  margin: 0;
  text-align: center;
  overflow-x: hidden;
}

h1 {
  font-size: 3rem;
  margin: 20px 0;
  color: #f5d142;
  text-shadow: 0 0 15px rgba(245,210,66,0.7);
}

#balance {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

/* Chip selection */
.chip-select {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.chip {
  padding: 12px 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  font-weight: bold;
  background: #333;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.chip:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(255,255,255,0.4);
}

.chip.active {
  background: #f5d142;
  color: #000;
  box-shadow: 0 0 15px rgba(245,210,66,0.7);
}

/* Bet buttons */
.bet-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.bet-buttons button {
  padding: 12px 20px;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.bet-buttons button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255,255,255,0.5);
}

.red { background:#c0392b; color:white; }
.black { background:#2c3e50; color:white; }
.even { background:#2980b9; color:white; }
.odd { background:#8e44ad; color:white; }

/* Wheel */
#wheel-container {
  margin: 20px auto;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 10px solid #333;
  box-shadow: 0 0 40px rgba(245,210,66,0.5);
}

#wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  transform: rotate(0deg);
  transition: transform 5s cubic-bezier(0.25,0.1,0.25,1);
}

/* Number circles around the wheel */
.number-circle {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.number-circle:hover {
  transform: scale(1.3);
  box-shadow: 0 0 10px #fff;
}

/* Spin button */
#spin {
  margin: 20px auto;
  padding: 12px 24px;
  font-size: 1.2rem;
  border-radius: 10px;
  border: none;
  background: #f5d142;
  cursor: pointer;
  color: #000;
  transition: transform 0.2s;
}
#spin:hover { transform: scale(1.05); }

#result {
  margin-top: 15px;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 0 12px rgba(255,255,255,0.5);
}

/* Bet History */
#history-container {
  margin-top: 30px;
  width: 90%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

#history-container h2 {
  color: #f5d142;
  text-shadow: 0 0 8px rgba(245,210,66,0.7);
}

#history-container ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

#history-container li {
  margin: 4px 0;
  padding: 4px 6px;
  border-bottom: 1px solid #555;
}

/* Hidden dev box */
#secret {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 25px;
  height: 25px;
  background: white;
  opacity: 0.05;
  cursor: pointer;
}

#cheatPanel {
  display: none;
  position: fixed;
  bottom: 50px;
  right: 10px;
  background: #222;
  padding: 15px;
  border: 2px solid #f5d142;
  border-radius: 8px;
}

#cheatPanel input {
  width: 100px;
  padding: 6px;
  margin-right: 10px;
}

#cheatPanel button {
  padding: 6px 10px;
}
