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

body {
  word-break: break-word;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #0a1a0f;
  color: #e5e7eb;
}

/* =========================================
   PROSE / CONTENT STYLING
   ========================================= */

.prose-casino {
  color: #8fa88e;
  max-width: 100%;
  line-height: 1.75;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  color: #e8c55a;
  font-family: Georgia, serif;
  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-bottom: 1em;
  color: #8fa88e;
}

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

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

.prose-casino ul,
.prose-casino ol {
  margin: 1em 0;
  padding-left: 1.5em;
  color: #8fa88e;
}

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

.prose-casino strong {
  color: #d4a843;
}

.prose-casino blockquote {
  border-left: 3px solid #c9982a;
  padding-left: 1em;
  color: #8fa88e;
  font-style: italic;
  margin: 1.5em 0;
}

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

.prose-casino thead th {
  background-color: #1f5c28;
  color: #d4a843;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}

.prose-casino tbody td {
  padding: 0.75rem 1rem;
  border-top: 1px solid #1a3d20;
  color: #8fa88e;
}

.prose-casino tbody tr:hover {
  background-color: rgba(31, 92, 40, 0.2);
}

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

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

/* =========================================
   HERO SECTION
   ========================================= */

.hero-section {
  min-height: 100vh;
  position: relative;
}

.hero-bg {
  will-change: transform;
  transform: translateZ(0);
}

.bonus-badge {
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(201, 152, 42, 0.4); }
  50% { box-shadow: 0 0 40px rgba(201, 152, 42, 0.8), 0 0 60px rgba(201, 152, 42, 0.3); }
}

/* =========================================
   CTA BUTTONS
   ========================================= */

.btn-pulse {
  animation: btnGlow 2s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 4px 15px rgba(201, 152, 42, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(201, 152, 42, 0.8); }
}

.cta-primary, .cta-secondary {
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

/* =========================================
   MARQUEE ANIMATION
   ========================================= */

.marquee-strip {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  animation: marqueeScroll 30s linear infinite;
  white-space: nowrap;
}

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

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

/* =========================================
   STEP CARDS
   ========================================= */

.step-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(201, 152, 42, 0.2);
}

.step-number {
  font-family: Georgia, serif;
}

/* =========================================
   GAME CARDS
   ========================================= */

.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(201, 152, 42, 0.25);
}

/* =========================================
   REVIEW BLOCKS
   ========================================= */

.review-block {
  transition: box-shadow 0.3s ease;
}

.review-block:hover {
  box-shadow: 0 8px 30px rgba(201, 152, 42, 0.15);
}

/* =========================================
   PROVIDER WORD CLOUD
   ========================================= */

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

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

/* =========================================
   PROMO CARDS
   ========================================= */

.promo-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(201, 152, 42, 0.2);
}

/* =========================================
   FAQ
   ========================================= */

.faq-item {
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: #c9982a;
}

.faq-answer {
  transition: all 0.3s ease;
}

/* =========================================
   STICKY HEADER
   ========================================= */

header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #e8c55a;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* =========================================
   RUNE SVG PATTERN BACKGROUND
   ========================================= */

.rune-bg {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23166534' fill-opacity='0.08'%3E%3Cpath d='M30 0 L30 60 M0 30 L60 30 M10 10 L50 50 M50 10 L10 50'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* =========================================
   LANG SWITCHER
   ========================================= */

#lang-menu,
#mobile-lang-menu {
  transition: opacity 0.2s ease;
}

/* =========================================
   BURGER MENU
   ========================================= */

.burger-bar {
  transition: all 0.3s ease;
}

/* =========================================
   RESPONSIVE UTILITIES
   ========================================= */

@media (max-width: 640px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .bonus-badge {
    padding: 1.25rem;
  }
}

/* Parallax support */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg {
    background-attachment: fixed;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    background-attachment: scroll;
  }
  .marquee-content {
    animation: none;
  }
  .btn-pulse, .bonus-badge {
    animation: none;
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0d2414;
}
::-webkit-scrollbar-thumb {
  background: #78501a;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c9982a;
}
