/* Ultra-High Definition Photo-Real Casino Graphics */

/* Casino Interior Background */
.casino-interior {
  background: 
    radial-gradient(ellipse at center, #1a1a2e 0%, #0f0f1e 40%, #000000 100%),
    linear-gradient(135deg, #16213e 0%, #0f3460 50%, #1a1a2e 100%);
  min-height: 100vh;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  background-attachment: fixed;
}

.casino-interior::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 0, 100, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(138, 43, 226, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(255, 20, 147, 0.08) 0%, transparent 40%);
  animation: casinoAmbience 8s ease-in-out infinite alternate;
  filter: blur(0.5px);
}

@keyframes casinoAmbience {
  0% { opacity: 0.5; }
  100% { opacity: 0.8; }
}

/* Ultra-HD Slot Machine */
.slot-machine-enhanced {
  background: 
    linear-gradient(145deg, #2d2d44, #1a1a2e),
    radial-gradient(ellipse at center, rgba(255, 215, 0, 0.05), transparent 70%),
    linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.1) 50%, transparent 70%);
  border-radius: 25px;
  padding: 40px;
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.9),
    inset 0 5px 20px rgba(255, 255, 255, 0.15),
    0 0 150px rgba(255, 215, 0, 0.3),
    0 0 300px rgba(255, 0, 100, 0.1),
    0 0 500px rgba(0, 255, 255, 0.05);
  border: 4px solid #ffd700;
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  backdrop-filter: blur(15px);
  transform: perspective(1000px) rotateX(2deg);
  animation: slotMachineGlow 4s ease-in-out infinite alternate;
}

.slot-machine-enhanced::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, #ffd700, #ff6b6b, #4ecdc4, #6c63ff, #ffd700);
  border-radius: 25px;
  z-index: -1;
  animation: slotMachineGlow 3s linear infinite;
  filter: blur(1px);
}

@keyframes slotMachineGlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.slot-reels-enhanced {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
  padding: 30px;
  background: 
    linear-gradient(145deg, #0f0f1e, #1a1a2e),
    radial-gradient(ellipse at center, rgba(74, 139, 194, 0.1), transparent 70%);
  border-radius: 20px;
  box-shadow: 
    inset 0 10px 30px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(255, 215, 0, 0.1);
  backdrop-filter: blur(10px);
}

.slot-reel-enhanced {
  width: 140px;
  height: 140px;
  background: 
    linear-gradient(145deg, #ffffff, #f8f8f8),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), transparent 50%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.4),
    inset 0 5px 15px rgba(255, 255, 255, 0.6),
    0 0 30px rgba(255, 215, 0, 0.2);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.slot-reel-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: reelShine 3s infinite;
  filter: blur(0.5px);
}

@keyframes reelShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.slot-reel-enhanced.spinning {
  animation: reelSpinBlur 0.1s linear infinite;
  filter: blur(2px);
}

@keyframes reelSpinBlur {
  0% { 
    transform: rotateX(0deg) translateY(0px);
    filter: blur(2px) brightness(1.2);
  }
  50% { 
    transform: rotateX(180deg) translateY(-10px);
    filter: blur(3px) brightness(1.5);
  }
  100% { 
    transform: rotateX(360deg) translateY(0px);
    filter: blur(2px) brightness(1.2);
  }
}

.slot-reel-enhanced.spinning::before {
  animation: reelShineIntense 0.5s linear infinite;
}

@keyframes reelShineIntense {
  0% { left: -200%; opacity: 0; }
  50% { left: -50%; opacity: 1; }
  100% { left: 200%; opacity: 0; }
}

/* Ultra-HD Blackjack Table */
.blackjack-table-enhanced {
  background: 
    radial-gradient(ellipse at center, #2d5016, #1a3009),
    radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.05), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.05), transparent 40%),
    linear-gradient(45deg, transparent 40%, rgba(255, 215, 0, 0.08) 50%, transparent 60%);
  border-radius: 200px;
  padding: 50px;
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.9),
    inset 0 0 80px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(46, 125, 50, 0.4),
    0 0 200px rgba(255, 215, 0, 0.1),
    0 0 400px rgba(255, 0, 100, 0.05),
    inset 0 0 120px rgba(0, 255, 0, 0.1);
  border: 12px solid #8b4513;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  transform: perspective(1000px) rotateX(3deg);
  animation: tableGlow 4s ease-in-out infinite alternate;
}

