:root {
  --bg-core: #06080d;
  --bg-surface: #0c101a;
  --bg-surface-elevated: #131929;
  --bg-card: rgba(15, 21, 36, 0.75);
  --bg-card-hover: rgba(23, 33, 56, 0.88);

  --gold-primary: #f6c042;
  --gold-light: #ffe58f;
  --gold-dark: #b8860b;
  --gold-gradient: linear-gradient(135deg, #ffe082 0%, #f6c042 50%, #d48806 100%);
  --gold-glow: 0 0 25px rgba(246, 192, 66, 0.4);

  --cyan-celestial: #00f2fe;
  --cyan-glow: 0 0 25px rgba(0, 242, 254, 0.35);

  --purple-demon: #a855f7;
  --purple-dark: #6b21a8;
  --purple-glow: 0 0 25px rgba(168, 85, 247, 0.4);

  --discord-blurple: #5865F2;
  --discord-hover: #4752c4;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-light: rgba(246, 192, 66, 0.2);
  --border-glass: rgba(255, 255, 255, 0.08);

  --font-heading: 'Be Vietnam Pro', 'Montserrat', sans-serif;
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-accent: 'Montserrat', 'Be Vietnam Pro', sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-core);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #080b12;
}
::-webkit-scrollbar-thumb {
  background: #20283e;
  border-radius: var(--radius-full);
  border: 2px solid #080b12;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

#qiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.22;
}
.glow-top {
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #f6c042 0%, rgba(168, 85, 247, 0.45) 100%);
}
.glow-bottom {
  bottom: -60px;
  right: 5%;
  background: radial-gradient(circle, #00f2fe 0%, #6b21a8 100%);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

.gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-smooth);
  padding: 16px 0;
  background: rgba(6, 8, 13, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  padding: 10px 0;
  background: rgba(6, 8, 13, 0.94);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-crest {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(246, 192, 66, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}
.brand-crest-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.crest-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px dashed var(--gold-primary);
  animation: spinSlow 20s linear infinite;
  opacity: 0.6;
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.brand-info {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2.5vw, 1.08rem);
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  line-height: 1.15;
}
.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 1.2px;
  color: var(--cyan-celestial);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  position: relative;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 6px 2px;
}
.nav-link i {
  font-size: 0.82rem;
  color: var(--gold-primary);
  opacity: 0.75;
  transition: var(--transition-fast);
}
.nav-link:hover {
  color: #fff;
}
.nav-link:hover i {
  opacity: 1;
  transform: scale(1.15);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition-fast);
  border-radius: 2px;
}
.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-join-nav {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #5865F2 0%, #4752c4 100%);
  color: #fff;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
  transition: var(--transition-smooth);
  flex-shrink: 0;
  white-space: nowrap;
}
.btn-join-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(88, 101, 242, 0.65);
}
.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-25deg);
  animation: shineLoop 4s infinite;
}
@keyframes shineLoop {
  0% { left: -100%; }
  30%, 100% { left: 200%; }
}
.mobile-toggle {
  display: none;
  background: rgba(246, 192, 66, 0.08);
  border: 1px solid var(--border-light);
  color: var(--gold-light);
  font-size: 1.1rem;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.mobile-toggle:hover {
  background: rgba(246, 192, 66, 0.2);
}

.hero-section {
  position: relative;
  min-height: 100vh;
  padding: clamp(110px, 14vw, 150px) clamp(16px, 4vw, 24px) clamp(50px, 8vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg-decoration {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
  pointer-events: none;
}
.magic-circle {
  width: min(680px, 95vw);
  height: min(680px, 95vw);
  border-radius: 50%;
  border: 1px solid rgba(246, 192, 66, 0.12);
  box-shadow: inset 0 0 60px rgba(246, 192, 66, 0.05), 0 0 80px rgba(0, 242, 254, 0.08);
  animation: pulseScale 8s ease-in-out infinite;
}
@keyframes pulseScale {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.06); opacity: 0.85; }
}

.hero-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(246, 192, 66, 0.08);
  border: 1px solid var(--border-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  max-width: 100%;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-primary);
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}
.badge-text {
  font-size: clamp(0.68rem, 1.8vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-light);
  white-space: normal;
  line-height: 1.3;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  width: 100%;
}
.title-sub {
  font-family: var(--font-heading);
  font-size: clamp(0.78rem, 2.2vw, 1.05rem);
  letter-spacing: clamp(2px, 0.8vw, 5px);
  color: var(--cyan-celestial);
  font-weight: 700;
  text-transform: uppercase;
}
.title-main {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.18;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
  word-break: break-word;
}

