/* ============================================
   DRAG GHOST
   ============================================ */
.drag-ghost {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(255,193,7,0.4);
  transform: translate(-50%, -50%);
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Shake */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

.shake {
  animation: shake 0.2s ease;
}

/* Win flash on zone */
@keyframes winFlash {
  0%, 100% { box-shadow: 0 0 0 rgba(0,230,118,0); }
  50% { box-shadow: 0 0 20px rgba(0,230,118,0.5), inset 0 0 12px rgba(0,230,118,0.3); }
}

.zone.win-flash {
  animation: winFlash 0.2s ease 2;
}

/* Lose flash on zone */
@keyframes loseFlash {
  0%, 100% { box-shadow: 0 0 0 rgba(255,61,0,0); }
  50% { box-shadow: 0 0 20px rgba(255,61,0,0.5), inset 0 0 12px rgba(255,61,0,0.3); }
}

.zone.lose-flash {
  animation: loseFlash 0.2s ease 1;
}

/* Float up (for win/loss amount text) */
@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateY(0) translateX(-50%);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px) translateX(-50%);
  }
}

.float-up,
.float-text {
  animation: floatUp 0.5s ease forwards;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 900;
  z-index: 30;
  pointer-events: none;
  white-space: nowrap;
}

.float-up.win,
.float-text.win {
  color: var(--green);
  text-shadow: 0 0 6px rgba(0,230,118,0.5);
}

.float-up.lose,
.float-text.lose {
  color: var(--red);
  text-shadow: 0 0 6px rgba(255,61,0,0.5);
}

/* Roll badge slide in */
@keyframes rollBadgeIn {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* Particle fly */
@keyframes particleFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.3);
  }
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 30;
  animation: particleFly var(--dur, 0.5s) ease-out forwards;
  will-change: transform, opacity;
}

/* Roll pulse on button */
@keyframes rollPulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(255,193,7,0.3); }
  50% { box-shadow: 0 0 24px rgba(255,193,7,0.6), 0 0 48px rgba(255,193,7,0.2); }
}

.btn-roll.pulsing {
  animation: rollPulse 1s ease infinite;
}

