/* ============================================
   RiskQuest Roulette — "The Spin" Styles
   ============================================ */

* { box-sizing: border-box; }

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #3d5a80 0%, #4d6a90 50%, #3d6090 100%);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

button { cursor: pointer; }

/* ── Header (matches existing pages) ── */
.header {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 40px;
  border-bottom: 2px solid rgba(94, 190, 255, 0.3);
  position: sticky;
  top: 0;
  height: 90px;
  background: linear-gradient(135deg, rgba(20, 40, 80, 0.95), rgba(30, 50, 100, 0.95));
  backdrop-filter: blur(10px);
  z-index: 100;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.games-header {
  color: white;
  font-family: "Orbitron", sans-serif;
  font-size: 28px;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
}
.games-header:hover { color: #5ebeff; }

.header-left { display: flex; align-items: center; gap: 20px; }

.version-badge {
  background: rgba(94, 190, 255, 0.2);
  border: 1px solid rgba(94, 190, 255, 0.4);
  color: #5ebeff;
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
}

.header-nav { display: flex; gap: 15px; margin-left: auto; align-items: center; }

.header-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-weight: 600;
}
.header-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(94, 190, 255, 0.3);
}
.header-btn.shop-btn {
  background: linear-gradient(135deg, #5ebeff, #7dd3ff);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  font-weight: bold;
}
.header-btn.shop-btn:hover {
  background: linear-gradient(135deg, #70c8ff, #90ddff);
  box-shadow: 0 4px 20px rgba(94, 190, 255, 0.5);
}
.header-btn.inventory-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.money-amount {
  color: white;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(94, 190, 255, 0.15);
  border: 2px solid rgba(94, 190, 255, 0.4);
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: 600;
}

.header-auth { display: flex; align-items: center; gap: 8px; margin-left: 15px; }
.header-auth-link {
  color: white;
  text-decoration: none;
  font-size: 13px;
  padding: 8px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 600;
}
.header-auth-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}
.header-auth-link.signup {
  background: linear-gradient(135deg, #5ebeff, #7dd3ff);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.user-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: 'Orbitron', sans-serif; font-size: 18px; font-weight: bold;
  cursor: pointer; transition: all 0.3s ease; text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  position: relative; overflow: hidden;
}
.user-avatar:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6), 0 0 35px rgba(240, 147, 251, 0.4);
}

model-viewer.riskcoin {
  display: inline-block; vertical-align: middle;
  --poster-color: transparent; background: transparent;
}
model-viewer.riskcoin::part(default-progress-bar) { display: none; }
model-viewer.riskcoin::part(default-ar-button) { display: none; }
model-viewer.riskcoin-header { width: 42px; height: 42px; }

/* ── Main Container ── */
.roulette-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
}

