/* ═══════════════════════════════════════════════════════════════
   TERR MMORPG — Landing Page Stylesheet
   Dark stone/parchment fantasy aesthetic — no external dependencies
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --deep-brown:    #1a0e05;
  --dark-brown:    #2a1608;
  --mid-brown:     #3d2010;
  --warm-brown:    #5a3520;
  --gold:          #c8a84b;
  --gold-bright:   #e8c96a;
  --gold-dark:     #8a6e28;
  --gold-dim:      #6b5420;
  --cream:         #e8d5a3;
  --cream-dark:    #c9b57a;
  --parchment:     #d4b87a;
  --parchment-dk:  #b09050;
  --blood-red:     #8b1a1a;
  --blood-bright:  #c0392b;
  --stone:         #2c2015;
  --stone-light:   #4a3020;
  --text-main:     #e0c98a;
  --text-dim:      #a08848;
  --text-light:    #f0deb0;
  --font-serif:    Georgia, 'Times New Roman', serif;
  --font-sans:     'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --glow-gold:     0 0 20px rgba(200, 168, 75, 0.6), 0 0 40px rgba(200, 168, 75, 0.3);
  --glow-red:      0 0 15px rgba(139, 26, 26, 0.7);
  --shadow-deep:   0 8px 32px rgba(0,0,0,0.8);
  --shadow-panel:  inset 0 0 30px rgba(0,0,0,0.4), 0 4px 20px rgba(0,0,0,0.6);
  --border-gold:   1px solid rgba(200,168,75,0.4);
  --border-stone:  1px solid rgba(90,53,32,0.5);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--deep-brown);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
}

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

img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-pad { padding: 6rem 0; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--deep-brown); }
::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════════ */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
  padding: 0;
}

