/* =========================================
   GOTHIC ONLINE – UNTOLD CHAPTERS
   Immersive Stylesheet v2.0
   ========================================= */

/* =========================================
   SELF-HOSTED FONTS (DSGVO-konform)
   Dateien liegen in assets/fonts/
   Anleitung: assets/fonts/FONTS_HERUNTERLADEN.txt
   ========================================= */

@font-face {
  font-family: 'Cinzel';
  src: url('../fonts/cinzel-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cinzel';
  src: url('../fonts/cinzel-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cinzel';
  src: url('../fonts/cinzel-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cinzel Decorative';
  src: url('../fonts/cinzel-decorative-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cinzel Decorative';
  src: url('../fonts/cinzel-decorative-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/eb-garamond-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/eb-garamond-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/eb-garamond-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/eb-garamond-600-italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold:       #c9a84c;
  --gold-l:     #e8c86a;
  --gold-d:     #8a6b28;
  --gold-xs:    #4a3a14;
  --blood:      #8b1a1a;
  --blood-l:    #c0392b;
  --blue-f:     #2c5aa0;
  --blue-fl:    #4a7fd4;
  --dark:       #070604;
  --dark2:      #0d0b08;
  --dark3:      #110e09;
  --dark4:      #1a1510;
  --mid:        #241e16;
  --text:       #d4c5a9;
  --text-l:     #ede4d3;
  --muted:      #7a6f5e;
  --discord:    #5865F2;
  --discord-d:  #4752c4;
  --font-title: 'Cinzel Decorative', serif;
  --font-ui:    'Cinzel', serif;
  --font-body:  'EB Garamond', Georgia, serif;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.75;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--gold-l); }

/* ---- CUSTOM CURSOR (desktop only) ---- */
@media (pointer: fine) {
  body { cursor: none; }
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.cursor-ring {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(201,168,76,0.6);
  transition: width 0.3s var(--ease-out),
              height 0.3s var(--ease-out),
              border-color 0.3s,
              opacity 0.3s;
}

.cursor-ring.hovering {
  width: 52px;
  height: 52px;
  border-color: var(--gold);
  opacity: 0.5;
}

/* ---- PROGRESS BAR ---- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, var(--gold-d), var(--gold), var(--gold-l));
  z-index: 10000;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--gold);
}

/* ---- NOISE OVERLAY ---- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* ---- PARTICLES ---- */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ---- LAYOUT ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* ---- CLIP-PATH SECTION DIVIDERS ---- */
.clip-top    { clip-path: polygon(0 3.5%, 100% 0, 100% 100%, 0 100%); margin-top: -3vw; padding-top: calc(3vw + 5rem); }
.clip-bottom { clip-path: polygon(0 0, 100% 0, 100% 96.5%, 0 100%); padding-bottom: calc(3vw + 5rem); }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.8rem;
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* Shimmer effect */
.btn-primary::after,
.btn-discord::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transform: skewX(-20deg);
  animation: shimmer 3.5s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { left: -75%; }
  100% { left: 150%; }
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-d) 0%, var(--gold) 60%, var(--gold-l) 100%);
  color: var(--dark);
  box-shadow: 0 0 20px rgba(201,168,76,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  box-shadow: 0 0 40px rgba(201,168,76,0.55);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
  color: var(--gold-l);
  transform: translateY(-2px);
}

.btn-discord {
  background: var(--discord);
  color: #fff;
  box-shadow: 0 0 20px rgba(88,101,242,0.35);
}
.btn-discord:hover {
  background: var(--discord-d);
  box-shadow: 0 0 45px rgba(88,101,242,0.65);
  color: #fff;
  transform: translateY(-3px);
}

.btn-large { padding: 1rem 2.5rem; font-size: 0.88rem; }

/* Faction buttons */
.btn-faction {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-top: 1.5rem;
  transition: all 0.25s;
  border: 1px solid transparent;
}
.btn-faction-old { border-color: rgba(139,26,26,0.6); color: #e05555; }
.btn-faction-old:hover { background: rgba(139,26,26,0.2); border-color: var(--blood-l); color: var(--blood-l); }
.btn-faction-new { border-color: rgba(44,90,160,0.6); color: var(--blue-fl); }
.btn-faction-new:hover { background: rgba(44,90,160,0.2); border-color: var(--blue-fl); }
.btn-faction-sect { border-color: rgba(201,168,76,0.5); color: var(--gold); }
.btn-faction-sect:hover { background: rgba(201,168,76,0.1); border-color: var(--gold); }

/* =========================================
   SECTION COMMON
   ========================================= */
.section-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-d);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  color: var(--text-l);
  margin-bottom: 1.75rem;
}

.highlight { color: var(--gold); }

.glow-text {
  text-shadow:
    0 0 25px rgba(201,168,76,0.5),
    0 0 70px rgba(201,168,76,0.18);
}

/* =========================================
   SCROLL REVEAL
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: linear-gradient(to bottom, rgba(7,6,4,0.92) 0%, transparent 100%);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}

.navbar.scrolled {
  background: rgba(7,6,4,0.96);
  border-color: rgba(201,168,76,0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}

.logo-gothic {
  font-family: var(--font-title);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.logo-sub {
  font-family: var(--font-ui);
  font-size: 0.48rem;
  letter-spacing: 0.35em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s;
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-discord {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  color: var(--discord) !important;
  border: 1px solid rgba(88,101,242,0.35);
  padding: 0.35rem 0.9rem !important;
  border-radius: 2px;
  transition: all 0.25s !important;
}
.nav-discord:hover {
  background: rgba(88,101,242,0.15);
  border-color: var(--discord);
  color: #fff !important;
  box-shadow: 0 0 18px rgba(88,101,242,0.4);
}
.nav-discord::after { display: none !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--gold);
  transition: all 0.3s;
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =========================================
   MOBILE MENU OVERLAY
   ========================================= */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(7,6,4,0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
}

.mobile-menu-overlay.open { transform: translateX(0); }

.mobile-menu-close {
  position: absolute;
  top: 1.5rem; right: 1.75rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover { color: var(--gold); }

.mobile-menu-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 1rem;
}

.mobile-menu-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu-links a {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  padding: 0.6rem 1rem;
  transition: color 0.2s;
}
.mobile-menu-links a:hover { color: var(--gold); }

.mobile-menu-discord { margin-top: 1rem; }

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Letterbox bars */
.hero-letterbox {
  position: absolute;
  left: 0; right: 0;
  height: 8vh;
  background: #000;
  z-index: 10;
  animation: letterboxOut 0.8s var(--ease-out) 0.8s forwards;
}
.hero-letterbox-top    { top: 0; transform-origin: top; }
.hero-letterbox-bottom { bottom: 0; transform-origin: bottom; }

@keyframes letterboxOut {
  to { transform: scaleY(0); opacity: 0; }
}

/* Parallax layers */
.hero-layer {
  position: absolute;
  inset: -5%;
  will-change: transform;
}

.hero-layer-bg {
  background: url('../images/hero-bg.jpg') center center / cover no-repeat;
  animation: heroBreath 18s ease-in-out infinite alternate;
}

@keyframes heroBreath {
  from { transform: scale(1.05); }
  to   { transform: scale(1.1) translateX(-1%); }
}

.hero-layer-mid {
  background: radial-gradient(ellipse at center, transparent 30%, rgba(7,6,4,0.7) 100%);
}

.hero-layer-vignette {
  background: linear-gradient(
    to bottom,
    rgba(7,6,4,0.5) 0%,
    transparent 25%,
    transparent 60%,
    rgba(7,6,4,0.7) 85%,
    rgba(7,6,4,1) 100%
  );
}

/* Fog */
.hero-fog {
  position: absolute;
  bottom: 0; left: -10%; right: -10%;
  height: 35%;
  z-index: 3;
  background: linear-gradient(to top,
    rgba(7,6,4,0.9) 0%,
    rgba(20,15,8,0.5) 40%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-fog::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 100%, rgba(40,25,5,0.4) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(20,10,2,0.35) 0%, transparent 70%);
  animation: fogDrift 12s ease-in-out infinite alternate;
}

@keyframes fogDrift {
  from { transform: translateX(-3%); }
  to   { transform: translateX(3%); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
}

/* Status badge */
.hero-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 0.45rem 1.3rem;
  border-radius: 2px;
  margin-bottom: 2rem;
  background: rgba(201,168,76,0.06);
  animation: fadeInDown 0.8s var(--ease-out) 1s both;
  backdrop-filter: blur(4px);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--gold); }
  50% { opacity: 0.5; box-shadow: 0 0 12px var(--gold), 0 0 24px rgba(201,168,76,0.3); }
}

