/* ============================================================
   BLOODMOON — The Cursed Realm | United Games Studio
   Game-site stylesheet (multi-page)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --night:        #0a0710;
  --night-2:      #120a13;
  --panel:        #150d17;
  --blood:        #a01020;
  --blood-bright: #d43d4f;
  --blood-deep:   #5e0810;
  --gold:         #e8d9c5;
  --gold-dim:     #c8b591;
  --ink:          #e6ddd2;
  --ink-muted:    #9e968b;
  --line:         rgba(200, 181, 145, 0.16);

  --font-display: "Cinzel", "Georgia", serif;
  --font-body:    "Cormorant", "Georgia", serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--blood); color: var(--gold); }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }

.btn-blood {
  background: linear-gradient(180deg, #a01020 0%, #6b0a14 100%);
  border: 1px solid #45060c;
  color: var(--gold);
  box-shadow: 0 0 22px rgba(138, 12, 26, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn-blood::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255, 230, 210, 0.16), transparent);
  pointer-events: none;
}
.btn-blood:hover {
  background: linear-gradient(180deg, var(--blood-bright), var(--blood));
  border-color: var(--blood-bright);
  box-shadow: 0 0 30px rgba(212, 61, 79, 0.45), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(200, 181, 145, 0.45);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: #fff;
  background: rgba(232, 217, 197, 0.08);
}

.btn-block { display: block; width: 100%; }

/* ============================================================
   PRELOADER (index + subpages)
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: radial-gradient(circle at 50% 40%, #150b12 0%, #0a0710 60%, #050308 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-mark svg { width: 76px; height: 76px; animation: preloadPulse 1.1s ease-in-out infinite; }
.preloader-text {
  font-family: var(--font-display);
  letter-spacing: 0.34em;
  color: var(--gold);
  margin-top: 1.4rem;
  font-size: 1.05rem;
}
@keyframes preloadPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

/* ============================================================
   NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(9, 6, 14, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: 0.14em;
  text-shadow: 0 0 14px rgba(160, 16, 32, 0.55);
}
.logo-mark { width: 28px; height: 28px; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  color: var(--ink-muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.2rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, var(--blood-bright), transparent);
  transition: right 0.3s ease;
}
.nav-links a:hover::after { right: 0; }
.nav-links a.active {
  color: var(--gold);
}
.nav-links a.active::after { right: 0; }

.nav-cta {
  color: var(--gold);
  border: 1px solid rgba(160, 16, 32, 0.55);
  background: rgba(64, 6, 10, 0.45);
  border-radius: 4px;
  padding: 0.5rem 1.1rem;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: rgba(160, 16, 32, 0.5); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 2;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  margin: 5px 0;
  background: var(--gold);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 118%, #170b15 0%, transparent 62%),
    radial-gradient(ellipse at 50% 0%, #0c0812 0%, transparent 55%),
    linear-gradient(180deg, #07050c 0%, #0f0912 55%, #0a0610 100%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 3, 8, 0.55) 92%);
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  top: 7%;
  left: 50%;
  width: min(46vh, 460px);
  height: min(46vh, 460px);
  transform: translate(-50%, 0);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 238, 214, 1) 0%, rgba(255, 226, 196, 0.9) 9%, rgba(244, 188, 150, 0.55) 20%, transparent 24%),
    radial-gradient(circle at 50% 50%, rgba(220, 60, 74, 0.85) 0%, rgba(160, 16, 32, 0.75) 34%, rgba(120, 10, 24, 0.4) 62%, transparent 74%);
  box-shadow: 0 0 70px rgba(190, 40, 60, 0.6), 0 0 160px rgba(140, 10, 28, 0.35);
  animation: moonBreath 7s ease-in-out infinite;
}
@keyframes moonBreath {
  0%, 100% { filter: brightness(1); box-shadow: 0 0 60px rgba(190, 40, 60, 0.5); }
  50% { filter: brightness(1.18); box-shadow: 0 0 90px rgba(210, 50, 70, 0.7); }
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 42%, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

.ember-field {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.skyline {
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 60%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  padding: 0 1.4rem;
  margin-top: 7rem;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-top: 1.8rem;
}

.hero-title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: 0.05em;
  margin: 0.35rem 0 0;
  color: var(--gold);
}
.hero-title-main {
  position: relative;
  z-index: 2;
  text-shadow: 0 0 26px rgba(232, 217, 197, 0.35), 0 0 90px rgba(190, 40, 60, 0.45);
}
.hero-title-aura {
  position: absolute;
  inset: -6%;
  z-index: 1;
  color: transparent;
  text-shadow: 0 0 40px rgba(212, 61, 79, 0.85);
  pointer-events: none;
}

.subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.3vw, 1.6rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blood-bright);
  margin: 0.6rem 0 0.9rem;
}

.hero-tag {
  max-width: 50ch;
  margin: 0 auto;
  color: var(--ink-muted);
  font-size: 1.1rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  margin-top: 1.9rem;
  flex-wrap: wrap;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.hero-meta i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blood-bright);
}

.scroll-hint {
  position: absolute;
  bottom: 2.2%;
  left: 50%;
  transform: translate(-50%, 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-dim);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  animation: hintBob 2.2s ease-in-out infinite;
}
.scroll-hint svg { width: 26px; height: 13px; }
@keyframes hintBob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ============================================================
   PAGE HERO (subpages)
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 6rem;
  background:
    radial-gradient(ellipse at 18% 24%, rgba(160, 16, 32, 0.18), transparent 55%),
    radial-gradient(ellipse at 50% -12%, rgba(232, 217, 197, 0.10), transparent 55%),
    linear-gradient(180deg, #07050c 0%, #0f0912 65%, #0d0812 100%);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 18%, transparent 0%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}
.page-hero .ember-field { inset: 0; }
.page-hero-content {
  position: relative;
  padding: 0 1.4rem;
  max-width: 60rem;
}
.page-hero-content .eyebrow { margin-top: 0; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin: 0.4rem 0 0.4rem;
  text-shadow: 0 0 26px rgba(232, 217, 197, 0.3), 0 0 80px rgba(190, 40, 60, 0.4);
}
.page-hero h1 em { color: var(--blood-bright); font-variant: normal; }
.page-hero .section-lead { margin-top: 1.2rem; font-size: 1.1rem; }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  position: relative;
  background: linear-gradient(90deg, #19070c, #10060a, #19070c);
  border-top: 1px solid rgba(160, 16, 32, 0.35);
  border-bottom: 1px solid rgba(160, 16, 32, 0.25);
  overflow: hidden;
  padding: 0.85rem 0;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 2.4rem;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
  will-change: transform;
}
.ticker-track span {
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blood-bright);
}
.ticker-track i { color: var(--gold-dim); font-size: 0.6rem; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 6rem 1.8rem;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}
.section-bleed {
  background: linear-gradient(180deg, var(--night-2), #0d0912);
  padding: 6rem 1.8rem;
  max-width: none;
  position: relative;
}
.section-bleed::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160, 16, 32, 0.5), transparent);
}

.section-head { text-align: center; }
.kicker {
  font-family: var(--font-display);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.36em;
  color: var(--gold-dim);
  margin: 0;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  text-align: center;
  color: var(--gold);
  margin: 0.4rem 0 0;
  text-shadow: 0 0 22px rgba(160, 16, 32, 0.3);
}
.section-title em { color: var(--blood-bright); font-variant: normal; }
.section-lead {
  text-align: center;
  max-width: 60ch;
  margin: 1.4rem auto 0;
  color: var(--ink-muted);
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  margin: 1.1rem 0 0;
}
.ornament span {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blood), transparent);
}
.ornament i {
  color: var(--blood-bright);
  font-size: 0.8rem;
  text-shadow: 0 0 8px rgba(212, 61, 79, 0.8);
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
  margin-top: 3.4rem;
}
.stat {
  background: linear-gradient(165deg, var(--panel), #0d0911);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  padding: 2rem 1.5rem;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blood), transparent);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.9rem;
  color: var(--gold);
  margin: 0;
  text-shadow: 0 0 18px rgba(232, 217, 197, 0.25);
}
.stat-num::after { content: attr(data-suffix); }
.stat-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0.8rem 0 0;
}

/* ============================================================
   STORY
   ============================================================ */