.topnav.scrolled {
  background: rgba(20, 10, 3, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.8), 0 1px 0 rgba(200,168,75,0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-shadow: 0 0 16px rgba(200,168,75,0.5);
  display: flex;
  align-items: baseline;
  gap: 0;
}

.logo-t {
  color: var(--gold-bright);
  font-size: 2.2rem;
  line-height: 1;
  text-shadow: 0 0 24px rgba(232,201,106,0.7);
}

.logo-err {
  color: var(--cream);
  letter-spacing: 0.15em;
}

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

.nav-links a {
  color: var(--cream-dark);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.2s, text-shadow 0.2s;
  position: relative;
}

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

.nav-links a:hover { color: var(--gold-bright); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-play-btn {
  background: linear-gradient(135deg, var(--blood-red), #6b1010);
  color: var(--cream) !important;
  padding: 0.55rem 1.3rem;
  border-radius: 3px;
  border: 1px solid rgba(200,100,100,0.4);
  box-shadow: 0 0 12px rgba(139,26,26,0.5), inset 0 1px 0 rgba(255,150,150,0.15);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  transition: background 0.2s, box-shadow 0.2s !important;
}

.nav-play-btn:hover {
  background: linear-gradient(135deg, #a82020, var(--blood-red)) !important;
  box-shadow: 0 0 20px rgba(139,26,26,0.7), inset 0 1px 0 rgba(255,150,150,0.2) !important;
}

.nav-play-btn::after { display: none !important; }

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

.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

/* CSS-only stone/parchment textures via gradients */
.hero-bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-stone {
  background:
    /* fine crosshatch noise */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(0,0,0,0.03) 3px,
      rgba(0,0,0,0.03) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(0,0,0,0.02) 3px,
      rgba(0,0,0,0.02) 4px
    ),
    /* large stone-block silhouettes */
    repeating-linear-gradient(
      180deg,
      rgba(40,22,8,0.8) 0px,
      rgba(30,15,5,0.9) 80px,
      rgba(50,28,10,0.7) 160px,
      rgba(25,12,4,0.95) 240px
    ),
    /* base radial gradient */
    radial-gradient(ellipse at 50% 30%, #3d2510 0%, #1a0e05 60%, #0d0603 100%);
  z-index: 0;
}

.hero-parchment {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(200,168,75,0.08) 0%, transparent 65%),
    radial-gradient(ellipse at 20% 80%, rgba(139,26,26,0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 20%, rgba(200,168,75,0.05) 0%, transparent 35%);
  z-index: 1;
}

.hero-vignette {
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.75) 100%);
  z-index: 2;
}

/* Parallax handled by JS */
.hero-stone { transform-origin: center center; }

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

.particle {
  position: absolute;
  display: block;
  border-radius: 50%;
  animation: particleDrift linear infinite;
  opacity: 0;
}

/* Assign different sizes, positions, durations per nth-child */
.particle:nth-child(1)  { width:3px;  height:3px;  left:5%;  background:rgba(200,168,75,0.6); animation-duration:12s; animation-delay:0s;    bottom:-10px; }
.particle:nth-child(2)  { width:2px;  height:2px;  left:12%; background:rgba(232,201,106,0.4); animation-duration:9s;  animation-delay:1.5s;  bottom:-10px; }
.particle:nth-child(3)  { width:4px;  height:4px;  left:22%; background:rgba(200,168,75,0.5); animation-duration:14s; animation-delay:3s;    bottom:-10px; }
.particle:nth-child(4)  { width:2px;  height:2px;  left:30%; background:rgba(232,201,106,0.3); animation-duration:10s; animation-delay:0.8s;  bottom:-10px; }
.particle:nth-child(5)  { width:5px;  height:5px;  left:40%; background:rgba(200,168,75,0.4); animation-duration:16s; animation-delay:2s;    bottom:-10px; }
.particle:nth-child(6)  { width:2px;  height:2px;  left:55%; background:rgba(255,230,150,0.5); animation-duration:11s; animation-delay:4s;    bottom:-10px; }
.particle:nth-child(7)  { width:3px;  height:3px;  left:65%; background:rgba(200,168,75,0.6); animation-duration:13s; animation-delay:1s;    bottom:-10px; }
.particle:nth-child(8)  { width:2px;  height:2px;  left:75%; background:rgba(232,201,106,0.4); animation-duration:8s;  animation-delay:2.5s;  bottom:-10px; }
.particle:nth-child(9)  { width:4px;  height:4px;  left:83%; background:rgba(200,168,75,0.5); animation-duration:15s; animation-delay:0.5s;  bottom:-10px; }
.particle:nth-child(10) { width:2px;  height:2px;  left:90%; background:rgba(255,230,150,0.3); animation-duration:10s; animation-delay:3.5s;  bottom:-10px; }
.particle:nth-child(11) { width:3px;  height:3px;  left:8%;  background:rgba(139,26,26,0.4);  animation-duration:18s; animation-delay:5s;    bottom:-10px; }
.particle:nth-child(12) { width:2px;  height:2px;  left:48%; background:rgba(200,168,75,0.5); animation-duration:12s; animation-delay:6s;    bottom:-10px; }
.particle:nth-child(13) { width:5px;  height:5px;  left:60%; background:rgba(139,26,26,0.3);  animation-duration:20s; animation-delay:2.2s;  bottom:-10px; }
.particle:nth-child(14) { width:2px;  height:2px;  left:35%; background:rgba(232,201,106,0.6); animation-duration:9s;  animation-delay:7s;    bottom:-10px; }
.particle:nth-child(15) { width:3px;  height:3px;  left:18%; background:rgba(200,168,75,0.4); animation-duration:13s; animation-delay:1.8s;  bottom:-10px; }
.particle:nth-child(16) { width:2px;  height:2px;  left:70%; background:rgba(255,220,120,0.5); animation-duration:11s; animation-delay:4.5s;  bottom:-10px; }
.particle:nth-child(17) { width:4px;  height:4px;  left:25%; background:rgba(200,168,75,0.3); animation-duration:17s; animation-delay:0.3s;  bottom:-10px; }
.particle:nth-child(18) { width:2px;  height:2px;  left:88%; background:rgba(232,201,106,0.5); animation-duration:14s; animation-delay:5.5s;  bottom:-10px; }
.particle:nth-child(19) { width:3px;  height:3px;  left:44%; background:rgba(200,168,75,0.6); animation-duration:10s; animation-delay:8s;    bottom:-10px; }
.particle:nth-child(20) { width:5px;  height:5px;  left:96%; background:rgba(139,26,26,0.3);  animation-duration:22s; animation-delay:3s;    bottom:-10px; }

@keyframes particleDrift {
  0%   { transform: translateY(0) translateX(0);   opacity: 0; }
  5%   { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-110vh) translateX(30px); opacity: 0; }
}

/* ─── Hero Content ─── */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 8rem 2rem 4rem;
}

