/* ================================================================
   DiceSpin Casino – Custom CSS
   Champagne-gold & deep navy theme
================================================================ */

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

body {
  overflow-x: hidden;
  word-break: break-word;
  background-color: #0d1b3e;
  color: #f1f5f9;
}

/* ----------------------------------------------------------------
   CSS Variables
---------------------------------------------------------------- */
:root {
  --color-navy:        #0d1b3e;
  --color-navy-light:  #162350;
  --color-navy-dark:   #080f22;
  --color-velvet:      #1a0a2e;
  --color-champagne:   #c9a84c;
  --color-champagne-l: #e2c97e;
  --color-gold:        #f0d080;
  --glow:              0 0 18px 4px rgba(201,168,76,0.45);
  --glow-sm:           0 0 8px 2px rgba(201,168,76,0.30);
}

/* ----------------------------------------------------------------
   Hero
---------------------------------------------------------------- */
.hero-bg {
  background-color: var(--color-velvet);
  position: relative;
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(8,15,34,0.65) 0%,
    rgba(13,27,62,0.80) 60%,
    rgba(13,27,62,1)   100%
  );
}

/* Parallax on hero bg image */
@media (min-width: 768px) {
  .hero-bg > div:first-child {
    background-attachment: fixed;
  }
}

/* ----------------------------------------------------------------
   Sparkles animation
---------------------------------------------------------------- */
.sparkles-bg::before,
.sparkles-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(201,168,76,0.5) 1px, transparent 1px),
    radial-gradient(circle, rgba(240,208,128,0.3) 1px, transparent 1px);
  background-size: 60px 60px, 110px 110px;
  background-position: 0 0, 30px 30px;
  animation: sparkleShift 12s linear infinite;
  pointer-events: none;
}

.sparkles-bg::after {
  background-size: 90px 90px, 140px 140px;
  animation-duration: 18s;
  animation-direction: reverse;
  opacity: 0.5;
}

@keyframes sparkleShift {
  0%   { background-position: 0 0, 30px 30px; }
  100% { background-position: 60px 60px, 90px 90px; }
}

/* ----------------------------------------------------------------
   Bonus badge
---------------------------------------------------------------- */
.bonus-badge {
  background: linear-gradient(
    135deg,
    rgba(13,27,62,0.92) 0%,
    rgba(26,10,46,0.95) 100%
  );
  border: 2px solid rgba(201,168,76,0.55);
  box-shadow: var(--glow);
}

/* ----------------------------------------------------------------
   CTA Buttons
---------------------------------------------------------------- */
.cta-primary {
  background: linear-gradient(135deg, #c9a84c 0%, #f0d080 50%, #c9a84c 100%);
  background-size: 200% 200%;
  color: #080f22;
  box-shadow: var(--glow-sm);
  transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.3s ease;
  animation: shimmerBtn 3s ease infinite;
}

.cta-primary:hover {
  box-shadow: var(--glow);
  transform: scale(1.04);
}

@keyframes shimmerBtn {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.cta-secondary {
  background: transparent;
  color: #c9a84c;
  border: 2px solid rgba(201,168,76,0.6);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.cta-secondary:hover {
  background: rgba(201,168,76,0.10);
  border-color: #c9a84c;
}

/* ----------------------------------------------------------------
   Promo cards
---------------------------------------------------------------- */
.promo-card {
  background: linear-gradient(
    160deg,
    rgba(13,27,62,0.95) 0%,
    rgba(26,10,46,0.95) 100%
  );
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-sm);
}

/* ----------------------------------------------------------------
   Review blocks
---------------------------------------------------------------- */
.review-block {
  background: linear-gradient(
    160deg,
    rgba(13,27,62,0.90) 0%,
    rgba(26,10,46,0.90) 100%
  );
  transition: box-shadow 0.3s ease;
}

.review-block:hover {
  box-shadow: var(--glow-sm);
}

/* ----------------------------------------------------------------
   Provider word cloud
---------------------------------------------------------------- */
.word-cloud {
  line-height: 1.8;
}

.provider-tag {
  color: var(--color-champagne);
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: default;
  padding: 2px 6px;
  border-radius: 4px;
}

.provider-tag:nth-child(odd) {
  color: var(--color-gold);
}

.provider-tag:hover {
  color: #fff;
  transform: scale(1.1);
}

/* ----------------------------------------------------------------
   Game cards
---------------------------------------------------------------- */
.game-card {
  background: var(--color-navy-light);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-sm);
}

/* ----------------------------------------------------------------
   Step cards
---------------------------------------------------------------- */
.step-card {
  background: linear-gradient(
    160deg,
    rgba(13,27,62,0.95) 0%,
    rgba(26,10,46,0.95) 100%
  );
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-sm);
}

