/* ===========================================================
   CONTESTS PAGE — RebelInuX
   Museum-grade styling · Mobile-first
   Base = phone · min-width = tablet/desktop
   ============================================================ */

:root {
  --rebel-red:    #d74d4d;
  --rebel-gold:   #d4a76a;
  --rebel-gold-2: #e3b87c;
  --rebel-gold-3: #ffd700;
  --rebel-blue:   #00aaff;
  --rebel-purple: #9d4edd;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --gold-gradient: linear-gradient(135deg, #d4a76a 0%, #ffd700 50%, #d4a76a 100%);
  --gold-gradient-soft: linear-gradient(135deg, #e3b87c 0%, #c99e5c 100%);

  --gutter: 1.25rem;
}

/* ============================================================
   BASE — PHONE
   ============================================================ */

/* Reusable serif accent */
.gold-serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.005em;
}

/* ---------- HERO ---------- */
.page-hero--contests {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a120b 35%, #2a1f14 55%, #1a120b 75%, #0a0a0f 100%);
  text-align: center;
}

.page-hero--contests::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://i.imgur.com/bfPgAoS.webp') center/cover;
  opacity: 0.14;
  z-index: 0;
  pointer-events: none;
}

.page-hero--contests .hero-background-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 85%, rgba(212, 167, 106, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(215, 77, 77, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(156, 39, 176, 0.06) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.page-hero--contests .hero-vignette {
  position: absolute; inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.page-hero--contests .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 var(--gutter);
}

.hero-content { text-align: center; }
.hero-text { text-align: center; }

/* Eyebrow — museum label */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 167, 106, 0.1);
  border: 1px solid rgba(212, 167, 106, 0.3);
  border-radius: 50px;
  padding: 0.4rem 0.9rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rebel-gold);
  margin-bottom: 1.25rem;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ff3b30;
  border-radius: 50%;
  animation: livePulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 6px rgba(255, 59, 48, 0); }
}

.page-hero--contests h1 {
  font-family: var(--font-body);
  font-size: clamp(1.85rem, 7.5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  word-break: break-word;
}
.page-hero--contests h1 em { font-size: 1.1em; }

.page-hero--contests .text-lead {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 100%;
  margin: 0 auto 1.5rem;
}
.page-hero--contests .text-lead strong {
  color: var(--rebel-gold-2);
  font-weight: 700;
}

/* Hero badges */
.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.75rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(227, 184, 124, 0.12);
  border: 1px solid rgba(227, 184, 124, 0.3);
  padding: 0.42rem 0.9rem;
  border-radius: 30px;
  font-size: 0.75rem;
  color: var(--rebel-gold);
  font-weight: 600;
}
.hero-badge i { font-size: 0.75rem; }

/* Hero CTAs */
.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  margin-top: 1.5rem;
}
.hero-buttons .cta-button {
  width: 100%;
  justify-content: center;
}


/* ---------- CTA BUTTON SYSTEM ---------- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.35rem;
  border-radius: 14px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  min-height: 46px;
  text-align: center;
}

.cta-button.primary-glow {
  background: var(--gold-gradient);
  color: #0a0a0f;
  box-shadow: 0 6px 20px rgba(212, 167, 106, 0.35);
}
.cta-button.primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 167, 106, 0.5);
}

.cta-button.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--rebel-gold);
  color: var(--rebel-gold);
  transform: translateY(-2px);
}

.cta-button.large {
  padding: 1rem 1.5rem;
  font-size: 0.92rem;
}


/* ---------- SECTION HEADERS — museum label style ---------- */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-block;
  background: rgba(212, 167, 106, 0.1);
  color: var(--rebel-gold);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid rgba(212, 167, 106, 0.25);
}

.section-header h2 {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 5.5vw, 2.25rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 0.6rem;
  word-break: break-word;
}
.section-header h2 .highlight-gold { color: var(--rebel-gold); }

.section-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
}


/* ========== KEY TAKEAWAYS ========== */
.key-takeaways {
  padding: 3rem 0;
}

.takeaways-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.takeaways-box {
  background: linear-gradient(135deg,
    rgba(156, 39, 176, 0.12),
    rgba(0, 170, 255, 0.12));
  padding: 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(212, 167, 106, 0.4);
  backdrop-filter: blur(12px);
}

.takeaways-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.takeaways-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  color: #1a1a2e;
  box-shadow: 0 6px 18px rgba(212, 167, 106, 0.35);
}

.takeaways-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--rebel-gold);
  margin: 0;
  line-height: 1.3;
}

