/* ================================================================
   RIFT REAPER — weekly PvP bounty site
   Palette: midnight obsidian, rift violet, vigil gold, defiant cyan
   ================================================================ */

:root {
  --bg-0: #07050f;
  --bg-1: #0b0716;
  --bg-2: #120a26;
  --bg-3: #1a1033;
  --ink-0: #f5f0ff;
  --ink-1: #cfc4e8;
  --ink-2: #8b81a8;
  --ink-3: #5a527a;

  --rift-300: #c4a3ff;
  --rift-500: #a855f7;
  --rift-600: #7c3aed;
  --rift-700: #5b21b6;

  --gold-300: #ffe39a;
  --gold-500: #d4af37;
  --gold-600: #b8902d;

  --cyan-300: #7eeaff;
  --cyan-500: #00d4ff;
  --cyan-600: #0099c4;

  --blood-500: #d4163c;
  --blood-600: #a01030;

  --border: rgba(168, 130, 240, 0.18);
  --border-strong: rgba(168, 130, 240, 0.4);

  --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.35);
  --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.35);

  --serif: "Cinzel", "Trajan Pro", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-1);
  background: var(--bg-0);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--rift-300); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-300); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink-0);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.15;
  margin: 0 0 .5em;
}

/* ============= ambient background ============= */

.bg-stars {
  position: fixed; inset: 0;
  background:
    radial-gradient(2px 2px at 12% 18%, rgba(255,255,255,.7), transparent 50%),
    radial-gradient(1px 1px at 25% 60%, rgba(255,255,255,.6), transparent 50%),
    radial-gradient(2px 2px at 40% 80%, rgba(196,163,255,.7), transparent 50%),
    radial-gradient(1px 1px at 55% 30%, rgba(255,255,255,.5), transparent 50%),
    radial-gradient(1px 1px at 70% 70%, rgba(126,234,255,.6), transparent 50%),
    radial-gradient(2px 2px at 85% 22%, rgba(255,227,154,.5), transparent 50%),
    radial-gradient(1px 1px at 92% 78%, rgba(255,255,255,.6), transparent 50%),
    radial-gradient(1px 1px at 8% 90%, rgba(196,163,255,.5), transparent 50%),
    linear-gradient(180deg, #07050f 0%, #0b0716 40%, #120a26 100%);
  z-index: -2;
  pointer-events: none;
}

.bg-rift {
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.rift-portal {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  mix-blend-mode: screen;
  animation: drift 22s ease-in-out infinite alternate;
}

.rift-portal.r1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(168,85,247,.9), rgba(124,58,237,.4) 40%, transparent 70%);
  top: -10%; left: -8%;
}
.rift-portal.r2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0,212,255,.7), rgba(0,153,196,.3) 40%, transparent 70%);
  top: 30%; right: -12%;
  animation-duration: 28s;
}
.rift-portal.r3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(212,175,55,.5), rgba(184,144,45,.25) 40%, transparent 70%);
  bottom: -10%; left: 40%;
  animation-duration: 34s;
}

@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(40px,-30px) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .rift-portal { animation: none; }
}

/* film grain + vignette for atmosphere */
.bg-grain {
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .25;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.bg-vignette {
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 40%, transparent 30%, rgba(7,5,15,.75) 100%);
}

/* ============= hero great rift ============= */

.hero-rift {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(1400px, 100vw);
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.rift-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 600px;
  max-width: 90vw;
  background:
    radial-gradient(ellipse 28% 75% at 50% 50%,
      rgba(255,255,255,1) 0%,
      rgba(255,227,154,.95) 4%,
      rgba(212,175,55,.85) 9%,
      rgba(168,85,247,.65) 22%,
      rgba(124,58,237,.45) 40%,
      rgba(91,33,182,.25) 60%,
      transparent 80%);
  filter: blur(6px);
  animation: rift-breathe 5s ease-in-out infinite;
}

.rift-beam {
  position: absolute;
  top: 5%; left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 90%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(168,85,247,.6) 8%,
    rgba(255,227,154,.95) 25%,
    rgba(255,255,255,1) 50%,
    rgba(255,227,154,.95) 75%,
    rgba(168,85,247,.6) 92%,
    transparent 100%);
  border-radius: 50%;
  box-shadow:
    0 0 12px 4px rgba(255,255,255,.85),
    0 0 40px 14px rgba(255,227,154,.6),
    0 0 90px 30px rgba(168,85,247,.55),
    0 0 180px 60px rgba(124,58,237,.4),
    0 0 280px 100px rgba(91,33,182,.25);
}

