/* =============================================================
   NoodleSpin Casino – Custom CSS
   Alpine Twist: warm gold + emerald on dark polished backdrop
   ============================================================= */

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

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

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

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

.prose-casino {
  color: #cccccc;
  line-height: 1.75;
  font-size: 1rem;
  max-width: 100%;
  word-break: break-word;
}

.prose-casino h1 {
  color: #F5C518;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.prose-casino h2 {
  color: #F5C518;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #2A2A2A;
  padding-bottom: 0.5rem;
}

.prose-casino h3 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose-casino h4 {
  color: #F5C518;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.prose-casino p {
  margin-bottom: 1rem;
  color: #cccccc;
}

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

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

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

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

.prose-casino ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #F5C518;
}

.prose-casino ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #cccccc;
}

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

.prose-casino blockquote {
  border-left: 3px solid #F5C518;
  padding-left: 1rem;
  color: #aaaaaa;
  font-style: italic;
  margin: 1.5rem 0;
}

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

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

.prose-casino code {
  background-color: #1C1C1C;
  border: 1px solid #2A2A2A;
  color: #2ECC71;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
}

.prose-casino pre {
  background-color: #151515;
  border: 1px solid #2A2A2A;
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.prose-casino pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875em;
}

.prose-casino hr {
  border: none;
  border-top: 1px solid #2A2A2A;
  margin: 2rem 0;
}

/* Table scrollable wrapper inside prose */
.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;
}

/* Generic table styles in prose */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px;
  font-size: 0.875rem;
}

.prose-casino thead tr {
  background-color: #1C1C1C;
}

.prose-casino th {
  text-align: left;
  color: #F5C518;
  font-weight: 600;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid #2A2A2A;
}

.prose-casino td {
  padding: 0.625rem 0.875rem;
  color: #cccccc;
  border-bottom: 1px solid #2A2A2A;
}

.prose-casino tr:hover td {
  background-color: rgba(255,255,255,0.02);
}

/* Markdown rendered table overflow wrapper */
.prose-casino .overflow-x-auto {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* =============================================================
   HERO BACKGROUND & PARALLAX
   ============================================================= */

.hero-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

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

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

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

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

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

.marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 10;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #0D0D0D, transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #0D0D0D, transparent);
}

/* =============================================================
   NOODLE SWIRL SVG PATTERN (CSS fallback)
   ============================================================= */

.swirl-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.swirl-pattern svg {
  width: 100%;
  height: 100%;
  opacity: 0.07;
}

/* =============================================================
   GOLD GLOW EFFECTS
   ============================================================= */

.glow-gold {
  box-shadow: 0 0 20px rgba(245, 197, 24, 0.3), 0 0 40px rgba(245, 197, 24, 0.1);
}

.glow-emerald {
  box-shadow: 0 0 20px rgba(46, 204, 113, 0.3), 0 0 40px rgba(46, 204, 113, 0.1);
}

.text-glow-gold {
  text-shadow: 0 0 10px rgba(245, 197, 24, 0.5);
}

/* =============================================================
   CTA BUTTON ANIMATIONS
   ============================================================= */

.cta-primary {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.cta-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.cta-primary:hover::after {
  transform: translateX(100%);
}

.cta-secondary {
  display: inline-block;
  transition: all 0.2s ease;
}

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

.game-card {
  cursor: pointer;
}

.game-card img {
  display: block;
  width: 100%;
}

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

.step-card {
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  box-shadow: 0 8px 30px rgba(245, 197, 24, 0.12);
}

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

.promo-card {
  transition: all 0.3s ease;
}

.promo-card:hover {
  box-shadow: 0 8px 30px rgba(245, 197, 24, 0.1);
}

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

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

.faq-question {
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background-color: rgba(255,255,255,0.03);
}

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

.provider-cloud {
  line-height: 1.8;
}

.provider-tag {
  transition: all 0.2s ease;
  user-select: none;
}

/* =============================================================
   SCROLLBAR STYLING
   ============================================================= */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #151515;
}

::-webkit-scrollbar-thumb {
  background: #2A2A2A;
  border-radius: 3px;
}

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

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

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

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

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

/* =============================================================
   ANIMATION KEYFRAMES
   ============================================================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-gold {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(245, 197, 24, 0);
  }
}

@keyframes spin-reel {
  0% { transform: rotateX(0deg); }
  100% { transform: rotateX(360deg); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

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

/* Staggered animation delays for cards */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

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

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

/* =============================================================
   FOCUS & ACCESSIBILITY
   ============================================================= */

:focus-visible {
  outline: 2px solid #F5C518;
  outline-offset: 2px;
  border-radius: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #F5C518;
  outline-offset: 2px;
}

/* =============================================================
   SELECTION COLOR
   ============================================================= */

::selection {
  background-color: rgba(245, 197, 24, 0.3);
  color: #ffffff;
}

/* =============================================================
   OVERFLOW-X AUTO FOR TABLES (global)
   ============================================================= */

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

table {
  word-break: normal;
}

td, th {
  word-break: break-word;
}