@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/pressstart2p-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/pressstart2p-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg-0: #05050d;
  --bg-1: #0b0d24;
  --bg-2: #131638;
  --surface: rgba(20, 22, 50, 0.7);
  --surface-2: rgba(28, 30, 65, 0.85);
  --border: rgba(120, 130, 220, 0.18);
  --border-strong: rgba(140, 150, 240, 0.35);
  --text: #e8eaf5;
  --text-dim: #b3b7d4;
  --text-muted: #8a8fb0;
  --primary: #a23bff;
  --primary-2: #6a35ff;
  --accent: #38e1ff;
  --accent-2: #7af0ff;
  --warn: #ffd54a;
  --success: #4ade80;
  --danger: #ff4d6d;
  --discord: #5865f2;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-glow: 0 0 40px rgba(162, 59, 255, 0.35);
  --shadow-deep: 0 25px 60px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id],
.section { scroll-margin-top: 100px; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at 20% 10%, rgba(120, 60, 220, 0.25), transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(56, 225, 255, 0.18), transparent 50%),
    radial-gradient(ellipse at 60% 90%, rgba(255, 80, 200, 0.15), transparent 55%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 60%, var(--bg-0) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 25% 15%, #fff, transparent),
    radial-gradient(1px 1px at 75% 35%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 45% 65%, #cfeaff, transparent),
    radial-gradient(1px 1px at 85% 80%, #fff, transparent),
    radial-gradient(1px 1px at 10% 50%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 60% 20%, #ffd6f5, transparent),
    radial-gradient(1px 1px at 35% 90%, #fff, transparent),
    radial-gradient(1px 1px at 95% 55%, #fff, transparent);
  background-size: 600px 600px;
  animation: starShift 120s linear infinite;
  opacity: 0.7;
}
.stars-2 {
  background-size: 900px 900px;
  animation-duration: 200s;
  opacity: 0.5;
  filter: blur(0.3px);
}
.stars-3 {
  background-image:
    radial-gradient(1.5px 1.5px at 30% 25%, #ffe8b3, transparent),
    radial-gradient(1.2px 1.2px at 70% 75%, #b3e0ff, transparent),
    radial-gradient(1.8px 1.8px at 90% 10%, #fff, transparent);
  background-size: 1200px 1200px;
  animation-duration: 280s;
  opacity: 0.35;
}
@keyframes starShift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-600px, -300px, 0); }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(162, 59, 255, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, rgba(15, 12, 42, 0.82) 0%, rgba(7, 9, 25, 0.78) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.navbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(56, 225, 255, 0.5) 22%,
    rgba(162, 59, 255, 0.85) 50%,
    rgba(56, 225, 255, 0.5) 78%,
    transparent 100%);
  background-size: 200% 100%;
  animation: cosmicSeam 10s linear infinite;
  pointer-events: none;
}
@keyframes cosmicSeam {
  from { background-position: 0% 0%; }
  to   { background-position: 200% 0%; }
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-brand:hover { transform: translateY(-1px); }
.nav-brand:hover .brand-logo {
  transform: scale(1.06) rotate(-4deg);
  filter:
    drop-shadow(0 6px 18px rgba(162, 59, 255, 0.65))
    drop-shadow(0 0 24px rgba(56, 225, 255, 0.35));
}
.brand-logo {
  display: block;
  height: 48px;
  width: auto;
  filter:
    drop-shadow(0 4px 14px rgba(162, 59, 255, 0.45))
    drop-shadow(0 0 18px rgba(56, 225, 255, 0.18));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}
.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  line-height: 1;
  user-select: none;
}
.brand-name {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  background: linear-gradient(135deg, #f3d4ff 0%, #d2a3ff 28%, #a23bff 62%, #6a35ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 0 14px rgba(162, 59, 255, 0.5))
    drop-shadow(0 2px 6px rgba(106, 31, 187, 0.4));
}
.brand-tld {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.6em;
  letter-spacing: 1.2px;
  line-height: 1;
  padding: 5px 7px;
  border-radius: 6px;
  color: #f3e0ff;
  background:
    linear-gradient(180deg, rgba(162, 59, 255, 0.28), rgba(106, 53, 255, 0.22));
  border: 1px solid rgba(190, 130, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 6px 18px rgba(106, 31, 187, 0.35);
  text-shadow: 0 0 12px rgba(214, 168, 255, 0.55);
}
.nav-brand:hover .brand-tld {
  border-color: rgba(214, 168, 255, 0.65);
  background: linear-gradient(180deg, rgba(162, 59, 255, 0.38), rgba(106, 53, 255, 0.3));
}

.nav-links {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 5px;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(162, 59, 255, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(56, 225, 255, 0.06),
    0 6px 22px rgba(0, 0, 0, 0.25);
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 10px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
  text-decoration: none;
  overflow: hidden;
  transition: color 0.25s ease, transform 0.2s ease;
}
.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(56, 225, 255, 0.14), rgba(162, 59, 255, 0.18));
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}
.nav-link:hover {
  color: #fff;
  transform: translateY(-1px);
}
.nav-link:hover::before { opacity: 1; }
.nav-link.active {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(162, 59, 255, 0.32) 0%, rgba(106, 53, 255, 0.2) 55%, rgba(56, 225, 255, 0.16) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(214, 168, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 22px rgba(162, 59, 255, 0.32),
    0 0 44px rgba(56, 225, 255, 0.12);
  text-shadow: 0 0 14px rgba(214, 168, 255, 0.6);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  box-shadow: 0 0 8px rgba(56, 225, 255, 0.7), 0 0 14px rgba(162, 59, 255, 0.5);
  transform: translateX(-50%);
  animation: activeUnderline 2.6s ease-in-out infinite;
}
@keyframes activeUnderline {
  0%, 100% { width: 16px; opacity: 0.85; }
  50%      { width: 28px; opacity: 1; }
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 22px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  color: #fff;
  text-decoration: none;
  background:
    linear-gradient(135deg, #b94dff 0%, #7a3bff 55%, #38e1ff 180%);
  border: 1px solid rgba(214, 168, 255, 0.4);
  box-shadow:
    0 10px 28px rgba(106, 53, 255, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, filter 0.2s ease;
  cursor: pointer;
}
.btn-nav-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.btn-nav-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  color: #fff;
  box-shadow:
    0 14px 34px rgba(162, 59, 255, 0.6),
    0 0 28px rgba(56, 225, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-nav-cta:hover::before { left: 140%; }
.btn-nav-cta:active { transform: translateY(0); }
.btn-nav-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  font-size: 0.55rem;
  padding-left: 2px;
}

.hero {
  position: relative;
  z-index: 1;
  padding: 16px 24px 16px;
}
.hero-card {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding: 100px 56px 80px;
  min-height: calc(100vh - 110px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 55% 70% at 50% 55%, rgba(6, 8, 28, 0.96) 0%, rgba(6, 8, 28, 0.88) 30%, rgba(6, 8, 28, 0.55) 65%, rgba(6, 8, 28, 0.15) 100%),
    linear-gradient(180deg, rgba(6, 8, 28, 0.55) 0%, transparent 18%, transparent 75%, rgba(6, 8, 28, 0.9) 100%),
    url('hero.jpg') center 35% / cover no-repeat,
    linear-gradient(135deg, rgba(18, 20, 55, 0.9), rgba(6, 8, 28, 0.9));
  border: 1px solid var(--border-strong);
  box-shadow:
    var(--shadow-deep),
    0 0 80px rgba(56, 225, 255, 0.18),
    0 0 140px rgba(162, 59, 255, 0.22);
  overflow: hidden;
  position: relative;
}
.hero-card::before,
.hero-card::after { display: none; }

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: screen;
  z-index: 0;
  animation: orbFloat 12s ease-in-out infinite;
}
.hero-orb-1 {
  width: 380px; height: 380px;
  top: -120px; left: -100px;
  background: radial-gradient(circle, #a23bff, transparent 70%);
}
.hero-orb-2 {
  width: 320px; height: 320px;
  bottom: -100px; right: -80px;
  background: radial-gradient(circle, #38e1ff, transparent 70%);
  animation-delay: -4s;
  animation-duration: 14s;
}
.hero-orb-3 {
  width: 240px; height: 240px;
  top: 30%; right: 20%;
  background: radial-gradient(circle, #ff8c2b, transparent 70%);
  opacity: 0.35;
  animation-delay: -7s;
  animation-duration: 16s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 25px) scale(0.97); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 150, 240, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 150, 240, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.hero-logo {
  display: block;
  width: clamp(140px, 18vw, 200px);
  height: auto;
  margin-bottom: 4px;
  filter:
    drop-shadow(0 10px 30px rgba(162, 59, 255, 0.55))
    drop-shadow(0 4px 14px rgba(56, 225, 255, 0.25));
  animation: heroLogoFloat 6s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
}
@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-kicker {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.55rem, 1vw, 0.75rem);
  letter-spacing: 5px;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 1;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 2px 10px rgba(6, 8, 28, 1),
    0 0 22px rgba(6, 8, 28, 0.9),
    0 0 28px rgba(56, 225, 255, 0.45);
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-top: 14px;
  padding: 18px 32px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(12, 14, 36, 0.65), rgba(8, 10, 28, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 1;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 90px;
  position: relative;
}
.hero-stat-led { display: none; }
.hero-stat-value {
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  background: linear-gradient(135deg, #e0b9ff 0%, #a23bff 55%, #6a35ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}
.hero-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.hero-stat-sep {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.hero-scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #e0b9ff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  opacity: 1;
  text-shadow: 0 0 12px rgba(162, 59, 255, 0.7), 0 0 24px rgba(162, 59, 255, 0.4);
  filter: drop-shadow(0 0 8px rgba(162, 59, 255, 0.55));
  transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease, filter 0.2s ease;
  z-index: 2;
}
.hero-scroll:hover {
  color: #f3d4ff;
  transform: translate(-50%, -2px);
  text-shadow: 0 0 16px rgba(214, 168, 255, 0.9), 0 0 32px rgba(162, 59, 255, 0.6);
  filter: drop-shadow(0 0 12px rgba(214, 168, 255, 0.75));
}
.hero-scroll-mouse {
  position: relative;
  width: 22px;
  height: 34px;
  border: 1.5px solid currentColor;
  border-radius: 12px;
  display: inline-block;
}
.hero-scroll-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: currentColor;
  border-radius: 2px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  60% { transform: translate(-50%, 10px); opacity: 0; }
  61% { transform: translate(-50%, 0); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.hero-content h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero-content h1 .highlight {
  background: linear-gradient(135deg, #ffffff 0%, #f3d4ff 25%, #d2a3ff 50%, #b667ff 75%, #8a3bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.95))
    drop-shadow(0 4px 18px rgba(0, 0, 0, 0.85))
    drop-shadow(0 8px 36px rgba(162, 59, 255, 0.75));
}
.hero-content p {
  font-size: 1.15rem;
  color: #f0f2ff;
  font-weight: 500;
  max-width: 640px;
  margin: 0;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 2px 12px rgba(6, 8, 28, 1),
    0 0 24px rgba(6, 8, 28, 0.85);
}
.hero-content h1 { align-items: center; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 0.85em;
}
.btn .btn-icon { margin-right: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-primary {
  background: linear-gradient(135deg, #fff 0%, #e6e6f0 100%);
  color: #14163a;
  box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255,255,255,0.25); }
.btn-secondary {
  background: linear-gradient(135deg, #1f2350 0%, #14163a 100%);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.btn-secondary:hover { transform: translateY(-2px); background: linear-gradient(135deg, #2a2f6a 0%, #1a1d4a 100%); color: var(--text); }

.btn-discord {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #1c1f3f 0%, #14163a 60%, #1a1d4a 100%);
  border: 1px solid rgba(88, 101, 242, 0.45);
  box-shadow:
    0 8px 22px rgba(88, 101, 242, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.25s ease;
}
.btn-discord::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 20% 50%, rgba(88, 101, 242, 0.35), transparent 60%);
  opacity: 0.7;
  transition: opacity 0.25s ease;
}
.btn-discord:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: rgba(140, 150, 255, 0.75);
  background: linear-gradient(135deg, #2a2f6a 0%, #5865f2 100%);
  box-shadow:
    0 14px 32px rgba(88, 101, 242, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-discord:hover::before { opacity: 0; }
.btn-discord-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: #b3bcff;
  filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.55));
  transition: color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}
.btn-discord:hover .btn-discord-icon {
  color: #fff;
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
}

.section {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 110px 28px;
}
main .section::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 50%;
  width: min(420px, 78%);
  height: 30px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 4% 50%,  rgba(180, 190, 240, 0.45) 99%, transparent 100%),
    radial-gradient(1px 1px at 14% 30%,    rgba(180, 190, 240, 0.32) 99%, transparent 100%),
    radial-gradient(1px 1px at 22% 70%,    rgba(180, 190, 240, 0.38) 99%, transparent 100%),
    radial-gradient(1.5px 1.5px at 30% 50%, rgba(180, 190, 240, 0.42) 99%, transparent 100%),
    radial-gradient(1px 1px at 38% 32%,    rgba(180, 190, 240, 0.28) 99%, transparent 100%),
    radial-gradient(1px 1px at 62% 68%,    rgba(180, 190, 240, 0.28) 99%, transparent 100%),
    radial-gradient(1.5px 1.5px at 70% 50%, rgba(180, 190, 240, 0.42) 99%, transparent 100%),
    radial-gradient(1px 1px at 78% 70%,    rgba(180, 190, 240, 0.38) 99%, transparent 100%),
    radial-gradient(1px 1px at 86% 30%,    rgba(180, 190, 240, 0.32) 99%, transparent 100%),
    radial-gradient(1.5px 1.5px at 96% 50%, rgba(180, 190, 240, 0.45) 99%, transparent 100%);
  z-index: 0;
}
main .section::after {
  content: "";
  position: absolute;
  top: 43px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
  box-shadow:
    0 0 10px var(--accent),
    0 0 22px rgba(56, 225, 255, 0.55),
    -26px 0 0 -1px var(--primary),
    -26px 0 10px -2px rgba(162, 59, 255, 0.55),
    26px 0 0 -1px var(--primary),
    26px 0 10px -2px rgba(162, 59, 255, 0.55);
  animation: section-constellation 3s ease-in-out infinite;
  z-index: 0;
}
@keyframes section-constellation {
  0%, 100% { opacity: 1;    transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.55; transform: translateX(-50%) scale(0.82); }
}
.section-header {
  text-align: center;
  margin-bottom: 32px;
}
.eyebrow {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 14px;
  padding: 6px 14px;
  border: 1px solid rgba(56, 225, 255, 0.3);
  border-radius: 999px;
  background: rgba(56, 225, 255, 0.08);
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================================
   STELLAR MODULES — HUD Bento Grid
   ============================================================ */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(186px, auto);
  gap: 16px;
  position: relative;
}
.module-card {
  --card-c: 280 90% 65%;
  --c: hsl(var(--card-c));
  --c-soft: hsl(var(--card-c) / 0.18);
  --c-faint: hsl(var(--card-c) / 0.06);
  position: relative;
  padding: 22px 22px 18px;
  background:
    linear-gradient(180deg, var(--c-faint), transparent 55%),
    linear-gradient(180deg, rgba(14, 16, 38, 0.92), rgba(8, 10, 26, 0.92));
  border: 1px solid hsl(var(--card-c) / 0.22);
  border-radius: 4px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.35s cubic-bezier(.2,.7,.2,1),
    border-color 0.3s ease,
    box-shadow 0.35s ease;
}
.module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.028) 0,
    rgba(255, 255, 255, 0.028) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 1;
}
.module-card::after {
  content: "";
  position: absolute;
  left: 0; top: 12%; bottom: 12%;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--c) 30%, var(--c) 70%, transparent);
  opacity: 0.55;
  transition: opacity 0.3s ease, width 0.3s ease;
  z-index: 2;
}
.module-card:hover {
  transform: translateY(-3px);
  border-color: hsl(var(--card-c) / 0.55);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.45),
    0 0 0 1px hsl(var(--card-c) / 0.25),
    0 0 50px hsl(var(--card-c) / 0.22);
}
.module-card:hover::after { opacity: 1; width: 4px; }

.module-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 3;
  pointer-events: none;
  transition: width 0.3s ease, height 0.3s ease;
}
.module-corner::before,
.module-corner::after {
  content: "";
  position: absolute;
  background: var(--c);
}
.module-corner--tl { top: 7px; left: 7px; }
.module-corner--tl::before { top: 0; left: 0; width: 100%; height: 2px; }
.module-corner--tl::after  { top: 0; left: 0; width: 2px; height: 100%; }
.module-corner--tr { top: 7px; right: 7px; }
.module-corner--tr::before { top: 0; right: 0; width: 100%; height: 2px; }
.module-corner--tr::after  { top: 0; right: 0; width: 2px; height: 100%; }
.module-corner--bl { bottom: 7px; left: 7px; }
.module-corner--bl::before { bottom: 0; left: 0; width: 100%; height: 2px; }
.module-corner--bl::after  { bottom: 0; left: 0; width: 2px; height: 100%; }
.module-corner--br { bottom: 7px; right: 7px; }
.module-corner--br::before { bottom: 0; right: 0; width: 100%; height: 2px; }
.module-corner--br::after  { bottom: 0; right: 0; width: 2px; height: 100%; }
.module-card:hover .module-corner { width: 22px; height: 22px; }

.module-meta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 4px 12px 4px 6px;
}
.module-code {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  letter-spacing: 1.5px;
  color: var(--c);
  text-shadow: 0 0 8px hsl(var(--card-c) / 0.55);
}
.module-coord {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.42rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
}
.module-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px var(--c), 0 0 16px hsl(var(--card-c) / 0.5);
  margin-left: auto;
  flex-shrink: 0;
  animation: module-led-pulse 1.6s ease-in-out infinite;
}
@keyframes module-led-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.82); }
}

.module-visual {
  position: relative;
  z-index: 2;
  height: 110px;
  margin: 4px 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.module-card--featured .module-visual {
  flex: 1;
  height: auto;
  min-height: 260px;
  margin: 12px 0 22px;
  align-self: stretch;
}

.module-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.module-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  letter-spacing: 2px;
  color: var(--c);
  text-transform: uppercase;
  align-self: flex-start;
  padding: 5px 8px 4px;
  border: 1px solid hsl(var(--card-c) / 0.4);
  background: hsl(var(--card-c) / 0.08);
  border-radius: 2px;
}
.module-title {
  margin: 2px 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text);
  line-height: 1.15;
}
.module-card--featured .module-title { font-size: 1.85rem; }
.module-desc {
  margin: 2px 0 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.55;
}

.module-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed hsl(var(--card-c) / 0.28);
}
.module-status {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  letter-spacing: 1.5px;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 6px;
}
.module-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: module-led-pulse 1.6s ease-in-out infinite;
}
.module-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid hsl(var(--card-c) / 0.22);
  position: relative;
  overflow: hidden;
}
.module-bar span {
  display: block;
  width: 72%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--c));
  animation: module-bar-shift 3s ease-in-out infinite;
}
@keyframes module-bar-shift {
  0%, 100% { transform: translateX(-6%); }
  50%      { transform: translateX(6%); }
}