.rift-flare {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90%; height: 12px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(168,85,247,.4) 25%,
    rgba(255,227,154,.85) 45%,
    rgba(255,255,255,.95) 50%,
    rgba(255,227,154,.85) 55%,
    rgba(168,85,247,.4) 75%,
    transparent 100%);
  filter: blur(4px);
  opacity: .75;
  animation: rift-flare-pulse 6s ease-in-out infinite;
}

@keyframes rift-breathe {
  0%, 100% { opacity: .85; transform: translate(-50%, -50%) scaleX(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scaleX(1.15); }
}
.rift-beam {
  /* override transform-using keyframes */
  animation: rift-beam-breathe 4s ease-in-out infinite;
}
@keyframes rift-beam-breathe {
  0%, 100% { opacity: .9; transform: translateX(-50%) scaleX(1); }
  50%      { opacity: 1;  transform: translateX(-50%) scaleX(1.6); }
}
@keyframes rift-flare-pulse {
  0%, 100% { opacity: .4; }
  50%      { opacity: .9; }
}

/* floating embers / shards */
.rift-shards {
  position: absolute; inset: 0;
  overflow: hidden;
}
.rift-shards span {
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,227,154,1), rgba(212,175,55,.3) 60%, transparent 80%);
  box-shadow: 0 0 12px rgba(212,175,55,.8), 0 0 24px rgba(168,85,247,.6);
  opacity: 0;
  animation: ember-rise 8s linear infinite;
}
.rift-shards span:nth-child(1)  { left: 46%; animation-delay: 0s;   animation-duration: 9s;  width: 3px; height: 3px; }
.rift-shards span:nth-child(2)  { left: 52%; animation-delay: 1.2s; animation-duration: 7s;  }
.rift-shards span:nth-child(3)  { left: 48%; animation-delay: 2.4s; animation-duration: 10s; width: 5px; height: 5px; }
.rift-shards span:nth-child(4)  { left: 54%; animation-delay: 3.1s; animation-duration: 8s;  }
.rift-shards span:nth-child(5)  { left: 44%; animation-delay: 4.0s; animation-duration: 11s; width: 2px; height: 2px; }
.rift-shards span:nth-child(6)  { left: 50%; animation-delay: 0.6s; animation-duration: 9.5s; }
.rift-shards span:nth-child(7)  { left: 56%; animation-delay: 5.2s; animation-duration: 8.5s; width: 4px; height: 4px; }
.rift-shards span:nth-child(8)  { left: 42%; animation-delay: 1.8s; animation-duration: 12s; }
.rift-shards span:nth-child(9)  { left: 58%; animation-delay: 3.6s; animation-duration: 7.5s; width: 3px; height: 3px; }
.rift-shards span:nth-child(10) { left: 50%; animation-delay: 2.0s; animation-duration: 10.5s; }
.rift-shards span:nth-child(11) { left: 47%; animation-delay: 6.0s; animation-duration: 9s;   width: 2px; height: 2px; }
.rift-shards span:nth-child(12) { left: 53%; animation-delay: 4.8s; animation-duration: 8s;   }
.rift-shards span:nth-child(13) { left: 49%; animation-delay: 7.0s; animation-duration: 11.5s; width: 5px; height: 5px; }
.rift-shards span:nth-child(14) { left: 55%; animation-delay: 0.3s; animation-duration: 9.8s; }
.rift-shards span:nth-child(15) { left: 45%; animation-delay: 5.5s; animation-duration: 10.2s; width: 3px; height: 3px; }

