/* L2 High Five Reforge. Game-launcher look: full-bleed key art, condensed uppercase type,
   forge-ember accent on cold steel. Dark-locked by brand. Previous design: styles.css.bak-1006-redesign */
@font-face { font-family: "Oswald"; src: url("assets/fonts/Oswald.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/Manrope.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #070A12;
  --bg-2: #0C111D;
  --panel: rgba(13, 18, 31, 0.86);
  --panel-solid: #0F1524;
  --ember: #FF8A3D;
  --ember-deep: #E35A1C;
  --gold: #FFC46B;
  --gold-soft: #F3D9A8;
  --ice: #EEF4FF;
  --glow: #7CC4FF;
  --silver: #B3BDCD;
  --steel: #8390A6;          /* 5.9:1 on --bg */
  --line: rgba(255, 196, 107, 0.18);
  --line-cold: rgba(124, 196, 255, 0.14);

  --display: "Oswald", "Arial Narrow", "Segoe UI", sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4.5vw, 48px);
  --section: clamp(80px, 10vw, 140px);
  --cut: 14px;               /* angled corner size on buttons and panels */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; scrollbar-color: #2A3245 var(--bg); }
::selection { background: rgba(255, 138, 61, 0.45); color: #fff; }
body {
  margin: 0; background: var(--bg); color: var(--ice);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
#motes { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ember); color: #160B03; padding: 8px 12px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

a { color: var(--gold); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; color: var(--ice); text-transform: uppercase; letter-spacing: 0.02em; }
h2 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.05; max-width: 20ch; }
h3 { font-size: 18px; letter-spacing: 0.05em; line-height: 1.25; }
.eyebrow {
  margin: 0 0 14px; font-family: var(--display); font-size: 13px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, var(--ember), transparent); }
.sub { color: var(--silver); max-width: 58ch; font-size: 17px; margin: 18px 0 0; }
.fine { color: var(--steel); font-size: 14px; }
code { font-family: var(--mono); font-size: 0.88em; background: rgba(255, 196, 107, 0.08); padding: 1px 6px; color: var(--gold-soft); }

/* ---------- buttons: angled, launcher style ---------- */
.btn {
  --c: 10px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 14px 28px; text-decoration: none; border: 0; cursor: pointer;
  clip-path: polygon(var(--c) 0, 100% 0, calc(100% - var(--c)) 100%, 0 100%);
  transition: translate 200ms var(--ease), filter 200ms var(--ease), background 200ms var(--ease);
}
/* Hover lifts use `translate`, never `transform`: GSAP animates transform on these elements and a CSS
   transition on the same property leaves them stuck mid-entrance. */
.btn:active { translate: 0 1px; }
.btn-primary {
  color: #1A0C02;
  background: linear-gradient(180deg, #FFC46B 0%, #FF9A45 48%, #F06A22 100%);
}
.btn-primary:hover { filter: brightness(1.1) saturate(1.1); translate: 0 -2px; }
.btn-ghost {
  color: var(--ice);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 107, 0.45);
  background: rgba(10, 14, 24, 0.72);
}
.btn-ghost:hover { background: rgba(255, 138, 61, 0.16); translate: 0 -2px; }
.btn-discord { color: #fff; background: linear-gradient(180deg, #6E7BFF, #4752C4); }
.btn-discord:hover { filter: brightness(1.12); translate: 0 -2px; }
.btn-sm { padding: 10px 20px; font-size: 13px; --c: 8px; }
.btn-lg { padding: 18px 36px; font-size: 15px; --c: 14px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: 72px;
  display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 18px;
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.92), rgba(7, 10, 18, 0.6));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-cold);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ice); }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 0 10px rgba(124, 196, 255, 0.35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--display); text-transform: uppercase; }
.brand-text span { font-size: 11px; letter-spacing: 0.26em; color: var(--silver); }
.brand-text strong { font-size: 22px; letter-spacing: 0.12em; font-weight: 600; margin-top: 3px; }
.nav nav { display: flex; gap: clamp(16px, 2.4vw, 34px); justify-content: center; }
.nav nav a {
  color: var(--silver); text-decoration: none; font-family: var(--display); font-size: 14px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 0; position: relative; transition: color 160ms;
}
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ember); transform: scaleX(0); transition: transform 220ms var(--ease); }
.nav nav a:hover { color: var(--ice); }
.nav nav a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ice); margin: 5px 0; }
.mobile-menu {
  position: fixed; top: 72px; left: 0; right: 0; z-index: 29; padding: 12px var(--gutter) 24px;
  background: rgba(7, 10, 18, 0.97); border-bottom: 1px solid var(--line);
  display: grid; gap: 4px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { color: var(--ice); text-decoration: none; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.14em; padding: 12px 0; border-bottom: 1px solid var(--line-cold); }

/* ---------- side rail ---------- */
.rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 25; display: grid; gap: 8px; }
.rail a {
  width: 40px; height: 40px; display: grid; place-items: center; color: var(--ice);
  background: rgba(10, 14, 24, 0.8); border: 1px solid var(--line-cold); transition: background 160ms, border-color 160ms;
}
.rail a:hover { background: rgba(255, 138, 61, 0.2); border-color: var(--ember); }
.rail svg { width: 18px; height: 18px; fill: currentColor; }
svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- layout helpers ---------- */
.wrap { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: var(--section) 0; }
.has-bg { overflow: hidden; isolation: isolate; }
.section-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.section-bg img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.section-bg::after { content: ""; position: absolute; inset: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 96px var(--gutter) 72px; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; transform-origin: 70% 40%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 10, 18, 0.94) 0%, rgba(7, 10, 18, 0.78) 34%, rgba(7, 10, 18, 0.2) 62%, rgba(7, 10, 18, 0.05) 100%),
    linear-gradient(180deg, rgba(7, 10, 18, 0.55) 0%, transparent 22%, transparent 70%, var(--bg) 100%);
}
.hero-inner { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; }
.hero-emblem { width: clamp(84px, 9vh, 112px); height: auto; aspect-ratio: 1; margin-bottom: 14px; filter: drop-shadow(0 0 28px rgba(124, 196, 255, 0.5)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.kicker { margin: 0 0 10px; font-family: var(--display); font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--silver); }
.hero h1 { display: flex; flex-direction: column; line-height: 0.92; letter-spacing: 0.01em; }
.h1-top { font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; letter-spacing: 0.28em; color: var(--gold); }
.h1-main {
  font-size: clamp(60px, min(9vw, 15vh), 140px); font-weight: 700; letter-spacing: 0.02em; margin: 4px 0 6px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFE6BD 46%, #FFB04F 78%, #E2611E 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(255, 120, 40, 0.28));
}
.h1-sub { font-size: clamp(20px, 2.4vw, 30px); font-weight: 400; letter-spacing: 0.32em; color: var(--ice); }
.lede { max-width: 48ch; font-size: 18px; color: var(--silver); margin: 18px 0 0; }

.status-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px;
  font-family: var(--display); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(16, 40, 30, 0.7); border: 1px solid rgba(80, 220, 140, 0.35); color: #CFF7DF;
}
.pill-plain { background: rgba(10, 14, 24, 0.7); border-color: var(--line-cold); color: var(--silver); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.18), 0 0 12px #3DDC84; }
.dot.off { background: #FF5A5A; box-shadow: 0 0 0 4px rgba(255, 90, 90, 0.18); }
.dot.unknown { background: var(--steel); box-shadow: none; }

.starter { margin-top: 22px; max-width: 600px; }
.starter-title { margin: 0 0 12px; font-family: var(--display); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.starter ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.starter li { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--steel); line-height: 1.35; }
.starter li strong { display: block; color: var(--ice); font-size: 14px; font-weight: 600; }
.starter img, .starter .ico {
  width: 44px; height: 44px; flex: none; object-fit: cover; object-position: 50% 12%;
  border: 1px solid rgba(255, 196, 107, 0.55); box-shadow: 0 0 14px rgba(255, 138, 61, 0.25);
}
.starter .ico { display: grid; place-items: center; background: linear-gradient(160deg, #1A2234, #0B0F19); color: var(--gold); }
.starter .ico svg { width: 22px; height: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 2px; text-decoration: none; color: var(--silver);
  font-family: var(--display); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
}
.scroll-cue span { margin-bottom: 6px; }
.scroll-cue i { width: 12px; height: 12px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg); margin-top: -6px; animation: cue 1.8s infinite; opacity: 0; }
.scroll-cue i:nth-child(3) { animation-delay: 0.15s; }
.scroll-cue i:nth-child(4) { animation-delay: 0.3s; }
@keyframes cue { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- rates ---------- */
.rates .section-bg img { object-position: 30% 50%; opacity: 0.75; }
.rates .section-bg::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(7, 10, 18, 0.6) 25%, rgba(7, 10, 18, 0.78) 70%, var(--bg) 100%), linear-gradient(90deg, rgba(7, 10, 18, 0.75) 0%, rgba(7, 10, 18, 0.35) 55%, rgba(7, 10, 18, 0.55) 100%); }
.numbers {
  list-style: none; margin: 46px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.numbers li { padding: 22px 20px 26px; border-left: 1px solid var(--line); }
.numbers li:first-child { border-left: 0; padding-left: 0; }
.numbers span { display: block; font-size: 13px; color: var(--silver); letter-spacing: 0.04em; }
.numbers strong {
  display: block; margin-top: 8px; font-family: var(--display); font-weight: 500; font-size: clamp(34px, 3.6vw, 50px); line-height: 1;
  color: var(--gold); text-shadow: 0 0 24px rgba(255, 160, 70, 0.35); white-space: nowrap;
}
.numbers em { font-style: normal; color: var(--steel); margin: 0 2px; font-weight: 300; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 56px; margin-top: 46px; }
.features h3 { color: var(--ice); font-size: 17px; }
.features p { margin: 8px 0 0; color: var(--silver); font-size: 15px; max-width: 52ch; }
.more { margin-top: 40px; }
.more summary {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer; list-style: none;
  font-family: var(--display); font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ice);
  padding: 13px 26px; border: 1px solid rgba(255, 196, 107, 0.4); background: rgba(10, 14, 24, 0.6);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background 160ms;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; color: var(--gold); font-size: 18px; line-height: 1; }
.more[open] summary::after { content: "\2212"; }
.more summary:hover { background: rgba(255, 138, 61, 0.15); }
.more-body { margin-top: 32px; }
.curve { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; }
.curve li {
  height: calc(64px + var(--i) * 16px); padding: 12px 14px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(255, 138, 61, calc(0.08 + var(--i) * 0.05)), rgba(13, 18, 31, 0.6));
  border-top: 2px solid var(--ember);
}
.curve strong { font-family: var(--display); font-size: 26px; font-weight: 500; color: var(--ice); line-height: 1; }
.curve span { font-size: 12px; color: var(--silver); margin-top: 4px; }
.rates-rest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 30px; }
.rates-group h3 { font-size: 15px; color: var(--gold); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rates-group ul { list-style: none; margin: 12px 0 0; padding: 0; }
.rates-group li { font-size: 14px; color: var(--silver); padding: 6px 0 6px 16px; position: relative; }
.rates-group li::before { content: ""; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; background: var(--ember); transform: rotate(45deg); }

/* ---------- companions ---------- */
.companions { background: radial-gradient(60vw 40vw at 80% 35%, rgba(47, 139, 255, 0.08), transparent 70%), var(--bg); }
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.split-head .sub { margin: 0; }
.roster { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.roster li {
  position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--panel-solid);
  border: 1px solid var(--line-cold);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: border-color 240ms, translate 400ms var(--ease);
}
.roster li img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform 900ms var(--ease); }
.roster li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(7, 10, 18, 0.7) 62%, rgba(7, 10, 18, 0.97) 100%); }
.roster li:hover { border-color: rgba(255, 196, 107, 0.6); translate: 0 -6px; }
.roster li:hover img { transform: scale(1.05); }
.roster-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px; }
.roster-class { display: block; font-family: var(--display); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--glow); }
.roster-name { display: block; font-family: var(--display); font-size: 34px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.1; margin: 4px 0 6px; }
.roster-body p { margin: 0; font-size: 14px; color: var(--silver); line-height: 1.45; }
.roster-join { display: inline-block; margin-top: 12px; font-family: var(--display); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 10px; color: var(--gold); border: 1px solid rgba(255, 196, 107, 0.4); }
.roster-join.free { color: #CFF7DF; border-color: rgba(80, 220, 140, 0.45); }
.companion-rules { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; margin-top: 64px; align-items: center; }
.shot { margin: 0; border: 1px solid var(--line); padding: 6px; background: var(--panel-solid); }
.shot img { width: 100%; height: auto; }
.shot figcaption { font-size: 13px; color: var(--steel); padding: 10px 4px 2px; }
.icon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.icon-list li { padding: 16px 0 16px 22px; border-left: 2px solid var(--ember); background: linear-gradient(90deg, rgba(255, 138, 61, 0.07), transparent 70%); margin-bottom: 10px; }
.icon-list h3 { font-size: 16px; }
.icon-list p { margin: 4px 0 0; font-size: 15px; color: var(--silver); max-width: 52ch; }

/* ---------- world ---------- */
.world { min-height: 88vh; display: flex; align-items: flex-end; }
.world .section-bg img { object-position: 60% 40%; }
.world .section-bg::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(7, 10, 18, 0.3) 22%, rgba(7, 10, 18, 0.25) 45%, rgba(7, 10, 18, 0.88) 78%, var(--bg) 100%); }
.world .wrap { width: 100%; }
.world h2 { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.7); }
.world-cols { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 18px; margin-top: 40px; }
.glass {
  padding: 26px 26px 28px; background: rgba(9, 13, 23, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-cold); border-top: 2px solid var(--gold);
}
.glass h3 { color: var(--gold); }
.glass p { margin: 10px 0 0; color: var(--silver); font-size: 15px; }
.world-foot { margin: 22px 0 0; color: var(--steel); font-size: 14px; }

