:root {
  --black: #080604;
  --panel: #110d09;
  --panel-raised: #17110c;
  --paper: #f2e8d8;
  --muted: #a89b8a;
  --line: #38291d;
  --rust: #b95826;
  --rust-bright: #d9783c;
  --discord: #5865f2;
  --font-display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --page-pad: clamp(22px, 5.5vw, 88px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; background: var(--black); }
body { margin: 0; background: var(--black); color: var(--paper); font-family: var(--font-sans); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
p { text-wrap: pretty; }
h1, h2, h3, strong { text-wrap: balance; }

.site-header, .portal-header {
  height: 74px;
  padding: 0 clamp(18px, 3.5vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #080604;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; width: max-content; }
.brand img { width: 42px; height: 42px; object-fit: cover; border: 1px solid #343434; }
.brand > span { display: flex; align-items: center; gap: 10px; }
.brand b { padding-right: 10px; border-right: 1px solid #3d3d3d; font: 400 24px/1 var(--font-display); letter-spacing: .04em; }
.brand span span { color: #929089; font: 600 8px/1.4 var(--font-mono); letter-spacing: .11em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 32px; }
nav a { position: relative; color: #a8a59e; font: 700 11px/1 var(--font-sans); transition: color .2s ease; }
nav a:hover, nav a.is-active { color: #fff; }
nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 2px; background: var(--rust); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.header-actions a { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid #3b3b3b; border-radius: 2px; font-size: 11px; font-weight: 800; transition: transform .2s, background .2s, border-color .2s; }
.header-actions a:hover { transform: translateY(-2px); }
.header-discord { color: #fff; background: var(--discord); border-color: var(--discord) !important; }
.menu-button { display: none; border: 0; background: transparent; color: #fff; font-size: 11px; font-weight: 800; cursor: pointer; }

.button {
  min-height: 48px;
  min-width: 178px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--rust); }
.button-primary:hover { background: var(--rust-bright); }
.button-discord { color: #fff; background: var(--discord); }
.button-discord:hover { background: #6a75f3; }
.button-light { color: var(--black); background: var(--paper); }
.button-outline { color: #fff; background: transparent; border-color: #454545; }
.button-danger { color: #fff; background: #9f352b; }

.section { padding: clamp(64px, 7vw, 104px) var(--page-pad); }
.eyebrow, .section-kicker { color: var(--rust-bright); font: 700 10px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }

.home-hero {
  min-height: calc(100svh - 74px);
  padding: clamp(60px, 8vw, 110px) var(--page-pad);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .55fr);
  gap: clamp(54px, 8vw, 130px);
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-copy { max-width: 880px; }
.home-hero h1 { max-width: 820px; margin: 20px 0 24px; font: 400 clamp(64px, 8.5vw, 132px)/.86 var(--font-display); letter-spacing: -.015em; text-transform: uppercase; }
.hero-lead { max-width: 650px; margin: 0; color: #b1aea7; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 34px; }
.hero-actions.centered { justify-content: center; }
.hero-note { margin: 13px 0 0; color: #74716b; font-size: 11px; }
.survival-status { align-self: center; padding: 30px 0 30px 28px; border-left: 3px solid var(--rust); background: #100c08; }
.side-label { margin: 0; color: var(--rust-bright); font: 700 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.survival-status > strong { display: block; margin: 38px 0 18px; font: 400 clamp(43px, 4vw, 68px)/.9 var(--font-display); text-transform: uppercase; }
.survival-status > p { color: #96938c; font-size: 13px; line-height: 1.7; }
.survival-status ul { margin: 24px 0 0; padding: 20px 0 0 18px; border-top: 1px solid var(--line); color: #c3b7a7; font-size: 12px; }
.survival-status li + li { margin-top: 9px; }

.route-section { background: #0d0906; }
.section-intro { display: grid; grid-template-columns: .45fr 1.1fr .65fr; gap: clamp(30px, 5vw, 80px); align-items: end; margin-bottom: clamp(42px, 5vw, 72px); }
.section-intro h2 { margin: 0; font: 400 clamp(48px, 6vw, 92px)/.9 var(--font-display); text-transform: uppercase; }
.section-intro > p:last-child { max-width: 390px; margin: 0; color: var(--muted); line-height: 1.7; }
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.route-card { min-height: 340px; padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; border: 1px solid var(--line); background: #120d09; transition: border-color .25s ease, background .25s ease; }
.route-card:hover { border-color: var(--rust); background: #17100b; }
.route-card > span { color: var(--rust-bright); font: 700 9px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.route-card h3 { margin: auto 0 18px; font: 400 clamp(34px, 3vw, 48px)/.95 var(--font-display); text-transform: uppercase; }
.route-card p { margin: 0 0 28px; color: #96938c; font-size: 13px; line-height: 1.65; }
.route-card > b { font-size: 11px; }
.rules-route { background: #15100c; }
.discord-route { border-color: rgba(196,91,53,.5); }
.home-facts { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 var(--page-pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-facts div { padding: 28px 24px; border-right: 1px solid var(--line); }
.home-facts div:first-child { padding-left: 0; }
.home-facts div:last-child { border: 0; }
.home-facts small, .home-facts strong { display: block; }
.home-facts small { margin-bottom: 8px; color: #74716b; font: 700 8px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.home-facts strong { font-size: 13px; }
.final-cta { text-align: center; background: #0d0906; }
.final-cta .eyebrow { justify-content: center; }
.final-cta h2 { margin: 18px 0; font: 400 clamp(60px, 9vw, 132px)/.9 var(--font-display); text-transform: uppercase; }
.final-cta > p:not(.eyebrow) { color: var(--muted); }

.page-hero { min-height: 560px; padding: clamp(70px, 9vw, 120px) var(--page-pad); display: grid; grid-template-columns: 1.2fr .45fr; gap: 80px; align-items: end; border-bottom: 1px solid var(--line); background: #0d0906; }
.page-hero h1 { max-width: 900px; margin: 20px 0 24px; font: 400 clamp(62px, 8vw, 122px)/.87 var(--font-display); text-transform: uppercase; }
.page-hero > div > p:last-child { max-width: 680px; margin: 0; color: #aaa7a0; font-size: 18px; line-height: 1.7; }
.page-index { display: grid; grid-template-columns: auto 1fr; gap: 18px 22px; padding: 24px; border: 1px solid #333; border-radius: 10px; }
.page-index span { color: var(--rust-bright); font: 700 9px/1.5 var(--font-mono); }
.page-index p { margin: 0; color: #aaa7a0; font-size: 12px; }
.system-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.system-grid article { min-height: 280px; padding: 30px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s ease; }
.system-grid article:hover { background: #15100c; }
.system-grid article > span { color: var(--rust-bright); font: 700 9px/1 var(--font-mono); }
.system-grid h3 { margin: auto 0 14px; font: 400 32px/1 var(--font-display); text-transform: uppercase; }
.system-grid p { margin: 0; color: #96938c; font-size: 13px; line-height: 1.65; }
.death-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(60px, 9vw, 150px); background: #100c08; }
.death-heading h2 { margin: 26px 0; font: 400 clamp(54px, 6vw, 92px)/.9 var(--font-display); text-transform: uppercase; }
.death-heading > p:last-child { max-width: 520px; color: var(--muted); line-height: 1.7; }
.death-steps { list-style: none; padding: 0; margin: 0; }
.death-steps li { display: grid; grid-template-columns: 55px 1fr; gap: 10px; padding: 30px 0; border-top: 1px solid #343434; }
.death-steps li:last-child { border-bottom: 1px solid #343434; }
.death-steps > li > span { color: var(--rust-bright); font: 700 9px/1 var(--font-mono); }
.death-steps h3 { margin: 0 0 8px; font: 400 32px/1 var(--font-display); text-transform: uppercase; }
.death-steps p { margin: 0; color: var(--muted); font-size: 13px; }
.split-cta, .rules-confirm { margin: 0 var(--page-pad) clamp(70px, 8vw, 120px); padding: clamp(34px, 5vw, 64px); display: flex; justify-content: space-between; align-items: center; gap: 50px; background: var(--rust); }
.split-cta h2 { margin: 12px 0 0; font: 400 clamp(44px, 5vw, 76px)/.9 var(--font-display); text-transform: uppercase; }
.split-cta .eyebrow { color: #2a140d; }
.split-cta > div:last-child, .rules-confirm > div { display: flex; gap: 10px; flex-wrap: wrap; }

.rules-hero { min-height: 520px; }
.rule-callout { padding: 26px; border-left: 3px solid var(--rust); background: #111; }
.rule-callout b { color: var(--rust-bright); font: 700 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.rule-callout p { margin: 15px 0 0; color: #c0bdb5; font-size: 13px; line-height: 1.7; }
.rules-layout { display: grid; grid-template-columns: minmax(230px, .45fr) minmax(0, 1.35fr); gap: clamp(52px, 7vw, 110px); align-items: start; }
.rules-sidebar { position: sticky; top: 112px; }
.rules-sidebar h2 { margin: 22px 0; font: 400 clamp(48px, 5vw, 74px)/.9 var(--font-display); text-transform: uppercase; }
.rules-sidebar > p:not(.section-kicker) { margin-bottom: 30px; color: var(--muted); }
.rule-grid { display: grid; gap: 10px; }
.rule-grid article { min-height: 160px; padding: 30px; display: grid; grid-template-columns: 54px 1fr; border: 1px solid var(--line); background: #110d09; transition: border-color .22s, background .22s; }
.rule-grid article:hover { border-color: var(--rust); background: #17100b; }
.rule-grid article > span { color: var(--rust-bright); font: 700 9px/1 var(--font-mono); }
.rule-grid h3 { margin: 0 0 12px; font: 400 29px/1 var(--font-display); text-transform: uppercase; }
.rule-grid p { max-width: 760px; margin: 0; color: #a09d96; font-size: 13px; line-height: 1.7; }
.rules-confirm { color: #fff; }
.rules-confirm > p { max-width: 550px; margin: 0; font: 400 clamp(30px, 3.5vw, 50px)/1 var(--font-display); text-transform: uppercase; }

.site-footer { padding: 48px var(--page-pad) 32px; display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; border-top: 1px solid var(--line); }
.footer-mark { font: 400 clamp(30px, 4vw, 52px)/1 var(--font-display); text-transform: uppercase; }
.footer-mark span { color: #55524c; }
.footer-links { display: flex; gap: 24px; color: #aaa7a0; font-size: 11px; font-weight: 700; }
.footer-links a:hover { color: var(--rust-bright); }
.site-footer > p { grid-column: 1 / -1; margin: 0; color: #67645e; font: 700 8px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.75,.25,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .stagger.reveal > * { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.js .stagger.reveal.is-visible > * { opacity: 1; transform: none; }
.js .stagger.reveal.is-visible > *:nth-child(2) { transition-delay: .08s; }
.js .stagger.reveal.is-visible > *:nth-child(3) { transition-delay: .16s; }
.js .stagger.reveal.is-visible > *:nth-child(4) { transition-delay: .24s; }
.js .stagger.reveal.is-visible > *:nth-child(5) { transition-delay: .32s; }
.js .stagger.reveal.is-visible > *:nth-child(6) { transition-delay: .4s; }

@media (max-width: 1000px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 14px; }
  .menu-button { display: block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 20px var(--page-pad); flex-direction: column; align-items: stretch; gap: 0; background: #080808; border-bottom: 1px solid var(--line); }
  nav.is-open { display: flex; }
  nav a { padding: 15px 0; border-bottom: 1px solid #222; }
  nav a.is-active::after { display: none; }
  .home-hero, .page-hero { grid-template-columns: 1fr; }
  .home-hero { min-height: auto; }
  .survival-status { max-width: 580px; }
  .section-intro { grid-template-columns: 1fr 1fr; }
  .section-intro .section-kicker { grid-column: 1 / -1; }
  .route-grid, .system-grid { grid-template-columns: repeat(2, 1fr); }
  .route-grid .route-card:last-child { grid-column: 1 / -1; }
  .home-facts { grid-template-columns: repeat(2, 1fr); }
  .home-facts div:nth-child(2) { border-right: 0; }
  .home-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .rules-layout { grid-template-columns: 1fr; }
  .rules-sidebar { position: static; }
}

@media (max-width: 680px) {
  .site-header { height: 68px; grid-template-columns: 1fr auto; padding-inline: 16px; }
  .brand img { width: 38px; height: 38px; }
  .brand span span, .brand b { display: none; }
  .menu-button { justify-self: end; min-height: 40px; padding: 0 12px; border: 1px solid #353535; border-radius: 2px; }
  .header-actions { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 110; display: grid; grid-template-columns: 1fr 1.2fr; padding: 7px; border: 1px solid var(--line); background: #080604; }
  .header-actions a { min-height: 44px; }
  .home-hero { padding: 58px 20px 66px; gap: 48px; }
  .home-hero h1 { font-size: clamp(56px, 17vw, 82px); }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .survival-status { padding: 24px 20px; }
  .survival-status > strong { margin-top: 40px; }
  .section { padding: 64px 20px; }
  .section-intro { grid-template-columns: 1fr; gap: 20px; }
  .section-intro .section-kicker { grid-column: auto; }
  .section-intro h2 { font-size: clamp(47px, 14vw, 68px); }
  .route-grid, .system-grid { grid-template-columns: 1fr; }
  .route-grid .route-card:last-child { grid-column: auto; }
  .route-card { min-height: 310px; }
  .home-facts { grid-template-columns: 1fr; padding-inline: 20px; }
  .home-facts div, .home-facts div:first-child { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .home-facts div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .page-hero { min-height: auto; padding: 70px 20px; gap: 46px; }
  .page-hero h1 { font-size: clamp(54px, 16vw, 78px); }
  .page-hero > div > p:last-child { font-size: 16px; }
  .system-grid article { min-height: 250px; }
  .death-section { grid-template-columns: 1fr; gap: 44px; }
  .split-cta, .rules-confirm { margin: 0 20px 72px; padding: 30px 24px; align-items: flex-start; flex-direction: column; }
  .split-cta > div:last-child, .rules-confirm > div { width: 100%; flex-direction: column; }
  .split-cta .button, .rules-confirm .button { width: 100%; }
  .rules-hero { padding-bottom: 60px; }
  .rule-grid article { grid-template-columns: 38px 1fr; padding: 24px 20px; }
  .site-footer { padding: 42px 20px 110px; grid-template-columns: 1fr; gap: 30px; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .stagger.reveal > * { opacity: 1; transform: none; }
}