.blackjack-table-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(74, 139, 194, 0.08) 0%, transparent 60%);
  border-radius: 200px;
  animation: tableGlow 4s ease-in-out infinite alternate;
}

@keyframes tableGlow {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.card-enhanced {
  width: 90px;
  height: 135px;
  background: 
    linear-gradient(145deg, #ffffff, #f8f8f8),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), transparent 50%);
  border-radius: 12px;
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.4),
    inset 0 3px 10px rgba(255, 255, 255, 0.6),
    0 0 20px rgba(255, 215, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin: 0 8px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.card-enhanced.red {
  color: #dc3545;
}

.card-enhanced.black {
  color: #1a1a2e;
}

.card-enhanced:hover {
  transform: translateY(-15px) rotate(8deg) scale(1.05);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(255, 215, 0, 0.4),
    inset 0 5px 15px rgba(255, 255, 255, 0.7);
}

.card-enhanced.dealer-hidden {
  background: linear-gradient(145deg, #1a1a2e, #2d2d44);
  color: #ffd700;
}

.card-enhanced.dealer-hidden::after {
  content: '?';
  font-size: 2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Ultra-HD Casino Buttons */
.btn-casino-enhanced {
  background: 
    linear-gradient(145deg, #ffd700, #ffed4e),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent 50%);
  color: #1a1a2e;
  border: none;
  padding: 18px 35px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 8px 30px rgba(255, 215, 0, 0.4),
    inset 0 3px 10px rgba(255, 255, 255, 0.4),
    0 0 50px rgba(255, 215, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-casino-enhanced::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6), transparent);
  transition: all 0.6s ease;
  transform: translate(-50%, -50%);
  filter: blur(0.5px);
}

.btn-casino-enhanced:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    0 15px 50px rgba(255, 215, 0, 0.6),
    inset 0 3px 15px rgba(255, 255, 255, 0.5),
    0 0 80px rgba(255, 215, 0, 0.4);
}

.btn-casino-enhanced:hover::before {
  width: 400px;
  height: 400px;
}

.btn-casino-enhanced:active {
  transform: translateY(0);
}

/* End Turn Button */
.end-turn-enhanced {
  position: absolute;
  left: 280px;
  top: 35%;
  transform: translateY(-50%);
  background: linear-gradient(145deg, #dc3545, #c82333);
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 5px 20px rgba(220, 53, 69, 0.4),
    inset 0 2px 5px rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: endTurnPulse 2s ease-in-out infinite;
}

@keyframes endTurnPulse {
  0%, 100% { 
    box-shadow: 
      0 5px 20px rgba(220, 53, 69, 0.4),
      inset 0 2px 5px rgba(255, 255, 255, 0.2);
  }
  50% { 
    box-shadow: 
      0 10px 30px rgba(220, 53, 69, 0.6),
      inset 0 2px 10px rgba(255, 255, 255, 0.3);
  }
}

.end-turn-enhanced:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 15px 40px rgba(220, 53, 69, 0.6),
    inset 0 2px 10px rgba(255, 255, 255, 0.3);
}

/* Ultra-HD Casino Chips */
.casino-chip {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  color: white;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.4),
    inset 0 3px 10px rgba(255, 255, 255, 0.3),
    0 0 30px rgba(255, 215, 0, 0.2),
    0 0 60px rgba(255, 215, 0, 0.1),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  animation: chipFloat 3s ease-in-out infinite alternate;
}

.casino-chip::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, 0.4);
  animation: chipRotate 10s linear infinite;
}

@keyframes chipRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes chipFloat {
  0% { 
    transform: translateY(0px) scale(1);
    filter: brightness(1);
  }
  50% { 
    transform: translateY(-5px) scale(1.02);
    filter: brightness(1.2);
  }
  100% { 
    transform: translateY(-2px) scale(1.01);
    filter: brightness(1.1);
  }
}

.casino-chip.red {
  background: 
    linear-gradient(145deg, #dc3545, #c82333),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 50%);
}

.casino-chip.blue {
  background: 
    linear-gradient(145deg, #007bff, #0056b3),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 50%);
}

.casino-chip.black {
  background: 
    linear-gradient(145deg, #1a1a2e, #0f0f1e),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent 50%);
}

.casino-chip.green {
  background: 
    linear-gradient(145deg, #28a745, #1e7e34),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 50%);
}

.casino-chip:hover {
  transform: translateY(-8px) rotate(15deg) scale(1.1);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(255, 215, 0, 0.4),
    inset 0 5px 15px rgba(255, 255, 255, 0.4);
}

/* Ultra-HD Betting Display */
.betting-display-enhanced {
  background: 
    linear-gradient(145deg, #1a1a2e, #2d2d44),
    radial-gradient(ellipse at center, rgba(255, 215, 0, 0.05), transparent 70%);
  border-radius: 20px;
  padding: 25px;
  margin: 25px 0;
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.6),
    inset 0 3px 15px rgba(255, 255, 255, 0.15),
    0 0 80px rgba(255, 215, 0, 0.2);
  border: 3px solid #ffd700;
  backdrop-filter: blur(15px);
}

.betting-display-enhanced h3 {
  color: #ffd700;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 
    0 0 20px rgba(255, 215, 0, 0.8),
    0 0 40px rgba(255, 215, 0, 0.4);
  font-size: 1.4rem;
  animation: bettingGlow 2s ease-in-out infinite alternate;
}

@keyframes bettingGlow {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.3); }
}

/* Ultra-HD Win Animations */
.win-animation {
  animation: winCelebration 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes winCelebration {
  0%, 100% { 
    transform: scale(1) rotate(0deg);
    filter: brightness(1) hue-rotate(0deg);
  }
  25% { 
    transform: scale(1.15) rotate(8deg);
    filter: brightness(1.5) hue-rotate(30deg);
  }
  50% { 
    transform: scale(1.3) rotate(-8deg);
    filter: brightness(2) hue-rotate(60deg);
  }
  75% { 
    transform: scale(1.15) rotate(5deg);
    filter: brightness(1.5) hue-rotate(30deg);
  }
}

.jackpot-animation {
  animation: jackpotCelebration 2.5s ease-in-out infinite;
}

@keyframes jackpotCelebration {
  0%, 100% { 
    transform: scale(1);
    filter: brightness(1) saturate(1);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
  }
  25% { 
    transform: scale(1.08);
    filter: brightness(1.5) saturate(1.3);
    box-shadow: 0 0 100px rgba(255, 215, 0, 0.8);
  }
  50% { 
    transform: scale(1.12);
    filter: brightness(2) saturate(1.5);
    box-shadow: 0 0 150px rgba(255, 215, 0, 1);
  }
  75% { 
    transform: scale(1.08);
    filter: brightness(1.5) saturate(1.3);
    box-shadow: 0 0 100px rgba(255, 215, 0, 0.8);
  }
}

/* Ultra-HD Particle Effects */
.particle-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #ffd700, #ffed4e);
  border-radius: 50%;
  animation: particleFall 3s linear infinite;
  box-shadow: 
    0 0 15px rgba(255, 215, 0, 0.9),
    0 0 30px rgba(255, 215, 0, 0.6),
    0 0 45px rgba(255, 0, 100, 0.3);
}

@keyframes particleFall {
  0% {
    transform: translateY(-100vh) rotate(0deg) scale(0);
    opacity: 0;
  }
  10% {
    transform: translateY(-90vh) rotate(72deg) scale(1);
    opacity: 1;
  }
  90% {
    transform: translateY(90vh) rotate(648deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg) scale(0);
    opacity: 0;
  }
}

.particle.gold {
  background: radial-gradient(circle, #ffd700, #ffed4e);
  animation-duration: 2.5s;
}

.particle.diamond {
  background: radial-gradient(circle, #00ffff, #0099ff);
  width: 10px;
  height: 10px;
  animation-duration: 3.5s;
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.9),
    0 0 40px rgba(0, 153, 255, 0.6);
}

.particle.rainbow {
  background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  animation-duration: 4s;
  width: 12px;
  height: 12px;
}

/* Enhanced Slot Machine Game Interface */
#slot-reels {
  background: 
    linear-gradient(145deg, #1a1a2e, #0f0f1e),
    radial-gradient(ellipse at center, rgba(255, 215, 0, 0.1), transparent 70%);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.8),
    inset 0 5px 20px rgba(255, 255, 255, 0.1),
    0 0 100px rgba(255, 215, 0, 0.3);
  border: 3px solid #ffd700;
  position: relative;
  overflow: hidden;
}

#slot-reels::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.2), transparent);
  animation: slotReelsShine 3s linear infinite;
  pointer-events: none;
}

@keyframes slotReelsShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

#slot-reels div {
  background: 
    linear-gradient(145deg, #ffffff, #f8f8f8),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), transparent 50%);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 3px 10px rgba(255, 255, 255, 0.6),
    0 0 30px rgba(255, 215, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: reelGlow 2s ease-in-out infinite alternate;
}

@keyframes reelGlow {
  0% { 
    box-shadow: 
      0 10px 30px rgba(0, 0, 0, 0.3),
      inset 0 3px 10px rgba(255, 255, 255, 0.6),
      0 0 30px rgba(255, 215, 0, 0.2);
  }
  100% { 
    box-shadow: 
      0 15px 40px rgba(0, 0, 0, 0.4),
      inset 0 5px 15px rgba(255, 255, 255, 0.8),
      0 0 50px rgba(255, 215, 0, 0.4);
  }
}

#slot-reels div:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(255, 215, 0, 0.4),
    inset 0 5px 15px rgba(255, 255, 255, 0.7);
}

#spin-btn {
  background: 
    linear-gradient(145deg, #dc3545, #c82333),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 50%);
  border: none;
  border-radius: 50px;
  padding: 25px 50px;
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 10px 30px rgba(220, 53, 69, 0.4),
    inset 0 3px 10px rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  animation: spinBtnPulse 2s ease-in-out infinite;
}

@keyframes spinBtnPulse {
  0%, 100% { 
    box-shadow: 
      0 10px 30px rgba(220, 53, 69, 0.4),
      inset 0 3px 10px rgba(255, 255, 255, 0.2);
  }
  50% { 
    box-shadow: 
      0 15px 40px rgba(220, 53, 69, 0.6),
      inset 0 3px 15px rgba(255, 255, 255, 0.3);
  }
}

#spin-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 20px 50px rgba(220, 53, 69, 0.6),
    inset 0 5px 15px rgba(255, 255, 255, 0.3);
}

#spin-btn:active {
  transform: translateY(-1px) scale(1.02);
}

