/* =============================================================
   AndromedaSino Casino – Custom CSS
   Crown Galaxy Theme: Deep Sapphire + Antique Gold
============================================================= */

/* ----- Global resets & base -------------------------------- */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  word-break: break-word;
  background-color: #050a1a;
  color: #eef2ff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
}

/* ----- Typography ------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  word-break: break-word;
}

/* ----- Containers ------------------------------------------ */
.max-w-site {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================================
   PROSE / CONTENT STYLING
============================================================= */
.prose-casino {
  color: rgba(238, 242, 255, 0.85);
  line-height: 1.75;
  word-break: break-word;
}

.prose-casino h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #c9a84c;
  margin-bottom: 1rem;
  font-family: Georgia, serif;
}

.prose-casino h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #c9a84c;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-family: Georgia, serif;
}

.prose-casino h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #e8c96a;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: Georgia, serif;
}

.prose-casino p {
  margin-bottom: 1rem;
  color: rgba(238, 242, 255, 0.8);
}

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

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

.prose-casino li {
  margin-bottom: 0.4rem;
  color: rgba(238, 242, 255, 0.8);
}

.prose-casino strong {
  color: #e8c96a;
  font-weight: 600;
}

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

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

.prose-casino blockquote {
  border-left: 4px solid #c9a84c;
  padding-left: 1rem;
  color: rgba(238, 242, 255, 0.6);
  margin: 1.5rem 0;
  font-style: italic;
}

.prose-casino hr {
  border-color: rgba(26, 58, 143, 0.4);
  margin: 2rem 0;
}

/* ----- 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-color: #0b1530;
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose-casino thead {
  background-color: #0d1f4a;
}

.prose-casino th {
  padding: 0.75rem 1rem;
  text-align: left;
  color: #c9a84c;
  font-weight: 600;
  border-bottom: 2px solid rgba(201, 168, 76, 0.3);
}

.prose-casino td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(26, 58, 143, 0.3);
  color: rgba(238, 242, 255, 0.75);
}

.prose-casino tr:hover td {
  background-color: rgba(13, 31, 74, 0.4);
}

/* Generic table overflow wrapper (for non-prose tables) */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* =============================================================
   HEADER / NAVIGATION
============================================================= */
#site-header {
  transition: background-color 0.3s ease;
}

/* Ensure burger button is never transparent */
#burger-btn {
  background-color: #1a3a8f !important;
  opacity: 1 !important;
}

#burger-btn:hover {
  background-color: #2255c4 !important;
}

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

/* --- Marquee (game strip) ----------------------------------- */
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
}

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

/* --- Star twinkle ------------------------------------------ */
@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 1; }
}

/* --- Gold shimmer on badges --------------------------------- */
@keyframes gold-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.gold-shimmer {
  background: linear-gradient(90deg, #c9a84c 0%, #f5e6b0 40%, #c9a84c 60%, #e8c96a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gold-shimmer 4s linear infinite;
}

/* --- Pulse for CTA buttons --------------------------------- */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 15px rgba(201, 168, 76, 0.4); }
  50%       { box-shadow: 0 0 35px rgba(201, 168, 76, 0.8); }
}

a[href="/play"] {
  animation: cta-pulse 2.5s ease-in-out infinite;
}

a[href="/play"]:hover {
  animation: none;
}

/* --- Fade-in on scroll (basic) ----------------------------- */
@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-out forwards;
}

/* =============================================================
   WORD CLOUD (providers)
============================================================= */
.word-cloud {
  line-height: 1.8;
}

.provider-tag {
  display: inline-block;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  cursor: default;
  transition: color 0.2s ease;
  word-break: break-word;
}

.provider-tag:hover {
  color: #c9a84c !important;
}

/* =============================================================
   GAME CARDS
============================================================= */
.game-card {
  cursor: pointer;
}

/* =============================================================
   FAQ ACCORDION
============================================================= */
.faq-answer {
  animation: fade-in-up 0.2s ease-out;
}

.faq-trigger {
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
}

/* =============================================================
   HERO PARALLAX
============================================================= */
.parallax-hero {
  will-change: transform;
  transition: transform 0.05s linear;
}

/* =============================================================
   RESPONSIVE UTILITIES
============================================================= */
@media (max-width: 640px) {
  .prose-casino h1 { font-size: 1.5rem; }
  .prose-casino h2 { font-size: 1.2rem; }
  .prose-casino h3 { font-size: 1rem; }
}

/* Ensure no horizontal overflow from any element */
section, div, article, aside, footer, header, nav {
  max-width: 100%;
}

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

/* Payments table needs more room for 6 columns */
.payments-table {
  min-width: 640px;
}

/* Sticky header shadow on scroll (JS-free) */
@media (prefers-reduced-motion: no-preference) {
  #site-header {
    transition: box-shadow 0.2s ease;
  }
}