.takeaways-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.takeaway-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border-left: 3px solid;
  transition: transform 0.25s ease, background 0.25s ease;
  min-width: 0;
  backdrop-filter: blur(5px);
}
.takeaway-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.takeaway-purple { border-left-color: #9C27B0; }
.takeaway-red    { border-left-color: var(--rebel-red); }
.takeaway-gold   { border-left-color: var(--rebel-gold); }
.takeaway-blue   { border-left-color: #1976D2; }
.takeaway-green  { border-left-color: #2E7D32; }

.takeaway-purple .takeaway-icon { color: #9C27B0; }
.takeaway-red    .takeaway-icon { color: var(--rebel-red); }
.takeaway-gold   .takeaway-icon { color: var(--rebel-gold); }
.takeaway-blue   .takeaway-icon { color: #1976D2; }
.takeaway-green  .takeaway-icon { color: #2E7D32; }

.takeaway-purple .takeaway-title { color: #9C27B0; }
.takeaway-red    .takeaway-title { color: var(--rebel-red); }
.takeaway-gold   .takeaway-title { color: var(--rebel-gold); }
.takeaway-blue   .takeaway-title { color: #1976D2; }
.takeaway-green  .takeaway-title { color: #2E7D32; }

.takeaway-icon {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1;
}

.takeaway-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.takeaway-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
}

.takeaway-value {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0.15rem 0 0;
}

.takeaway-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.68);
  margin-top: 0.15rem;
  line-height: 1.4;
}

.takeaways-footer {
  text-align: center;
  margin-top: 1.1rem;
}
.takeaways-footer a {
  color: var(--rebel-gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.8rem;
  transition: transform 0.25s ease;
}
.takeaways-footer a:hover { transform: translateY(-2px); }


/* ========== STATS OVERVIEW ========== */
#contests-stats {
  padding: 3.5rem 0;
}
#contests-stats .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.stats-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 0;
}

.stat-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 167, 106, 0.2);
  border-radius: 14px;
  padding: 1.15rem 0.85rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  min-width: 0;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--rebel-gold);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.stat-card .stat-icon {
  font-size: 1.5rem;
  color: var(--rebel-gold);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
  line-height: 1.1;
  letter-spacing: -0.005em;
}

.stat-card .stat-label {
  color: var(--rebel-gold);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
  font-weight: 700;
}

.stat-card .stat-note {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.4rem;
  line-height: 1.4;
}

.stat-card .progress-container { margin-top: 0.7rem; }
.stat-card .progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.stat-card .progress-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 4px;
  transition: width 1s ease;
}


/* ========== ACTIVE CONTEST BANNER ========== */
.active-contest-section {
  padding: 3rem 0;
}
.active-contest-section .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.active-contest-card {
  background: linear-gradient(135deg, rgba(227, 184, 124, 0.14), rgba(255, 193, 7, 0.04));
  border: 1px solid rgba(212, 167, 106, 0.45);
  border-radius: 22px;
  padding: 1.5rem 1.25rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}
.active-contest-card::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(212, 167, 106, 0.08), transparent 60%);
  pointer-events: none;
}

.active-contest-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  position: relative;
}

.active-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--rebel-gold);
  text-transform: uppercase;
}

.contest-id {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  margin-left: auto;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.active-contest-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.55rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.85rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  position: relative;
}

.active-contest-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0 0 1.35rem;
  position: relative;
}

.active-contest-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(227, 184, 124, 0.2);
  border-bottom: 1px solid rgba(227, 184, 124, 0.2);
  position: relative;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.meta-item i {
  font-size: 1.15rem;
  color: var(--rebel-gold);
  flex-shrink: 0;
}
.meta-item > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.meta-label {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.meta-value {
  font-size: 0.82rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.4;
}

.active-contest-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: relative;
}
.active-contest-actions .cta-button { width: 100%; }


/* ========== CONTEST TYPES ========== */
.contest-types-section {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.005) 100%);
}
.contest-types-section .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.contest-types-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.contest-type-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem 1.35rem;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.contest-type-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 167, 106, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.contest-type-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #0a0a0f;
  margin-bottom: 1rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.contest-type-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0.4rem 0 0.7rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.contest-type-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
  margin: 0 0 1rem;
}

.contest-type-badge {
  display: inline-block;
  background: var(--gold-gradient);
  color: #0a0a0f;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.22rem 0.6rem;
  border-radius: 12px;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  align-self: flex-start;
}