#slot-bet {
  background: 
    linear-gradient(145deg, #2d2d44, #1a1a2e),
    radial-gradient(ellipse at center, rgba(255, 215, 0, 0.05), transparent 70%);
  border: 2px solid #ffd700;
  border-radius: 10px;
  padding: 10px;
  font-size: 1.2rem;
  color: #ffd700;
  text-align: center;
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.3),
    inset 0 2px 5px rgba(255, 255, 255, 0.1);
}

#slot-result {
  background: 
    linear-gradient(145deg, #2d5016, #1a3009),
    radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.1), transparent 40%);
  border-radius: 15px;
  padding: 20px;
  border: 2px solid #ffd700;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.4),
    inset 0 3px 10px rgba(255, 255, 255, 0.1);
  color: #ffd700;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Ultra-HD Blackjack Game Interface */
.blackjack-game-enhanced {
  background: 
    radial-gradient(ellipse at center, #2d5016, #1a3009),
    radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.05), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.05), transparent 40%),
    linear-gradient(45deg, transparent 40%, rgba(255, 215, 0, 0.08) 50%, transparent 60%);
  border-radius: 200px;
  padding: 50px;
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.9),
    inset 0 0 80px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(46, 125, 50, 0.4),
    0 0 200px rgba(255, 215, 0, 0.1),
    0 0 400px rgba(255, 0, 100, 0.05),
    inset 0 0 120px rgba(0, 255, 0, 0.1);
  border: 12px solid #8b4513;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  transform: perspective(1000px) rotateX(3deg);
  animation: tableGlow 4s ease-in-out infinite alternate;
}

