/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Pixel Premium x Glassmorphism Theme */
  --gold: #F5B700;
  --gold-light: #FFD147;
  --gold-dark: #C29100;
  --royal-blue: #F5B700; /* We make buttons gold */
  --royal-blue-dark: #C29100;
  --royal-blue-light: #FFD147;
  --parchment: #F6F1E7;
  --parchment-dark: #E0D9C8;
  --dark-bg: #1a1d24; /* Darker root bg */
  --dark-surface: #23272F; /* Dark Stone */
  --dark-card: rgba(35, 39, 47, 0.65); /* Glass card */
  --dark-border: rgba(245, 183, 0, 0.25); /* Gold glass border */
  --text-primary: #F6F1E7; /* Warm Bone */
  --text-secondary: rgba(246, 241, 231, 0.7);
  --text-muted: rgba(246, 241, 231, 0.4);
  --red-accent: #ff4747;
  --green-accent: #2ecc71;

  /* Typography */
  --font-display: 'MedievalSharp', cursive;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.section-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== PARTICLES ===== */
.particles {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle 8s infinite ease-in-out;
}

@keyframes floatParticle {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  20% { opacity: 0.6; }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-100px) scale(1); }
}

/* ===== FLOATING NAVBAR ===== */
.navbar {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  z-index: 1000;
  padding: 12px 30px;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(35, 39, 47, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(246, 241, 231, 0.05);
}

.navbar.scrolled {
  top: 15px;
  background: var(--dark-card);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--dark-border);
  padding: 10px 30px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform 0.3s ease;
}

.nav-logo:hover { transform: scale(1.05); }

.nav-icon {
  width: 40px; height: 40px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
}

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

.nav-play-btn {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--dark-bg) !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.nav-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 168, 67, 0.5);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ===== PARALLAX HERO ===== */
.hero-parallax {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden;
  z-index: 0;
}

.parallax-layer {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  will-change: transform;
}

.layer-bg {
  background: 
    radial-gradient(circle at 50% 30%, rgba(245, 183, 0, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 80% -20%, rgba(245, 183, 0, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 10% 110%, rgba(245, 183, 0, 0.08) 0%, transparent 50%),
    var(--dark-bg);
}

/* ===== GRID MOTION ===== */
.grid-motion-container {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.grid-motion-section {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-motion-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background-size: 250px;
}

.grid-motion-grid {
  gap: 16px;
  flex: none;
  position: relative;
  width: 150vw;
  height: 150vh;
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  grid-template-columns: repeat(1, minmax(0, 1fr));
  transform: rotate(-15deg);
  transform-origin: center;
  z-index: 2;
}

.grid-motion-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.grid-motion-item {
  position: relative;
}

.grid-motion-item-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  background-color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.grid-motion-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.6; /* Slight dark overlay by dimming the images, as requested */
}

.grid-motion-overlay {
  position: relative;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0,0,0,0.5) 0%, rgba(26,29,36,0.95) 100%);
  z-index: 3;
}

.layer-castle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -50px;
}

.castle-sprite {
  width: 320px;
  height: 256px;
  background: url('/castle.png') no-repeat 0 0;
  image-rendering: pixelated;
  transform: scale(2.5);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.9));
}

.layer-chars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10vh;
  gap: 20vw;
}

.bull-sprite {
  width: 192px;
  height: 192px;
  background: url('/bull_idle.png') no-repeat 0 0;
  image-rendering: pixelated;
  transform: scale(2);
  animation: playIdle 0.8s steps(6) infinite;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.6));
}

.bull-sprite-2 {
  transform: scale(2) scaleX(-1);
  animation-delay: -0.4s;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.6)) hue-rotate(-90deg) brightness(1.2); /* Make the second one look slightly different */
}

@keyframes playIdle {
  0% { background-position: 0 0; }
  100% { background-position: -1152px 0; }
}

