/**
 * Casino Mini-Games Styling
 * Noir/FBI witness protection theme
 */

/* Modal Overlay */
.casino-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(58, 50, 56, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: 'Courier New', Courier, monospace;
}

.casino-modal.active {
  opacity: 1;
}

/* Casino Container */
.casino-container {
  background: #EBE6D8;
  border: 2px solid #8E7F7F;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

/* Header */
.casino-header {
  text-align: center;
  border-bottom: 2px solid #8E7F7F;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.casino-classified {
  font-size: 10px;
  letter-spacing: 3px;
  color: #8B0000;
  font-weight: bold;
}

.casino-title {
  font-size: 28px;
  font-weight: bold;
  color: #3A3238;
  letter-spacing: 3px;
  margin-top: 0.5rem;
}

.casino-close {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  font-size: 32px;
  color: #8E7F7F;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
}

.casino-close:hover {
  color: #8B0000;
}

/* Balance Display */
.casino-balance {
  background: #3A3238;
  color: #EBE6D8;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #8E7F7F;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.balance-label {
  font-size: 12px;
  letter-spacing: 2px;
}

.balance-amount {
  font-size: 24px;
  font-weight: bold;
  color: #EBE6D8;
}

.buy-coins-button {
  padding: 0.5rem 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  font-weight: bold;
  background: #8E7F7F;
  color: #EBE6D8;
  border: 2px solid #3A3238;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
  align-self: center;
}

.buy-coins-button:hover {
  background: #A09090;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* === SLOTS SPECIFIC === */

/* Reels Container */
.slots-reels-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 2rem;
  background: #3A3238;
  border: 3px solid #8E7F7F;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.5);
}

.slots-reel {
  width: 120px;
  height: 150px;
  background: #EBE6D8;
  border: 3px solid #8E7F7F;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.reel-symbol {
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

.slot-symbol-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.paytable-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  margin: 0 2px;
}

.combo-display {
  background: #3A3238;
  color: #EBE6D8;
  padding: 1rem;
  margin: 1rem 0;
  border: 2px solid #8E7F7F;
  text-align: center;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.combo-name {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
}

.combo-subtitle {
  font-size: 12px;
  color: #C4BCB0;
  margin-top: 0.25rem;
  letter-spacing: 1px;
}

.combo-display.jackpot {
  background: #8B0000;
  animation: jackpotPulse 1s ease-in-out infinite;
}

@keyframes jackpotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.slots-reel.spinning .reel-symbol {
  animation: reelSpin 0.15s linear infinite;
}

.slots-reel.slowing .reel-symbol {
  animation: reelSpinSlow 0.3s linear infinite;
}

@keyframes reelSpin {
  0% { transform: translateY(0); }
  100% { transform: translateY(-150px); }
}

@keyframes reelSpinSlow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-150px); }
}

/* Win flash effect */
.slots-reel.winner {
  animation: winFlash 0.5s ease-in-out 3;
  box-shadow: 0 0 20px #FFD700, 0 4px 8px rgba(0, 0, 0, 0.3);
}

@keyframes winFlash {
  0%, 100% {
    background: #EBE6D8;
    border-color: #8E7F7F;
  }
  50% {
    background: #FFF;
    border-color: #FFD700;
  }
}

/* Jackpot effect */
.slots-reel.jackpot {
  animation: jackpotFlash 0.3s ease-in-out 6;
  box-shadow: 0 0 30px #FF0000, 0 4px 8px rgba(0, 0, 0, 0.3);
}

@keyframes jackpotFlash {
  0%, 100% {
    background: #EBE6D8;
    border-color: #8E7F7F;
    transform: scale(1);
  }
  50% {
    background: #FFE6E6;
    border-color: #FF0000;
    transform: scale(1.05);
  }
}

/* Slots Controls */
.slots-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
}

.stake-control {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stake-control label {
  font-weight: bold;
  color: #3A3238;
  letter-spacing: 1px;
}

.free-spins-display {
  background: linear-gradient(135deg, #ff1744, #ff6090);
  border: 2px solid #ffc107;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.free-spins-text {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 193, 7, 0.8), 0 0 20px rgba(255, 193, 7, 0.4);
  letter-spacing: 1px;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.8), 0 0 40px rgba(255, 193, 7, 0.4);
  }
}

.stake-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stake-button {
  padding: 0.5rem 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  font-weight: bold;
  background: #EBE6D8;
  color: #3A3238;
  border: 2px solid #8E7F7F;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 50px;
}