/* Emblem */
.hero-emblem {
  position: relative;
  width: 90px; height: 90px;
  margin: 0 auto 2rem;
}

.emblem-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(200,168,75,0.5);
  animation: emblemSpin 20s linear infinite;
  box-shadow: 0 0 10px rgba(200,168,75,0.3), inset 0 0 10px rgba(200,168,75,0.1);
}

.emblem-ring-2 {
  inset: 8px;
  border: 1px solid rgba(200,168,75,0.3);
  animation: emblemSpin 14s linear infinite reverse;
}

.emblem-rune {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(200,168,75,0.8);
  filter: drop-shadow(0 0 8px rgba(200,168,75,0.5));
}

@keyframes emblemSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── Hero Title ─── */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 15vw, 11rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.02em;
}

.title-letter {
  display: inline-block;
  color: transparent;
  background: linear-gradient(180deg, #ffe082 0%, var(--gold) 40%, var(--gold-dark) 70%, #5a3e10 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(200,168,75,0.6)) drop-shadow(0 4px 8px rgba(0,0,0,0.8));
  animation: letterReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i) * 0.12s + 0.2s);
  position: relative;
}

@keyframes letterReveal {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(0.8);
    filter: drop-shadow(0 0 40px rgba(200,168,75,1)) drop-shadow(0 4px 8px rgba(0,0,0,0.8));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 20px rgba(200,168,75,0.6)) drop-shadow(0 4px 8px rgba(0,0,0,0.8));
  }
}

/* Glow pulse on title */
.hero-title::after {
  content: 'TERR';
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: clamp(5rem, 15vw, 11rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--gold);
  opacity: 0;
  animation: titleGlowPulse 3s ease-in-out 1.2s infinite;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 0 60px rgba(200,168,75,0.8), 0 0 120px rgba(200,168,75,0.4);
  z-index: -1;
}

@keyframes titleGlowPulse {
  0%, 100% { opacity: 0; }
  50%       { opacity: 0.25; }
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  color: var(--cream);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease 0.7s both;
  text-shadow: 0 0 20px rgba(200,168,75,0.4);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 550px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease 0.9s both;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease 1.1s both;
}

/* ─── Hero Stats ─── */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease 1.3s both;
  background: rgba(0,0,0,0.35);
  border: var(--border-gold);
  border-radius: 4px;
  padding: 1rem 2rem;
  backdrop-filter: blur(4px);
  max-width: fit-content;
  margin: 0 auto;
}

.stat-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--gold-bright);
  line-height: 1;
  text-shadow: var(--glow-gold);
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--gold-dim), transparent);
}

/* ─── Scroll hint ─── */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s ease 2s both;
}

.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--gold-dim);
  border-bottom: 2px solid var(--gold-dim);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.6; }
  50%       { transform: rotate(45deg) translateY(4px); opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: 3px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, #a82020 0%, var(--blood-red) 50%, #6b1010 100%);
  color: var(--cream);
  border: 1px solid rgba(200,100,100,0.5);
  box-shadow: 0 4px 20px rgba(139,26,26,0.5), inset 0 1px 0 rgba(255,150,150,0.15);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #c03030, #a82020 50%, var(--blood-red));
  box-shadow: 0 6px 30px rgba(139,26,26,0.7), inset 0 1px 0 rgba(255,180,180,0.2);
  transform: translateY(-2px);
}

