/* =============================================================================
   LIMITLESS TRUEVIBE — styles.css
   =============================================================================

   TABLE OF CONTENTS
   -----------------
   1.  CSS Variables (design tokens)
   2.  Reset & Base
   3.  Typography helpers
   4.  Utility classes (.btn, .reveal, .wave-strip, .section-tag, etc.)
   5.  Navigation
   6.  Hero Section
   7.  About Section
   8.  Stats Bar
   9.  Beat Challenges Section
   10. Playlists Section
   11. Join / CTA Section
   12. Footer
   13. Animations & Keyframes
   14. Responsive (max-width: 768px)

   BRAND COLORS (for quick reference)
   ------------------------------------
   Cream:   #fcffde   — primary text, light backgrounds
   Dark:    #161b31   — main background
   Pink:    #d181a8   — primary accent, CTAs, highlights
   Purple:  #60376b   — secondary accent, gradients
   White:   #ffffff   — pure white where needed
   Discord: #5865F2   — Discord brand button color

============================================================================= */


/* =============================================================================
   1. CSS VARIABLES
============================================================================= */

:root {
  /* Brand palette */
  --color-cream:    #fcffde;
  --color-dark:     #161b31;
  --color-dark-2:   #1c2240;       /* slightly lighter dark for contrast surfaces */
  --color-pink:     #d181a8;
  --color-purple:   #60376b;
  --color-white:    #ffffff;
  --color-discord:  #5865F2;

  /* Semantic aliases */
  --bg:             var(--color-dark);
  --bg-surface:     var(--color-dark-2);
  --text:           var(--color-cream);
  --text-muted:     rgba(252, 255, 222, 0.55);
  --accent:         var(--color-pink);
  --accent-2:       var(--color-purple);
  --border:         rgba(209, 129, 168, 0.18);
  --surface-mid:    rgba(252, 255, 222, 0.04);

  /* Spacing scale */
  --space-xs:  0.4rem;
  --space-sm:  0.8rem;
  --space-md:  1.5rem;
  --space-lg:  3rem;
  --space-xl:  5rem;
  --space-2xl: 7rem;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'Space Mono', 'Courier New', monospace;

  /* Border radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-full: 999px;

  /* Transitions */
  --transition: 0.22s ease;
  --transition-slow: 0.8s ease;
}


/* =============================================================================
   2. RESET & BASE
============================================================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Grain texture overlay — purely decorative */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}


/* =============================================================================
   3. TYPOGRAPHY HELPERS
   — Used across multiple sections
============================================================================= */

.section-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.section-h {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-h em {
  color: var(--accent);
  font-style: italic;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 580px;
}

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

.optional {
  font-size: 0.75em;
  color: var(--text-muted);
  font-weight: 300;
}


/* =============================================================================
   4. UTILITY CLASSES
============================================================================= */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-discord {
  background: var(--color-discord);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35);
}

.btn-discord:hover {
  box-shadow: 0 6px 28px rgba(88, 101, 242, 0.6);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Scroll reveal ── */
/* Elements start invisible; .visible class added by IntersectionObserver in script.js */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grouped reveals */
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ── Animated wave strip (bars generated by JS) ── */
.wave-strip {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  background: var(--bg);
  overflow: hidden;
  padding: 10px 0;
}

.wbar {
  width: 2.5px;
  border-radius: 2px;
  background: linear-gradient(to top, var(--accent-2), var(--accent));
  animation: wbAnim 1s ease-in-out infinite alternate;
}


/* =============================================================================
   5. NAVIGATION
============================================================================= */

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(22, 27, 49, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: padding var(--transition);
}

.nav-logo-link {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(209, 129, 168, 0.5));
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--transition);
}

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

.nav-discord {
  background: var(--color-discord);
  color: var(--color-white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.68rem !important;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: opacity var(--transition), transform var(--transition) !important;
}

.nav-discord:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Hamburger button — hidden on desktop, shown on mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile menu drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 190;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  transition: color var(--transition);
}

.mobile-link:hover {
  color: var(--accent);
}

.mobile-discord {
  font-family: var(--font-mono) !important;
  font-size: 0.85rem !important;
  background: var(--color-discord);
  color: white !important;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-full);
}


/* =============================================================================
   6. HERO SECTION
============================================================================= */

#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 2rem 5rem;
}

/* Radial glow background */
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 50% 45%, rgba(96, 55, 107, 0.5) 0%, transparent 65%),
    radial-gradient(ellipse 30% 25% at 75% 25%, rgba(209, 129, 168, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 25% 75%, rgba(96, 55, 107, 0.2) 0%, transparent 55%),
    var(--bg);
  pointer-events: none;
}

