/* 
  Vegas Luxury Design System
  Opulent, Complex, Gold & Neon
*/

:root {
  /* Rich Dark Palette */
  --bg-dark: #050505;
  --bg-panel: #121212;
  --bg-panel-light: #1e1e1e;

  /* Luxury Gold Assets */
  --gold-primary: #FFD700;
  --gold-secondary: #FDB931;
  --gold-dark: #B8860B;
  --gold-gradient: linear-gradient(135deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);

  /* Neon Accents */
  --neon-red: #ff003c;
  --neon-blue: #00f3ff;
  --glow-shadow: 0 0 15px rgba(255, 215, 0, 0.5);

  /* Typography */
  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Loading state */
body:not(.loaded) {
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

body.loaded {
  opacity: 1;
}

/* Background Effects */
.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  /* Use the high quality background image */
  background: url('assets/background.webp') no-repeat center center fixed;
  background-size: cover;
}

.background-effects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.85);
  /* Dark overlay to keep text readable */
  z-index: 0;
}

.spotlight {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(148, 0, 211, 0.2) 0%, transparent 70%);
  /* Slightly increased opacity */
  filter: blur(80px);
  animation: float 10s infinite ease-in-out;
  z-index: 1;
  /* Above the overlay */
}

.spotlight-1 {
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(255, 0, 60, 0.1) 0%, transparent 70%);
}

.spotlight-2 {
  bottom: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 243, 255, 0.1) 0%, transparent 70%);
  animation-delay: -5s;
}

.overlay-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffd700' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 40px;
  background: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  z-index: 1000;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 2px;
}

.brand:hover {
  color: var(--gold-primary);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Rolling Dice Animation - Casino Vibes */
.rolling-dice-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-bottom: 30px;
  height: 150px;
  perspective: 1200px;
  perspective-origin: center center;
  transform-style: preserve-3d;
  transform: rotateX(-10deg);
}

.dice {
  width: 60px;
  height: 60px;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: visible;
  filter: drop-shadow(0 8px 20px rgba(255, 215, 0, 0.4));
  cursor: pointer;
  transition: filter 0.3s ease;
}

.dice:hover {
  filter: drop-shadow(0 12px 30px rgba(255, 215, 0, 0.6));
}

.dice-2 {
  /* JavaScript will handle the timing */
}

/* Ensure 3D rendering */
.dice * {
  transform-style: preserve-3d;
  backface-visibility: visible;
}

.dice-face {
  position: absolute;
  width: 60px;
  height: 60px;
  background: linear-gradient(145deg,
    rgba(220, 20, 60, 0.9) 0%,
    rgba(139, 0, 0, 0.95) 30%,
    rgba(220, 20, 60, 0.85) 70%,
    rgba(255, 68, 68, 0.9) 100%);
  border: 2px solid rgba(255, 215, 0, 0.8);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 0 25px rgba(255, 255, 255, 0.4),
    inset 0 0 15px rgba(255, 0, 0, 0.3),
    0 10px 20px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(255, 0, 0, 0.4);
  overflow: hidden;
  backdrop-filter: blur(15px);
  /* Ensure faces are properly positioned in 3D space */
  backface-visibility: visible;
}

.dice-face::before {
  content: '';
  position: absolute;
  top: 5%;
  left: 5%;
  width: 40%;
  height: 40%;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%);
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.7;
}

.dice-face::after {
  content: '';
  position: absolute;
  bottom: 5%;
  right: 5%;
  width: 20%;
  height: 20%;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  filter: blur(6px);
}

.dice:hover {
  animation-duration: 0.8s;
  filter: drop-shadow(0 8px 25px rgba(255, 215, 0, 0.6));
}

/* 3D Face Positions */
.face-1 {
  transform: rotateY(0deg) translateZ(25px);
}

.face-2 {
  transform: rotateY(90deg) translateZ(25px);
}

.face-3 {
  transform: rotateY(180deg) translateZ(25px);
}

.face-4 {
  transform: rotateY(-90deg) translateZ(25px);
}

.face-5 {
  transform: rotateX(90deg) translateZ(25px);
}

