/* Custom animations and overrides */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
  }
}

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

@keyframes tilt {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(1deg);
  }
  75% {
    transform: rotate(-1deg);
  }
}

/* Tangled Fortune Theme Colors */
:root {
  --gold-primary: #ffd700;
  --gold-secondary: #ffa500;
  --crimson: #dc143c;
  --midnight: #191970;
  --indigo: #4b0082;
  --neon-cyan: #00ffff;
}

/* Body and HTML overflow */
html,
body {
  overflow: auto;
}

/* Golden lattice background pattern */
.lattice-bg {
  background-image: linear-gradient(45deg, transparent 40%, rgba(255, 215, 0, 0.1) 50%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, rgba(255, 215, 0, 0.1) 50%, transparent 60%);
  background-size: 30px 30px;
}

/* Glowing elements */
.glow-gold {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  animation: pulse-glow 3s ease-in-out infinite;
}

.glow-crimson {
  box-shadow: 0 0 15px rgba(220, 20, 60, 0.5);
}

/* Floating animation */
.float {
  animation: float 6s ease-in-out infinite;
}

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

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

/* Diamond burst effect */
.diamond-burst {
  position: relative;
}

.diamond-burst::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(45deg, var(--crimson), var(--gold-primary), var(--crimson));
  border-radius: inherit;
  z-index: -1;
  opacity: 0.7;
}

/* Neon text effect */
.neon-text {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan), 0 0 30px var(--neon-cyan);
}

/* Midnight gradient background */
.midnight-gradient {
  background: linear-gradient(135deg, var(--midnight) 0%, var(--indigo) 50%, rgba(0, 255, 255, 0.1) 100%);
}

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

.prose h2 {
  color: var(--gold-primary);
  font-size: 2rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.prose h3 {
  color: var(--gold-secondary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

.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: var(--gold-primary);
}

.prose ol li::marker {
  color: var(--gold-primary);
  font-weight: bold;
}

.prose table {
  width: 100%;
  max-width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

.prose table thead {
  background: linear-gradient(135deg, var(--midnight), var(--indigo));
}

.prose table th {
  padding: 1rem;
  text-align: left;
  color: var(--gold-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--gold-primary);
}

.prose table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.prose table tr:hover {
  background: rgba(255, 215, 0, 0.05);
}

.prose blockquote {
  border-left: 4px solid var(--gold-primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #d1d5db;
  background: rgba(255, 215, 0, 0.05);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

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

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

.prose em {
  color: var(--gold-secondary);
}

.prose a {
  color: var(--neon-cyan);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.prose a:hover {
  color: var(--gold-primary);
}

/* 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 ul,
  .prose ol {
    padding-left: 1.5rem;
  }
}

/* Custom button styles */
.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
  color: #000;
  font-weight: bold;
  transition: all 0.3s ease;
}

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

.btn-secondary {
  background: linear-gradient(135deg, var(--crimson), #b22222);
  color: white;
  font-weight: bold;
  transition: all 0.3s ease;
}

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

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

/* Mobile navigation */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Game card hover effects */
.game-card {
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2);
}

/* Payment method icons */
.payment-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Responsive utilities */
@media (max-width: 1024px) {
  .desktop-only {
    display: none;
  }
}

@media (min-width: 1024px) {
  .mobile-only {
    display: none;
  }
}
