@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --burgundy-deep: #3a0a14;
  --burgundy-mid: #6b1929;
  --burgundy-light: #8b2035;
  --gold: #c9a84c;
  --gold-light: #e2c47a;
  --gold-pale: #f5e6c8;
  --velvet-dark: #0d0508;
  --velvet-mid: #1a0a0e;
  --velvet-bg: #220d12;
  --cream: #f8f0e3;
  --text-light: #f5e6c8;
  --text-muted: #c4a882;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--velvet-dark);
  color: var(--cream);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.2); }
}

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

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(201,168,76,0.4); }
  50% { box-shadow: 0 0 30px rgba(201,168,76,0.9), 0 0 60px rgba(201,168,76,0.4); }
}

.sparkle-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold-light);
  border-radius: 50%;
  animation: sparkle 2s infinite;
}

.marquee-wrapper {
  overflow: hidden;
  width: 100%;
}

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

.glow-btn {
  animation: glowPulse 2.5s ease-in-out infinite;
}

.float-anim {
  animation: floatUp 3s ease-in-out infinite;
}

.gold-shimmer {
  background: linear-gradient(90deg, var(--gold) 25%, var(--gold-light) 50%, var(--gold) 75%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

.velvet-card {
  background: linear-gradient(135deg, var(--velvet-mid) 0%, var(--burgundy-deep) 100%);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 1rem;
}

.gold-border {
  border: 1px solid var(--gold);
}

/* Prose Styles */
.prose {
  color: var(--cream);
  line-height: 1.8;
  font-size: 1rem;
  max-width: 100%;
}

.prose h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-top: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(201,168,76,0.3);
  padding-bottom: 0.5rem;
}

.prose h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.25rem;
  color: var(--cream);
}

.prose a {
  color: var(--gold-light);
  text-decoration: underline;
}

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

.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--cream);
}

.prose ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--cream);
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose blockquote {
  border-left: 4px solid var(--gold);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(201,168,76,0.3);
}

.prose table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  white-space: nowrap;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  width: 100%;
}

.prose table th {
  background: var(--burgundy-mid);
  color: var(--gold-light);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid rgba(201,168,76,0.3);
}

.prose table td {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--cream);
  background: rgba(255,255,255,0.03);
}

.prose table tr:nth-child(even) td {
  background: rgba(107,25,41,0.2);
}

.nav-link {
  color: var(--gold-pale);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.75rem;
  border-radius: 0.375rem;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--gold);
  background: rgba(201,168,76,0.1);
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  color: var(--burgundy-deep);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.03em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201,168,76,0.5);
  color: var(--velvet-dark);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background: rgba(201,168,76,0.15);
  color: var(--gold-light);
}

.section-title {
  font-family: 'Playfair Display', serif;
  color: var(--gold-light);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

#mobile-menu {
  background: var(--velvet-mid);
  border-top: 1px solid rgba(201,168,76,0.3);
}

@media (max-width: 1023px) {
  .desktop-nav {
    display: none;
  }
}

@media (min-width: 1024px) {
  .burger-btn {
    display: none;
  }
  #mobile-menu {
    display: none !important;
  }
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

/* Featured Games marquee: equal-width cards */
.featured-games-track {
  display: flex;
  gap: 1.25rem;
  padding: 0 1rem;
}

.featured-game-card {
  flex: 0 0 220px;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  padding: 1rem;
  text-align: center;
  box-sizing: border-box;
}

.featured-game-card .featured-game-title {
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