.face-6 {
  transform: rotateX(-90deg) translateZ(25px);
}

.dot {
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #ffffff 0%, #f0f0f0 70%, #e0e0e0 100%);
  border-radius: 50%;
  position: absolute;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.dot-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.dot-topleft {
  top: 12px;
  left: 12px;
}

.dot-topright {
  top: 12px;
  right: 12px;
}

.dot-bottomleft {
  bottom: 12px;
  left: 12px;
}

.dot-bottomright {
  bottom: 12px;
  right: 12px;
}

.dot-toprow-1 {
  top: 8px;
  left: 8px;
}

.dot-toprow-2 {
  top: 8px;
  right: 8px;
}

.dot-bottomrow-1 {
  top: 25px;
  left: 8px;
}

.dot-bottomrow-2 {
  top: 25px;
  right: 8px;
}

.dot-bottomrow-3 {
  bottom: 8px;
  left: 8px;
}

.dot-bottomrow-4 {
  bottom: 8px;
  right: 8px;
}

/* JavaScript-controlled animation - CSS animation removed */
.dice.rolling {
  /* Animation controlled by JavaScript */
}

/* Enhanced 3D visibility */
.dice:active {
  filter: drop-shadow(0 15px 40px rgba(255, 215, 0, 0.8));
  transform: scale(0.95);
}

/* 3D Dice Visual Effects */
.dice::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg,
    rgba(255, 215, 0, 0.3),
    rgba(255, 215, 0, 0.1),
    rgba(255, 215, 0, 0.3));
  border-radius: 17px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dice:hover::before {
  opacity: 1;
}

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

/* Floating Jackpot.png Elements - Subtle Animation */
.floating-jackpot {
  position: absolute;
  width: 60px;
  height: 60px;
  background-image: url('assets/jackpot.7749b58b.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.2));
  animation: floatJackpot 25s infinite linear;
  will-change: transform, opacity;
  pointer-events: none;
}

.jackpot-1 {
  top: 20%;
  left: 10%;
  animation-duration: 30s;
  animation-delay: 0s;
}

.jackpot-2 {
  top: 60%;
  right: 15%;
  animation-duration: 35s;
  animation-delay: 10s;
}

.jackpot-3 {
  bottom: 30%;
  left: 20%;
  animation-duration: 28s;
  animation-delay: 18s;
}

.floating-jackpot-bg {
  position: absolute;
  width: 80px;
  height: 80px;
  background-image: url('assets/jackpot.7749b58b.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.08;
  animation: floatJackpotBg 40s infinite linear;
  will-change: transform, opacity;
  pointer-events: none;
}

.jackpot-bg1 {
  top: 15%;
  left: 70%;
  animation-duration: 45s;
  animation-delay: 5s;
}

.jackpot-bg2 {
  bottom: 20%;
  right: 25%;
  animation-duration: 38s;
  animation-delay: 15s;
}

@keyframes floatJackpot {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0.15;
  }
  25% {
    opacity: 0.25;
  }
  50% {
    transform: translateY(-30px) translateX(20px) rotate(180deg);
    opacity: 0.15;
  }
  75% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(0) translateX(0) rotate(360deg);
    opacity: 0.15;
  }
}

@keyframes floatJackpotBg {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    opacity: 0.08;
  }
  33% {
    transform: translateY(-50px) translateX(-30px) rotate(120deg) scale(1.1);
    opacity: 0.12;
  }
  66% {
    transform: translateY(40px) translateX(40px) rotate(240deg) scale(0.9);
    opacity: 0.08;
  }
  100% {
    transform: translateY(0) translateX(0) rotate(360deg) scale(1);
    opacity: 0.08;
  }
}

/* Hero Section */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 100px 20px;
  overflow: hidden;
  /* Ensure pseudo-element doesn't overflow */
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/Product - Vector 3.png') no-repeat center top;
  background-size: 150%;
  opacity: 0.2;
  /* 80% transparency */
  z-index: 0;
  animation: heroPulse 15s infinite ease-in-out alternate;
}

.hero-content {
  position: relative;
  z-index: 1;
  /* Ensure content is above background */
}

