/* 🎰 FULL LAS VEGAS BACCARAT - COMPLETE STYLESHEET */
/* Digital Bank Integration + Realistic Casino Table + Flying Cards */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Roboto:wght@300;400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --casino-gold: #ffd700;
  --casino-cyan: #00fff7;
  --casino-magenta: #ff00de;
  --casino-orange: #fca311;
  --casino-green: #1a3c1a;
  --table-glow: rgba(0, 255, 247, 0.6);
  --banker-gold: rgba(255, 215, 0, 0.8);
}

body {
  font-family: 'Roboto', sans-serif;
  background: 
    radial-gradient(circle at 15% 25%, rgba(252, 163, 17, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(0, 255, 247, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 10%, rgba(255, 0, 222, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, #0f0f1a 0%, #1a1a2f 50%, #0a0a14 100%);
  color: #eee;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  user-select: none;
}

/* CASINO PARTICLES */
.casino-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: particleFloat 8s infinite linear;
}

.particle.gold {
  width: 6px;
  height: 6px;
  background: var(--casino-gold);
  box-shadow: 0 0 12px var(--casino-gold);
  animation-delay: 0s;
  left: 10%;
  animation-duration: 12s;
}

.particle.cyan {
  width: 4px;
  height: 4px;
  background: var(--casino-cyan);
  box-shadow: 0 0 10px var(--casino-cyan);
  animation-delay: 3s;
  left: 70%;
  animation-duration: 10s;
}

.particle.magenta {
  width: 5px;
  height: 5px;
  background: var(--casino-magenta);
  box-shadow: 0 0 15px var(--casino-magenta);
  animation-delay: 6s;
  left: 30%;
  animation-duration: 14s;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* HEADER */
.game-header {
  text-align: center;
  padding: 30px 20px;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--casino-orange);
  box-shadow: 0 10px 50px rgba(252, 163, 17, 0.3);
}

.title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  background: linear-gradient(45deg, var(--casino-cyan), var(--casino-magenta), var(--casino-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 60px var(--casino-cyan);
  margin-bottom: 10px;
  letter-spacing: 4px;
  animation: titleGlow 4s ease-in-out infinite alternate;
}

.subtitle {
  font-size: 1.3rem;
  color: var(--casino-orange);
  font-weight: 400;
  text-shadow: 0 0 20px var(--casino-orange);
  letter-spacing: 2px;
}

@keyframes titleGlow {
  from { filter: drop-shadow(0 0 20px var(--casino-cyan)); }
  to { filter: drop-shadow(0 0 40px var(--casino-gold)); }
}

/* MAIN CASINO TABLE */
#game {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 40px auto;
  max-width: 1200px;
  background: 
    linear-gradient(145deg, var(--casino-green) 0%, #112811 40%, var(--casino-green) 100%),
    radial-gradient(ellipse at 65% 75%, rgba(139,69,19,0.8) 0%, transparent 60%),
    radial-gradient(ellipse at 35% 25%, rgba(139,69,19,0.5) 0%, transparent 60%);
  border-radius: 40px;
  padding: 60px 120px 450px 80px;
  box-shadow: 
    0 0 80px var(--table-glow),
    0 0 160px rgba(255, 0, 222, 0.4),
    inset 0 0 100px rgba(0,0,0,0.8),
    0 30px 80px rgba(0,0,0,0.7);
  position: relative;
  border: 4px solid;
  border-image: linear-gradient(45deg, var(--casino-cyan), var(--casino-magenta), var(--casino-gold)) 1;
  animation: tableHologram 8s linear infinite;
}

@keyframes tableHologram {
  0% { filter: hue-rotate(0deg) drop-shadow(0 0 80px var(--table-glow)); }
  50% { filter: hue-rotate(180deg) drop-shadow(0 0 120px var(--casino-magenta)); }
  100% { filter: hue-rotate(360deg) drop-shadow(0 0 80px var(--table-glow)); }
}

/* PLAYER vs BANKER HANDS */
.hand {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hand.player {
  background: linear-gradient(145deg, rgba(26,60,26,0.95), rgba(15,42,15,0.98));
  padding: 40px 30px;
  border-radius: 30px;
  width: 280px;
  box-shadow: 
    inset 0 0 50px rgba(252,163,17,0.4),
    0 0 40px rgba(0,255,247,0.6),
    0 20px 50px rgba(0,0,0,0.8);
  border: 3px solid rgba(252,163,17,0.7);
}

.hand.banker {
  background: linear-gradient(145deg, rgba(26,60,26,0.98), rgba(15,42,15,0.99), rgba(255,215,0,0.12));
  padding: 45px 35px;
  border-radius: 35px;
  width: 320px;
  transform: scale(1.08);
  box-shadow: 
    inset 0 0 60px var(--banker-gold),
    0 0 60px var(--casino-gold),
    0 0 80px rgba(0,255,247,0.5),
    0 30px 70px rgba(0,0,0,0.9);
  border: 4px solid var(--casino-gold);
}

.hand-title {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 1.6rem;
  margin-bottom: 25px;
  letter-spacing: 3px;
  text-shadow: 0 0 25px currentColor;
}

.hand.player .hand-title { color: var(--casino-orange); }
.hand.banker .hand-title { color: var(--casino-gold); }

.total-display {
  font-size: 1.4rem;
  font-weight: 800;
  margin-top: 20px;
  text-shadow: 0 0 20px currentColor;
}

.hand.player .total-display { color: var(--casino-orange); }
.hand.banker .total-display { color: var(--casino-gold); }

/* CARDS CONTAINER - FLYING TARGETS */
.cards-container {
  width: 220px;
  height: 120px;
  position: relative;
  border-radius: 20px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* FLYING CARDS SYSTEM */
.card {
  width: 60px;
  height: 90px;
  background: linear-gradient(145deg, rgba(15,252,255,0.98), rgba(255,0,221,0.98));
  border-radius: 15px;
  box-shadow:
    0 8px 25px rgba(0,0,0,0.6),
    0 0 30px rgba(0,255,247,0.9),
    inset 0 0 20px rgba(255,0,222,0.9);
  color: white;
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 26px;
  line-height: 90px;
  text-align: center;
  text-shadow:
    0 0 15px rgba(0,255,247,1),
    0 0 20px rgba(255,0,222,1);
  position: relative;
  cursor: default;
  transform-style: preserve-3d;
  perspective: 1200px;
  backface-visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card.banker-card {
  background: linear-gradient(145deg, rgba(255,215,0,0.95), rgba(255,193,7,0.95));
  box-shadow:
    0 8px 25px rgba(0,0,0,0.6),
    0 0 40px var(--casino-gold),
    inset 0 0 25px rgba(255,0,222,0.8);
}

/* FACE DOWN CARDS */
.card.face-down {
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.9) !important;
  color: transparent !important;
  transform: rotateY(180deg);
}

/* SPECIFIC POSITIONS ON TABLE */
.card.player1 { left: 15%; top: 25%; z-index: 2; }
.card.player2 { left: 35%; top: 15%; z-index: 3; }
.card.banker1 { left: 20%; top: 35%; z-index: 2; }
.card.banker2 { left: 40%; top: 45%; z-index: 3; }

/* FLYING & LANDING ANIMATIONS */
.card.landed {
  animation: cardLand 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes cardLand {
  0% { 
    transform: translate(-50%, -50%) scale(0.3) rotateY(180deg) rotateZ(-15deg); 
    opacity: 0;
  }
  60% { 
    transform: translate(-50%, -50%) scale(1.12) rotateY(0deg) rotateZ(3deg); 
  }
  80% { 
    transform: translate(-50%, -50%) scale(1.03) rotateZ(-1deg); 
  }
  100% { 
    transform: translate(-50%, -50%) scale(1) rotateZ(0deg); 
  }
}

.card.flip-reveal {
  animation: cardFlipReveal 1.2s ease-out forwards;
}

@keyframes cardFlipReveal {
  0% { transform: rotateY(180deg) scale(1); }
  50% { transform: rotateY(90deg) scale(1.08); }
  100% { transform: rotateY(0deg) scale(1); }
}

/* LIVE DEALER */
#dealer {
  position: absolute;
  bottom: 35px;
  right: 8%;
  width: 360px;
  height: 360px;
  border-radius: 40px;
  box-shadow: 
    0 0 100px var(--casino-gold),
    0 0 140px rgba(0,255,247,0.8),
    0 0 180px rgba(255,0,222,0.6),
    inset 0 0 60px rgba(255,215,0,0.4);
  overflow: hidden;
  z-index: 25;
  border: 5px solid var(--casino-gold);
  animation: dealerFloat 6s ease-in-out infinite;
}

#dealerVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 35px;
  transition: filter 0.5s ease;
}

#dealerVideo.dealing {
  filter: brightness(1.4) contrast(1.5) saturate(1.6);
}

.dealer-status {
  position: absolute;
  top: -35px;
  right: 15px;
  background: linear-gradient(90deg, var(--casino-gold), var(--casino-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 14px;
  text-shadow: 0 0 25px var(--casino-gold);
}

.status-light {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #ff4444;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 15px #ff4444;
  transition: all 0.3s ease;
}

.status-light.active {
  background: #00ff88;
  box-shadow: 0 0 20px #00ff88;
  animation: statusPulse 1.5s infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.3); }
}

@keyframes dealerFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* BETTING SECTION */
#betting {
  background: linear-gradient(145deg, rgba(13,13,26,0.98), rgba(30,30,50,0.95));
  backdrop-filter: blur(30px);
  border-radius: 30px;
  padding: 35px 50px;
  margin: 40px auto;
  max-width: 900px;
  box-shadow: 
    0 0 60px rgba(252,163,17,0.6),
    inset 0 0 40px rgba(0,0,0,0.7);
  border: 3px solid rgba(252,163,17,0.4);
}

.stats-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(0,0,0,0.5);
  border-radius: 25px;
  gap: 20px;
}

.stat-item {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--casino-orange);
  text-shadow: 0 0 15px var(--casino-orange);
}

.chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 15px;
  margin: 30px 0;
  padding: 25px;
  background: rgba(0,0,0,0.4);
  border-radius: 25px;
  border: 2px solid rgba(255,255,255,0.1);
}

