/* ═══════════════════════════════════════════════════════
   SLOTY TRIP — Arcade Cabinet Styles
   3D-look via gradients, chase lights, lever, reels
   ═══════════════════════════════════════════════════════ */

/* ─── Game Screen / Wall ─── */
#screen-game {
  background: var(--bg-wall);
  justify-content: center;
  overflow: hidden;
}

.game-wall {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Subtle brick texture */
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 28px,
      rgba(255, 255, 255, 0.015) 28px,
      rgba(255, 255, 255, 0.015) 30px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 58px,
      rgba(255, 255, 255, 0.01) 58px,
      rgba(255, 255, 255, 0.01) 60px
    ),
    var(--bg-wall);
}

/* ─── Wall Neon Decorations ─── */
.wall-neon {
  position: absolute;
  font-size: 24px;
  z-index: 1;
  pointer-events: none;
}

.wall-neon--1 { top: 12%; left: 8%; }
.wall-neon--2 { top: 8%; right: 10%; }
.wall-neon--3 { bottom: 20%; left: 5%; font-size: 32px; }

.wall-neon-sign {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(10px, 3vw, 18px);
  z-index: 1;
  letter-spacing: 4px;
  pointer-events: none;
}

.game-back {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
}

/* ─── Cabinet Wrapper (cabinet + lever) ─── */
.cabinet-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  z-index: 2;
  /* Scale to fit viewport */
  transform-origin: center center;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

/* ─── Cabinet Main ─── */
.cabinet {
  position: relative;
  width: clamp(280px, 75vw, var(--cabinet-max-width));
  display: flex;
}

/* ─── Side Panels (3D depth illusion) ─── */
.cabinet-side {
  width: 20px;
  flex-shrink: 0;
}