.jackpot-container {
  display: inline-block;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--gold-primary);
  padding: 15px 30px;
  border-radius: 5px;
  margin-bottom: 30px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.jackpot-label {
  font-size: 0.9rem;
  color: var(--gold-primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.jackpot-value {
  font-family: 'Courier New', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 0, 60, 0.7);
  background: linear-gradient(to bottom, #fff, #ffcccc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.text-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.3));
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #ccc;
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.cta-btn {
  padding: 18px 45px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: #000;
  background: var(--gold-gradient);
  border: none;
  cursor: pointer;
  clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

/* Featured Section */
.featured-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 0;
}

.featured-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.game-card.featured {
  width: 300px;
  transform: scale(1.05);
  border: 1px solid var(--gold-primary);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.15);
}

.game-card.featured:hover {
  transform: scale(1.1);
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
}

.hit-badge,
.new-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--neon-red);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 0 10px var(--neon-red);
  z-index: 10;
  animation: pulse 1.5s infinite;
}

.new-badge {
  background: var(--neon-blue);
  box-shadow: 0 0 10px var(--neon-blue);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* Games Section */
.games-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 100px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.header-decoration {
  height: 2px;
  width: 100px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.game-card {
  position: relative;
  background: var(--bg-panel);
  height: 250px;
  cursor: pointer;
  transition: transform 0.4s;
  padding: 4px;
  /* Space for border */
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.game-card.wide {
  grid-column: span 2;
}

.card-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #333;
  z-index: 1;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 0.4s;
}

.game-card:hover .card-border {
  background: var(--gold-gradient);
}

.card-content {
  position: relative;
  height: 100%;
  width: 100%;
  background: var(--bg-panel-light);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 0.4s;
}

.game-card:hover .card-content {
  background: linear-gradient(to bottom, #252525, #151515);
}

.game-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s var(--ease-bounce);
  will-change: transform;
}

.game-icon.loaded {
  animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.game-card:hover .game-icon {
  transform: scale(1.15) rotate(5deg);
}

.game-title {
  font-family: var(--font-display);
  color: var(--gold-primary);
  font-size: 1.2rem;
  letter-spacing: 1px;
}

/* Modal */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal-backdrop.active {
  opacity: 1;
}

.modal-card {
  position: relative;
  background: #111;
  width: 90%;
  max-width: 500px;
  padding: 40px;
  text-align: center;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.modal-border-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gold-gradient);
  z-index: -1;
  filter: blur(10px);
  opacity: 0.5;
}

.close-modal-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #666;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal-btn:hover {
  color: var(--gold-primary);
}

.modal-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.3));
}

.modal-title {
  font-family: var(--font-display);
  color: var(--gold-primary);
  font-size: 2rem;
  margin: 10px 0;
  text-transform: uppercase;
}

.modal-actions {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.action-btn {
  background: #222;
  color: #fff;
  border: 1px solid #444;
}

.action-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* Footer */
footer {
  border-top: 1px solid #333;
  padding: 40px 0;
  background: #000;
  text-align: center;
  color: #666;
}

.footer-links {
  margin-top: 20px;
}

.footer-links a {
  margin: 0 10px;
  color: #888;
}

.footer-links a:hover {
  color: var(--gold-primary);
}

/* Jackpot Winner Popup */
.jackpot-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s;
}

.jackpot-popup.active {
  opacity: 1;
}

.jackpot-popup-content {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a, #000);
  width: 90%;
  max-width: 600px;
  padding: 60px 40px;
  text-align: center;
  clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
  transform: scale(0.8);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.jackpot-popup.active .jackpot-popup-content {
  transform: scale(1);
  animation: jackpotGlow 1s infinite alternate;
}

@keyframes jackpotGlow {
  0% {
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
  }
  100% {
    box-shadow: 0 0 80px rgba(255, 215, 0, 0.8), 0 0 100px rgba(255, 0, 60, 0.3);
  }
}

.jackpot-crown {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: crownBounce 1s infinite alternate;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

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

.jackpot-winner-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  animation: titlePulse 0.5s infinite alternate;
}

@keyframes titlePulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

.jackpot-amount {
  font-size: 4rem;
  font-weight: 700;
  color: #fff;
  margin: 20px 0;
  text-shadow: 0 0 20px rgba(255, 0, 60, 0.8);
  animation: amountGlow 0.3s infinite alternate;
}

@keyframes amountGlow {
  0% {
    text-shadow: 0 0 20px rgba(255, 0, 60, 0.8);
  }
  100% {
    text-shadow: 0 0 30px rgba(255, 0, 60, 1), 0 0 40px rgba(255, 215, 0, 0.5);
  }
}

.jackpot-message {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 30px;
}

.jackpot-close-btn {
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--gold-gradient);
  color: #000;
  border: none;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: all 0.3s;
}

