/* Custom animations and overrides */
@keyframes parallaxFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

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

@keyframes spiralGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.3);
    transform: rotate(0deg);
  }
  50% {
    box-shadow: 0 0 40px rgba(218, 165, 32, 0.6);
    transform: rotate(5deg);
  }
}

@keyframes lanternFlicker {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

/* Opulent Whorl Theme Styles */
.opulent-gradient {
  background: linear-gradient(135deg, #8b4513 0%, #daa520 50%, #f5deb3 100%);
}

.mahogany-champagne {
  background: linear-gradient(45deg, #8b4513 0%, #cd853f 30%, #daa520 70%, #f5deb3 100%);
}

.suede-texture {
  background-image: radial-gradient(circle at 25% 25%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(218, 165, 32, 0.1) 0%, transparent 50%);
  background-size: 60px 60px;
}

.spiral-motif {
  position: relative;
}

.spiral-motif::before {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background: conic-gradient(from 0deg, transparent, rgba(218, 165, 32, 0.8), transparent);
  border-radius: 50%;
  animation: spiralGlow 3s ease-in-out infinite;
}

.lace-filigree {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box, linear-gradient(45deg, #daa520, #f5deb3, #daa520) border-box;
  position: relative;
}

.lace-filigree::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #daa520, transparent, #f5deb3, transparent, #daa520);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.3;
}

.lantern-glow {
  box-shadow: 0 0 20px rgba(218, 165, 32, 0.4), inset 0 0 20px rgba(245, 222, 179, 0.2);
  animation: lanternFlicker 4s ease-in-out infinite;
}

.parallax-element {
  animation: parallaxFloat 6s ease-in-out infinite;
}

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

.marquee-content {
  display: inline-block;
  animation: marqueeScroll 20s linear infinite;
}

/* Prose styling for readability */
.prose {
  line-height: 1.7;
  color: #2c1810;
}

.prose h1,
.prose h2,
.prose h3 {
  color: #8b4513;
  font-weight: 700;
  margin-bottom: 1rem;
}

.prose h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

.prose h2 {
  font-size: 2rem;
  line-height: 1.3;
}

.prose p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.prose ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.prose th,
.prose td {
  padding: 1rem;
  border: 1px solid #daa520;
  text-align: left;
}

.prose th {
  background: linear-gradient(135deg, #8b4513, #daa520);
  color: white;
  font-weight: 600;
}

.prose td {
  background: rgba(245, 222, 179, 0.1);
}

/* Bonus badge styling */
.bonus-badge {
  background: linear-gradient(135deg, #daa520 0%, #f5deb3 50%, #daa520 100%);
  border: 3px solid #8b4513;
  box-shadow: 0 10px 30px rgba(139, 69, 19, 0.3), inset 0 0 20px rgba(245, 222, 179, 0.4);
  position: relative;
  overflow: hidden;
}

.bonus-badge::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: spiralGlow 4s linear infinite;
}

/* CTA Button styling */
.cta-primary {
  background: linear-gradient(135deg, #daa520 0%, #f5deb3 50%, #daa520 100%);
  color: #8b4513;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(218, 165, 32, 0.4);
}

.cta-secondary {
  background: transparent;
  border: 2px solid #daa520;
  color: #8b4513;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  background: rgba(218, 165, 32, 0.1);
  border-color: #8b4513;
}

/* Game card styling */
.game-card {
  background: rgba(245, 222, 179, 0.1);
  border: 1px solid rgba(218, 165, 32, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(139, 69, 19, 0.2);
  border-color: #daa520;
}

/* Step guide styling */
.step-badge {
  background: linear-gradient(135deg, #8b4513, #daa520);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .prose h1 {
    font-size: 2rem;
  }

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

  .prose p {
    font-size: 1rem;
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(245, 222, 179, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8b4513, #daa520);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #daa520, #f5deb3);
}
