/* Custom animations and overrides */
@keyframes cascadeTokens {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes lanternGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

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

@keyframes tiltFloat {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0px);
  }
  50% {
    transform: rotate(2deg) translateY(-10px);
  }
}

/* Coin cascade animation */
.coin-cascade::before {
  content: "🪙";
  position: absolute;
  font-size: 2rem;
  animation: cascadeTokens 3s infinite linear;
  animation-delay: var(--delay, 0s);
}

.coin-cascade::after {
  content: "🪙";
  position: absolute;
  font-size: 1.5rem;
  left: 20%;
  animation: cascadeTokens 4s infinite linear;
  animation-delay: var(--delay-2, 1s);
}

/* Lantern glow effect */
.lantern-glow {
  animation: lanternGlow 2s ease-in-out infinite;
  background: linear-gradient(45deg, #dc2626, #f59e0b, #3b82f6);
  border-radius: 50%;
}

/* Shimmer effect */
.shimmer-text {
  background: linear-gradient(90deg, #dc2626, #f59e0b, #3b82f6, #dc2626);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s ease-in-out infinite;
}

/* Marquee animation */
.marquee {
  animation: marqueeScroll 20s linear infinite;
}

/* Tilt animation */
.tilt-float {
  animation: tiltFloat 4s ease-in-out infinite;
}

/* Custom button styles */
.btn-primary {
  background: linear-gradient(135deg, #dc2626, #f59e0b);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Bonus badge styling */
.bonus-badge {
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  border: 3px solid #fbbf24;
  position: relative;
  overflow: hidden;
}

.bonus-badge::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s ease-in-out infinite;
}

/* Game card hover effects */
.game-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.game-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: #f59e0b;
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.2);
}

/* Step guide styling */
.step-badge {
  background: linear-gradient(135deg, #dc2626, #f59e0b);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 1.5rem;
  position: relative;
}

.step-badge::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px solid #f59e0b;
  border-radius: 50%;
  animation: lanternGlow 2s ease-in-out infinite;
}

/* Payment method table styling */
.payment-table {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.payment-table td,
.payment-table th {
  border-bottom: 1px solid rgba(245, 158, 11, 0.1);
  padding: 1rem;
}

/* Enhanced prose styling for markdown content readability */
.prose {
  max-width: 100%;
  line-height: 1.7;
  color: #e5e7eb;
  font-size: 1.1rem;
}

.prose h2 {
  color: #f59e0b;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(245, 158, 11, 0.3);
  background: linear-gradient(90deg, #dc2626, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prose h3 {
  color: #fbbf24;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose p {
  margin-bottom: 1.5rem;
  text-align: justify;
  line-height: 1.8;
}

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

.prose li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.prose ul li::marker {
  color: #f59e0b;
}

.prose ol li::marker {
  color: #f59e0b;
  font-weight: bold;
}

.prose table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 0.5rem;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

.prose th {
  background: linear-gradient(135deg, #dc2626, #f59e0b);
  color: white;
  font-weight: 700;
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid rgba(245, 158, 11, 0.3);
}

.prose td {
  padding: 1rem;
  border-bottom: 1px solid rgba(245, 158, 11, 0.1);
  vertical-align: top;
}

.prose tr:hover {
  background: rgba(245, 158, 11, 0.1);
}

.prose blockquote {
  border-left: 4px solid #f59e0b;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  background: rgba(245, 158, 11, 0.1);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

.prose em {
  color: #f59e0b;
}

/* Responsive prose adjustments */
@media (max-width: 768px) {
  .prose {
    font-size: 1rem;
  }

  .prose h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
  }

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

  .prose table {
    font-size: 0.9rem;
  }

  .prose th,
  .prose td {
    padding: 0.75rem;
  }
}

/* Mobile burger menu */
.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.burger-line {
  width: 25px;
  height: 3px;
  background: #f59e0b;
  margin: 3px 0;
  transition: 0.3s;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 1023px) {
  .burger-menu {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    backdrop-filter: blur(10px);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 2rem 0;
  }
}

/* Responsive utilities */
@media (max-width: 768px) {
  .coin-cascade::before,
  .coin-cascade::after {
    font-size: 1rem;
  }

  .bonus-badge {
    padding: 1rem;
  }

  .step-badge {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

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

body {
  overflow: auto;
  background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
  min-height: 100vh;
}

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

::-webkit-scrollbar-track {
  background: #1e293b;
}

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

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