.cabinet-side--left {
  background: linear-gradient(90deg, #050510 0%, #0d0b22 100%);
  border-radius: 6px 0 0 6px;
}

.cabinet-side--right {
  background: linear-gradient(90deg, #0d0b22 0%, #050510 100%);
  border-radius: 0 6px 6px 0;
}

/* ─── Cabinet Body (front face) ─── */
.cabinet-body {
  flex: 1;
  background: linear-gradient(180deg, #1a1838 0%, #12102a 50%, #0e0c20 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ─── Marquee ─── */
.cabinet-marquee {
  padding: 6px 0;
  background: linear-gradient(180deg, #1a1838, #2a2050);
  border-bottom: 2px solid rgba(255, 23, 68, 0.4);
  box-shadow: 0 2px 15px rgba(255, 23, 68, 0.2);
  text-align: center;
}

.marquee-text {
  font-size: clamp(10px, 2.5vw, 16px);
  letter-spacing: 3px;
  padding: 4px 0;
}

/* ─── Chase Lights ─── */
.chase-lights {
  display: flex;
  justify-content: space-around;
  padding: 3px 8px;
}

.chase-bulb {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 214, 0, 0.2);
  animation: chaseBulb 1.5s linear infinite;
  animation-delay: calc(var(--i) * 0.08s);
}

@keyframes chaseBulb {
  0%, 100% { background: rgba(255, 214, 0, 0.15); box-shadow: none; }
  12%, 20% {
    background: var(--neon-gold);
    box-shadow: 0 0 4px var(--neon-gold), 0 0 8px rgba(255, 214, 0, 0.5);
  }
}

/* ─── CRT Screen Area ─── */
.cabinet-screen {
  position: relative;
  margin: 8px;
  padding: 6px;
  background: var(--bg-screen);
  border: 3px solid #1a1a28;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.screen-glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 5;
}

.screen-vignette {
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  pointer-events: none;
  z-index: 4;
}

.screen-vignette--top {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
}

.screen-vignette--bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

/* ─── Reel Container ─── */
.reel-container {
  display: flex;
  gap: 2px;
  justify-content: center;
}

.reel-window {
  width: var(--reel-cell-size);
  height: calc(var(--reel-cell-size) * 3);
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.reel-strip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
}

.reel-strip.spinning {
  filter: blur(1.5px);
}

/* ─── Symbol Cells ─── */
.symbol-cell {
  width: var(--reel-cell-size);
  height: var(--reel-cell-size);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3);
}

.symbol-cell img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.symbol-fallback {
  font-size: clamp(16px, calc(var(--reel-cell-size) * 0.45), 38px);
  font-weight: bold;
  text-shadow: 0 0 8px currentColor;
  font-family: var(--font-main);
}

.symbol-cell.highlight {
  animation: cellHighlight 0.6s ease-in-out 3;
}

@keyframes cellHighlight {
  0%, 100% { box-shadow: none; }
  50% {
    box-shadow:
      inset 0 0 10px rgba(118, 255, 3, 0.5),
      0 0 10px rgba(118, 255, 3, 0.4);
    border-color: var(--neon-green);
  }
}

/* ─── Win Display ─── */
.win-display {
  min-height: 40px;
  text-align: center;
  font-size: 8px;
  padding: 6px 8px;
  color: var(--neon-gold);
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 214, 0, 0.1);
  border-radius: 2px;
  margin: 4px 0;
  line-height: 1.8;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Control Panel ─── */
.cabinet-controls {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 8px;
  background: linear-gradient(180deg, #1a1838, #151330);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  gap: 6px;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.control-label {
  font-size: 6px;
  color: var(--text-mid);
  letter-spacing: 1px;
}

.control-value {
  font-size: 10px;
  color: var(--neon-cyan);
  min-width: 28px;
  text-align: center;
}

/* ─── Coin Tray ─── */
.cabinet-tray {
  height: 16px;
  background: linear-gradient(180deg, #0a0820, #060412);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.6);
  border-radius: 0 0 4px 4px;
}

/* ─── Cabinet Shadow ─── */
.cabinet-shadow {
  width: clamp(300px, 80vw, 600px);
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
  margin-top: -5px;
  z-index: 1;
}

/* ─── Lever Assembly ─── */
.lever-assembly {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  margin-left: -4px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
}

.lever-plate {
  width: 28px;
  height: 14px;
  background: linear-gradient(180deg, #666, #333);
  border: 1px solid #555;
  border-radius: 3px;
}

.lever-slot {
  width: 10px;
  height: 6px;
  background: #111;
  border: 1px solid #333;
}

.lever-shaft {
  width: 6px;
  height: 70px;
  background: linear-gradient(90deg, #555, #ddd 30%, #bbb 50%, #888 70%, #555);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom center;
}

.lever-ball {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #ff6666, var(--neon-red) 50%, #990022 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 -2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lever-assembly:hover .lever-ball {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 -2px 4px rgba(0, 0, 0, 0.3), 0 0 12px rgba(255, 23, 68, 0.4);
}

.lever-label {
  font-size: 6px;
  color: var(--chrome-mid);
  margin-top: 6px;
  letter-spacing: 2px;
}

/* Lever pulled state */
.lever-assembly.pulled .lever-shaft {
  height: 35px;
}

.lever-assembly.pulled .lever-ball {
  transform: translateY(-5px);
}

/* Lever disabled */
.lever-assembly.disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ─── Risk Button (appears after win) ─── */
.risk-btn {
  display: none;
  margin: 8px auto 0;
  text-align: center;
  font-size: 8px;
  padding: 4px 10px;
  border: 1px solid var(--neon-purple);
  color: var(--neon-purple);
  background: rgba(224, 64, 251, 0.1);
  cursor: pointer;
  animation: riskPulse 0.8s ease-in-out infinite;
  white-space: nowrap;
  font-family: var(--font-main);
}

.risk-btn.visible {
  display: block;
}

@keyframes riskPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(224, 64, 251, 0.3); }
  50% { box-shadow: 0 0 15px rgba(224, 64, 251, 0.6); }
}

/* ─── Responsive ─── */

/* Small phones */
@media (max-width: 400px) {
  .cabinet {
    width: clamp(220px, 90vw, 300px);
  }

  .cabinet-side { width: 10px; }
  .lever-shaft { height: 40px; }
  .lever-ball { width: 20px; height: 20px; }
  .lever-plate { width: 20px; height: 10px; }
  .lever-assembly { margin-top: 20px; }

  .cabinet-controls {
    padding: 4px 3px;
    gap: 2px;
  }

  .control-label { font-size: 5px; }
  .control-value { font-size: 8px; }

  .btn--spin {
    padding: 6px 12px;
    font-size: 8px;
  }

  .cabinet-marquee { padding: 3px 0; }
  .marquee-text { font-size: 8px; letter-spacing: 1px; padding: 2px 0; }
  .chase-lights { padding: 2px 4px; }
  .chase-bulb { width: 4px; height: 4px; }

  .cabinet-screen { margin: 4px; padding: 3px; }
  .win-display { min-height: 28px; font-size: 7px; padding: 3px 4px; }
  .cabinet-tray { height: 10px; }

  .wall-neon { display: none; }
  .wall-neon-sign { font-size: 8px; letter-spacing: 2px; }
  .game-back { font-size: 7px; padding: 3px 6px; }
}

/* Landscape mode */
@media (orientation: landscape) {
  .game-wall { justify-content: center; }
  .wall-neon { display: none; }
  .wall-neon-sign { top: 2%; font-size: 10px; }
  .game-back { top: 5px; left: 5px; }
  .cabinet-shadow { display: none; }
  .lever-assembly { margin-top: 10px; }
  .lever-shaft { height: 40px; }
  .lever-ball { width: 22px; height: 22px; }
  .cabinet-marquee { padding: 2px 0; }
  .chase-lights { padding: 1px 4px; }
  .chase-bulb { width: 4px; height: 4px; }
  .marquee-text { padding: 2px 0; }
  .cabinet-screen { margin: 3px; padding: 3px; }
  .win-display { min-height: 24px; padding: 2px 4px; }
  .cabinet-tray { height: 8px; }
  .cabinet-controls { padding: 4px 4px; }
}

/* Extra small landscape (phone rotated) */
@media (orientation: landscape) and (max-height: 400px) {
  .lever-assembly { margin-top: 5px; }
  .lever-shaft { height: 30px; }
  .lever-ball { width: 18px; height: 18px; }
  .cabinet-controls { padding: 2px 3px; }
  .btn--spin { padding: 4px 10px; font-size: 7px; }
  .broke-warning { top: 30px; }
}

/* ─── Bet Pulse Animation ─── */
@keyframes betPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.bet-pulse-up {
  animation: betPulse 0.25s ease-out;
  color: var(--neon-green) !important;
}

.bet-pulse-down {
  animation: betPulse 0.25s ease-out;
  color: var(--neon-red) !important;
}

/* ─── Reel Stop Clack ─── */
@keyframes reelClack {
  0% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
  100% { box-shadow: inset 0 0 0 1px transparent; }
}

.reel-window.clack {
  animation: reelClack 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes reelClack {
  0% { transform: translateY(0); box-shadow: inset 0 0 0 1px transparent; }
  25% { transform: translateY(3px); box-shadow: inset 0 0 8px rgba(255, 214, 0, 0.3); }
  50% { transform: translateY(-2px); }
  75% { transform: translateY(1px); }
  100% { transform: translateY(0); box-shadow: inset 0 0 0 1px transparent; }
}

@keyframes symbolBounce {
  0% { transform: translateY(-4px) scale(1.08); }
  40% { transform: translateY(2px) scale(0.97); }
  70% { transform: translateY(-1px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

.reel-strip.landed .symbol-cell:nth-last-child(-n+3) {
  animation: symbolBounce 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Satisfying glow flash on land */
.reel-strip.landed .symbol-cell:nth-last-child(-n+3)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 214, 0, 0.2) 0%, transparent 70%);
  animation: landGlow 0.4s ease-out forwards;
  pointer-events: none;
}

@keyframes landGlow {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* ─── Win Highlight Flash-In ─── */
@keyframes cellFlashIn {
  0% { box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3); background: transparent; }
  30% { box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.8), 0 0 20px rgba(118, 255, 3, 0.8); background: rgba(255, 255, 255, 0.15); }
  100% { box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3); background: transparent; }
}

.symbol-cell.flash-in {
  animation: cellFlashIn 0.3s ease-out;
}

@media (min-width: 768px) {
  .cabinet {
    width: var(--cabinet-max-width);
  }

  .wall-neon {
    font-size: 36px;
  }

  .wall-neon-sign {
    font-size: 20px;
  }
}

/* ═══════════════════════════════════════════════════════
   LOSS EFFECTS — Make it hurt
   ═══════════════════════════════════════════════════════ */

/* Red vignette flash on loss */
.cabinet-screen.loss-flash::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(255, 23, 68, 0.4) 100%);
  animation: lossVignette 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 10;
}

@keyframes lossVignette {
  0% { opacity: 0.8; }
  100% { opacity: 0; }
}

/* Loss amount floating up */
.coin-loss-float {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-main);
  font-size: clamp(16px, 5vw, 28px);
  color: var(--neon-red);
  text-shadow: 0 0 10px var(--neon-red), 0 0 20px rgba(255, 23, 68, 0.5);
  animation: lossFloat 1.2s ease-out forwards;
  pointer-events: none;
  z-index: 20;
}

@keyframes lossFloat {
  0% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.3); }
  70% { opacity: 0.8; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-60px) scale(0.8); }
}

