/* Parallax Effect */
.parallax-bg {
  transform: translateZ(-1px) scale(1.5);
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .parallax-bg {
    animation: parallax 20s ease-in-out infinite;
  }
}

@keyframes parallax {
  0%,
  100% {
    transform: translateY(0) scale(1.1);
  }
  50% {
    transform: translateY(-30px) scale(1.15);
  }
}

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

.marquee-content {
  display: flex;
  flex-wrap: nowrap;            /* never wrap to a second line */
  width: max-content;           /* track grows to fit its children */
  will-change: transform;
  animation: marquee var(--marquee-duration, 40s) linear infinite;
  transition: none !important;  /* prevent the global * transition from easing the transform */
}

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

/* Each duplicated set must be fixed-width and non-shrinking */
.marquee-group {
  display: flex;
  flex: 0 0 auto;
  gap: 1.5rem;                  /* mirrors space-x-6 */
  padding-inline: .75rem;       /* mirrors px-3 */
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* exactly half because there are two equal groups */
}

.game-card { 
  flex: 0 0 auto;               /* never shrink cards */
  text-align: center;
}

.game-card img { 
  display: block;               /* remove inline gaps/baseline weirdness */
}

/* Coin Scatter Animation */
@keyframes coin-scatter {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-20px) scale(1.2);
  }
}

.coin-scatter {
  animation: coin-scatter 3s ease-in-out infinite;
}

.coin-scatter:nth-child(2) {
  animation-delay: 1s;
}

.coin-scatter:nth-child(3) {
  animation-delay: 2s;
}

/* Gradient Animation */
@keyframes gradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient 3s ease infinite;
}

/* Prose Styling for Readability */
.prose-custom {
  max-width: 100%;
}

.prose-custom p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: #d1d5db;
}

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

.prose-custom h1 {
  font-size: 2.5rem;
  color: #ffd700;
}

.prose-custom h2 {
  font-size: 2rem;
  color: #ffd700;
}

.prose-custom h3 {
  font-size: 1.5rem;
  color: #f59e0b;
}

.prose-custom h4 {
  font-size: 1.25rem;
  color: #f59e0b;
}

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

.prose-custom li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

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

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

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

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

.prose-custom code {
  background-color: #1e293b;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: #fcd34d;
}

.prose-custom pre {
  background-color: #1e293b;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

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

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

.prose-custom th {
  background-color: #b91c1c;
  color: #ffffff;
  font-weight: 600;
}

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

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

/* Smooth Transitions */
* {
  transition-property: color, background-color, border-color, transform, box-shadow;
  transition-duration: 200ms;
  transition-timing-function: ease-in-out;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

* {
  transition-property: color, background-color, border-color, box-shadow; /* removed transform here */
  transition-duration: 200ms;
  transition-timing-function: ease-in-out;
}