.story-lead {
  max-width: 72ch;
  margin: 3rem auto 0;
}
.story-lead p { margin: 0 0 1.3rem; color: var(--ink); }
.story-lead strong { color: var(--gold); }
.drop::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: 0.9;
  color: var(--blood-bright);
  text-shadow: 0 0 10px rgba(212, 61, 79, 0.6);
  padding-right: 0.35rem;
}

.story-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.7rem;
  margin-top: 2.6rem;
}
.story-card {
  background: linear-gradient(160deg, var(--panel) 0%, #0e0911 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.9rem 1.6rem 1.7rem;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.story-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 61, 79, 0.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 26px rgba(160, 16, 32, 0.35);
}
.card-num {
  font-family: var(--font-display);
  color: var(--blood-deep);
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}
.story-card h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.18rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
}
.story-card p:not(.card-num) { font-size: 0.97rem; color: var(--ink-muted); line-height: 1.6; }

/* ============================================================
   FACTIONS
   ============================================================ */
.bloodmist {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background:
    radial-gradient(ellipse 40% 26% at 30% 30%, rgba(160, 16, 32, 0.16), transparent),
    radial-gradient(ellipse 40% 26% at 75% 55%, rgba(160, 16, 32, 0.12), transparent),
    radial-gradient(ellipse 50% 30% at 50% 90%, rgba(190, 40, 60, 0.14), transparent);
}