/* Cabinet shake on loss */
.loss-shake {
  animation: lossShake 0.3s ease-in-out;
}

@keyframes lossShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

/* Low coins warning states */
.coins-low {
  color: var(--neon-red) !important;
}

.coins-critical {
  color: var(--neon-red) !important;
  animation: coinsCriticalPulse 0.8s ease-in-out infinite;
}

@keyframes coinsCriticalPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.coins-danger {
  color: #ff9100 !important;
}

/* Broke warning banner */
.broke-warning {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: none;
  background: rgba(183, 28, 28, 0.9);
  border: 1px solid var(--neon-red);
  border-radius: 6px;
  padding: 6px 16px;
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.5);
}

.broke-warning.visible {
  display: block;
  animation: brokeFlash 1.5s ease-in-out infinite;
}

@keyframes brokeFlash {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; box-shadow: 0 0 30px rgba(255, 23, 68, 0.8); }
}

.broke-text {
  font-family: var(--font-main);
  font-size: 8px;
  color: #fff;
  white-space: nowrap;
}

/* Boost indicator */
.boost-indicator {
  position: absolute;
  top: 40px;
  right: 10px;
  font-family: var(--font-main);
  font-size: 10px;
  color: var(--neon-green);
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(118, 255, 3, 0.3);
  z-index: 5;
}

