/* ==========================================================================
   Goblinbound landing page
   All colours, fonts and sizes live in :root, so they're easy to change.
   ========================================================================== */

:root {
  /* Surfaces: near-black with a goblin-green tint */
  --bg: #070a08;
  --bg-2: #0b100d;
  --panel: #0f1511;
  --panel-2: #141c17;
  --line: rgba(196, 214, 204, 0.12);
  --line-strong: rgba(196, 214, 204, 0.22);

  /* Text */
  --text: #e7ece8;
  --muted: #9eaaa3;
  --faint: #6f7b74;

  /* Logo steel */
  --steel-hi: #f2f5f7;
  --steel: #c3ccd2;
  --steel-mid: #8a959c;
  --steel-lo: #4a5358;
  --steel-dark: #2a3034;

  /* Logo fel-green glow */
  --fel: #57ff3c;
  --fel-2: #2fd41f;
  --fel-deep: #0e5a10;
  --fel-glow: rgba(87, 255, 60, 0.45);
  --fel-soft: rgba(87, 255, 60, 0.12);

  /* Crown and blade accents */
  --gold: #e8b53f;
  --blood: #d0202a;
  --blood-glow: rgba(208, 32, 42, 0.45);

  /* Type */
  --font-title: "Cinzel Decorative", "Cinzel", Georgia, serif;   /* big titles: closest to the logo letters */
  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;        /* labels, buttons, card titles */
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 4px;
  --nav-h: 68px;

  /* Logo-style metal lettering */
  --steel-fill: linear-gradient(180deg, #ffffff 0%, #eef2f4 30%, #a9b2b8 47%, #646e75 54%, #c5ccd1 72%, #f6f8f9 100%);
  --fel-fill: linear-gradient(180deg, #e4ffd9 0%, #8dff6d 28%, #46f22e 50%, #1b9e12 60%, #6dff4a 100%);
  --blood-fill: linear-gradient(180deg, #ffd3d0 0%, #ff6b5e 30%, #e3252c 52%, #8f0d13 62%, #ff5048 100%);
  --metal-tex: url("../images/ui/metal.svg");
  --gem: url("../images/ui/gem.svg");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* film grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { max-width: 100%; display: block; }
a { color: var(--fel); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; touch-action: manipulation; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--fel); outline-offset: 3px; }

.sr-only, .hpot {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--fel); color: #041004; padding: 8px 14px; font-weight: 700; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 880px; }

/* ---------- Logo-style lettering ----------
   Chrome-steel fill + brushed texture, a thin green rim, a dark outline and a soft green glow,
   like the GOBLINBOUND letters. Accent words use .fel-text (green) or .blood-text (red). */
.metal-text {
  background: var(--metal-tex), var(--steel-fill);
  background-size: 320px 160px, 100% 100%;
  background-blend-mode: multiply;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 1.5px #3ee82a) drop-shadow(0 0 1.2px #000) drop-shadow(0 4px 10px rgba(0,0,0,.75));
}
.metal-text .fel-text, .metal-text .blood-text { filter: none; }
.fel-text {
  background: var(--fel-fill);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
b.fel-text, .stat .fel-text { filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 .8px #000) drop-shadow(0 0 14px rgba(87,255,60,.45)); }
.blood-text {
  background: var(--blood-fill);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------- Steel frame with gem corners (like the logo letters + emblem) ---------- */
.mframe {
  position: relative;
  border: 2px solid;
  border-color: #dfe5e8 #6e787f #3b4348 #aeb7bd; /* lit from the top-left */
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow:
    0 0 0 1px #020302,
    inset 0 0 0 1px #050705,
    inset 0 0 0 2px rgba(87,255,60,.55),
    inset 0 0 22px rgba(87,255,60,.10),
    0 24px 60px rgba(0,0,0,.55);
}
.mframe::before {
  content: ""; position: absolute; inset: -9px; pointer-events: none; z-index: 3;
  background:
    var(--gem) left top / 16px 16px no-repeat,
    var(--gem) right top / 16px 16px no-repeat,
    var(--gem) left bottom / 16px 16px no-repeat,
    var(--gem) right bottom / 16px 16px no-repeat;
}

/* Thin steel edge for smaller cards */
.sframe {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid;
  border-color: rgba(230,236,240,.38) rgba(120,130,136,.22) rgba(40,46,50,.6) rgba(170,180,186,.28);
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05);
}

/* ---------- Buttons ---------- */
.btn {
  --b: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text); text-decoration: none !important; white-space: nowrap;
  clip-path: polygon(var(--b) 0, calc(100% - var(--b)) 0, 100% var(--b), 100% calc(100% - var(--b)), calc(100% - var(--b)) 100%, var(--b) 100%, 0 calc(100% - var(--b)), 0 var(--b));
  transition: transform .15s ease, filter .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  color: #041204;
  background: linear-gradient(180deg, #a6ff8c 0%, var(--fel) 35%, var(--fel-2) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 0 rgba(0,0,0,.25);
  filter: drop-shadow(0 0 14px rgba(87,255,60,.35));
}
.btn--primary:hover { filter: drop-shadow(0 0 22px rgba(87,255,60,.6)) brightness(1.06); }
.btn--primary[disabled] { filter: grayscale(.6) brightness(.8); cursor: default; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn--ghost, .btn--discord, .btn--steam {
  background:
    linear-gradient(180deg, #1a231d, #101612) padding-box,
    linear-gradient(160deg, rgba(235,242,245,.6), rgba(90,100,96,.3) 50%, rgba(87,255,60,.45)) border-box;
  border: 1px solid transparent;
}
.btn--ghost:hover, .btn--discord:hover, .btn--steam:hover:not([aria-disabled="true"]) { filter: brightness(1.25); }
.btn--discord .btn__icon svg { width: 22px; height: 22px; color: #8c96ff; }
.btn--steam svg { width: 22px; height: 22px; }
.btn--steam[aria-disabled="true"] { cursor: default; color: var(--muted); }
.btn--steam small { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--gold); font-size: 13px; }
.btn--icon { width: 40px; padding: 0 !important; }
.btn--icon .btn__icon { display: grid; place-items: center; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  color: var(--steel); border-radius: 50%;
  transition: color .2s, background .2s;
}
.icon-btn:hover { color: var(--fel); background: var(--fel-soft); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Nav (always solid) ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: linear-gradient(180deg, rgba(12,17,14,.97), rgba(6,9,7,.97));
  border-bottom: 1px solid rgba(196,214,204,.16);
  box-shadow: 0 1px 0 rgba(87,255,60,.16), 0 10px 30px rgba(0,0,0,.55);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.nav__brand img { border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong), 0 0 16px rgba(87,255,60,.25); }
.nav__brand span {
  font-family: var(--font-title); font-weight: 700; font-size: 20px; letter-spacing: .02em;
  background: var(--steel-fill); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 1px #3ee82a) drop-shadow(0 1px 1px #000);
}
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a { color: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .04em; padding: 8px 12px; border-radius: var(--radius); text-decoration: none; transition: color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active { box-shadow: inset 0 -2px 0 var(--fel); }
.nav__actions { display: flex; align-items: center; gap: 6px; }
.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.nav__toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  padding: calc(var(--nav-h) + 20px) 0 48px;
  overflow: hidden;
}
/* pre-blurred, pre-darkened image: no live blur filter (cheap on phones) */
.hero__bg { position: absolute; inset: 0; z-index: -2; background: #0a0d0b url("../images/hero-bg.jpg") center/cover no-repeat; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 20% 15%, rgba(87,255,60,.14), transparent 70%),
    radial-gradient(50% 40% at 90% 90%, rgba(208,32,42,.10), transparent 70%),
    linear-gradient(180deg, rgba(7,10,8,.2) 0%, rgba(7,10,8,.55) 60%, var(--bg) 100%);
}
.hero__inner { display: flex; flex-direction: column; gap: 20px; }
.hero__head { display: grid; grid-template-columns: minmax(240px, 330px) 1fr; gap: 32px; align-items: center; }
.hero__logo img { width: 100%; height: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.7)) drop-shadow(0 0 30px rgba(87,255,60,.15)); }
.hero__hook { font-family: var(--font-title); font-weight: 700; line-height: 1.04; font-size: clamp(32px, 3.7vw, 54px); }
.hero__sub { margin-top: 12px; max-width: 640px; font-size: clamp(17px, 1.5vw, 20px); color: #cdd6d0; }
.hero__sub strong { color: var(--text); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; position: relative; z-index: 5; }
.tags li { position: relative; }
.tag {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 10px 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--steel);
  background: rgba(10,14,11,.7);
  transition: color .2s, border-color .2s, background .2s;
}
.tag svg { width: 13px; height: 13px; opacity: .65; }
.tag:hover, .tag[aria-expanded="true"] { color: #fff; border-color: rgba(87,255,60,.6); background: rgba(87,255,60,.1); }
.tag:hover svg, .tag[aria-expanded="true"] svg { opacity: 1; }
.tag--fel { color: var(--fel); border-color: rgba(87,255,60,.55); box-shadow: 0 0 14px rgba(87,255,60,.22); }
.tag__pop {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: 30;
  width: min(300px, calc(100vw - 24px)); padding: 14px 16px 12px;
  transform: translateX(calc(-50% + var(--shift, 0px)));
  text-align: left; font-size: 14.5px; line-height: 1.5; color: #d3dbd5;
  background: linear-gradient(180deg, #131b16, #0b100d);
  border: 1px solid rgba(87,255,60,.45); border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 24px rgba(87,255,60,.12);
  animation: pop-in .18s ease-out;
}
.tag__pop[hidden] { display: none; }
.tag__pop::before { content: ""; position: absolute; top: -6px; left: calc(50% - 6px - var(--shift, 0px)); width: 10px; height: 10px; background: #131b16; border-left: 1px solid rgba(87,255,60,.45); border-top: 1px solid rgba(87,255,60,.45); transform: rotate(45deg); }
.tag__pop a { display: inline-block; margin-top: 8px; font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .04em; color: var(--fel); }

.hero__media { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.player { padding: 0; }
.player__screen { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.player__screen video, .player__screen iframe, .player__screen .player__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.player__badge {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(5,8,6,.7); border: 1px solid var(--line-strong); border-radius: 999px; color: var(--steel);
  backdrop-filter: blur(6px);
}
.player__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fel); box-shadow: 0 0 8px var(--fel); animation: pulse 1.6s infinite; }
.player__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 40px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
}
.player__caption strong { font-family: var(--font-display); font-size: 18px; letter-spacing: .03em; }
.player__caption span { color: var(--muted); font-size: 14px; }
.player__soon { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; text-align: center; gap: 12px; padding: 24px; background: radial-gradient(60% 60% at 50% 50%, rgba(5,8,6,.55), rgba(5,8,6,.85)); }
.player__vertical { position: absolute; inset: 0; display: grid; place-items: center; }
.player__vertical::before { content: ""; position: absolute; inset: -30px; background: var(--poster) center/cover; filter: blur(24px) brightness(.4); }
.player__vertical iframe { position: relative !important; width: auto !important; height: 100% !important; aspect-ratio: 9 / 16; inset: auto !important; }

.hero__side { display: flex; flex-direction: column; gap: 14px; min-width: 0; align-self: stretch; }
.hero__side .join-card { margin-top: auto; }
.playlist { display: flex; flex-direction: column; gap: 6px; }
.playlist__item {
  display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center;
  width: 100%; padding: 5px; text-align: left; cursor: pointer;
  background: rgba(15,21,17,.8); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, background .2s;
  position: relative;
}
.playlist__item:hover { border-color: var(--line-strong); background: rgba(22,30,25,.95); }
.playlist__item[aria-selected="true"] { border-color: rgba(87,255,60,.55); background: linear-gradient(90deg, rgba(87,255,60,.13), rgba(15,21,17,.88) 60%); }
.playlist__item[aria-selected="true"]::before { content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 3px; background: var(--fel); box-shadow: 0 0 10px var(--fel); }
.playlist__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: #000; }
.playlist__thumb img { width: 100%; height: 100%; object-fit: cover; }
.playlist__thumb .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.25); }
.playlist__thumb .play svg { width: 18px; height: 18px; filter: drop-shadow(0 1px 4px rgba(0,0,0,.8)); }
.playlist__text { min-width: 0; }
.playlist__title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playlist__meta { display: block; font-size: 13px; color: var(--muted); }

.join-card { padding: 16px; }
.join-card__title { font-family: var(--font-title); font-weight: 700; font-size: 19px; margin-bottom: 10px; color: var(--steel-hi); }
.join-card__alt { margin-top: 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.join-card__alt .btn { padding: 0 12px; font-size: 12px; gap: 8px; }
.join-card__alt .btn small { font-size: 11.5px; }
.join-card__alt .btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Waitlist form ---------- */
.waitlist__row { display: flex; gap: 8px; }
.waitlist input[type="email"] {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--text);
  background: #060906; border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.6);
  transition: border-color .2s, box-shadow .2s;
}
.waitlist input[type="email"]::placeholder { color: var(--faint); }
.waitlist input[type="email"]:focus { outline: none; border-color: var(--fel); box-shadow: 0 0 0 3px var(--fel-soft), 0 0 18px rgba(87,255,60,.2); }
.waitlist input[aria-invalid="true"] { border-color: var(--blood); }
.waitlist__legal { margin-top: 8px; font-size: 12.5px; line-height: 1.45; color: var(--faint); }
.waitlist__legal a { color: var(--muted); text-decoration: underline; }
.waitlist__msg { font-size: 14px; font-weight: 600; }
.waitlist__msg:not(:empty) { margin-top: 8px; }
.waitlist__msg.is-ok { color: var(--fel); }
.waitlist__msg.is-err { color: #ff6b6b; }
.waitlist.is-done .waitlist__row, .waitlist.is-done .waitlist__legal { display: none; }
.waitlist.is-done .waitlist__msg { margin-top: 0; font-size: 16px; }
.waitlist button[disabled] { opacity: .7; cursor: progress; }
.waitlist--big .waitlist__row input { height: 56px; font-size: 17px; }
.waitlist--big .waitlist__legal { text-align: center; font-size: 13px; }
.waitlist--big .waitlist__msg { text-align: center; }

/* ---------- Stats band ---------- */
.stats {
  position: relative;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(40% 120% at 50% 0%, rgba(87,255,60,.08), transparent 70%),
    linear-gradient(180deg, #0b100c, #070a08);
  padding: 26px 0;
}
.stats::before, .stats::after { content: ""; position: absolute; left: 50%; width: 240px; height: 20px; margin-left: -120px; background: url("../images/ui/divider.svg") center/contain no-repeat; }
.stats::before { top: -10px; }
.stats::after { bottom: -10px; }
.stats__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { text-align: center; position: relative; display: block; padding: 6px 0; color: inherit; text-decoration: none !important; border-radius: 6px; transition: background .2s; }
.stat:hover { background: rgba(87,255,60,.06); }
.stat:hover span { color: var(--fel); }
.stat + .stat::before { content: ""; position: absolute; left: -6px; top: 18%; bottom: 18%; width: 1px; background: linear-gradient(180deg, transparent, var(--line-strong), transparent); }
.stat b { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; }
.stat span { display: block; margin-top: 4px; font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(76px, 10vw, 124px) 0; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); }
.section__head { text-align: center; max-width: 900px; margin: 0 auto clamp(36px, 5vw, 52px); }
.section__head--left { text-align: left; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--fel); margin-bottom: 14px; text-shadow: 0 0 12px rgba(87,255,60,.35);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--steel); background: radial-gradient(circle, var(--fel) 0 35%, transparent 40%); box-shadow: 0 0 8px rgba(87,255,60,.4); }
.title { font-family: var(--font-title); font-weight: 700; line-height: 1.08; font-size: clamp(32px, 4.4vw, 56px); }
.title--xl { font-size: clamp(40px, 6vw, 76px); }
.section__head .title + .lead::before {
  content: ""; display: block; width: 200px; height: 18px; margin: 0 auto 16px;
  background: url("../images/ui/divider.svg") center/contain no-repeat;
}
.section__head--left .title + .lead::before { margin-left: 0; }
.lead { margin-top: 16px; font-size: clamp(17px, 1.4vw, 19px); color: #c2ccc5; }
.wip-note { margin-top: 26px; text-align: center; font-size: 14px; color: var(--faint); font-style: italic; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid; border-color: rgba(230,236,240,.3) rgba(120,130,136,.2) rgba(40,46,50,.6) rgba(170,180,186,.24);
  border-radius: 3px; overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.pillar:hover { transform: translateY(-4px); border-color: rgba(87,255,60,.5); box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 30px rgba(87,255,60,.1); }
.pillar__media { position: relative; aspect-ratio: 4 / 5; background: #000; overflow: hidden; }
.pillar__media video { width: 100%; height: 100%; object-fit: cover; }
.pillar__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--panel-2)); pointer-events: none; }
.pillar__body { padding: 0 20px 22px; margin-top: -36px; position: relative; z-index: 1; }
.pillar__num { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .2em; color: var(--fel); }
.pillar h3 { font-family: var(--font-display); font-weight: 900; font-size: 21px; margin: 4px 0 8px; color: var(--steel-hi); }
.pillar p:not(.pillar__num) { color: var(--muted); font-size: 16px; }
.pillar--feature { border-color: rgba(87,255,60,.5); box-shadow: 0 0 0 1px rgba(87,255,60,.15), 0 0 40px rgba(87,255,60,.1); }
.pillar--feature::before { content: ""; position: absolute; left: 50%; top: -1px; z-index: 2; width: 16px; height: 16px; margin: -8px 0 0 -8px; background: var(--gem) center/contain no-repeat; }

.cursor-demo { position: absolute; left: 30%; top: 40%; z-index: 2; animation: cursor-move 6s ease-in-out infinite; filter: drop-shadow(0 2px 6px rgba(0,0,0,.7)); }
.cursor-demo__ring { position: absolute; left: 2px; top: 2px; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 2px solid var(--fel); border-radius: 50%; opacity: 0; animation: click-ring 6s ease-out infinite; }

/* ---------- Combat ---------- */
.combat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 60px); align-items: center; }
.why { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.why li { position: relative; padding-left: 30px; }
.why li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 14px; background: var(--gem) center/contain no-repeat; }
.why b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 17px; letter-spacing: .03em; color: var(--steel-hi); }
.why span { color: var(--muted); font-size: 15.5px; }
.click-hint { display: flex; align-items: center; gap: 10px; color: var(--fel); font-weight: 600; font-size: 15px; }
.click-hint svg { width: 18px; height: 18px; flex: none; }

.duel { padding: clamp(16px, 2.4vw, 24px); }
.duel__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.duel__label { font-family: var(--font-title); font-weight: 700; font-size: 20px; color: var(--steel-hi); }
.duel__replay { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line-strong); color: var(--steel); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; cursor: pointer; }
.duel__replay:hover { color: var(--fel); border-color: rgba(87,255,60,.5); }
/* Versus header: two equal columns, so both health bars are the same length */
.versus { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 14px; margin-bottom: 18px; }
.fighter__id { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; min-width: 0; }
.fighter__id img { width: 36px; height: 36px; flex: none; }
.fighter__id > div { min-width: 0; }
.fighter__name { font-family: var(--font-display); font-weight: 900; font-size: 16px; line-height: 1.15; color: var(--steel-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fighter__sub { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.fighter--you .fighter__sub { color: var(--fel); }
.fighter--foe .fighter__sub { color: #ff7a80; }
.fighter--foe .fighter__id { flex-direction: row-reverse; text-align: right; }
.versus__vs { align-self: center; font-family: var(--font-title); font-weight: 700; font-size: 22px; color: var(--gold); text-shadow: 0 0 12px rgba(232,181,63,.45); padding-top: 22px; }
.bar { position: relative; height: 22px; background: #050806; border: 1px solid var(--line-strong); border-radius: 3px; box-shadow: inset 0 2px 6px rgba(0,0,0,.7); }
.bar__ghost, .bar__fill { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; border-radius: 2px; }
.bar__ghost { background: rgba(255,240,200,.75); transition: width .5s ease; }
.bar__fill { background: linear-gradient(180deg, #8dff6d, var(--fel-2) 55%, var(--fel-deep)); box-shadow: 0 0 12px rgba(87,255,60,.45); transition: width .25s ease-out; }
.fighter--foe .bar__ghost, .fighter--foe .bar__fill { left: auto; right: 0; }
.fighter--foe .bar__fill { background: linear-gradient(180deg, #ff7a6e, var(--blood) 55%, #5e0a0f); box-shadow: 0 0 12px var(--blood-glow); }
.bar__num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 12.5px; letter-spacing: .04em; color: #fff; text-shadow: 0 1px 2px #000, 0 0 4px #000; }
.bar__pop { position: absolute; top: -26px; right: 4px; font-family: var(--font-display); font-weight: 900; font-size: 18px; color: #ff6b6b; text-shadow: 0 2px 4px #000; opacity: 0; }
.fighter--foe .bar__pop { right: auto; left: 4px; }
.bar__pop.is-on { animation: dmg-pop 1.2s ease-out; }
.bar__pop.is-heal { color: var(--fel); }
.duel__rowlabel { font-family: var(--font-display); font-weight: 800; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; margin: 2px 0 6px; }
.duel__rowlabel--you { color: var(--fel); }
.duel__rowlabel--foe { color: #ff7a80; }
.duel__fighter { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.duel__cls { width: 32px; height: 32px; flex: none; filter: drop-shadow(0 0 6px rgba(0,0,0,.6)); }
.duel__name { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-display); font-weight: 800; min-width: 220px; }
.duel__name em { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot--fel { background: var(--fel); box-shadow: 0 0 8px var(--fel); }
.dot--blood { background: var(--blood); box-shadow: 0 0 8px var(--blood); }
.hp { position: relative; flex: 1; height: 12px; background: #050806; border: 1px solid var(--line-strong); border-radius: 2px; overflow: hidden; }
.hp__bar { position: absolute; inset: 0; width: 100%; background: linear-gradient(90deg, var(--fel-deep), var(--fel)); box-shadow: 0 0 12px rgba(87,255,60,.5); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.hp__bar--foe { background: linear-gradient(90deg, #5e0a0f, var(--blood)); box-shadow: 0 0 12px var(--blood-glow); }
.hp__num { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 10px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000; }

.duel__row, .duel__beats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.duel__beats { margin: -8px 0 14px; }
.duel__beats span { display: grid; place-items: center; height: 18px; border-radius: 3px; font-family: var(--font-display); font-weight: 900; font-size: 11px; color: var(--faint); background: rgba(255,255,255,.04); transition: background .3s, box-shadow .3s, color .3s; }
.duel__beats span.is-on { background: var(--gold); color: #1a1204; box-shadow: 0 0 12px var(--gold); }
.duel__beats span.is-past { background: rgba(232,181,63,.18); color: rgba(232,181,63,.7); }
.slot {
  position: relative; aspect-ratio: 1; padding: 0; display: grid; place-items: center;
  background: radial-gradient(70% 70% at 50% 35%, #18201b, #070a08);
  border: 1px solid var(--line-strong); border-radius: 6px; color: var(--faint);
  box-shadow: inset 0 2px 8px rgba(0,0,0,.7);
  transition: transform .25s, box-shadow .25s, opacity .3s, filter .3s, border-color .2s;
}
.slot img { width: 86%; height: 86%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.slot .slot__name { position: absolute; left: 0; right: 0; bottom: -18px; text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.duel__row--you, .duel__row--foe { margin-bottom: 24px; }
.slot { cursor: help; }
.slot.is-active { transform: scale(1.08); border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 0 22px rgba(232,181,63,.5); z-index: 1; }
.slot.is-past { opacity: .45; filter: saturate(.4); }
.slot.is-stunned { animation: shake .4s; filter: grayscale(1) brightness(.55); }
.slot.is-hit::after { content: attr(data-dmg); position: absolute; top: -8px; right: -6px; font-weight: 800; font-size: 13px; color: #fff; background: var(--blood); padding: 1px 6px; border-radius: 999px; animation: pop .5s ease-out; z-index: 2; }
.slot.is-blocked { border-color: #4cb3ff; box-shadow: 0 0 0 2px #4cb3ff, 0 0 18px rgba(76,179,255,.45); }
.slot.is-blocked[data-mark]::before { background: #1f6fd1; }
.slot[data-mark]::before { content: attr(data-mark); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-12deg); z-index: 2; padding: 2px 6px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: #b51d25; border-radius: 3px; white-space: nowrap; }

.duel__beat { display: inline-block; margin-right: 8px; padding: 1px 8px; font-family: var(--font-display); font-weight: 800; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #1a1204; background: var(--gold); border-radius: 3px; vertical-align: 1px; }
.duel__log { margin-top: 4px; min-height: 74px; padding: 12px 14px; border-left: 3px solid var(--gold); background: rgba(232,181,63,.07); color: #dfe5e0; font-size: 15px; }
.duel__log b { color: var(--gold); }
.duel__log.is-win { border-color: var(--fel); background: var(--fel-soft); }
.duel__log.is-win b { color: var(--fel); }
.duel__note { margin-top: 10px; font-size: 13px; color: var(--faint); }

/* ---------- Classes ---------- */
.path { list-style: none; margin: 0 auto 30px; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; column-gap: 64px; row-gap: 8px; }
.path li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 0; }
.path li + li::before { content: ""; position: absolute; left: -39px; top: 21px; width: 12px; height: 12px; border-top: 2px solid var(--fel); border-right: 2px solid var(--fel); transform: rotate(45deg); filter: drop-shadow(0 0 4px var(--fel)); }
.path b { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(17px, 1.9vw, 22px); line-height: 30px; color: var(--steel-hi); white-space: nowrap; }
.path li > span { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.click-hint { justify-content: center; margin-bottom: 18px; }

.classes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ccard {
  --c: var(--steel);
  position: relative; display: flex; flex-direction: column; text-align: left; cursor: pointer; padding: 16px 16px 14px;
  color: var(--text); font: inherit;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 8%, var(--panel-2)), var(--panel));
  border: 1px solid; border-color: rgba(230,236,240,.28) rgba(120,130,136,.18) rgba(40,46,50,.6) rgba(170,180,186,.22);
  border-radius: 3px; overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.ccard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c); box-shadow: 0 0 14px var(--c); }
.ccard:hover, .ccard:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 14px 40px rgba(0,0,0,.45), 0 0 26px color-mix(in srgb, var(--c) 18%, transparent); outline: none; }
.ccard__top { display: flex; align-items: center; gap: 12px; }
.ccard__icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 8px; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c) 30%, transparent), rgba(0,0,0,.4) 70%); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.ccard__icon img { width: 40px; height: 40px; object-fit: contain; }
.ccard__icon span { font-family: var(--font-title); font-weight: 700; font-size: 22px; color: var(--c); }
.ccard h3 { font-family: var(--font-display); font-weight: 900; font-size: 19px; line-height: 1.1; color: var(--steel-hi); }
.ccard__role { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c); margin-top: 3px; }
.ccard__blurb { margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.45; flex: 1; }
.ccard__runes { display: flex; gap: 4px; margin-top: 12px; }
.ccard__runes img { width: 30px; height: 30px; object-fit: contain; }
.ccard__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ccard__foot b { font-family: var(--font-display); color: var(--fel); letter-spacing: .06em; text-transform: uppercase; font-size: 12px; white-space: nowrap; }
.ccard:hover .ccard__foot b { text-shadow: 0 0 10px rgba(87,255,60,.5); }

/* Codex dialog */
.codex { overscroll-behavior: contain; position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(3,5,4,.92); }
.codex[hidden] { display: none; }
.codex__panel { width: min(1120px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; animation: rise .3s cubic-bezier(.2,.8,.2,1); }
.codex__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.codex__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .04em; }
.codex__crumbs button { background: none; border: 0; padding: 2px 4px; color: var(--muted); cursor: pointer; font: inherit; }
.codex__crumbs button:hover { color: var(--text); }
.codex__crumbs button[aria-current="true"] { color: var(--fel); }
.codex__crumbs i { color: var(--faint); font-style: normal; }
.codex__btns { display: flex; gap: 6px; }
.codex__btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.codex__btn:hover { color: var(--fel); border-color: var(--fel); }
.codex__body { overscroll-behavior: contain; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: 0; overflow: hidden; flex: 1; }
.codex__tree { padding: 22px; overflow: auto; border-right: 1px solid var(--line); }
.codex__detail { padding: 22px; overflow: auto; }
.tree { --line: color-mix(in srgb, var(--c) 55%, transparent); display: flex; flex-direction: column; align-items: center; }
.tree__stem { display: block; width: 2px; height: 18px; background: var(--line); }
.tree__branches { --gap: 14px; display: flex; justify-content: center; gap: var(--gap); width: fit-content; max-width: 100%; margin-top: 30px; position: relative; }
.tree__branches::before { content: ""; position: absolute; top: -14px; height: 2px; background: var(--line);
  left: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n) / 2 - 2px); right: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n) / 2 - 2px); }
.tree__branches::after { content: ""; position: absolute; top: -30px; left: 50%; width: 2px; height: 16px; margin-left: -1px; background: var(--line); }
.tree__branch { display: flex; flex-direction: column; align-items: stretch; gap: 22px; position: relative; flex: 0 1 200px; min-width: 0; }
.tree__branch::before { content: ""; position: absolute; top: -14px; left: 50%; width: 2px; height: 14px; margin-left: -1px; background: var(--line); }
.tree__adv { display: flex; flex-direction: column; gap: 10px; position: relative; }
.tree__adv::before { content: ""; position: absolute; top: -22px; left: 50%; width: 2px; height: 22px; margin-left: -1px; background: var(--line); }
.tnode {
  --c: var(--steel);
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; cursor: pointer; text-align: left;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, #121914), #0b100d);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); border-radius: 6px; color: var(--text); font: inherit;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.tnode:hover { border-color: color-mix(in srgb, var(--c) 70%, transparent); }
.tnode[aria-pressed="true"] { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 22px color-mix(in srgb, var(--c) 35%, transparent); }
.tnode img { width: 32px; height: 32px; object-fit: contain; flex: none; }
.tnode b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 14.5px; line-height: 1.15; }
.tnode small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 80%, #fff); }
.tnode--root { width: auto; min-width: 240px; padding: 10px 16px; }
.tnode--noob { --c: #e8d6b0; width: auto; min-width: 200px; padding: 6px 12px; opacity: .9; }
.tnode--noob img { width: 26px; height: 26px; }
.tnode--root img { width: 40px; height: 40px; }
.tnode--root b { font-size: 18px; }
.detail__tier { font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c, var(--fel)); }
.detail__name { font-family: var(--font-title); font-weight: 700; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; margin-top: 4px; }
.detail__blurb { margin-top: 8px; color: #c8d1cb; font-size: 16.5px; }
.detail__meta { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.detail__h { margin-top: 20px; font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.runelist { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.runelist li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 8px 10px; border-radius: 6px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.runelist img { width: 44px; height: 44px; object-fit: contain; }
.runelist b { display: block; font-weight: 700; font-size: 15.5px; }
.runelist span { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }
.runelist em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-left: 6px; }

/* Rune details (codex list + tooltip): full text, stat chips, effect, traits */
.rd__text { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: #d3dbd5; }
.rd__stats { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0; padding: 0; }
.rd__stats li { font-size: 12.5px; font-weight: 700; color: #fff; padding: 2px 8px; border-radius: 3px; background: rgba(232,181,63,.14); border: 1px solid rgba(232,181,63,.4); font-variant-numeric: tabular-nums; }
.rd__status { margin-top: 7px; font-size: 13.5px; color: #c9d2cc; }
.rd__status b { color: var(--gold); }
.rd__traits { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.rd__traits span { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: var(--muted); padding: 2px 7px; border: 1px solid var(--line-strong); border-radius: 999px; }
.detail__legend { margin-top: 14px; font-size: 12.5px; color: var(--faint); font-style: italic; }

/* Rune tooltip (full game text) */
.rtip {
  position: fixed; z-index: 200; width: min(320px, calc(100vw - 24px)); padding: 12px 14px; pointer-events: none;
  background: linear-gradient(180deg, #141c17, #0b100d); border: 1px solid rgba(232,181,63,.55); border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0,0,0,.65); animation: pop-in .15s ease-out;
}
.rtip[hidden] { display: none; }
.rtip__head { display: flex; align-items: center; gap: 10px; }
.rtip__head img { width: 40px; height: 40px; }
.rtip__head b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 16px; color: #fff; }
.rtip__head span { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.rtip .rd__text { margin-top: 8px; }
.rtip { width: min(360px, calc(100vw - 24px)); }
.slot:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ccard__runes img { cursor: help; }

/* ---------- Zones ---------- */
.zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.zone {
  background: var(--panel); border: 1px solid; border-color: rgba(230,236,240,.28) rgba(120,130,136,.18) rgba(40,46,50,.6) rgba(170,180,186,.22);
  border-radius: 3px; overflow: hidden; transition: transform .3s, border-color .3s;
}
.zone:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.zone__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.zone__img img, .zone__img svg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.zone:hover .zone__img img { transform: scale(1.06); }
.zone__body { padding: 16px 18px 20px; }
.zone__meta { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.zone h3 { font-family: var(--font-display); font-weight: 900; font-size: 22px; margin: 6px 0; color: var(--steel-hi); }
.zone p { color: var(--muted); font-size: 15.5px; }
.danger { display: inline-flex; gap: 4px; }
.danger i { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--line-strong); }
.danger[data-level="1"] i:nth-child(-n+1) { background: var(--fel); border-color: var(--fel); box-shadow: 0 0 6px var(--fel); }
.danger[data-level="2"] i:nth-child(-n+2) { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 6px var(--gold); }
.danger[data-level="3"] i:nth-child(-n+3) { background: var(--blood); border-color: var(--blood); box-shadow: 0 0 6px var(--blood); }
.zone--danger { border-color: rgba(208,32,42,.4); }
.zone--danger h3 { color: #ff8a8f; }
.zone--locked { border-style: dashed; border-color: rgba(208,32,42,.45); }
.zone__lock {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 14px; font-family: var(--font-display); font-weight: 800; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: #ffd2cf; background: rgba(10,4,5,.75); border: 1px solid rgba(255,90,80,.5); border-radius: 999px; backdrop-filter: blur(4px);
}
.zone__lock svg { width: 16px; height: 16px; }

/* ---------- Coming soon + roadmap ---------- */
.soon { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
.soon__card { padding: 24px 22px 22px; }
.soon__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.soon__tag { font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--fel); }
.soon__status { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(232,181,63,.45); padding: 3px 9px; border-radius: 999px; }
.soon__card h3 { font-family: var(--font-title); font-weight: 700; font-size: 24px; margin: 10px 0 8px; color: var(--steel-hi); }
.soon__card p { color: var(--muted); font-size: 15.5px; }

.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.roadmap::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: linear-gradient(90deg, var(--fel) 0%, var(--fel) 37%, var(--line-strong) 37%); }
.roadmap li { position: relative; padding: 0 18px 0 0; }
.roadmap__node { position: relative; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; transform: rotate(45deg) scale(.75); background: var(--bg); border: 2px solid var(--line-strong); }
.roadmap__node svg { transform: rotate(-45deg); width: 20px; height: 20px; }
.roadmap li[data-status="done"] .roadmap__node { border-color: var(--fel); background: var(--fel-deep); color: var(--fel); }
.roadmap li[data-status="now"] .roadmap__node { border-color: var(--gold); background: #2b1f06; animation: pulse-gold 2s infinite; }
.roadmap__status { margin-top: 18px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.roadmap li[data-status="done"] .roadmap__status { color: var(--fel); }
.roadmap li[data-status="now"] .roadmap__status { color: var(--gold); }
.roadmap h3 { font-family: var(--font-display); font-weight: 900; font-size: 19px; margin: 4px 0 6px; color: var(--steel-hi); }
.roadmap p { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(87,255,60,.4); box-shadow: inset 2px 0 0 var(--fel); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; position: relative; font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: .01em; color: var(--steel-hi); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--fel); border-bottom: 2px solid var(--fel); transform: rotate(45deg); transition: transform .25s, margin .25s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .faq__a { padding: 0 20px 20px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: clamp(80px, 12vw, 150px) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(50% 60% at 50% 40%, rgba(87,255,60,.16), transparent 70%),
    radial-gradient(40% 40% at 50% 100%, rgba(208,32,42,.12), transparent 70%),
    url("../images/zone-village.jpg") center/cover no-repeat;
}
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(7,10,8,.82) 30%, rgba(7,10,8,.82) 70%, var(--bg) 100%); }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__emblem { border-radius: 50%; margin-bottom: 22px; box-shadow: 0 0 0 1px var(--line-strong), 0 0 60px rgba(87,255,60,.35); animation: float 6s ease-in-out infinite; }
.cta .waitlist { width: 100%; max-width: 620px; margin-top: 30px; }
.cta__alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #050706; padding: 44px 0 28px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { border-radius: 50%; }
.footer__name { font-family: var(--font-title); font-weight: 700; font-size: 21px; color: var(--steel-hi); }
.footer__tag { color: var(--faint); font-size: 14px; }
.footer__social { display: flex; flex-wrap: wrap; gap: 4px; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--muted); font-weight: 600; }
.footer__legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--faint); font-size: 13px; }

/* ---------- Embers ---------- */
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.embers i { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: var(--fel); box-shadow: 0 0 6px 1px var(--fel); opacity: 0; animation: ember linear infinite; }
.embers i.is-gold { background: #ffcf5a; box-shadow: 0 0 6px 1px #ff9d2a; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes pulse-gold { 0%, 100% { box-shadow: 0 0 10px rgba(232,181,63,.4); } 50% { box-shadow: 0 0 26px rgba(232,181,63,.8); } }
@keyframes ember { 0% { transform: translate(0, 0) scale(1); opacity: 0; } 10% { opacity: .9; } 100% { transform: translate(var(--drift, 30px), -95vh) scale(.4); opacity: 0; } }
@keyframes pop-in { from { opacity: 0; translate: 0 -4px; } to { opacity: 1; translate: 0 0; } }
@keyframes dmg-pop { 0% { opacity: 0; transform: translateY(6px) scale(.8); } 15% { opacity: 1; transform: translateY(0) scale(1.15); } 70% { opacity: 1; transform: translateY(-6px) scale(1); } 100% { opacity: 0; transform: translateY(-12px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { translate: 0; } 25% { translate: -4px; } 75% { translate: 4px; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); } }
@keyframes cursor-move { 0% { left: 22%; top: 62%; } 22% { left: 62%; top: 38%; } 30% { left: 62%; top: 38%; } 55% { left: 40%; top: 24%; } 63% { left: 40%; top: 24%; } 88% { left: 22%; top: 62%; } 100% { left: 22%; top: 62%; } }
@keyframes click-ring { 0%, 22% { opacity: 0; transform: scale(.3); } 24% { opacity: 1; transform: scale(.4); } 32% { opacity: 0; transform: scale(1.4); } 55% { opacity: 0; transform: scale(.3); } 57% { opacity: 1; transform: scale(.4); } 65%, 100% { opacity: 0; transform: scale(1.4); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__links a { padding: 8px 8px; font-size: 13px; }
  .hero__media { grid-template-columns: minmax(0, 1fr) 300px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar__media { aspect-ratio: 16 / 11; }
  .classes { grid-template-columns: repeat(3, 1fr); }
  .zones { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px;
    background: rgba(7,10,8,.98); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
    margin-left: 0;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 13px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav__links a.is-active { box-shadow: none; color: var(--fel); }
  .nav__actions { margin-left: auto; }

  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 24px); }
  .hero__head { grid-template-columns: 1fr; gap: 14px; text-align: center; justify-items: center; }
  .hero__logo { max-width: 400px; }
  .hero__sub { margin-inline: auto; }
  .tags { justify-content: center; }
  .hero__media { grid-template-columns: 1fr; }
  .playlist { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; overscroll-behavior-x: contain; }
  body::before { display: none; } /* grain overlay off on phones/tablets: one less full-screen layer while scrolling */
  .playlist__item { flex: 0 0 240px; scroll-snap-align: start; }

  .combat { grid-template-columns: minmax(0, 1fr); }
  .classes { grid-template-columns: repeat(2, 1fr); }
  .soon { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .roadmap { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .roadmap::before { display: none; }
  .codex { padding: 0; }
  .codex__panel { max-height: 100vh; height: 100%; border-width: 0; }
  .codex__panel::before { display: none; }
  .codex__body { grid-template-columns: 1fr; overflow: auto; }
  .codex__tree { border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .codex__detail { overflow: visible; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .nav__brand span { display: none; }
  .btn--sm { padding: 0 12px; }
  .hero__logo { max-width: 290px; }
  .player__caption { display: none; }
  .player__badge { font-size: 10.5px; left: 10px; top: 10px; }
  .playlist__item { flex-basis: 210px; grid-template-columns: 80px 1fr; }
  .waitlist__row { flex-direction: column; }
  .waitlist__row .btn { width: 100%; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .stat:nth-child(3)::before { display: none; }
  .hero .embers { display: none; }
  .tag { font-size: 11px; padding: 5px 8px 5px 10px; }
  .stat::before { display: none; }
  .pillars, .zones, .classes { grid-template-columns: 1fr; }
  .pillar__media { aspect-ratio: 16 / 10; }
  .path { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 6px; }
  .path li + li::before { left: -18px; }
  .path li:nth-child(3)::before { display: none; }
  .path b { font-size: 17px; white-space: normal; line-height: 1.3; }
  .versus { gap: 8px; }
  .versus__vs { font-size: 16px; }
  .fighter__id img { width: 28px; height: 28px; }
  .fighter__name { font-size: 12.5px; white-space: normal; overflow: visible; }
  .fighter__sub { font-size: 10px; }
  .bar { height: 20px; }
  .bar__num { font-size: 11px; }
  .duel__row, .duel__beats { gap: 5px; }
  .slot[data-mark]::before { font-size: 8px; padding: 1px 3px; }
  .slot .slot__name { display: none; }
  .duel__row--you, .duel__row--foe { margin-bottom: 8px; }
  .duel__beats { margin: 0 0 10px; }
  .tree__branches { flex-direction: column; align-items: stretch; }
  .tree__branches::before, .tree__branch::before, .tree__adv::before { display: none; }
  .tree__branch { max-width: none; gap: 10px; padding-left: 14px; border-left: 2px solid color-mix(in srgb, var(--c) 40%, transparent); }
  .tree__adv { padding-left: 14px; }
  .roadmap { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .cta__alt .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .embers, .cursor-demo { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Standalone pages (privacy, confirmed) ---------- */
.doc-page .nav { position: sticky; top: 0; }
.doc { padding-top: 56px; padding-bottom: 80px; }
.doc .title { font-size: clamp(34px, 5vw, 52px); }
.doc__updated { margin-top: 10px; color: var(--faint); font-size: 14px; }
.doc > p, .doc > ul { color: #c9d2cc; margin-top: 14px; }
.doc h2 { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-top: 40px; color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--fel); }
.doc strong { color: var(--text); }
.doc__back { margin-top: 48px; }
.cta--page { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; border-top: 0; }
.cta--page .doc__back { margin-top: 36px; }
.cta--page .doc__back a { color: var(--muted); }