.faction-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 2.4rem;
  margin-top: 2.8rem;
}
.faction-card {
  position: relative;
  background: linear-gradient(175deg, #180d14, #0e0810 60%, #0a0610);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2.6rem 2rem 2.3rem;
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.faction-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blood-bright), transparent);
}
.faction-card.werewolf::before {
  background: linear-gradient(90deg, transparent, #aab3bb, transparent);
}
.faction-card.is-hover {
  transform: translateY(-8px);
  border-color: rgba(212, 61, 79, 0.55);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 34px rgba(160, 16, 32, 0.4);
}
.faction-card.werewolf.is-hover {
  border-color: rgba(178, 187, 199, 0.55);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 34px rgba(189, 198, 211, 0.4);
}

.faction-art { margin: 0 0 0.8rem; }
.faction-art svg {
  width: 108px; height: 108px;
  animation: factionFloat 5.5s ease-in-out infinite;
}
@keyframes factionFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.faction-eyebrow {
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 0.2rem;
}
.faction-card h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--gold);
  margin: 0;
  text-shadow: 0 0 24px rgba(210, 40, 60, 0.35);
}
.faction-card.werewolf h3 { text-shadow: 0 0 24px rgba(200, 210, 224, 0.35); }
.faction-line {
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--blood-bright);
  margin: 0.25rem 0 1rem;
}
.faction-card.werewolf .faction-line { color: #b9c0c7; }
.faction-copy { font-size: 1rem; color: var(--ink); line-height: 1.55; margin: 0 0 1.2rem; }

.faction-abilities {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 1.6rem;
}
.faction-abilities li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--gold-dim);
  font-size: 0.96rem;
}
.faction-abilities li::before {
  content: "◆";
  position: absolute;
  left: 0.2rem;
  color: var(--blood-bright);
  font-size: 0.68rem;
  text-shadow: 0 0 6px rgba(212, 61, 79, 0.8);
}
.faction-card.werewolf .faction-abilities li::before { color: #aab3bb; }

.faction-note {
  text-align: center;
  color: var(--ink-muted);
  max-width: 64ch;
  margin: 2.6rem auto 0;
  font-style: italic;
}

/* ============================================================
   WORLD
   ============================================================ */
.world-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.7rem;
  margin-top: 2.6rem;
}
.world-card {
  background: linear-gradient(165deg, var(--panel), #0d0912);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.7rem 1.5rem 1.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.world-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 61, 79, 0.45);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.6), 0 0 22px rgba(160, 16, 32, 0.3);
}
.world-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.6rem;
}
.world-card p { margin: 0; color: var(--ink-muted); font-size: 0.96rem; line-height: 1.55; }
.world-card-wild:hover { border-color: rgba(255, 90, 90, 0.6); }
.world-card-wild h3 { color: var(--blood-bright); }

