/*
 * Southern Rift Interactive - Complete Stylesheet
 * Mobile-first, dark sci-fi gaming marketplace
 */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */

:root {
  --background: #f0f4f8;
  --foreground: #0d1117;
  --card: #e8edf5;
  --card-foreground: #0d1117;
  --popover: #e8edf5;
  --popover-foreground: #0d1117;
  --primary: #0891b2;
  --primary-foreground: #ffffff;
  --secondary: #d1dce8;
  --secondary-foreground: #1a2533;
  --muted: #dde4ee;
  --muted-foreground: #4a5a6b;
  --accent: #ea580c;
  --accent-foreground: #ffffff;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #c8d5e3;
  --input: #dde4ee;
  --ring: #0891b2;

  /* Extended palette */
  --cyan: #00d4ff;
  --orange: #f97316;
  --purple: #a855f7;
  --green: #10b981;
  --yellow: #eab308;
  --rose: #f43f5e;

  /* Typography */
  --font-heading: 'Orbitron', 'Segoe UI', sans-serif;
  --font-body: 'Exo 2', 'Segoe UI', system-ui, sans-serif;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* Layout */
  --container-max: 1280px;
  --header-h: 64px;

  /* Borders */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Transitions */
  --transition: 0.25s ease;
  --transition-slow: 0.45s ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);

  /* Glows */
  --glow-cyan: 0 0 20px rgba(0,212,255,0.25);
  --glow-orange: 0 0 20px rgba(249,115,22,0.25);
}

[data-theme="dark"] {
  --background: #0a0a0f;
  --foreground: #e8edf5;
  --card: #111118;
  --card-foreground: #e8edf5;
  --popover: #111118;
  --popover-foreground: #e8edf5;
  --primary: #00d4ff;
  --primary-foreground: #0a0a0f;
  --secondary: #1a1a2e;
  --secondary-foreground: #a8bfd4;
  --muted: #161625;
  --muted-foreground: #8a9bb5;
  --accent: #f97316;
  --accent-foreground: #0a0a0f;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #1e2a3a;
  --input: #161625;
  --ring: #00d4ff;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

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

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img, video, iframe, embed, object, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

input, select, textarea {
  font-family: var(--font-body);
  max-width: 100%;
  box-sizing: border-box;
}

p {
  overflow-wrap: break-word;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  overflow-wrap: break-word;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--sp-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--sp-8);
  }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--primary);
  box-shadow: var(--glow-cyan);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--glow-cyan);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-foreground);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: var(--glow-orange);
}

.btn-rift {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--primary-foreground);
  border-color: transparent;
  position: relative;
}

.btn-rift::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}

.btn-rift:hover::before {
  opacity: 1;
}

.btn-rift > * {
  position: relative;
  z-index: 1;
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--foreground);
  border-color: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-hero {
  padding: 12px 24px;
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .btn-hero {
    padding: 14px 28px;
    font-size: 0.9rem;
  }
}

/* ============================================
   TAGS / BADGES
   ============================================ */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 2px;
  text-transform: uppercase;
}

.tag-orange {
  background: rgba(249,115,22,0.2);
  color: #f97316;
  border: 1px solid rgba(249,115,22,0.4);
}

.tag-cyan {
  background: rgba(0,212,255,0.15);
  color: #00d4ff;
  border: 1px solid rgba(0,212,255,0.3);
}

.tag-purple {
  background: rgba(168,85,247,0.15);
  color: #a855f7;
  border: 1px solid rgba(168,85,247,0.3);
}

.tag-green {
  background: rgba(16,185,129,0.15);
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.3);
}

.tag-yellow {
  background: rgba(234,179,8,0.15);
  color: #eab308;
  border: 1px solid rgba(234,179,8,0.3);
}

/* ============================================
   SECTION SHARED STYLES
   ============================================ */

.section-header {
  text-align: center;
  margin-bottom: var(--sp-8);
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: var(--sp-12);
  }
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 4px 12px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: var(--sp-4);
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: var(--sp-4);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-subtitle strong {
  color: var(--primary);
}

.section-subtitle-h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted-foreground);
  max-width: 680px;
  margin: 0 auto;
}

.section-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-8) 0;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