.step-badge {
  background: linear-gradient(135deg, #c9a84c 0%, #f0d080 100%);
  box-shadow: var(--glow-sm);
  color: #080f22;
}

/* ----------------------------------------------------------------
   FAQ
---------------------------------------------------------------- */
.faq-item {
  transition: box-shadow 0.2s ease;
}

.faq-item:has(.faq-trigger[aria-expanded="true"]) {
  box-shadow: var(--glow-sm);
  border-color: rgba(201,168,76,0.50);
}

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

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(90deg);
  color: var(--color-gold);
}

/* ----------------------------------------------------------------
   Marquee / scrolling ticker
---------------------------------------------------------------- */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marqueeScroll 28s linear infinite;
}

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

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

/* ----------------------------------------------------------------
   Table utilities
---------------------------------------------------------------- */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* ----------------------------------------------------------------
   Prose casino styles
---------------------------------------------------------------- */
.prose-casino {
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 0.9375rem;
  word-break: break-word;
}

.prose-casino h2 {
  color: #c9a84c;
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.prose-casino h3 {
  color: #e2c97e;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

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

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

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

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

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

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

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

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

.prose-casino blockquote {
  border-left: 4px solid #c9a84c;
  padding-left: 1rem;
  color: #94a3b8;
  font-style: italic;
  margin: 1.5rem 0;
}

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

.prose-casino table th {
  background-color: rgba(201,168,76,0.12);
  color: #c9a84c;
  padding: 0.6rem 0.9rem;
  text-align: left;
  border: 1px solid rgba(201,168,76,0.2);
  font-weight: 700;
}

.prose-casino table td {
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(201,168,76,0.12);
  color: #94a3b8;
}

.prose-casino table tr:nth-child(even) td {
  background-color: rgba(201,168,76,0.04);
}

/* Mandatory prose table scroll classes */
.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;
}

/* ----------------------------------------------------------------
   Scrollbar styling
---------------------------------------------------------------- */
::-webkit-scrollbar {
  height: 5px;
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-navy-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(201,168,76,0.45);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-champagne);
}

/* ----------------------------------------------------------------
   Utility: glowing border animation
---------------------------------------------------------------- */
@keyframes borderPulse {
  0%, 100% { box-shadow: 0 0 8px 1px rgba(201,168,76,0.30); }
  50%       { box-shadow: 0 0 20px 4px rgba(201,168,76,0.55); }
}

.border-glow-animate {
  animation: borderPulse 3s ease-in-out infinite;
}

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

  .step-card,
  .promo-card,
  .review-block {
    padding: 1.5rem;
  }
}

/* ----------------------------------------------------------------
   Sticky header backdrop blur
---------------------------------------------------------------- */
header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(8,15,34,0.92);
}

/* ----------------------------------------------------------------
   Focus styles
---------------------------------------------------------------- */
*:focus-visible {
  outline: 2px solid var(--color-champagne);
  outline-offset: 3px;
}

/* ----------------------------------------------------------------
   Transition base
---------------------------------------------------------------- */
a, button {
  transition-property: color, background-color, border-color, box-shadow, transform, opacity;
  transition-duration: 200ms;
  transition-timing-function: ease;
}
