/* ===== Keyframe Animations ===== */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px 2px #ff1744, 0 0 24px 4px #7c4dff44; }
  50%       { box-shadow: 0 0 24px 8px #ff1744, 0 0 48px 12px #7c4dffaa; }
}
@keyframes chipStreak {
  0%   { transform: translateX(-100%) rotate(-15deg); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateX(110vw) rotate(-15deg); opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes diagonalSlide {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}

/* ===== Utility ===== */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.pulse-glow {
  animation: pulseGlow 2.4s ease-in-out infinite;
}
.fade-up {
  animation: fadeUp 0.7s ease both;
}
.chip-streak {
  position: absolute;
  width: 120px;
  height: 6px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #ff1744, #7c4dff);
  opacity: 0;
  animation: chipStreak 6s ease-in-out infinite;
}
.diagonal-bg {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 18px,
    rgba(255,23,68,0.06) 18px,
    rgba(255,23,68,0.06) 36px
  );
  animation: diagonalSlide 3s linear infinite;
}

/* ===== Prose Styles ===== */
.prose {
  color: #e2e0f0;
  line-height: 1.8;
  font-size: 1rem;
  max-width: 100%;
}
.prose h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ff4d6d;
  margin: 2rem 0 0.75rem;
  border-left: 4px solid #7c4dff;
  padding-left: 0.75rem;
}
.prose h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #c77dff;
  margin: 1.5rem 0 0.5rem;
}
.prose p {
  margin-bottom: 1rem;
}
.prose a {
  color: #ff6b8a;
  text-decoration: underline;
}
.prose a:hover {
  color: #ff1744;
}
.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.prose ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.prose li {
  margin-bottom: 0.4rem;
}
.prose blockquote {
  border-left: 4px solid #7c4dff;
  padding: 0.75rem 1rem;
  background: rgba(124,77,255,0.1);
  color: #d0c8f0;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}
.prose table {
  width: 100%;
  min-width: 400px;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.prose .table-scroll,
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}
.prose table thead {
  background: linear-gradient(90deg, #ff1744, #7c4dff);
  color: #fff;
}
.prose table th,
.prose table td {
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(124,77,255,0.3);
  text-align: left;
}
.prose table tbody tr:nth-child(even) {
  background: rgba(124,77,255,0.08);
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
  border: 2px solid #ff1744;
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0a0a1a; }
::-webkit-scrollbar-thumb { background: #7c4dff; border-radius: 9999px; }