/* Animate on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

:root .site-header {
  background: rgba(240,244,248,0.9);
}

[data-theme="dark"] .site-header {
  background: rgba(10,10,15,0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-4);
  gap: var(--sp-4);
}

@media (min-width: 768px) {
  .header-inner {
    padding: 0 var(--sp-6);
  }
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo .logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-primary {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--foreground);
}

.logo-secondary {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-transform: uppercase;
}

.logo-rift-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Desktop Nav */
.header-nav {
  display: none;
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
  }

  .header-nav ul {
    display: flex;
    gap: var(--sp-1);
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  min-height: 44px;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--primary);
  background: rgba(0,212,255,0.08);
}

.nav-link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--muted);
  border: 1px solid var(--border);
  color: var(--foreground);
  transition: all var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.icon-sun,
.icon-moon {
  flex-shrink: 0;
}

[data-theme="dark"] .icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: block;
}

:root .icon-sun {
  display: block;
}

:root .icon-moon {
  display: none;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--muted);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger:hover {
  border-color: var(--primary);
}

.hamburger:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  width: min(320px, 100vw);
  background: var(--card);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  z-index: 999;
  overflow-y: auto;
  padding: var(--sp-6);
}

.mobile-drawer[aria-hidden="false"],
.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  position: relative;
  z-index: 1;
}

.drawer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-bottom: var(--sp-6);
}

.drawer-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--foreground);
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all var(--transition);
  min-height: 44px;
}

.drawer-link:hover {
  color: var(--primary);
  background: rgba(0,212,255,0.08);
  border-color: rgba(0,212,255,0.2);
}

.drawer-cta {
  width: 100%;
  justify-content: center;
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 998;
}

.drawer-overlay.is-open {
  display: block;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

/* Canvas grid */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Background image */
.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(10,10,15,0.7) 0%,
    rgba(10,10,15,0.4) 40%,
    rgba(10,10,15,0.8) 80%,
    rgba(10,10,15,0.95) 100%
  );
}

:root .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(240,244,248,0.7) 0%,
    rgba(240,244,248,0.3) 40%,
    rgba(240,244,248,0.7) 80%,
    rgba(240,244,248,0.95) 100%
  );
}

/* Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* Main content */
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-content {
    padding: var(--sp-8) var(--sp-6);
  }
}

/* Glass panel */
.hero-glass-panel {
  width: 100%;
  max-width: 860px;
  background: rgba(10,10,15,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: var(--radius-xl);
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
  box-shadow: 0 0 60px rgba(0,212,255,0.06), inset 0 1px 0 rgba(255,255,255,0.06);
}

:root .hero-glass-panel {
  background: rgba(240,244,248,0.6);
  border-color: rgba(8,145,178,0.2);
  box-shadow: 0 0 60px rgba(8,145,178,0.08);
}

@media (min-width: 768px) {
  .hero-glass-panel {
    padding: var(--sp-10) var(--sp-12);
  }
}

/* Headline rotator */
.hero-heading-wrap {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
}

@media (min-width: 768px) {
  .hero-heading-wrap {
    min-height: 6rem;
  }
}

.hero-h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--foreground);
  text-align: center;
}

.headline-rotator {
  display: block;
  position: relative;
}

.headline-item {
  display: none;
  background: linear-gradient(135deg, var(--foreground) 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.headline-item.active {
  display: block;
  animation: fadeInUp 0.6s ease;
}

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

/* Subtitle */
.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--muted-foreground);
  max-width: 620px;
  margin: 0 auto var(--sp-6);
  line-height: 1.75;
}

.hero-subtitle strong {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

/* CTA group */
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: center;
  width: 100%;
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Trending Bar */
.trending-bar {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  background: rgba(10,10,15,0.8);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 8px 0;
  margin-top: auto;
  contain: layout style;
}

:root .trending-bar {
  background: rgba(240,244,248,0.9);
}

.trending-inner {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  contain: strict;
}

.trending-track {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  width: max-content;
  will-change: transform;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trending-track:hover {
  animation-play-state: paused;
}

.trending-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8rem;
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.trending-sep {
  color: var(--primary);
  opacity: 0.4;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.trending-link {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.trending-link:hover {
  text-decoration: underline;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted-foreground);
  animation: scrollBounce 2s ease infinite;
  text-decoration: none;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, transparent, var(--primary));
}

.scroll-arrow {
  color: var(--primary);
}

/* ============================================
   SECTOR LIBRARY
   ============================================ */

.sector-library {
  padding: var(--sp-16) 0 var(--sp-10);
  background: var(--background);
}

@media (min-width: 768px) {
  .sector-library {
    padding: var(--sp-20) 0 var(--sp-16);
  }
}

/* Filter Bar */
.filter-bar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: flex-end;
  margin-bottom: var(--sp-4);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  flex: 1;
  min-width: 120px;
}

.filter-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  text-transform: uppercase;
}

