/* ============================================================
   VRChat Ultimate — styles.css
   Dark base + per-section accent system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0a0f;
  --bg2:         #0f0f1a;
  --bg3:         #141428;
  --surface:     #1a1a2e;
  --surface2:    #22223a;
  --border:      rgba(255,255,255,0.08);
  --text:        #e2e8f0;
  --text-muted:  #64748b;
  --text-dim:    #94a3b8;
  --white:       #ffffff;
  --accent:      #7c3aed; /* fallback */
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --transition:  all 0.25s cubic-bezier(0.4,0,0.2,1);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
  --shadow:      0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.7);
  --glow:        0 0 20px rgba(124,58,237,0.3);
  --font:        'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; color: var(--white); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { color: var(--text-dim); }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Utility ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.text-accent { color: var(--accent); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.opacity-70 { opacity: 0.7; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  height: 60px;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  font-size: 0.775rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-muted);
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}
.nav-link:hover { color: var(--white); background: var(--surface); }
.nav-link.active { color: var(--white); background: var(--surface2); border-color: var(--border); }
.nav-link .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: rgba(10,10,15,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  z-index: 999;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}
.nav-drawer.open { display: flex; }

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.site-section {
  padding-top: 60px; /* nav height */
  min-height: 100vh;
}

.section-hero {
  padding: 4rem 1.5rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-title .accent-word {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #fff));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.7;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 3rem 0;
}

.section-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* Alternating bg strips */
.site-section:nth-child(even) { background: var(--bg2); }

/* ============================================================
   COMPONENT LIBRARY
   ============================================================ */

/* ── .card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover::before { opacity: 1; }

.card-featured {
  background: linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb, var(--accent) 10%, var(--surface)) 100%);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ── .card-grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1rem;
}
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* ── .badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.08);
  color: var(--text-dim);
  border: 1px solid rgba(255,255,255,0.08);
}
.badge-accent {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.badge-red   { background: rgba(239,68,68,0.18); color: #ef4444; border-color: rgba(239,68,68,0.3); }
.badge-green { background: rgba(16,185,129,0.18); color: #10b981; border-color: rgba(16,185,129,0.3); }
.badge-orange{ background: rgba(249,115,22,0.18); color: #f97316; border-color: rgba(249,115,22,0.3); }
.badge-blue  { background: rgba(59,130,246,0.18); color: #3b82f6; border-color: rgba(59,130,246,0.3); }
.badge-pink  { background: rgba(236,72,153,0.18); color: #ec4899; border-color: rgba(236,72,153,0.3); }

/* ── .btn ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover { filter: brightness(1.15); transform: translateY(-1px); box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 40%, transparent); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}
.btn-outline:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; border-radius: 8px; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: var(--radius-lg); }

/* ── .pill-nav ── */
.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.pill {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.pill:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }
.pill.active {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

/* ── stat card ── */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  border-top: 3px solid var(--accent);
}
.stat-card .stat-number {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── img placeholder ── */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--surface2), var(--surface));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2rem;
  border: 1px dashed var(--border);
  overflow: hidden;
  position: relative;
}
.img-placeholder span { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }
.img-placeholder-inner { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }

/* ── divider ── */
.rule { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ── accordion ── */
.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }
.accordion-header {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 1rem 1.25rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  transition: background 0.2s;
}
.accordion-header:hover { background: var(--surface2); }
.accordion-header .acc-arrow { transition: transform 0.3s; font-style: normal; }
.accordion-item.open .acc-arrow { transform: rotate(90deg); }
.accordion-body {
  background: var(--bg2);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.accordion-item.open .accordion-body { max-height: 500px; padding: 1rem 1.25rem; }

/* ── form elements ── */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-dim); margin-bottom: 0.4rem; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  padding: 0.65rem 0.875rem;
  border-radius: var(--radius);
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-select option { background: var(--surface); }