.btn-glow {
  animation: btnGlowPulse 3s ease-in-out infinite;
}

@keyframes btnGlowPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(139,26,26,0.5), inset 0 1px 0 rgba(255,150,150,0.15); }
  50%       { box-shadow: 0 6px 35px rgba(139,26,26,0.8), 0 0 20px rgba(200,50,50,0.3), inset 0 1px 0 rgba(255,150,150,0.2); }
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(50,28,10,0.9), rgba(30,15,5,0.95));
  color: var(--gold);
  border: 1px solid rgba(200,168,75,0.5);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4), inset 0 1px 0 rgba(200,168,75,0.1);
}

.btn-secondary:hover {
  color: var(--gold-bright);
  background: linear-gradient(135deg, rgba(70,40,15,0.95), rgba(45,22,8,0.98));
  box-shadow: 0 6px 25px rgba(0,0,0,0.5), 0 0 15px rgba(200,168,75,0.2), inset 0 1px 0 rgba(200,168,75,0.2);
  transform: translateY(-2px);
}

.btn-icon { font-size: 1.1em; }

/* ══════════════════════════════════════════════════════════════
   STONE PANEL (reusable card style)
══════════════════════════════════════════════════════════════ */
.stone-panel {
  background:
    linear-gradient(180deg, rgba(50,28,10,0.95) 0%, rgba(26,14,5,0.98) 100%);
  border: var(--border-gold);
  border-top: 2px solid rgba(200,168,75,0.5);
  box-shadow:
    var(--shadow-panel),
    inset 0 1px 0 rgba(200,168,75,0.15);
  position: relative;
  overflow: hidden;
}

.stone-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}

.stone-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(0,0,0,0.05) 40px,
      rgba(0,0,0,0.05) 41px
    );
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   LORE BAND
══════════════════════════════════════════════════════════════ */
.lore-band {
  background:
    linear-gradient(90deg, var(--deep-brown), var(--dark-brown) 20%, var(--mid-brown) 50%, var(--dark-brown) 80%, var(--deep-brown));
  border-top: 1px solid rgba(200,168,75,0.3);
  border-bottom: 1px solid rgba(200,168,75,0.3);
  padding: 1.2rem 2rem;
}

.lore-band-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: var(--cream-dark);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.lore-rune {
  color: var(--gold);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   SECTION HEADER (ornament + title)
══════════════════════════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  justify-content: center;
}

.section-ornament {
  flex: 1;
  max-width: 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  position: relative;
}

.section-ornament::before {
  content: '◆';
  position: absolute;
  right: -0.5em;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-dim);
  font-size: 0.5rem;
}

.section-header .section-ornament:first-child::before {
  right: auto;
  left: -0.5em;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: var(--cream);
  letter-spacing: 0.06em;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 0 20px rgba(200,168,75,0.3), 0 2px 4px rgba(0,0,0,0.5);
}

/* ══════════════════════════════════════════════════════════════
   FEATURES
══════════════════════════════════════════════════════════════ */
.features {
  background:
    linear-gradient(180deg, var(--deep-brown) 0%, var(--dark-brown) 50%, var(--deep-brown) 100%);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 60px,
      rgba(200,168,75,0.015) 60px,
      rgba(200,168,75,0.015) 61px
    );
  pointer-events: none;
}

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

.feature-card {
  padding: 2.5rem 2rem;
  border-radius: 4px;
  transition: transform 0.3s, box-shadow 0.3s;
  animation-delay: var(--delay, 0s);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.7),
    0 0 20px rgba(200,168,75,0.1),
    inset 0 0 30px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(200,168,75,0.2);
}

.feature-icon-wrap {
  position: relative;
  width: 70px; height: 70px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,168,75,0.15) 0%, rgba(200,168,75,0.05) 50%, transparent 70%);
  border: 1px solid rgba(200,168,75,0.3);
  box-shadow: 0 0 20px rgba(200,168,75,0.1), inset 0 0 15px rgba(0,0,0,0.3);
}