.filter-select {
  padding: 8px 12px;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: var(--font-body);
  min-height: 44px;
  cursor: pointer;
  transition: border-color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a9bb5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0,212,255,0.15);
}

.filter-mobile-btn {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  min-height: 44px;
}

/* Mood Filters */
.mood-filters {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.mood-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  text-transform: uppercase;
  flex-shrink: 0;
}

.mood-chip {
  padding: 6px 14px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  transition: all var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.mood-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.mood-chip.active,
.mood-chip[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

/* View Modes */
.view-modes {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}

.view-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 8px 14px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  transition: all var(--transition);
  min-height: 44px;
}

.view-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.view-btn.active,
.view-btn[aria-pressed="true"] {
  background: rgba(0,212,255,0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.view-btn span {
  display: none;
}

@media (min-width: 640px) {
  .view-btn span {
    display: inline;
  }
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-8);
}

@media (min-width: 640px) {
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Stream view */
.games-grid[data-view="stream"] {
  grid-template-columns: 1fr;
}

.games-grid[data-view="stream"] .game-card {
  display: flex;
  flex-direction: row;
}

.games-grid[data-view="stream"] .game-card-img-wrap {
  width: 160px;
  flex-shrink: 0;
  aspect-ratio: auto;
  height: auto;
}

.games-grid[data-view="stream"] .game-card-body {
  flex: 1;
}

/* Explorer view */
.games-grid[data-view="explorer"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .games-grid[data-view="explorer"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Game Card */
.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(0,212,255,0.12);
}

.game-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.game-card-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--muted);
}

.game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.game-card:hover .game-card-img {
  transform: scale(1.06);
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.game-card:hover .game-card-overlay {
  opacity: 1;
}

.game-more-btn {
  padding: 10px 20px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: all var(--transition);
  min-height: 44px;
}

.game-more-btn:hover {
  background: var(--accent);
}

.game-badge {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  padding: 3px 8px;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  border-radius: 2px;
  text-transform: uppercase;
}

.badge-new {
  background: var(--primary);
  color: var(--primary-foreground);
}

.badge-indie {
  background: var(--yellow);
  color: #0a0a0f;
}

.badge-hot {
  background: var(--accent);
  color: #0a0a0f;
}

.game-card-body {
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
}

.game-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
}

.game-genre-tag {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--tag-color, var(--primary));
  text-transform: uppercase;
}

.game-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
}

.game-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--card-foreground);
  margin-bottom: var(--sp-2);
  line-height: 1.3;
}

.game-desc {
  font-size: 0.83rem;
  color: var(--muted-foreground);
  line-height: 1.55;
  margin-bottom: var(--sp-3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.platform-icons {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}

.platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--muted-foreground);
}

.game-year {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

/* Rift Match Block */
.rift-match-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin: var(--sp-8) 0;
  overflow: hidden;
  position: relative;
}

.rift-match-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.04) 0%, rgba(249,115,22,0.04) 100%);
  pointer-events: none;
}

.rift-match-inner {
  padding: var(--sp-6) var(--sp-5);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .rift-match-inner {
    padding: var(--sp-8) var(--sp-10);
  }
}

.rift-match-header {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  margin-bottom: var(--sp-5);
}