/* ---------- campaign ---------- */
.campaign .section-bg img { object-position: 50% 60%; opacity: 0.85; }
.campaign .section-bg::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(7, 10, 18, 0.72) 20%, rgba(7, 10, 18, 0.84) 60%, var(--bg) 100%); }
.campaign-grid { list-style: none; margin: 46px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: c; }
.campaign-grid li {
  counter-increment: c; position: relative; padding: 26px 24px 26px 76px; min-height: 150px;
  background: rgba(10, 14, 24, 0.78); border: 1px solid var(--line-cold);
  transition: border-color 200ms, background 200ms;
}
.campaign-grid li::before {
  content: counter(c, decimal-leading-zero); position: absolute; left: 22px; top: 22px;
  font-family: var(--display); font-size: 30px; font-weight: 500; line-height: 1; color: var(--ember);
}
.campaign-grid li:hover { border-color: rgba(255, 138, 61, 0.55); background: rgba(24, 16, 12, 0.82); }
.campaign-grid p { margin: 8px 0 0; font-size: 14px; color: var(--silver); }

/* ---------- download ---------- */
.download .section-bg img { object-position: 30% 50%; }
.download .section-bg::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(7, 10, 18, 0.35) 18%, rgba(7, 10, 18, 0.35) 80%, var(--bg) 100%), linear-gradient(90deg, rgba(7, 10, 18, 0.75) 0%, rgba(7, 10, 18, 0.35) 45%, rgba(7, 10, 18, 0.6) 100%); }
.download-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.download-intro h2 { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8); }
.download-intro .sub { color: var(--ice); opacity: 0.85; }
.panel {
  padding: 34px 34px 18px; background: rgba(10, 14, 24, 0.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-cold); border-left: 2px solid var(--ember);
}
.panel-title { font-size: 22px; letter-spacing: 0.08em; margin-bottom: 18px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: 52px 1fr; column-gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--line-cold);
}
.steps li > * { grid-column: 2; }
.steps li::before {
  content: counter(s, decimal-leading-zero); grid-column: 1; grid-row: 1 / span 6;
  font-family: var(--display); font-size: 28px; font-weight: 500; color: var(--gold); line-height: 1;
}
.steps h3 { font-size: 16px; }
.steps p { margin: 6px 0 0; font-size: 14px; color: var(--silver); }
.steps .btn { justify-self: start; margin-top: 12px; }
.hash { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px !important; }
.hash span { color: var(--steel); letter-spacing: 0.1em; }
.hash code { font-size: 11px; word-break: break-all; }
.optional { margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--line); }
.optional p { margin: 0; }
.optional .hash { margin-top: 8px; }
[hidden] { display: none !important; }