.feature-icon {
  font-size: 2rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 8px rgba(200,168,75,0.4));
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px rgba(200,168,75,0.3);
}

.feature-desc {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 1.2rem;
}

.feature-list {
  list-style: none;
  border-top: 1px solid rgba(200,168,75,0.2);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feature-list li {
  color: var(--cream-dark);
  font-size: 0.85rem;
  padding-left: 1.2em;
  position: relative;
}

.feature-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-size: 0.6em;
  top: 0.3em;
}

/* ══════════════════════════════════════════════════════════════
   ABOUT / LORE
══════════════════════════════════════════════════════════════ */
.about {
  background:
    linear-gradient(180deg, var(--deep-brown), var(--stone) 40%, var(--dark-brown) 100%);
  position: relative;
  overflow: hidden;
}

/* Side decorative columns */
.about-deco-left,
.about-deco-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(200,168,75,0.06) 0px,
      rgba(200,168,75,0.06) 2px,
      transparent 2px,
      transparent 20px
    );
  border-right: 1px solid rgba(200,168,75,0.1);
}

.about-deco-left  { left: 0; }
.about-deco-right { right: 0; border-right: none; border-left: 1px solid rgba(200,168,75,0.1); }

.about-inner {
  position: relative;
  z-index: 1;
}

.about-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.parchment-panel {
  background:
    /* parchment texture */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(180,150,80,0.04) 28px,
      rgba(180,150,80,0.04) 29px
    ),
    linear-gradient(160deg, rgba(80,50,15,0.4) 0%, rgba(40,22,8,0.6) 60%, rgba(60,35,12,0.4) 100%);
  border: 1px solid rgba(200,168,75,0.3);
  border-radius: 2px;
  padding: 2.5rem 3rem;
  text-align: left;
  position: relative;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.3), 0 4px 20px rgba(0,0,0,0.5);
}

.parchment-panel::before,
.parchment-panel::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--gold-dim);
  border-style: solid;
}

.parchment-panel::before {
  top: 8px; left: 8px;
  border-width: 1px 0 0 1px;
}

.parchment-panel::after {
  bottom: 8px; right: 8px;
  border-width: 0 1px 1px 0;
}

.parchment-panel p {
  color: var(--cream-dark);
  font-size: 1.02rem;
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

.parchment-panel p:last-child { margin-bottom: 0; }

.parchment-panel strong {
  color: var(--gold);
  font-weight: 600;
}

.parchment-panel em {
  color: var(--cream);
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════════
   SKILLS STRIP
══════════════════════════════════════════════════════════════ */
.skills-strip {
  background:
    linear-gradient(180deg, var(--dark-brown), var(--deep-brown));
  border-top: 1px solid rgba(200,168,75,0.2);
  border-bottom: 1px solid rgba(200,168,75,0.2);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.skill-chip {
  background: linear-gradient(135deg, rgba(60,35,12,0.9), rgba(30,15,5,0.95));
  border: var(--border-gold);
  border-radius: 3px;
  padding: 0.6rem 1.2rem;
  color: var(--cream-dark);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  cursor: default;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.skill-chip:hover {
  background: linear-gradient(135deg, rgba(80,50,18,0.95), rgba(45,22,8,0.98));
  color: var(--gold-bright);
  border-color: rgba(200,168,75,0.7);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 10px rgba(200,168,75,0.15);
  transform: translateY(-2px);
}

.skill-icon { font-size: 1.1em; }

/* ══════════════════════════════════════════════════════════════
   NEWS
══════════════════════════════════════════════════════════════ */
.news-section {
  background:
    linear-gradient(180deg, var(--deep-brown) 0%, var(--dark-brown) 100%);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-bottom: 3rem;
}

.news-card {
  padding: 0;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
  animation-delay: var(--delay, 0s);
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.7), 0 0 15px rgba(200,168,75,0.08);
}

.news-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--blood-red), #6b1010);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 0 0 3px 0;
  margin-bottom: 0.3rem;
  width: fit-content;
}

.news-tag-upcoming {
  background: linear-gradient(135deg, var(--gold-dark), #6b5420);
  color: var(--cream);
}

.news-tag-event {
  background: linear-gradient(135deg, #1a5c2a, #0e3318);
  color: var(--cream);
}

.news-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 0 1.5rem 0.5rem;
}

.news-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--cream);
  line-height: 1.4;
  margin: 0 1.5rem 0.8rem;
  letter-spacing: 0.02em;
}