/* Dice rolling glow */
.die.rolling {
  box-shadow: 0 0 20px rgba(255,61,0,0.6), 0 0 40px rgba(255,61,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: box-shadow 0.05s;
}

/* Dice land slam */
@keyframes diceLand {
  0% { transform: scale(1.3) rotate(8deg); }
  40% { transform: scale(0.9) rotate(-3deg); }
  70% { transform: scale(1.05) rotate(1deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.die.landed {
  animation: diceLand 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  box-shadow: 0 6px 20px rgba(0,0,0,0.7), 0 0 30px rgba(255,193,7,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Table rumble during roll */
@keyframes tableRumble {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-1px, 1px); }
  30% { transform: translate(1px, -1px); }
  50% { transform: translate(-1px, 0); }
  70% { transform: translate(1px, 1px); }
  90% { transform: translate(0, -1px); }
}

.table.rumble {
  animation: tableRumble 0.08s linear infinite;
  will-change: transform;
}

/* ============================================
   CONFETTI CANVAS
   ============================================ */
#confettiCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 90;
  pointer-events: none;
}

/* ============================================
   ACHIEVEMENT TOASTS
   ============================================ */
.achievement-container {
  position: fixed;
  top: 130px;
  right: 16px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.achievement-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,0,0,0.96), rgba(30,30,40,0.98));
  border: 1px solid rgba(255,193,7,0.4);
  box-shadow: 0 4px 24px rgba(255,193,7,0.15), 0 0 40px rgba(255,193,7,0.05);
  animation: achieveIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform: translateX(120%);
  max-width: 320px;
}

.achievement-toast.dismiss {
  animation: achieveOut 0.4s ease forwards;
}

@keyframes achieveIn {
  0% { transform: translateX(120%) scale(0.8); opacity: 0; }
  70% { transform: translateX(-8px) scale(1.02); }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes achieveOut {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

.achieve-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(255,193,7,0.5));
}

.achieve-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.achieve-title {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.achieve-desc {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
}

/* ============================================
   STREAK-REACTIVE TABLE GLOW
   ============================================ */
.table.streak-hot {
  box-shadow:
    inset 0 2px 20px rgba(0,0,0,0.5),
    inset 0 -2px 10px rgba(0,0,0,0.3),
    0 0 60px rgba(255,100,0,0.15),
    0 0 120px rgba(255,60,0,0.08),
    0 4px 24px rgba(0,0,0,0.6);
  border-color: #8d4e2a;
  transition: box-shadow 0.6s ease, border-color 0.6s ease;
}

.table.streak-hot-intense {
  box-shadow:
    inset 0 2px 20px rgba(0,0,0,0.5),
    inset 0 -2px 10px rgba(0,0,0,0.3),
    0 0 80px rgba(255,80,0,0.25),
    0 0 160px rgba(255,40,0,0.12),
    0 0 240px rgba(255,193,7,0.06),
    0 4px 24px rgba(0,0,0,0.6);
  border-color: #c56b30;
  transition: box-shadow 0.6s ease, border-color 0.6s ease;
}

.table.streak-cold {
  box-shadow:
    inset 0 2px 20px rgba(0,0,0,0.5),
    inset 0 -2px 10px rgba(0,0,0,0.3),
    0 0 60px rgba(50,100,255,0.12),
    0 0 120px rgba(30,60,200,0.06),
    0 4px 24px rgba(0,0,0,0.6);
  border-color: #3d4a6b;
  transition: box-shadow 0.6s ease, border-color 0.6s ease;
}

/* ============================================
   ENHANCED SCREEN SHAKE
   ============================================ */
@keyframes bigShake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-6px, 3px) rotate(-0.5deg); }
  20% { transform: translate(5px, -4px) rotate(0.4deg); }
  30% { transform: translate(-4px, 2px) rotate(-0.3deg); }
  40% { transform: translate(6px, -3px) rotate(0.5deg); }
  50% { transform: translate(-3px, 4px) rotate(-0.2deg); }
  60% { transform: translate(4px, -2px) rotate(0.3deg); }
  70% { transform: translate(-5px, 3px) rotate(-0.4deg); }
  80% { transform: translate(3px, -4px) rotate(0.2deg); }
  90% { transform: translate(-2px, 1px) rotate(-0.1deg); }
}

body.big-shake {
  animation: bigShake 0.4s ease;
}

body.mega-shake {
  animation: bigShake 0.6s ease;
}

/* ============================================
   CELEBRATION MODE
   ============================================ */
.celebration-overlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: celebFade 2s ease forwards;
}

@keyframes celebFade {
  0% { opacity: 0; }
  15% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; }
}

.celebration-text {
  font-family: var(--mono);
  font-size: 4rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow:
    0 0 20px rgba(255,193,7,0.8),
    0 0 60px rgba(255,193,7,0.4),
    0 0 120px rgba(255,100,0,0.2),
    0 4px 8px rgba(0,0,0,0.6);
  animation: celebText 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  letter-spacing: 4px;
}

@keyframes celebText {
  0% { transform: scale(0.1) rotate(-10deg); opacity: 0; }
  30% { transform: scale(1.3) rotate(2deg); opacity: 1; }
  50% { transform: scale(0.95) rotate(-1deg); }
  70% { transform: scale(1.05) rotate(0.5deg); }
  85% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.5) rotate(0deg); opacity: 0; }
}

/* ============================================
   ENHANCED ROLL BUTTON BREATHING
   ============================================ */