@keyframes tableGlow {
  0% { 
    box-shadow: 
      0 30px 80px rgba(0, 0, 0, 0.9),
      inset 0 0 80px rgba(0, 0, 0, 0.6),
      0 0 120px rgba(46, 125, 50, 0.4),
      0 0 200px rgba(255, 215, 0, 0.1);
  }
  100% { 
    box-shadow: 
      0 30px 80px rgba(0, 0, 0, 0.9),
      inset 0 0 80px rgba(0, 0, 0, 0.6),
      0 0 160px rgba(46, 125, 50, 0.6),
      0 0 300px rgba(255, 215, 0, 0.2),
      0 0 500px rgba(255, 0, 100, 0.1);
  }
}

.blackjack-card {
  background: 
    linear-gradient(145deg, #ffffff, #f8f8f8, #ffffff, #fafafa),
    radial-gradient(ellipse at 40% 40%, rgba(255, 255, 255, 0.95), transparent 60%),
    linear-gradient(45deg, transparent 48%, rgba(255, 215, 0, 0.08) 50%, transparent 52%),
    radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.02), transparent 50%);
  border-radius: 18px;
  padding: 25px;
  margin: 10px;
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.5),
    0 10px 25px rgba(0, 0, 0, 0.3),
    inset 0 5px 15px rgba(255, 255, 255, 0.9),
    inset 0 -5px 15px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(255, 215, 0, 0.25);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  min-width: 120px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #e8e8e8;
  transform-style: preserve-3d;
  perspective: 1200px;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.blackjack-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700, #ff6b6b, #ffd700);
  border-radius: 15px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(2px);
}

