/* Integrated Control Deck overrides */
.cabinet-integrated-deck {
  position: absolute;
  bottom: 15%; /* Adjusted vertical alignment to match holes */
  left: 0;
  width: 100% !important;
  height: 12%; 
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  z-index: 10;
  display: block !important;
}

.cabinet-integrated-deck .meter-row,
.cabinet-integrated-deck .menu-row,
.cabinet-integrated-deck .control-row {
  position: absolute;
  top: 50%;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
}

/* Left Hole - Align under Reel 1 */
.cabinet-integrated-deck .meter-row {
  left: 23%;
  transform: translate(-50%, -50%) scale(0.9);
}

/* Middle Hole - Align under Reel 2 */
.cabinet-integrated-deck .menu-row {
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
}

/* Right Hole - Align under Reel 3 */
.cabinet-integrated-deck .control-row {
  left: 77%;
  transform: translate(-50%, -50%) scale(0.65); 
  transform-origin: center center;
}

.slot-shell .cabinet {
  width: min(100%, calc((100vh - 50px) * 1.5)) !important;
  max-width: 1400px;
  max-height: none !important;
}


/* --- SINGLE CENTER SPIN BUTTON DIRECTIVE --- */
.cabinet-art {
  z-index: 2 !important;
  pointer-events: none !important;
}

.single-center-deck {
  position: absolute;
  z-index: 1 !important; /* Behind the bezel */
  bottom: 1.5%; /* Drop it into the center tray cutout */
  left: 50%;
  transform: translateX(-50%);
  width: 33%; /* Matches the wide center tray */
  height: 16%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
}

.spin-button-hero {
  width: 90%;
  height: 80%;
  border-radius: 12px;
  border: 4px solid #b8860b !important; /* Brass trim */
  color: #fff !important;
  font-family: 'Orbitron', monospace;
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 900;
  letter-spacing: 4px;
  background: 
    radial-gradient(circle at 38% 24%, #ffcccc 0 5%, #ff4d4d 13%, #b30000 42%, #330000 72%, #b30000 100%) !important;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), 0 6px 10px rgba(0,0,0,0.9) !important;
  text-shadow: 0 0 8px rgba(255, 204, 204, 0.8) !important;
  cursor: pointer;
  transition: transform 0.1s;
  /* Allow clicks to register on this element despite being z-index 1 */
  pointer-events: auto !important;
}

.spin-button-hero:active:not(:disabled) {
  transform: translateY(6px);
  box-shadow: inset 0 4px 12px rgba(0,0,0,.8) !important;
}

.spin-button-hero:hover:not(:disabled) {
  filter: brightness(1.2);
}


/* --- 4 BAYS CONSOLE LAYOUT --- */
/* Deck container anchors */
.cabinet-integrated-deck {
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 22% !important;
  pointer-events: none;
  z-index: 10 !important;
  display: block !important;
}

.console-bay {
  position: absolute !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto;
}

/* --- Left Stack --- */
.bay-top-left {
  left: 21% !important;
  bottom: 46% !important;
  width: 18% !important;
  height: 28% !important;
}

.bay-bottom-left {
  left: 21% !important;
  bottom: 12% !important;
  width: 18% !important;
  height: 28% !important;
}

/* --- Right Stack --- */
.bay-top-right {
  right: 21% !important;
  bottom: 46% !important;
  width: 18% !important;
  height: 28% !important;
}

.bay-bottom-right {
  right: 21% !important;
  bottom: 12% !important;
  width: 18% !important;
  height: 28% !important;
}

/* Button & Display Aesthetics */
.bay-bottom-left .machine-button,
.bay-bottom-right .machine-button {
  width: 100% !important;
  height: 100% !important;
  border-radius: 8px !important;
  border: 2px solid #8b6508 !important;
  background: linear-gradient(180deg, #2b1f0d 0%, #151006 100%) !important;
  color: #ffeb99 !important;
  font-family: 'Orbitron', monospace !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  box-shadow: inset 0 1px 2px rgba(255, 235, 153, 0.3), 0 4px 8px rgba(0, 0, 0, 0.8) !important;
  cursor: pointer !important;
}

.bay-bottom-left .machine-button:active,
.bay-bottom-right .machine-button:active {
  transform: translateY(2px) scale(0.98) !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9) !important;
}

/* Smoked Glass Digital Readouts */
.bay-top-left .credit,
.bay-top-right .bet-meter {
  width: 100% !important;
  height: 100% !important;
  background: #050807 !important;
  border: 2px solid #3d3114 !important;
  border-radius: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.95) !important;
}