/* Hero title */
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.75rem;
  animation: fadeInDown 0.9s var(--ease-out) 1.2s both;
}

.title-gothic {
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  letter-spacing: 0.04em;
  color: var(--text-l);
  text-shadow:
    0 0 40px rgba(201,168,76,0.6),
    0 0 100px rgba(201,168,76,0.2),
    3px 3px 6px rgba(0,0,0,0.9);
  line-height: 0.95;
  animation: glitchTitle 10s ease-in-out infinite;
}

@keyframes glitchTitle {
  0%, 88%, 91%, 100% {
    transform: none;
    text-shadow: 0 0 40px rgba(201,168,76,0.6), 0 0 100px rgba(201,168,76,0.2), 3px 3px 6px rgba(0,0,0,0.9);
  }
  89% {
    transform: skewX(-4deg) translateX(-3px);
    text-shadow: -4px 0 rgba(201,168,76,0.8), 4px 0 rgba(139,26,26,0.6);
  }
  90% {
    transform: skewX(2deg) translateX(2px);
    text-shadow: 4px 0 rgba(201,168,76,0.8), -4px 0 rgba(44,90,160,0.4);
  }
}

.title-chapter {
  font-family: var(--font-ui);
  font-size: clamp(0.7rem, 2.2vw, 1.25rem);
  letter-spacing: 0.55em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 0.75rem;
  opacity: 0.9;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 2;
  animation: fadeInUp 0.9s var(--ease-out) 1.4s both;
}