.blackjack-card:hover::before {
  opacity: 0.7;
}

.blackjack-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%),
    linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.4) 60%, transparent 80%);
  animation: cardShineEnhanced 3s linear infinite;
  pointer-events: none;
  border-radius: 15px;
}

@keyframes cardShineEnhanced {
  0% { 
    transform: translateX(-150%) translateY(-150%) rotate(45deg); 
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% { 
    transform: translateX(150%) translateY(150%) rotate(45deg); 
    opacity: 0;
  }
}

.blackjack-card.red {
  color: #dc3545;
  text-shadow: 
    0 0 15px rgba(220, 53, 69, 0.9),
    0 0 30px rgba(220, 53, 69, 0.5),
    3px 3px 6px rgba(0, 0, 0, 0.4);
  background: 
    linear-gradient(145deg, #fff5f5, #fff8f8, #ffffff, #fffafa),
    radial-gradient(ellipse at 40% 40%, rgba(220, 53, 69, 0.12), transparent 60%),
    linear-gradient(45deg, transparent 48%, rgba(220, 53, 69, 0.18) 50%, transparent 52%);
  border-color: #ffcccc;
}

.blackjack-card.black {
  color: #0d0d0d;
  text-shadow: 
    0 0 15px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(0, 0, 0, 0.5),
    3px 3px 6px rgba(0, 0, 0, 0.6);
  background: 
    linear-gradient(145deg, #f8f8f8, #ffffff, #f5f5f5, #fafafa),
    radial-gradient(ellipse at 40% 40%, rgba(0, 0, 0, 0.08), transparent 60%),
    linear-gradient(45deg, transparent 48%, rgba(0, 0, 0, 0.12) 50%, transparent 52%);
  border-color: #d0d0d0;
}

.blackjack-card:hover {
  transform: translateY(-20px) rotateY(20deg) rotateX(8deg) scale(1.2);
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(255, 215, 0, 0.5),
    inset 0 8px 25px rgba(255, 255, 255, 0.95),
    inset 0 -8px 25px rgba(0, 0, 0, 0.25);
  border-color: #ffd700;
  z-index: 15;
  filter: brightness(1.1);
}

/* Card flip animation */
.blackjack-card.flipping {
  animation: cardFlip 0.6s ease-in-out;
}

@keyframes cardFlip {
  0% { transform: rotateY(0deg) scale(1); }
  50% { transform: rotateY(90deg) scale(1.1); }
  100% { transform: rotateY(0deg) scale(1); }
}

/* Card dealing animation */
.blackjack-card.dealing {
  animation: cardDeal 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cardDeal {
  0% { 
    transform: translateY(-300px) rotate(180deg) scale(0.5);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% { 
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

/* Card win animation */
.blackjack-card.winner {
  animation: cardWinner 1s ease-in-out infinite;
}

@keyframes cardWinner {
  0%, 100% { 
    transform: translateY(0) scale(1) rotateZ(0deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.2);
  }
  25% { 
    transform: translateY(-20px) scale(1.1) rotateZ(5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 50px rgba(255, 215, 0, 0.6);
  }
  75% { 
    transform: translateY(-20px) scale(1.1) rotateZ(-5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 50px rgba(255, 215, 0, 0.6);
  }
}


.blackjack-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  padding: 20px;
  background: 
    linear-gradient(145deg, #2d2d44, #1a1a2e),
    radial-gradient(ellipse at center, rgba(255, 215, 0, 0.05), transparent 70%);
  border-radius: 20px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.8),
    inset 0 5px 20px rgba(255, 255, 255, 0.1),
    0 0 100px rgba(255, 215, 0, 0.3);
  border: 3px solid #ffd700;
}

.blackjack-btn {
  background: 
    linear-gradient(145deg, #007bff, #0056b3),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 50%);
  border: none;
  border-radius: 50px;
  padding: 15px 30px;
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 10px 30px rgba(0, 123, 255, 0.4),
    inset 0 3px 10px rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.blackjack-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 20px 50px rgba(0, 123, 255, 0.6),
    inset 0 5px 15px rgba(255, 255, 255, 0.3);
}

.blackjack-btn.stand {
  background: 
    linear-gradient(145deg, #28a745, #1e7e34),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 50%);
  box-shadow: 
    0 10px 30px rgba(40, 167, 69, 0.4),
    inset 0 3px 10px rgba(255, 255, 255, 0.2);
}

.blackjack-btn.stand:hover {
  box-shadow: 
    0 20px 50px rgba(40, 167, 69, 0.6),
    inset 0 5px 15px rgba(255, 255, 255, 0.3);
}

.blackjack-btn.double {
  background: 
    linear-gradient(145deg, #ffc107, #e0a800),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 50%);
  box-shadow: 
    0 10px 30px rgba(255, 193, 7, 0.4),
    inset 0 3px 10px rgba(255, 255, 255, 0.2);
}

.blackjack-btn.double:hover {
  box-shadow: 
    0 20px 50px rgba(255, 193, 7, 0.6),
    inset 0 5px 15px rgba(255, 255, 255, 0.3);
}

.blackjack-info {
  background: 
    linear-gradient(145deg, #2d5016, #1a3009),
    radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.1), transparent 40%);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  border: 2px solid #ffd700;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.4),
    inset 0 3px 10px rgba(255, 255, 255, 0.1);
  color: #ffd700;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  text-align: center;
  font-size: 1.2rem;
}

.blackjack-hands {
  display: flex;
  justify-content: space-around;
  margin: 30px 0;
  gap: 50px;
}

.dealer-hand, .player-hand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hand-label {
  background: 
    linear-gradient(145deg, #8b4513, #654321),
    radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.2), transparent 50%);
  border-radius: 10px;
  padding: 10px 20px;
  color: #ffd700;
  font-weight: bold;
  font-size: 1.1rem;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.3),
    inset 0 2px 5px rgba(255, 255, 255, 0.1);
  border: 1px solid #ffd700;
}

.hand-cards {
  display: flex;
  gap: 10px;
  min-height: 140px;
  align-items: center;
}

/* Ultra-HD Responsive Design */
@media (max-width: 768px) {
  .slot-machine-enhanced {
    padding: 25px;
    margin: 15px;
  }
  
  .slot-reel-enhanced {
    width: 90px;
    height: 90px;
    font-size: 2.2rem;
  }
  
  .blackjack-table-enhanced {
    padding: 25px;
    margin: 15px;
  }
  
  .card-enhanced {
    width: 65px;
    height: 95px;
    font-size: 1.3rem;
  }
  
  .end-turn-enhanced {
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .casino-chip {
    width: 55px;
    height: 55px;
    font-size: 0.8rem;
  }
}
