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

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

/* ======================================
   MAX CONTAINER
====================================== */
.max-w-8xl {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

/* ======================================
   PROSE CASINO – Single/Inner pages
====================================== */
.prose-casino {
  color: #d1d5db;
  line-height: 1.8;
  font-size: 1rem;
}

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

.prose-casino h1 { font-size: 2rem; }
.prose-casino .prose-body > h1:first-child {
  margin-top: 0;
}
.prose-casino h2 { font-size: 1.5rem; border-bottom: 1px solid rgba(212,160,23,0.25); padding-bottom: 0.4em; }
.prose-casino h3 { font-size: 1.25rem; color: #fad97a; }
.prose-casino h4 { font-size: 1.1rem; color: #fef9e7; }

.prose-casino p {
  margin-bottom: 1.2em;
  color: #d1d5db;
}

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

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

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

.prose-casino ul { list-style-type: disc; }
.prose-casino ol { list-style-type: decimal; }

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

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

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

.prose-casino blockquote {
  border-left: 4px solid #d4a017;
  padding-left: 1em;
  margin: 1.5em 0;
  color: #9ca3af;
  font-style: italic;
  background: rgba(212,160,23,0.05);
  border-radius: 0 0.5em 0.5em 0;
  padding: 0.75em 1em;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid rgba(212,160,23,0.2);
  margin: 2em 0;
}

.prose-casino code {
  background: rgba(212,160,23,0.1);
  color: #fad97a;
  padding: 0.2em 0.4em;
  border-radius: 0.25em;
  font-size: 0.875em;
}

/* Prose table scroll wrapper (mandatory) */
.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 tables */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: rgba(17, 26, 82, 0.6);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose-casino thead tr {
  background: #111a52;
}

.prose-casino th {
  color: #f5c430;
  font-weight: 700;
  text-align: left;
  padding: 0.75em 1em;
  border-bottom: 1px solid rgba(212,160,23,0.3);
}

.prose-casino td {
  color: #d1d5db;
  padding: 0.65em 1em;
  border-bottom: 1px solid rgba(17,26,82,0.8);
}

.prose-casino tbody tr:nth-child(even) {
  background: rgba(17,26,82,0.4);
}

.prose-casino tbody tr:hover {
  background: rgba(212,160,23,0.05);
}

/* Prose-casino-sm (smaller variant for homepage review) */
.prose-casino-sm {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #d1d5db;
}

.prose-casino-sm p { margin-bottom: 0.9em; }

/* Prose content wrapper for single pages */
.prose-content {
  max-width: 100%;
}

/* ======================================
   MARQUEE / GAME STRIP ANIMATION
====================================== */
.marquee-wrapper {
  position: relative;
}

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

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

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

/* ======================================
   CTA PULSE ANIMATION
====================================== */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,160,23,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(212,160,23,0); }
}

.cta-pulse {
  animation: ctaPulse 2.5s ease-in-out infinite;
}

/* ======================================
   PARALLAX (hero background)
====================================== */
@media (prefers-reduced-motion: no-preference) {
  #hero {
    background-attachment: fixed;
  }
}

/* Mobile: disable parallax (can cause issues) */
@media (max-width: 768px) {
  #hero {
    background-attachment: scroll;
  }
}

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

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(212,160,23,0.15);
}

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

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(212,160,23,0.12);
}

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

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

/* ======================================
   PROVIDER WORD CLOUD
====================================== */
.provider-cloud {
  line-height: 1.6;
}

.provider-tag {
  display: inline-block;
  padding: 0.15em 0.4em;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: default;
}

.provider-tag:hover {
  transform: scale(1.05);
  color: #f5c430 !important;
}

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

.faq-item:hover {
  border-color: rgba(212,160,23,0.4);
}

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

.faq-answer {
  animation: fadeInDown 0.25s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Burger lines transition */
.burger-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ======================================
   SCROLL UTILITIES
====================================== */
* {
  box-sizing: border-box;
}

/* Tables always scrollable */
table {
  min-width: 400px;
}

/* Homepage payments table */
.payments-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.payments-table {
  width: 100%;
  border-collapse: collapse;
}

.payments-table th,
.payments-table td {
  white-space: normal;
}

.payments-table tbody tr + tr {
  border-top: 1px solid #243080;
}

@media (max-width: 767px) {
  #payments .payments-table-scroll {
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  .payments-table {
    width: max-content;
    min-width: 900px;
    font-size: 0.875rem;
  }

  .payments-table th,
  .payments-table td {
    white-space: nowrap;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (max-width: 640px) {
  table:not(.payments-table) {
    font-size: 0.8rem;
  }
}

/* ======================================
   GENERAL UTILITIES
====================================== */
.text-shadow-gold {
  text-shadow: 0 2px 8px rgba(212,160,23,0.4);
}

/* Smooth image loading */
img {
  max-width: 100%;
  height: auto;
}

/* Focus visible ring */
:focus-visible {
  outline: 2px solid #d4a017;
  outline-offset: 2px;
}

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

/* Scrollbar styling (webkit) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0f2e;
}

::-webkit-scrollbar-thumb {
  background: #d4a017;
  border-radius: 4px;
}

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