.hero-tagline em { color: var(--text); font-style: italic; }

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s var(--ease-out) 1.6s both;
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  animation: fadeIn 1.5s ease 2.5s both;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 2px;
  height: 7px;
  background: var(--gold);
  border-radius: 1px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(12px); opacity: 0; }
  81%  { transform: translateY(0); opacity: 0; }
  100% { opacity: 1; }
}

/* =========================================
   STATS
   ========================================= */
.stats-section {
  padding: 5rem 0;
  position: relative;
  z-index: 2;
  background: var(--dark);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 0 4rem;
  flex: 1;
  min-width: 160px;
}

.stat-number {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--gold);
  text-shadow: 0 0 30px rgba(201,168,76,0.5);
  line-height: 1;
  display: block;
}

.stat-infinity {
  font-size: clamp(3rem, 6vw, 5rem);
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,0.3), transparent);
  flex-shrink: 0;
}

/* =========================================
   ABOUT
   ========================================= */
.about-section {
  padding: 7rem 0;
  position: relative;
  background: var(--dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2.5rem;
}

.about-text p {
  margin-bottom: 1.25rem;
  color: var(--text);
}

.about-text strong { color: var(--gold); }

.about-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.about-features-card {
  background: rgba(201,168,76,0.03);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 3px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.about-features-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold-d), var(--gold), var(--gold-d), transparent);
}

.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(201,168,76,0.07);
}

.feature-item:last-child { border-bottom: none; }

.feature-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.feature-item h4 {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* =========================================
   FEATURES / G2O
   ========================================= */
.features-section {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  background: var(--dark3);
  overflow: hidden;
}

.features-bg-img {
  position: absolute;
  inset: 0;
  background: url('../images/features-bg.jpg') center center / cover no-repeat;
  opacity: 0.07;
}

.features-intro {
  max-width: 620px;
  margin: 0 auto 3.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  text-align: left;
}

.feature-card {
  background: rgba(201,168,76,0.03);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 3px;
  padding: 1.75rem;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201,168,76,0.08) 0%, transparent 70%);
  transition: opacity 0.4s;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(to right, var(--gold-d), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.feature-card:hover {
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 20px rgba(201,168,76,0.07);
}

.feature-card:hover .feature-card-glow { opacity: 1; }
.feature-card:hover::before { transform: scaleX(1); }

.feature-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}

/* =========================================
   WORLDS DUEL — SPLIT LAYOUT
   ========================================= */
.worlds-duel {
  display: flex;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  /* top separator — replaces clip-top diagonal */
  border-top: 1px solid rgba(201,168,76,0.08);
}

.world-half {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.65s cubic-bezier(0.77, 0, 0.18, 1);
}

.world-half-bg {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.world-half:hover .world-half-bg { transform: scale(1.04); }

.wh-bg-minental { background: url('../images/minental-bg.jpg') center / cover no-repeat; }
.wh-bg-khorinis { background: url('../images/khorinis-bg.jpg') center / cover no-repeat; }

.world-half-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wh-vignette-left {
  background:
    linear-gradient(to right, rgba(7,6,4,0.88) 0%, rgba(20,5,40,0.35) 45%, rgba(7,6,4,0.1) 100%),
    linear-gradient(to bottom, rgba(7,6,4,0.55) 0%, transparent 25%, transparent 65%, rgba(7,6,4,0.7) 100%);
}

.wh-vignette-right {
  background:
    linear-gradient(to left, rgba(7,6,4,0.88) 0%, rgba(5,20,40,0.35) 45%, rgba(7,6,4,0.1) 100%),
    linear-gradient(to bottom, rgba(7,6,4,0.55) 0%, transparent 25%, transparent 65%, rgba(7,6,4,0.7) 100%);
}

.world-half-content {
  position: relative;
  z-index: 2;
  padding: 5rem 3.5rem 4.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
}

.wh-content-right {
  align-items: flex-end;
  text-align: right;
}

.world-era-pill {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.57rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-d);
  border: 1px solid rgba(201,168,76,0.22);
  padding: 0.25rem 0.85rem;
  border-radius: 2px;
  margin-bottom: 0.6rem;
}