@keyframes ember-rise {
  0%   { transform: translate(-50%, 0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translate(-50%, -90vh) translateX(20px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .rift-core, .rift-beam, .rift-flare, .rift-shards span { animation: none; }
}

/* ============= nav ============= */

.nav {
  position: sticky; top: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: rgba(7,5,15,.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 20px;
  color: var(--ink-0);
  letter-spacing: .04em;
}
.brand:hover { color: var(--ink-0); }
.brand-mark {
  width: 22px; height: 22px;
  background: radial-gradient(ellipse 50% 80% at 50% 50%, var(--gold-300), var(--rift-500) 45%, var(--rift-700) 80%, transparent 90%);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(168,85,247,.7);
  display: inline-block;
}
.accent { color: var(--rift-300); }

.nav-links {
  display: flex; align-items: center; gap: 26px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-1);
  letter-spacing: .03em;
}
.nav-links a:hover { color: var(--ink-0); }

.nav-cta {
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--rift-600), var(--rift-500));
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(124,58,237,.35);
}
.nav-cta:hover { color: #fff !important; transform: translateY(-1px); }

.nav-discord {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  border-radius: 8px;
  background: rgba(88,101,242,.12);
  border: 1px solid rgba(88,101,242,.5);
  color: #c7cdf7 !important;
  font-weight: 600;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.nav-discord:hover {
  background: rgba(88,101,242,.25);
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(88,101,242,.35);
  transform: translateY(-1px);
}
.nav-discord svg { display: block; }

@media (max-width: 760px) {
  .nav { padding: 12px 16px; }
  .nav-links { gap: 12px; font-size: 13px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============= hero ============= */

.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex; align-items: center;
  padding: 40px 24px 80px;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* sigils flanking title */
.hero-sigils {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(16px, 4vw, 56px);
  margin: 28px 0 24px;
}
.sigil {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  display: inline-flex;
  align-items: center; justify-content: center;
  width: clamp(60px, 8vw, 92px);
  height: clamp(60px, 8vw, 92px);
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: radial-gradient(circle at 50% 50%, rgba(11,7,22,.85), rgba(7,5,15,.95));
  flex-shrink: 0;
  animation: sigil-float 6s ease-in-out infinite;
}
.sigil-guardian {
  color: var(--gold-300);
  border-color: rgba(212,175,55,.6);
  box-shadow:
    0 0 30px rgba(212,175,55,.4),
    inset 0 0 20px rgba(212,175,55,.2);
  text-shadow: 0 0 20px rgba(255,227,154,.9);
}
.sigil-defiant {
  color: var(--cyan-300);
  border-color: rgba(0,212,255,.6);
  box-shadow:
    0 0 30px rgba(0,212,255,.4),
    inset 0 0 20px rgba(0,212,255,.2);
  text-shadow: 0 0 20px rgba(126,234,255,.9);
  animation-delay: -3s;
}
@keyframes sigil-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (max-width: 700px) {
  .hero-sigils { gap: 14px; }
  .sigil { width: 48px; height: 48px; font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .sigil { animation: none; }
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(168,85,247,.08);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  color: var(--rift-300);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
}
.badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rift-500);
  box-shadow: 0 0 10px var(--rift-500);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(44px, 8.5vw, 112px);
  font-weight: 900;
  margin: 0;
  max-width: 14ch;
  line-height: 0.98;
  letter-spacing: .015em;
  text-transform: uppercase;
  text-shadow:
    0 0 30px rgba(168,85,247,.5),
    0 2px 60px rgba(168,85,247,.4),
    0 0 80px rgba(124,58,237,.25);
}

.gradient-text {
  background: linear-gradient(120deg,
    var(--gold-300) 0%,
    #ffb347 20%,
    var(--rift-500) 50%,
    var(--rift-300) 70%,
    var(--cyan-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shimmer 8s linear infinite;
  filter: drop-shadow(0 0 24px rgba(168,85,247,.55));
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.hero-sub {
  max-width: 62ch;
  margin: 0 auto 40px;
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--ink-1);
}

.rex {
  color: var(--gold-300);
  text-shadow: 0 0 12px rgba(212,175,55,.6);
  font-weight: 700;
  letter-spacing: .04em;
}

/* countdown */
.countdown-wrap {
  margin: 0 auto 40px;
  display: inline-block;
}
.countdown-label {
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.countdown {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 18px 28px;
  border-radius: 14px;
  background: rgba(11,7,22,.7);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-glow);
  font-variant-numeric: tabular-nums;
}
.c-cell { display: flex; flex-direction: column; align-items: center; min-width: 56px; }
.c-cell span {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: var(--gold-300);
  line-height: 1;
  letter-spacing: .04em;
}
.c-cell label {
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 6px;
}
.c-sep {
  font-size: clamp(24px,3.5vw,36px);
  color: var(--rift-500);
  font-weight: 700;
  margin-bottom: 16px;
  animation: pulse 2s ease-in-out infinite;
}

/* CTA */
.hero-cta {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  text-decoration: none;
  font-family: var(--sans);
}
.btn-primary {
  background: linear-gradient(135deg, var(--rift-600), var(--rift-500) 60%, var(--gold-500));
  background-size: 200% auto;
  color: #fff !important;
  box-shadow: 0 10px 32px rgba(124,58,237,.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-position: right center;
  box-shadow: 0 14px 40px rgba(168,85,247,.55), 0 0 28px rgba(212,175,55,.35);
  color: #fff !important;
}
.btn-ghost {
  background: transparent;
  color: var(--ink-0) !important;
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--rift-500);
  background: rgba(168,85,247,.08);
  color: var(--ink-0) !important;
  transform: translateY(-2px);
}

/* hero meta strip */
.hero-meta {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  max-width: 720px; margin: 0 auto;
}
.hero-meta > div {
  display: flex; flex-direction: column; gap: 4px;
  text-align: center;
}
.hero-meta strong {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink-0);
  letter-spacing: .04em;
}
.hero-meta span {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ============= sections ============= */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 100px 24px;
  position: relative;
}
.section.alt {
  max-width: none;
  margin: 0;
  background:
    linear-gradient(180deg, transparent, rgba(26,16,51,.4) 20%, rgba(26,16,51,.4) 80%, transparent),
    radial-gradient(ellipse at 50% 50%, rgba(168,85,247,.05), transparent 70%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section.alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.section-head { text-align: center; margin: 0 auto 56px; max-width: 720px; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--rift-300);
  margin-bottom: 12px;
  font-weight: 600;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 46px);
  margin: 0 0 16px;
}
.lede { font-size: 17px; color: var(--ink-1); margin: 0; }

/* ============= cards ============= */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 800px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  padding: 32px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(26,16,51,.55), rgba(11,7,22,.55));
  border: 1px solid var(--border);
  transition: transform .25s, border-color .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(168,85,247,.12), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(168,85,247,.15);
}
.card:hover::before { opacity: 1; }
.card header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.card h3 { margin: 0; font-size: 22px; }
.card p { margin: 0; color: var(--ink-1); }

.faction-glyph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  font-size: 22px;
  font-family: var(--serif);
  border: 1px solid var(--border-strong);
  background: rgba(11,7,22,.7);
}
.faction.guardian .faction-glyph { color: var(--gold-300); border-color: rgba(212,175,55,.4); box-shadow: 0 0 18px rgba(212,175,55,.25) inset; }
.faction.guardian h3 { color: var(--gold-300); }
.faction.defiant .faction-glyph { color: var(--cyan-300); border-color: rgba(0,212,255,.4); box-shadow: 0 0 18px rgba(0,212,255,.25) inset; }
.faction.defiant h3 { color: var(--cyan-300); }
.faction.rift .faction-glyph { color: var(--rift-300); border-color: var(--border-strong); box-shadow: 0 0 18px rgba(168,85,247,.3) inset; }
.faction.rift h3 { color: var(--rift-300); }

/* ============= steps ============= */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.steps li {
  padding: 36px 32px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(26,16,51,.55), rgba(11,7,22,.55));
  border: 1px solid var(--border);
  position: relative;
}
.step-num {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .3em;
  color: var(--rift-300);
  display: block;
  margin-bottom: 16px;
}
.steps h3 { margin: 0 0 8px; font-size: 22px; }
.steps p { margin: 0; color: var(--ink-1); }

/* ============= leaderboard ============= */

.lb-wrap {
  max-width: 880px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(26,16,51,.6), rgba(7,5,15,.6));
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.4), var(--shadow-glow);
}