@keyframes rollBreath {
  0%, 100% {
    box-shadow: 0 2px 10px rgba(255,193,7,0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 24px rgba(255,193,7,0.5), 0 0 48px rgba(255,193,7,0.15);
    transform: scale(1.02);
  }
}

@keyframes rollBreathHot {
  0%, 100% {
    box-shadow: 0 2px 10px rgba(255,100,0,0.4), 0 0 30px rgba(255,193,7,0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(255,100,0,0.7), 0 0 60px rgba(255,193,7,0.3), 0 0 90px rgba(255,60,0,0.15);
    transform: scale(1.04);
  }
}

.btn-roll.pulsing-hot {
  animation: rollBreathHot 0.8s ease infinite;
  background: linear-gradient(180deg, #ff9800, #ff5722);
}

/* ============================================
   ENHANCED WIN/LOSE ZONE ANIMATIONS
   ============================================ */
@keyframes winGlow {
  0% { box-shadow: 0 0 0 rgba(0,230,118,0); border-color: rgba(255,255,255,0.7); }
  25% { box-shadow: 0 0 30px rgba(0,230,118,0.6), inset 0 0 20px rgba(0,230,118,0.3); border-color: var(--green); }
  50% { box-shadow: 0 0 15px rgba(0,230,118,0.3), inset 0 0 10px rgba(0,230,118,0.15); }
  75% { box-shadow: 0 0 25px rgba(0,230,118,0.5), inset 0 0 15px rgba(0,230,118,0.25); border-color: var(--green); }
  100% { box-shadow: 0 0 0 rgba(0,230,118,0); border-color: rgba(255,255,255,0.7); }
}

.zone.win-anim {
  animation: winGlow 0.6s ease;
}

@keyframes loseGlow {
  0% { box-shadow: 0 0 0 rgba(255,61,0,0); }
  40% { box-shadow: 0 0 25px rgba(255,61,0,0.5), inset 0 0 15px rgba(255,61,0,0.25); border-color: var(--red); }
  100% { box-shadow: 0 0 0 rgba(255,61,0,0); }
}

.zone.lose-anim {
  animation: loseGlow 0.5s ease;
}

/* ============================================
   SPARKLE PARTICLES
   ============================================ */
@keyframes sparkle {
  0% { opacity: 1; transform: translate(0,0) scale(1) rotate(0deg); }
  50% { opacity: 0.8; transform: translate(var(--dx), calc(var(--dy) * 0.5)) scale(1.2) rotate(180deg); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0) rotate(360deg); }
}

.sparkle-particle {
  position: fixed;
  width: 8px;
  height: 8px;
  pointer-events: none;
  z-index: 35;
  animation: sparkle var(--dur, 0.7s) ease-out forwards;
  will-change: transform, opacity;
}

.sparkle-particle.star {
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: var(--gold);
}

.sparkle-particle.diamond {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  background: #fff;
}

.sparkle-particle.ring {
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
}

/* ============================================
   STREAK BADGE ENHANCED
   ============================================ */
.streak-badge.hot {
  background: linear-gradient(135deg, rgba(255,100,0,0.3), rgba(255,193,7,0.2));
  border: 1px solid rgba(255,100,0,0.5);
  color: #ff9800;
  animation: streakPulseHot 1s ease infinite;
}

.streak-badge.cold {
  background: linear-gradient(135deg, rgba(50,100,255,0.2), rgba(100,180,246,0.15));
  border: 1px solid rgba(100,180,246,0.4);
  color: #64b5f6;
  animation: streakPulseCold 1.5s ease infinite;
}

@keyframes streakPulseHot {
  0%, 100% { box-shadow: 0 0 0 rgba(255,100,0,0); }
  50% { box-shadow: 0 0 12px rgba(255,100,0,0.4), 0 0 24px rgba(255,193,7,0.2); }
}

@keyframes streakPulseCold {
  0%, 100% { box-shadow: 0 0 0 rgba(100,180,246,0); }
  50% { box-shadow: 0 0 10px rgba(100,180,246,0.3); }
}

/* ============================================
   BANKROLL TICK ANIMATION
   ============================================ */
.hstat-val.bal.ticking {
  transition: color 0.1s;
}

@keyframes bigWinPulse {
  0% { transform: scale(1); }
  20% { transform: scale(1.4); color: var(--gold); text-shadow: 0 0 20px rgba(255,193,7,0.8); }
  40% { transform: scale(1.1); }
  60% { transform: scale(1.25); }
  80% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.hstat-val.bankroll-bigwin {
  animation: bigWinPulse 0.8s ease;
}

/* ============================================
   SHOCKWAVE
   ============================================ */
.shockwave {
  position: fixed;
  border-radius: 50%;
  border: 3px solid;
  pointer-events: none;
  z-index: 35;
  transform: translate(-50%, -50%);
  animation: shockwaveExpand 0.5s ease-out forwards;
}

@keyframes shockwaveExpand {
  0% { width: 10px; height: 10px; opacity: 1; border-width: 3px; }
  100% { width: 300px; height: 300px; opacity: 0; border-width: 1px; }
}

/* ============================================
   NUMBER POP
   ============================================ */
.number-pop {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 80;
  pointer-events: none;
  font-family: var(--mono);
  font-weight: 900;
  font-size: 10rem;
  opacity: 0;
  letter-spacing: -4px;
}

.number-pop.pop-win {
  color: var(--green);
  text-shadow: 0 0 40px rgba(0,230,118,0.8), 0 0 80px rgba(0,230,118,0.4), 0 0 120px rgba(0,230,118,0.2);
  animation: numPopWin 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.number-pop.pop-lose {
  color: var(--red);
  text-shadow: 0 0 40px rgba(255,61,0,0.8), 0 0 80px rgba(255,61,0,0.4);
  animation: numPopLose 0.5s ease forwards;
}

.number-pop.pop-point {
  color: var(--gold);
  text-shadow: 0 0 40px rgba(255,193,7,0.8), 0 0 80px rgba(255,193,7,0.4), 0 0 120px rgba(255,193,7,0.2);
  animation: numPopWin 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes numPopWin {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2) rotate(-5deg); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1.3) rotate(2deg); }
  50% { transform: translate(-50%, -50%) scale(0.95) rotate(-1deg); }
  70% { transform: translate(-50%, -50%) scale(1.05) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.5); }
}

@keyframes numPopLose {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  20% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.6) rotate(8deg); }
}