.chip {
  background: linear-gradient(145deg, var(--casino-orange), #e59400);
  color: #1a1a1a;
  border: none;
  padding: 18px 12px;
  font-weight: 900;
  font-size: 1.1rem;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(252,163,17,0.6);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.chip:hover::before {
  left: 100%;
}

.chip:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 15px 40px rgba(252,163,17,0.9);
}

.chip.selected {
  background: linear-gradient(145deg, var(--casino-gold), #ffb300);
  box-shadow: 0 0 50px var(--casino-gold);
  transform: scale(1.1);
}

.big-chip {
  grid-column: span 2;
  font-size: 1.3rem;
}

.bet-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.bet-btn {
  background: linear-gradient(145deg, rgba(34,34,34,0.95), rgba(50,50,50,0.9));
  color: var(--casino-orange);
  border: 3px solid var(--casino-orange);
  padding: 25px 30px;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 30px;
  cursor: pointer;
  min-width: 160px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.bet-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.bet-btn:hover::before {
  left: 100%;
}

.bet-btn:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 50px rgba(252,163,17,0.8);
  border-color: var(--casino-gold);
  color: var(--casino-gold);
}

.bet-btn.banker-bet {
  border-color: var(--casino-gold);
  color: var(--casino-gold);
  background: linear-gradient(145deg, rgba(40,30,10,0.95), rgba(60,45,15,0.9));
}

.bet-btn.banker-bet:hover {
  background: linear-gradient(145deg, var(--casino-gold), #ffb300);
  color: #1a1a1a;
  box-shadow: 0 20px 60px var(--casino-gold);
}

.bet-btn.selected {
  animation: betPulse 2s infinite;
  box-shadow: 0 0 60px currentColor !important;
  transform: scale(1.1) !important;
}

@keyframes betPulse {
  0%, 100% { box-shadow: 0 0 40px currentColor; }
  50% { box-shadow: 0 0 80px currentColor, 0 0 120px rgba(252,163,17,0.5); }
}

.bet-emoji {
  display: block;
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.bet-btn small {
  font-size: 0.85rem;
  opacity: 0.9;
  display: block;
  margin-top: 4px;
}

.bet-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px solid rgba(255,255,255,0.1);
}

.clear-btn {
  background: linear-gradient(145deg, #666, #444);
  color: #ccc;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-btn:hover {
  background: linear-gradient(145deg, #888, #666);
  transform: translateY(-2px);
}

/* CONTROLS */
.control-panel {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 50px 0;
  flex-wrap: wrap;
}

.main-btn, .secondary-btn {
  padding: 20px 50px;
  font-size: 1.3rem;
  font-weight: 900;
  font-family: 'Orbitron', monospace;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 15px 50px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}

.main-btn {
  background: linear-gradient(145deg, var(--casino-orange), #e59400);
  color: #1a1a1a;
  min-width: 220px;
  font-size: 1.4rem;
}

.main-btn:hover:not(:disabled) {
  transform: translateY(-8px) scale(1.08);
  box-shadow: 0 25px 70px rgba(252,163,17,0.9);
}

.main-btn:disabled {
  background: #555;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

.secondary-btn {
  background: linear-gradient(145deg, #444, #333);
  color: #eee;
  padding: 18px 40px;
  min-width: 140px;
}

.secondary-btn:hover:not(:disabled) {
  background: linear-gradient(145deg, #666, #555);
  transform: translateY(-5px);
}

/* RESULTS */
#results-section {
  max-width: 900px;
  margin: 60px auto;
  text-align: center;
}

.result-text {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2rem, 8vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 40px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  letter-spacing: 3px;
  padding: 20px 30px;
  border-radius: 30px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(20px);
  border: 3px solid rgba(255,255,255,0.2);
  transition: all 0.6s ease;
}

.result-text.dealing {
  color: var(--casino-cyan) !important;
  text-shadow: 0 0 60px var(--casino-cyan) !important;
  animation: dealingPulse 1.4s infinite;
}

@keyframes dealingPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.result-text.player-win {
  color: #00ff88 !important;
  background: linear-gradient(145deg, rgba(0,255,136,0.2), rgba(0,200,100,0.3)) !important;
  border-color: #00ff88 !important;
  box-shadow: 0 0 80px rgba(0,255,136,0.8) !important;
}

.result-text.banker-win {
  color: var(--casino-gold) !important;
  background: linear-gradient(145deg, var(--banker-gold), rgba(255,193,7,0.4)) !important;
  border-color: var(--casino-gold) !important;
  box-shadow: 0 0 100px var(--casino-gold) !important;
}

.result-text.tie {
  color: #ffaa00 !important;
  background: linear-gradient(145deg, rgba(255,170,0,0.3), rgba(255,170,0,0.2)) !important;
  border-color: #ffaa00 !important;
  box-shadow: 0 0 80px rgba(255,170,0,0.8) !important;
}

.history-section h4 {
  font-family: 'Orbitron', monospace;
  color: var(--casino-orange);
  margin-bottom: 20px;
  text-shadow: 0 0 15px var(--casino-orange);
}

/* NOTIFICATIONS */
.notification {
  position: fixed;
  top: 40px;
  right: 40px;
  padding: 22px 30px;
  border-radius: 35px;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  z-index: 10001;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
  backdrop-filter: blur(25px);
  transform: translateX(450px);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  max-width: 350px;
}

.notification.show {
  transform: translateX(0);
}

.notification.error { 
  background: linear-gradient(145deg, #ff6b6b, #ee5a52);
  box-shadow: 0 0 50px rgba(255,107,107,0.7);
}

.notification.warning { 
  background: linear-gradient(145deg, #ffd93d, #f39c12);
  box-shadow: 0 0 50px rgba(255,217,61,0.7);
  color: #1a1a1a;
}

.notification.info { 
  background: linear-gradient(145deg, #74b9ff, #0984e3);
  box-shadow: 0 0 50px rgba(116,185,255,0.7);
}

/* HISTORY */
.history-panel {
  max-height: 220px;
  overflow-y: auto;
  padding: 25px;
  background: rgba(13,13,26,0.95);
  border-radius: 30px;
  backdrop-filter: blur(25px);
  border: 2px solid rgba(252,163,17,0.4);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.history-item {
  padding: 15px 20px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}

.history-item:hover {
  transform: translateY(-5px) scale(1.05);
}

.history-item.win {
  background: linear-gradient(145deg, #00ff88, #00cc66);
  color: #1a1a1a;
  box-shadow: 0 0 35px rgba(0,255,136,0.8);
  animation: winPop 0.6s ease-out;
}

.history-item.loss {
  background: linear-gradient(145deg, #ff6b6b, #ee5a52);
  color: white;
  box-shadow: 0 0 30px rgba(255,107,107,0.7);
}

@keyframes winPop {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* UI OVERLAY */
.ui-overlay {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.sound-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, var(--casino-orange), #e59400);
  color: white;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 15px 45px rgba(252,163,17,0.7);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sound-btn:hover {
  transform: scale(1.15) rotate(180deg);
  box-shadow: 0 20px 60px rgba(252,163,17,0.9);
}

.sound-btn.muted {
  background: linear-gradient(145deg, #666, #444);
}

/* DIGITAL BANK INTEGRATION */
.bank-integration {
  position: fixed;
  top: 0;
  right: 0;
  width: 450px;
  height: 100vh;
  z-index: 10000;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bank-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  box-shadow: -20px 0 60px rgba(0,0,0,0.9);
  transform: translateX(100%);
}

.bank-toggle {
  position: absolute;
  top: 20px;
  left: -60px;
  width: 60px;
  height: 60px;
  border-radius: 15px 0 0 15px;
  border: none;
  background: linear-gradient(145deg, var(--casino-gold), #ffb300);
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: -10px 0 30px rgba(255,215,0,0.6);
  z-index: 10001;
  transition: all 0.3s ease;
}

.bank-toggle:hover {
  transform: scale(1.1);
  box-shadow: -15px 0 40px rgba(255,215,0,0.8);
}

/* RESULTS ANIMATIONS */
.result-text.player-win::after,
.result-text.banker-win::after {
  content: '✨';
  animation: sparkle 2s ease-out infinite;
}

@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.5) rotate(180deg); opacity: 0.8; }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  #game { gap: 30px; padding: 40px 60px 450px 50px; }
  .hand.banker { transform: scale(1.02); }
}

@media (max-width: 768px) {
  .stats-row { flex-direction: column; gap: 15px; }
  .bet-buttons { flex-direction: column; align-items: center; }
  .bet-btn { min-width: 200px; margin: 10px 0; }
  .chips-grid { grid-template-columns: repeat(3, 1fr); }
  #dealer { right: 2%; width: 280px; height: 280px; }
  .notification { right: 20px !important; left: 20px !important; top: 20px !important; transform: none !important; }
  .bank-integration { width: 100vw; }
}

@media (max-width: 480px) {
  .card { width: 50px; height: 75px; font-size: 22px; }
  #betting { padding: 25px 20px; margin: 20px 10px; }
}

.ai-dealer-container {
  position: relative;
  overflow: hidden;
  border: 2px solid #ffd700;
  border-radius: 15px;
  background: #000;
}

.ai-dealer-img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.1) brightness(1.1);
  /* Subtle "breathing" animation */
  animation: ai-breathe 5s ease-in-out infinite;
}

.ai-scanline {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 20px;
  background: rgba(255, 215, 0, 0.1);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
  animation: scan 4s linear infinite;
  pointer-events: none;
}

@keyframes ai-breathe {
  0%, 100% { transform: scale(1.0); }
  50% { transform: scale(1.03); }
}

@keyframes scan {
  0% { top: -20px; }
  100% { top: 100%; }
}

.pulse-wrapper {
  position: relative;
  display: inline-block;
  margin-right: 8px;
}

.pulse-ring {
  position: absolute;
  width: 12px; height: 12px;
  background: #00ff00;
  border-radius: 50%;
  opacity: 0.6;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3); opacity: 0; }
}

.ai-dealer-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.1) sepia(5%);
  box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

/* Add a faint digital noise to mimic AI generation */
.ai-glitch-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
  opacity: 0.03;
  pointer-events: none;
}

/* Container for the AI Dealer */
.ai-dealer-container {
  position: relative;
  border: 2px solid #ffd700;
  border-radius: 12px;
  background: #000;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* The Dealer Image */
.ai-dealer-img {
  width: 100%;
  height: auto;
  display: block;
  /* Gives the 'Deepfake' digital look */
  filter: contrast(1.1) brightness(1.1) saturate(1.1);
  /* Breathing animation to simulate life */
  animation: ai-breathe 8s ease-in-out infinite;
}

/* Digital Scanline moving down the face */
.ai-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
  animation: scan-move 4s linear infinite;
  pointer-events: none;
}

/* Animations */
@keyframes ai-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes scan-move {
  0% { top: -10%; }
  100% { top: 110%; }
}

/* HUD Frame Effect */
.ai-hud-frame {
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  border: 1px solid rgba(255, 215, 0, 0.2);
  pointer-events: none;
}
