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

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

body {
  overflow-x: hidden;
  min-height: 100vh;
}

/* ============================================================
   MARQUEE / GAME STRIP
   ============================================================ */
.marquee-track {
  animation: marqueeScroll 35s linear infinite;
  will-change: transform;
}

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

/* ============================================================
   HERO PARALLAX
   ============================================================ */
.hero-bg {
  will-change: transform;
  transform-origin: center center;
}

/* ============================================================
   SHIMMER EFFECT
   ============================================================ */
.shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245, 158, 11, 0.12) 40%,
    rgba(245, 158, 11, 0.22) 50%,
    rgba(245, 158, 11, 0.12) 60%,
    transparent 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2.5s linear infinite;
}

@keyframes shimmer {
  0%   { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* ============================================================
   GLOW
   ============================================================ */
@keyframes glow {
  0%   { box-shadow: 0 0 8px rgba(245, 158, 11, 0.25), 0 0 20px rgba(16, 185, 129, 0.1); }
  100% { box-shadow: 0 0 28px rgba(245, 158, 11, 0.6), 0 0 60px rgba(16, 185, 129, 0.25); }
}

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

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

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

/* ============================================================
   BONUS BADGE
   ============================================================ */
.bonus-badge {
  position: relative;
  background: linear-gradient(135deg, #0d2818 0%, #0a1f14 60%, #050f0a 100%);
}

.bonus-badge::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #f59e0b, #10b981, #f59e0b);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ============================================================
   CTA BUTTONS
   ============================================================ */
.cta-primary {
  position: relative;
  overflow: hidden;
}

.cta-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.cta-primary:hover::after {
  left: 100%;
}

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

.provider-tag {
  display: inline-block;
  transition: color 0.2s, transform 0.2s;
  cursor: default;
}

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

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

.game-card:hover {
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.2);
}

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

.promo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.rotate-180 {
  transform: rotate(180deg);
}

.faq-answer {
  border-top: 1px solid rgba(26, 61, 40, 0.6);
}

/* ============================================================
   PROSE STYLING (single pages)
   ============================================================ */
.prose-casino {
  color: #e8f5ee;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 100%;
}

.prose-casino h1 {
  color: #fbbf24;
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.prose-casino h2 {
  color: #fbbf24;
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  border-bottom: 1px solid rgba(26, 61, 40, 0.8);
  padding-bottom: 0.5rem;
}

.prose-casino h3 {
  color: #34d399;
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose-casino h4 {
  color: #6ee7b7;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.prose-casino p {
  color: #b0d4c0;
  margin-bottom: 1.25rem;
}

.prose-casino ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.25rem;
}

.prose-casino ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #b0d4c0;
}

.prose-casino ul li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: #f59e0b;
  font-size: 0.6em;
  top: 0.4em;
}

.prose-casino ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  counter-reset: item;
  list-style: none;
}

.prose-casino ol li {
  position: relative;
  padding-left: 0.5rem;
  margin-bottom: 0.5rem;
  color: #b0d4c0;
  counter-increment: item;
}

.prose-casino ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: -1.5rem;
  color: #f59e0b;
  font-weight: 700;
}

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

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

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

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

.prose-casino blockquote {
  border-left: 3px solid #f59e0b;
  padding-left: 1rem;
  color: #7db99a;
  font-style: italic;
  margin: 1.5rem 0;
  background: rgba(13, 40, 24, 0.5);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1rem 1rem 1rem 1.25rem;
}

.prose-casino table {
  border-collapse: collapse;
  font-size: 0.9rem;
}

.prose-casino thead th {
  background: rgba(13, 40, 24, 0.8);
  color: #fbbf24;
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid rgba(26, 61, 40, 0.8);
  word-break: normal;
  overflow-wrap: normal;
  white-space: nowrap;
}

.prose-casino tbody td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(26, 61, 40, 0.5);
  color: #b0d4c0;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
  vertical-align: top;
}

.prose-casino tbody tr:hover td {
  background: rgba(10, 31, 20, 0.5);
}

.prose-casino hr {
  border: none;
  border-top: 1px solid rgba(26, 61, 40, 0.8);
  margin: 2rem 0;
}

.prose-casino code {
  background: rgba(13, 40, 24, 0.8);
  color: #34d399;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

.prose-casino pre {
  background: rgba(5, 15, 10, 0.9);
  border: 1px solid rgba(26, 61, 40, 0.8);
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.prose-casino pre code {
  background: none;
  padding: 0;
  color: #6ee7b7;
}

/* ============================================================
   PROSE TABLE SCROLL (mandatory classes)
   ============================================================ */
.prose-casino .prose-table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 1.5em 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(26, 61, 40, 0.6);
}

.prose-casino .prose-table-scroll table {
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  table-layout: auto;
}

.prose-casino .prose-table-scroll table:has(th:nth-child(3)) {
  width: max-content;
  min-width: 100%;
}

/* ============================================================
   STEP BADGE
   ============================================================ */
.step-badge {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   NAV LINK ACTIVE
   ============================================================ */
.nav-link.active,
.nav-link:focus {
  color: #fbbf24;
  background: rgba(13, 40, 24, 0.8);
}

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

::-webkit-scrollbar-track {
  background: #030a06;
}

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

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

/* ============================================================
   RESPONSIVE UTILITY
   ============================================================ */
@media (max-width: 640px) {
  .bonus-badge {
    padding: 1.5rem 1.25rem;
  }

  .game-card {
    width: 200px;
  }

  .prose-casino h1 {
    font-size: 1.75rem;
  }

  .prose-casino h2 {
    font-size: 1.4rem;
  }

  .prose-casino .prose-table-scroll table:has(th:nth-child(3)) {
    min-width: 640px;
  }

  .prose-casino .prose-table-scroll table:has(th:nth-child(3)) tbody td {
    white-space: nowrap;
  }
}

/* ============================================================
   SELECTION COLOR
   ============================================================ */
::selection {
  background: rgba(245, 158, 11, 0.3);
  color: #fde68a;
}