/* ============================================
   CHIP WATERFALL
   ============================================ */
.chip-fly {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #ff9800);
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 700;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 60;
  box-shadow: 0 2px 8px rgba(255,193,7,0.5), inset 0 -1px 2px rgba(0,0,0,0.2);
  will-change: transform, opacity;
}

/* Scatter chips (seven-out lose effect) */
.scatter-chip {
  position: fixed;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #ff9800);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  pointer-events: none;
  z-index: 60;
  will-change: transform, opacity;
}

/* ============================================
   COMBO COUNTER
   ============================================ */
.combo-counter {
  position: fixed;
  top: 45%;
  right: 310px;
  transform: translateY(-50%);
  z-index: 75;
  pointer-events: none;
  font-family: var(--mono);
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255,193,7,0.8), 0 0 40px rgba(255,100,0,0.4);
  opacity: 0;
  transition: opacity 0.3s;
  text-align: center;
  line-height: 1;
}

.combo-counter .combo-num {
  display: block;
  line-height: 1;
}

.combo-counter .combo-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 4px;
  opacity: 0.7;
  margin-top: 2px;
}

.combo-counter.active {
  opacity: 1;
  animation: comboPulse 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes comboPulse {
  0% { transform: translateY(-50%) scale(0.3); }
  60% { transform: translateY(-50%) scale(1.15); }
  100% { transform: translateY(-50%) scale(1); }
}

/* ============================================
   DANGER ZONE VIGNETTE
   ============================================ */
.danger-vignette {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(180,0,0,0.2) 100%);
}

.danger-vignette.active {
  opacity: 1;
  animation: dangerPulse 2s ease infinite;
}

@keyframes dangerPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ============================================
   TABLE HEAT OVERLAY
   ============================================ */
.table-heat-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 2s ease, background 2s ease;
}

/* ============================================
   MILESTONE OVERLAY
   ============================================ */
.milestone-overlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: celebFade 2.5s ease forwards;
}