.bay-top-left .label,
.bay-top-right .label {
  font-family: 'Orbitron', sans-serif !important;
  font-size: 0.65rem !important;
  color: #8c733e !important;
  letter-spacing: 1px !important;
  line-height: 1 !important;
}

.bay-top-left .value,
.bay-top-right .value {
  font-family: 'Orbitron', monospace !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #f7c94b !important;
  text-shadow: 0 0 8px rgba(247, 201, 75, 0.6) !important;
  line-height: 1.2 !important;
}

/* Keep Center Button */
.bay-center {
  bottom: 1.5% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 33% !important;
  height: 16% !important;
  overflow: visible !important;
}


/* FORCE SPIN BUTTON DIRECTLY INTO THE CENTER HEXAGON */
.spin-button,
[data-action="spin"],
.spin-button-hero {
  position: absolute !important;
  left: 50% !important;
  bottom: 8.5% !important;
  transform: translateX(-50%) !important;
  width: 17% !important;
  height: 9% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: radial-gradient(circle at 50% 35%, #ff3b30 0%, #b30000 65%, #4a0000 100%) !important;
  border: 3px solid #daa520 !important;
  border-radius: 12px !important;
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -4px 8px rgba(0, 0, 0, 0.8),
    0 0 16px rgba(218, 165, 32, 0.5) !important;
  color: #ffffff !important;
  font-family: 'Orbitron', monospace !important;
  font-weight: 900 !important;
  font-size: 1.3rem !important;
  letter-spacing: 3px !important;
  cursor: pointer !important;
  z-index: 9999 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.spin-button:active,
[data-action="spin"]:active,
.spin-button-hero:active {
  transform: translateX(-50%) scale(0.96) !important;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.9) !important;
}

/* FIX SYMBOL SIZE SO THEY ARE READABLE */
.symbol-row {
  padding: 0 !important;
}
.symbol-row img {
  width: 95% !important;
  height: 95% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  drop-shadow: 0 4px 6px rgba(0,0,0,0.8);
}


/* FIX STATUS TEXT OVERLAP */
.status {
  top: 18.5% !important;
  left: 30% !important;
  right: 30% !important;
  bottom: auto !important;
  font-size: 1.1vw !important;
  padding: 4px !important;
}


/* USER GUIDED NUDGES */
.spin-button,
[data-action="spin"],
.spin-button-hero {
  bottom: 10.5% !important; /* up 2 from 8.5% */
}

.bay-top-left {
  bottom: 47% !important; /* up 1 from 46% */
  left: 20.5% !important; /* left 0.5 from 21% */
}

.bay-top-right {
  bottom: 47% !important; /* up 1 from 46% */
  right: 20.5% !important; /* right 0.5 from 21% */
}


/* USER GUIDED NUDGES ROUND 2 */
.spin-button,
[data-action="spin"],
.spin-button-hero {
  bottom: 12.5% !important; /* up 2 again */
}

.bay-top-left {
  bottom: 48% !important; /* up 1 again */
  left: 20.0% !important; /* left 0.5 again */
}

.bay-top-right {
  bottom: 48% !important; /* up 1 again */
  right: 20.0% !important; /* right 0.5 again */
}


/* USER GUIDED NUDGES ROUND 3 */
.spin-button,
[data-action="spin"],
.spin-button-hero {
  bottom: 16.5% !important; /* up 4 from 12.5% */
}

.bay-top-left {
  bottom: 50% !important; /* up 2 from 48% */
  left: 19.0% !important; /* left 1 from 20% */
}

.bay-top-right {
  bottom: 50% !important; /* up 2 from 48% */
  right: 19.0% !important; /* right 1 from 20% */
}


/* USER GUIDED NUDGES ROUND 4 */
.spin-button,
[data-action="spin"],
.spin-button-hero {
  bottom: 21.5% !important; /* up 5 from 16.5% */
}


/* NUDGE THE ACTUAL BAY CONTAINER */
.bay-center {
  bottom: 11.5% !important; /* Base was 1.5% + 10% up */
}
.spin-button,
[data-action="spin"],
.spin-button-hero {
  bottom: 0 !important; /* Reset child so the bay controls it */
  transform: translate(-50%, -20px) !important; /* hard nudge up 20px just in case */
}


/* NUDGE DOWN 30 */
.bay-center {
  bottom: 1.5% !important; /* reset base */
}
.spin-button,
[data-action="spin"],
.spin-button-hero {
  transform: translate(-50%, 30px) !important; /* pull it DOWN 30px */
}


/* NUDGE UP 57.5 */
.spin-button,
[data-action="spin"],
.spin-button-hero {
  bottom: 57.5% !important; 
  transform: translateX(-50%) !important;
}


/* NUDGE UP 100.5 */
.spin-button,
[data-action="spin"],
.spin-button-hero {
  bottom: 100.5% !important; 
  transform: translateX(-50%) !important;
}


/* NUDGE UP 200 */
.spin-button,
[data-action="spin"],
.spin-button-hero {
  bottom: 200% !important; 
  transform: translateX(-50%) !important;
}


/* NUDGE UP 300 */
.spin-button,
[data-action="spin"],
.spin-button-hero {
  bottom: 300% !important; 
  transform: translateX(-50%) !important;
}


/* SMASH THE CEILING & NUDGE UP 600 */
.cabinet-integrated-deck, .console-bay, .bay-center {
  overflow: visible !important;
}

.spin-button,
[data-action="spin"],
.spin-button-hero {
  bottom: 600% !important; 
  transform: translateX(-50%) !important;
}


/* NUDGE DOWN 50 */
.spin-button,
[data-action="spin"],
.spin-button-hero {
  bottom: 550% !important; 
  transform: translateX(-50%) !important;
}


/* NUDGE DOWN 50 */
.spin-button,
[data-action="spin"],
.spin-button-hero {
  bottom: 500% !important; 
  transform: translateX(-50%) !important;
}


/* SHRINK ALL BY 2 AND NUDGE UP 20 */
.bay-top-left, .bay-top-right, .bay-bottom-left, .bay-bottom-right {
  width: 16% !important; /* Shrunk from 18% */
  height: 26% !important; /* Shrunk from 28% */
}

.bay-top-left {
  bottom: 70% !important; /* Up 20 from 50% */
}
.bay-bottom-left {
  bottom: 32% !important; /* Up 20 from 12% */
}
.bay-top-right {
  bottom: 70% !important; /* Up 20 from 50% */
}
.bay-bottom-right {
  bottom: 32% !important; /* Up 20 from 12% */
}


/* TIME BANK TEXT WRAP FIX */
.bay-top-left .value {
  white-space: nowrap !important;
  font-size: 0.9rem !important; /* Shrink font slightly so it fits the 16% width */
}

/* PAYTABLE NUDGE: LEFT 200 UP 100 */
.bay-bottom-left {
  transform: translate(-200px, -100px) !important;
}


/* TIMEBANK UP 5 RIGHT 5 */
.bay-top-left {
  bottom: 75% !important; /* Up 5 from 70% */
  left: 24% !important; /* Right 5 from 19% */
}

/* PAYTABLE UNDO TRANSFORM, SHRINK 2 MORE */
.bay-bottom-left {
  transform: none !important; /* Undo the pixel drag */
  width: 14% !important; /* Shrunk from 16% */
  height: 24% !important; /* Shrunk from 26% */
}


/* NUDGE ROUND */
.bay-top-left {
  left: 23% !important; /* Left 1 from 24% */
}

.bay-bottom-left {
  width: 12% !important; /* Shrink 2 from 14% */
  height: 22% !important; /* Shrink 2 from 24% */
  left: 20% !important; /* Left 1 from 21% */
}


/* STRIP ALL BUTTON/METER BACKGROUNDS - TEXT ONLY ILLUSION */
.cabinet-integrated-deck .machine-button,
.cabinet-integrated-deck .spin-button-hero,
.cabinet-integrated-deck .credit,
.cabinet-integrated-deck .bet-meter {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  /* Ensure the text stays visible and clickable */
  color: #ffeb99 !important;
  text-shadow: 0 0 8px rgba(218, 165, 32, 0.8) !important;
}

/* Fix active state so it doesn't show a shadow either */
.cabinet-integrated-deck .machine-button:active,
.cabinet-integrated-deck .spin-button-hero:active {
  box-shadow: none !important;
  background: transparent !important;
}


/* PAYTABLE SHRINK WIDTH 2 */
.bay-bottom-left {
  width: 10% !important; /* Shrink 2 from 12% */
}


/* PAYTABLE SHRINK WIDTH 5 MORE */
.bay-bottom-left {
  width: 5% !important; /* Shrink 5 from 10% */
}


/* FORCE SHRINK TEXT/BUTTON */
.bay-bottom-left .machine-button {
  font-size: 0.6rem !important; /* Force the text to actually shrink */
  padding: 0 !important;
  white-space: normal !important;
  word-wrap: break-word !important;
}


/* FIX PAYTABLE STACKING */
.bay-bottom-left {
  width: auto !important; /* Let it flow to text width naturally */
}
.bay-bottom-left .machine-button {
  white-space: nowrap !important; /* Force single line */
  word-wrap: normal !important; 
}


/* PAYTABLE UP 5 RIGHT 10 */
.bay-bottom-left {
  bottom: 37% !important; /* Up 5 from 32% */
  left: 30% !important; /* Right 10 from 20% */
}


/* PAYTABLE LEFT 5 DOWN 1 */
.bay-bottom-left {
  bottom: 36% !important; /* Down 1 from 37% */
  left: 25% !important; /* Left 5 from 30% */
}


/* PAYTABLE LEFT 2 UP 1 */
.bay-bottom-left {
  bottom: 37% !important; /* Up 1 from 36% */
  left: 23% !important; /* Left 2 from 25% */
}


/* PAYTABLE LAST MOVE */
.bay-bottom-left {
  bottom: 37.5% !important; /* Up 0.5 from 37% */
  left: 22% !important; /* Left 1 from 23% */
}


/* PAYTABLE UP 1 */
.bay-bottom-left {
  bottom: 38.5% !important; /* Up 1 from 37.5% */
}


/* TIME BANK LEFT 5 */
.bay-top-left {
  left: 18% !important; /* Left 5 from 23% */
}


/* TIME BANK RIGHT 1 */
.bay-top-left {
  left: 19% !important; /* Right 1 from 18% */
}


/* TIME BANK RIGHT 1 AGAIN */
.bay-top-left {
  left: 20% !important; /* Right 1 from 19% */
}


/* MATCH BET FONT TO TIME BANK */
.bay-top-right .value {
  white-space: nowrap !important;
  font-size: 0.9rem !important;
}


/* MATCH BET 5M VERTICAL POSITION TO TIME BANK */
.bay-top-right {
  bottom: 75% !important; /* Matches TIME BANK */
}


/* BOTH READOUTS DOWN 0.5 */
.bay-top-left, .bay-top-right {
  bottom: 74.5% !important; /* Down 0.5 from 75% */
}


/* MATCH MAX BET SIZE TO TIME BANK */
.bay-bottom-right .machine-button {
  font-size: 0.9rem !important;
  white-space: nowrap !important;
}
.bay-bottom-right {
  width: auto !important;
}


/* MATCH MAX BET SIZE TO PAYTABLE */
.bay-bottom-right .machine-button {
  font-size: 0.6rem !important; /* Matches PAYTABLE */
  padding: 0 !important;
}


/* MAX BET UP 2 LEFT 1 */
.bay-bottom-right {
  bottom: 34% !important; /* Up 2 from 32% */
  right: 21% !important; /* Left 1 from 20% (increases right margin) */
}


/* MAX BET UP 2 LEFT 1 AGAIN */
.bay-bottom-right {
  bottom: 36% !important; /* Up 2 from 34% */
  right: 22% !important; /* Left 1 from 21% */
}


/* BOTH LOWER UP 1 */
.bay-bottom-left {
  bottom: 39.5% !important; /* Up 1 from 38.5% */
}
.bay-bottom-right {
  bottom: 37% !important; /* Up 1 from 36% */
}


/* FORCE SYMBOLS TO TOUCH THE SIDES */
.symbol-row img {
  transform: scale(1.8) !important; /* Forces the image to visually overgrow the container bounds */
  transform-origin: center center !important;
}


/* SCOOT REELS 1 AND 3 */
.reel[data-reel="0"] {
  left: 1% !important; /* scoot right 1 */
}
.reel[data-reel="2"] {
  right: 1% !important; /* scoot left 1 */
}


/* SCOOT REELS 1 AND 3 AGAIN */
.reel[data-reel="0"] {
  left: 2% !important; /* scoot right 2 */
}
.reel[data-reel="2"] {
  right: 2% !important; /* scoot left 2 */
}


/* FIX SYMBOL BOUNDING BOX CLIPPING */
.symbol-row {
  overflow: visible !important;
}


/* SCOOT REELS FINAL NUDGE */
.reel[data-reel="0"] {
  left: 4% !important; /* Right 2 from 2% */
}
.reel[data-reel="2"] {
  right: 4% !important; /* Left 2 from 2% */
}


/* =========================================
   MASSIVE VEGAS CELEBRATION OVERHAUL
   ========================================= */

/* 1. Cabinet Earthquake Shake */
@keyframes cabinetShake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  10%, 30%, 50%, 70%, 90% { transform: translate(-4px, 3px) rotate(-1deg); }
  20%, 40%, 60%, 80% { transform: translate(4px, -3px) rotate(1deg); }
}