/* Particles container — filled dynamically by script.js */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  opacity: 0;
  animation: float-up linear infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  animation: fadeUp 1s ease both;
}

/* Animated "live" dot in hero eyebrow */
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5e5e;
  flex-shrink: 0;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.hero-logo {
  width: min(380px, 78vw);
  margin: 0 auto 1.8rem;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 0 35px rgba(209, 129, 168, 0.55)) drop-shadow(0 0 80px rgba(96, 55, 107, 0.35));
  animation: fadeUp 1s ease 0.15s both, floatLogo 6s ease-in-out infinite 1.2s;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.2rem;
  animation: fadeUp 1s ease 0.3s both;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  animation: fadeUp 1s ease 0.45s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 1s ease 0.6s both;
}

/* Scroll indicator at bottom of hero */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  animation: fadeUp 1s ease 1.2s both;
}

.scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}


/* =============================================================================
   7. ABOUT SECTION
============================================================================= */

#about {
  padding: var(--space-2xl) 2rem;
  background: var(--bg);
  display: flex;
  justify-content: center;
}

.about-wrap {
  max-width: 1060px;
  width: 100%;
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Left column: logo image + member count badge */
.about-left {
  flex: 0 0 auto;
  width: min(320px, 90vw);
  position: relative;
}

.about-logo-img {
  width: 100%;
  border-radius: var(--radius-md);
  filter: drop-shadow(0 0 30px rgba(96, 55, 107, 0.8));
}

.about-badge {
  position: absolute;
  bottom: -18px;
  right: -18px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(209, 129, 168, 0.4);
  border: 2px solid rgba(252, 255, 222, 0.15);
}

.badge-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text);
}

.badge-label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: rgba(252, 255, 222, 0.8);
  text-transform: uppercase;
  text-align: center;
}

/* Right column: copy + values + discord CTA */
.about-right {
  flex: 1;
  min-width: 280px;
  padding-top: 0.5rem;
}

.tag-line {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.about-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.8rem;
}

.about-headline em {
  color: var(--accent);
  font-style: italic;
}

.about-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 1.1rem;
}

.about-body strong {
  color: var(--text);
  font-weight: 500;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 2rem 0;
}

.about-values li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.95rem;
  color: var(--text);
}

.value-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent);
}

/* Discord callout card at bottom of about copy */
.about-discord-cta {
  margin-top: 2.2rem;
  padding: 1.4rem 1.8rem;
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.discord-cta-text p:first-child {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.discord-cta-text p:last-child {
  font-size: 0.85rem;
  color: var(--text-muted);
}


/* =============================================================================
   8. STATS BAR
============================================================================= */

#stats {
  background: linear-gradient(
    135deg,
    rgba(96, 55, 107, 0.25) 0%,
    rgba(22, 27, 49, 0.95) 50%,
    rgba(96, 55, 107, 0.15) 100%
  );
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 900px;
  width: 100%;
}

.stat-block {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
}

.stat-block:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* =============================================================================
   9. BEAT CHALLENGES SECTION
============================================================================= */

#challenges {
  padding: var(--space-2xl) 2rem;
  background: var(--bg);
  display: flex;
  justify-content: center;
}

.challenges-inner {
  max-width: 1060px;
  width: 100%;
}

/* Two-column layout: info left, form right */
.challenge-layout {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  align-items: flex-start;
}

.challenge-info {
  flex: 1;
  min-width: 280px;
}

.challenge-sub-h {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

/* Ordered steps list */
.how-it-works {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 0 12px rgba(209, 129, 168, 0.3);
  margin-top: 2px;
}

.step-text h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.step-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* Beat Master prize card */
.prize-card {
  background: linear-gradient(
    135deg,
    rgba(96, 55, 107, 0.35),
    rgba(22, 27, 49, 0.8)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.prize-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.prize-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.prize-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
}

.prize-card strong {
  color: var(--text);
  font-weight: 500;
}

/* Submission form column */
.challenge-form-wrap {
  flex: 0 0 380px;
  min-width: 300px;
}

.form-card {
  background: var(--surface-mid);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.2rem;
  position: sticky;
  top: 90px;
}

.form-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.form-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  font-weight: 300;
}

/* Form fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  background: rgba(22, 27, 49, 0.8);
  border: 1px solid rgba(209, 129, 168, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(209, 129, 168, 0.1);
}

.field select option {
  background: var(--bg-surface);
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  padding: 0.9rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-top: 0.5rem;
  box-shadow: 0 4px 20px rgba(209, 129, 168, 0.25);
}

.submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(209, 129, 168, 0.45);
}

.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
  font-weight: 300;
}


/* =============================================================================
   10. PLAYLISTS SECTION
============================================================================= */

#playlists {
  padding: var(--space-2xl) 2rem;
  background: linear-gradient(
    180deg,
    rgba(96, 55, 107, 0.12) 0%,
    var(--bg) 100%
  );
  display: flex;
  justify-content: center;
}