.module-card--featured { grid-column: span 2; grid-row: span 2; }
.module-card--wide     { grid-column: span 4; }
.module-card--wide .module-wide-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: center;
}
.module-card--wide .module-visual { height: 130px; margin: 0; }
.module-card--wide .module-body   { margin-top: 0; }

/* --- K-01 ORBIT --- */
.visual-orbit {
  perspective: 1000px;
  transform-style: preserve-3d;
  width: 100%;
  height: 100%;
}
.visual-orbit::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%,
      hsl(var(--card-c) / 0.32) 0%,
      hsl(var(--card-c) / 0.18) 18%,
      hsl(var(--card-c) / 0.08) 38%,
      hsl(var(--card-c) / 0.03) 60%,
      transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.visual-orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1.5px 1.5px at 7% 14%, #fff 99%, transparent 100%),
    radial-gradient(1px 1px at 22% 8%, rgba(255,255,255,0.7) 99%, transparent 100%),
    radial-gradient(1px 1px at 14% 78%, rgba(255,255,255,0.7) 99%, transparent 100%),
    radial-gradient(1.5px 1.5px at 92% 12%, rgba(255,255,255,0.85) 99%, transparent 100%),
    radial-gradient(1px 1px at 4% 48%, rgba(255,255,255,0.6) 99%, transparent 100%),
    radial-gradient(1px 1px at 86% 88%, rgba(255,255,255,0.55) 99%, transparent 100%),
    radial-gradient(1px 1px at 96% 42%, rgba(255,255,255,0.6) 99%, transparent 100%),
    radial-gradient(1.2px 1.2px at 32% 92%, rgba(255,255,255,0.7) 99%, transparent 100%),
    radial-gradient(1px 1px at 56% 6%, rgba(255,255,255,0.55) 99%, transparent 100%),
    radial-gradient(1px 1px at 64% 96%, rgba(255,255,255,0.55) 99%, transparent 100%),
    radial-gradient(1px 1px at 76% 56%, rgba(255,255,255,0.5) 99%, transparent 100%),
    radial-gradient(1px 1px at 46% 38%, rgba(255,255,255,0.4) 99%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.orbit-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) rotateX(70deg);
}
.orbit-ring--1 {
  width: 300px; height: 300px;
  border: 1.5px solid hsl(var(--card-c) / 0.32);
  border-top-color: hsl(var(--card-c) / 0.95);
  border-right-color: hsl(var(--card-c) / 0.55);
  border-left-color: hsl(var(--card-c) / 0.55);
  box-shadow:
    0 0 14px hsl(var(--card-c) / 0.35),
    inset 0 0 16px hsl(var(--card-c) / 0.12);
  animation: orbit-spin 24s linear infinite;
}
.orbit-ring--2 {
  width: 200px; height: 200px;
  border: 1.5px solid hsl(var(--card-c) / 0.22);
  border-top-color: hsl(var(--card-c) / 0.75);
  border-right-color: hsl(var(--card-c) / 0.4);
  border-left-color: hsl(var(--card-c) / 0.4);
  animation: orbit-spin 15s linear infinite reverse;
}
@keyframes orbit-spin {
  from { transform: translate(-50%, -50%) rotateX(70deg) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotateX(70deg) rotate(360deg); }
}
.orbit-planet {
  position: absolute;
  top: 50%; left: 50%;
  width: 108px; height: 108px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background:
    radial-gradient(circle at 28% 24%, rgba(255,255,255,0.95) 0 4%, transparent 5%),
    radial-gradient(circle at 30% 26%, rgba(255,255,255,0.55) 0 8%, transparent 9%),
    radial-gradient(circle at 25% 22%, hsl(var(--card-c) / 1) 0 32%, transparent 33%),
    radial-gradient(circle at 72% 70%, hsl(var(--card-c) / 0.18) 0 30%, transparent 32%),
    radial-gradient(circle at 50% 50%, hsl(var(--card-c)), hsl(var(--card-c) / 0.28));
  box-shadow:
    inset -10px -12px 24px rgba(0,0,0,0.55),
    inset 8px 8px 18px hsl(var(--card-c) / 0.4),
    0 0 36px hsl(var(--card-c) / 0.6),
    0 0 80px hsl(var(--card-c) / 0.3);
}
.orbit-planet::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 58%, hsl(var(--card-c) / 0.7) 76%, transparent 92%);
  pointer-events: none;
}
.orbit-orbiter {
  position: absolute;
  top: 50%; left: 50%;
  width: 300px; height: 300px;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%) rotateX(70deg);
  transform-style: preserve-3d;
  animation: orbit-revolve 10s linear infinite;
}
.orbit-orbiter--2 {
  width: 200px; height: 200px;
  animation: orbit-revolve 6.2s linear infinite reverse;
}
@keyframes orbit-revolve {
  from { transform: translate(-50%, -50%) rotateX(70deg) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotateX(70deg) rotate(360deg); }
}
.orbit-orbiter::before {
  content: "";
  position: absolute;
  top: -7px; left: 50%;
  width: 13px; height: 13px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.85) 0 26%, transparent 28%),
    radial-gradient(circle, hsl(var(--card-c)), hsl(var(--card-c) / 0.5));
  box-shadow:
    0 0 14px var(--c),
    0 0 30px hsl(var(--card-c) / 0.75);
  transform: translateX(-50%) rotateX(-70deg);
}
.orbit-orbiter--2::before {
  width: 10px; height: 10px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.85) 0 26%, transparent 28%),
    radial-gradient(circle, var(--accent), rgba(56,225,255,0.5));
  box-shadow:
    0 0 12px var(--accent),
    0 0 24px rgba(56,225,255,0.65);
}
.orbit-star {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 4px #fff, 0 0 8px rgba(255,255,255,0.4);
  animation: orbit-star-twinkle 3.2s ease-in-out infinite;
  z-index: 1;
}
.orbit-star--1 { top: 14%;  left: 8%;   animation-delay: 0s;   }
.orbit-star--2 { top: 76%;  left: 14%;  animation-delay: 0.7s; }
.orbit-star--3 { top: 22%;  right: 10%; animation-delay: 1.3s; }
.orbit-star--4 { bottom: 18%; right: 16%; animation-delay: 2.0s; }
.orbit-star--5 { top: 8%;   left: 38%;  animation-delay: 0.4s; width: 1px; height: 1px; }
.orbit-star--6 { top: 30%;  right: 32%; animation-delay: 2.6s; width: 3px; height: 3px; }
.orbit-star--7 { bottom: 30%; left: 30%; animation-delay: 1.6s; }
.orbit-star--8 { bottom: 8%; right: 44%; animation-delay: 1.0s; width: 1px; height: 1px; }
@keyframes orbit-star-twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.15; transform: scale(0.55); }
}