/* ── History Rail ── */
.history-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: rgba(0, 0, 48, 0.4);
  border: 2px solid rgba(94, 190, 255, 0.2);
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
}
.history-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
.history-results {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.history-results::-webkit-scrollbar { display: none; }
.history-dot {
  min-width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: bold; color: white;
  cursor: pointer;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.history-dot:hover { transform: scale(1.2); }
.history-dot.blue { background: #1976d2; }
.history-dot.white { background: #eceff1; border: 1px solid rgba(255,255,255,0.3); }
.history-dot.green { background: #2e7d32; }
/* Legacy compat */
.history-dot.red { background: #1976d2; }
.history-dot.black { background: #eceff1; border: 1px solid rgba(255,255,255,0.3); }
.history-dot.streak-glow { box-shadow: 0 0 8px 3px currentColor; }

/* ── Game Layout ── */
.roulette-game {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* ── Wheel Area ── */
.wheel-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.result-banner {
  font-family: "Orbitron", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-align: center;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.result-banner .result-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
}
.result-banner .result-number.blue { background: #1976d2; }
.result-banner .result-number.white { background: #eceff1; color: #1a1a1a; border: 2px solid rgba(255,255,255,0.4); }
.result-banner .result-number.green { background: #2e7d32; }
.result-banner .result-number.red { background: #1976d2; }
.result-banner .result-number.black { background: #eceff1; color: #1a1a1a; border: 2px solid rgba(255,255,255,0.4); }

.wheel-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#roulette-canvas {
  border-radius: 50%;
  box-shadow:
    0 0 20px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(0, 0, 0, 0.4),
    0 4px 30px rgba(0, 0, 0, 0.5),
    inset 0 0 30px rgba(0, 0, 0, 0.2);
}

.net-result {
  font-family: "Orbitron", sans-serif;
  font-size: 20px;
  font-weight: 700;
  min-height: 30px;
  text-align: center;
}
.net-result.win { color: #4caf50; text-shadow: 0 0 10px rgba(76, 175, 80, 0.5); }
.net-result.loss { color: #f44336; text-shadow: 0 0 10px rgba(244, 67, 54, 0.5); }

/* ── Board Area ── */
.board-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Betting Board ── */
.betting-board {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  grid-template-rows: auto auto auto;
  gap: 0;
  background: rgba(0, 30, 10, 0.6);
  border: 2px solid rgba(94, 190, 255, 0.3);
  border-radius: 12px;
  padding: 8px;
  position: relative;
}

/* Zero cell */
.zero-cell {
  grid-column: 1;
  grid-row: 1 / 2;
  background: #2e7d32;
  color: white;
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px 0 0 0;
  min-height: 120px;
}

/* Number grid */
.board-numbers {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1px;
}

/* Column bets */
.column-bets {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.column-cell {
  flex: 1;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
}
.column-cell:first-child { border-radius: 0 6px 0 0; }
.column-cell:last-child { border-radius: 0 0 6px 0; }

/* Dozens row */
.dozens-row {
  grid-column: 1 / 4;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 2px;
}
.dozen-cell {
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px;
}

/* Outside bets row */
.outside-row {
  grid-column: 1 / 4;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  margin-top: 2px;
}
.outside-cell {
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 4px;
}

/* Board cell base */
.board-cell {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}
.board-cell:hover {
  border-color: rgba(255, 215, 0, 0.6);
  z-index: 2;
}
.board-cell.dimmed {
  opacity: 0.4;
  transition: opacity 0.5s ease;
}
.board-cell.winner-glow {
  box-shadow: 0 0 12px 4px rgba(255, 215, 0, 0.7);
  border-color: gold;
  z-index: 3;
  animation: winnerPulse 0.6s ease-in-out 3;
}
@keyframes winnerPulse {
  0%, 100% { box-shadow: 0 0 12px 4px rgba(255, 215, 0, 0.7); }
  50% { box-shadow: 0 0 20px 8px rgba(255, 215, 0, 1); }
}

/* Number cells */
.number-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  font-weight: 600;
  min-height: 40px;
  position: relative;
}
.number-cell.blue-num { background: rgba(25, 118, 210, 0.7); }
.number-cell.white-num { background: rgba(207, 216, 220, 0.7); color: #1a1a1a; }
/* Legacy compat */
.number-cell.red-num { background: rgba(25, 118, 210, 0.7); }
.number-cell.black-num { background: rgba(207, 216, 220, 0.7); color: #1a1a1a; }

/* Color diamonds for Red/Black bets */
.color-diamond {
  width: 14px; height: 14px;
  transform: rotate(45deg);
  display: inline-block;
  flex-shrink: 0;
}
.red-diamond { background: #1976d2; }
.black-diamond { background: #eceff1; border: 1px solid rgba(255,255,255,0.5); }
.red-bet:hover { background: rgba(25, 118, 210, 0.3); }
.black-bet:hover { background: rgba(207, 216, 220, 0.4); }

/* ── Chip on Board ── */
.board-chip-stack {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  z-index: 5;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.board-chip {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: bold; color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  position: relative;
}
.board-chip-label {
  background: rgba(0, 0, 0, 0.9);
  color: #ffd700;
  font-size: 10px;
  font-weight: bold;
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 2px;
  white-space: nowrap;
  text-shadow: 0 0 4px rgba(255, 215, 0, 0.4);
}

/* ── Hover highlight on numbers ── */
.board-cell.highlight-preview {
  background-color: rgba(255, 215, 0, 0.25) !important;
  border-color: rgba(255, 215, 0, 0.5) !important;
}

/* ── Bet tooltip ── */
.bet-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.92);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  pointer-events: none;
  z-index: 10000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  max-width: 220px;
  line-height: 1.4;
}
.bet-tooltip .tt-title { font-weight: bold; color: #ffd700; margin-bottom: 3px; }
.bet-tooltip .tt-mult { color: #4caf50; }

/* ── Chip Rack ── */
.chip-rack {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(0, 0, 48, 0.4);
  border: 2px solid rgba(94, 190, 255, 0.2);
  border-radius: 10px;
  flex-wrap: wrap;
}
.chip {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--chip-color);
  border: 3px solid var(--chip-border);
  color: white;
  font-size: 13px;
  font-weight: bold;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
  position: relative;
  user-select: none;
}
.chip::after {
  content: '';
  position: absolute;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.3);
}
.chip:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}
.chip.selected {
  transform: translateY(-6px) scale(1.15);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5), 0 0 15px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.3);
  border-color: #ffd700;
}

/* ── Custom Chip ── */
.custom-chip-btn {
  font-size: 20px !important;
  line-height: 1;
}
.custom-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 48, 0.5);
  border: 2px solid rgba(0, 137, 123, 0.5);
  border-radius: 10px;
  animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.custom-chip-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid rgba(94, 190, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 16px;
  font-weight: bold;
  outline: none;
  min-width: 0;
}
.custom-chip-input:focus {
  border-color: rgba(0, 137, 123, 0.8);
  box-shadow: 0 0 12px rgba(0, 137, 123, 0.3);
}
.custom-chip-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.custom-chip-confirm {
  padding: 10px 18px;
  background: linear-gradient(135deg, #00897b, #00695c);
  border: 2px solid rgba(0, 137, 123, 0.6);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}
.custom-chip-confirm:hover {
  background: linear-gradient(135deg, #00a693, #00897b);
  box-shadow: 0 0 15px rgba(0, 137, 123, 0.4);
  transform: translateY(-2px);
}
.custom-chip-cancel {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}
.custom-chip-cancel:hover {
  background: rgba(255, 68, 68, 0.2);
  border-color: rgba(255, 68, 68, 0.5);
  color: #ff6666;
}

/* ── Bet Controls ── */
.bet-controls {
  display: flex;
  gap: 8px;
}
.bet-ctrl-btn {
  flex: 1;
  padding: 10px;
  background: linear-gradient(135deg, rgba(61, 90, 128, 0.5), rgba(77, 106, 144, 0.5));
  color: white;
  border: 2px solid rgba(94, 190, 255, 0.3);
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
  transition: all 0.2s ease;
}
.bet-ctrl-btn:hover {
  background: linear-gradient(135deg, rgba(61, 96, 144, 0.6), rgba(94, 190, 255, 0.3));
  border-color: rgba(94, 190, 255, 0.7);
  box-shadow: 0 0 15px rgba(94, 190, 255, 0.3);
  transform: translateY(-2px);
}
.bet-ctrl-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.bet-ctrl-btn.highlight-rebet {
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

/* ── Spin Row ── */
.spin-row {
  display: flex;
  align-items: center;
  gap: 15px;
}
.total-bet-display {
  color: rgba(255, 255, 255, 0.8);
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  background: rgba(0, 0, 48, 0.4);
  border: 2px solid rgba(94, 190, 255, 0.2);
  border-radius: 8px;
  padding: 12px 20px;
  white-space: nowrap;
}
.total-bet-display span { color: #ffd700; }

.spin-btn {
  flex: 1;
  padding: 16px 30px;
  background: linear-gradient(135deg, #0084ff, #5ebeff);
  border: 2px solid rgba(94, 190, 255, 0.5);
  border-radius: 25px;
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.spin-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #3d6090, #4d6a90);
  color: #5ebeff;
  border-color: rgba(94, 190, 255, 0.8);
  box-shadow: 0 0 25px rgba(94, 190, 255, 0.6);
  transform: translateY(-2px);
}
.spin-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.spin-btn.pulse-ready {
  animation: spinPulse 2s ease-in-out infinite;
}
@keyframes spinPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(94, 190, 255, 0.3); }
  50% { box-shadow: 0 0 25px rgba(94, 190, 255, 0.6), 0 0 50px rgba(94, 190, 255, 0.2); }
}
.spin-btn.spinning {
  background: linear-gradient(135deg, #555, #777);
  border-color: rgba(255, 255, 255, 0.3);
  animation: none;
}

/* ── Statistics Panel ── */
.stats-panel {
  margin-top: 20px;
  background: rgba(0, 0, 48, 0.4);
  border: 2px solid rgba(94, 190, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
}
.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}
.stats-header:hover { color: #5ebeff; }
.stats-arrow { font-size: 10px; transition: transform 0.3s ease; }
.stats-arrow.collapsed { transform: rotate(-90deg); }
.stats-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  padding: 15px 20px;
  border-top: 1px solid rgba(94, 190, 255, 0.15);
}
.stats-body.hidden { display: none; }
.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
}
.stat-label { color: rgba(255, 255, 255, 0.5); font-size: 12px; }
.stat-value { color: white; font-size: 14px; font-weight: 600; }

/* ── Win Celebrations ── */
@keyframes confettiFall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
.confetti-piece {
  position: fixed;
  width: 10px; height: 10px;
  z-index: 9999;
  pointer-events: none;
  animation: confettiFall var(--fall-duration, 3s) linear forwards;
}

@keyframes massiveWinBanner {
  0% { transform: scale(0); opacity: 0; }
  15% { transform: scale(1.1); opacity: 1; }
  85% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0; }
}
.massive-win-banner {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Orbitron", sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.4);
  z-index: 10001;
  animation: massiveWinBanner 3s ease-in-out forwards;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}

/* Number counter animation */
@keyframes counterTick {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ── Footer ── */
.footer {
  background: linear-gradient(135deg, rgba(20, 40, 80, 0.9), rgba(30, 50, 100, 0.9));
  border-top: 2px solid rgba(94, 190, 255, 0.3);
  padding: 40px 60px;
  margin-top: auto;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}
.footer-content { max-width: 1600px; margin: 0 auto; text-align: center; }
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
  font-weight: 500;
}
.footer-link:hover { color: #5ebeff; text-shadow: 0 0 10px rgba(94, 190, 255, 0.5); }
.footer-divider { color: rgba(94, 190, 255, 0.4); }
.footer-copyright { color: rgba(255, 255, 255, 0.5); font-size: 12px; margin: 0; }

/* ── Flash balance red on insufficient funds ── */
@keyframes balanceFlash {
  0%, 100% { color: white; }
  25%, 75% { color: #ff4444; }
}
.balance-flash { animation: balanceFlash 0.6s ease 2; }

/* ── Board locked (spinning) ── */
.board-area.locked {
  pointer-events: none;
  opacity: 0.65;
  transition: opacity 0.3s ease;
}

/* ── Responsive: Mobile ── */
@media (max-width: 1024px) {
  .roulette-game {
    flex-direction: column;
    align-items: center;
  }
  .wheel-area {
    width: 100%;
    max-width: 400px;
  }
  #roulette-canvas {
    width: 100%;
    height: auto;
  }
  .board-area {
    width: 100%;
  }
  .header {
    padding: 0 15px;
    height: 70px;
    gap: 10px;
  }
  .games-header { font-size: 20px; }
  .header-btn { padding: 8px 12px; font-size: 12px; }
  .money-amount { font-size: 14px; padding: 6px 10px; }
}

@media (max-width: 600px) {
  .roulette-container { padding: 10px; }
  .betting-board { padding: 4px; }
  .number-cell { font-size: 11px; min-height: 32px; }
  .outside-cell { font-size: 10px; padding: 8px 2px; }
  .dozen-cell { font-size: 11px; padding: 6px; }
  .chip { width: 40px; height: 40px; font-size: 11px; }
  .chip::after { width: 30px; height: 30px; }
  .spin-btn { font-size: 14px; padding: 14px 20px; }
  .board-chip { width: 20px; height: 20px; font-size: 7px; }
  .zero-cell { min-height: 80px; font-size: 14px; }
  .column-cell { font-size: 10px; }
  .result-banner { font-size: 18px; }
}