.hero-desc {
  font-size: clamp(0.92rem, 2vw, 1.12rem);
  color: var(--text-secondary);
  max-width: 760px;
  margin-bottom: 36px;
  line-height: 1.65;
  padding: 0 8px;
}
.hero-desc strong {
  color: var(--gold-light);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 6vw, 52px);
  width: 100%;
}

.btn-primary {
  position: relative;
  background: linear-gradient(135deg, #5865F2 0%, #404eed 100%);
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.45);
  transition: var(--transition-smooth);
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(88, 101, 242, 0.7);
}
.btn-icon-wrapper {
  font-size: 1.6rem;
  line-height: 1;
}
.btn-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.btn-caption {
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.btn-subtext {
  font-size: 0.74rem;
  opacity: 0.85;
  font-weight: 500;
}
.btn-arrow {
  font-size: 1rem;
  transition: transform var(--transition-fast);
}
.btn-primary:hover .btn-arrow {
  transform: translateX(5px);
}

.btn-secondary {
  background: rgba(12, 16, 26, 0.85);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}
.btn-secondary:hover {
  background: rgba(246, 192, 66, 0.12);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(14px);
  padding: 16px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: var(--transition-smooth);
}
.stat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}
.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(246, 192, 66, 0.1);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.stat-data {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.08rem;
  color: #fff;
  line-height: 1.2;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.scroll-down-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 1px;
  transition: var(--transition-fast);
  margin-top: 30px;
  cursor: pointer;
}
.scroll-down-hint:hover {
  color: var(--gold-primary);
}
.scroll-arrow {
  animation: bounceDown 2s infinite;
}
@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(5px); }
  60% { transform: translateY(2px); }
}

.section {
  padding: clamp(60px, 9vw, 100px) 0;
  position: relative;
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(36px, 6vw, 50px);
  padding: 0 12px;
}
.sect-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.sect-title {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.22;
  margin-bottom: 10px;
}
.sect-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 16px;
}
.sect-divider::before, .sect-divider::after {
  content: '';
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary));
}
.sect-divider::after {
  background: linear-gradient(90deg, var(--gold-primary), transparent);
}
.sect-divider span {
  padding: 0 12px;
  font-size: 1rem;
}
.sect-subtitle {
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 1.8vw, 1.02rem);
  line-height: 1.6;
}

.lore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 24px);
}
.lore-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: clamp(24px, 4vw, 32px) clamp(20px, 3vw, 26px);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: var(--transition-smooth);
}
.lore-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-light);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55);
}
.lore-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(246, 192, 66, 0.1);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1.45rem;
  margin-bottom: 18px;
}
.lore-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.28rem);
  color: #fff;
  margin-bottom: 10px;
}
.lore-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}
.card-glow {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(246, 192, 66, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transition: var(--transition-smooth);
}
.lore-card:hover .card-glow {
  transform: scale(1.4);
  opacity: 0.8;
}

.chamber-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 0 4px;
}
.filter-btn {
  background: rgba(12, 16, 26, 0.8);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}
.filter-btn:hover {
  color: #fff;
  border-color: var(--border-light);
}
.filter-btn.active {
  background: var(--gold-primary);
  color: #06080d;
  border-color: var(--gold-primary);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(246, 192, 66, 0.35);
}

.chambers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 22px);
}
.chamber-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3vw, 24px);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  flex: 1 1 340px;
  max-width: 380px;
  min-width: min(100%, 300px);
}
.chamber-card:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 192, 66, 0.3);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  background: var(--bg-card-hover);
}
.chamber-card.featured-chamber {
  border: 1px solid rgba(246, 192, 66, 0.38);
  background: linear-gradient(135deg, rgba(23, 33, 56, 0.9) 0%, rgba(15, 21, 36, 0.85) 100%);
  box-shadow: 0 0 22px rgba(246, 192, 66, 0.12);
}