.milestone-text {
  font-family: var(--mono);
  font-size: 5rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(255,193,7,0.8), 0 0 60px rgba(255,193,7,0.4), 0 0 120px rgba(255,100,0,0.2);
  animation: celebText 2.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  letter-spacing: 2px;
}

.milestone-sub {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255,193,7,0.7);
  letter-spacing: 8px;
  text-transform: uppercase;
  animation: celebText 2.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ============================================
   SLOW-MO DICE BLUR
   ============================================ */
.die.slowmo {
  transition: filter 0.15s ease, transform 0.15s ease;
  filter: blur(1px);
}

.die.slowmo-settle {
  transition: filter 0.1s ease, transform 0.1s ease;
  filter: blur(0);
}

/* ============================================
   ZONE RIPPLE
   ============================================ */
.zone-ripple {
  position: fixed;
  border-radius: 50%;
  border: 2px solid;
  pointer-events: none;
  z-index: 32;
  transform: translate(-50%, -50%);
  animation: zoneRippleExpand 0.5s ease-out forwards;
}

@keyframes zoneRippleExpand {
  0% { width: 8px; height: 8px; opacity: 0.8; }
  100% { width: 150px; height: 150px; opacity: 0; }
}

/* ============================================
   IMPACT DUST
   ============================================ */
.impact-dust {
  position: fixed;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 220, 150, 0.7);
  pointer-events: none;
  z-index: 31;
  animation: dustFly 0.35s ease-out forwards;
  will-change: transform, opacity;
}

@keyframes dustFly {
  0% { opacity: 0.8; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); }
}

/* ============================================
   SEVEN-OUT TABLE FLASH
   ============================================ */
.table.seven-out-flash {
  animation: sevenOutFlash 0.8s ease forwards;
}

@keyframes sevenOutFlash {
  0% { box-shadow: inset 0 0 0 rgba(255,0,0,0), 0 0 40px rgba(0,255,136,0.06), 0 4px 24px rgba(0,0,0,0.6); }
  15% { box-shadow: inset 0 0 80px rgba(255,30,0,0.3), 0 0 60px rgba(255,0,0,0.2), 0 4px 24px rgba(0,0,0,0.6); }
  30% { box-shadow: inset 0 0 40px rgba(255,30,0,0.15), 0 0 40px rgba(255,0,0,0.1), 0 4px 24px rgba(0,0,0,0.6); }
  50% { box-shadow: inset 0 0 60px rgba(255,30,0,0.2), 0 0 50px rgba(255,0,0,0.15), 0 4px 24px rgba(0,0,0,0.6); }
  100% { box-shadow: inset 0 2px 20px rgba(0,0,0,0.5), 0 0 40px rgba(0,255,136,0.06), 0 4px 24px rgba(0,0,0,0.6); }
}

/* ============================================
   ENHANCED WIN/LOSE ZONE ANIMATIONS (override)
   ============================================ */
.zone.win-anim {
  animation: winGlowEnhanced 0.7s ease;
}

@keyframes winGlowEnhanced {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(0,230,118,0); }
  15% { transform: scale(1.06); box-shadow: 0 0 40px rgba(0,230,118,0.7), inset 0 0 25px rgba(0,230,118,0.35); border-color: var(--green); }
  30% { transform: scale(1.02); }
  50% { transform: scale(1.04); box-shadow: 0 0 30px rgba(0,230,118,0.5), inset 0 0 18px rgba(0,230,118,0.25); border-color: var(--green); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(0,230,118,0); }
}

.zone.lose-anim {
  animation: loseShakeGlow 0.5s ease;
}

@keyframes loseShakeGlow {
  0% { transform: translateX(0); box-shadow: 0 0 0 rgba(255,61,0,0); }
  10% { transform: translateX(-3px); box-shadow: 0 0 20px rgba(255,61,0,0.4), inset 0 0 12px rgba(255,61,0,0.2); border-color: var(--red); }
  20% { transform: translateX(3px); }
  30% { transform: translateX(-2px); box-shadow: 0 0 30px rgba(255,61,0,0.5), inset 0 0 18px rgba(255,61,0,0.3); }
  40% { transform: translateX(2px); }
  50% { transform: translateX(-1px); }
  100% { transform: translateX(0); box-shadow: 0 0 0 rgba(255,61,0,0); }
}