/* --- K-02 WORLDS --- */
.visual-worlds { gap: 16px; }
.worlds-link {
  position: absolute;
  top: 50%; left: 18%; right: 18%;
  height: 0;
  border-top: 1px dashed hsl(var(--card-c) / 0.45);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}
.world {
  position: relative;
  z-index: 2;
  border-radius: 50%;
  animation: world-bob 4s ease-in-out infinite;
}
.world--1 {
  width: 30px; height: 30px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.55) 0 18%, transparent 19%),
    linear-gradient(135deg, hsl(var(--card-c)), hsl(var(--card-c) / 0.4));
  box-shadow: 0 0 14px hsl(var(--card-c) / 0.4), inset -4px -4px 8px rgba(0,0,0,0.3);
}
.world--2 {
  width: 52px; height: 52px;
  background:
    radial-gradient(circle at 28% 26%, rgba(255,255,255,0.6) 0 14%, transparent 15%),
    radial-gradient(circle at 70% 60%, hsl(var(--card-c) / 0.4) 0 26%, transparent 27%),
    linear-gradient(135deg, hsl(var(--card-c) / 0.95), hsl(var(--card-c) / 0.5));
  box-shadow: 0 0 22px hsl(var(--card-c) / 0.45), inset -6px -6px 12px rgba(0,0,0,0.4);
  animation-delay: 0.5s;
}
.world--3 {
  width: 22px; height: 22px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.55) 0 22%, transparent 23%),
    linear-gradient(135deg, hsl(var(--card-c) / 0.85), hsl(var(--card-c) / 0.35));
  box-shadow: 0 0 12px hsl(var(--card-c) / 0.35), inset -3px -3px 6px rgba(0,0,0,0.3);
  animation-delay: 1s;
}
@keyframes world-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* --- K-03 QUEST --- */
.visual-quest { padding: 0 10px; }
.quest-doc {
  position: relative;
  width: 116px;
  padding: 14px 12px 14px 14px;
  background: linear-gradient(180deg, hsl(var(--card-c) / 0.18), hsl(var(--card-c) / 0.06));
  border: 1px solid hsl(var(--card-c) / 0.45);
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 4px 4px 0 hsl(var(--card-c) / 0.18);
  animation: quest-float 4s ease-in-out infinite;
}
@keyframes quest-float {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(-1.5deg) translateY(-4px); }
}
.quest-line {
  display: block;
  height: 4px;
  background: linear-gradient(90deg, hsl(var(--card-c)) 0%, hsl(var(--card-c) / 0.3) 80%, transparent 100%);
}
.quest-line--1 { width: 92%; }
.quest-line--2 { width: 68%; }
.quest-line--3 { width: 82%; }
.quest-line--4 { width: 54%; }
.quest-stamp {
  position: absolute;
  right: -14px; top: -12px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--c);
  background: rgba(8, 10, 26, 0.95);
  border: 2px solid var(--c);
  padding: 7px 7px 5px;
  border-radius: 50%;
  transform: rotate(15deg);
  letter-spacing: 1px;
  text-shadow: 0 0 6px hsl(var(--card-c) / 0.7);
}

