/* Nythrune landing page. Palette from the game UI tokens (UiV2.cs). */
:root {
  --bg0: #080d17;
  --bg1: #0d1422;
  --bg2: #17243a;
  --bg3: #1f2f4a;
  --line: #2b3b58;
  --line-hi: #3b5078;
  --text: #e3e9f2;
  --text-dim: #aebbd0;
  --text-mute: #8d9cb5;
  --accent: #56d9e8;
  --accent-ink: #062027;
  --gold: #e8bc61;
  --gold2: #ffd862;
  --title: #f3e2b5;
  --section: #c9a35a;
  --danger: #e66b73;
  --success: #5fd38a;
  --xp: #9a6fd8;

  --header-h: 72px;
  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
p { margin: 0; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .88em; background: rgba(86, 217, 232, .08); border: 1px solid rgba(86, 217, 232, .18); padding: .05em .4em; border-radius: 6px; color: #bfeff5; word-break: break-word; }

:focus-visible { outline: 2px solid var(--gold2); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #1b1306; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------------- buttons */
.btn {
  --b-bg: var(--bg3); --b-fg: var(--text); --b-bd: var(--line-hi);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 44px; padding: 10px 20px;
  border-radius: 12px; border: 1px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg);
  font: 600 15px/1.2 var(--font-body); letter-spacing: .01em;
  cursor: pointer; text-decoration: none !important;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  --b-bg: linear-gradient(180deg, #7ee6f1 0%, var(--accent) 55%, #3fbccb 100%);
  --b-fg: var(--accent-ink); --b-bd: #9df0f8;
  background: var(--b-bg);
  box-shadow: 0 10px 30px -10px rgba(86, 217, 232, .65), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(86, 217, 232, .85), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-ghost { --b-bg: rgba(23, 36, 58, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { --b-bd: var(--accent); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-lg { min-height: 60px; padding: 12px 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.os-ico { width: 24px; height: 24px; fill: currentColor; flex: none; }
.os-ico.big { width: 40px; height: 40px; }
.dl-label { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.dl-label b { font-weight: 700; }
.dl-label small { font-weight: 500; font-size: 12.5px; opacity: .8; }
/* the button that matches the visitor's OS */
[data-dl-group] .dl-btn.is-detected { --b-bg: linear-gradient(180deg, #7ee6f1 0%, var(--accent) 55%, #3fbccb 100%); --b-fg: var(--accent-ink); --b-bd: #9df0f8; background: var(--b-bg); box-shadow: 0 10px 30px -10px rgba(86, 217, 232, .65), inset 0 1px 0 rgba(255,255,255,.5); }
[data-dl-group] .dl-btn.is-other { --b-bg: rgba(23, 36, 58, .72); --b-fg: var(--text); --b-bd: var(--line-hi); background: var(--b-bg); box-shadow: none; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(232, 188, 97, .14); border: 1px solid rgba(232, 188, 97, .45); color: var(--gold2); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ---------------------------------------------------------------- top bar */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.topbar.is-solid { background: rgba(8, 13, 23, .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: rgba(43, 59, 88, .6); }
.topbar-inner { max-width: 1320px; min-height: var(--header-h); margin: 0 auto; padding: 8px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--title); text-decoration: none !important; }
.brand img { width: 64px; height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.brand-name { font: 700 19px/1 var(--font-display); letter-spacing: .12em; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--text-dim); font-weight: 500; font-size: 15px; position: relative; padding: 6px 0; text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); justify-items: center;
  padding: calc(var(--header-h) + clamp(28px, 6vh, 64px)) var(--gutter) 0;
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 70% at 50% 100%, #1a2c4a 0%, rgba(13, 20, 34, 0) 60%),
    radial-gradient(60% 50% at 50% 10%, #13213a 0%, rgba(8, 13, 23, 0) 70%),
    linear-gradient(180deg, #060a12 0%, var(--bg0) 40%, #0b1424 100%);
}
.hero-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.glow-a { width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; left: 50%; bottom: -30%; transform: translateX(-50%); background: radial-gradient(circle, rgba(86, 217, 232, .35), rgba(86, 217, 232, 0) 65%); }
.glow-b { width: 40vw; height: 40vw; max-width: 600px; max-height: 600px; right: -10%; top: 10%; background: radial-gradient(circle, rgba(154, 111, 216, .28), rgba(154, 111, 216, 0) 65%); }
.motes { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-copy { position: relative; z-index: 2; max-width: 820px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-logo { width: clamp(220px, 34vw, 400px); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .55)); animation: float 7s ease-in-out infinite; }
.hero-title { font: 800 clamp(32px, 5.2vw, 62px)/1.05 var(--font-display); color: var(--title); letter-spacing: .01em; text-shadow: 0 6px 30px rgba(0, 0, 0, .5); text-wrap: balance; }
.hero-title span { display: block; background: linear-gradient(90deg, var(--gold2), var(--gold) 45%, #f6d38a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-dim); max-width: 640px; text-wrap: pretty; }
.dl-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 6px; }
.hero-note { font-size: 14px; color: var(--text-mute); display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; justify-content: center; }

.hero-art { position: relative; z-index: 1; margin: clamp(-40px, -3vw, -10px) 0 0; width: min(1180px, 104vw); align-self: end; pointer-events: none; will-change: transform; }
.hero-art::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: 2%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(86, 217, 232, .22), transparent); filter: blur(8px); }
.hero-art img { position: relative; width: 100%; height: auto; -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 99%); mask-image: linear-gradient(180deg, #000 82%, transparent 99%); }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; z-index: 3; width: 28px; height: 44px; margin-left: -14px; border: 2px solid rgba(227, 233, 242, .45); border-radius: 16px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: cue 2s var(--ease) infinite; }

/* ---------------------------------------------------------------- sections */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--section); font-weight: 700; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 14px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head h2 { font: 700 clamp(28px, 4vw, 46px)/1.12 var(--font-display); color: var(--title); text-wrap: balance; }
.section-head h2 em { font-style: normal; color: var(--accent); }
.section-lede { margin-top: 16px; color: var(--text-dim); font-size: clamp(16px, 1.4vw, 18px); text-wrap: pretty; }

/* game pillars */
.game { background: linear-gradient(180deg, #0b1424 0%, var(--bg0) 100%); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar { position: relative; padding: 28px 24px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(23, 36, 58, .75), rgba(10, 15, 26, .75)); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), border-color .3s; }
.pillar::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 20% 0%, rgba(86, 217, 232, .12), transparent 60%); opacity: 0; transition: opacity .3s; }
.pillar:hover { transform: translateY(-4px); border-color: var(--line-hi); }
.pillar:hover::before { opacity: 1; }
.pillar-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(86, 217, 232, .1); border: 1px solid rgba(86, 217, 232, .3); margin-bottom: 18px; }
.pillar-ico svg { width: 24px; height: 24px; fill: var(--accent); }
.pillar h3 { font: 700 20px/1.2 var(--font-display); color: var(--title); margin-bottom: 10px; }
.pillar p { color: var(--text-dim); font-size: 15.5px; }

/* classes */
.classes { background: radial-gradient(70% 50% at 50% 0%, rgba(31, 47, 74, .6), transparent 70%), var(--bg0); }
.class-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.class-card {
  --c: var(--accent);
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(23, 36, 58, .9), rgba(10, 15, 26, .95));
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.class-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 60%, var(--line)); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--c) 55%, transparent); }
.class-art { position: relative; aspect-ratio: 4 / 4.2; overflow: hidden; background: radial-gradient(60% 55% at 50% 58%, color-mix(in srgb, var(--c) 30%, transparent), transparent 72%), linear-gradient(180deg, #0f1a2d, #0a111e); }
.class-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(12, 19, 33, .95)); }
.class-art img { position: absolute; left: 50%; bottom: 0; width: auto; height: 104%; max-width: none; transform: translateX(-50%); transition: transform .6s var(--ease); }
.class-card:hover .class-art img { transform: translateX(-50%) scale(1.04); }
.class-body { padding: 4px 22px 24px; position: relative; z-index: 1; margin-top: -12px; }
.class-body h3 { font: 700 24px/1.15 var(--font-display); color: var(--title); }
.class-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.role, .tag { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid; }
.role-tank { color: #9cc7ff; border-color: rgba(122, 184, 232, .5); background: rgba(122, 184, 232, .1); }
.role-heal { color: #8ff0b2; border-color: rgba(95, 211, 138, .5); background: rgba(95, 211, 138, .1); }
.role-dps { color: #ffa3a8; border-color: rgba(230, 107, 115, .5); background: rgba(230, 107, 115, .1); }
.tag { color: var(--text-dim); border-color: var(--line-hi); background: rgba(31, 47, 74, .5); text-transform: none; letter-spacing: .02em; }
.class-body > p:not(.class-meta):not(.skills) { color: var(--text-dim); font-size: 15.5px; }
.skills { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); color: color-mix(in srgb, var(--c) 70%, #fff); font-size: 13.5px; font-weight: 600; }

/* instances */
.instances { background: linear-gradient(180deg, var(--bg0), #0a1120 50%, var(--bg0)); }
.inst-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.inst {
  --c: var(--accent);
  position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 0; align-items: stretch;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(115deg, color-mix(in srgb, var(--c) 14%, #0e1729) 0%, #0c1322 45%);
  transition: transform .35s var(--ease), border-color .3s;
}
.inst:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 55%, var(--line)); }
.inst::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.inst-art { position: relative; background: radial-gradient(70% 60% at 50% 60%, color-mix(in srgb, var(--c) 35%, transparent), transparent 75%); min-height: 200px; }
.inst-art img { position: absolute; inset: 8% 4%; width: 92%; height: 84%; object-fit: contain; object-position: center; transition: transform .6s var(--ease); }
.inst:hover .inst-art img { transform: scale(1.06) rotate(-1deg); }
.inst-body { padding: 24px 26px 24px 4px; }
.inst-kind { color: var(--c); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.inst h3 { font: 700 23px/1.15 var(--font-display); color: var(--title); margin: 8px 0 10px; }
.inst-body > p:not(.inst-kind):not(.bosses) { color: var(--text-dim); font-size: 15px; }
.bosses { margin-top: 12px; font-size: 13.5px; color: var(--text); }
.bosses span { display: block; color: var(--text-mute); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 2px; }

.bestiary { margin-top: clamp(56px, 7vw, 90px); }
.bestiary-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.bestiary-head h3 { font: 700 clamp(22px, 2.6vw, 30px)/1.2 var(--font-display); color: var(--title); }
.bestiary-nav { display: flex; gap: 10px; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-hi); background: var(--bg2); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background-color .2s; }
.round-btn:hover { border-color: var(--accent); background: var(--bg3); }
.round-btn svg { width: 20px; height: 20px; fill: currentColor; }
.bestiary-track { list-style: none; margin: 0; padding: 4px 2px 18px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-hi) transparent; overscroll-behavior-x: contain; }
.bestiary-track::-webkit-scrollbar { height: 6px; }
.bestiary-track::-webkit-scrollbar-thumb { background: var(--line-hi); border-radius: 3px; }
.bestiary-track li { scroll-snap-align: start; }
.bestiary-track figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: radial-gradient(70% 55% at 50% 55%, rgba(86, 217, 232, .14), transparent 70%), linear-gradient(180deg, #0f1a2d, #0a111e); transition: border-color .3s, transform .35s var(--ease); }
.bestiary-track figure:hover { border-color: var(--line-hi); transform: translateY(-3px); }
.bestiary-track img { aspect-ratio: 1; object-fit: contain; width: 100%; padding: 14px 14px 0; }
.bestiary-track figcaption { padding: 10px 16px 16px; font-weight: 700; font-size: 15px; color: var(--title); }
.bestiary-track small { display: block; font-weight: 500; font-size: 12.5px; color: var(--text-mute); }

/* world */
.world { padding-top: 0; background: var(--bg0); }
.world-art { position: relative; max-width: 1400px; margin: 0 auto; }
.world-art img { width: 100%; border-radius: 0 0 28px 28px; -webkit-mask-image: radial-gradient(120% 95% at 50% 40%, #000 55%, transparent 100%); mask-image: radial-gradient(120% 95% at 50% 40%, #000 55%, transparent 100%); filter: saturate(.92) contrast(1.04); }
.world-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg0) 0%, transparent 18%, transparent 70%, var(--bg0) 100%); pointer-events: none; }
.world-copy { position: relative; margin-top: clamp(-120px, -8vw, -40px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.world-copy .section-head { margin-bottom: 0; }
.zones { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.zones li { padding: 16px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(13, 20, 34, .85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.zones b { display: block; font: 700 17px/1.3 var(--font-display); color: var(--title); }
.zones span { color: var(--text-dim); font-size: 14.5px; }

/* download */
.download { background: radial-gradient(70% 60% at 50% 0%, rgba(86, 217, 232, .12), transparent 70%), linear-gradient(180deg, var(--bg0), #0b1424); border-top: 1px solid rgba(43, 59, 88, .5); }
.dl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.dl-card { position: relative; padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(23, 36, 58, .9), rgba(10, 15, 26, .92)); display: flex; flex-direction: column; gap: 20px; transition: border-color .3s, box-shadow .3s; }
.dl-card.is-detected { border-color: rgba(86, 217, 232, .6); box-shadow: 0 0 0 1px rgba(86, 217, 232, .25), 0 30px 60px -30px rgba(86, 217, 232, .5); }
.dl-card.is-other .btn-primary { --b-bg: var(--bg3); --b-fg: var(--text); --b-bd: var(--line-hi); background: var(--b-bg); box-shadow: none; }
.dl-card-head { display: flex; align-items: center; gap: 16px; }
.dl-card-head h3 { font: 700 26px/1.1 var(--font-display); color: var(--title); }
.dl-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--text-mute); font-size: 14px; margin-top: 4px; min-height: 1.4em; }
.dl-meta span:empty { display: none; }
.badge-detected { margin-left: auto; align-self: flex-start; display: none; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); }
.dl-card.is-detected .badge-detected { display: inline-block; }
.steps { margin: 0; padding-left: 22px; color: var(--text-dim); font-size: 15px; display: grid; gap: 8px; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.steps b { color: var(--text); }
.dl-foot { text-align: center; color: var(--text-mute); font-size: 14.5px; margin-top: 28px; }

/* footer */
.footer { border-top: 1px solid rgba(43, 59, 88, .6); background: #060a12; padding: 40px 0 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.footer-brand img { width: 110px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: var(--text-dim); font-size: 14.5px; }
.footer-note { width: 100%; color: var(--text-mute); font-size: 13.5px; }

/* ---------------------------------------------------------------- motion */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

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

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .inst-list { grid-template-columns: 1fr; }
}
@media (max-width: 1240px) {
  .nav-toggle { display: inline-grid; place-items: center; gap: 5px; margin-left: 4px; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-hi); background: rgba(23, 36, 58, .8); cursor: pointer; padding: 0; align-content: center; }
  .nav-toggle .bar { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 1px; transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] .bar:nth-of-type(2) { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-of-type(3) { transform: translateY(-3.5px) rotate(-45deg); }
  .topbar-cta { margin-left: auto; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; background: rgba(8, 13, 23, .97); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(43, 59, 88, .5); font-size: 16px; }
  .nav a::after { display: none; }
  .topbar.menu-open { background: rgba(8, 13, 23, .97); }
}
@media (max-width: 900px) {
  .class-grid { grid-template-columns: repeat(2, 1fr); }
  .world-copy { grid-template-columns: 1fr; margin-top: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-name { display: none; }
  .brand img { width: 54px; }
  .pillars { grid-template-columns: 1fr; }
  .class-grid { grid-template-columns: 1fr; gap: 16px; }
  .class-art { aspect-ratio: 4 / 3.6; }
  .inst { grid-template-columns: 1fr; }
  .inst-art { min-height: 220px; }
  .inst-art img { inset: 4% 15% 0; width: 70%; }
  .inst-body { padding: 4px 20px 22px; }
  .dl-cards { grid-template-columns: 1fr; }
  .dl-card { padding: 22px 18px; }
  .dl-buttons { flex-direction: column; width: 100%; }
  .dl-buttons .btn { width: 100%; justify-content: flex-start; }
  .bestiary-track { grid-auto-columns: 72%; }
}

/* desktop hero: copy left, key art right, both above the fold */
@media (min-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: 1fr; align-items: safe center; column-gap: 0; padding: calc(var(--header-h) + clamp(28px, 5vh, 56px)) max(var(--gutter), calc((100vw - 1400px) / 2)) 48px; }
  .hero-copy { text-align: left; align-items: flex-start; justify-self: start; z-index: 3; }
  .hero-logo { width: clamp(240px, 22vw, 330px); margin-left: -12px; }
  .hero-title { font-size: clamp(38px, 3.6vw, 56px); }
  .dl-buttons, .hero-note { justify-content: flex-start; }
  .hero-art { width: 118%; margin: 0 0 0 -14%; align-self: center; justify-self: stretch; }
  .glow-a { left: 68%; bottom: -10%; }
}

/* phones and tablets: key art first, logo overlapping its foot */
@media (max-width: 1099px) {
  .hero { min-height: 0; grid-template-rows: auto auto; padding-top: calc(var(--header-h) + 8px); padding-bottom: 72px; }
  .hero-art { order: -1; align-self: start; margin: 0 0 clamp(-90px, -12vw, -40px); width: min(1000px, 112vw); }
  .hero-logo { width: clamp(170px, 40vw, 280px); }
}
@media (max-width: 640px) {
  .hero-art { width: 118vw; }
  .scroll-cue { display: none; }
}

/* price line above the download cards */
.price-line { font-size: 18px; color: var(--text); margin: 0 0 12px; }
.price-line b { color: var(--gold2); font-family: var(--font-display); font-size: 1.4em; }

/* ---------------------------------------------------------------- 28-11: six pillars, Ashmarch, professions, letter, battle pass */
.pillars { grid-template-columns: repeat(3, 1fr); }
.nav { gap: 22px; }
.nav a { white-space: nowrap; font-size: 14.5px; }
@media (max-width: 1240px) { .nav { gap: 0; } .nav a { font-size: 16px; } }
.nav-account { color: var(--gold2) !important; }

.kicker-danger { color: #ff8a5c; }
.ashmarch { background: radial-gradient(70% 50% at 50% 0%, rgba(255, 110, 60, .10), transparent 70%), linear-gradient(180deg, #0b0d14, #120c10 55%, var(--bg0)); }
.ashmarch .section-head h2 em { color: #ff8a5c; }
.ash-lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; margin-bottom: clamp(24px, 3vw, 36px); }
.ash-shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 138, 92, .28); box-shadow: 0 30px 80px -30px rgba(255, 90, 40, .35); background: #000; }
.ash-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ash-shot figcaption { padding: 12px 16px; font-size: 14px; color: var(--text-dim); background: rgba(12, 8, 10, .9); }
.ash-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ash-facts li { padding: 14px 18px; border-left: 3px solid #ff8a5c; background: rgba(255, 138, 92, .06); border-radius: 0 12px 12px 0; }
.ash-facts b { display: block; font: 700 17px/1.3 var(--font-display); color: var(--title); margin-bottom: 4px; }
.ash-facts span { color: var(--text-dim); font-size: 15px; }
.ash-grid, .prof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ash-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(30, 20, 24, .8), rgba(10, 10, 16, .9)); transition: transform .35s var(--ease), border-color .3s; }
.ash-card:hover { transform: translateY(-4px); border-color: rgba(255, 138, 92, .45); }
.ash-card figure { margin: 0; }
.ash-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ash-card-body { padding: 20px 22px 24px; }
.ash-card h3, .prof-group h3 { font: 700 20px/1.2 var(--font-display); color: var(--title); margin-bottom: 8px; }
.ash-card p { color: var(--text-dim); font-size: 15px; }

.professions { background: linear-gradient(180deg, var(--bg0), var(--bg1) 50%, var(--bg0)); }
.prof-groups { display: grid; grid-template-columns: 1fr 1.6fr .8fr; gap: 18px; margin-bottom: 22px; }
.prof-group { padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(23, 36, 58, .5); }
.prof-list { color: var(--text-dim); font-size: 15px; }
.prof-shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg1); }
.prof-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.prof-shot figcaption { padding: 18px 20px 22px; color: var(--text-dim); font-size: 15px; }
.prof-shot figcaption b { display: block; font: 700 18px/1.25 var(--font-display); color: var(--title); margin-bottom: 6px; }

.letter { background: radial-gradient(60% 50% at 50% 50%, rgba(232, 188, 97, .07), transparent 70%); }
.letter-card { max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius); background: linear-gradient(180deg, #1b1a1f, #121218); border: 1px solid rgba(232, 188, 97, .28); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8); }
.letter-card h2 { font: 700 clamp(26px, 3.4vw, 38px)/1.15 var(--font-display); color: var(--title); margin-bottom: 22px; }
.letter-body p { color: #d9dde6; font-size: clamp(16.5px, 1.4vw, 18.5px); line-height: 1.75; margin-bottom: 18px; }
.letter-body b { color: var(--title); }
.letter-sign { margin-top: 28px; color: var(--text-dim) !important; }
.letter-ps { padding-top: 18px; border-top: 1px dashed rgba(232, 188, 97, .35); }
.letter-ps b { color: var(--gold2); }

.bp-teaser { padding-top: 0; }
.bp-card { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 52px); border-radius: var(--radius); border: 1px solid rgba(154, 111, 216, .4); background: radial-gradient(80% 90% at 100% 50%, rgba(154, 111, 216, .22), transparent 70%), linear-gradient(180deg, var(--bg2), var(--bg1)); }
.bp-card h2 { font: 700 clamp(26px, 3.4vw, 40px)/1.12 var(--font-display); color: var(--title); }
.bp-card h2 em { font-style: normal; color: #c9a7ff; }
.bp-points { margin: 18px 0 24px; padding-left: 20px; color: var(--text-dim); }
.bp-points li { margin-bottom: 6px; }
.bp-tiers { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.bp-tier { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--line-hi); background: rgba(8, 13, 23, .6); color: var(--text-dim); font: 700 18px var(--font-display); }
.bp-tier.free { width: auto; padding: 0 14px; color: var(--success); border-color: rgba(95, 211, 138, .5); font-size: 15px; }
.bp-tier.gold { color: var(--gold2); border-color: rgba(255, 216, 98, .55); box-shadow: 0 0 24px -6px rgba(255, 216, 98, .45); }
.bp-tier.top { color: #fff; border-color: #c9a7ff; background: linear-gradient(160deg, #6a49b8, #2b1f52); box-shadow: 0 0 30px -4px rgba(201, 167, 255, .6); }

@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .ash-lead { grid-template-columns: 1fr; }
  .prof-groups { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .ash-grid, .prof-grid { grid-template-columns: 1fr; }
  .bp-card { grid-template-columns: 1fr; }
  .bp-tiers { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .pillars { grid-template-columns: 1fr; }
  .prof-groups { grid-template-columns: 1fr; }
  .bp-tier { width: 52px; height: 52px; font-size: 16px; }
}