.win-celebration .cabinet,
.jackpot-celebration .cabinet {
  animation: cabinetShake 0.3s ease-in-out infinite;
}

/* 2. Strobe Light Overlay on the Cabinet Art */
@keyframes strobeFlash {
  0%, 100% { filter: brightness(1) hue-rotate(0deg); }
  25% { filter: brightness(1.8) hue-rotate(90deg) drop-shadow(0 0 50px #ff00ff); }
  50% { filter: brightness(2.2) hue-rotate(180deg) drop-shadow(0 0 50px #00ffff); }
  75% { filter: brightness(1.8) hue-rotate(270deg) drop-shadow(0 0 50px #ff00ff); }
}

.win-celebration .cabinet-art,
.jackpot-celebration .cabinet-art {
  animation: strobeFlash 0.2s infinite !important;
}

/* 3. Winning Payline Laser Explosion */
@keyframes paylineLaser {
  0% { box-shadow: 0 0 10px #ff00ff; opacity: 0.7; height: 3px; }
  50% { box-shadow: 0 0 60px #00ffff, 0 0 120px #ff00ff; opacity: 1; height: 18px; background: #fff; }
  100% { box-shadow: 0 0 10px #ff00ff; opacity: 0.7; height: 3px; }
}

.win-celebration .payline,
.jackpot-celebration .payline {
  background: #ff00ff !important;
  animation: paylineLaser 0.1s infinite !important;
  z-index: 999 !important;
}

/* 4. Symbol Pop & Neon Glow */
@keyframes symbolExplode {
  0% { transform: scale(1.8); filter: drop-shadow(0 0 0px transparent); }
  50% { transform: scale(2.4); filter: drop-shadow(0 0 40px #f7c94b) drop-shadow(0 0 80px #ff00ff) brightness(1.6); z-index: 99; position: relative; }
  100% { transform: scale(1.8); filter: drop-shadow(0 0 0px transparent); }
}

.win-celebration .symbol-row img,
.jackpot-celebration .symbol-row img {
  animation: symbolExplode 0.4s ease-in-out infinite !important;
}

/* 5. Status Text Frenzy */
@keyframes textFrenzy {
  0%, 100% { transform: scale(1); color: #fff; text-shadow: 0 0 20px #ff00ff; }
  50% { transform: scale(1.6); color: #00ffff; text-shadow: 0 0 60px #00ffff, 0 0 120px #fff; }
}

.win-celebration .status,
.jackpot-celebration .status {
  animation: textFrenzy 0.15s infinite !important;
  z-index: 1000 !important;
}


/* =========================================
   RANDOM BONUS: PICK-A-BOX EVENT
   ========================================= */

@keyframes systemFailure {
  0%, 100% { filter: invert(0) brightness(1); transform: translate(0); }
  10%, 30%, 50%, 70%, 90% { filter: invert(1) brightness(2) contrast(3); transform: translate(-10px, 10px) skewX(5deg); }
  20%, 40%, 60%, 80% { filter: invert(1) hue-rotate(90deg) brightness(3); transform: translate(10px, -10px) skewX(-5deg); }
}

.bonus-glitch-active .cabinet,
.bonus-glitch-active .cabinet-art {
  animation: systemFailure 0.15s infinite !important;
}

.bonus-blackout .cabinet-art, 
.bonus-blackout .reel-stage {
  filter: brightness(0) !important;
  opacity: 0.1 !important;
}

/* Pick-A-Box Modal */
.bonus-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease-in-out;
}

.bonus-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

.bonus-title {
  color: #fff;
  font-size: 3rem;
  text-shadow: 0 0 20px #ff00ff, 0 0 40px #00ffff;
  margin-bottom: 2rem;
  animation: textFrenzy 0.2s infinite;
}

.bonus-boxes {
  display: flex;
  gap: 2rem;
}

.mystery-box {
  width: 15vw;
  height: 15vw;
  background: linear-gradient(135deg, #111, #333);
  border: 4px solid #ff00ff;
  border-radius: 12px;
  color: #ff00ff;
  font-size: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 30px #ff00ff;
  transition: all 0.2s;
}

.mystery-box:hover {
  transform: scale(1.1);
  box-shadow: 0 0 60px #00ffff;
  border-color: #00ffff;
  color: #00ffff;
}

.mystery-box.revealed {
  background: #fff;
  color: #000;
  font-size: 2.5rem;
  font-weight: bold;
  box-shadow: 0 0 100px #f7c94b;
  border-color: #f7c94b;
  transform: scale(1.2);
  pointer-events: none;
}

/* Money Rain Overlay */
.money-rain {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 10000;
  background-image: url('https://media.giphy.com/media/l0Ex6kAKAoFRsFh6M/giphy.gif');
  background-size: cover;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.5s;
}

.money-rain.is-raining {
  opacity: 1;
}


/* =========================================
   RIDICULOUS BONUS EXPANSION PACK
   ========================================= */

/* UFO Abduction */
.ufo-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 10000; display: flex; flex-direction: column; align-items: center;
  opacity: 0; transition: opacity 0.5s;
}
.ufo-overlay.is-active { opacity: 1; }
.ufo-ship {
  font-size: 8rem; filter: drop-shadow(0 0 50px #00ff00);
  transform: translateY(-100%); transition: transform 2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.ufo-overlay.is-active .ufo-ship { transform: translateY(10%); }
.tractor-beam {
  width: 40%; height: 70%; background: linear-gradient(180deg, rgba(0,255,0,0.8), transparent);
  opacity: 0; transition: opacity 0.5s; margin-top: -20px;
  animation: pulseBeam 0.2s infinite; clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}
@keyframes pulseBeam { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.8; } }
.tractor-active .tractor-beam { opacity: 1; }
.tractor-active .reel-stage .symbol-row img { transform: translateY(-500px) scale(0.2) !important; transition: transform 1.5s ease-in !important; opacity: 0; }

/* Hacker Overlay */
.hacker-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.95); z-index: 10001; opacity: 0; pointer-events: none;
  font-family: 'Courier New', Courier, monospace; color: #0f0; padding: 3rem; display: flex; align-items: center; justify-content: center;
  transition: opacity 0.1s;
}
.hacker-overlay.is-active { opacity: 1; pointer-events: all; }
.hacker-terminal { font-size: 2.5rem; text-shadow: 0 0 15px #0f0; text-align: left; width: 100%; line-height: 1.5; font-weight: bold; }
.hacker-cursor { display: inline-block; width: 20px; height: 35px; background: #0f0; animation: blink 0.5s infinite; vertical-align: bottom; margin-left: 10px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Runaway Engine Fire */
@keyframes fireFlicker {
  0%, 100% { box-shadow: 0 -40px 100px #ff4500 inset, 0 -60px 120px #ff0000 inset; filter: hue-rotate(-10deg); }
  50% { box-shadow: 0 -50px 120px #ff8c00 inset, 0 -70px 140px #ff0000 inset; filter: hue-rotate(10deg); }
}
.runaway-active .reel {
  animation: fireFlicker 0.05s infinite !important; border: 4px solid #ff4500;
}
.runaway-active .cabinet {
  animation: cabinetShake 0.05s infinite !important; filter: contrast(1.5) saturate(2);
}
.runaway-active .reel-track {
  filter: blur(4px) brightness(1.5);
}


/* COMPLEX UFO STYLING */
.ufo-ship-complex {
  position: relative;
  width: 400px; height: 180px;
  transform: translateY(-200%);
  transition: transform 3s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 10001;
}
.ufo-overlay.is-active .ufo-ship-complex { transform: translateY(10%); }

.ufo-dome {
  width: 160px; height: 90px;
  background: radial-gradient(circle at 50% 20%, rgba(135,206,250,0.9), rgba(0,191,255,0.6) 50%, rgba(0,0,0,0.8));
  border-radius: 100px 100px 20px 20px;
  box-shadow: inset 0 10px 20px rgba(255,255,255,0.8), 0 0 30px rgba(0,191,255,0.8);
  margin-bottom: -30px; z-index: 2;
  border: 2px solid rgba(255,255,255,0.4);
}

.ufo-saucer {
  width: 100%; height: 80px;
  background: linear-gradient(to bottom, #777 0%, #aaa 20%, #444 80%, #222 100%);
  border-radius: 50%;
  box-shadow: 0 15px 50px rgba(0,255,0,0.5), inset 0 10px 20px rgba(255,255,255,0.5), inset 0 -5px 15px rgba(0,0,0,0.8);
  display: flex; align-items: center; justify-content: space-evenly;
  border: 4px solid #999; z-index: 3;
}

.ufo-light {
  width: 25px; height: 15px;
  background: #0f0; border-radius: 50%;
  box-shadow: 0 0 20px #0f0, 0 0 40px #0f0, inset 0 0 10px #fff;
  animation: strobeLight 0.5s infinite alternate;
}
.ufo-light.l1 { animation-delay: 0s; }
.ufo-light.l2 { animation-delay: 0.1s; }
.ufo-light.l3 { animation-delay: 0.2s; }
.ufo-light.l4 { animation-delay: 0.3s; }
.ufo-light.l5 { animation-delay: 0.4s; }

@keyframes strobeLight {
  0% { transform: scale(0.8); filter: brightness(0.5) hue-rotate(0deg); box-shadow: 0 0 5px #0f0; }
  100% { transform: scale(1.3); filter: brightness(2) hue-rotate(90deg); box-shadow: 0 0 30px #0ff, 0 0 60px #fff; }
}

.tractor-beam {
  width: 400px;
}


/* Wormhole Anomaly */
.wormhole-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 10002; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 1s; mix-blend-mode: screen;
}
.wormhole-overlay.is-active { opacity: 1; pointer-events: all; }

.wormhole-vortex {
  width: 0px; height: 0px;
  background: conic-gradient(from 0deg, #000, #4b0082, #9400d3, #8a2be2, #000);
  border-radius: 50%;
  box-shadow: 0 0 100px 50px #8a2be2, inset 0 0 50px #000;
  animation: spinVortex 1s linear infinite;
  transition: width 1.5s ease-in, height 1.5s ease-in;
}
.wormhole-overlay.is-active .wormhole-vortex {
  width: 200vw; height: 200vw;
}

@keyframes spinVortex {
  100% { transform: rotate(360deg); }
}

/* Cabinet Animations */
@keyframes getSuckedIn {
  0% { transform: scale(1) rotate(0deg); filter: blur(0px); opacity: 1; }
  100% { transform: scale(0) rotate(1080deg); filter: blur(20px); opacity: 0; }
}
@keyframes getSpitOut {
  0% { transform: scale(0) rotate(-1080deg); filter: blur(20px); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); filter: blur(0px); opacity: 1; }
}

.cabinet.sucked-in {
  animation: getSuckedIn 1.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards !important;
  transform-origin: center center; z-index: 10003; position: relative;
}
.cabinet.spit-out {
  animation: getSpitOut 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
  transform-origin: center center; z-index: 10003; position: relative;
}