.stake-button:hover {
  background: #D8D0C0;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.stake-button.selected {
  background: #8B0000;
  color: #EBE6D8;
  border-color: #3A3238;
  box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

.stake-control input {
  width: 120px;
  padding: 0.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  border: 2px solid #8E7F7F;
  background: #FFF;
  color: #3A3238;
}

.spin-button {
  padding: 1rem 3rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 18px;
  font-weight: bold;
  background: #8B0000;
  color: #EBE6D8;
  border: 2px solid #3A3238;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.spin-button:hover {
  background: #A00000;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.spin-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.spin-button:disabled {
  background: #5F5449;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Paytable */
.casino-paytable-toggle {
  text-align: center;
  margin-top: 1rem;
}

.paytable-toggle-button {
  padding: 0.5rem 1.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  background: #8E7F7F;
  color: #EBE6D8;
  border: 2px solid #3A3238;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.paytable-toggle-button:hover {
  background: #A08F8F;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.casino-paytable {
  background: #3A3238;
  color: #EBE6D8;
  padding: 1rem;
  margin-top: 1rem;
  border: 1px solid #8E7F7F;
}

.paytable-title {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #8E7F7F;
  padding-bottom: 0.5rem;
}

.paytable-row {
  padding: 0.4rem;
  font-size: 14px;
  border-bottom: 1px solid rgba(142, 127, 127, 0.3);
}

.paytable-row:last-child {
  border-bottom: none;
}

/* === ROULETTE SPECIFIC === */

/* Wheel Container */
.roulette-wheel-container {
  text-align: center;
  margin: 2rem 0;
  position: relative;
}

.wheel-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -20px);
  font-size: 40px;
  color: #8E7F7F;
  z-index: 20;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(142, 127, 127, 0.6);
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(142, 127, 127, 0.7));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wheel-pointer.visible {
  opacity: 1;
}

.roulette-wheel {
  width: 500px;
  height: 500px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #3A3238 0%, #2d2420 100%);
  border-radius: 50%;
  border: 20px solid #8E7F7F;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9),
              inset 0 8px 30px rgba(0, 0, 0, 0.8),
              0 0 40px rgba(142, 127, 127, 0.3);
  position: relative;
  overflow: visible;
  animation: wheelGlow 3s ease-in-out infinite alternate;
}

@keyframes wheelGlow {
  0% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), inset 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 40px rgba(142, 127, 127, 0.3); }
  100% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), inset 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 60px rgba(142, 127, 127, 0.5); }
}

/* Wheel segment containers - these rotate */
.wheel-segment-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50px;
  height: 50%;
  transform-origin: 50% 100%;
  margin-left: -25px;
  pointer-events: none;
  z-index: 1;
}

/* Wheel segments - these don't rotate, just provide color/content */
.wheel-segment {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 20px;
  clip-path: polygon(20% 0%, 80% 0%, 60% 100%, 40% 100%);
  pointer-events: none;
  transition: filter 0.3s ease;
}

.wheel-segment:hover {
  filter: brightness(1.2);
}

.wheel-segment.winning-segment {
  filter: brightness(1.5) drop-shadow(0 0 20px rgba(142, 127, 127, 0.9));
  animation: winningPulse 1s ease-in-out infinite;
}

@keyframes winningPulse {
  0%, 100% {
    filter: brightness(1.5) drop-shadow(0 0 20px rgba(142, 127, 127, 0.9));
  }
  50% {
    filter: brightness(1.8) drop-shadow(0 0 30px rgba(142, 127, 127, 1));
  }
}