.rift-match-icon {
  width: 56px;
  height: 56px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.rift-match-title {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: var(--sp-1);
}

.rift-match-desc {
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.rift-match-btn {
  margin-bottom: var(--sp-5);
}

/* Rift Match Form */
.rift-match-form {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-5);
  margin-top: var(--sp-2);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.rm-question {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.rm-question-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: 0.03em;
}

.rm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.rm-chip {
  padding: 8px 16px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.83rem;
  color: var(--muted-foreground);
  transition: all var(--transition);
  min-height: 44px;
}

.rm-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.rm-chip.selected,
.rm-chip[aria-pressed="true"] {
  background: rgba(0,212,255,0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.rm-slider {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
  height: 4px;
}

.rm-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

.rm-submit {
  align-self: flex-start;
}

/* ============================================
   SYSTEM ARCHIVES
   ============================================ */

.system-archives {
  padding: var(--sp-16) 0 var(--sp-10);
  background: var(--muted);
}

[data-theme="dark"] .system-archives {
  background: #080810;
}

@media (min-width: 768px) {
  .system-archives {
    padding: var(--sp-20) 0 var(--sp-16);
  }
}

/* Hex animation */
.archives-hex-anim {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-4);
}

.hex-spin {
  animation: hexRotate 8s linear infinite;
  transform-origin: 50px 50px;
}

@keyframes hexRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Archive Tabs */
.archive-tabs {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-5);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.archive-tabs::-webkit-scrollbar {
  height: 4px;
}

.archive-tabs::-webkit-scrollbar-track {
  background: transparent;
}

.archive-tabs::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.archive-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 44px;
  flex-shrink: 0;
}

.archive-tab:hover {
  color: var(--tab-color, var(--primary));
  border-color: var(--tab-color, var(--primary));
}

.archive-tab.active,
.archive-tab[aria-selected="true"] {
  background: rgba(0,0,0,0.15);
  color: var(--tab-color, var(--primary));
  border-color: var(--tab-color, var(--primary));
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

[data-theme="dark"] .archive-tab.active {
  background: rgba(255,255,255,0.04);
}

/* Archive Hero */
.archive-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--sp-8);
  min-height: 320px;
}

@media (min-width: 768px) {
  .archive-hero {
    min-height: 420px;
  }
}

.archive-panel {
  display: none;
  position: relative;
  min-height: 320px;
}

.archive-panel.active {
  display: block;
  animation: archiveFade 0.5s ease;
}

@keyframes archiveFade {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

.archive-panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.archive-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.5) 60%,
    rgba(0,0,0,0.2) 100%
  );
}

.archive-panel-content {
  position: relative;
  z-index: 2;
  padding: var(--sp-6) var(--sp-5);
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

@media (min-width: 768px) {
  .archive-panel-content {
    padding: var(--sp-8) var(--sp-10);
  }
}

.archive-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.atmosphere-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.atm-tag {
  padding: 3px 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.8);
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
}

.archive-editorial {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  max-width: 480px;
}

/* Archive mini cards */
.archive-featured-games {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.archive-mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  cursor: pointer;
}

.archive-mini-card img {
  width: 80px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color var(--transition);
}

.archive-mini-card:hover img {
  border-color: var(--primary);
}

.archive-mini-card span {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.archive-connected {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.archive-connected > span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

.archive-related-btn {
  padding: 6px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 44px;
}

.archive-related-btn:hover {
  background: rgba(0,212,255,0.15);
  border-color: var(--primary);
  color: var(--primary);
}

/* Archives Mini Grid */
.archives-mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

@media (min-width: 640px) {
  .archives-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .archives-mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mini-archive-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}

.mini-archive-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,212,255,0.1);
}

.mini-archive-card > img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.mini-archive-card:hover > img {
  transform: scale(1.05);
}

.mini-archive-info {
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.mini-archive-info h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--card-foreground);
}

.mini-tags {
  display: flex;
  gap: var(--sp-1);
  flex-wrap: wrap;
}

.mini-explore-btn {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: opacity var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.mini-explore-btn:hover {
  opacity: 0.7;
}

/* Save Profile Block */
.save-profile-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
  margin-bottom: var(--sp-5);
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .save-profile-block {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
}

/* ============================================
   TRANSMISSION FEED
   ============================================ */

.transmission-feed {
  padding: var(--sp-16) 0 var(--sp-10);
  background: var(--background);
}

@media (min-width: 768px) {
  .transmission-feed {
    padding: var(--sp-20) 0 var(--sp-16);
  }
}

.transmission-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* Signal Wave */
.signal-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}

.wave-bar {
  display: block;
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
  animation: waveAnim 1.2s ease infinite;
}

.wave-bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 70%; animation-delay: 0.15s; }
.wave-bar:nth-child(3) { height: 100%; animation-delay: 0.3s; }
.wave-bar:nth-child(4) { height: 70%; animation-delay: 0.45s; }
.wave-bar:nth-child(5) { height: 40%; animation-delay: 0.6s; }

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

