/* Keyframe Animations */
@keyframes glow {
  0%,
  100% {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.3);
  }
  50% {
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.5);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

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

@keyframes particle-float {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

/* Glow Animation */
.animate-glow {
  animation: glow 3s ease-in-out infinite;
}

/* Gold Particles Background */
.gold-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.gold-particles::before,
.gold-particles::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #ffd700 0%, transparent 70%);
  border-radius: 50%;
  animation: particle-float 8s ease-in-out infinite;
}

.gold-particles::before {
  top: 20%;
  left: 10%;
  --tx: 100px;
  --ty: -200px;
  animation-delay: 0s;
}

.gold-particles::after {
  top: 60%;
  left: 80%;
  --tx: -150px;
  --ty: -300px;
  animation-delay: 2s;
}

/* Marquee Container */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-content {
  display: flex;
  gap: 2rem;
  animation: marquee 30s linear infinite;
  width: fit-content;
}

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

.game-card {
  flex-shrink: 0;
  width: 280px;
  background: linear-gradient(to bottom right, #1a1a1a, #0a0a0a);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.game-card:hover {
  border-color: #ffd700;
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
}

/* Enhanced Prose Styling for Markdown Content with Relative Units and Better Typography */
.prose-custom {
  color: #e5e7eb;
  line-height: 1.75;
  font-size: 1.0625rem;
  max-width: 100%;
}

.prose-custom p {
  margin-bottom: 1.5em;
  color: #d1d5db;
  line-height: 1.8;
}

.prose-custom p:first-of-type {
  font-size: 1.125em;
  line-height: 1.7;
}

.prose-custom h2 {
  color: #ffd700;
  font-size: 2em;
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.prose-custom h2:first-child {
  margin-top: 0;
}

.prose-custom h3 {
  color: #ffbf00;
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.875em;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.prose-custom h4 {
  color: #ffd700;
  font-size: 1.25em;
  font-weight: 600;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  line-height: 1.5;
}

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

.prose-custom ul {
  list-style-type: disc;
}

.prose-custom ol {
  list-style-type: decimal;
}

.prose-custom li {
  margin-bottom: 0.625em;
  padding-left: 0.375em;
  line-height: 1.75;
  color: #d1d5db;
}

.prose-custom li::marker {
  color: #ffbf00;
}

.prose-custom ul ul,
.prose-custom ol ul,
.prose-custom ul ol,
.prose-custom ol ol {
  margin-top: 0.625em;
  margin-bottom: 0.625em;
}

.prose-custom a {
  color: #ffd700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 215, 0, 0.4);
  text-underline-offset: 0.2em;
  transition: all 0.3s ease;
}

.prose-custom a:hover {
  color: #ffbf00;
  text-decoration-color: #ffbf00;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

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

.prose-custom em {
  color: #ffbf00;
  font-style: italic;
}

.prose-custom code {
  background-color: rgba(26, 26, 26, 0.8);
  color: #ffbf00;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: "Courier New", monospace;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.prose-custom pre {
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 0.5rem;
  padding: 1.25em;
  margin-bottom: 1.5em;
  overflow-x: auto;
  line-height: 1.6;
}

.prose-custom pre code {
  background-color: transparent;
  padding: 0;
  border: none;
  font-size: 0.875em;
}

.prose-custom blockquote {
  border-left: 0.25rem solid #ffd700;
  padding-left: 1.5em;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1.5em;
  font-style: italic;
  color: #9ca3af;
  background-color: rgba(26, 26, 26, 0.5);
  border-radius: 0 0.375rem 0.375rem 0;
}

.prose-custom blockquote p {
  margin-bottom: 0.75em;
}

.prose-custom blockquote p:last-child {
  margin-bottom: 0;
}

.prose-custom table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.75em;
  font-size: 0.9375em;
  background-color: rgba(26, 26, 26, 0.5);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose-custom thead {
  background-color: #1a1a1a;
}

.prose-custom th {
  padding: 0.875em 1em;
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #ffd700;
  font-weight: 600;
  text-align: left;
  line-height: 1.5;
}

.prose-custom td {
  padding: 0.875em 1em;
  border: 1px solid rgba(255, 215, 0, 0.2);
  color: #d1d5db;
  line-height: 1.6;
}

.prose-custom tbody tr {
  transition: background-color 0.2s ease;
}

.prose-custom tbody tr:hover {
  background-color: rgba(255, 215, 0, 0.05);
}

.prose-custom img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin-top: 2em;
  margin-bottom: 2em;
  border: 2px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.prose-custom hr {
  border: none;
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  margin-top: 3em;
  margin-bottom: 3em;
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.75em;
  border-radius: 0.5rem;
  max-width: 100%;
}

.table-responsive table {
  margin-bottom: 0;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 0.625rem;
  height: 0.625rem;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #ffd700, #ffbf00);
  border-radius: 0.3125rem;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #ffbf00, #ff8c00);
}

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

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

  .prose-custom h3 {
    font-size: 1.375em;
    margin-top: 1.75em;
  }
}

@media (max-width: 768px) {
  .game-card {
    width: 240px;
  }

  .prose-custom {
    font-size: 0.9375rem;
  }

  .prose-custom h2 {
    font-size: 1.625em;
    margin-top: 1.75em;
  }

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

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

  .prose-custom th,
  .prose-custom td {
    padding: 0.625em 0.75em;
    font-size: 0.875em;
  }

  .prose-custom blockquote {
    padding-left: 1em;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .prose-custom {
    font-size: 0.875rem;
  }

  .prose-custom th,
  .prose-custom td {
    padding: 0.5em 0.625em;
  }
}