.wheel-segment.red {
  background: linear-gradient(to bottom, #EBE6D8 0%, #D4CFC1 50%, #C4BCB0 100%);
  box-shadow: inset 0 2px 4px rgba(235, 230, 216, 0.4);
}

.wheel-segment.black {
  background: linear-gradient(to bottom, #3A3238 0%, #2d2420 50%, #1a1512 100%);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.wheel-segment.green {
  background: linear-gradient(to bottom, #8B0000 0%, #660000 50%, #4a0000 100%);
  box-shadow: inset 0 2px 4px rgba(139, 0, 0, 0.3);
}

.segment-number {
  font-size: 22px;
  font-weight: bold;
  color: #3A3238;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  letter-spacing: 2px;
  transform: rotate(-90deg);
}

.wheel-segment.black .segment-number {
  color: #EBE6D8;
}

.wheel-segment.green .segment-number {
  color: #EBE6D8;
}

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 30% 30%, #8E7F7F, #6a615f, #3A3238);
  border-radius: 50%;
  border: 6px solid #8E7F7F;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8),
              inset 0 4px 15px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(142, 127, 127, 0.3);
  z-index: 5;
}

.wheel-ball {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #eeeeee);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 1),
              inset -3px -3px 8px rgba(0, 0, 0, 0.5),
              0 0 20px rgba(255, 255, 255, 0.8);
  z-index: 100;
  transform: translate(-50%, -50%) rotate(0deg) translateY(-230px);
  border: 3px solid #aaa;
  pointer-events: none;
}

.wheel-result {
  font-size: 24px;
  font-weight: bold;
  padding: 1rem;
  background: #3A3238;
  color: #EBE6D8;
  border: 1px solid #8E7F7F;
  letter-spacing: 2px;
}

.wheel-result.red {
  color: #EBE6D8;
}

.wheel-result.black {
  color: #EBE6D8;
}

.wheel-result.green {
  color: #8B0000;
}

/* Roulette Controls */
.roulette-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
  align-items: center;
}

.bet-type-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.bet-type-button {
  padding: 0.75rem 1.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  font-weight: bold;
  background: #8E7F7F;
  color: #EBE6D8;
  border: 2px solid #3A3238;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
  min-width: 80px;
}

.bet-type-button:hover {
  background: #A09090;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.bet-type-button.red-bet {
  background: #EBE6D8;
  color: #3A3238;
  border-color: #C4BCB0;
}

.bet-type-button.red-bet:hover {
  background: #D4CFC1;
}

.bet-type-button.black-bet {
  background: #3A3238;
  color: #EBE6D8;
  border-color: #2d2420;
}

.bet-type-button.black-bet:hover {
  background: #4a424a;
}

.bet-section-label {
  font-size: 12px;
  font-weight: bold;
  color: #ffc107;
  letter-spacing: 1px;
  margin: 0.5rem 0;
  text-align: center;
  width: 100%;
  text-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
}

.bet-type-controls.special-bets {
  flex-wrap: wrap;
  background: rgba(255, 193, 7, 0.1);
  padding: 0.5rem;
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 4px;
}

.bet-type-button.special-bet {
  background: linear-gradient(135deg, #8E7F7F, #A09090);
  border-color: #ffc107;
  font-size: 12px;
  padding: 0.6rem 1rem;
}

.bet-type-button.special-bet:hover {
  background: linear-gradient(135deg, #A09090, #B0A0A0);
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
}

/* Filter System */
.filter-section {
  margin: 0.75rem 0;
  padding: 0.5rem;
  background: rgba(58, 50, 56, 0.3);
  border-radius: 4px;
}

.filter-label {
  font-size: 11px;
  font-weight: bold;
  color: #8E7F7F;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-align: center;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-button {
  padding: 0.5rem 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  background: #5F5449;
  color: #C4BCB0;
  border: 2px solid #3A3238;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  border-radius: 4px;
}

.filter-button:hover {
  background: #6F6459;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.filter-button.active {
  background: #4ade80;
  color: #1a1a1a;
  border-color: #22c55e;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.filter-button.red-filter {
  background: #8B4444;
  color: #EBE6D8;
}

.filter-button.red-filter.active {
  background: #dc2626;
  border-color: #b91c1c;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.filter-button.black-filter {
  background: #2d2420;
  color: #EBE6D8;
}

.filter-button.black-filter.active {
  background: #1a1a1a;
  border-color: #000;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Bet Preview */
.bet-preview {
  background: #3A3238;
  color: #EBE6D8;
  padding: 1rem;
  margin: 1rem 0;
  border: 2px solid #8E7F7F;
  border-radius: 4px;
}

.preview-label {
  font-size: 11px;
  font-weight: bold;
  color: #8E7F7F;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.preview-filters {
  font-size: 14px;
  font-weight: bold;
  color: #4ade80;
  margin-bottom: 0.5rem;
  min-height: 20px;
}

.preview-stats {
  font-size: 12px;
  line-height: 1.5;
  color: #C4BCB0;
}

.place-bet-button {
  width: 100%;
  padding: 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  font-weight: bold;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #1a1a1a;
  border: 3px solid #16a34a;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 0.2s;
  border-radius: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.place-bet-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
}

.place-bet-button:disabled {
  background: #5F5449;
  color: #8E7F7F;
  border-color: #3A3238;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Roulette Compact Layout */
.roulette-betting-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.roulette-left-panel,
.roulette-right-panel {
  background: #3A3238;
  padding: 1rem;
  border: 2px solid #8E7F7F;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
  max-height: 600px;
  overflow-y: auto;
}

.panel-title {
  font-size: 11px;
  font-weight: bold;
  color: #EBE6D8;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #8E7F7F;
  background: rgba(142, 127, 127, 0.2);
  padding: 0.4rem;
}

/* Compact Stake Control */
.stake-control-compact {
  margin-bottom: 0.75rem;
}

.stake-control-compact label {
  font-size: 10px;
  font-weight: bold;
  color: #8E7F7F;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
  display: block;
}

.stake-buttons-compact {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.stake-button-compact {
  flex: 1;
  min-width: 40px;
  padding: 0.4rem 0.6rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  font-weight: bold;
  background: #5F5449;
  color: #C4BCB0;
  border: 2px solid #3A3238;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 3px;
}

.stake-button-compact:hover {
  background: #6F6459;
  transform: scale(1.05);
}

.stake-button-compact.selected {
  background: #EBE6D8;
  color: #3A3238;
  border-color: #C4BCB0;
  box-shadow: 0 0 8px rgba(235, 230, 216, 0.4);
}

/* Compact Filter Sections */
.filter-section-compact {
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: rgba(95, 84, 73, 0.3);
  border-radius: 4px;
}

.filter-label-compact {
  font-size: 9px;
  font-weight: bold;
  color: #8E7F7F;
  letter-spacing: 0.8px;
  margin-bottom: 0.4rem;
  text-align: center;
}

.filter-buttons-compact {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}

.filter-button-compact {
  flex: 1;
  padding: 0.4rem 0.6rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  font-weight: bold;
  background: #5F5449;
  color: #C4BCB0;
  border: 2px solid #3A3238;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  border-radius: 3px;
}

.filter-button-compact:hover {
  background: #6F6459;
  transform: translateY(-1px);
}

.filter-button-compact.active {
  background: #EBE6D8;
  color: #3A3238;
  border-color: #C4BCB0;
  box-shadow: 0 0 8px rgba(235, 230, 216, 0.5);
}

.filter-button-compact.red-filter {
  background: #6B3E3E;
  color: #EBE6D8;
  border-color: #4a2828;
}

.filter-button-compact.red-filter.active {
  background: #8B4444;
  border-color: #6B3E3E;
  box-shadow: 0 0 8px rgba(139, 68, 68, 0.6);
  color: #EBE6D8;
}

.filter-button-compact.black-filter {
  background: #2d2420;
  color: #EBE6D8;
  border-color: #1a1410;
}

.filter-button-compact.black-filter.active {
  background: #1a1410;
  border-color: #000;
  box-shadow: 0 0 8px rgba(235, 230, 216, 0.4);
  color: #EBE6D8;
}

/* Compact Bet Preview */
.bet-preview-compact {
  background: #3A3238;
  padding: 0.6rem;
  margin: 0.75rem 0;
  border: 2px solid #8E7F7F;
  border-radius: 4px;
}

.preview-label-compact {
  font-size: 9px;
  font-weight: bold;
  color: #8E7F7F;
  letter-spacing: 0.8px;
  margin-bottom: 0.3rem;
}

.preview-filters-compact {
  font-size: 11px;
  font-weight: bold;
  color: #EBE6D8;
  margin-bottom: 0.3rem;
  min-height: 16px;
}

.preview-stats-compact {
  font-size: 10px;
  line-height: 1.4;
  color: #C4BCB0;
}

.place-bet-button-compact {
  width: 100%;
  padding: 0.7rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  font-weight: bold;
  background: #8E7F7F;
  color: #EBE6D8;
  border: 2px solid #3A3238;
  cursor: pointer;
  letter-spacing: 1.5px;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.place-bet-button-compact:hover:not(:disabled) {
  background: #A08F8F;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.place-bet-button-compact:disabled {
  background: #5F5449;
  color: #8E7F7F;
  border-color: #3A3238;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Special Bets Grid */
.special-bets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.special-bet-compact {
  background: #3A3238;
  border: 2px solid #8E7F7F;
  padding: 0.6rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.special-bet-compact:hover {
  background: #4a424a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  border-color: #C4BCB0;
}

.special-bet-icon {
  font-size: 24px;
  line-height: 1;
}

.special-bet-name {
  font-size: 9px;
  font-weight: bold;
  color: #C4BCB0;
  letter-spacing: 0.5px;
  text-align: center;
}

.special-bet-payout {
  font-size: 10px;
  font-weight: bold;
  color: #EBE6D8;
}

/* Roulette Number Table - Classic Layout */
.roulette-number-table {
  margin-top: 0.5rem;
  background: #2a3e2a;
  padding: 0.5rem;
  border: 2px solid #1a2a1a;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.number-zero {
  margin-bottom: 0.5rem;
}

.number-zero .table-number {
  width: 100%;
  padding: 0.6rem;
  font-size: 13px;
}

.roulette-table-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #1a2a1a;
  padding: 1px;
}

.table-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr) 2fr;
  gap: 1px;
}

.table-number {
  padding: 0.5rem 0.3rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  font-weight: bold;
  color: #EBE6D8;
  border: 1px solid rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  position: relative;
}

.table-number.red {
  background: #6B3E3E;
}

.table-number.black {
  background: #2d2420;
}

.table-number.green {
  background: #3e5a3e;
}

.table-number:hover {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(235, 230, 216, 0.5);
  border-color: #C4BCB0;
  z-index: 10;
}

.table-number.filter-match {
  border: 2px solid #EBE6D8;
  box-shadow: 0 0 10px rgba(235, 230, 216, 0.8), inset 0 0 10px rgba(235, 230, 216, 0.4);
  animation: pulse-match 1.5s ease-in-out infinite;
  z-index: 5;
}

@keyframes pulse-match {
  0%, 100% {
    box-shadow: 0 0 10px rgba(235, 230, 216, 0.8), inset 0 0 10px rgba(235, 230, 216, 0.4);
  }
  50% {
    box-shadow: 0 0 15px rgba(235, 230, 216, 1), inset 0 0 15px rgba(235, 230, 216, 0.6);
  }
}

.column-bet {
  background: #3A3238;
  color: #EBE6D8;
  border: 1px solid rgba(0, 0, 0, 0.3);
  font-family: 'Courier New', Courier, monospace;
  font-size: 9px;
  font-weight: bold;
  cursor: pointer;
  padding: 0.3rem;
  transition: all 0.15s;
}

.column-bet:hover {
  background: #4a424a;
  box-shadow: 0 0 8px rgba(235, 230, 216, 0.5);
}

.dozen-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 2fr;
  gap: 1px;
  margin-top: 1px;
}

.dozen-bet {
  background: #3A3238;
  color: #EBE6D8;
  border: 1px solid rgba(0, 0, 0, 0.3);
  font-family: 'Courier New', Courier, monospace;
  font-size: 9px;
  font-weight: bold;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.15s;
}

.dozen-bet:hover {
  background: #4a424a;
  box-shadow: 0 0 8px rgba(235, 230, 216, 0.5);
}

.dozen-spacer {
  background: #2a3e2a;
}

/* Current Bet Compact */
.current-bet-compact {
  background: #3A3238;
  padding: 0.75rem;
  margin: 1rem 0 0.5rem 0;
  border: 2px solid #8E7F7F;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.current-bet-label {
  font-size: 10px;
  font-weight: bold;
  color: #8E7F7F;
  letter-spacing: 1px;
}

.current-bet-value {
  font-size: 12px;
  font-weight: bold;
  color: #EBE6D8;
}

/* Large Spin Button */
.spin-button-large {
  width: 100%;
  padding: 1.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  font-weight: bold;
  background: #8E7F7F;
  color: #EBE6D8;
  border: 3px solid #3A3238;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem;
}

.spin-button-large:hover:not(:disabled) {
  background: #A08F8F;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.spin-button-large:disabled {
  background: #5F5449;
  color: #8E7F7F;
  border-color: #3A3238;
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

/* Compact Log */
.casino-log-compact {
  background: #2d2420;
  border: 2px solid #8E7F7F;
  border-radius: 4px;
  max-height: 150px;
  overflow: hidden;
}

.log-header-compact {
  font-size: 10px;
  font-weight: bold;
  color: #8E7F7F;
  letter-spacing: 1px;
  padding: 0.5rem;
  background: #3A3238;
  border-bottom: 1px solid #8E7F7F;
}

.log-content-compact {
  padding: 0.5rem;
  max-height: 110px;
  overflow-y: auto;
  font-size: 10px;
}

/* Wheel Popup */
.wheel-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wheel-popup.active {
  opacity: 1;
}

.wheel-popup-content {
  position: relative;
  max-width: 600px;
  width: 90%;
}

/* Current Bet Display */
.current-bet {
  background: #3A3238;
  color: #EBE6D8;
  padding: 1rem;
  margin: 1rem 0;
  border: 1px solid #8E7F7F;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.bet-label {
  font-size: 12px;
  letter-spacing: 2px;
}

.bet-value {
  font-size: 18px;
  font-weight: bold;
  color: #EBE6D8;
}

/* Number Board */
.roulette-board {
  background: #3A3238;
  padding: 1rem;
  margin: 1.5rem 0;
  border: 2px solid #8E7F7F;
}

.board-header {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #EBE6D8;
  margin-bottom: 1rem;
  text-align: center;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 0.5rem;
  max-height: 250px;
  overflow-y: auto;
  padding: 0.5rem;
}

.roulette-number {
  padding: 0.75rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  font-weight: bold;
  color: #EBE6D8;
  border: 2px solid #8E7F7F;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 50px;
}

.roulette-number.red {
  background: #EBE6D8;
  color: #3A3238;
}

.roulette-number.black {
  background: #3A3238;
  color: #EBE6D8;
}

.roulette-number.green {
  background: #8B0000;
  color: #EBE6D8;
}

.roulette-number:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.roulette-number:active {
  transform: scale(0.95);
}

/* === SHARED COMPONENTS === */

/* Spin button disabled state during spin */
.spin-button.spinning {
  background: #5F5449;
  cursor: not-allowed;
  opacity: 0.6;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.8; }
}

/* Log Display */
.casino-log {
  background: #3A3238;
  color: #EBE6D8;
  padding: 1rem;
  margin-top: 1.5rem;
  border: 1px solid #8E7F7F;
  max-height: 200px;
}

.log-header {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #8E7F7F;
  padding-bottom: 0.5rem;
}

.log-content {
  font-size: 12px;
  max-height: 150px;
  overflow-y: auto;
}

.log-entry {
  padding: 0.4rem;
  border-bottom: 1px solid rgba(142, 127, 127, 0.3);
  color: #CCC;
}

.log-entry:first-child {
  color: #EBE6D8;
}

.log-win {
  color: #EBE6D8;
  font-weight: bold;
}

.log-loss {
  color: #8B0000;
}

.log-bet {
  color: #C4BCB0;
}

.log-error {
  color: #8B0000;
  font-weight: bold;
}

/* Scrollbar Styling */
.log-content::-webkit-scrollbar,
.number-grid::-webkit-scrollbar {
  width: 8px;
}

.log-content::-webkit-scrollbar-track,
.number-grid::-webkit-scrollbar-track {
  background: #2A2228;
}

.log-content::-webkit-scrollbar-thumb,
.number-grid::-webkit-scrollbar-thumb {
  background: #8E7F7F;
  border-radius: 4px;
}

.log-content::-webkit-scrollbar-thumb:hover,
.number-grid::-webkit-scrollbar-thumb:hover {
  background: #A09090;
}

/* === BIG TABLE LAYOUT === */

/* Big Roulette Table Container */
.roulette-table-big {
  margin: 1.5rem 0;
  background: #3A3238;
  padding: 1.5rem;
  border: 3px solid #8E7F7F;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.roulette-number-table-big {
  background: #2a3e2a;
  padding: 1rem;
  border: 3px solid #1a2a1a;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.6);
}

.number-zero-big {
  margin-bottom: 0.75rem;
}

.number-zero-big .table-number-big {
  width: 100%;
  padding: 1rem;
  font-size: 18px;
}

.roulette-table-grid-big {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #1a2a1a;
  padding: 2px;
}

.table-row-big {
  display: grid;
  grid-template-columns: repeat(12, 1fr) 2fr;
  gap: 2px;
}

.table-number-big {
  padding: 1rem 0.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  font-weight: bold;
  color: #EBE6D8;
  border: 2px solid rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  position: relative;
}

.table-number-big.red {
  background: #6B3E3E;
}

.table-number-big.black {
  background: #2d2420;
}

.table-number-big.green {
  background: #3e5a3e;
}

.table-number-big:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(235, 230, 216, 0.6);
  border-color: #C4BCB0;
  z-index: 10;
}

.table-number-big.selected {
  border: 3px solid #EBE6D8;
  box-shadow: 0 0 15px rgba(235, 230, 216, 1), inset 0 0 15px rgba(235, 230, 216, 0.5);
  animation: pulse-selected 1.2s ease-in-out infinite;
  z-index: 5;
}

@keyframes pulse-selected {
  0%, 100% {
    box-shadow: 0 0 15px rgba(235, 230, 216, 1), inset 0 0 15px rgba(235, 230, 216, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(235, 230, 216, 1), inset 0 0 20px rgba(235, 230, 216, 0.7);
  }
}

.column-bet-big {
  background: #3A3238;
  color: #EBE6D8;
  border: 2px solid rgba(0, 0, 0, 0.4);
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.2s;
}

.column-bet-big:hover {
  background: #4a424a;
  box-shadow: 0 0 10px rgba(235, 230, 216, 0.5);
}

.dozen-row-big {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 2fr;
  gap: 2px;
  margin-top: 2px;
}

.dozen-bet-big {
  background: #3A3238;
  color: #EBE6D8;
  border: 2px solid rgba(0, 0, 0, 0.4);
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  padding: 0.75rem;
  transition: all 0.2s;
}

.dozen-bet-big:hover {
  background: #4a424a;
  box-shadow: 0 0 10px rgba(235, 230, 216, 0.5);
}

.dozen-spacer-big {
  background: #2a3e2a;
}

/* Dropdown Controls */
.roulette-dropdowns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: #3A3238;
  border: 2px solid #8E7F7F;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dropdown-group label {
  font-size: 11px;
  font-weight: bold;
  color: #8E7F7F;
  letter-spacing: 1px;
  text-align: center;
}

.dropdown-group select {
  padding: 0.75rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  background: #2d2420;
  color: #EBE6D8;
  border: 2px solid #8E7F7F;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 4px;
}

.dropdown-group select:hover {
  background: #3a3238;
  border-color: #C4BCB0;
}

.dropdown-group select:focus {
  outline: none;
  border-color: #EBE6D8;
  box-shadow: 0 0 8px rgba(235, 230, 216, 0.5);
}

/* Bet Description */
.bet-description {
  background: #3A3238;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 2px solid #8E7F7F;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.bet-desc-title {
  font-size: 12px;
  font-weight: bold;
  color: #8E7F7F;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #8E7F7F;
  padding-bottom: 0.5rem;
  text-align: center;
}

.bet-desc-content {
  font-size: 13px;
  color: #EBE6D8;
  line-height: 1.8;
}

.bet-desc-content strong {
  color: #C4BCB0;
  letter-spacing: 0.5px;
}

/* Spin Wheel Button */
.spin-wheel-button {
  width: 100%;
  padding: 2rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 20px;
  font-weight: bold;
  background: #8E7F7F;
  color: #EBE6D8;
  border: 4px solid #3A3238;
  cursor: pointer;
  letter-spacing: 3px;
  transition: all 0.2s;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
  margin: 1.5rem 0;
}

.spin-wheel-button:hover:not(:disabled) {
  background: #A08F8F;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

.spin-wheel-button:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.spin-wheel-button:disabled {
  background: #5F5449;
  color: #8E7F7F;
  border-color: #3A3238;
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

/* === CENTERED TABLE LAYOUT === */

/* Top Bar - Stakes and Current Bet */
.roulette-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #3A3238;
  padding: 0.75rem 1rem;
  border: 2px solid #8E7F7F;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.stake-control-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.stake-control-bar label {
  font-size: 11px;
  font-weight: bold;
  color: #8E7F7F;
  letter-spacing: 1px;
  white-space: nowrap;
}

.current-bet-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(142, 127, 127, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.current-bet-label {
  font-size: 10px;
  font-weight: bold;
  color: #8E7F7F;
  letter-spacing: 1px;
  white-space: nowrap;
}

.current-bet-value {
  font-size: 13px;
  font-weight: bold;
  color: #EBE6D8;
  min-width: 80px;
}

/* Main Table Container - Centerpiece */
.roulette-table-main {
  margin: 1rem 0;
  background: #3A3238;
  padding: 1rem;
  border: 2px solid #8E7F7F;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Bottom Control Area - Two Columns */
.roulette-bottom-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

/* Filters Panel - Left Side */
.roulette-filters-panel {
  background: #3A3238;
  padding: 1rem;
  border: 2px solid #8E7F7F;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Special Bets Panel - Right Side */
.roulette-special-panel {
  background: #3A3238;
  padding: 1rem;
  border: 2px solid #8E7F7F;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Horizontal Filter Layout */
.filter-row-horizontal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-label-inline {
  font-size: 10px;
  font-weight: bold;
  color: #8E7F7F;
  letter-spacing: 1px;
  min-width: 50px;
}

/* Inline Bet Preview */
.bet-preview-inline {
  background: rgba(142, 127, 127, 0.2);
  padding: 0.75rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.preview-filters-inline {
  display: block;
  font-size: 12px;
  font-weight: bold;
  color: #EBE6D8;
  margin-bottom: 0.4rem;
}

.preview-stats-inline {
  display: block;
  font-size: 10px;
  color: #C4BCB0;
  line-height: 1.4;
}

/* Inline Place Bet Button */
.place-bet-button-inline {
  width: 100%;
  padding: 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  background: #8E7F7F;
  color: #EBE6D8;
  border: 2px solid #3A3238;
  cursor: pointer;
  letter-spacing: 1.5px;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-top: 0.75rem;
}

.place-bet-button-inline:hover:not(:disabled) {
  background: #A08F8F;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.place-bet-button-inline:disabled {
  background: #5F5449;
  color: #8E7F7F;
  border-color: #3A3238;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Horizontal Special Bets */
.special-bets-horizontal {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.special-bet-inline {
  background: #3A3238;
  border: 2px solid #8E7F7F;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  font-weight: bold;
  color: #EBE6D8;
  letter-spacing: 1px;
}

.special-bet-inline:hover {
  background: #4a424a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  border-color: #C4BCB0;
}

.special-icon-inline {
  font-size: 20px;
  line-height: 1;
}

.special-payout-inline {
  font-size: 11px;
  font-weight: bold;
  color: #C4BCB0;
  letter-spacing: 1px;
}

/* === BLACKJACK STYLING === */

/* Unified Blackjack Table */
.blackjack-table {
  background: linear-gradient(135deg, #3A3238 0%, #2d2420 100%);
  border: 4px solid #8E7F7F;
  border-radius: 150px;
  padding: 2rem;
  margin: 1.5rem 0;
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.6);
  position: relative;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Table dividing line effect */
.blackjack-table::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  border-top: 1px dashed rgba(235, 230, 216, 0.2);
}

/* Result Overlay */
.blackjack-result-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(58, 50, 56, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border-radius: 150px;
  animation: fadeInOverlay 0.3s ease-out;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.result-box {
  background: linear-gradient(135deg, #3A3238 0%, #2d2420 100%);
  border: 3px solid #8E7F7F;
  padding: 2rem 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  text-align: center;
  max-width: 80%;
}

.result-message {
  font-size: 16px;
  font-weight: bold;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 1px;
  margin: 0.75rem 0;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 2px solid transparent;
}

.result-message.result-win {
  color: #4CAF50;
  background: rgba(76, 175, 80, 0.15);
  border-color: #4CAF50;
}

.result-message.result-loss {
  color: #F44336;
  background: rgba(244, 67, 54, 0.15);
  border-color: #F44336;
}

.result-message.result-push {
  color: #C4BCB0;
  background: rgba(196, 188, 176, 0.15);
  border-color: #C4BCB0;
}

.result-total {
  font-size: 20px;
  font-weight: bold;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 2px;
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  border: 3px solid;
}

.result-total.result-win {
  color: #4CAF50;
  border-color: #4CAF50;
  background: rgba(76, 175, 80, 0.2);
}

.result-total.result-loss {
  color: #F44336;
  border-color: #F44336;
  background: rgba(244, 67, 54, 0.2);
}

/* Dealer and Player Areas */
.blackjack-dealer-area,
.blackjack-player-area {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.blackjack-dealer-area {
  padding-top: 2rem;
}

.blackjack-player-area {
  padding-bottom: 2rem;
}

.dealer-label,
.player-label {
  font-size: 11px;
  font-weight: bold;
  color: #C4BCB0;
  letter-spacing: 3px;
  text-align: center;
  padding: 0.5rem 1.5rem;
  background: rgba(58, 50, 56, 0.6);
  border: 1px solid #8E7F7F;
  border-radius: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.dealer-hand,
.player-hand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hand-cards {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
  margin: 0 auto;
}

/* Playing Cards */
.playing-card {
  width: 90px;
  height: 126px;
  background: #EBE6D8;
  border: 3px solid #3A3238;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  font-family: 'Courier New', Courier, monospace;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
  position: relative;
  opacity: 0;
  animation: dealCard 0.4s ease-out forwards;
}

.playing-card.no-animation {
  opacity: 1;
  animation: none;
  transform: translateY(0) translateX(0) rotate(0);
}

@keyframes dealCard {
  0% {
    opacity: 0;
    transform: translateY(-100px) translateX(-50px) rotate(-15deg);
  }
  60% {
    opacity: 1;
    transform: translateY(5px) translateX(0) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0);
  }
}

.playing-card:hover {
  transform: translateY(-8px);
}

.playing-card.red-card {
  color: #8B0000;
}

.playing-card.black-card {
  color: #3A3238;
}

.playing-card.card-back {
  background: linear-gradient(135deg, #3A3238 0%, #2d2420 100%);
  color: #8E7F7F;
  font-size: 48px;
}

/* Hand Values and Info */
.hand-value {
  font-size: 16px;
  font-weight: bold;
  color: #EBE6D8;
  letter-spacing: 1px;
}

.hand-info {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 12px;
  color: #C4BCB0;
}

.hand-bet {
  color: #8E7F7F;
}

.hand-status {
  background: #8B0000;
  color: #EBE6D8;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
}

/* Multiple Hands (for splits) */
#playerHandsContainer {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.player-hand {
  flex: 1;
  min-width: 200px;
  max-width: 450px;
  padding: 1rem;
  background: rgba(142, 127, 127, 0.1);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.player-hand.active-hand {
  background: rgba(235, 230, 216, 0.15);
  border: 2px solid #EBE6D8;
  box-shadow: 0 0 15px rgba(235, 230, 216, 0.3);
}

.player-hand.busted-hand {
  opacity: 0.5;
  background: rgba(139, 0, 0, 0.1);
}

/* Betting Phase */
.blackjack-betting-phase {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.bet-selection {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.bet-selection label {
  font-size: 12px;
  font-weight: bold;
  color: #8E7F7F;
  letter-spacing: 1px;
}

.deal-button {
  padding: 1.5rem 4rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 18px;
  font-weight: bold;
  background: #8E7F7F;
  color: #EBE6D8;
  border: 3px solid #3A3238;
  cursor: pointer;
  letter-spacing: 3px;
  transition: all 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.deal-button:hover {
  background: #A08F8F;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.deal-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Playing Phase - Action Buttons */
.blackjack-playing-phase {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.action-button {
  padding: 1rem 2rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  font-weight: bold;
  background: #8E7F7F;
  color: #EBE6D8;
  border: 2px solid #3A3238;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 0.2s;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  min-width: 100px;
}

.action-button:hover {
  background: #A08F8F;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
}

.action-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* New Round Button */
.new-round-button {
  padding: 1.5rem 3rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  font-weight: bold;
  background: #8B0000;
  color: #EBE6D8;
  border: 3px solid #3A3238;
  cursor: pointer;
  letter-spacing: 3px;
  transition: all 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  margin-top: 1rem;
}

.new-round-button:hover {
  background: #A00000;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.new-round-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .casino-container {
    padding: 1rem;
  }

  .casino-title {
    font-size: 20px;
  }

  .slots-reels-container {
    gap: 0.5rem;
    padding: 1rem;
  }

  .slots-reel {
    width: 80px;
    height: 100px;
    font-size: 50px;
  }

  .roulette-wheel {
    width: 200px;
    height: 200px;
  }

  .slots-controls,
  .roulette-controls {
    flex-direction: column;
  }

  .number-grid {
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
  }

  .roulette-bottom-area {
    grid-template-columns: 1fr;
  }

  .roulette-top-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .roulette-dropdowns {
    grid-template-columns: 1fr 1fr;
  }

  .table-number-big {
    padding: 0.75rem 0.3rem;
    font-size: 11px;
  }

  .number-zero-big .table-number-big {
    padding: 0.75rem;
    font-size: 14px;
  }

  .playing-card {
    width: 70px;
    height: 98px;
    font-size: 24px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-button {
    width: 100%;
  }

  .blackjack-table {
    border-radius: 80px;
    padding: 1rem;
    min-height: 400px;
  }

  .playing-card.card-back {
    font-size: 36px;
  }

  .dealer-label,
  .player-label {
    font-size: 9px;
    letter-spacing: 2px;
    padding: 0.4rem 1rem;
  }

  .blackjack-result-overlay {
    border-radius: 80px;
  }

  .result-box {
    padding: 1.5rem 2rem;
    max-width: 90%;
  }

  .result-message {
    font-size: 13px;
    padding: 0.5rem 1rem;
  }

  .result-total {
    font-size: 16px;
    padding: 0.75rem 1.5rem;
  }
}