/* Level up unlock text */
.levelup-unlock {
  font-family: var(--font-main);
  font-size: 10px;
  margin-top: 10px;
  animation: levelUpUnlockPulse 1s ease-in-out infinite alternate;
}

@keyframes levelUpUnlockPulse {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.05); }
}

/* ─── Tiered Win Shake Effects ─── */
.shake-light {
  animation: shakeLight 0.4s ease-in-out;
}
.shake-medium {
  animation: shakeMedium 0.6s ease-in-out;
}
.shake-heavy {
  animation: shakeHeavy 0.8s ease-in-out;
}

@keyframes shakeLight {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-2px, 1px); }
  30% { transform: translate(2px, -1px); }
  45% { transform: translate(-1px, 0); }
  60% { transform: translate(1px, 1px); }
  75% { transform: translate(-1px, -1px); }
}

@keyframes shakeMedium {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  10% { transform: translate(-4px, 2px) rotate(-0.5deg); }
  20% { transform: translate(4px, -2px) rotate(0.5deg); }
  30% { transform: translate(-3px, 1px) rotate(-0.3deg); }
  40% { transform: translate(3px, -1px) rotate(0.3deg); }
  50% { transform: translate(-2px, 2px) rotate(-0.2deg); }
  60% { transform: translate(2px, -1px) rotate(0.2deg); }
  70% { transform: translate(-1px, 1px); }
  80% { transform: translate(1px, 0); }
}