.world-excerpt {
  max-width: 66ch;
  margin: 2.6rem auto 0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-dim);
  border-radius: 10px;
  padding: 1.8rem 1.7rem;
  background: linear-gradient(160deg, var(--panel), #0e0911);
  font-style: italic;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.5);
}
.excerpt-label {
  font-family: var(--font-display);
  color: var(--gold-dim);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.world-excerpt p:not(.excerpt-label):not(.diary-sign) { font-size: 1rem; color: var(--ink); line-height: 1.65; }
.diary-sign { text-align: right; font-size: 0.86rem; color: var(--ink-muted); margin-top: 0.8rem; }

/* ============================================================
   GAMEPLAY FLOW
   ============================================================ */
.session-flow {
  list-style: none;
  counter-reset: step;
  max-width: 46rem;
  margin: 2.6rem auto 0;
  padding: 0;
}
.session-flow li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 0.9rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.session-flow li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  color: var(--blood-bright);
  font-size: 1.1rem;
  text-shadow: 0 0 8px rgba(212, 61, 79, 0.55);
}
.session-flow strong {
  font-family: var(--font-display);
  color: var(--gold);
  letter-spacing: 0.05em;
}
.session-flow p { margin: 0.15rem 0 0; color: var(--ink-muted); font-size: 0.96rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 2.6rem;
}
.feature {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 10, 17, 0.8);
  padding: 1.5rem 1.3rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 217, 197, 0.4);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.55), 0 0 22px rgba(232, 217, 197, 0.2);
}
.feature h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.01rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}
.feature p { margin: 0.6rem 0 0; color: var(--ink-muted); font-size: 0.94rem; line-height: 1.5; }

/* ============================================================
   TIMELINE (story page)
   ============================================================ */
.timeline {
  position: relative;
  max-width: 46rem;
  margin: 3rem auto 0;
  padding-left: 2.2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.6rem; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--blood-bright), rgba(160, 16, 32, 0.1));
}
.timeline-item {
  position: relative;
  padding: 0 0 2rem 2.6rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0.34rem; top: 0.5rem;
  width: 0.72rem; height: 0.72rem;
  border-radius: 50%;
  border: 2px solid var(--blood-bright);
  background: var(--night-2);
  box-shadow: 0 0 10px rgba(212, 61, 79, 0.7);
}
.timeline-item:last-child { padding-bottom: 0.4rem; }
.timeline-epoch {
  font-family: var(--font-display);
  color: var(--gold-dim);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
}
.timeline-item h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.22rem;
  margin: 0.3rem 0 0.5rem;
}
.timeline-item p { color: var(--ink-muted); font-size: 0.99rem; line-height: 1.6; }

/* ============================================================
   COMPARE (factions page)
   ============================================================ */
.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.7rem;
  margin-top: 2.8rem;
}
.compare-col {
  background: linear-gradient(165deg, var(--panel), #0d0912);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.6rem 1.4rem;
}
.compare-col h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}
.compare-list { list-style: none; padding: 0; margin: 0; }
.compare-list li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.35rem 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(200, 181, 145, 0.08);
}
.compare-list li::before { content: "◆"; color: var(--blood-bright); font-size: 0.62rem; }

/* ============================================================
   FAQ (join page)
   ============================================================ */
.faq {
  max-width: 46rem;
  margin: 2.4rem auto 0;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 11, 18, 0.8);
  margin-bottom: 0.8rem;
  padding: 0;
}
.faq summary {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  color: var(--gold);
  padding: 1rem 1.3rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  color: var(--blood-bright);
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  padding: 0.9rem 1.3rem 1rem;
  color: var(--ink-muted);
  font-size: 0.97rem;
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   NEWS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.7rem;
  margin-top: 2.6rem;
}
.news-card {
  background: linear-gradient(160deg, var(--panel), #0d0912);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.7rem 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 61, 79, 0.45);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.6), 0 0 24px rgba(160, 16, 32, 0.3);
}
.news-date {
  font-family: var(--font-display);
  color: var(--ink-muted);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}
.news-card h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.6rem;
}
.news-card p:not(.news-date):not(.news-link) { font-size: 0.96rem; color: var(--ink-muted); line-height: 1.55; }
.news-link {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--blood-bright);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.7rem;
}

/* ============================================================
   JOIN
   ============================================================ */
