/* ============================================
   Winzila Casino - Royal Purple & Gold Theme
   ============================================ */

:root {
  --royal-purple: #6b21a8;
  --deep-purple: #4c1d95;
  --gold: #f59e0b;
  --gold-bright: #fbbf24;
  --neon-gold: #fcd34d;
  --bg-dark: #1a0b2e;
  --bg-darker: #0f0520;
}

/* ============================================
   Global Overflow Control
   ============================================ */
html {
  overflow-x: clip;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
}

/* ============================================
   Particle Animation System
   ============================================ */
@keyframes particle-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(10px, -20px) scale(1.1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-5px, -40px) scale(0.9);
    opacity: 0.4;
  }
  75% {
    transform: translate(-15px, -20px) scale(1.05);
    opacity: 0.5;
  }
}

@keyframes particle-rise {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

.particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  background: radial-gradient(circle, var(--neon-gold) 0%, transparent 70%);
  border-radius: 50%;
  animation: particle-float 8s infinite ease-in-out;
}

.particle.rise {
  animation: particle-rise 12s linear infinite;
}

.particle:nth-child(1) {
  width: 8px;
  height: 8px;
  left: 10%;
  animation-delay: 0s;
}
.particle:nth-child(2) {
  width: 6px;
  height: 6px;
  left: 25%;
  animation-delay: 2s;
}
.particle:nth-child(3) {
  width: 10px;
  height: 10px;
  left: 45%;
  animation-delay: 4s;
}
.particle:nth-child(4) {
  width: 7px;
  height: 7px;
  left: 65%;
  animation-delay: 1s;
}
.particle:nth-child(5) {
  width: 9px;
  height: 9px;
  left: 85%;
  animation-delay: 3s;
}
.particle:nth-child(6) {
  width: 5px;
  height: 5px;
  left: 35%;
  animation-delay: 5s;
}
.particle:nth-child(7) {
  width: 11px;
  height: 11px;
  left: 55%;
  animation-delay: 6s;
}
.particle:nth-child(8) {
  width: 8px;
  height: 8px;
  left: 75%;
  animation-delay: 2.5s;
}

/* ============================================
   Tilt Animation System
   ============================================ */
@keyframes tilt-gentle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(1deg);
  }
  75% {
    transform: rotate(-1deg);
  }
}

@keyframes tilt-swing {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }
  25% {
    transform: rotate(2deg) translateY(-3px);
  }
  50% {
    transform: rotate(0deg) translateY(-5px);
  }
  75% {
    transform: rotate(-2deg) translateY(-3px);
  }
}

.tilt-gentle {
  animation: tilt-gentle 4s ease-in-out infinite;
}

.tilt-swing {
  animation: tilt-swing 3s ease-in-out infinite;
}

/* ============================================
   Glow and Neon Effects
   ============================================ */
@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3), 0 0 40px rgba(251, 191, 36, 0.2), 0 0 60px rgba(251, 191, 36, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.5), 0 0 60px rgba(251, 191, 36, 0.3), 0 0 90px rgba(251, 191, 36, 0.2);
  }
}

@keyframes neon-arc {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes scatter-flash {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.5) translateY(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) translateY(-20px);
  }
}

.glow-gold {
  animation: glow-pulse 3s ease-in-out infinite;
}

.neon-arc {
  animation: neon-arc 2s ease-in-out infinite;
}

.scatter-flash {
  animation: scatter-flash 1.5s ease-out infinite;
}

/* ============================================
   Crown & Royal Decorative Elements
   ============================================ */
@keyframes crown-sparkle {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.3) rotate(180deg);
  }
}

.crown-sparkle {
  animation: crown-sparkle 2s ease-in-out infinite;
}

/* ============================================
   Button Hover Effects
   ============================================ */
@keyframes button-shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.btn-gold-shimmer {
  background: linear-gradient(
    90deg,
    var(--gold) 0%,
    var(--gold-bright) 25%,
    var(--neon-gold) 50%,
    var(--gold-bright) 75%,
    var(--gold) 100%
  );
  background-size: 200% auto;
  transition: all 0.3s ease;
}

.btn-gold-shimmer:hover {
  animation: button-shimmer 2s linear infinite;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
}

/* ============================================
   Card Hover & Interaction Effects
   ============================================ */
@keyframes card-lift {
  to {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(107, 33, 168, 0.3);
  }
}

.card-interactive:hover {
  animation: card-lift 0.3s forwards;
}

/* ============================================
   Reel Frame Neon Arcs
   ============================================ */
.reel-frame {
  position: relative;
  border: 3px solid var(--gold);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4), inset 0 0 20px rgba(107, 33, 168, 0.2);
}

.reel-frame::before,
.reel-frame::after {
  content: "";
  position: absolute;
  border-radius: 16px;
  animation: neon-arc 2s ease-in-out infinite;
}

.reel-frame::before {
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid rgba(251, 191, 36, 0.3);
  animation-delay: 0.3s;
}

/* ============================================
   Bonus Badge Styling
   ============================================ */
@keyframes badge-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(251, 191, 36, 0.6);
  }
}

