/* Rush Gala Luxury Casino Theme CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@700;800;900&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --color-surface: #0f131d;
  --color-surface-dim: #0a0e18;
  --color-surface-card: #1c1f2a;
  --color-surface-high: #262a35;
  --color-primary: #ffc174;
  --color-primary-container: #f59e0b;
  --color-secondary: #4edea3;
  --color-tertiary: #ffc32d;
  --color-text-on-surface: #dfe2f1;
  --color-text-muted: #94a3b8;
}

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


html, body {
  background-color: #0f131d !important;
  color: #dfe2f1 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}


h1, h2, h3, .font-heading {
  font-family: 'Outfit', sans-serif;
}

.font-subheading {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Animations */
@keyframes shimmerGold {
  0% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(200%) rotate(25deg); }
}

.animate-shimmer-gold {
  animation: shimmerGold 2.8s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.4), inset 0 0 10px rgba(245, 158, 11, 0.2); }
  50% { box-shadow: 0 0 32px rgba(245, 158, 11, 0.75), inset 0 0 18px rgba(245, 158, 11, 0.4); }
}

.glow-gold {
  animation: pulseGlow 2.5s infinite;
}

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

.animate-float {
  animation: floatSmooth 3.5s ease-in-out infinite;
}

/* Realistic Scratch Card Ticket Styling */
.lottery-ticket {
  background: linear-gradient(135deg, #1f1a10 0%, #161924 50%, #1f180c 100%);
  border: 2px dashed #f59e0b;
  position: relative;
  box-shadow: 0 10px 30px -5px rgba(0,0,0,0.8), 0 0 20px rgba(245, 158, 11, 0.25);
  user-select: none;
  -webkit-user-select: none;
}

.lottery-ticket::before,
.lottery-ticket::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  background-color: var(--color-surface);
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.lottery-ticket::before {
  left: -10px;
  border-right: 2px dashed #f59e0b;
}

.lottery-ticket::after {
  right: -10px;
  border-left: 2px dashed #f59e0b;
}

/* Scratch Canvas */

#scratch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
  touch-action: none;
  border-radius: 1rem;
  z-index: 20;
  display: block;
}


#scratch-canvas:active {
  cursor: grabbing;
}

/* Gesture Hint Overlay - Pure Passthrough */
#scratch-gesture-hint,
#scratch-gesture-hint * {
  pointer-events: none !important;
  user-select: none !important;
}

/* Finger Scratch Gesture Animation */
@keyframes fingerScratch {
  0% {
    transform: translate(-50px, -8px) rotate(-16deg) scale(1);
  }
  25% {
    transform: translate(0px, 12px) rotate(0deg) scale(1.1);
  }
  50% {
    transform: translate(50px, -8px) rotate(16deg) scale(1);
  }
  75% {
    transform: translate(0px, 14px) rotate(0deg) scale(1.1);
  }
  100% {
    transform: translate(-50px, -8px) rotate(-16deg) scale(1);
  }
}

.animate-finger-scratch,
.animate-coin-scratch {
  animation: fingerScratch 1.5s ease-in-out infinite;
}

@keyframes pulseScale {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.05); opacity: 1; }
}

.animate-pulse-scale {
  animation: pulseScale 1.6s ease-in-out infinite;
}

/* Metallic Scratch Dust Particles */
.scratch-dust {
  position: absolute;
  pointer-events: none !important;
  background: radial-gradient(circle, #fde68a 0%, #d97706 100%);
  border-radius: 50%;
  z-index: 35;
  animation: dustFade 0.5s ease-out forwards;
}

@keyframes dustFade {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.2) translateY(20px) translateX(var(--dust-x, 0px));
  }
}

/* Confetti Particle Animation */
.confetti-particle {
  position: absolute;
  top: -10px;
  z-index: 50;
  pointer-events: none !important;
  animation: fall 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fall {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(260px) translateX(var(--x-shift, 0px)) rotate(var(--rot, 360deg));
    opacity: 0;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f131d;
}
::-webkit-scrollbar-thumb {
  background: #262a35;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

/* Material Symbols Outlined Fallback */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  vertical-align: middle;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* High-Contrast Luxury Golden Glowing Download Button */
.btn-primary-glow {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%) !important;
  color: #000000 !important;
  font-weight: 900 !important;
  border: 1px solid #fde68a !important;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  text-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease-in-out !important;
}

.btn-primary-glow,
.btn-primary-glow *,
.btn-primary-glow span {
  color: #000000 !important;
  font-weight: 900 !important;
}

.btn-primary-glow:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #fef08a 50%, #f59e0b 100%) !important;
  box-shadow: 0 6px 28px rgba(245, 158, 11, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  transform: translateY(-1px) scale(1.02);
}

.btn-primary-glow:active {
  transform: translateY(1px) scale(0.98);
}

/* Official 2026 Header Badge */
.official-badge {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 1.5px 6px !important;
  border-radius: 9999px !important;
  background-color: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  letter-spacing: 0.05em !important;
  line-height: 1.4 !important;
  flex-shrink: 0 !important;
}