.world-half-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.5vw, 3.8rem);
  line-height: 1.05;
  color: var(--text-l);
  text-shadow: 0 0 40px rgba(201,168,76,0.2);
  transition: color 0.5s, text-shadow 0.5s;
}

.world-half-minental:hover .world-half-title {
  color: #d4a0ff;
  text-shadow: 0 0 60px rgba(150,60,255,0.5), 0 0 120px rgba(100,30,200,0.25);
}

.world-half-khorinis:hover .world-half-title {
  color: var(--gold-l);
  text-shadow: 0 0 60px rgba(201,168,76,0.6), 0 0 120px rgba(201,168,76,0.25);
}

.world-half-tagline {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Lore */
.world-half-lore {
  max-width: 420px;
  border-left: 2px solid rgba(201,168,76,0.18);
  padding-left: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s 0.1s, transform 0.5s 0.1s;
}

.wh-content-right .world-half-lore {
  border-left: none;
  border-right: 2px solid rgba(201,168,76,0.18);
  padding-left: 0;
  padding-right: 1rem;
}

.world-half-lore p {
  font-style: italic;
  font-size: 0.88rem;
  color: rgba(180,160,120,0.7);
  line-height: 1.75;
}

/* Preview image */
.world-half-preview {
  max-width: 440px;
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s 0.12s, transform 0.5s 0.12s;
}

.world-half-minental:hover .world-half-preview,
.world-half-khorinis:hover .world-half-preview {
  opacity: 1;
  transform: translateY(0);
}

.wh-preview-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 3px;
  filter: brightness(0.78) saturate(0.85);
  transition: filter 0.45s, box-shadow 0.45s;
}

.world-half-minental:hover .wh-preview-img {
  filter: brightness(0.95) saturate(1.1);
  box-shadow: 0 0 24px rgba(150,60,255,0.3), 0 0 50px rgba(150,60,255,0.1);
}

.world-half-khorinis:hover .wh-preview-img {
  filter: brightness(0.95) saturate(1.1);
  box-shadow: 0 0 24px rgba(201,168,76,0.35), 0 0 50px rgba(201,168,76,0.12);
}

.wh-preview-label {
  position: absolute;
  bottom: 0.5rem;
  left: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.5rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.7);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.wh-content-right .world-half-preview { align-self: flex-end; }
.wh-content-right .wh-preview-label  { left: auto; right: 0.75rem; }

/* Cards */
.world-half-cards {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 440px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s 0.18s, transform 0.45s 0.18s;
}

/* Show on hover */
.world-half-minental:hover .world-half-lore,
.world-half-minental:hover .world-half-cards,
.world-half-khorinis:hover .world-half-lore,
.world-half-khorinis:hover .world-half-cards {
  opacity: 1;
  transform: translateY(0);
}

/* Dim header of unexpanded side */
.worlds-duel.hover-left .world-half-khorinis .world-half-header,
.worlds-duel.hover-right .world-half-minental .world-half-header {
  opacity: 0.35;
  transform: scale(0.95);
  transition: opacity 0.5s, transform 0.5s;
}

.world-half-header { transition: opacity 0.5s, transform 0.5s; }

/* Individual card */
.wh-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.85rem 1.1rem 0.85rem 1.3rem;
  background: rgba(7,6,4,0.55);
  border: 1px solid rgba(201,168,76,0.07);
  border-radius: 3px;
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.wh-content-right .wh-card { flex-direction: row-reverse; }

.wh-card:hover {
  background: rgba(201,168,76,0.05);
  transform: translateX(4px);
}

.wh-content-right .wh-card:hover { transform: translateX(-4px); }

/* Accent bar */
.wh-card-accent {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  border-radius: 1px;
  transition: width 0.3s;
}

.wh-content-right .wh-card-accent { left: auto; right: 0; }
.wh-card:hover .wh-card-accent { width: 3px; }