.bonus-badge {
  animation: badge-pulse 2.5s ease-in-out infinite;
}

/* ============================================
   Prose Styling for Readability
   ============================================ */
.prose {
  max-width: 100%;
  line-height: 1.75;
  color: #e5e7eb;
}

.prose h2 {
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold);
  color: var(--gold-bright);
}

.prose h3 {
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.prose h4 {
  font-size: clamp(1.125rem, 3vw, 1.25rem);
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--gold-bright);
}

.prose p {
  margin-bottom: 1.25em;
  font-size: clamp(0.9375rem, 2.5vw, 1rem);
}

.prose ul,
.prose ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

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

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

.prose li {
  margin-bottom: 0.75em;
  padding-left: 0.5em;
}

.prose li::marker {
  color: var(--gold);
}

.prose strong {
  color: var(--gold-bright);
  font-weight: 600;
}

.prose em {
  font-style: italic;
  color: var(--neon-gold);
}

.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: all 0.2s ease;
}

.prose a:hover {
  color: var(--neon-gold);
  text-decoration-thickness: 2px;
}

.prose blockquote {
  border-left: 4px solid var(--gold);
  padding-left: 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  color: #d1d5db;
  background: rgba(107, 33, 168, 0.1);
  padding: 1em 1.5em;
  border-radius: 0.25rem;
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  overflow-x: auto;
  display: block;
}

.prose thead {
  background: var(--royal-purple);
}

.prose th {
  background: var(--royal-purple);
  color: var(--neon-gold);
  font-weight: 600;
  padding: 0.875em;
  text-align: left;
  border: 1px solid var(--deep-purple);
  white-space: nowrap;
}

.prose td {
  padding: 0.875em;
  border: 1px solid var(--deep-purple);
  background: rgba(76, 29, 149, 0.2);
  color: #e5e7eb;
}

.prose tbody tr:hover td {
  background: rgba(76, 29, 149, 0.4);
}

.prose code {
  background: rgba(107, 33, 168, 0.3);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  color: var(--neon-gold);
}

.prose pre {
  background: rgba(15, 5, 32, 0.8);
  padding: 1.5em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid var(--royal-purple);
}

.prose hr {
  border: none;
  border-top: 2px solid var(--royal-purple);
  margin: 2.5em 0;
}

.prose-container {
  max-width: 100%;
  padding: 2rem 5%;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .prose-container {
    padding: 2.5rem 8%;
  }
}

@media (min-width: 768px) {
  .prose-container {
    max-width: 90%;
    padding: 3rem 10%;
  }
}

@media (min-width: 1024px) {
  .prose-container {
    max-width: 1200px;
    padding: 4rem 12%;
  }
}

@media (min-width: 1440px) {
  .prose-container {
    max-width: 1440px;
    padding: 4rem 15%;
  }
}

/* ============================================
   Responsive Table Wrapper
   ============================================ */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  border: 1px solid var(--royal-purple);
}

.table-responsive table {
  display: table;
  min-width: 600px;
}

/* ============================================
   Step Number Badge
   ============================================ */
@keyframes step-glow {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
  }
  50% {
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.8);
  }
}

.step-badge {
  animation: step-glow 2s ease-in-out infinite;
}

/* ============================================
   Scatter Flash Effect (Slot Symbol)
   ============================================ */
.scatter-symbol {
  position: absolute;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, var(--neon-gold) 0%, var(--gold) 50%, transparent 70%);
  border-radius: 50%;
  animation: scatter-flash 1.5s ease-out infinite;
  pointer-events: none;
}

.scatter-symbol:nth-child(1) {
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}
.scatter-symbol:nth-child(2) {
  top: 20%;
  right: 20%;
  animation-delay: 0.3s;
}
.scatter-symbol:nth-child(3) {
  bottom: 30%;
  left: 25%;
  animation-delay: 0.6s;
}
.scatter-symbol:nth-child(4) {
  bottom: 15%;
  right: 15%;
  animation-delay: 0.9s;
}

/* ============================================
   FAQ Accordion Styles
   ============================================ */
.faq-item {
  border: 2px solid var(--royal-purple);
  border-radius: 8px;
  margin-bottom: 1rem;
  background: rgba(76, 29, 149, 0.2);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--gold);
  background: rgba(76, 29, 149, 0.3);
}

.faq-question {
  cursor: pointer;
  padding: 1.25rem;
  font-weight: 600;
  color: var(--neon-gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: #e5e7eb;
  line-height: 1.7;
  display: none;
}

.faq-answer.active {
  display: block;
}

/* ============================================
   Provider Cloud Tags
   ============================================ */
.provider-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  background: rgba(107, 33, 168, 0.3);
  border: 1px solid var(--royal-purple);
  border-radius: 20px;
  color: var(--gold-bright);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.provider-tag:hover {
  background: rgba(107, 33, 168, 0.5);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ============================================
   Responsive Utilities
   ============================================ */
@media (max-width: 768px) {
  .prose h1 {
    font-size: 1.875rem;
  }

  .prose h2 {
    font-size: 1.5rem;
  }

  .prose h3 {
    font-size: 1.25rem;
  }
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--royal-purple);
  border-radius: 6px;
}

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