.lb-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.lb-meta { font-size: 13px; color: var(--ink-2); letter-spacing: .04em; }
.dot-sep { margin: 0 8px; color: var(--ink-3); }

.lb-filters { display: inline-flex; gap: 6px; padding: 4px; border-radius: 10px; background: rgba(11,7,22,.7); border: 1px solid var(--border); }
.chip {
  padding: 6px 14px;
  border-radius: 7px;
  background: transparent;
  border: none;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  font-family: var(--sans);
  transition: background .2s, color .2s;
}
.chip:hover { color: var(--ink-0); }
.chip.active {
  background: linear-gradient(135deg, var(--rift-600), var(--rift-500));
  color: #fff;
}

.leaderboard { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.lb-empty { text-align: center; padding: 36px; color: var(--ink-2); font-style: italic; }

.lb-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(11,7,22,.6);
  border: 1px solid var(--border);
  transition: border-color .2s, transform .2s;
}
.lb-row:hover { border-color: var(--border-strong); transform: translateX(2px); }

.lb-rank {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 22px;
  color: var(--ink-3);
  text-align: center;
}

.lb-row.rank-1 { border-color: rgba(212,175,55,.45); background: linear-gradient(90deg, rgba(212,175,55,.1), rgba(11,7,22,.6) 60%); box-shadow: 0 0 24px rgba(212,175,55,.15); }
.lb-row.rank-1 .lb-rank { color: var(--gold-300); text-shadow: 0 0 12px rgba(212,175,55,.6); }
.lb-row.rank-2 { border-color: rgba(196,163,255,.35); }
.lb-row.rank-2 .lb-rank { color: var(--rift-300); }
.lb-row.rank-3 { border-color: rgba(126,234,255,.3); }
.lb-row.rank-3 .lb-rank { color: var(--cyan-300); }