.transmission-editorial {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  max-width: 720px;
  margin: var(--sp-3) auto 0;
  line-height: 1.7;
}

/* Feed Tabs */
.feed-tabs {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-6);
  scrollbar-width: none;
}

.feed-tabs::-webkit-scrollbar {
  display: none;
}

.feed-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 44px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.feed-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.feed-tab.active,
.feed-tab[aria-selected="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-orange { background: var(--orange); }
.dot-cyan { background: var(--cyan); }
.dot-yellow { background: var(--yellow); }

/* Featured Transmission */
.featured-transmission {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--sp-6);
}

@media (min-width: 768px) {
  .featured-transmission {
    grid-template-columns: 1.2fr 1fr;
  }
}

.ft-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

@media (min-width: 768px) {
  .ft-image-wrap {
    aspect-ratio: auto;
    min-height: 260px;
  }
}

.ft-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured-transmission:hover .ft-image {
  transform: scale(1.04);
}

.ft-content {
  padding: var(--sp-5) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

@media (min-width: 768px) {
  .ft-content {
    padding: var(--sp-6) var(--sp-8);
  }
}

.ft-meta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

@media (min-width: 480px) {
  .ft-meta {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
}

.transmission-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 3px 10px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  border-radius: 2px;
  text-transform: uppercase;
}

.tag-live {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.3);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulseDot 1.5s ease infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.ft-date {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}

.ft-title {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--card-foreground);
  line-height: 1.3;
}

.ft-lead {
  font-size: 0.88rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  flex: 1;
}

.ft-cta {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity var(--transition);
  align-self: flex-start;
}

.ft-cta:hover {
  opacity: 0.7;
}

/* Transmissions Grid */
.transmissions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

@media (min-width: 640px) {
  .transmissions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .transmissions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Transmission Card */
.transmission-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.transmission-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,212,255,0.1);
}

.transmission-card[style*="display: none"] {
  display: none !important;
}

.tc-image-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.tc-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.transmission-card:hover .tc-image-wrap img {
  transform: scale(1.05);
}

.tc-tag {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  padding: 3px 8px;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  border-radius: 2px;
  text-transform: uppercase;
}

.tc-content {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}

.tc-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--card-foreground);
  line-height: 1.35;
}

.tc-lead {
  font-size: 0.82rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--border);
}

.tc-meta time {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
}

.tc-category {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Newsletter Block */
.newsletter-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--sp-6);
  position: relative;
}

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

.newsletter-inner {
  padding: var(--sp-6) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

@media (min-width: 768px) {
  .newsletter-inner {
    flex-direction: row;
    align-items: center;
    padding: var(--sp-6) var(--sp-8);
  }
}

.newsletter-text {
  flex: 1;
  min-width: 0;
}

.newsletter-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 4px;
}

.newsletter-text p {
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.newsletter-form {
  display: flex;
  gap: var(--sp-2);
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 180px;
  padding: 10px 14px;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.9rem;
  min-height: 44px;
  transition: border-color var(--transition);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0,212,255,0.15);
}

.newsletter-input::placeholder {
  color: var(--muted-foreground);
}

.newsletter-micro {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  width: 100%;
}

/* Load More */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--sp-5);
}

.load-more-btn {
  gap: var(--sp-2);
}

/* ============================================
   CORE NETWORK
   ============================================ */

.core-network {
  padding: var(--sp-16) 0 var(--sp-10);
  background: var(--muted);
}

[data-theme="dark"] .core-network {
  background: #060608;
}

@media (min-width: 768px) {
  .core-network {
    padding: var(--sp-20) 0 var(--sp-16);
  }
}

/* Network diagram */
.network-diagram {
  display: flex;
  justify-content: center;
  margin-bottom: var(--sp-4);
}

.node-pulse {
  animation: nodePulse 2s ease infinite;
}

.node-pulse-delay {
  animation: nodePulse 2s ease 0.4s infinite;
}

.node-pulse-delay2 {
  animation: nodePulse 2s ease 0.8s infinite;
}

@keyframes nodePulse {
  0%, 100% { opacity: 1; r: 4; }
  50% { opacity: 0.5; r: 6; }
}

/* Mission Statement */
.mission-statement {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-8);
  font-style: normal;
}