.wh-card-old  .wh-card-accent { background: linear-gradient(to bottom, #8b1a1a, #c0392b); }
.wh-card-new  .wh-card-accent { background: linear-gradient(to bottom, #1a3a7a, #4a7fd4); }
.wh-card-sect .wh-card-accent { background: linear-gradient(to bottom, #6a3aaa, #c9a84c); }
.wh-card-harbor    .wh-card-accent { background: linear-gradient(to bottom, #7a5a10, #c9a84c); }
.wh-card-farm      .wh-card-accent { background: linear-gradient(to bottom, #2a5a20, #5a9040); }
.wh-card-monastery .wh-card-accent { background: linear-gradient(to bottom, #7a4a10, #c07030); }

.wh-card-old:hover  { border-color: rgba(139,26,26,0.35); }
.wh-card-new:hover  { border-color: rgba(44,90,160,0.35); }
.wh-card-sect:hover { border-color: rgba(150,80,200,0.3); }
.wh-card-harbor:hover    { border-color: rgba(201,168,76,0.3); }
.wh-card-farm:hover      { border-color: rgba(60,140,50,0.3); }
.wh-card-monastery:hover { border-color: rgba(180,100,30,0.3); }

.wh-card-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; line-height: 1; }

.wh-card-body { flex: 1; min-width: 0; }

.wh-card-label {
  font-family: var(--font-ui);
  font-size: 0.52rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.wh-card-name {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: var(--text-l);
  margin-bottom: 0.18rem;
  transition: color 0.3s;
}

.wh-card-old:hover  .wh-card-name { color: #e06060; }
.wh-card-new:hover  .wh-card-name { color: var(--blue-fl); }
.wh-card-sect:hover .wh-card-name { color: var(--gold-l); }
.wh-card-harbor:hover    .wh-card-name { color: var(--gold-l); }
.wh-card-farm:hover      .wh-card-name { color: #8ac868; }
.wh-card-monastery:hover .wh-card-name { color: #e09050; }

.wh-card-motto {
  font-style: italic;
  font-size: 0.77rem;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.wh-card-desc {
  font-size: 0.82rem;
  color: var(--text);
  opacity: 0.75;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.wh-card-traits { display: flex; flex-wrap: wrap; gap: 0.3rem; }

/* Blade divider */
.worlds-blade {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 0;
  z-index: 10;
  pointer-events: none;
  transition: left 0.65s cubic-bezier(0.77, 0, 0.18, 1);
}

.blade-line {
  position: absolute;
  top: 0; bottom: 0; left: -1px;
  width: 2px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(201,168,76,0.3) 10%,
    rgba(201,168,76,0.85) 35%,
    rgba(255,235,130,1) 50%,
    rgba(201,168,76,0.85) 65%,
    rgba(201,168,76,0.3) 90%,
    transparent 100%);
  box-shadow: 0 0 10px rgba(201,168,76,0.35), 0 0 25px rgba(201,168,76,0.12);
  transition: box-shadow 0.4s;
}

.worlds-duel.hover-left .blade-line,
.worlds-duel.hover-right .blade-line {
  box-shadow: 0 0 20px rgba(201,168,76,0.7), 0 0 50px rgba(201,168,76,0.3);
}

.blade-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--dark2);
  border: 1px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(201,168,76,0.2);
  transition: box-shadow 0.4s, border-color 0.4s;
}

.worlds-duel.hover-left .blade-orb,
.worlds-duel.hover-right .blade-orb {
  border-color: rgba(201,168,76,0.65);
  box-shadow: 0 0 28px rgba(201,168,76,0.5), 0 0 55px rgba(201,168,76,0.2);
}

.blade-orb span {
  font-family: var(--font-ui);
  font-size: 0.45rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-d);
}

.blade-glow {
  position: absolute;
  top: 0; bottom: 0;
  left: -20px; right: -20px;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.06) 0%, transparent 60%);
}

/* Trait pills */
.trait {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  border: 1px solid rgba(201,168,76,0.18);
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s;
}

.wh-card:hover .trait {
  border-color: rgba(201,168,76,0.3);
  color: var(--gold-d);
}

/* =========================================
   TIMELINE
   ========================================= */
.timeline-section {
  padding: 7rem 0;
  background: var(--dark3);
  position: relative;
  overflow: hidden;
}

.timeline-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(201,168,76,0.04) 0%, transparent 60%);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 3rem auto 0;
  padding: 0 1rem;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,0.4) 10%, rgba(201,168,76,0.4) 90%, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
  margin-bottom: 3.5rem;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 2rem);
  text-align: right;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 2rem);
  text-align: left;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0.25rem;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dark3);
  border: 2px solid var(--gold-d);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.dot-inner {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-d);
  transition: background 0.3s;
}

.timeline-done .timeline-dot { border-color: var(--gold); }
.timeline-done .dot-inner { background: var(--gold); }

.timeline-active .timeline-dot {
  border-color: var(--gold-l);
  box-shadow: 0 0 12px var(--gold), 0 0 25px rgba(201,168,76,0.3);
  animation: pulseDot 2s ease-in-out infinite;
}
.timeline-active .dot-inner {
  background: var(--gold-l);
  width: 6px;
  height: 6px;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 12px var(--gold), 0 0 25px rgba(201,168,76,0.3); }
  50% { box-shadow: 0 0 20px var(--gold), 0 0 50px rgba(201,168,76,0.5); }
}

.timeline-content { max-width: 320px; }

.timeline-phase {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-d);
  margin-bottom: 0.25rem;
}

.timeline-content h3 {
  font-family: var(--font-ui);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--text-l);
  margin-bottom: 0.5rem;
}

.timeline-done .timeline-content h3 { color: var(--gold); }
.timeline-active .timeline-content h3 { color: var(--gold-l); }

.timeline-content p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.timeline-status {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 2px;
  border: 1px solid;
}

.status-done     { border-color: rgba(201,168,76,0.3); color: var(--gold-d); }
.status-active   { border-color: rgba(201,168,76,0.6); color: var(--gold); background: rgba(201,168,76,0.07); }
.status-upcoming { border-color: rgba(122,111,94,0.3); color: var(--muted); }

/* =========================================
   SNEAK PEAKS
   ========================================= */
.sneak-section {
  padding: 7rem 0 6rem;
  background: var(--dark2);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.sneak-section-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(130,40,200,0.04) 0%, transparent 55%),
              radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.03) 0%, transparent 55%);
  pointer-events: none;
}

