html {
  overflow-x: hidden;
}

body {
  word-break: break-word;
  overflow-x: hidden;
}

/* ===================== CONTAINER ===================== */
.max-w-container {
  max-width: 1440px;
}

/* ===================== PARALLAX ===================== */
.hero-parallax {
  min-height: 100vh;
}

.hero-bg {
  transform: translateZ(0);
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-bg {
    background-attachment: fixed;
  }
}

/* ===================== STARS ANIMATION ===================== */
.stars-layer {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 60%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 10%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 45%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 30%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 65%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(2px 2px at 35% 35%, rgba(255,215,0,0.4) 0%, transparent 100%),
    radial-gradient(2px 2px at 60% 70%, rgba(180,120,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 78% 15%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 50%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 90%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 92%, rgba(255,255,255,0.6) 0%, transparent 100%);
  animation: stars-twinkle 4s ease-in-out infinite alternate;
}

@keyframes stars-twinkle {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ===================== SCROLL INDICATOR ===================== */
.scroll-bounce {
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0) translateX(-50%); }
  50% { transform: translateY(8px) translateX(-50%); }
}

.scroll-dot {
  animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ===================== BONUS BADGE ===================== */
.bonus-badge {
  animation: badge-glow 3s ease-in-out infinite alternate;
}

@keyframes badge-glow {
  0% { box-shadow: 0 0 20px rgba(201,150,42,0.2), 0 0 40px rgba(201,150,42,0.1); }
  100% { box-shadow: 0 0 30px rgba(201,150,42,0.4), 0 0 60px rgba(201,150,42,0.2); }
}

/* ===================== CTA BUTTONS ===================== */
.cta-primary,
.cta-secondary {
  transition: all 0.2s ease;
}

.cta-primary:hover {
  box-shadow: 0 0 30px rgba(201,150,42,0.4);
}

/* ===================== GAME CARDS ===================== */
.game-card {
  cursor: pointer;
}

.game-card .aspect-square {
  aspect-ratio: 1 / 1;
}

/* ===================== MARQUEE ===================== */
.marquee-track {
  display: flex;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

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

.marquee-track:hover {
  animation-play-state: paused;
}

/* ===================== PROVIDER TAGS ===================== */
.provider-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, rgba(109,40,217,0.15), rgba(139,92,246,0.1));
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 9999px;
  color: #c4b5fd;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: default;
}

.provider-tag:hover {
  background: linear-gradient(135deg, rgba(201,150,42,0.2), rgba(224,184,64,0.15));
  border-color: rgba(201,150,42,0.4);
  color: #f5d76e;
}

/* ===================== PROSE STYLING ===================== */
.prose-casino {
  color: #f8f4ff;
  font-size: 1rem;
  line-height: 1.75;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: #f5d76e;
  font-family: Georgia, serif;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.5rem; }
.prose-casino h3 { font-size: 1.25rem; }

.prose-casino p {
  margin-bottom: 1em;
  color: rgba(248, 244, 255, 0.85);
}

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

.prose-casino a:hover {
  color: #f5d76e;
}

.prose-casino ul,
.prose-casino ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

.prose-casino ul li {
  list-style-type: disc;
  margin-bottom: 0.4em;
  color: rgba(248, 244, 255, 0.85);
}

.prose-casino ol li {
  list-style-type: decimal;
  margin-bottom: 0.4em;
  color: rgba(248, 244, 255, 0.85);
}

.prose-casino strong {
  color: #f5d76e;
  font-weight: 700;
}

.prose-casino blockquote {
  border-left: 4px solid #6d28d9;
  padding-left: 1rem;
  margin: 1.5em 0;
  color: rgba(248, 244, 255, 0.7);
  font-style: italic;
}

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

.prose-casino thead tr {
  background: rgba(30, 16, 80, 0.8);
}

.prose-casino th {
  text-align: left;
  padding: 0.75rem 1rem;
  color: #f5d76e;
  font-weight: 700;
  border-bottom: 2px solid rgba(109,40,217,0.4);
}

.prose-casino td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(109,40,217,0.15);
  color: rgba(248, 244, 255, 0.8);
}

.prose-casino tr:hover td {
  background: rgba(109,40,217,0.08);
}

.prose-casino hr {
  border: none;
  border-top: 1px solid rgba(109,40,217,0.3);
  margin: 2em 0;
}

.prose-casino code {
  background: rgba(109,40,217,0.2);
  border-radius: 0.25rem;
  padding: 0.1em 0.4em;
  font-size: 0.875em;
  color: #c4b5fd;
}

/* ===================== PROSE TABLE SCROLL ===================== */
.prose-casino .prose-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 1.5em 0;
  border-radius: 0.5rem;
}

.prose-casino .prose-table-scroll table {
  margin-top: 0;
  margin-bottom: 0;
}

/* ===================== PROMO CARDS ===================== */
.promo-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===================== STEP CARDS ===================== */
.step-card {
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
}

/* ===================== FAQ ===================== */
.faq-item {
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(201,150,42,0.3);
}

.faq-answer {
  animation: faq-open 0.2s ease;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== NAV LINKS ===================== */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #c9962a, #dc2626);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ===================== REVIEW BLOCKS ===================== */
.review-block {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(109,40,217,0.15);
}

/* ===================== OVERFLOW TABLE FIX ===================== */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* ===================== RESPONSIVE FIXES ===================== */
@media (max-width: 640px) {
  .bonus-badge {
    padding: 1.25rem;
  }

  .hero-parallax {
    min-height: 90vh;
  }
}

/* ===================== ACCESSIBILITY ===================== */
@media (prefers-reduced-motion: reduce) {
  .stars-layer,
  .scroll-bounce,
  .scroll-dot,
  .bonus-badge,
  .marquee-track {
    animation: none;
  }
}