.mission-accent {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.mission-statement p {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.01em;
}

/* Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pillar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-5) var(--sp-5);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.pillar-icon {
  width: 56px;
  height: 56px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--card-foreground);
}

.pillar-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

/* Terminology Block */
.terminology-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  margin-bottom: var(--sp-8);
  overflow-x: auto;
}

.terminology-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: var(--sp-4);
}

.terminology-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 280px;
}

.tt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
}

.tt-row:last-child {
  border-bottom: none;
}

.tt-header {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  text-transform: uppercase;
  padding-bottom: var(--sp-2);
}

.tt-row > div {
  font-size: 0.9rem;
  color: var(--card-foreground);
  padding: 4px 0;
}

.tt-rift {
  color: var(--primary) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* SEO Content Block */
.seo-content-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6) var(--sp-5);
  margin-bottom: var(--sp-8);
}

@media (min-width: 768px) {
  .seo-content-block {
    padding: var(--sp-8) var(--sp-10);
  }
}

.seo-main-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: var(--sp-4);
}

.seo-intro {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
}

.seo-intro strong {
  color: var(--foreground);
}

.seo-sub-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-3);
}

.seo-content-block p {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
}

.seo-content-block p strong {
  color: var(--primary);
}

.seo-content-block p em {
  color: var(--foreground);
  font-style: italic;
}

/* Community Block */
.community-block {
  margin-bottom: var(--sp-8);
}

.community-title {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: var(--sp-5);
  text-align: center;
}

.social-gateways {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

@media (min-width: 640px) {
  .social-gateways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .social-gateways {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gateway-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all var(--transition);
}

.gateway-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gateway-card.discord:hover {
  border-color: #5865f2;
  box-shadow: 0 8px 32px rgba(88,101,242,0.2);
}

.gateway-card.youtube:hover {
  border-color: #ff0000;
  box-shadow: 0 8px 32px rgba(255,0,0,0.2);
}

.gateway-card.twitter:hover {
  border-color: #000000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

[data-theme="dark"] .gateway-card.twitter:hover {
  border-color: #e7e9ea;
  box-shadow: 0 8px 32px rgba(255,255,255,0.1);
}

.gateway-card.twitch:hover {
  border-color: #9146ff;
  box-shadow: 0 8px 32px rgba(145,70,255,0.2);
}

.gateway-icon {
  width: 48px;
  height: 48px;
  background: var(--muted);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
}

.gateway-card.discord .gateway-icon { color: #5865f2; }
.gateway-card.youtube .gateway-icon { color: #ff0000; }
.gateway-card.twitter .gateway-icon { color: var(--foreground); }
.gateway-card.twitch .gateway-icon { color: #9146ff; }

.gateway-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.gateway-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--card-foreground);
}

.gateway-desc {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.gateway-cta {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
}

/* Roadmap */
.roadmap-block {
  margin-bottom: var(--sp-10);
}

.roadmap-title {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: var(--sp-6);
}

.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: var(--sp-6);
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

.roadmap-item {
  display: flex;
  gap: var(--sp-4);
  position: relative;
  padding-bottom: var(--sp-5);
}

.roadmap-marker {
  position: absolute;
  left: -22px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.roadmap-item:nth-child(2) .roadmap-marker { border-color: var(--accent); }
.roadmap-item:nth-child(3) .roadmap-marker { border-color: var(--purple); }
.roadmap-item:nth-child(4) .roadmap-marker { border-color: var(--border); }
.roadmap-item:nth-child(5) .roadmap-marker { border-color: var(--border); }

.roadmap-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
  flex: 1;
  min-width: 0;
}

.roadmap-status {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 2px;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.status-active {
  background: rgba(0,212,255,0.15);
  color: var(--cyan);
  border: 1px solid rgba(0,212,255,0.3);
}

.status-soon {
  background: rgba(249,115,22,0.15);
  color: var(--orange);
  border: 1px solid rgba(249,115,22,0.3);
}

.status-planned {
  background: rgba(138,155,181,0.15);
  color: var(--muted-foreground);
  border: 1px solid rgba(138,155,181,0.2);
}

.roadmap-content h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--card-foreground);
  margin-bottom: var(--sp-2);
}

.roadmap-content p {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Final CTA Banner */
.final-cta-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-align: center;
  padding: var(--sp-12) var(--sp-5);
}

@media (min-width: 768px) {
  .final-cta-banner {
    padding: var(--sp-16) var(--sp-10);
  }
}

.fct-bg {
  position: absolute;
  inset: 0;
}

.fct-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fct-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
}

.fct-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

.fct-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 40%, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fct-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(255,255,255,0.7);
  max-width: 400px;
}

.fct-buttons {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  justify-content: center;
}

.fct-btn {
  padding: 14px 28px;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  padding: var(--sp-10) 0 var(--sp-6);
}

/* Footer grid animation background */
.footer-grid-anim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

.footer-top-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--sp-6);
  }
}