/* ============================================
   MOMENTUM STRIP
   ============================================ */
.momentum-strip {
  height: 3px;
  background: rgba(0,0,0,0.6);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.momentum-fill {
  height: 100%;
  width: 0%;
  transition: width 0.8s ease, background 0.8s ease;
  background: rgba(0,229,255,0.4);
  border-radius: 0 2px 2px 0;
}

.momentum-strip.warm .momentum-fill {
  box-shadow: 0 0 8px rgba(0,230,118,0.4);
}

.momentum-strip.intense .momentum-fill {
  box-shadow: 0 0 12px rgba(255,100,0,0.5), 0 0 24px rgba(255,193,7,0.3);
  animation: momentumPulse 0.8s ease infinite;
}

@keyframes momentumPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* ============================================
   NEED INDICATOR
   ============================================ */
.need-indicator {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 900;
  color: rgba(255,193,7,0.5);
  letter-spacing: 6px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.5s;
  text-shadow: 0 0 20px rgba(255,193,7,0.15);
  animation: needPulse 2s ease infinite;
}

.need-indicator.visible {
  opacity: 1;
}

@keyframes needPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
  50% { transform: translateX(-50%) scale(1.03); opacity: 1; }
}

/* ============================================
   SHOOTER TICKER
   ============================================ */
.shooter-ticker {
  position: fixed;
  top: 88px;
  right: 320px;
  z-index: 15;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity 0.4s, color 0.4s;
  white-space: nowrap;
}

.shooter-ticker.visible { opacity: 1; }
.shooter-ticker.pos { color: var(--green); text-shadow: 0 0 12px rgba(0,230,118,0.4); }
.shooter-ticker.neg { color: var(--red); text-shadow: 0 0 12px rgba(255,61,0,0.4); }

/* ============================================
   RECAP CARD
   ============================================ */
.recap-card {
  position: fixed;
  top: 122px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  z-index: 86;
  pointer-events: none;
  background: rgba(0,0,0,0.96);
  border: 1px solid rgba(255,193,7,0.3);
  border-radius: 12px;
  padding: 14px 24px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  min-width: 220px;
}

.recap-card.visible {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  animation: recapIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes recapIn {
  0% { transform: translateX(-50%) scale(0.5) translateY(-10px); opacity: 0; }
  70% { transform: translateX(-50%) scale(1.05); }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

.recap-header {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  opacity: 0.5;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.recap-stats {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 10px;
}

.recap-stat {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}

.recap-stat.pos { color: var(--green); }
.recap-stat.neg { color: var(--red); }

.recap-grade {
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255,193,7,0.5);
  line-height: 1;
}

.recap-grade.grade-Ap, .recap-grade.grade-A { color: var(--green); text-shadow: 0 0 20px rgba(0,230,118,0.5); }
.recap-grade.grade-F, .recap-grade.grade-D { color: var(--red); text-shadow: 0 0 20px rgba(255,61,0,0.5); }

/* ============================================
   EUPHORIA VIGNETTE
   ============================================ */
.euphoria-vignette {
  position: fixed;
  inset: 0;
  z-index: 69;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(255,170,0,0.1) 100%);
}

.euphoria-vignette.active {
  opacity: 1;
  animation: euphoriaPulse 4s ease infinite;
}

.euphoria-vignette.intense {
  opacity: 1;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(255,170,0,0.18) 80%, rgba(255,215,0,0.12) 100%);
  animation: euphoriaPulseIntense 2.5s ease infinite;
}