/* --- K-04 TRADE / EMERALDS --- */
.visual-trade {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.emerald-gem {
  display: block;
  filter: drop-shadow(0 6px 12px hsl(var(--card-c) / 0.55));
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  shape-rendering: crispEdges;
}
.emerald-gem--1 {
  width: 40px;
  z-index: 2;
  margin-right: -10px;
  animation: emerald-bob-l 4s ease-in-out infinite;
}
.emerald-gem--2 {
  width: 60px;
  z-index: 3;
  animation: emerald-bob 3.6s ease-in-out infinite 0.3s;
}
.emerald-gem--3 {
  width: 40px;
  z-index: 2;
  margin-left: -10px;
  animation: emerald-bob-r 4s ease-in-out infinite 0.6s;
}
@keyframes emerald-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
@keyframes emerald-bob-l {
  0%, 100% { transform: translateY(8px) rotate(-12deg); }
  50%      { transform: translateY(2px) rotate(-9deg); }
}
@keyframes emerald-bob-r {
  0%, 100% { transform: translateY(8px) rotate(12deg); }
  50%      { transform: translateY(2px) rotate(9deg); }
}
.emerald-spark {
  position: absolute;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: hsl(var(--card-c));
  text-shadow: 0 0 8px hsl(var(--card-c) / 0.9);
  pointer-events: none;
  animation: emerald-spark-twinkle 2.4s ease-in-out infinite;
  z-index: 4;
}
.emerald-spark--1 { top: 14%; left: 22%; }
.emerald-spark--2 { top: 22%; right: 18%; animation-delay: 0.9s; }
.emerald-spark--3 { bottom: 18%; left: 50%; animation-delay: 1.6s; font-size: 0.5rem; }
@keyframes emerald-spark-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  50%      { opacity: 1; transform: scale(1.1); }
}

