/* SpinJam London Jam Glow Custom Styles */

/* Keyframe Animations */
@keyframes particle-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(var(--tx, 20px), var(--ty, -20px)) scale(1.2);
    opacity: 1;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.5), 0 0 40px rgba(218, 165, 32, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(218, 165, 32, 0.8), 0 0 60px rgba(218, 165, 32, 0.5);
  }
}

@keyframes neon-flicker {
  0%,
  100% {
    opacity: 1;
  }
  41% {
    opacity: 0.8;
  }
  42% {
    opacity: 1;
  }
  43% {
    opacity: 0.9;
  }
  45% {
    opacity: 1;
  }
}

/* Particle Animation */
.particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(218, 165, 32, 1) 0%, rgba(218, 165, 32, 0) 70%);
  border-radius: 50%;
  animation: particle-float 4s ease-in-out infinite;
}

.particle:nth-child(1) {
  left: 10%;
  top: 20%;
  animation-delay: 0s;
  --tx: 30px;
  --ty: -30px;
}
.particle:nth-child(2) {
  left: 25%;
  top: 40%;
  animation-delay: 0.5s;
  --tx: -20px;
  --ty: -40px;
}
.particle:nth-child(3) {
  left: 40%;
  top: 60%;
  animation-delay: 1s;
  --tx: 25px;
  --ty: -25px;
}
.particle:nth-child(4) {
  left: 55%;
  top: 30%;
  animation-delay: 1.5s;
  --tx: -30px;
  --ty: -35px;
}
.particle:nth-child(5) {
  left: 70%;
  top: 50%;
  animation-delay: 2s;
  --tx: 20px;
  --ty: -20px;
}
.particle:nth-child(6) {
  left: 85%;
  top: 70%;
  animation-delay: 2.5s;
  --tx: -25px;
  --ty: -30px;
}
.particle:nth-child(7) {
  left: 15%;
  top: 80%;
  animation-delay: 3s;
  --tx: 35px;
  --ty: -40px;
}
.particle:nth-child(8) {
  left: 60%;
  top: 15%;
  animation-delay: 3.5s;
  --tx: -15px;
  --ty: -25px;
}

/* Marquee Animation */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 1rem;
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  min-width: 100%;
  animation: marquee 30s linear infinite;
}

/* Glow Effects */
.gold-glow {
  animation: glow-pulse 2s ease-in-out infinite;
}

.neon-text {
  text-shadow: 0 0 10px rgba(218, 165, 32, 0.8), 0 0 20px rgba(218, 165, 32, 0.6), 0 0 30px rgba(218, 165, 32, 0.4);
  animation: neon-flicker 3s infinite;
}

/* Prose Styling for Readability */
.prose {
  max-width: 75ch;
  color: #e5e5e5;
  line-height: 1.7;
}

.prose h2 {
  color: #ffd700;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.prose h3 {
  color: #daa520;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
}

.prose ul,
.prose ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.prose strong {
  color: #ffd700;
  font-weight: 600;
}

.prose a {
  color: #daa520;
  text-decoration: underline;
  transition: color 0.2s;
}

.prose a:hover {
  color: #ffd700;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.prose th {
  background: rgba(218, 165, 32, 0.2);
  color: #ffd700;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid rgba(218, 165, 32, 0.3);
}

.prose td {
  padding: 0.75rem;
  border: 1px solid rgba(218, 165, 32, 0.2);
  background: rgba(75, 0, 130, 0.1);
}

.prose tr:hover td {
  background: rgba(75, 0, 130, 0.2);
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 8px;
  border: 1px solid rgba(218, 165, 32, 0.3);
}

/* Button Enhancements */
.btn-primary {
  background: linear-gradient(135deg, #4b0082 0%, #6a0dad 100%);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(218, 165, 32, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover::before {
  opacity: 1;
}

/* Card Hover Effects */
.game-card,
.promo-card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover,
.promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(218, 165, 32, 0.4);
}

/* Step Badge */
.step-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #4b0082, #6a0dad);
  border-radius: 50%;
  border: 3px solid #ffd700;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffd700;
  box-shadow: 0 0 20px rgba(218, 165, 32, 0.5);
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Global Overflow Control */
html,
body {
  overflow-x: clip;
  overflow-y: auto;
}