@keyframes euphoriaPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes euphoriaPulseIntense {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ============================================
   ATMOSPHERE — EUPHORIA TABLE EFFECTS
   ============================================ */
body.atmosphere-euphoria .table {
  box-shadow:
    inset 0 2px 20px rgba(0,0,0,0.5),
    inset 0 -2px 10px rgba(0,0,0,0.3),
    0 0 60px rgba(255,170,0,0.12),
    0 0 120px rgba(255,193,7,0.06),
    0 4px 24px rgba(0,0,0,0.6);
  border-color: #8a6d3b;
  transition: box-shadow 1.5s ease, border-color 1.5s ease;
}

body.atmosphere-euphoria .logo {
  text-shadow: 0 0 15px rgba(255,193,7,0.5), 0 0 30px rgba(255,170,0,0.25);
  transition: text-shadow 1.5s ease;
}

body.atmosphere-euphoria .hstat-val.bal {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255,193,7,0.4);
  transition: color 1.5s ease, text-shadow 1.5s ease;
}

body.atmosphere-euphoria-intense .table {
  box-shadow:
    inset 0 2px 20px rgba(0,0,0,0.5),
    inset 0 -2px 10px rgba(0,0,0,0.3),
    0 0 80px rgba(255,170,0,0.2),
    0 0 160px rgba(255,193,7,0.1),
    0 0 240px rgba(255,215,0,0.05),
    0 4px 24px rgba(0,0,0,0.6);
  border-color: #c5963d;
  transition: box-shadow 1.5s ease, border-color 1.5s ease;
}

body.atmosphere-euphoria-intense .logo {
  animation: logoShimmer 2s ease infinite;
}

body.atmosphere-euphoria-intense .hstat-val.bal {
  color: var(--gold);
  text-shadow: 0 0 15px rgba(255,193,7,0.6), 0 0 30px rgba(255,170,0,0.3);
  animation: balGlow 1.5s ease infinite;
}

body.atmosphere-euphoria-intense .hdr {
  border-bottom-color: rgba(255,193,7,0.2);
  transition: border-bottom-color 1.5s ease;
}

@keyframes logoShimmer {
  0%, 100% { text-shadow: 0 0 15px rgba(255,193,7,0.5), 0 0 30px rgba(255,170,0,0.25); }
  50% { text-shadow: 0 0 25px rgba(255,193,7,0.9), 0 0 50px rgba(255,170,0,0.45), 0 0 80px rgba(255,215,0,0.15); }
}

@keyframes balGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(255,193,7,0.4); }
  50% { text-shadow: 0 0 20px rgba(255,193,7,0.8), 0 0 40px rgba(255,170,0,0.3); }
}

/* ============================================
   ATMOSPHERE — DANGER/CRITICAL EFFECTS
   ============================================ */
body.atmosphere-danger .table {
  box-shadow:
    inset 0 2px 20px rgba(0,0,0,0.6),
    inset 0 -2px 10px rgba(0,0,0,0.4),
    0 0 40px rgba(100,50,50,0.1),
    0 4px 24px rgba(0,0,0,0.7);
  border-color: #4a3535;
  transition: box-shadow 2s ease, border-color 2s ease;
}

body.atmosphere-danger .hdr {
  filter: brightness(0.85);
  transition: filter 2s ease;
}

body.atmosphere-critical .table {
  box-shadow:
    inset 0 2px 30px rgba(0,0,0,0.7),
    inset 0 -2px 10px rgba(0,0,0,0.5),
    0 0 40px rgba(80,20,20,0.15),
    0 4px 24px rgba(0,0,0,0.8);
  border-color: #3a2020;
  filter: saturate(0.5) brightness(0.85);
  transition: box-shadow 2s ease, border-color 2s ease, filter 2s ease;
}

body.atmosphere-critical .hdr {
  filter: brightness(0.75) saturate(0.6);
  transition: filter 2s ease;
}

body.atmosphere-critical .hstat-val.bal {
  color: var(--red);
  animation: balDanger 1s ease infinite;
}

@keyframes balDanger {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

body.atmosphere-critical .controls {
  filter: brightness(0.8) saturate(0.6);
  transition: filter 2s ease;
}

body.atmosphere-critical .stats-bar {
  filter: brightness(0.7) saturate(0.5);
  transition: filter 2s ease;
}