.lb-player { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lb-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink-0);
  letter-spacing: .03em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lb-sub { font-size: 12px; color: var(--ink-2); letter-spacing: .04em; }
.lb-faction-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-right: 8px;
}
.lb-faction-tag.guardian { color: var(--gold-300); background: rgba(212,175,55,.12); border: 1px solid rgba(212,175,55,.3); }
.lb-faction-tag.defiant { color: var(--cyan-300); background: rgba(0,212,255,.12); border: 1px solid rgba(0,212,255,.3); }

.lb-kills {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}
.lb-kills strong {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 900;
  color: var(--blood-500);
  text-shadow: 0 0 14px rgba(212,22,60,.4);
  line-height: 1;
}
.lb-kills span {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ============= rules ============= */

.rules { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.rules li {
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(11,7,22,.6);
  border-left: 3px solid var(--rift-500);
  color: var(--ink-1);
}
.rules li strong { color: var(--ink-0); }

/* ============= forms ============= */

.form {
  max-width: 640px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 18px;
  padding: 36px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(26,16,51,.6), rgba(11,7,22,.6));
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
}
.form input, .form select, .form textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-0);
  background: rgba(7,5,15,.7);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--rift-500);
  box-shadow: 0 0 0 3px rgba(168,85,247,.2);
}
.form textarea { resize: vertical; min-height: 80px; }
.form button { align-self: flex-start; }
.form-note { font-size: 12px; color: var(--ink-2); margin: 0; font-style: italic; }

/* ============= community ============= */

.community-grid {
  align-items: stretch;
}

.community-card {
  position: relative;
  padding: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(26,16,51,.7), rgba(11,7,22,.7));
  border: 1px solid var(--border-strong);
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.community-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}

.community-body { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 14px; flex: 1; }

.community-tag {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
}

