/* =============================================================
   CapoSino Casino – Custom CSS
   Theme: Regal Luxe (Burgundy, Antique Gold, Velvet)
   ============================================================= */

/* Base reset and overflow control */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  word-break: break-word;
}

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

/* Table scrollability on smaller devices */
table {
  width: 100%;
  border-collapse: collapse;
}

.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* Wide data tables: scroll horizontally instead of squishing columns */
.table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
}

.table-scroll-wrap .table-scroll {
  width: max-content;
  min-width: 100%;
}

.table-scroll-wrap .table-scroll th,
.table-scroll-wrap .table-scroll td {
  white-space: nowrap;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
}

@media (max-width: 639px) {
  .table-scroll-wrap {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}

@media (min-width: 640px) {
  .table-scroll-wrap .table-scroll th,
  .table-scroll-wrap .table-scroll td {
    padding: 1rem 1.25rem;
  }
}

/* ── Prose Casino ────────────────────────────────────────────── */
.prose-casino {
  color: #d1d5db;
  line-height: 1.75;
  font-size: 1rem;
  max-width: 72ch;
  word-break: break-word;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  font-family: Georgia, serif;
  color: #f2cc2e; /* gold-400 */
  font-weight: 700;
  margin-top: 1em;
  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-top: 0;
  margin-bottom: 1em;
  color: #d1d5db;
}

.prose-casino a {
  color: #f2cc2e;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

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

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

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

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

.prose-casino em {
  color: #e2c87a;
  font-style: italic;
}

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

.prose-casino code {
  background: #2d1122;
  color: #f2cc2e;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.prose-casino pre {
  background: #2d1122;
  color: #f2cc2e;
  padding: 1em;
  border-radius: 0.5rem;
  overflow-x: auto;
}

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

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

.prose-casino thead {
  background-color: #3f1830;
}

.prose-casino th {
  padding: 0.75rem 1rem;
  text-align: left;
  color: #f2cc2e;
  font-weight: 600;
  border-bottom: 2px solid #52203e;
}

.prose-casino td {
  padding: 0.65rem 1rem;
  color: #d1d5db;
  border-bottom: 1px solid #3f1830;
}

.prose-casino tr:hover td {
  background-color: #2d1122;
}

.prose-casino hr {
  border: 0;
  border-top: 1px solid #52203e;
  margin: 2em 0;
}

/* ── Parallax Hero ──────────────────────────────────────────── */
.parallax-hero {
  transform: translateZ(0);
  will-change: transform;
  background-attachment: fixed;
  background-size: cover;
}

@media (max-width: 768px) {
  .parallax-hero {
    background-attachment: scroll;
  }
}

/* ── Sparkle Overlay ────────────────────────────────────────── */
.sparkle-overlay {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(212, 160, 23, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 60% 70%, rgba(212, 160, 23, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(194, 40, 74, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(212, 160, 23, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 10% 60%, rgba(194, 40, 74, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 90% 50%, rgba(212, 160, 23, 0.05) 1px, transparent 1px);
  background-size: 200px 200px, 300px 300px, 250px 250px, 180px 180px, 220px 220px, 280px 280px;
  animation: sparkle-drift 12s linear infinite;
  pointer-events: none;
}

@keyframes sparkle-drift {
  0%   { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 200px 200px, -300px 300px, 250px -250px, -180px 180px, 220px -220px, -280px 280px; }
}

/* ── Bonus Badge Pulse ──────────────────────────────────────── */
.bonus-badge {
  animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 160, 23, 0.3), 0 0 40px rgba(212, 160, 23, 0.1); }
  50%       { box-shadow: 0 0 30px rgba(212, 160, 23, 0.5), 0 0 60px rgba(212, 160, 23, 0.2); }
}

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

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

.cta-primary:hover {
  transform: translateY(-2px) scale(1.03);
}

/* ── Step Cards ─────────────────────────────────────────────── */
.step-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 160, 23, 0.3);
}

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

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* ── Game Cards ─────────────────────────────────────────────── */
.game-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(212, 160, 23, 0.2);
}

/* ── Word Cloud ─────────────────────────────────────────────── */
.word-cloud {
  line-height: 1.6;
}

.wc-item {
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: default;
}

.wc-item:hover {
  color: #f2cc2e !important;
  transform: scale(1.08);
}

/* ── FAQ Animation ──────────────────────────────────────────── */
.faq-answer {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.faq-icon {
  transition: transform 0.3s ease;
}

/* ── Marquee / Scrolling Strip ──────────────────────────────── */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 24s linear infinite;
}

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

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

/* ── Scrollbar Styling ──────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #1a0a14;
}

::-webkit-scrollbar-thumb {
  background: #7e1830;
  border-radius: 3px;
}

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

/* ── Utility: Gold Gradient Text ────────────────────────────── */
.text-gradient-gold {
  background: linear-gradient(135deg, #f7e063, #d4a017, #b07d0e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Container Max Width Override ──────────────────────────── */
.max-w-8xl {
  max-width: 1440px;
}

/* ── Responsive Typography ──────────────────────────────────── */
@media (max-width: 640px) {
  .prose-casino h1 { font-size: 1.6rem; }
  .prose-casino h2 { font-size: 1.3rem; }
  .prose-casino h3 { font-size: 1.1rem; }
}

/* ── Focus Styles ───────────────────────────────────────────── */
*:focus-visible {
  outline: 2px solid #d4a017;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Selection Colour ───────────────────────────────────────── */
::selection {
  background: rgba(212, 160, 23, 0.3);
  color: #fff;
}