.sneak-intro {
  max-width: 560px;
  margin: 0 auto 3.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.sneak-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 3.5rem;
}

.sneak-card {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.1);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}

.sneak-card-bg {
  position: absolute;
  inset: 0;
}

.sneak-bg-1 { background: url('../images/minental-preview.jpg') center / cover no-repeat; }
.sneak-bg-2 { background: url('../images/khorinis-preview.jpg') center / cover no-repeat; }
.sneak-bg-3 { background: linear-gradient(135deg, #1a0f05 0%, #2e1a08 50%, #120a02 100%); }
.sneak-bg-4 { background: linear-gradient(135deg, #050a18 0%, #0a1220 50%, #081018 100%); }

.sneak-card-glow {
  position: absolute;
  inset: 0;
  transition: background 0.2s;
  pointer-events: none;
}

/* Revealed card hover */
.sneak-revealed:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 60px rgba(0,0,0,0.7), 0 0 30px rgba(201,168,76,0.12);
  border-color: rgba(201,168,76,0.3);
}

/* Locked card */
.sneak-locked {
  cursor: default;
}

.sneak-locked .sneak-card-bg {
  filter: brightness(0.4);
}

.sneak-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  backdrop-filter: blur(3px);
  background: rgba(7,6,4,0.35);
  z-index: 2;
}

.sneak-lock-icon {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  filter: grayscale(1) opacity(0.7);
}

.sneak-lock-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.sneak-lock-sub {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(180,160,100,0.5);
}

/* Card content (bottom area) */
.sneak-card-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,6,4,0.9) 0%, rgba(7,6,4,0.3) 45%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.2rem 1.4rem;
  z-index: 1;
}

.sneak-locked .sneak-card-content { z-index: 1; }

.sneak-title {
  font-family: var(--font-ui);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--gold-l);
  margin: 0.3rem 0 0.25rem;
}

.sneak-desc {
  font-size: 0.82rem;
  color: var(--text);
  opacity: 0.75;
  line-height: 1.5;
  margin: 0;
}

/* NEU badge */
.sneak-badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  font-family: var(--font-ui);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  z-index: 3;
}

.sneak-badge-new {
  background: rgba(180,30,30,0.85);
  border: 1px solid rgba(220,60,60,0.6);
  color: #ffaaaa;
  animation: sneakBadgePulse 2.5s ease-in-out infinite;
}

@keyframes sneakBadgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,40,40,0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(200,40,40,0); }
}

/* Sneak world tags */
.sneak-world-tag {
  font-family: var(--font-ui);
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 2px;
}

/* CTA row */
.sneak-cta {
  text-align: center;
}