.community-card h3 {
  font-size: 26px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.community-card p { margin: 0; color: var(--ink-1); }
.community-card .btn { align-self: flex-start; margin-top: auto; }

/* ----- movie night card ----- */

.community-card.movie {
  border-color: rgba(212,22,60,.45);
  box-shadow: 0 30px 70px rgba(0,0,0,.4), 0 0 40px rgba(212,22,60,.12);
}
.community-card.movie:hover {
  border-color: rgba(212,22,60,.7);
  box-shadow: 0 35px 80px rgba(0,0,0,.5), 0 0 50px rgba(212,22,60,.25);
}
.community-card.movie .community-tag {
  color: #ffb88c;
  background: rgba(212,22,60,.15);
  border: 1px solid rgba(212,22,60,.4);
}

/* film strip header */
.film-strip {
  display: flex;
  height: 32px;
  background: #000;
  border-bottom: 1px solid rgba(212,22,60,.3);
  padding: 6px 12px;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.film-strip::before, .film-strip::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 32px;
  background: repeating-linear-gradient(90deg,
    transparent 0, transparent 14px,
    rgba(255,255,255,.08) 14px, rgba(255,255,255,.08) 16px);
}
.film-strip span {
  flex: 1;
  height: 20px;
  align-self: center;
  background: linear-gradient(135deg,
    rgba(212,22,60,.4),
    rgba(168,85,247,.3) 50%,
    rgba(212,175,55,.35));
  border-radius: 2px;
  opacity: .55;
  animation: film-scroll 6s linear infinite;
}
.film-strip span:nth-child(2) { animation-delay: -.7s; }
.film-strip span:nth-child(3) { animation-delay: -1.4s; }
.film-strip span:nth-child(4) { animation-delay: -2.1s; }
.film-strip span:nth-child(5) { animation-delay: -2.8s; }
.film-strip span:nth-child(6) { animation-delay: -3.5s; }
.film-strip span:nth-child(7) { animation-delay: -4.2s; }
.film-strip span:nth-child(8) { animation-delay: -4.9s; }
@keyframes film-scroll {
  0%, 100% { opacity: .35; }
  50%      { opacity: .85; }
}

.movie-stamp {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .25em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1.5px solid var(--blood-500);
  color: var(--blood-500);
  border-radius: 4px;
  transform: rotate(-3deg);
  background: rgba(212,22,60,.05);
}

.movie-meta {
  list-style: none;
  padding: 14px 0 0;
  margin: 0;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.movie-meta li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-1);
}
.movie-meta strong {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
  align-self: center;
  font-weight: 700;
}

/* ----- discord card ----- */

.community-card.discord {
  border-color: rgba(88,101,242,.45);
  box-shadow: 0 30px 70px rgba(0,0,0,.4), 0 0 40px rgba(88,101,242,.15);
}
.community-card.discord:hover {
  border-color: rgba(88,101,242,.7);
  box-shadow: 0 35px 80px rgba(0,0,0,.5), 0 0 60px rgba(88,101,242,.3);
}
.community-card.discord .community-tag {
  color: #c7cdf7;
  background: rgba(88,101,242,.15);
  border: 1px solid rgba(88,101,242,.4);
}
.community-card.discord h3 { color: #fff; }

.discord-orb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0 12px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(88,101,242,.25), transparent 70%);
}
.discord-orb svg {
  width: 64px;
  height: 64px;
  color: #5865f2;
  filter: drop-shadow(0 0 24px rgba(88,101,242,.7));
  animation: orb-pulse 4s ease-in-out infinite;
}
@keyframes orb-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 24px rgba(88,101,242,.7)); }
  50%      { transform: scale(1.05); filter: drop-shadow(0 0 36px rgba(88,101,242,.95)); }
}

.community-stats {
  list-style: none;
  padding: 14px 0 0;
  margin: 0;
  border-top: 1px dashed var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.community-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}
.community-stats strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  letter-spacing: .04em;
}
.community-stats span {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
}

@media (prefers-reduced-motion: reduce) {
  .film-strip span, .discord-orb svg { animation: none; }
}

/* ============= faq ============= */

.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: rgba(11,7,22,.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink-0);
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  letter-spacing: .02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  color: var(--rift-300);
  font-size: 22px;
  font-weight: 300;
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 14px 0 0; color: var(--ink-1); }

/* ============= footer ============= */

.foot {
  margin-top: 80px;
  padding: 60px 24px 32px;
  background: linear-gradient(180deg, transparent, rgba(7,5,15,.8));
  border-top: 1px solid var(--border);
}
.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 760px) { .foot-inner { grid-template-columns: 1fr; gap: 32px; } }

.foot-tag { color: var(--ink-2); font-size: 13px; margin: 14px 0 0; }

.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 720px) { .foot-cols { grid-template-columns: 1fr 1fr; } }

.foot-cols h4 {
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--rift-300);
  margin: 0 0 14px;
  font-family: var(--sans);
  font-weight: 700;
}
.foot-cols a {
  display: block;
  font-size: 14px;
  color: var(--ink-1);
  margin-bottom: 8px;
}
.foot-cols a:hover { color: var(--ink-0); }
.fine { font-size: 12px; color: var(--ink-3); line-height: 1.5; margin: 0; }

.foot-bottom {
  max-width: var(--maxw);
  margin: 24px auto 0;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .04em;
}

::selection { background: rgba(168,85,247,.4); color: var(--ink-0); }
