/* =====================================================
   FLucky Casino — Custom CSS
   Champagne-gold × Deep Sapphire × Velvet backdrop
===================================================== */

/* ── Reset & Base ─────────────────────────────────── */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

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

/* ── Custom Properties ────────────────────────────── */
:root {
  --gold-400: #ffd03d;
  --gold-500: #f5b800;
  --gold-600: #c49200;
  --sapphire-700: #142c7a;
  --sapphire-800: #0b1c52;
  --sapphire-900: #060e2e;
  --velvet:        #0d0820;
  --velvet-light:  #1a1035;
  --velvet-mid:    #120d2a;
}

/* ── Typography ───────────────────────────────────── */
body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
}

/* ── Prose Casino ─────────────────────────────────── */
.prose-casino {
  color: #d1d5db;
  max-width: 100%;
  word-break: break-word;
}

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

.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: 1.2em;
  color: #d1d5db;
}

.prose-casino a {
  color: var(--gold-400);
  text-decoration: underline;
}

.prose-casino a:hover {
  color: var(--gold-500);
}

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

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

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

.prose-casino blockquote {
  border-left: 4px solid var(--gold-500);
  padding-left: 1em;
  color: #9ca3af;
  font-style: italic;
  margin: 1.5em 0;
}

.prose-casino hr {
  border-color: var(--sapphire-800);
  margin: 2em 0;
}

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

.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: #d1d5db;
}

.prose-casino th {
  background: var(--sapphire-800);
  color: var(--gold-400);
  font-weight: 600;
  padding: 0.6em 1em;
  text-align: left;
}

.prose-casino td {
  padding: 0.6em 1em;
  border-bottom: 1px solid #0b1c52;
}

.prose-casino tr:nth-child(even) td {
  background: rgba(13, 8, 32, 0.3);
}

/* ── Sparkle / Starlight Overlay ─────────────────── */
.sparkle-overlay {
  background-image:
    radial-gradient(circle, rgba(255, 208, 61, 0.15) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 60px 60px, 90px 90px;
  background-position: 0 0, 30px 30px;
  pointer-events: none;
  animation: sparkle-drift 12s linear infinite;
}

@keyframes sparkle-drift {
  0%   { background-position: 0 0, 30px 30px; }
  100% { background-position: 60px 60px, 90px 90px; }
}

/* ── Parallax Hero ───────────────────────────────── */
.hero-parallax {
  will-change: transform;
}

/* ── Bonus Badge Pulse ───────────────────────────── */
.bonus-badge {
  animation: badge-pulse 3s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(245, 184, 0, 0.4);
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(245, 184, 0, 0.4); transform: scale(1); }
  50%       { box-shadow: 0 0 70px rgba(245, 184, 0, 0.65); transform: scale(1.02); }
}

/* ── CTA Buttons ─────────────────────────────────── */
.cta-primary,
.cta-secondary {
  position: relative;
  overflow: hidden;
}

.cta-primary::after,
.cta-secondary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Marquee / Game Reel ─────────────────────────── */
.marquee-track {
  width: 100%;
  overflow: hidden;
}

.marquee-inner {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

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

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

/* Game Card */
.game-card {
  flex: 0 0 220px;
  background: var(--velvet-mid);
  border: 1px solid var(--sapphire-800);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 48px rgba(245, 184, 0, 0.25);
}

.game-card-img {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sapphire-800), var(--velvet));
}

.game-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-card-img img {
  transform: scale(1.08);
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,8,32,0.8) 0%, transparent 60%);
  pointer-events: none;
}

.game-card-body {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ── Step Cards ──────────────────────────────────── */
.step-card {
  position: relative;
  background: var(--velvet-mid);
  border: 1px solid var(--sapphire-800);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(245, 184, 0, 0.15);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--velvet);
  font-size: 1.25rem;
  font-weight: 900;
  border-radius: 9999px;
  margin: 0 auto 1rem;
  box-shadow: 0 0 20px rgba(245,184,0,0.4);
}

.step-icon {
  font-size: 2.5rem;
  color: var(--gold-400);
  margin: 0 auto;
}

/* ── Provider Word Cloud ─────────────────────────── */
.provider-cloud {
  line-height: 1.9;
}

.provider-tag {
  display: inline-block;
  color: var(--gold-400);
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: default;
  padding: 0.1em 0.2em;
}

.provider-tag:hover {
  color: #fff;
  transform: scale(1.08);
}

/* ── Promo Cards ─────────────────────────────────── */
.promo-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(245, 184, 0, 0.12);
}

/* ── FAQ Accordion ───────────────────────────────── */
.faq-item {
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 24px rgba(245, 184, 0, 0.1);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(90deg);
  color: var(--gold-500);
}

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

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

/* ── Overflow scroll helpers ─────────────────────── */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* ── Scrollbar Styling ───────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--velvet); }
::-webkit-scrollbar-thumb { background: var(--sapphire-700); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-600); }

/* ── Utility: max container ──────────────────────── */
.max-w-container {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Focus ring ──────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Responsive table text ───────────────────────── */
@media (max-width: 640px) {
  table {
    font-size: 0.75rem;
  }
  .game-card {
    flex: 0 0 180px;
  }
  .game-card-img {
    height: 110px;
  }
}