.join {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.join-moon {
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translate(-50%, 0);
  width: 260px; height: 260px;
  border-radius: 50%;
  opacity: 0.5;
  background: radial-gradient(circle, rgba(232, 217, 197, 0.5) 0%, rgba(200, 60, 80, 0.4) 40%, transparent 72%);
  pointer-events: none;
}
.join-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  max-width: 36rem;
  margin: 1.9rem auto 0;
}
.join-form input {
  flex: 1 1 17rem;
  background: rgba(12, 8, 14, 0.9);
  border: 1px solid rgba(200, 181, 145, 0.35);
  border-radius: 5px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 0.9rem 1.1rem;
}
.join-form input:focus {
  outline: none;
  border-color: var(--blood-bright);
  box-shadow: 0 0 0 0.15rem rgba(212, 61, 79, 0.35);
}
.form-status {
  min-height: 1.5rem;
  margin: 1rem auto 0;
  color: var(--gold-dim);
  font-size: 0.95rem;
  max-width: 42rem;
}
.form-status.error { color: var(--blood-bright); }
.form-status.success { color: var(--gold); }
.join-note { margin-top: 1.2rem; color: var(--ink-muted); font-size: 0.87rem; }

/* ============================================================
   MODAL
   ============================================================ */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 9, 0.78);
}
.modal-card {
  position: relative;
  background: linear-gradient(170deg, #150d17, #0d0812);
  border: 1px solid rgba(212, 61, 79, 0.5);
  border-radius: 16px;
  padding: 2.4rem 2.2rem;
  max-width: 24rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 40px rgba(160, 16, 32, 0.4);
  text-align: center;
  animation: modalIn 0.35s ease;
}
@keyframes modalIn {
  from { transform: translateY(24px) scale(0.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  background: none;
  border: none;
  color: var(--gold-dim);
  font-size: 1rem;
  cursor: pointer;
}
.modal-moon svg { width: 84px; height: 84px; margin: 0 auto; display: block; }
.modal-card h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.4rem;
  margin: 0.8rem 0 0.7rem;
}
.modal-card p {
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 0 1.4rem;
}

/* ============================================================
   404
   ============================================================ */
.notfound {
  min-height: 84vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 7rem;
}
.notfound h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 6rem);
  color: var(--blood-bright);
  margin: 0 0 0.6rem;
  text-shadow: 0 0 40px rgba(212, 61, 79, 0.6);
}
.notfound p {
  color: var(--ink-muted);
  font-size: 1.15rem;
  max-width: 40ch;
  margin: 0 0 2rem;
}
.notfound .hero-meta { display: none; }

/* ============================================================
   CTA LINE + CARD LINKS
   ============================================================ */
.cta-line {
  text-align: center;
  margin-top: 2.4rem;
}
.card-link {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--blood-bright);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.8rem;
  text-decoration: none;
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}
.card-link:hover { color: var(--gold); letter-spacing: 0.16em; }

/* ============================================================
   REGISTER / CREATE ACCOUNT
   ============================================================ */
.create-form {
  max-width: 30rem;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.create-field { display: flex; flex-direction: column; gap: 0.35rem; }
.create-field label {
  font-family: var(--font-display);
  color: var(--gold-dim);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.create-field input {
  background: rgba(12, 8, 14, 0.95);
  border: 1px solid rgba(200, 181, 145, 0.35);
  border-radius: 5px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 0.9rem 1.1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.create-field input:focus {
  outline: none;
  border-color: var(--blood-bright);
  box-shadow: 0 0 0 0.15rem rgba(212, 61, 79, 0.35);
}
.create-hint {
  color: var(--ink-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, #08060d, #06040a);
  border-top: 1px solid rgba(160, 16, 32, 0.3);
  padding: 2.6rem 1.8rem 2.2rem;
  text-align: center;
}
.footer-brand {
  font-family: var(--font-display);
  color: var(--gold);
  letter-spacing: 0.14em;
  margin: 0;
  text-shadow: 0 0 14px rgba(160, 16, 32, 0.4);
}
.footer-brand span { color: var(--ink-muted); }
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin: 1.1rem 0 0;
  padding: 0;
}
.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.footer-links a:hover { color: var(--gold); }
.footer-legal { margin: 1.3rem 0 0; color: var(--ink-muted); font-size: 0.82rem; letter-spacing: 0.04em; }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(7, 5, 11, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 6rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .hero-title { font-size: clamp(2.4rem, 13vw, 4.2rem); }
  .hero { min-height: 96vh; }
  .page-hero h1 { font-size: clamp(2rem, 9vw, 3.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}