@keyframes shakeHeavy {
  0%, 100% { transform: translate(0, 0) rotate(0) scale(1); }
  5% { transform: translate(-6px, 3px) rotate(-1deg) scale(1.01); }
  10% { transform: translate(6px, -3px) rotate(1deg) scale(1.01); }
  15% { transform: translate(-5px, 2px) rotate(-0.8deg); }
  20% { transform: translate(5px, -2px) rotate(0.8deg); }
  25% { transform: translate(-4px, 3px) rotate(-0.6deg); }
  30% { transform: translate(4px, -1px) rotate(0.6deg); }
  40% { transform: translate(-3px, 1px) rotate(-0.4deg); }
  50% { transform: translate(3px, -2px) rotate(0.4deg); }
  60% { transform: translate(-2px, 1px) rotate(-0.2deg); }
  70% { transform: translate(2px, -1px) rotate(0.2deg); }
  80% { transform: translate(-1px, 1px); }
  90% { transform: translate(1px, 0); }
}

/* ─── Enhanced Glitch Effects ─── */

/* Heavy glitch variant */
.glitch-heavy {
  animation: glitchHeavy 0.15s infinite !important;
}

@keyframes glitchHeavy {
  0% { transform: translate(0) skewX(0deg); filter: none; }
  20% { transform: translate(-8px, 3px) skewX(-5deg); filter: hue-rotate(90deg) saturate(3); }
  40% { transform: translate(5px, -2px) skewX(3deg); filter: hue-rotate(180deg); }
  60% { transform: translate(-3px, 5px) skewX(-2deg); filter: invert(1) hue-rotate(270deg); }
  80% { transform: translate(6px, -4px) skewX(4deg); filter: hue-rotate(45deg) saturate(5); }
  100% { transform: translate(0) skewX(0deg); filter: none; }
}

/* Neon dying effect */
.neon-dying {
  transition: filter 0.1s, opacity 0.1s;
}

.neon-dark {
  filter: brightness(0.05) saturate(0) !important;
  opacity: 0.3 !important;
}

/* Red alarm overlay */
.red-alarm-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9998;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(255, 0, 0, 0.15) 100%);
  border: 3px solid transparent;
  transition: all 0.2s;
}

.red-alarm-overlay.pulse {
  background: radial-gradient(ellipse at center, transparent 10%, rgba(255, 0, 0, 0.35) 100%);
  border-color: rgba(255, 0, 0, 0.5);
  box-shadow: inset 0 0 80px rgba(255, 0, 0, 0.3);
}

/* Fullscreen glitch overlay */
.fullscreen-glitch-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9998;
  pointer-events: none;
  animation: fullGlitch 0.1s infinite;
  mix-blend-mode: screen;
}

.fullscreen-glitch-overlay .glitch-scanlines {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 0, 0.03) 0px,
    transparent 1px,
    transparent 3px
  );
  animation: scanlineScroll 0.3s linear infinite;
}

.fullscreen-glitch-overlay .glitch-rgb-shift {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.1) 33%,
    rgba(0, 255, 0, 0.1) 33% 66%,
    rgba(0, 0, 255, 0.1) 66%
  );
  animation: rgbShift 0.15s infinite;
}

@keyframes fullGlitch {
  0% { transform: translate(0); }
  25% { transform: translate(-3px, 2px); }
  50% { transform: translate(2px, -3px); }
  75% { transform: translate(3px, 1px); }
  100% { transform: translate(0); }
}

@keyframes scanlineScroll {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

@keyframes rgbShift {
  0% { transform: translateX(0); opacity: 0.5; }
  33% { transform: translateX(-5px); opacity: 0.8; }
  66% { transform: translateX(5px); opacity: 0.6; }
  100% { transform: translateX(0); opacity: 0.5; }
}

/* Stuck reel blink animation */
@keyframes stuckBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
