/* Keyframe Animations */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.8);
  }
}

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

/* Utility Classes */
.animate-shimmer {
  background-size: 2000px 100%;
  animation: shimmer 3s linear infinite;
}

.bonus-pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero-glow {
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Marquee Animation */
.marquee-container {
  position: relative;
}

.marquee-content {
  animation: marquee 30s linear infinite;
  width: max-content;
}

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

/* Parallax */
.parallax {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* Prose Styling for Readability */
.prose-custom {
  font-size: 1rem;
  line-height: 1.75;
}

.prose-custom h1,
.prose-custom h2,
.prose-custom h3,
.prose-custom h4 {
  color: #fbbf24;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
}

.prose-custom h1 {
  font-size: 2.25em;
}

.prose-custom h2 {
  font-size: 1.875em;
}

.prose-custom h3 {
  font-size: 1.5em;
}

.prose-custom p {
  margin-bottom: 1.25em;
  color: #d1d5db;
}

.prose-custom a {
  color: #84cc16;
  text-decoration: underline;
  transition: color 0.2s;
}

.prose-custom a:hover {
  color: #a3e635;
}

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

.prose-custom li {
  margin-bottom: 0.5em;
  color: #d1d5db;
}

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

.prose-custom code {
  background-color: #064e3b;
  color: #84cc16;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose-custom blockquote {
  border-left: 4px solid #f59e0b;
  padding-left: 1em;
  margin: 1.5em 0;
  color: #9ca3af;
  font-style: italic;
}

.prose-custom table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.prose-custom th,
.prose-custom td {
  padding: 0.75em;
  border: 1px solid #065f46;
  text-align: left;
}

.prose-custom th {
  background-color: #064e3b;
  color: #fbbf24;
  font-weight: 600;
}

.prose-custom td {
  color: #d1d5db;
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5em 0;
}

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

/* Game Card Hover Effects */
.game-card {
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
}

/* Details/Summary Styling */
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

/* Responsive Typography */
@media (max-width: 640px) {
  .prose-custom {
    font-size: 0.9375rem;
  }

  .prose-custom h1 {
    font-size: 1.875em;
  }

  .prose-custom h2 {
    font-size: 1.5em;
  }

  .prose-custom h3 {
    font-size: 1.25em;
  }
}

/* Overflow Control */
html,
body {
  overflow-x: clip;
  overflow-y: auto;
}
