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

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

/* ===================== PROSE CASINO ===================== */
.prose-casino {
  color: #d1d5db;
  line-height: 1.75;
  font-size: 1rem;
  max-width: 100%;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: #fcc611;
  font-family: Georgia, serif;
  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 h4 { font-size: 1.1rem; }

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

.prose-casino a {
  color: #fcc611;
  text-decoration: underline;
}

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

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

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

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

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

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

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

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

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

.prose-casino code {
  background: #12193a;
  color: #fcc611;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose-casino pre {
  background: #0a0d1f;
  border: 1px solid #1e2f6e;
  border-radius: 0.5rem;
  padding: 1.25em;
  overflow-x: auto;
  margin-bottom: 1.5em;
}

.prose-casino pre code {
  background: transparent;
  padding: 0;
  color: #d1d5db;
}

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

/* Tables inside prose */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: #d1d5db;
  margin-bottom: 1.5em;
}

.prose-casino th {
  background-color: #182683;
  color: #fcc611;
  padding: 0.6em 1em;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

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

.prose-casino tr:last-child td {
  border-bottom: none;
}

.prose-casino tr:hover td {
  background-color: rgba(24, 38, 131, 0.2);
}

/* ===================== ANIMATIONS ===================== */

/* Marquee */
.marquee-container {
  overflow: hidden;
  position: relative;
}

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

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

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

/* Parallax shimmer on hero */
@keyframes parallax-shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-shimmer {
  background: linear-gradient(270deg, #0e1650, #1c2654, #fcc611, #1c2654, #0e1650);
  background-size: 400% 400%;
  animation: parallax-shimmer 12s ease infinite;
}

/* Gold glow pulse */
@keyframes gold-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(252, 198, 17, 0.4); }
  50%       { box-shadow: 0 0 20px 8px rgba(252, 198, 17, 0.15); }
}

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

/* Fade in up */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fade-in-up 0.6s ease both;
}

/* Spin icon */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.spin-slow {
  animation: spin-slow 8s linear infinite;
}

/* Rotate on FAQ open */
.rotate-90 {
  transform: rotate(90deg);
}

/* ===================== STICKY HEADER ===================== */
#site-header {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

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

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(252, 198, 17, 0.15);
}

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

.faq-item:hover {
  border-color: rgba(252, 198, 17, 0.4);
}

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

/* ===================== GENERAL UTILITIES ===================== */

/* Make all tables scrollable on mobile */
table {
  max-width: 100%;
}

div[class*="overflow-x-auto"] {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* Ensure text contrast on gold elements */
.bg-gold-500, .bg-gold-400, .bg-gold-600 {
  color: #0a0d1f;
}

/* Smooth scrolling sections */
section {
  scroll-margin-top: 4rem;
}

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

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

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

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