/* ---------- faq ---------- */
.faq-list { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; align-items: start; }
.faq-list details { background: var(--panel-solid); border: 1px solid var(--line-cold); transition: border-color 200ms; }
.faq-list details[open] { border-color: rgba(255, 196, 107, 0.4); }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 22px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 22px; font-family: var(--display); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list summary h3 { font-size: 15px; letter-spacing: 0.06em; }
.faq-list details p { margin: 0; padding: 0 22px 20px; color: var(--silver); font-size: 15px; }

/* ---------- community ---------- */
.community { padding-top: calc(var(--section) * 0.6); }
.community-band {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  padding-top: 48px; padding-bottom: 48px;
  background: linear-gradient(110deg, rgba(71, 82, 196, 0.22), rgba(13, 18, 31, 0.9) 55%), var(--panel-solid);
  border: 1px solid rgba(110, 123, 255, 0.3);
}
.community-band h2 { font-size: clamp(26px, 3vw, 40px); }
.vote { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.vote p { margin: 0; color: var(--steel); font-size: 14px; }
.vote-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vote-list a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ice); text-decoration: none; }
.vote-list li:not(.vote-banner) a { padding: 8px 16px; border: 1px solid var(--line); font-family: var(--display); letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; }
.vote-banner img { height: 40px; width: auto; }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 2; margin-top: 0; border-top: 1px solid var(--line-cold); background: #05070D; padding: 56px var(--gutter) 28px; }
.footer-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--steel); font-size: 14px; max-width: 36ch; margin: 14px 0 0; }
.footer h3 { font-size: 13px; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 14px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a:not(.brand) { color: var(--silver); text-decoration: none; font-size: 14px; }
.footer-grid a:not(.brand):hover { color: var(--ice); }
.footer-base { max-width: var(--wrap); margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--line-cold); }
.disclaimer { color: var(--steel); font-size: 13px; max-width: 90ch; margin: 0 0 8px; }
.footer-base .fine { margin: 4px 0 0; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .numbers { grid-template-columns: repeat(3, 1fr); }
  .numbers li:nth-child(4) { border-left: 0; padding-left: 0; }
  .numbers li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .roster { grid-template-columns: repeat(2, 1fr); }
  .campaign-grid { grid-template-columns: repeat(2, 1fr); }
  .rail { display: none; }
}
@media (max-width: 960px) {
  .nav { grid-template-columns: auto 1fr auto auto; }
  .nav nav, .nav-discord { display: none; }
  .nav-toggle { display: block; }
  .split-head, .companion-rules, .download-grid, .community-band { grid-template-columns: 1fr; gap: 28px; }
  .world-cols, .rates-rest { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-bg img { object-position: 78% 30%; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(7, 10, 18, 0.5) 0%, rgba(7, 10, 18, 0.72) 40%, rgba(7, 10, 18, 0.9) 75%, var(--bg) 100%); }
}
@media (max-width: 640px) {
  .nav-cta { display: none; }
  .hero { padding-top: 104px; }
  .hero-emblem { width: 96px; height: 96px; }
  .starter ul { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .numbers li, .numbers li:nth-child(4) { border-left: 1px solid var(--line); padding-left: 16px; }
  .numbers li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .numbers li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .features { grid-template-columns: 1fr; }
  .curve { grid-template-columns: repeat(3, 1fr); }
  .roster { grid-template-columns: 1fr; }
  .roster li { aspect-ratio: 4 / 5; }
  .campaign-grid { grid-template-columns: 1fr; }
  .panel { padding: 24px 18px 8px; }
  .steps li { grid-template-columns: 1fr; }
  .steps li::before { grid-row: auto; margin-bottom: 6px; }
  .steps li > * { grid-column: 1; }
  .btn-lg { padding: 16px 26px; font-size: 14px; }
  .cta-row .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =====================================================================================
   LINEAGE II CLASSIC LAYER (6 Oct 2026). Overrides the launcher base above with L2's own
   visual language: gold beveled serif titles, ornamental flourish dividers, gold-framed
   bronze plaques, centred section heads. Previous look: styles.css.bak-1006-l2look
   ===================================================================================== */
@font-face { font-family: "Cinzel"; src: url("assets/fonts/Cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
:root {
  --gold: #E9C77B;
  --gold-hi: #FFF1C8;
  --gold-lo: #A8792E;
  --gold-soft: #F2DDAE;
  --line: rgba(233, 199, 123, 0.24);
  --serif: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --gold-text: linear-gradient(180deg, #FFF6D8 0%, #F3D48C 38%, #C8963F 62%, #F6DA98 82%, #B98636 100%);
  /* flourish: line, diamond, line. Reused as the section divider and the eyebrow ornament. */
  --flourish: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='360' height='24' viewBox='0 0 360 24'><defs><linearGradient id='g' x1='0' x2='1'><stop offset='0' stop-color='%23E9C77B' stop-opacity='0'/><stop offset='.5' stop-color='%23E9C77B'/><stop offset='1' stop-color='%23E9C77B' stop-opacity='0'/></linearGradient></defs><path d='M0 12H150M210 12H360' stroke='url(%23g)' stroke-width='1'/><path d='M180 2l10 10-10 10-10-10z' fill='none' stroke='%23E9C77B' stroke-width='1.2'/><path d='M180 7l5 5-5 5-5-5z' fill='%23E9C77B'/><path d='M150 12c8-6 14-6 20 0M210 12c-8-6-14-6-20 0M150 12c8 6 14 6 20 0M210 12c-8 6-14 6-20 0' fill='none' stroke='%23E9C77B' stroke-width='1'/><circle cx='140' cy='12' r='1.6' fill='%23E9C77B'/><circle cx='220' cy='12' r='1.6' fill='%23E9C77B'/></svg>");
}

/* Titles: gold metal, beveled */
h1, h2, h3, .roster-name, .brand-text strong, .numbers strong, .curve strong, .campaign-grid li::before, .steps li::before { font-family: var(--serif); }
.section h2, .h1-main, .h1-top {
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(40, 24, 6, 0.9)) drop-shadow(0 6px 22px rgba(0, 0, 0, 0.6));
}
h2 { font-weight: 700; letter-spacing: 0.04em; text-transform: none; font-size: clamp(30px, 4vw, 52px); line-height: 1.1; }
h3 { letter-spacing: 0.06em; }
.h1-top { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: 0.2em; font-weight: 600; }
.h1-main { font-weight: 800; letter-spacing: 0.02em; font-size: clamp(54px, min(8.4vw, 14vh), 128px); text-transform: none; }
.h1-sub { font-family: var(--serif); font-size: clamp(18px, 2vw, 26px); letter-spacing: 0.3em; color: var(--gold-soft); }
.kicker { font-family: var(--serif); letter-spacing: 0.22em; color: var(--gold-soft); }

/* Eyebrows carry the flourish; most section heads are centred like the official site */
.eyebrow { font-family: var(--serif); font-weight: 600; letter-spacing: 0.26em; color: var(--gold); }
.eyebrow::before { width: 54px; height: 14px; background: var(--flourish) right center / auto 14px no-repeat; }
.section.rates .wrap, .section.world .wrap, .section.campaign .wrap, .section.faq .wrap, .section.races .wrap { text-align: center; }
.section.rates .wrap > .eyebrow, .section.world .wrap > .eyebrow, .section.campaign .wrap > .eyebrow, .section.faq .wrap > .eyebrow, .section.races .wrap > .eyebrow { justify-content: center; }
.section.rates .wrap > .eyebrow::after, .section.world .wrap > .eyebrow::after, .section.campaign .wrap > .eyebrow::after, .section.faq .wrap > .eyebrow::after, .section.races .wrap > .eyebrow::after {
  content: ""; width: 54px; height: 14px; background: var(--flourish) left center / auto 14px no-repeat;
}
.section.rates h2, .section.world h2, .section.campaign h2, .section.faq h2, .section.races h2,
.section.rates .sub, .section.campaign .sub, .section.races .sub { margin-left: auto; margin-right: auto; }
.features, .rates-rest, .campaign-grid, .faq-list, .world-cols, .numbers, .curve, .more-body { text-align: left; }

/* Flourish divider on every section seam */
.section + .section::before, .hero + .section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); z-index: 3;
  width: min(420px, 80vw); height: 26px; background: var(--flourish) center / contain no-repeat; pointer-events: none;
}

/* Buttons: L2 plaques. Gold frame with pointed ends, gold or dark bronze face. */
.btn { --c: 14px; font-family: var(--serif); font-weight: 700; letter-spacing: 0.1em; text-transform: none; font-size: 15px; isolation: isolate;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% 50%, calc(100% - var(--c)) 100%, var(--c) 100%, 0 50%); }
.btn::before { content: ""; position: absolute; inset: 1.5px; z-index: -1;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% 50%, calc(100% - var(--c)) 100%, var(--c) 100%, 0 50%); }
.btn-primary { color: #2A1704; background: linear-gradient(180deg, #FFF0C2, #8E6424); text-shadow: 0 1px 0 rgba(255, 240, 200, 0.6); }
.btn-primary::before { background: linear-gradient(180deg, #FCE3A2 0%, #E5B865 45%, #C48A35 100%); }
.btn-ghost { color: var(--gold-hi); background: linear-gradient(180deg, #F3D48C, #8E6424); box-shadow: none; }
.btn-ghost::before { background: linear-gradient(180deg, #2E2215 0%, #17110A 100%); }
.btn-ghost:hover { background: linear-gradient(180deg, #FFF0C2, #A8792E); }
.btn-ghost:hover::before { background: linear-gradient(180deg, #3D2C19 0%, #21180D 100%); }
.btn-discord { background: linear-gradient(180deg, #C9CEFF, #4752C4); }
.btn-discord::before { background: linear-gradient(180deg, #6E7BFF, #4752C4); }
.btn-sm { --c: 10px; font-size: 13px; }
.btn-lg { --c: 18px; font-size: 16px; padding: 18px 40px; }
.more summary { position: relative; isolation: isolate; font-family: var(--serif); text-transform: none; letter-spacing: 0.1em; border: 0;
  color: var(--gold-hi); background: linear-gradient(180deg, #F3D48C, #8E6424);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%); }
.more summary::before { content: ""; position: absolute; inset: 1.5px; z-index: -1; background: linear-gradient(180deg, #2E2215, #17110A);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%); }
.more summary:hover { background: linear-gradient(180deg, #FFF0C2, #A8792E); }

/* Nav */
.nav { border-bottom: 1px solid var(--line); }
.nav nav a { font-family: var(--serif); text-transform: none; letter-spacing: 0.08em; font-size: 15px; color: var(--gold-soft); }
.nav nav a::after { background: var(--gold); }
.brand-text span { font-family: var(--serif); letter-spacing: 0.2em; }
.brand-text strong { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; text-transform: none; letter-spacing: 0.08em; }

/* Gold-framed panels */
.glass, .panel, .campaign-grid li { position: relative; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 22, 13, 0.84), rgba(9, 9, 14, 0.9)); }
.glass::after, .panel::after {
  content: ""; position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); width: 160px; height: 16px;
  background: var(--flourish) center / contain no-repeat;
}
.glass h3, .rates-group h3, .footer h3, .starter-title { color: var(--gold); font-family: var(--serif); }
.panel-title { font-family: var(--serif); text-align: center; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.numbers { border-color: var(--line); }
.numbers li { border-color: var(--line); }
.numbers strong { color: transparent; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; text-shadow: none;
  filter: drop-shadow(0 2px 0 rgba(40, 24, 6, 0.9)); font-weight: 700; }
.numbers em { color: var(--gold-lo); -webkit-text-fill-color: var(--gold-lo); }
.campaign-grid li::before, .steps li::before { color: var(--gold); font-weight: 700; }
.campaign-grid li:hover { border-color: rgba(233, 199, 123, 0.6); background: linear-gradient(180deg, rgba(48, 34, 18, 0.9), rgba(12, 11, 16, 0.92)); }
.icon-list li { border-left: 2px solid var(--gold); background: linear-gradient(90deg, rgba(233, 199, 123, 0.08), transparent 70%); }
.rates-group h3 { border-color: var(--line); }
.rates-group li::before { background: var(--gold); }
.curve li { border-top-color: var(--gold); background: linear-gradient(180deg, rgba(233, 199, 123, calc(0.06 + var(--i) * 0.045)), rgba(13, 12, 18, 0.6)); }
.roster li { border: 1px solid rgba(233, 199, 123, 0.32); }
.roster-class { color: var(--gold); font-family: var(--serif); letter-spacing: 0.12em; text-transform: none; }
.roster-name { text-transform: none; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(30, 18, 4, 0.95)); }
.roster-join, .pill { font-family: var(--serif); text-transform: none; letter-spacing: 0.06em; }
.roster-join { color: var(--gold); border-color: var(--line); }
.faq-list details { border-color: var(--line); background: linear-gradient(180deg, #15110C, #0C0B10); }
.faq-list details[open] { border-color: rgba(233, 199, 123, 0.5); }
.faq-list summary h3 { font-family: var(--serif); text-transform: none; letter-spacing: 0.03em; font-size: 16px; color: var(--gold-soft); }
.community-band { border: 1px solid var(--line); background: linear-gradient(110deg, rgba(71, 82, 196, 0.18), rgba(24, 18, 12, 0.92) 55%), #0E0C10; }
.shot { border-color: var(--line); }
.starter img, .starter .ico { border-color: rgba(233, 199, 123, 0.6); box-shadow: 0 0 14px rgba(233, 199, 123, 0.2); }
.scroll-cue { font-family: var(--serif); color: var(--gold-soft); }
.scroll-cue i { border-color: var(--gold); }
.rail a:hover { background: rgba(233, 199, 123, 0.18); border-color: var(--gold); }
.hero-bg::after {
  background:
    linear-gradient(90deg, rgba(8, 8, 14, 0.92) 0%, rgba(8, 8, 14, 0.7) 32%, rgba(8, 8, 14, 0.12) 60%, transparent 100%),
    linear-gradient(180deg, rgba(8, 8, 14, 0.5) 0%, transparent 22%, transparent 72%, var(--bg) 100%);
}
/* Optional animated key art: the video sits over the still and only shows once it can play */
.hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; opacity: 0; transition: opacity 1.2s ease; }
.hero-bg video.ready { opacity: 1; }

/* Races band */
.races { padding-bottom: calc(var(--section) * 0.7); }
.races-art { position: relative; z-index: 2; margin: 44px auto 0; max-width: 1400px; padding: 0 var(--gutter); }
.races-art img { width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.races-art::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 38%;
  background: linear-gradient(180deg, transparent, rgba(8, 8, 14, 0.94)); pointer-events: none; }
.race-names { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 18px; z-index: 1; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); text-align: center; }
.race-names li { font-family: var(--serif); font-weight: 700; font-size: clamp(13px, 1.6vw, 22px); letter-spacing: 0.06em; color: var(--gold-hi);
  text-shadow: 0 2px 0 #000, 0 0 18px rgba(0, 0, 0, 0.9); }
.race-names span { display: block; font-family: var(--body); font-weight: 500; font-size: 12px; letter-spacing: 0.03em; color: var(--silver); margin-top: 2px; }
@media (max-width: 760px) {
  .race-names { position: static; grid-template-columns: repeat(3, 1fr); gap: 12px 0; margin-top: 16px; }
  .races-art::after { display: none; }
}
.section h2 { max-width: 24ch; }
.split-head h2 { font-size: clamp(28px, 3.4vw, 44px); }
.campaign .section-bg::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(8, 8, 14, 0.55) 22%, rgba(8, 8, 14, 0.72) 62%, var(--bg) 100%); }
.download .section-bg img { filter: brightness(1.25) saturate(1.1); }
@media (max-width: 960px) {
  .hero-bg::after { background: linear-gradient(180deg, rgba(8, 8, 14, 0.62) 0%, rgba(8, 8, 14, 0.8) 38%, rgba(8, 8, 14, 0.92) 70%, var(--bg) 100%); }
}
@media (max-width: 960px) { .nav-toggle { grid-column: -2; justify-self: end; } }
.rates .section-bg img { object-position: 62% 50%; opacity: 0.85; }
.rates .section-bg img { opacity: 1; }
.rates .section-bg::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(8, 8, 14, 0.35) 18%, rgba(8, 8, 14, 0.5) 55%, rgba(8, 8, 14, 0.7) 82%, var(--bg) 100%), radial-gradient(60% 55% at 50% 42%, rgba(8, 8, 14, 0.55), transparent 75%); }
.rates .features p, .rates .sub { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