.news-excerpt {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.75;
  flex: 1;
  padding: 0 1.5rem;
  margin-bottom: 1.2rem;
}

.news-read-more {
  color: var(--gold-dark);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  font-weight: bold;
  padding: 0 1.5rem 1.5rem;
  transition: color 0.2s;
  display: block;
  margin-top: auto;
}

.news-card:hover .news-read-more {
  color: var(--gold);
}

.news-cta {
  text-align: center;
}

/* ══════════════════════════════════════════════════════════════
   COMMUNITY
══════════════════════════════════════════════════════════════ */
.community {
  background:
    linear-gradient(180deg, var(--dark-brown) 0%, var(--stone) 50%, var(--dark-brown) 100%);
  position: relative;
  overflow: hidden;
}

.community::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(200,168,75,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.community-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.community-sub {
  color: var(--text-dim);
  font-size: 1.02rem;
  max-width: 560px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.community-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.community-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, rgba(50,28,10,0.9), rgba(26,14,5,0.95));
  border: var(--border-gold);
  border-radius: 4px;
  padding: 1.4rem 2rem;
  min-width: 130px;
  transition: all 0.25s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.community-btn:hover {
  background: linear-gradient(135deg, rgba(70,42,15,0.95), rgba(40,22,8,0.98));
  border-color: rgba(200,168,75,0.6);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5), 0 0 15px rgba(200,168,75,0.12);
  transform: translateY(-4px);
}

.comm-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 6px rgba(200,168,75,0.3));
}

.comm-label {
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.comm-desc {
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--deep-brown);
  border-top: 1px solid rgba(200,168,75,0.2);
  position: relative;
}

.footer-stone-top {
  height: 6px;
  background: linear-gradient(90deg,
    var(--deep-brown) 0%,
    var(--gold-dim) 20%,
    var(--deep-brown) 40%,
    var(--gold-dim) 60%,
    var(--deep-brown) 80%,
    var(--gold-dim) 100%
  );
  opacity: 0.4;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 2rem;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.78rem;
  opacity: 0.6;
}

.footer-links-col h4 {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(200,168,75,0.2);
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-col a {
  color: var(--text-dim);
  font-size: 0.88rem;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-links-col a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(200,168,75,0.1);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.78rem;
  opacity: 0.5;
}

/* ══════════════════════════════════════════════════════════════
   FADE-IN ANIMATIONS (JS scroll-triggered)
══════════════════════════════════════════════════════════════ */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════
   NEWS PAGE EXTRAS
══════════════════════════════════════════════════════════════ */
.news-hero {
  background:
    repeating-linear-gradient(
      0deg, transparent, transparent 40px,
      rgba(0,0,0,0.04) 40px, rgba(0,0,0,0.04) 41px
    ),
    linear-gradient(180deg, #0d0603 0%, var(--dark-brown) 100%);
  padding: 10rem 0 5rem;
  text-align: center;
  border-bottom: 1px solid rgba(200,168,75,0.2);
  position: relative;
  overflow: hidden;
}

.news-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(200,168,75,0.06) 0%, transparent 60%);
}

.news-page-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--cream);
  letter-spacing: 0.08em;
  text-shadow: 0 0 30px rgba(200,168,75,0.4), 0 3px 6px rgba(0,0,0,0.6);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.news-page-sub {
  color: var(--text-dim);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.news-full-grid {
  padding: 5rem 0;
  background: var(--dark-brown);
}

.news-full-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.news-full-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 2rem 2.5rem;
  border-radius: 4px;
  align-items: start;
}