.playlists-inner {
  max-width: 1060px;
  width: 100%;
}

/* Genre filter tabs */
.playlist-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Playlist cards grid */
.playlists-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-bottom: 3rem;
}

/* Individual playlist card — content generated by renderPlaylists() in script.js */
.playlist-card {
  flex: 1 1 220px;
  max-width: 260px;
  background: var(--surface-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.playlist-card:hover {
  transform: translateY(-5px);
  border-color: rgba(209, 129, 168, 0.35);
  box-shadow: 0 16px 40px rgba(96, 55, 107, 0.35);
}

.playlist-art {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.playlist-art-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-svg {
  width: 65%;
  opacity: 0.75;
}

.playlist-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 27, 49, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.playlist-card:hover .playlist-play-overlay {
  opacity: 1;
}

.pl-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  box-shadow: 0 0 20px rgba(209, 129, 168, 0.5);
}

.playlist-meta {
  padding: 1rem 1rem 1.2rem;
}

.playlist-genre {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.playlist-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.playlist-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* "Submit your track" CTA below playlist grid */
.playlist-submit-cta {
  padding: 2rem 2.5rem;
  background: var(--surface-mid);
  border: 1px dashed rgba(209, 129, 168, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.playlist-submit-cta h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.playlist-submit-cta p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 420px;
}

.playlist-submit-cta strong {
  color: var(--text);
  font-weight: 500;
}


/* =============================================================================
   11. JOIN / CTA SECTION
============================================================================= */

#join {
  padding: var(--space-2xl) 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(96, 55, 107, 0.45) 0%, transparent 70%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.join-inner {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.join-h {
  text-align: center;
  margin-bottom: 0;
}

.join-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
  margin: 1.2rem 0 2.5rem;
  line-height: 1.8;
}

/* Community fact pills */
.join-facts {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.join-fact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--surface-mid);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
}

.join-fact::before {
  content: '✓';
  color: var(--accent);
  font-size: 0.8rem;
}

/* Larger variant of the Discord button for the final CTA */
.btn-join-big {
  font-size: 0.82rem;
  padding: 1.1rem 2.8rem;
}


/* =============================================================================
   12. FOOTER
============================================================================= */

#footer {
  background: rgba(8, 11, 20, 0.98);
  border-top: 1px solid var(--border);
  padding: 3rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

.footer-logo {
  height: 44px;
  width: auto;
  filter: grayscale(0.2);
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

/* Social icon circles */
.soc {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  transition: all var(--transition);
}

.soc:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(209, 129, 168, 0.08);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: rgba(252, 255, 222, 0.2);
  text-align: center;
}


/* =============================================================================
   13. ANIMATIONS & KEYFRAMES
============================================================================= */

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

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

@keyframes float-up {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-100vh) scale(0.3); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 94, 94, 0.5); }
  50%       { opacity: 0.6; box-shadow: 0 0 0 4px rgba(255, 94, 94, 0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

@keyframes wbAnim {
  from { height: 4px; opacity: 0.3; }
  to   { height: var(--h); opacity: 0.9; }
}


/* =============================================================================
   14. RESPONSIVE — max-width: 768px
============================================================================= */

@media (max-width: 768px) {

  /* Nav: hide links, show hamburger */
  #navbar {
    padding: 0.9rem 1.2rem;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* About: stack columns */
  .about-wrap {
    flex-direction: column;
    gap: 3.5rem;
  }

  .about-left {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  /* Stats: stack with bottom border instead of right */
  .stat-block {
    border-right: none;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .stat-block:last-child {
    border-bottom: none;
  }

  /* Challenges: stack columns */
  .challenge-layout {
    flex-direction: column;
  }

  .challenge-form-wrap {
    flex: 0 0 100%;
    min-width: unset;
  }

  .form-card {
    position: static;
  }

  /* Playlists: allow cards to fill width */
  .playlist-card {
    max-width: 100%;
  }

  /* Join CTA: smaller padding */
  #join {
    padding: 5rem 1.5rem;
  }

  .btn-join-big {
    padding: 1rem 2rem;
    font-size: 0.75rem;
  }

  /* Reduce section padding */
  #about,
  #challenges,
  #playlists {
    padding: 5rem 1.5rem;
  }
}


/* =============================================================================
   HERO WAVEFORM CANVAS
   — Full-width animated waveform that sits behind the hero logo
   — Low opacity so it doesn't compete with the logo
============================================================================= */

.hero-wave-canvas {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.18;
  z-index: 1;
}

/* The hero content must sit above the wave canvas */
.hero-content {
  position: relative;
  z-index: 2;
}


/* =============================================================================
   CHALLENGE — current challenge banner at top of section
============================================================================= */

.current-challenge-banner {
  background: linear-gradient(135deg, rgba(96,55,107,0.4), rgba(209,129,168,0.15));
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.6rem 2rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.challenge-banner-left {}

.challenge-banner-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
  display: block;
}

.challenge-banner-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.challenge-banner-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 560px;
  line-height: 1.6;
}

.challenge-banner-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.challenge-deadline {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.challenge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(60,180,80,0.15);
  border: 1px solid rgba(60,180,80,0.3);
  color: #7dd87d;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.challenge-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7dd87d;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* Extra field that only appears for certain challenge types */
.field.conditional {
  display: none;
}
.field.conditional.visible {
  display: flex;
}


/* =============================================================================
   PLAYLISTS — SoundCloud embeds + submission form
============================================================================= */

/* Remove old card styles that no longer apply */
.playlists-layout {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  align-items: flex-start;
}

.playlists-embeds {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.soundcloud-embed-wrap {
  background: var(--surface-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.soundcloud-embed-wrap:hover {
  border-color: rgba(209,129,168,0.35);
  box-shadow: 0 8px 30px rgba(96,55,107,0.25);
}

.embed-label {
  padding: 0.9rem 1.2rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.embed-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.embed-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(209,129,168,0.1);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
}

.soundcloud-embed-wrap iframe {
  display: block;
  width: 100%;
  border: none;
}

/* Current playlist banner — mirrors challenge banner style */
.current-playlist-banner {
  background: linear-gradient(135deg, rgba(96,55,107,0.4), rgba(209,129,168,0.15));
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.6rem 2rem;
  margin-bottom: 3rem;
}

.current-playlist-banner .challenge-banner-tag {
  margin-bottom: 0.4rem;
}

.current-playlist-banner .challenge-banner-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.current-playlist-banner .challenge-banner-desc {
  max-width: 100%;
}

/* Playlist submit form column */
.playlist-form-wrap {
  flex: 0 0 360px;
  min-width: 300px;
}

@media (max-width: 768px) {
  .playlists-layout {
    flex-direction: column;
  }
  .playlist-form-wrap {
    flex: 0 0 100%;
    min-width: unset;
  }
  .challenge-banner-meta {
    align-items: flex-start;
  }
}


/* =============================================================================
   ADMIN PANEL — floating button + modal for updating challenges/playlists
   — Only shown if ?admin=1 is in the URL (set in script.js)
============================================================================= */

.admin-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 300;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.8rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(209,129,168,0.4);
  display: none;
  align-items: center;
  gap: 0.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.admin-fab.visible {
  display: flex;
}

.admin-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(209,129,168,0.6);
}

.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,12,24,0.85);
  backdrop-filter: blur(8px);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.admin-modal-overlay.open {
  display: flex;
}

.admin-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.admin-modal h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.admin-modal .admin-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 300;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.admin-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}

.admin-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.admin-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.admin-save-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  padding: 0.85rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: opacity var(--transition), transform var(--transition);
}

.admin-save-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}


/* =============================================================================
   FILE UPLOAD — WAV drop zone
   Used in both the challenge and playlist submission forms.
============================================================================= */

.file-format {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(209,129,168,0.1);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* The visible drop zone box */
.file-drop-zone {
  position: relative;
  border: 2px dashed rgba(209,129,168,0.3);
  border-radius: var(--radius-md);
  background: rgba(22,27,49,0.6);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
  border-color: var(--accent);
  background: rgba(209,129,168,0.06);
}

.file-drop-zone.has-file {
  border-color: rgba(60,180,80,0.5);
  background: rgba(60,180,80,0.05);
}

.file-drop-zone.has-error {
  border-color: #e05a5a;
  background: rgba(224,90,90,0.05);
}

.file-drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
}

.file-drop-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.file-drop-text {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.file-browse-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.file-drop-hint {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(252,255,222,0.3);
}

/* The actual <input type="file"> — invisible, fills the whole drop zone */
.file-input-hidden {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0; /* prevents any flash of native UI */
}

/* File selected feedback row */
.file-selected {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  min-height: 1.2rem;
}

.file-selected.success {
  color: #7dd87d;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.file-selected.error {
  color: #e05a5a;
}

.file-selected.success::before { content: '✓'; }
.file-selected.error::before   { content: '✕'; }
