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

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

body {
  background-color: #0a0f0d;
  color: #e8f5e0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

/* ===== SCROLLABLE TABLES ===== */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
}

/* ===== PROSE CASINO ===== */
.prose-casino {
  color: #c8d8c0;
  line-height: 1.75;
  max-width: 100%;
}

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

.prose-casino h1 { font-size: 2em; }
.prose-casino h2 { font-size: 1.5em; color: #d4af37; }
.prose-casino h3 { font-size: 1.25em; color: #00c87a; }
.prose-casino h4 { font-size: 1.1em; }

.prose-casino p {
  margin-bottom: 1em;
  color: #c8d8c0;
}

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

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

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

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

.prose-casino blockquote {
  border-left: 4px solid #00c87a;
  padding-left: 1em;
  margin: 1.5em 0;
  color: #c8d8c0;
  font-style: italic;
}

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

.prose-casino em {
  color: #d4af37;
}

.prose-casino hr {
  border-color: #1e3d2f;
  margin: 2em 0;
}

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

.prose-casino th {
  background-color: #1a3d2b;
  color: #d4af37;
  padding: 0.75em 1em;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #1e3d2f;
}

.prose-casino td {
  padding: 0.65em 1em;
  border-bottom: 1px solid #1e3d2f;
  color: #c8d8c0;
}

.prose-casino tr:nth-child(even) td {
  background-color: #0f1f18;
}

.prose-casino tr:hover td {
  background-color: #1a3d2b;
}

/* Scrollable table wrapper in prose */
.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;
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
}

.hero-bg {
  background-color: #0a120e;
  background-image:
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(0, 200, 122, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at 15% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 85% 30%, rgba(26, 61, 43, 0.9) 0%, transparent 45%),
    linear-gradient(165deg, #060b08 0%, #0f1f18 42%, #0a0f0d 100%);
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero-bg:hover {
  transform: scale(1);
}

/* Parallax JS hook */
[data-parallax] {
  will-change: transform;
}

/* ===== MARQUEE ===== */
.marquee-container {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

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

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

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes glow {
  0% { box-shadow: 0 0 10px rgba(0, 200, 122, 0.3); }
  100% { box-shadow: 0 0 30px rgba(0, 200, 122, 0.8); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

.animate-glow {
  animation: glow 2s ease-in-out infinite alternate;
}

.shimmer-text {
  background: linear-gradient(90deg, #c8d8c0 25%, #00c87a 50%, #d4af37 75%, #c8d8c0 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* ===== GAME CARDS ===== */
.game-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

/* ===== PROMO CARDS ===== */
.promo-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

/* ===== PROVIDER TAGS ===== */
.provider-tag {
  display: inline-block;
  padding: 0.25em 0.5em;
  transition: transform 0.15s ease;
  cursor: default;
}

.provider-tag:hover {
  transform: scale(1.1);
}

/* ===== GAME THUMBNAILS (fallback when asset images are unavailable) ===== */
.game-thumb {
  background:
    radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(0, 200, 122, 0.12) 0%, transparent 50%),
    linear-gradient(155deg, #0f2419 0%, #0c1812 48%, #1a1208 100%);
  border-bottom: 1px solid rgba(30, 61, 47, 0.9);
}

/* ===== STEP CARDS ===== */
.step-card {
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, #102218 0%, #0c1812 100%);
  border: 1px solid #1e3d2f;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  border-color: #00c87a;
  box-shadow: 0 12px 40px rgba(0, 200, 122, 0.08);
  transform: translateY(-4px);
}

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

.faq-item:hover {
  border-color: #00c87a;
}

.faq-trigger {
  cursor: pointer;
  background: none;
  border: none;
}

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

::-webkit-scrollbar-track {
  background: #060b08;
}

::-webkit-scrollbar-thumb {
  background: #1a3d2b;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00c87a;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .hero-section {
    min-height: 100svh;
  }

  .marquee-track {
    animation-duration: 20s;
  }
}

/* ===== UTILITY ===== */
.text-shadow-lg {
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.border-glow {
  box-shadow: 0 0 15px rgba(0, 200, 122, 0.2);
}

/* Ensure tables inside overflow-x-auto don't collapse */
.overflow-x-auto table {
  min-width: 500px;
}

/* Fix for prose tables on mobile */
@media (max-width: 768px) {
  .prose-casino table {
    min-width: 400px;
  }
}