.chamber-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
}
.info-badge { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.rank-badge { background: rgba(246, 192, 66, 0.15); color: var(--gold-light); border: 1px solid var(--border-light); }
.chat-badge { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.special-badge { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
.coin-badge { background: rgba(234, 179, 8, 0.15); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.3); }
.voice-badge { background: rgba(14, 165, 233, 0.15); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.3); }
.game-badge { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }
.law-badge { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.support-badge { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.gift-badge { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }

.chamber-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-right: 75px;
}
.chamber-icon {
  font-size: 1.8rem;
  line-height: 1;
}
.chamber-title-group h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
}
.chamber-admin {
  font-size: 0.74rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.chamber-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}
.chamber-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}
.gold-tag { color: var(--gold-light); background: rgba(246, 192, 66, 0.1); }
.purple-tag { color: #d8b4fe; background: rgba(168, 85, 247, 0.1); }

.cultivation-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}
.sect-title-alt {
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.25;
}
.cultivation-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 24px;
}
.cultivation-desc strong {
  color: var(--gold-light);
}

.realm-ladder {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ladder-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(12, 16, 26, 0.6);
  border: 1px solid var(--border-glass);
}
.ladder-step.step-active {
  border-color: var(--gold-primary);
  background: rgba(246, 192, 66, 0.08);
  box-shadow: 0 0 16px rgba(246, 192, 66, 0.15);
}
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1c2436;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.step-active .step-num {
  background: var(--gold-gradient);
  color: #06080d;
}
.step-txt {
  display: flex;
  flex-direction: column;
}
.step-txt strong {
  color: #fff;
  font-size: 0.9rem;
}
.step-txt small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.simulator-card {
  background: linear-gradient(145deg, #101626 0%, #090d16 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 30px);
  box-shadow: 0 16px 45px rgba(0,0,0,0.6), var(--gold-glow);
  position: relative;
  overflow: hidden;
  width: 100%;
}
.sim-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.sim-avatar {
  position: relative;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
}
.sim-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
}
.avatar-aura {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px dashed var(--gold-primary);
  animation: spinSlow 15s linear infinite;
  opacity: 0.8;
}
.sim-user-meta h4 {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  color: #fff;
}
.sim-realm-badge {
  display: inline-block;
  margin-top: 3px;
  padding: 3px 11px;
  border-radius: var(--radius-full);
  background: rgba(246, 192, 66, 0.15);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.75rem;
  border: 1px solid var(--border-light);
}

.sim-progress-box {
  background: rgba(0,0,0,0.35);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  margin-bottom: 20px;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 7px;
  font-weight: 600;
  flex-wrap: wrap;
  gap: 4px;
}
.progress-bar-track {
  width: 100%;
  height: 10px;
  background: #1c2436;
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
  box-shadow: 0 0 10px var(--gold-primary);
}

.sim-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.sim-btn {
  flex: 1 1 180px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.absorb-btn {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: #00f2fe;
}
.absorb-btn:hover {
  background: rgba(0, 242, 254, 0.22);
  box-shadow: var(--cyan-glow);
}
.breakthrough-btn {
  background: linear-gradient(135deg, #f6c042 0%, #d48806 100%);
  border: 1px solid var(--gold-light);
  color: #06080d;
  box-shadow: 0 4px 15px rgba(246, 192, 66, 0.4);
}
.breakthrough-btn:not(.disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(246, 192, 66, 0.6);
}
.breakthrough-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

.sim-faction-choice {
  background: rgba(0,0,0,0.5);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-primary);
  margin-bottom: 18px;
  animation: fadeIn 0.4s ease;
}
.sim-faction-choice.hidden {
  display: none;
}
.faction-prompt {
  font-size: 0.82rem;
  color: var(--gold-light);
  margin-bottom: 10px;
  text-align: center;
  line-height: 1.3;
}
.faction-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.faction-btn仙, .faction-btn魔 {
  flex: 1 1 130px;
  padding: 10px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.faction-btn仙 {
  background: rgba(246, 192, 66, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
}
.faction-btn仙:hover {
  background: var(--gold-primary);
  color: #06080d;
}
.faction-btn魔 {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid var(--purple-demon);
  color: #d8b4fe;
}
.faction-btn魔:hover {
  background: var(--purple-demon);
  color: #fff;
}

.sim-tip {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

.realms-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(16px, 3vw, 24px);
  align-items: center;
}
.realm-side {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px) clamp(20px, 3vw, 28px);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-smooth);
  overflow: hidden;
}
.side-immortal {
  border: 1px solid rgba(246, 192, 66, 0.35);
  background: radial-gradient(circle at top, rgba(246, 192, 66, 0.08) 0%, rgba(12, 16, 26, 0.85) 70%);
}
.side-immortal:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(246, 192, 66, 0.22);
  border-color: var(--gold-primary);
}
.side-demon {
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: radial-gradient(circle at top, rgba(168, 85, 247, 0.08) 0%, rgba(12, 16, 26, 0.85) 70%);
}
.side-demon:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(168, 85, 247, 0.22);
  border-color: var(--purple-demon);
}