.sneak-cta-text {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* =========================================
   DISCORD CTA
   ========================================= */
.discord-cta {
  position: relative;
  padding: 8rem 0;
  background: var(--dark2);
  overflow: hidden;
  text-align: center;
}

.discord-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(88,101,242,0.12) 0%, transparent 65%),
    radial-gradient(ellipse at 20% 80%, rgba(201,168,76,0.05) 0%, transparent 50%);
}

.discord-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 680px;
  margin: 0 auto;
}

/* Discord icon with pulse rings */
.discord-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
}

.discord-big-icon {
  width: 72px;
  height: 72px;
  color: var(--discord);
  filter: drop-shadow(0 0 20px rgba(88,101,242,0.7));
  position: relative;
  z-index: 2;
  transition: transform 0.4s var(--ease-out);
}

.discord-icon-wrap:hover .discord-big-icon { transform: scale(1.1); }

.discord-pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(88,101,242,0.5);
  animation: discordPulse 3s ease-out infinite;
}

.ring-1 { width: 80px;  height: 80px;  animation-delay: 0s; }
.ring-2 { width: 80px;  height: 80px;  animation-delay: 1s; }
.ring-3 { width: 80px;  height: 80px;  animation-delay: 2s; }

@keyframes discordPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}

.discord-text h2 {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--text-l);
  margin-bottom: 0.75rem;
}

.discord-text p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.discord-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.channel-pill {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  background: rgba(88,101,242,0.1);
  border: 1px solid rgba(88,101,242,0.25);
  color: rgba(149,161,255,0.8);
  transition: all 0.2s;
}

.channel-pill:hover {
  background: rgba(88,101,242,0.2);
  border-color: var(--discord);
  color: #fff;
}

.discord-members {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.members-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ba55c;
  box-shadow: 0 0 8px #3ba55c;
}

.discord-members strong { color: var(--gold); font-style: normal; }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: rgba(4,3,2,0.99);
  border-top: 1px solid rgba(201,168,76,0.08);
  padding: 5rem 0 2rem;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .footer-logo {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  gap: 3px;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links h4 {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-d);
  margin-bottom: 1.25rem;
}

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 0.55rem; }
.footer-links ul li a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links ul li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(201,168,76,0.07);
  padding-top: 2rem;
  text-align: center;
}

.footer-legal-links {
  margin-top: 0.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.footer-legal-links a {
  font-size: 0.72rem;
  font-family: var(--font-ui);
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-legal-links a:hover { color: var(--gold); }

.footer-legal-sep {
  color: rgba(201,168,76,0.3);
  font-size: 0.65rem;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--font-ui);
  letter-spacing: 0.06em;
}

/* =========================================
   KEYFRAME ANIMATIONS
   ========================================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   LAUNCH WINDOW (replaces countdown)
   ========================================= */
.launch-section {
  position: relative;
  padding: 7rem 0 6rem;
  text-align: center;
  overflow: hidden;
  background: var(--dark2);
}

.launch-bg-img {
  position: absolute;
  inset: 0;
  background: url('../images/countdown-bg2.jpg') center center / cover no-repeat;
  opacity: 0.1;
}

.launch-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.04) 0%, transparent 70%);
}

.launch-desc {
  max-width: 560px;
  margin: 0 auto 3rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.launch-window {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2.5rem 4rem;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 3px;
  background: rgba(201,168,76,0.04);
  margin: 0 auto 2.5rem;
  width: fit-content;
  position: relative;
  overflow: hidden;
}

.launch-window::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold-d), var(--gold), var(--gold-d), transparent);
}

.launch-window-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-d);
}

.launch-window-date {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 30px rgba(201,168,76,0.6), 0 0 70px rgba(201,168,76,0.25);
}

.launch-window-sub {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================================
   KHORINIS LOCATION PANELS
   ========================================= */
.location-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.location-panel {
  position: relative;
  background: rgba(7,6,4,0.6);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 4px;
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
  overflow: hidden;
}

.location-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(80,140,220,0.25), transparent);
}

.location-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 25px rgba(60,100,200,0.08);
  border-color: rgba(80,140,220,0.3);
}

.location-panel-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.location-label {
  font-family: var(--font-ui);
  font-size: 0.57rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(100,160,220,0.65);
  margin-bottom: 0.15rem;
}

.location-name {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--gold-l);
  margin: 0 0 0.35rem;
}

.location-motto {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 0.5rem;
}

.location-desc {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.75;
  opacity: 0.82;
  flex-grow: 1;
}

.location-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

/* (worlds-intro and world-detail styles replaced by worlds-duel above) */

/* =========================================
   WORLD TAGS (used in sneak peaks & world cards)
   ========================================= */
.tag-minental {
  background: rgba(130,40,200,0.25);
  border: 1px solid rgba(130,40,200,0.4);
  color: #c080ff;
}

