/* ========================================
   Rules Page Layout
   ======================================== */

/* --- Rules Hero --- */

.rules-hero {
  position: relative;
  min-height: 45vh;
  padding: var(--space-16) var(--space-6) var(--space-12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
}

.rules-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(212, 160, 32, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(192, 58, 43, 0.05) 0%, transparent 40%);
  z-index: 0;
  pointer-events: none;
}

.rules-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 160, 32, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 160, 32, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
  pointer-events: none;
}

.rules-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
  animation: float 6s ease-in-out infinite;
}

.rules-orb-1 {
  width: 300px;
  height: 300px;
  background: var(--gold-500);
  top: 15%;
  right: 20%;
  animation-duration: 9s;
}

.rules-orb-2 {
  width: 200px;
  height: 200px;
  background: var(--accent-red);
  bottom: 15%;
  left: 25%;
  animation-duration: 7s;
  animation-delay: -3s;
}

.rules-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
  gap: var(--space-4);
}

.rules-logo {
  width: clamp(200px, 30vw, 340px);
  height: auto;
  margin-bottom: var(--space-4);
  filter: drop-shadow(0 0 20px rgba(212, 160, 32, 0.3));
}

.rules-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-5xl);
  text-transform: uppercase;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--gold-300), var(--orange-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rules-subtitle {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: var(--text-lg);
  max-width: 500px;
}

/* Active nav */
.hero-nav-active {
  color: var(--gold-400) !important;
  border-bottom-color: var(--gold-400) !important;
}

/* --- Rules Content --- */

.rules-content {
  padding: var(--space-16) 0;
}

.rules-content .container {
  max-width: 800px;
}

/* First card visible immediately — no gap from reveal delay */
.rules-content .rules-card:first-child {
  opacity: 1;
  transform: none;
}

.rules-card {
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
}

.rules-card-number {
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold-400);
  opacity: 0.1;
  line-height: 1;
}

.rules-heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Lists --- */

.rules-steps {
  list-style: decimal;
  padding-left: var(--space-6);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-base);
  line-height: 1.6;
}

.rules-steps strong {
  color: var(--gold-300);
}

.rules-list {
  list-style: disc;
  padding-left: var(--space-6);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-base);
  line-height: 1.6;
}

.rules-list strong {
  color: var(--gold-300);
}

/* --- TBD Box --- */

.tbd-box {
  margin-top: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: var(--text-tertiary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

/* --- Section alt --- */
.section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* --- Bottom CTA --- */

.rules-cta {
  padding: var(--space-16) var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.rules-cta-text {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
}

/* Footer styles are in components.css */

/* --- Cursor Orb --- */
.cursor-orb {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 160, 32, 0.08) 0%, rgba(232, 117, 26, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}
.cursor-orb.active { opacity: 1; }
@media (max-width: 768px) { .cursor-orb { display: none; } }

/* =============================================
   MOBILE OVERHAUL — RULES PAGE
   ============================================= */

@media (max-width: 768px) {
  .rules-hero {
    min-height: auto;
    padding: var(--space-12) var(--space-4) var(--space-8);
  }

  .rules-logo {
    width: clamp(140px, 40vw, 220px);
  }

  .rules-title {
    font-size: var(--text-3xl);
  }

  .rules-orb { opacity: 0.12; }
  .rules-orb-1 { width: 180px; height: 180px; }
  .rules-orb-2 { width: 120px; height: 120px; }

  .rules-content {
    padding: var(--space-12) 0;
  }

  .rules-card {
    margin-bottom: var(--space-4);
  }

  .rules-cta {
    padding: var(--space-12) var(--space-4);
  }
}

@media (max-width: 480px) {
  .rules-hero {
    padding: var(--space-8) var(--space-3) var(--space-6);
  }

  .rules-logo { width: 140px; }

  .rules-title {
    font-size: var(--text-2xl);
    letter-spacing: 2px;
  }

  .rules-subtitle {
    font-size: var(--text-base);
  }

  .rules-content {
    padding: var(--space-8) 0;
  }

  .rules-heading {
    font-size: var(--text-base);
  }

  .rules-card-number {
    font-size: 2.5rem;
  }

  .rules-steps,
  .rules-list {
    font-size: var(--text-sm);
    padding-left: var(--space-4);
  }

  .rules-cta-text {
    font-size: var(--text-lg);
  }
}

@media (max-width: 375px) {
  .rules-hero { padding: var(--space-6) var(--space-3); }
  .rules-logo { width: 120px; }
  .rules-title { font-size: var(--text-xl); }
}