/* ── table ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th {
  background: var(--surface2);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface2); }

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
}

/* ── timeline ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0.625rem;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -1.625rem;
  top: 0.25rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}
.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.timeline-text { font-size: 0.875rem; color: var(--text-dim); }

/* ── search bar ── */
.search-bar {
  position: relative;
  margin-bottom: 1.5rem;
}
.search-bar input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
}
.search-bar input:focus { border-color: var(--accent); }
.search-bar .search-icon {
  position: absolute;
  left: 0.875rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* ── modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal-icon { font-size: 3rem; margin-bottom: 1rem; }
.modal-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.modal-text { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 2rem; line-height: 1.7; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ── code block ── */
.code-block {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.82rem;
  color: #e6edf3;
  overflow-x: auto;
  line-height: 1.6;
  position: relative;
}
.code-block .code-comment { color: #8b949e; }
.code-block .code-kw { color: #ff7b72; }
.code-block .code-fn { color: #79c0ff; }
.code-block .code-str { color: #a5d6ff; }
.code-block .code-num { color: #79c0ff; }
.code-block .code-label { position: absolute; top: 0.5rem; right: 0.75rem; font-size: 0.7rem; color: #8b949e; font-family: var(--font); }

/* ── waveform animation ── */
.waveform {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 48px;
  margin: 1rem 0;
}
.waveform-bar {
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
  animation: wave 1.2s ease-in-out infinite;
  opacity: 0.85;
}
.waveform-bar:nth-child(1)  { height: 20%; animation-delay: 0s; }
.waveform-bar:nth-child(2)  { height: 60%; animation-delay: 0.1s; }
.waveform-bar:nth-child(3)  { height: 40%; animation-delay: 0.2s; }
.waveform-bar:nth-child(4)  { height: 90%; animation-delay: 0.3s; }
.waveform-bar:nth-child(5)  { height: 70%; animation-delay: 0.4s; }
.waveform-bar:nth-child(6)  { height: 50%; animation-delay: 0.5s; }
.waveform-bar:nth-child(7)  { height: 80%; animation-delay: 0.6s; }
.waveform-bar:nth-child(8)  { height: 30%; animation-delay: 0.7s; }
.waveform-bar:nth-child(9)  { height: 65%; animation-delay: 0.8s; }
.waveform-bar:nth-child(10) { height: 45%; animation-delay: 0.9s; }
.waveform-bar:nth-child(11) { height: 75%; animation-delay: 1.0s; }
.waveform-bar:nth-child(12) { height: 55%; animation-delay: 1.1s; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(0.35); }
}

/* ── skeleton body ── */
.body-diagram {
  display: flex;
  justify-content: center;
  padding: 1.5rem;
}
.body-svg text { font-family: var(--font); font-size: 11px; }

/* ── rating stars / flames ── */
.flames { display: flex; gap: 3px; }
.flame { font-size: 1.1rem; filter: grayscale(1); opacity: 0.3; }
.flame.lit { filter: none; opacity: 1; }

/* ── flow pipeline ── */
.pipeline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.pipeline-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}
.pipeline-step .step-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pipeline-arrow { color: var(--text-muted); font-size: 1rem; }

/* ── split columns ── */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.split-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }

/* ── callout box ── */
.callout {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.callout-title {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}
.callout p { font-size: 0.875rem; color: var(--text-dim); margin: 0; }

/* ── countdown ── */
.countdown {
  display: flex;
  gap: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.countdown-unit {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  text-align: center;
  min-width: 48px;
}
.countdown-num { font-size: 1.1rem; font-weight: 800; color: var(--accent); display: block; }
.countdown-label { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── donut chart ── */
.donut-wrap { display: flex; justify-content: center; margin: 1rem 0; }
.donut-legend { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--text-dim); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ============================================================
   SECTION ACCENT COLORS — CSS custom property overrides
   ============================================================ */
#sec-report         { --accent: #ef4444; }
#sec-tutorial       { --accent: #10b981; }
#sec-gossip         { --accent: #ec4899; }
#sec-world-week     { --accent: #8b5cf6; }
#sec-avatar         { --accent: #06b6d4; }
#sec-creator        { --accent: #f59e0b; }
#sec-events         { --accent: #3b82f6; }
#sec-slang          { --accent: #a78bfa; }
#sec-news           { --accent: #64748b; }
#sec-dj             { --accent: #f97316; }
#sec-games          { --accent: #84cc16; }
#sec-avatar-creation { --accent: #0ea5e9; }
#sec-dev            { --accent: #22c55e; }
#sec-50worlds       { --accent: #d946ef; }
#sec-bodytrack      { --accent: #38bdf8; }
#sec-18plus         { --accent: #dc2626; }
#sec-sexmarket      { --accent: #9333ea; }
#sec-history        { --accent: #f59e0b; }

/* ============================================================
   SECTION-SPECIFIC STYLES
   ============================================================ */

/* ── Section hero gradient strips ── */
.section-hero-strip {
  width: 100%;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 12%, var(--bg)) 0%,
    var(--bg) 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  position: relative;
  overflow: hidden;
}
.section-hero-strip::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 15%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Report section ── */
.step-list { display: flex; flex-direction: column; gap: 0.75rem; }
.step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.875rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.step-num-badge {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-content h4 { font-size: 0.9rem; margin-bottom: 0.25rem; }
.step-content p { font-size: 0.82rem; margin: 0; }

/* ── Gossip section ── */
.tea-meter { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.tea-meter-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.drama-tag {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255,255,255,0.07);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* ── Avatar grid masonry-ish ── */
.avatar-card-img {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--surface2), var(--surface));
  border-radius: 8px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}

/* ── Creator spotlight ── */
.earnings-tier-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.earnings-tier {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.875rem;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.earnings-tier-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  min-width: 100px;
}
.earnings-tier-bar {
  flex: 1;
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}
.earnings-tier-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.earnings-tier-amount {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 80px;
  text-align: right;
}

/* ── Slang dictionary ── */
.alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}
.alpha-btn {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.alpha-btn:hover, .alpha-btn.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ── Dev corner terminal ── */
#sec-dev .card {
  background: #0d1117;
  border-color: #30363d;
}
#sec-dev .card h4 { color: #22c55e; font-family: monospace; }

/* ── Body tracking table ── */
.compat-yes  { color: #10b981; font-weight: 700; }
.compat-no   { color: #ef4444; }
.compat-part { color: #f59e0b; }

/* ── Radial vibe (World of Week) ── */
.vibe-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }
.vibe-chip {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--surface2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.vibe-chip.active {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

/* ── 18+ lock ── */
.locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,15,0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: var(--radius-lg);
}
.age-locked-section { position: relative; }
.age-locked-section .content-lock { pointer-events: none; filter: blur(5px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split-3     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .card-grid   { grid-template-columns: 1fr 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: 1fr 1fr; }
  .split-2     { grid-template-columns: 1fr; }
  .split-3     { grid-template-columns: 1fr; }
  .pipeline    { flex-direction: column; align-items: flex-start; }
  .pipeline-arrow { transform: rotate(90deg); }
  .section-hero-strip { padding: 2rem 1rem; }
  .section-body { padding-bottom: 3rem; }
}

@media (max-width: 480px) {
  .card-grid   { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: 1fr; }
  .nav-logo span { display: none; }
}