.tag-khorinis {
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .faction-panel-content { gap: 2.5rem; }
  .location-panels { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .timeline::before { left: 24px; }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: row;
    padding: 0 0 0 60px;
    text-align: left;
  }
  .timeline-dot { left: 24px; top: 0.25rem; }
  .timeline-content { max-width: 100%; }

  .stats-grid { gap: 2rem; flex-wrap: wrap; }
  .stat-divider { width: 60px; height: 1px; }
  .stat-item { padding: 0 2rem; }

  /* Worlds duel stacks vertically on tablet */
  .worlds-duel {
    flex-direction: column;
    min-height: auto;
  }
  .world-half { flex: none !important; min-height: 90vw; }
  .world-half-content { min-height: auto; padding: 3.5rem 2rem; }
  .wh-content-right { align-items: flex-start; text-align: left; }
  .wh-content-right .world-half-lore { border-right: none; border-left: 2px solid rgba(201,168,76,0.18); padding-right: 0; padding-left: 1rem; }
  .wh-content-right .wh-card { flex-direction: row; }
  .wh-content-right .wh-card-accent { left: 0; right: auto; }
  .wh-content-right .wh-card:hover { transform: translateX(4px); }
  .worlds-blade { display: none; }
  .world-half-lore,
  .world-half-cards {
    opacity: 1 !important;
    transform: none !important;
  }
  .worlds-duel.hover-left .world-half-khorinis .world-half-header,
  .worlds-duel.hover-right .world-half-minental .world-half-header {
    opacity: 1;
    transform: none;
  }
  .wh-vignette-left {
    background: linear-gradient(to bottom, rgba(7,6,4,0.55) 0%, rgba(20,5,40,0.3) 50%, rgba(7,6,4,0.75) 100%);
  }
  .wh-vignette-right {
    background: linear-gradient(to bottom, rgba(7,6,4,0.55) 0%, rgba(5,20,40,0.3) 50%, rgba(7,6,4,0.75) 100%);
  }

  .clip-top { clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%); margin-top: -5vw; padding-top: calc(5vw + 4rem); }
}

@media (max-width: 640px) {
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }

  .features-grid  { grid-template-columns: 1fr; }
  .location-panels { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .sneak-grid     { grid-template-columns: 1fr; }

  .hero-cta-group { flex-direction: column; align-items: center; }
  .about-cta-row  { flex-direction: column; }

  .discord-content { padding: 0 1rem; }

  .hero-status-badge { font-size: 0.52rem; letter-spacing: 0.15em; }

  .clip-top { clip-path: none; margin-top: 0; padding-top: 5rem; }
  .clip-bottom { clip-path: none; padding-bottom: 5rem; }

  .world-half { min-height: 100vw; }
  .world-half-content { padding: 3rem 1.5rem; gap: 1.8rem; }
  .world-half-title { font-size: 2rem; }
  .wh-card-desc { display: none; }
}

@media (pointer: coarse) {
  .cursor-dot,
  .cursor-ring { display: none; }
}

/* =========================================
   SNEAK PEAK GALLERY LIGHTBOX
   ========================================= */

.sneak-gallery-hint {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-d);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s, color 0.2s;
  pointer-events: none;
}
.sneak-card:hover .sneak-gallery-hint {
  opacity: 1;
  transform: translateY(0);
  color: var(--gold);
}

.gallery-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(4,3,2,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.gallery-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.gallery-close {
  position: absolute;
  top: 1.5rem;
  right: 1.8rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  z-index: 10;
}
.gallery-close:hover { color: var(--gold); }

.gallery-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  max-width: 900px;
  padding: 4rem 2rem 2rem;
}

.gallery-stage {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.gallery-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  max-height: 60vh;
}

.gallery-img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border: 1px solid rgba(201,168,76,0.15);
  display: block;
  transition: opacity 0.2s;
}
.gallery-img.loading { opacity: 0.3; }

.gallery-nav {
  background: none;
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--gold-d);
  font-size: 2.2rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.gallery-nav:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.06);
}

.gallery-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 0.2rem;
}

.gallery-title {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-d);
}

.gallery-counter {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

.gallery-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border: 1px solid rgba(201,168,76,0.15);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.gallery-thumb:hover { opacity: 0.85; }
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--gold);
}

@media (max-width: 640px) {
  .gallery-img-wrap { min-height: 220px; }
  .gallery-thumb { width: 48px; height: 36px; }
  .gallery-nav { width: 2.4rem; height: 2.4rem; font-size: 1.6rem; }
}