.news-full-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 15px rgba(200,168,75,0.08);
}

.news-full-date-col {
  text-align: center;
  min-width: 70px;
}

.news-full-day {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: bold;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.news-full-month {
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-full-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.news-full-body {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.8;
}

.news-full-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .news-grid     { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto 3rem; }
  .footer-inner  { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .news-full-card { grid-template-columns: 1fr; }
  .news-full-date-col { display: flex; align-items: center; gap: 0.5rem; }
}

@media (max-width: 680px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,5,2,0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    font-size: 1.3rem;
    letter-spacing: 0.15em;
  }

  .hero-title { font-size: clamp(4rem, 20vw, 7rem); }
  .hero-content { padding-top: 6rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-stats { flex-wrap: wrap; }

  .features-grid,
  .news-grid { grid-template-columns: 1fr; }

  .section-header { gap: 0.8rem; }
  .section-ornament { max-width: 60px; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }

  .community-links { gap: 1rem; }
  .community-btn { min-width: 100px; padding: 1rem 1.2rem; }

  .parchment-panel { padding: 1.8rem 1.5rem; }

  .lore-band-inner { flex-direction: column; gap: 0.5rem; }

  .about-deco-left, .about-deco-right { display: none; }
}

@media (max-width: 420px) {
  .container { padding: 0 1rem; }
  .section-pad { padding: 4rem 0; }
  .btn { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
}

/* ═══════════════════════════════════════════════════════════════
   [O6] Phase D: the generated pages (play, download, account, rules,
   privacy, terms, status) and the current nav item
   ═══════════════════════════════════════════════════════════════ */
.nav-links a[aria-current="page"] { color: var(--gold-bright); }
.nav-links a.nav-play-btn[aria-current="page"] { color: inherit; }

.doc-hero {
  padding: 9rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid rgba(200,168,75,0.2);
  background: linear-gradient(180deg, #0d0603 0%, var(--dark-brown, #1a0e06) 100%);
}
.doc-hero h1 { color: var(--gold-bright); font-size: clamp(2rem, 5vw, 3rem); letter-spacing: 0.06em; }
.doc-hero p { color: var(--text-dim); margin-top: 0.6rem; }
.doc-body { padding: 3rem 0 5rem; }
.doc-body .container { max-width: 860px; }
.doc-body h2 { color: var(--gold); font-size: 1.35rem; margin: 2.2rem 0 0.8rem; }
.doc-body h3 { color: var(--cream); font-size: 1.1rem; margin: 1.6rem 0 0.6rem; }
.doc-body p, .doc-body li { color: var(--cream); line-height: 1.8; }
.doc-body p { margin-bottom: 1rem; }
.doc-body ul, .doc-body ol { margin: 0 0 1rem 1.4rem; }
.doc-body code, .doc-body pre {
  font-family: ui-monospace, "DejaVu Sans Mono", monospace;
  background: rgba(20,10,3,0.8); border: 1px solid rgba(200,168,75,0.25); border-radius: 3px;
}
.doc-body code { padding: 0.05rem 0.35rem; font-size: 0.9em; }
.doc-body pre { padding: 0.8rem 1rem; overflow-x: auto; margin-bottom: 1rem; }
.doc-body pre code { border: none; padding: 0; background: none; }
.doc-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0 2rem; }
.doc-note { color: var(--text-dim); font-size: 0.9rem; }

.owner-text {
  border: 1px dashed rgba(220,120,60,0.7);
  border-radius: 4px;
  padding: 1rem 1.2rem 0.4rem;
  margin: 1.2rem 0 1.6rem;
  background: rgba(60,20,5,0.35);
}
.draft-banner {
  display: inline-block;
  color: #ffcf9a !important;
  background: rgba(150,50,10,0.55);
  border: 1px solid rgba(255,160,90,0.6);
  border-radius: 3px;
  padding: 0.15rem 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem !important;
}
.news-full-title a { color: inherit; }
