@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.6); }
  50% { box-shadow: 0 0 0 12px rgba(201,168,76,0); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.marquee-track { animation: marquee 32s linear infinite; display: flex; }
.marquee-track:hover { animation-play-state: paused; }
.fade-in-up { animation: fadeInUp 0.7s ease both; }
.pulse-gold { animation: pulse-gold 2s infinite; }
.shimmer-btn {
  background: linear-gradient(90deg, #c9a84c 0%, #f5d98b 40%, #c9a84c 60%, #a07830 100%);
  background-size: 200% auto;
  animation: shimmer 2.5s linear infinite;
  transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.shimmer-btn:hover,
.shimmer-btn:focus-visible {
  filter: brightness(1.1);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.45), 0 8px 24px rgba(0, 0, 0, 0.35);
  outline: none;
}
/* Gold outline CTA (works without Tailwind theme colour "gold") */
.btn-gold-outline {
  display: inline-block;
  text-decoration: none;
  color: #c9a84c;
  background: transparent;
  border: 2px solid #c9a84c;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-gold-outline:hover,
.btn-gold-outline:focus-visible {
  background: #c9a84c;
  color: #0a1238;
  border-color: #f5d98b;
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.5), 0 6px 20px rgba(0, 0, 0, 0.25);
  outline: none;
}
.btn-gold-outline--thin {
  border-width: 1px;
}
.hero-overlay {
  background: linear-gradient(135deg, rgba(10,18,60,0.88) 0%, rgba(15,27,76,0.75) 60%, rgba(10,18,60,0.92) 100%);
}
.parallax-hero {
  background-image: url('/images/hero.webp');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
@media (max-width: 768px) {
  .parallax-hero { background-attachment: scroll; }
}
.prose { color: #e2e8f0; font-size: 1rem; line-height: 1.75; max-width: 100%; }
.prose h2 { color: #c9a84c; font-size: 1.5rem; font-weight: 700; margin-top: 2em; margin-bottom: 0.75em; border-bottom: 1px solid rgba(201,168,76,0.3); padding-bottom: 0.3em; }
.prose h3 { color: #f5d98b; font-size: 1.2rem; font-weight: 600; margin-top: 1.5em; margin-bottom: 0.5em; }
.prose p { margin-bottom: 1.2em; }
.prose a { color: #c9a84c; text-decoration: underline; }
.prose a:hover { color: #f5d98b; }
.prose ul { list-style: disc; padding-left: 1.5em; margin-bottom: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.5em; margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { border-left: 4px solid #c9a84c; padding-left: 1em; color: #a0aec0; font-style: italic; margin: 1.5em 0; }
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; white-space: nowrap; border-collapse: collapse; margin-bottom: 1.5em; }
.prose th { background: rgba(201,168,76,0.2); color: #c9a84c; font-weight: 700; padding: 0.6em 1em; text-align: left; border: 1px solid rgba(201,168,76,0.3); }
.prose td { padding: 0.5em 1em; border: 1px solid rgba(255,255,255,0.1); color: #e2e8f0; }
.prose tr:nth-child(even) td { background: rgba(255,255,255,0.03); }
.prose img { max-width: 100%; height: auto; border-radius: 0.5rem; margin: 1.5em 0; }
.card-glass { background: rgba(255,255,255,0.04); border: 1px solid rgba(201,168,76,0.2); backdrop-filter: blur(8px); }
.nav-glass { background: rgba(10,18,60,0.97); border-bottom: 1px solid rgba(201,168,76,0.25); }
.gold-border { border: 1px solid rgba(201,168,76,0.4); }
.text-gold { color: #c9a84c; }
.text-gold-light { color: #f5d98b; }
.bg-gold { background-color: #c9a84c; }

/* Primary nav: visible hover (Tailwind theme may not include custom "gold") */
.nav-menu-link {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.nav-menu-link:hover,
.nav-menu-link:focus-visible {
  color: #f5d98b;
  text-shadow: 0 0 14px rgba(201, 168, 76, 0.5);
  outline: none;
}
.nav-menu-link--bar {
  position: relative;
}
.nav-menu-link--bar::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a84c, transparent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  border-radius: 1px;
}
.nav-menu-link--bar:hover::after,
.nav-menu-link--bar:focus-visible::after {
  transform: scaleX(1);
}
.nav-menu-link--stack {
  display: block;
  padding: 0.5rem 0.75rem;
  margin: 0 -0.75rem;
  border-radius: 0.375rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
.nav-menu-link--stack:hover,
.nav-menu-link--stack:focus-visible {
  color: #f5d98b;
  background: rgba(201, 168, 76, 0.12);
  padding-left: 1rem;
  outline: none;
}

/* Mobile hamburger: always visible, clear tap target */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(201, 168, 76, 0.45);
  background: rgba(22, 32, 96, 0.6);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
  background: rgba(201, 168, 76, 0.15);
  border-color: rgba(245, 217, 139, 0.7);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.35);
  outline: none;
}
.mobile-menu-btn__bar {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: #c9a84c;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.mobile-menu-btn[aria-expanded='true'] .mobile-menu-btn__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-btn[aria-expanded='true'] .mobile-menu-btn__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-btn[aria-expanded='true'] .mobile-menu-btn__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.bg-sapphire { background-color: #0a1238; }
.bg-sapphire-mid { background-color: #0f1b4c; }
.bg-sapphire-light { background-color: #162060; }
.word-cloud span { display: inline-block; margin: 0.3em 0.5em; font-weight: 700; color: #c9a84c; transition: color 0.2s; }
.word-cloud span:hover { color: #f5d98b; }
.step-badge { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: linear-gradient(135deg,#c9a84c,#a07830); color: #0a1238; font-weight: 900; font-size: 1.1rem; flex-shrink: 0; }
/* Featured Games: avoid overflow on section/card — no Y translate; shadow not clipped */
.game-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 0;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.game-card:hover,
.game-card:focus-visible {
  z-index: 2;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 168, 76, 0.55), 0 0 20px rgba(201, 168, 76, 0.3);
  border-color: rgba(245, 217, 139, 0.75) !important;
  outline: none;
}
.game-card__thumb {
  position: relative;
  height: 9rem;
  overflow: hidden;
  background: #0a1238;
  border-radius: 0.75rem 0.75rem 0 0;
}
.game-card__meta {
  border-radius: 0 0 0.75rem 0.75rem;
}
.game-card__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 18, 60, 0.65) 100%);
  opacity: 0.85;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.game-card:hover .game-card__thumb::after,
.game-card:focus-visible .game-card__thumb::after {
  opacity: 0.45;
}
.game-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.game-card:hover .game-card__thumb img,
.game-card:focus-visible .game-card__thumb img {
  transform: scale(1.1);
}
.game-card__title {
  transition: color 0.2s ease;
}
.game-card:hover .game-card__title,
.game-card:focus-visible .game-card__title {
  color: #f5d98b;
}

/* FAQ accordion */
details.card-glass > summary {
  list-style: none;
  transition: background 0.2s ease, color 0.2s ease;
}
details.card-glass > summary::-webkit-details-marker {
  display: none;
}
details.card-glass > summary:hover,
details.card-glass > summary:focus-visible {
  background: rgba(201, 168, 76, 0.1);
  color: #f5d98b;
  outline: none;
}

/* Header logo */
.site-header-brand {
  transition: filter 0.2s ease, opacity 0.2s ease;
  border-radius: 0.25rem;
}
.site-header-brand:hover,
.site-header-brand:focus-visible {
  filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.45));
  opacity: 0.95;
  outline: none;
}

/* Footer links & pills */
.site-footer a {
  transition: color 0.2s ease, text-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-footer a:hover,
.site-footer a:focus-visible {
  color: #c9a84c;
  outline: none;
}
.site-footer a.card-glass:hover,
.site-footer a.card-glass:focus-visible {
  color: #f5d98b;
  border-color: rgba(245, 217, 139, 0.55) !important;
  background: rgba(201, 168, 76, 0.14) !important;
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.35);
}
.site-footer ul a:hover,
.site-footer ul a:focus-visible {
  color: #f5d98b;
}

/* Promotion tiles (subtle lift; CTA uses .btn-gold-outline) */
.promo-tile {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.promo-tile:hover {
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}