/* --- K-05 GEM --- */
.visual-gem { position: relative; }
.gem {
  position: relative;
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 0 14px hsl(var(--card-c) / 0.55));
  animation: gem-spin 5s ease-in-out infinite;
}
.gem-face { position: absolute; inset: 0; }
.gem-face--top {
  clip-path: polygon(50% 0%, 22% 32%, 78% 32%);
  background: linear-gradient(180deg, #fff, hsl(var(--card-c)));
}
.gem-face--left {
  clip-path: polygon(22% 32%, 50% 100%, 50% 32%);
  background: linear-gradient(180deg, hsl(var(--card-c)), hsl(var(--card-c) / 0.35));
}
.gem-face--right {
  clip-path: polygon(50% 32%, 50% 100%, 78% 32%);
  background: linear-gradient(180deg, hsl(var(--card-c) / 0.75), hsl(var(--card-c) / 0.2));
}
@keyframes gem-spin {
  0%, 100% { transform: rotateY(0deg); }
  50%      { transform: rotateY(180deg); }
}
.gem-spark {
  position: absolute;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: var(--c);
  text-shadow: 0 0 6px hsl(var(--card-c) / 0.8);
  animation: gem-spark-twinkle 2.4s ease-in-out infinite;
  pointer-events: none;
}
.gem-spark--1 { top: 12%;  left: 18%;  animation-delay: 0s; }
.gem-spark--2 { top: 22%;  right: 14%; animation-delay: 0.7s; }
.gem-spark--3 { bottom: 16%; right: 22%; animation-delay: 1.4s; }
@keyframes gem-spark-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50%      { opacity: 1; transform: scale(1); }
}

/* --- K-06 NETWORK (wide) --- */
.visual-network {
  width: 100%;
  height: 100%;
  position: relative;
}
.net-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: hsl(var(--card-c) / 0.5);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  fill: none;
  z-index: 1;
}
.net-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 10px var(--c), 0 0 20px hsl(var(--card-c) / 0.55);
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: net-pulse 2.4s ease-in-out infinite;
}
.net-node--1 { left: 7.5%;  top: 50%; animation-delay: 0s; }
.net-node--2 { left: 25%;   top: 20%; animation-delay: 0.3s; }
.net-node--3 { left: 50%;   top: 50%; width: 14px; height: 14px; animation-delay: 0.6s; }
.net-node--4 { left: 50%;   top: 80%; animation-delay: 0.9s; }
.net-node--5 { left: 75%;   top: 20%; animation-delay: 1.2s; }
.net-node--6 { left: 92.5%; top: 50%; animation-delay: 1.5s; }
@keyframes net-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
  50%      { transform: translate(-50%, -50%) scale(0.7); opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .gem {
    animation: none !important;
  }
}