.layer-overlay {
  background: 
    linear-gradient(to bottom, transparent 60%, var(--dark-bg) 100%),
    radial-gradient(circle at center, transparent 40%, rgba(26,29,36,0.8) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(212, 168, 67, 0.15);
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 28px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.95;
  margin-bottom: 24px;
  animation: fadeInUp 1s ease-out 0.4s both;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.title-age {
  display: block;
  background: linear-gradient(110deg, var(--gold) 0%, #fff 50%, var(--gold) 100%);
  background-size: 200% auto;
  color: var(--gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 3s linear infinite;
}

.title-of {
  display: none;
}

.title-tinies {
  display: block;
  background: linear-gradient(110deg, var(--text-primary) 0%, #fff 50%, var(--text-primary) 100%);
  background-size: 200% auto;
  color: var(--text-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 3s linear infinite;
  animation-delay: 1.5s;
}

@keyframes shineText {
  to {
    background-position: 200% center;
  }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 1s ease-out 0.8s both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: var(--dark-bg);
  box-shadow:
    0 4px 15px rgba(212, 168, 67, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 30px rgba(212, 168, 67, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-shimmer {
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--dark-border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 20px 44px;
  font-size: 1.15rem;
  border-radius: 14px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  animation: fadeInUp 1s ease-out 1s both;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--dark-border);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.scroll-indicator span {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: -0.1em;
}

.scroll-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: bounceArrow 2s infinite;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.5; }
  50% { transform: translateY(10px) rotate(45deg); opacity: 1; }
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(212, 168, 67, 0.12);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== FEATURES ===== */
.features {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
  background: var(--dark-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--dark-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 183, 0, 0.6);
  box-shadow: 0 15px 40px rgba(245, 183, 0, 0.15);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== SCREENSHOTS ===== */
.screenshots {
  padding: var(--section-padding);
  background: var(--dark-surface);
  position: relative;
  z-index: 1;
}

.screenshots-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.carousel-track {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid var(--dark-border);
  background: var(--dark-bg);
  aspect-ratio: 16/9;
}

.carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: scale(0.95);
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 28px 24px;
  background: linear-gradient(transparent, rgba(12, 21, 32, 0.95));
}

.slide-caption h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.slide-caption p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(12, 21, 32, 0.8);
  border: 1px solid var(--dark-border);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 5;
}

.carousel-btn:hover {
  background: var(--gold-dark);
  color: var(--dark-bg);
  border-color: var(--gold);
}

.carousel-prev { left: -24px; }
.carousel-next { right: -24px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--dark-border);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(212, 168, 67, 0.5);
}

/* ===== ABOUT ===== */
.about {
  padding: var(--section-padding);
  background: var(--dark-bg);
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content .section-tag { margin-bottom: 16px; }
.about-content .section-title { text-align: left; margin-bottom: 20px; }

.about-content p, .about-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
  text-align: justify;
}

.tech-stack {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tech-badge {
  padding: 6px 14px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--royal-blue-light);
}

.about-card {
  background: var(--dark-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--dark-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.about-card:hover {
  border-color: var(--gold-dark);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.about-icon {
  width: 80px; height: 80px;
  margin: 0 auto 16px;
  object-fit: cover;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.about-version {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.about-features-list {
  text-align: left;
}

.about-feature-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--dark-border);
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.about-feature-item:last-child { border-bottom: none; }

/* ===== FINAL CTA ===== */
.final-cta {
  padding: 80px 0;
  text-align: center;
  position: relative;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(212, 168, 67, 0.08) 0%, transparent 60%),
    var(--dark-surface);
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--gold);
  margin-bottom: 12px;
}

.final-cta p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ===== MINIMAL FOOTER ===== */
.footer {
  padding: 80px 0 40px;
  background: var(--dark-bg);
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-hero {
  margin-bottom: 40px;
}

.footer-icon-large {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  object-fit: cover;
}

.footer-hero h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.footer-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.footer-divider {
  width: 100px;
  height: 2px;
  background: var(--dark-border);
  margin: 0 auto 40px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.footer-links-row {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links-row a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links-row a:hover {
  color: var(--gold);
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(12, 21, 32, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--dark-border);
  }

  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .stat-number { font-size: 1.8rem; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== LEADERBOARD SECTION ===== */
.leaderboard-section {
  padding: var(--section-padding);
  background: var(--dark-bg);
  position: relative;
  z-index: 10;
}

.leaderboard-container {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  margin-top: 40px;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.leaderboard-table th {
  padding: 20px 24px;
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  border-bottom: 2px solid var(--dark-border);
  letter-spacing: 0.5px;
}

.leaderboard-table td {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(245, 183, 0, 0.1);
  vertical-align: middle;
}

.leaderboard-table tr:last-child td {
  border-bottom: none;
}

.leaderboard-table tr:hover td {
  background: rgba(245, 183, 0, 0.04);
}

.rank-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: bold;
  text-align: center;
  font-size: 0.95rem;
}

.rank-1 {
  background: rgba(245, 183, 0, 0.2);
  color: var(--gold-light);
  border: 1px solid var(--gold);
  box-shadow: 0 0 15px rgba(245, 183, 0, 0.2);
}

.rank-2 {
  background: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  border: 1px solid #c0c0c0;
}

.rank-3 {
  background: rgba(205, 127, 50, 0.15);
  color: #cd7f32;
  border: 1px solid #cd7f32;
}

.player-name {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verified-tag {
  background: rgba(171, 159, 242, 0.15);
  color: #ab9ff2;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: bold;
  border: 1px solid rgba(171, 159, 242, 0.3);
}

.loading-leaderboard {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

/* ===== FAQ ===== */
.faq-section {
  padding: var(--section-padding);
  background: var(--dark-surface);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(8px);
}

.faq-item[open] {
  border-color: rgba(245, 183, 0, 0.5);
  box-shadow: 0 10px 30px rgba(245, 183, 0, 0.08);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-primary);
  list-style: none;
  user-select: none;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold); }

.faq-chevron {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--gold);
  font-size: 1.35rem;
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  padding: 0 26px 24px;
  overflow: hidden;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.faq-item[open] .faq-answer {
  animation: faqReveal 0.35s ease both;
}

@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== SCROLL TO TOP ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #1a1d24;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245, 183, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 28px rgba(245, 183, 0, 0.55);
}

.scroll-top-btn:active { transform: translateY(0) scale(0.95); }

@media (max-width: 768px) {
  .faq-item summary { font-size: 1.02rem; padding: 18px 20px; }
  .faq-answer { padding: 0 20px 20px; }
  .scroll-top-btn { bottom: 20px; right: 20px; width: 46px; height: 46px; font-size: 1.3rem; }
}