.jackpot-close-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

/* Fireworks Animation */
.jackpot-fireworks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.firework {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold-primary);
  border-radius: 50%;
  animation: firework 1.5s infinite;
}

.firework:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.firework:nth-child(2) {
  top: 20%;
  right: 20%;
  animation-delay: 0.3s;
}

.firework:nth-child(3) {
  bottom: 20%;
  left: 30%;
  animation-delay: 0.6s;
}

.firework:nth-child(4) {
  bottom: 20%;
  right: 30%;
  animation-delay: 0.9s;
}

@keyframes firework {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
    box-shadow: 0 0 10px var(--gold-primary);
  }
  100% {
    transform: translate(var(--x), var(--y)) scale(0);
    opacity: 0;
  }
}

/* Enhanced Play Now Button */
.cta-btn.fancy {
  position: relative;
  padding: 20px 50px;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #000;
  background: linear-gradient(135deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
  background-size: 300% 300%;
  border: none;
  cursor: pointer;
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  animation: gradientShift 3s ease infinite;
  box-shadow: 0 5px 25px rgba(255, 215, 0, 0.3);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

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

.cta-btn.fancy:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.6);
  animation-play-state: paused;
}

.cta-btn.fancy::after {
  content: '✨';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.4s;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

.cta-btn.fancy:hover::after {
  top: 10px;
  opacity: 1;
  animation: sparkle 0.5s infinite alternate;
}

@keyframes sparkle {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.2) rotate(180deg); }
}

.cta-btn.fancy:active {
  transform: translateY(-2px) scale(1.02);
}

/* Floating particles around button */
.cta-btn.fancy .btn-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gold-primary);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 2s infinite;
}

.cta-btn.fancy:hover .btn-particle {
  opacity: 1;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }
  50% {
    transform: translateY(-30px) scale(1);
    opacity: 1;
  }
}

/* Utils */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-30px);
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .game-card.wide {
    grid-column: span 1;
  }

  .jackpot-winner-title {
    font-size: 2.5rem;
  }

  .jackpot-amount {
    font-size: 3rem;
  }

  .cta-btn.fancy {
    padding: 15px 35px;
    font-size: 1rem;
  }

  .brand {
    font-size: 1.4rem;
  }

  .rolling-dice-container {
    gap: 50px;
    height: 120px;
    perspective: 1000px;
  }

  .dice {
    width: 50px;
    height: 50px;
  }

  .dice-face {
    width: 50px;
    height: 50px;
    border-radius: 10px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .face-1 { transform: rotateY(0deg) translateZ(25px); }
  .face-2 { transform: rotateY(90deg) translateZ(25px); }
  .face-3 { transform: rotateY(180deg) translateZ(25px); }
  .face-4 { transform: rotateY(-90deg) translateZ(25px); }
  .face-5 { transform: rotateX(90deg) translateZ(25px); }
  .face-6 { transform: rotateX(-90deg) translateZ(25px); }

  .face-1 { transform: rotateY(0deg) translateZ(20px); }
  .face-2 { transform: rotateY(90deg) translateZ(20px); }
  .face-3 { transform: rotateY(180deg) translateZ(20px); }
  .face-4 { transform: rotateY(-90deg) translateZ(20px); }
  .face-5 { transform: rotateX(90deg) translateZ(20px); }
  .face-6 { transform: rotateX(-90deg) translateZ(20px); }
}

@keyframes heroPulse {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}