html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: border-box;
  word-break: break-word;
}

body {
  overflow-x: hidden;
  background-color: #0a0a0f;
  color: #f3f4f6;
}

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

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

.prose-casino h1 {
  color: #fbbf24;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.prose-casino h2 {
  color: #f59e0b;
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #2e2e4a;
  padding-bottom: 0.4rem;
}

.prose-casino h3 {
  color: #fde68a;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose-casino p {
  margin-bottom: 1rem;
}

.prose-casino ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose-casino ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose-casino li {
  margin-bottom: 0.4rem;
}

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

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

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

.prose-casino blockquote {
  border-left: 4px solid #ff6a00;
  padding-left: 1rem;
  color: #9ca3af;
  font-style: italic;
  margin: 1.5rem 0;
}

.prose-casino code {
  background: #22223a;
  color: #fbbf24;
  padding: 0.1em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose-casino pre {
  background: #12121a;
  color: #d1d5db;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.prose-casino thead tr {
  background-color: #22223a;
}

.prose-casino th {
  color: #f59e0b;
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid #2e2e4a;
}

.prose-casino td {
  padding: 0.65rem 1rem;
  border: 1px solid #2e2e4a;
  color: #d1d5db;
}

.prose-casino tbody tr:nth-child(even) {
  background-color: #1a1a26;
}

.prose-casino tbody tr:hover {
  background-color: #22223a;
  transition: background-color 0.2s;
}

/* Prose table scroll wrapper */
.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;
}

/* =====================
   HEADER / STICKY NAV
   ===================== */
#site-header {
  transition: box-shadow 0.3s;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #f59e0b, #ff6a00);
  transition: width 0.25s;
  position: absolute;
  bottom: -4px;
  left: 0;
}

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

/* =====================
   HERO SECTION
   ===================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a26 40%, #2e1a0a 80%, #0a0a0f 100%);
}

/* Parallax subtle effect on hero bg */
.hero-section .hero-bg {
  will-change: transform;
}

/* =====================
   EMBER SPARKS
   ===================== */
.ember-sparks-container {
  pointer-events: none;
}

.spark {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatSpark 6s ease-in-out infinite;
}

.spark-1 {
  width: 4px; height: 4px;
  background: #ff6a00;
  top: 60%; left: 15%;
  animation-delay: 0s;
  animation-duration: 5.5s;
}

.spark-2 {
  width: 3px; height: 3px;
  background: #fbbf24;
  top: 40%; left: 30%;
  animation-delay: 1s;
  animation-duration: 7s;
}

.spark-3 {
  width: 5px; height: 5px;
  background: #ef4444;
  top: 70%; left: 50%;
  animation-delay: 2s;
  animation-duration: 6s;
}

.spark-4 {
  width: 3px; height: 3px;
  background: #fbbf24;
  top: 30%; left: 65%;
  animation-delay: 0.5s;
  animation-duration: 8s;
}

.spark-5 {
  width: 4px; height: 4px;
  background: #ff6a00;
  top: 55%; left: 80%;
  animation-delay: 1.5s;
  animation-duration: 5s;
}

.spark-6 {
  width: 6px; height: 6px;
  background: #dc2626;
  top: 80%; left: 90%;
  animation-delay: 3s;
  animation-duration: 9s;
}

@keyframes floatSpark {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  20%  { opacity: 0.9; }
  80%  { opacity: 0.5; transform: translateY(-120px) scale(0.5); }
  100% { opacity: 0; transform: translateY(-200px) scale(0); }
}

/* =====================
   PULSE CTA BUTTON
   ===================== */
.pulse-cta {
  animation: pulseCta 2.5s ease-in-out infinite;
}

@keyframes pulseCta {
  0%   { box-shadow: 0 0 0 0 rgba(255,106,0,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(255,106,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,106,0,0); }
}

/* =====================
   GAMES MARQUEE
   ===================== */
.games-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.games-marquee-wrapper::before,
.games-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.games-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #12121a, transparent);
}

.games-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #12121a, transparent);
}

.games-marquee {
  display: flex;
  gap: 1.5rem;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

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

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

/* =====================
   GAME CARDS
   ===================== */
.game-card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255,106,0,0.25);
}

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

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255,106,0,0.2);
}

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

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(245,158,11,0.2);
}

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

.review-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255,106,0,0.15);
}

/* =====================
   PROVIDERS WORD CLOUD
   ===================== */
.providers-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.provider-tag {
  display: inline-block;
  background: #1a1a26;
  border: 1px solid #2e2e4a;
  color: #d1d5db;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: default;
}

.provider-tag:hover {
  background: #22223a;
  border-color: #f59e0b;
  color: #fbbf24;
}

.provider-tag-gold {
  font-size: 0.875rem;
  color: #fbbf24;
  border-color: #d97706;
}

.provider-tag-lg {
  font-size: 1rem;
  color: #f9fafb;
  font-weight: 700;
}

.provider-tag-sm {
  font-size: 0.65rem;
  color: #9ca3af;
}

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

.faq-item:hover {
  border-color: rgba(245,158,11,0.4);
}

.faq-question {
  cursor: pointer;
  transition: color 0.2s;
}

.faq-icon {
  transition: transform 0.3s;
  min-width: 12px;
}

.faq-answer {
  transition: all 0.3s ease;
}

/* =====================
   BUTTONS
   ===================== */
.btn-primary {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* =====================
   SCROLLBAR STYLING
   ===================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #12121a;
}

::-webkit-scrollbar-thumb {
  background: #2e2e4a;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

/* =====================
   RESPONSIVE TABLES
   ===================== */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

table {
  min-width: 480px;
}

/* =====================
   UTILITY
   ===================== */
.text-shadow-gold {
  text-shadow: 0 0 20px rgba(245,158,11,0.5);
}

.bg-ember-gradient {
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a26 40%, #2e1a0a 80%, #0a0a0f 100%);
}

/* Prevent overflow on small screens */
@media (max-width: 640px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .games-marquee .game-card {
    width: 160px;
  }
}