.contest-type-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  flex: 1;
}
.contest-type-features li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.32rem 0;
  line-height: 1.4;
}
.contest-type-features i {
  color: var(--rebel-gold);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.contest-type-note {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.45;
  margin-top: auto;
}
.contest-type-note i { flex-shrink: 0; }

.contest-type-note.highlight {
  background: rgba(251, 191, 36, 0.1);
  border-left-color: #fbbf24;
  color: #fbbf24;
}


/* ========== HOW IT WORKS ========== */
.how-it-works-section {
  padding: 3.5rem 0;
}
.how-it-works-section .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.steps-flow {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.flow-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.15rem 1.15rem;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  min-width: 0;
}
.flow-step:hover {
  border-color: rgba(212, 167, 106, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.flow-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #0a0a0f;
  font-weight: 900;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(212, 167, 106, 0.4);
}

.flow-content {
  min-width: 0;
  flex: 1;
}
.flow-content h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.4rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.flow-content p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
  margin: 0;
}


/* ========== REWARDS ========== */
.rewards-section {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.005) 100%);
}
.rewards-section .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.reward-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

.reward-info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}
.reward-info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 167, 106, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.reward-info-card.highlighted {
  border: 2px solid var(--rebel-gold);
  background: linear-gradient(135deg, rgba(227, 184, 124, 0.14), rgba(212, 167, 106, 0.04));
  box-shadow: 0 12px 40px rgba(212, 167, 106, 0.15);
}

.reward-info-icon {
  font-size: 1.75rem;
  color: var(--rebel-gold);
  margin-bottom: 0.75rem;
}

.reward-info-card h4 {
  color: #fff;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.reward-info-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
  margin: 0 0 0.75rem;
}

.reward-info-note {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.reward-info-note.highlight { color: #fbbf24; }


/* ========== MILESTONES ========== */
.milestones-wrapper {
  margin-top: 3rem;
}

.milestones-title {
  text-align: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.005em;
}

.milestones-subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  max-width: 1000px;
  margin: 0 auto;
}

.milestone-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.25rem 0.9rem;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}
.milestone-card:hover {
  transform: translateY(-5px);
  border-color: var(--rebel-gold);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.milestone-card.final {
  border: 1.5px solid rgba(212, 167, 106, 0.6);
  background: linear-gradient(135deg, rgba(227, 184, 124, 0.2), rgba(212, 167, 106, 0.05));
  box-shadow: 0 12px 40px rgba(212, 167, 106, 0.2);
}

.milestone-volume {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.milestone-bonus {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.65rem;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem;
  line-height: 1.1;
  letter-spacing: -0.005em;
}

.milestone-total {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.milestone-card.final .milestone-total strong {
  color: var(--rebel-gold);
  font-size: 0.88rem;
  font-weight: 800;
}

.milestones-note {
  max-width: 720px;
  margin: 1.75rem auto 0;
  padding: 0.95rem 1.1rem;
  background: rgba(227, 184, 124, 0.08);
  border-radius: 12px;
  border-left: 3px solid var(--rebel-gold);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  text-align: left;
  line-height: 1.55;
}
.milestones-note i {
  color: var(--rebel-gold);
  flex-shrink: 0;
  margin-top: 0.15rem;
}


/* ========== CRITERIA ========== */
.criteria-section {
  padding: 3.5rem 0;
}
.criteria-section .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.criteria-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-top: 1.25rem;
}

.criteria-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem 1.35rem;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}
.criteria-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 167, 106, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.criteria-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 1rem;
  margin-bottom: 1rem;
}
.criteria-header i {
  font-size: 1.2rem;
  color: var(--rebel-gold);
  flex-shrink: 0;
}
.criteria-header h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.criteria-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.criteria-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.42rem 0;
  line-height: 1.4;
}
.criteria-list i {
  color: #22c55e;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.criteria-footnote {
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 0.95rem 1.1rem;
  background: rgba(227, 184, 124, 0.08);
  border-radius: 12px;
  border-left: 3px solid var(--rebel-gold);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  line-height: 1.55;
}
.criteria-footnote i {
  color: var(--rebel-gold);
  flex-shrink: 0;
  margin-top: 0.15rem;
}


/* ========== HOW TO ENTER ========== */
.how-to-enter-section {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.005) 100%);
}
.how-to-enter-section .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.enter-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.enter-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem 1.35rem 1.35rem;
  text-align: center;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}
.enter-step:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 167, 106, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.enter-step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #0a0a0f;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 4px 14px rgba(212, 167, 106, 0.4);
}

.enter-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gold-gradient-soft);
  color: #0a0a0f;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem auto 1rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.enter-step h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.6rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.enter-step p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
  margin: 0;
}
.enter-step p strong { color: var(--rebel-gold); font-weight: 800; }

.enter-cta {
  text-align: center;
  margin: 2.5rem 0 1rem;
}
.enter-cta .cta-button { max-width: 420px; margin: 0 auto; }