.section-join { padding-top: 70px; padding-bottom: 70px; }
.join-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(20, 22, 60, 0.85), rgba(10, 12, 35, 0.85));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-deep);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.join-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(162, 59, 255, 0.6), transparent 40%, rgba(56, 225, 255, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.join-title {
  margin: 0 0 26px;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  background: linear-gradient(90deg, #ffd54a, #ff8c2b 40%, #a23bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 1px;
}

.server-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: rgba(8, 10, 28, 0.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: left;
  margin-bottom: 18px;
}
.server-icon {
  width: 64px; height: 64px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 25%, rgba(56, 225, 255, 0.45), transparent 55%),
    linear-gradient(135deg, #2a1057 0%, #6a35ff 45%, #a23bff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 1.6rem;
  color: #f3d4ff;
  border: 1px solid rgba(140, 150, 240, 0.3);
  box-shadow:
    0 8px 20px rgba(162, 59, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  flex-shrink: 0;
}
.server-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  border-radius: 12px;
}
.server-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.server-version { color: var(--text-dim); font-size: 0.9rem; }
.server-ip-text { color: #ffd54a; font-weight: 700; }
.version-tag { color: var(--text-muted); }
.server-tagline,
.server-motd {
  margin-top: 6px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  letter-spacing: 1.5px;
  line-height: 1.7;
  word-break: break-word;
}
.server-motd {
  margin-top: 10px;
  padding: 10px 14px;
  font-family: 'JetBrains Mono', 'Consolas', 'SF Mono', 'Menlo', 'Liberation Mono', monospace;
  font-size: 0.95rem;
  letter-spacing: 0;
  line-height: 1.6;
  text-align: center;
  word-break: normal;
  white-space: normal;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}
.server-motd .motd-loading {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  letter-spacing: 1.5px;
}
.server-motd span {
  vertical-align: baseline;
}
.server-motd br + br { display: none; }
.rainbow {
  background: linear-gradient(90deg, #ff6b9d, #ffd54a, #4ade80, #38e1ff, #a23bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: rainbowSlide 6s linear infinite;
}
@keyframes rainbowSlide {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}
.status-online {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  color: var(--success);
  text-align: right;
  margin-bottom: 4px;
}
.signal-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}
.signal-bars span {
  display: inline-block;
  width: 4px;
  background: var(--success);
  border-radius: 1px;
}
.signal-bars span:nth-child(1) { height: 30%; }
.signal-bars span:nth-child(2) { height: 50%; }
.signal-bars span:nth-child(3) { height: 65%; }
.signal-bars span:nth-child(4) { height: 80%; }
.signal-bars span:nth-child(5) { height: 100%; }

.ip-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}
.ip-input {
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(0,0,0,0.4);
  color: #fff;
  letter-spacing: 1px;
  outline: none;
}
.btn-join {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  padding: 16px 26px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(180deg, #4a4f80, #2c3060);
  color: #fff;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.3);
}
.btn-join:hover {
  background: linear-gradient(180deg, #6a35ff, #4520c4);
  transform: translateY(-1px);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
  gap: 20px;
  margin-bottom: 40px;
  justify-content: center;
}
.team-grid-single {
  grid-template-columns: minmax(0, 320px);
  justify-content: center;
}
.team-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.team-avatar {
  width: 96px; height: 96px;
  margin: 0 auto 16px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 3px;
  image-rendering: pixelated;
}
.team-avatar img {
  width: 100%; height: 100%;
  border-radius: 11px;
  background: var(--bg-1);
  image-rendering: pixelated;
}
.team-role {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.role-owner { background: linear-gradient(90deg, #FF0000, #FF5555); color: #14163a; }
.role-admin { background: rgba(255, 77, 109, 0.18); color: #ff8a9e; border: 1px solid rgba(255, 77, 109, 0.4); }
.role-mod   { background: rgba(56, 225, 255, 0.15); color: #7af0ff; border: 1px solid rgba(56, 225, 255, 0.35); }
.role-builder { background: rgba(74, 222, 128, 0.15); color: #8ee9a6; border: 1px solid rgba(74, 222, 128, 0.35); }
.team-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.team-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.team-cta {
  text-align: center;
  padding: 28px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(20, 22, 50, 0.4);
}
.team-cta p {
  margin: 0 0 14px;
  color: var(--text-dim);
}

.vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.vote-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: linear-gradient(160deg, rgba(28, 30, 70, 0.7), rgba(15, 17, 45, 0.7));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  min-height: 220px;
}
.vote-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(162, 59, 255, 0.18), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.vote-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  color: var(--text);
  box-shadow: 0 20px 45px rgba(162, 59, 255, 0.3);
}
.vote-card:hover::before { opacity: 1; }

.vote-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.vote-rank {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.9rem;
  background: linear-gradient(135deg, rgba(255, 213, 74, 0.15), rgba(255, 140, 43, 0.15));
  border: 1px solid rgba(255, 213, 74, 0.4);
  color: #ffd54a;
  border-radius: 12px;
  letter-spacing: 0.5px;
}
.vote-meta { min-width: 0; flex: 1; }
.vote-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vote-domain {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vote-card > p {
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: 0.92rem;
  flex: 1;
}
.vote-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.vote-reward {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.2px;
}
.vote-reward code {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(162, 59, 255, 0.16);
  border: 1px solid rgba(162, 59, 255, 0.4);
  color: #e3c6ff;
  letter-spacing: 0.4px;
  text-shadow: 0 0 10px rgba(214, 168, 255, 0.4);
}
.vote-reward small {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.lead-cmd {
  display: inline-block;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.9em;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(162, 59, 255, 0.16);
  border: 1px solid rgba(162, 59, 255, 0.4);
  color: #e3c6ff;
  letter-spacing: 0.4px;
  vertical-align: baseline;
}
.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border-radius: 10px;
  letter-spacing: 1px;
  box-shadow: 0 6px 16px rgba(162, 59, 255, 0.4);
  transition: all 0.2s ease;
}
.vote-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.vote-card:hover .vote-btn {
  background: linear-gradient(135deg, #c454ff, #8a4dff);
  box-shadow: 0 10px 24px rgba(162, 59, 255, 0.55);
}
.vote-card:hover .vote-arrow {
  transform: translate(2px, -2px);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: all 0.2s ease;
}
.faq-item[open] {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding-right: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}
.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--text-dim);
}
.faq-item code {
  background: rgba(0,0,0,0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: var(--accent);
}

.section-rules {
  max-width: 920px;
  margin: 0 auto;
}

.section-rules-hub {
  max-width: 1080px;
  margin: 0 auto;
}
.rules-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}
.rules-hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(28, 30, 70, 0.7), rgba(15, 17, 45, 0.7));
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.rules-hub-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(162, 59, 255, 0.2), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.rules-hub-card:hover {
  transform: translateY(-5px);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}
.rules-hub-card:hover::before { opacity: 1; }
.rules-hub-card-dc::before {
  background: radial-gradient(circle at 100% 0%, rgba(88, 101, 242, 0.28), transparent 55%);
}
.rules-hub-card-dc:hover {
  border-color: rgba(88, 101, 242, 0.55);
  box-shadow: 0 22px 50px rgba(88, 101, 242, 0.3);
}
.rules-hub-card-mc:hover {
  border-color: rgba(162, 59, 255, 0.55);
  box-shadow: 0 22px 50px rgba(162, 59, 255, 0.3);
}
.rules-hub-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(162, 59, 255, 0.22), rgba(56, 225, 255, 0.16));
  border: 1px solid var(--border);
  color: #d2a3ff;
  flex-shrink: 0;
}
.rules-hub-card-dc .rules-hub-icon {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.28), rgba(120, 130, 255, 0.18));
  border-color: rgba(88, 101, 242, 0.4);
  color: #b3bcff;
}
.rules-hub-body { display: flex; flex-direction: column; gap: 8px; }
.rules-hub-eyebrow {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.rules-hub-card h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f3d4ff 0%, #d2a3ff 30%, #a23bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rules-hub-card-dc h3 {
  background: linear-gradient(135deg, #e4e7ff 0%, #b3bcff 30%, #5865f2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rules-hub-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}
.rules-hub-arrow {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.8px;
  color: var(--accent);
  text-transform: uppercase;
  transition: gap 0.2s ease, color 0.2s ease;
}
.rules-hub-card:hover .rules-hub-arrow { gap: 14px; color: var(--accent-2); }
.rules-hub-card-dc .rules-hub-arrow { color: #b3bcff; }
.rules-hub-card-dc:hover .rules-hub-arrow { color: #e4e7ff; }

.rules-back { margin-bottom: 20px; }
.rules-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: all 0.2s ease;
}
.rules-back a:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(162, 59, 255, 0.08);
  transform: translateX(-2px);
}

.rules-cat {
  margin: 28px 0 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.rules-cat::before,
.rules-cat::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.rules-cat:first-of-type { margin-top: 8px; }
.rules-cat-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(56, 225, 255, 0.08);
  border: 1px solid rgba(56, 225, 255, 0.3);
  white-space: nowrap;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px;
}
.rule-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.rule-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}
.rule-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.4rem;
  background: linear-gradient(135deg, #ffd54a, #ff8c2b 50%, #a23bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 1px;
  line-height: 1;
  padding-top: 4px;
}
.rule-body h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.rule-body p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}
.rule-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(162, 59, 255, 0.4);
  text-underline-offset: 3px;
}
.rule-body a:hover { color: #c98aff; }
.rules-footnote {
  margin-top: 28px;
  padding: 18px 22px;
  background: rgba(255, 213, 74, 0.05);
  border: 1px solid rgba(255, 213, 74, 0.18);
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}
.rules-footnote p { margin: 0; }
.rules-footnote em { color: var(--text); font-style: normal; font-weight: 600; }
.rules-footnote code {
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.85em;
  color: #e3c6ff;
}
.rules-footnote strong { color: #ffd54a; }
@media (max-width: 560px) {
  .rule-card { grid-template-columns: 1fr; gap: 8px; padding: 18px 18px; }
  .rule-num { font-size: 1.1rem; padding-top: 0; }
}

.footer {
  position: relative;
  z-index: 1;
  margin-top: 80px;
  border-top: 1px solid rgba(162, 59, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(8, 9, 26, 0.55) 0%, rgba(4, 5, 16, 0.95) 100%);
  backdrop-filter: blur(14px);
  overflow: hidden;
  isolation: isolate;
}
.footer-glow {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 920px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(162, 59, 255, 0.0) 15%,
    rgba(162, 59, 255, 0.75) 50%,
    rgba(56, 225, 255, 0.4) 70%,
    transparent 100%);
  pointer-events: none;
}
.footer-glow::after {
  content: "";
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 100px;
  background: radial-gradient(ellipse at center, rgba(162, 59, 255, 0.28), transparent 70%);
  filter: blur(22px);
}
.footer-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}
.footer-orb-a {
  width: 380px;
  height: 380px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, #a23bff 0%, transparent 70%);
}
.footer-orb-b {
  width: 320px;
  height: 320px;
  bottom: -140px;
  right: -100px;
  background: radial-gradient(circle, #6a35ff 0%, transparent 70%);
  opacity: 0.28;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 28px 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
  position: relative;
  text-align: center;
  justify-items: center;
}

.footer-brand {
  grid-column: 1 / -1;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-brand-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}
.footer-logo {
  display: block;
  height: 60px;
  width: auto;
  filter: drop-shadow(0 6px 22px rgba(162, 59, 255, 0.5));
}
.footer-wordmark {
  font-size: 1.7rem;
}
.footer-wordmark .brand-tld {
  font-size: 0.56em;
}
.footer-tagline {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 22px;
  max-width: 380px;
}

.footer-ip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(162, 59, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(162, 59, 255, 0.10), rgba(106, 53, 255, 0.06));
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.footer-ip:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 168, 255, 0.55);
  background:
    linear-gradient(180deg, rgba(162, 59, 255, 0.18), rgba(106, 53, 255, 0.12));
  box-shadow: 0 10px 26px rgba(106, 53, 255, 0.35);
}
.footer-ip-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  letter-spacing: 1.6px;
  color: var(--text-muted);
  line-height: 1.4;
}
.footer-ip-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid rgba(214, 168, 255, 0.22);
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-weight: 700;
  font-size: 0.95rem;
  color: #f3e0ff;
}
.footer-ip-value svg {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.footer-ip:hover .footer-ip-value svg { opacity: 1; }

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}
.footer-col h4 {
  margin: 0 0 18px;
  font-size: 0.72rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #c474ff, #6a35ff);
  box-shadow: 0 0 10px rgba(162, 59, 255, 0.6);
}
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-list a {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-list a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  text-align: center;
}
.footer-bottom p { margin: 0; }
.footer-bottom strong {
  color: var(--text);
  font-weight: 700;
  background: linear-gradient(135deg, #d2a3ff, #a23bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal-main {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 30px 24px 20px;
}
.legal-card {
  padding: 44px 48px;
  background: linear-gradient(160deg, rgba(20, 22, 60, 0.8), rgba(10, 12, 35, 0.8));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(8px);
}
.legal-back { margin-bottom: 20px; }
.legal-back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.92rem;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  transition: all 0.2s ease;
}
.legal-back a:hover { color: var(--text); border-color: var(--border-strong); }
.legal-card h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  background: linear-gradient(90deg, #ffd54a, #ff8c2b 50%, #a23bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal-intro {
  color: var(--text-dim);
  margin: 0 0 32px;
  font-size: 1.02rem;
}
.legal-section { margin-bottom: 28px; }
.legal-section h2 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: var(--accent);
  letter-spacing: 0.2px;
}
.legal-section p {
  margin: 0 0 10px;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.legal-section ul {
  margin: 0 0 10px;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.legal-section li { margin-bottom: 4px; }
.legal-section a { color: var(--accent); }
.legal-section strong { color: var(--text); }
.legal-note {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--warn);
  background: rgba(255, 213, 74, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px dashed rgba(255, 213, 74, 0.4);
  margin-top: 4px;
}
.legal-tip {
  margin-top: 12px !important;
  padding: 14px 16px;
  background: rgba(56, 225, 255, 0.06);
  border: 1px solid rgba(56, 225, 255, 0.25);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 0.92rem !important;
}
.legal-tip em { color: var(--text); font-style: normal; font-weight: 600; }
.legal-meta {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 560px) {
  .legal-card { padding: 28px 22px; }
}

.toast-container {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 18px;
  min-width: 280px;
  max-width: 380px;
  background: linear-gradient(135deg, rgba(20, 22, 60, 0.96), rgba(10, 12, 35, 0.96));
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--success);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  color: var(--text);
  pointer-events: auto;
  transform: translateX(420px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.25s ease;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.toast-error { border-left-color: var(--danger); }
.toast.toast-info  { border-left-color: var(--accent); }
.toast-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(74, 222, 128, 0.18);
  color: var(--success);
  font-size: 1.1rem;
  font-weight: 800;
}
.toast.toast-error .toast-icon { background: rgba(255, 77, 109, 0.18); color: var(--danger); }
.toast.toast-info  .toast-icon { background: rgba(56, 225, 255, 0.18); color: var(--accent); }
.toast-body { flex: 1; min-width: 0; }
.toast-title {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.toast-msg {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-family: 'Press Start 2P', monospace;
  letter-spacing: 0.5px;
}

@media (max-width: 960px) {
  .nav-inner { gap: 12px; padding: 12px 16px; grid-template-columns: auto 1fr auto; }
  .nav-links { display: none; }
  .brand-logo { height: 40px; }
  .brand-wordmark { font-size: 1.2rem; }
  .brand-tld { font-size: 0.6em; padding: 3px 6px 2px; }
  .btn-nav-cta { height: 38px; padding: 0 14px; font-size: 0.82rem; }
  .hero-card { padding: 90px 28px 70px; min-height: calc(100vh - 100px); gap: 18px; }
  .hero-stats { gap: 18px; padding: 14px 22px; }
  .hero-stat { min-width: 60px; }
  .hero-logo { width: clamp(120px, 22vw, 160px); }
  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 24px;
    padding: 52px 24px 32px;
  }
  .server-card { grid-template-columns: auto 1fr; gap: 14px; padding: 14px 16px; }
  .server-status { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .server-icon { width: 56px; height: 56px; font-size: 1.4rem; }
  .server-motd { font-size: 0.78rem; padding: 8px 10px; line-height: 1.5; margin-top: 8px; }
  .ip-row { grid-template-columns: 1fr; }
  .modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .module-card--featured { grid-column: span 2; grid-row: span 1; }
  .module-card--wide     { grid-column: span 2; }
  .module-card--featured .module-visual { min-height: 230px; }
  .module-card--featured .module-title  { font-size: 1.5rem; }
  .module-card--wide .module-wide-inner { grid-template-columns: 1fr 1fr; gap: 22px; }
  .module-card--wide .module-visual     { height: 110px; }
}
@media (max-width: 560px) {
  .hero { padding: 30px 14px; }
  .section { padding: 88px 16px; }
  main .section::before { top: 22px; width: min(280px, 84%); }
  main .section::after  { top: 37px; box-shadow:
    0 0 8px var(--accent),
    0 0 16px rgba(56, 225, 255, 0.5),
    -20px 0 0 -1px var(--primary),
    -20px 0 8px -2px rgba(162, 59, 255, 0.5),
    20px 0 0 -1px var(--primary),
    20px 0 8px -2px rgba(162, 59, 255, 0.5);
  }
  .hero-card { padding: 80px 20px 64px; min-height: calc(100vh - 90px); gap: 14px; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-stats { flex-wrap: wrap; gap: 14px; padding: 14px 18px; justify-content: center; }
  .hero-stat-sep { display: none; }
  .hero-scroll-text { display: none; }
  .btn-nav-cta span:last-child { display: none; }
  .btn-nav-cta { padding: 0 12px; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 44px 20px 24px;
  }
  .footer-brand { grid-column: auto; }
  .footer-brand-head { gap: 12px; }
  .footer-logo { height: 52px; }
  .footer-wordmark { font-size: 1.4rem; }
  .footer-ip { justify-content: space-between; min-width: 240px; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 18px 20px;
  }
  .toast-container { left: 14px; right: 14px; top: 80px; }
  .toast { min-width: 0; max-width: none; }
  .ip-input { font-size: 0.85rem; padding: 14px; }
  .btn-join { font-size: 0.65rem; padding: 14px 18px; }
  .vote-card { min-height: 0; }
  .join-card { padding: 28px 18px; }
  .server-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    text-align: center;
  }
  .server-icon { width: 52px; height: 52px; font-size: 1.3rem; margin: 0 auto; }
  .server-info { text-align: center; }
  .server-name { font-size: 0.8rem; }
  .server-motd {
    font-size: 0.7rem;
    padding: 8px 10px;
    line-height: 1.5;
    margin-top: 8px;
    overflow-wrap: anywhere;
  }
  .server-motd .motd-loading { font-size: 0.5rem; letter-spacing: 1px; }
  .server-status { justify-content: center; gap: 14px; }
  .modules-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .module-card,
  .module-card--featured,
  .module-card--wide { grid-column: span 1; }
  .module-card { padding: 18px 18px 14px; }
  .module-card--featured .module-visual { min-height: 200px; }
  .module-card--featured .module-title  { font-size: 1.3rem; }
  .module-card--wide .module-wide-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .module-card--wide .module-visual { height: 86px; }
  .module-visual { height: 90px; margin: 4px 0 12px; }
  .module-coord { display: none; }
  .module-corner { width: 11px; height: 11px; }
  .orbit-ring--1   { width: 220px; height: 220px; }
  .orbit-ring--2   { width: 146px; height: 146px; }
  .orbit-orbiter   { width: 220px; height: 220px; }
  .orbit-orbiter--2{ width: 146px; height: 146px; }
  .orbit-planet    { width: 80px;  height: 80px; }
}