.realm-emblem {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.side-immortal .realm-emblem {
  background: rgba(246, 192, 66, 0.15);
  color: var(--gold-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--gold-glow);
}
.side-demon .realm-emblem {
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple-demon);
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: var(--purple-glow);
}

.realm-type {
  font-size: 0.72rem;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 4px;
}
.side-immortal .realm-type { color: var(--gold-light); }
.side-demon .realm-type { color: #c084fc; }

.realm-name {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 1.9rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}
.realm-lore {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 20px;
}
.realm-perks {
  list-style: none;
  width: 100%;
  text-align: left;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.realm-perks li {
  font-size: 0.85rem;
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.4;
}
.realm-perks li i {
  margin-top: 3px;
  flex-shrink: 0;
}
.side-immortal .realm-perks i { color: var(--gold-primary); }
.side-demon .realm-perks i { color: var(--purple-demon); }

.realms-vs-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.vs-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0d121f;
  border: 2px solid var(--gold-primary);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 0 18px rgba(246, 192, 66, 0.3);
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 3vw, 28px);
}
.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}
.channel-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow: 0 15px 35px rgba(0,0,0,0.55);
}
.channel-top-banner {
  background: linear-gradient(90deg, #b91c1c 0%, #e11d48 100%);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.banner-sub {
  background: linear-gradient(90deg, #4338ca 0%, #6366f1 100%);
}
.channel-flag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.channel-body {
  padding: clamp(18px, 3vw, 24px);
  display: flex;
  gap: 16px;
  flex-grow: 1;
}
.channel-avatar-wrapper {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}
.channel-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.channel-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.channel-name {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.2vw, 1.22rem);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.verified-icon {
  font-size: 0.9rem;
  color: #38bdf8;
}
.channel-handle {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 8px;
}
.channel-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.stat-pill {
  font-size: 0.72rem;
  background: rgba(255,255,255,0.06);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}
.stat-pill strong {
  color: var(--gold-light);
}
.channel-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.channel-desc strong {
  color: #fff;
}

.channel-footer {
  padding: 14px 20px 20px;
  border-top: 1px solid var(--border-glass);
}
.btn-youtube {
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  transition: var(--transition-fast);
}
.btn-main-yt {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}
.btn-main-yt:hover {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.45);
}
.btn-sub-yt {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #818cf8;
}
.btn-sub-yt:hover {
  background: #6366f1;
  color: #fff;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45);
}

.hierarchy-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 22px);
}
.staff-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 28px) clamp(16px, 2.5vw, 20px);
  backdrop-filter: blur(14px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-smooth);
  flex: 1 1 320px;
  max-width: 380px;
  min-width: min(100%, 280px);
}
.staff-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-light);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}
.master-card {
  border-color: rgba(246, 192, 66, 0.38);
  background: linear-gradient(145deg, rgba(23, 33, 56, 0.95) 0%, rgba(12, 16, 26, 0.9) 100%);
  box-shadow: 0 0 25px rgba(246, 192, 66, 0.12);
}
.staff-crown {
  position: absolute;
  top: -12px;
  font-size: 1.25rem;
  color: var(--gold-primary);
  filter: drop-shadow(0 0 6px var(--gold-primary));
}
.staff-role-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.role-master { background: rgba(246, 192, 66, 0.15); color: var(--gold-light); border: 1px solid var(--border-light); }
.role-coder { background: rgba(0, 242, 254, 0.15); color: var(--cyan-celestial); border: 1px solid rgba(0, 242, 254, 0.3); }
.role-manager { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.role-bot { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

.staff-icon-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #111726;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.staff-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
}
.staff-emoji {
  font-size: 1.6rem;
}
.avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px dashed var(--gold-primary);
  animation: spinSlow 12s linear infinite;
}
.coder-ring { border-color: var(--cyan-celestial); }
.manager-ring { border-color: #60a5fa; }
.bot-ring { border-color: #c084fc; }

.staff-name {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  color: #fff;
  margin-bottom: 6px;
}
.staff-bio {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.staff-bio strong {
  color: var(--gold-light);
}

.cta-section {
  padding: clamp(60px, 8vw, 80px) 0;
  position: relative;
}
.cta-box {
  background: linear-gradient(135deg, rgba(23, 33, 56, 0.95) 0%, rgba(10, 14, 22, 0.95) 100%);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 56px) clamp(18px, 4vw, 36px);
  text-align: center;
  box-shadow: 0 16px 50px rgba(0,0,0,0.7), var(--gold-glow);
  position: relative;
  overflow: hidden;
}
.cta-crest {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.cta-crest-img {
  width: clamp(54px, 10vw, 68px);
  height: clamp(54px, 10vw, 68px);
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 18px var(--gold-primary);
}
.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  line-height: 1.22;
}
.cta-text {
  color: var(--text-secondary);
  font-size: clamp(0.88rem, 1.8vw, 1.02rem);
  max-width: 650px;
  margin: 0 auto clamp(20px, 4vw, 32px);
  line-height: 1.6;
}
.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.btn-cta-large {
  font-size: 0.96rem;
  padding: 14px 30px;
}
.cta-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 22px);
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.cta-guarantee span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.cta-guarantee i {
  color: var(--gold-primary);
}

.site-footer {
  background: #030508;
  border-top: 1px solid var(--border-glass);
  padding: clamp(40px, 6vw, 56px) 0 20px;
}
.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(24px, 4vw, 44px);
  margin-bottom: 32px;
}
.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.small-crest {
  width: 34px;
  height: 34px;
}
.footer-brand h4 {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  color: var(--gold-light);
  margin-bottom: 3px;
}
.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 24px);
}
.f-col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.f-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  margin-bottom: 7px;
  transition: var(--transition-fast);
  cursor: pointer;
}
.f-col a:hover {
  color: var(--gold-light);
  transform: translateX(3px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 20px;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-fast);
  font-size: 0.85rem;
}
.footer-socials a:hover {
  background: var(--gold-primary);
  color: #06080d;
}

.toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: calc(100vw - 40px);
}
.toast {
  background: rgba(12, 16, 26, 0.96);
  border: 1px solid var(--gold-primary);
  backdrop-filter: blur(14px);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6), var(--gold-glow);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideInLeft 0.3s ease, fadeOut 0.4s ease 2.6s forwards;
  pointer-events: auto;
  word-break: break-word;
}
@keyframes slideInLeft {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateY(10px); }
}

@media (max-width: 1024px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lore-grid {
    grid-template-columns: 1fr;
  }
  .cultivation-wrapper {
    grid-template-columns: 1fr;
  }
  .realms-comparison {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .realms-vs-badge {
    margin: 8px 0;
  }
}

@media (max-width: 820px) {
  .mobile-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 66px;
    left: 0;
    width: 100%;
    background: rgba(6, 8, 13, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 24px 20px;
    gap: 14px;
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-120%);
    transition: var(--transition-smooth);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 16px 40px rgba(0,0,0,0.7);
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.02);
    font-size: 0.94rem;
  }
  .nav-link:hover {
    background: rgba(246, 192, 66, 0.08);
  }
  .nav-link::after {
    display: none;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .channels-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  .cta-buttons a, .cta-buttons button {
    width: 100%;
    justify-content: center;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group a, .hero-cta-group button {
    width: 100%;
    justify-content: center;
  }
  .channel-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .channel-info {
    align-items: center;
  }
  .channel-stats {
    justify-content: center;
  }
  .chamber-header {
    padding-right: 0;
    flex-wrap: wrap;
  }
  .chamber-badge {
    position: static;
    margin-bottom: 8px;
    align-self: flex-start;
  }
}

@media (max-width: 400px) {
  .btn-join-nav span {
    display: none;
  }
  .btn-join-nav {
    padding: 8px 12px;
  }
}