.enter-note {
  max-width: 620px;
  margin: 0 auto;
  padding: 0.9rem 1.15rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.5;
}
.enter-note i { color: #22c55e; flex-shrink: 0; }


/* ========== FAQ ========== */
.faq-section {
  padding: 3.5rem 0;
}
.faq-section .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.faq-list {
  max-width: 820px;
  margin: 1.25rem auto 0;
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.faq-item:hover {
  border-color: rgba(212, 167, 106, 0.28);
}
.faq-item.open {
  border-color: rgba(212, 167, 106, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.05rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  font-family: inherit;
  letter-spacing: -0.005em;
  line-height: 1.4;
}
.faq-question span { flex: 1; min-width: 0; }
.faq-question i {
  color: var(--rebel-gold);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  font-size: 0.8rem;
}
.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.15rem;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.15rem 1.15rem;
}
.faq-answer p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin: 0;
}
.faq-answer a {
  color: var(--rebel-gold);
  text-decoration: underline;
}


/* ========== FINAL CTA ========== */
.contests-final-cta {
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}
.contests-final-cta .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

.contests-cta-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(227, 184, 124, 0.14), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(227, 184, 124, 0.35);
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contests-cta-card::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(212, 167, 106, 0.08), transparent 60%);
  pointer-events: none;
}

.contests-cta-card h2 {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 0.6rem;
  position: relative;
}
.contests-cta-card h2 em { font-size: 1.05em; }

.contests-cta-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 1.5rem;
  line-height: 1.55;
  position: relative;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.cta-actions .cta-button { width: 100%; }

.cta-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
  position: relative;
}
.cta-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.cta-badges i { color: #22c55e; }


/* ============================================================
   TABLET — 640px+
   ============================================================ */
@media (min-width: 640px) {
  :root { --gutter: 1.75rem; }

  .page-hero--contests { padding: 4.5rem 0 3rem; }
  .page-hero--contests h1 { font-size: clamp(2.25rem, 6vw, 2.75rem); }
  .page-hero--contests .text-lead { font-size: 1rem; max-width: 680px; }

  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
  }
  .hero-buttons .cta-button { width: auto; flex: 1 1 auto; min-width: 200px; }

  .section-header { margin-bottom: 3rem; }

  .key-takeaways { padding: 4rem 0; }
  .takeaways-box { padding: 1.5rem; }
  .takeaways-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .takeaway-icon { font-size: 1.3rem; }
  .takeaway-title { font-size: 0.72rem; }
  .takeaway-value { font-size: 1.1rem; }
  .takeaway-sub { font-size: 0.76rem; }

  .stats-overview { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .stat-card { padding: 1.4rem 1.1rem; }
  .stat-card .stat-icon { font-size: 1.7rem; }
  .stat-card .stat-value { font-size: 1.65rem; }
  .stat-card .stat-label { font-size: 0.7rem; }
  .stat-card .stat-note { font-size: 0.74rem; }

  .active-contest-card { padding: 2rem 1.75rem; }
  .active-contest-title { font-size: 1.75rem; }
  .active-contest-meta { grid-template-columns: repeat(3, 1fr); }
  .active-contest-actions { flex-direction: row; }
  .active-contest-actions .cta-button { width: auto; flex: 1 1 auto; }

  .contest-types-grid { grid-template-columns: repeat(2, 1fr); gap: 1.35rem; margin-top: 1.5rem; }

  .flow-step { padding: 1.35rem 1.35rem; gap: 1.2rem; }

  .reward-info-grid { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }

  .milestones-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }

  .criteria-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

  .enter-steps { grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }

  .cta-actions { flex-direction: row; justify-content: center; gap: 0.7rem; }
  .cta-actions .cta-button { width: auto; }
  .cta-badges { flex-direction: row; gap: 1.4rem; }

  .contests-cta-card { padding: 3rem 2.25rem; }
}


/* ============================================================
   DESKTOP — 1024px+
   ============================================================ */
@media (min-width: 1024px) {
  :root { --gutter: 2rem; }

  .page-hero--contests { padding: 5.5rem 0 4rem; }
  .page-hero--contests h1 { font-size: clamp(2.5rem, 3.5vw, 3.25rem); }
  .page-hero--contests .text-lead { font-size: 1.08rem; max-width: 720px; }

  .section-header h2 { font-size: 2rem; }

  .takeaways-grid { grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
  .stats-overview { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .contest-types-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .criteria-grid { grid-template-columns: repeat(3, 1fr); }
  .milestones-grid { grid-template-columns: repeat(5, 1fr); }
}


/* ============================================================
   LARGE DESKTOP — 1440px+
   ============================================================ */
@media (min-width: 1440px) {
  .page-hero--contests { padding: 7rem 0 5rem; }
  .page-hero--contests h1 { font-size: 3.75rem; }
  .contest-types-grid { gap: 1.75rem; }
}


/* ============================================================
   SAFETY NET
   ============================================================ */
html, body { overflow-x: clip; max-width: 100%; }
main { overflow-x: clip; }
img, iframe, video { max-width: 100%; }

code, .contract-code { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