/* Footer Brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.footer-logo-text span {
  color: var(--primary);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulseDot 2s ease infinite;
  flex-shrink: 0;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.footer-slogan {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--primary);
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* Footer Columns */
.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
  text-transform: uppercase;
  padding: var(--sp-2) 0;
  margin-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
  cursor: default;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  text-align: left;
  width: 100%;
}

.footer-col nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color var(--transition);
  min-height: 44px;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-legal-micro {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-top: var(--sp-3);
  opacity: 0.7;
}

/* Footer Social Gateways */
.footer-social-gateways {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-gateway {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 10px 12px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--muted-foreground);
  font-size: 0.8rem;
  transition: all var(--transition);
  min-height: 44px;
}

.footer-gateway:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.footer-gateway.discord-gw:hover { color: #5865f2; border-color: #5865f2; }
.footer-gateway.youtube-gw:hover { color: #ff0000; border-color: #ff0000; }
.footer-gateway.twitch-gw:hover { color: #9146ff; border-color: #9146ff; }

.footer-gateway svg {
  flex-shrink: 0;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3) var(--sp-5);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
  text-align: center;
}

@media (min-width: 1024px) {
  .footer-bottom {
    justify-content: space-between;
  }
}

.footer-copyright,
.footer-brand-sign,
.footer-made-with {
  font-size: 0.78rem;
  color: var(--muted-foreground);
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

.footer-legal-inline {
  display: flex;
  gap: var(--sp-4);
}

.footer-legal-link {
  font-size: 0.78rem;
  color: var(--muted-foreground);
  text-decoration: none;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  transition: color var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-legal-link:hover {
  color: var(--primary);
}

/* ============================================
   SECTION PADDING - shared
   ============================================ */

.sector-library,
.system-archives,
.transmission-feed,
.core-network {
  padding-top: calc(var(--sp-16) + var(--sp-4));
}

@media (min-width: 768px) {
  .sector-library,
  .system-archives,
  .transmission-feed,
  .core-network {
    padding-top: calc(var(--sp-20) + var(--sp-4));
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 8px 16px;
  z-index: 9999;
  font-family: var(--font-heading);
  font-size: 0.8rem;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   REDUCED MOTION
   ============================================ */

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

  .trending-track {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   LIGHT THEME ADJUSTMENTS
   ============================================ */

:root .hero-h1,
:root .hero-subtitle,
:root .hero-glass-panel {
  --primary: #0891b2;
}

:root .game-card {
  box-shadow: var(--shadow-sm);
}

:root .transmission-card {
  box-shadow: var(--shadow-sm);
}

:root .archive-panel::after {
  background: linear-gradient(
    90deg,
    rgba(240,244,248,0.92) 0%,
    rgba(240,244,248,0.6) 60%,
    rgba(240,244,248,0.2) 100%
  );
}

:root .archive-title {
  color: var(--foreground);
}

:root .archive-editorial {
  color: var(--muted-foreground);
}

:root .atm-tag {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.12);
  color: var(--foreground);
}

:root .archive-mini-card span {
  color: var(--muted-foreground);
}

:root .archive-related-btn {
  color: var(--foreground);
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.12);
}

:root .archive-connected > span {
  color: var(--muted-foreground);
}

:root .footer-grid-anim {
  background-image:
    linear-gradient(rgba(8,145,178,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,145,178,0.05) 1px, transparent 1px);
}

/* ============================================
   SCROLLBAR CUSTOMIZATION
   ============================================ */

[data-theme="dark"] {
  scrollbar-color: var(--border) var(--background);
  scrollbar-width: thin;
}

[data-theme="dark"]::-webkit-scrollbar {
  width: 8px;
}

[data-theme="dark"]::-webkit-scrollbar-track {
  background: var(--background);
}

[data-theme="dark"]::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}