/* ============================================================
   VIGGEN HS — ПУТЬ К КОРНЯМ
   Norse carved saga. No HUD outside the armory.
   ============================================================ */

:root {
  --bg: #0a0d11;
  --bg-deep: #06090c;
  --basalt: #14191f;
  --basalt-light: #1b232b;
  --iron: #28323b;
  --bone: #e8e1d2;
  --frost: #a9bac5;
  --muted: #8e9ca7;
  --blue: #2389bd;
  --blue-light: #82c4e2;
  --yellow: #e3c83f;
  --line: rgba(169, 186, 197, .18);
  --line-strong: rgba(169, 186, 197, .34);
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-rune: "Noto Sans Runic", "Segoe UI Historic", serif;
  --container: 1320px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #354653 var(--bg-deep); scrollbar-width: thin; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
::selection { background: var(--blue); color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #354653; border: 2px solid var(--bg-deep); }
h1, h2, h3, p, ul, ol, dl, dd, dt, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; }
.container { width: min(calc(100% - 112px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 15px; transform: translateY(-180%); background: var(--yellow); color: var(--bg); font-size: 12px; font-weight: 800; }
.skip-link:focus { transform: none; }

.grain { position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.79' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }

/* ---------- One continuous carved tree ---------- */
.tree-scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.tree-scene > img { position: absolute; top: 0; left: 52%; width: auto; max-width: none; height: 420vh; opacity: .76; transform: translate3d(-50%, var(--tree-y, 0px), 0); will-change: transform; }
.tree-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 13, 17, .96) 0%, rgba(10, 13, 17, .65) 30%, rgba(10, 13, 17, .12) 61%, rgba(10, 13, 17, .4) 83%, rgba(10, 13, 17, .85) 100%); }
main, .footer { position: relative; z-index: 2; }

/* ---------- Header ---------- */
.header { position: fixed; top: 0; left: 0; z-index: 100; width: 100%; padding: 21px 36px; border-bottom: 1px solid transparent; transition: padding .3s var(--ease), background .3s ease, border-color .3s ease; }
.header.is-scrolled { padding-block: 11px; border-color: var(--line); background: rgba(6, 9, 12, .91); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; max-width: 1600px; margin: auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand__mark { width: 25px; height: 31px; color: var(--bone); }
.brand__mark path:last-child { fill: var(--yellow); }
.brand__mark--image { width: auto; height: 36px; object-fit: contain; }
.brand__word { display: flex; flex-direction: column; font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: .16em; line-height: 1; }
.brand__word small { margin-top: 5px; color: var(--muted); font-family: var(--font-body); font-size: 7px; font-weight: 800; letter-spacing: .16em; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 38px); }
.nav__link { position: relative; padding: 8px 0; color: var(--frost); font-family: var(--font-display); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.nav__link::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--blue-light); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.header__actions { display: flex; align-items: center; gap: 12px; }
.header__join { display: inline-flex; align-items: center; gap: 15px; padding-left: 18px; border-left: 1px solid var(--line-strong); font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.header__join b { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid rgba(35, 137, 189, .65); color: var(--blue-light); font-size: 16px; font-weight: 400; }
.header__join:hover b { background: var(--blue); color: #fff; }
.burger { display: none; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line-strong); background: rgba(10, 13, 17, .7); cursor: pointer; }
.burger span { display: block; width: 17px; height: 1px; margin: 5px auto; background: var(--bone); transition: transform .25s ease; }
.burger.is-open span:first-child { transform: translateY(3px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 90; visibility: hidden; opacity: 0; background: var(--bg-deep); clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease), opacity .25s ease, visibility 0s .5s; }
.mobile-menu::before { content: "ᛟ"; position: absolute; top: 50%; left: 50%; color: rgba(35, 137, 189, .06); font-family: var(--font-rune); font-size: 80vw; transform: translate(-50%, -50%); }
.mobile-menu.is-open { visibility: visible; opacity: 1; clip-path: inset(0); transition: clip-path .5s var(--ease), opacity .25s ease, visibility 0s; }
.mobile-menu__nav { position: relative; display: flex; flex-direction: column; justify-content: center; width: min(calc(100% - 48px), 580px); height: 100%; margin: auto; padding: 90px 0 65px; }
.mobile-menu__nav a { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 16px; min-height: 80px; border-bottom: 1px solid var(--line); }
.mobile-menu__nav b { color: var(--blue-light); font-family: var(--font-rune); font-size: 27px; font-weight: 400; }
.mobile-menu__nav span { font-family: var(--font-display); font-size: clamp(1.8rem, 7vw, 2.8rem); font-weight: 500; text-transform: uppercase; }
.mobile-menu__nav small { color: var(--muted); font-size: 9px; }
.mobile-menu > p { position: absolute; right: 24px; bottom: 23px; left: 24px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .17em; text-align: center; }

/* ---------- Runic wayfinding, not a progress console ---------- */
.world-route { position: fixed; top: 50%; right: 24px; z-index: 60; display: flex; flex-direction: column; gap: 17px; transform: translateY(-50%); }
.world-route > span { position: absolute; top: 18px; bottom: 18px; left: 18px; z-index: -1; width: 1px; background: var(--line); }
.world-route__stop { position: relative; display: flex; align-items: center; width: 37px; height: 37px; }
.world-route__stop > b { display: grid; place-items: center; width: 37px; height: 37px; background: var(--bg); color: var(--muted); font-family: var(--font-rune); font-size: 18px; font-weight: 400; transition: color .2s ease, background .2s ease; }
.world-route__stop > span { position: absolute; right: 51px; width: max-content; opacity: 0; color: var(--bone); font-family: var(--font-display); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-align: right; transform: translateX(6px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.world-route__stop > span small { display: block; margin-top: 2px; color: var(--muted); font-family: var(--font-body); font-size: 7px; font-weight: 700; letter-spacing: .12em; }
.world-route__stop:hover > span, .world-route__stop:focus-visible > span { opacity: 1; transform: none; }
.world-route__stop.is-active > b { background: #153144; color: var(--blue-light); }

/* ---------- Shared saga typography ---------- */
.section { position: relative; padding: clamp(120px, 11vw, 170px) 0; scroll-margin-top: 60px; }
.section-header { max-width: 690px; }
.section-header--center { margin-inline: auto; text-align: center; }
.section-header--center .realm-mark { justify-content: center; }
.section-header--center .section-lead { margin-inline: auto; }
.section-header--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; max-width: none; }
.section-header--split > div { max-width: 760px; }
.section-header--split .section-lead { max-width: 400px; margin-bottom: 7px; }
.realm-mark { display: flex; align-items: center; gap: 15px; margin-bottom: 28px; }
.realm-mark > span { color: var(--blue-light); font-family: var(--font-rune); font-size: 42px; line-height: 1; text-shadow: 1px 1px 0 #05080b; }
.realm-mark > b { display: flex; flex-direction: column; font-family: var(--font-display); font-size: 16px; font-weight: 500; letter-spacing: .12em; line-height: 1.2; }
.realm-mark small { margin-top: 5px; color: var(--muted); font-family: var(--font-body); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.section-title { color: var(--bone); font-family: var(--font-display); font-size: clamp(4rem, 6.3vw, 6rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.045; text-transform: uppercase; text-shadow: 0 3px 20px rgba(0, 0, 0, .6); }
.section-title span { color: var(--blue-light); }
.section-lead { max-width: 590px; margin-top: 28px; color: var(--frost); font-size: 15px; line-height: 1.85; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .55s var(--ease); }
.js .reveal.is-inview { opacity: 1; transform: none; }
.split .char { display: inline-block; }
.js .split .char { opacity: 0; transform: translateY(.5em); transition: opacity .35s ease, transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 35ms); }
.js .split.is-inview .char { opacity: 1; transform: none; }

.action { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 56px; padding: 0 23px; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .09em; line-height: 1.2; text-transform: uppercase; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.action--signal { background: var(--yellow); color: #11151a; }
.action--signal:hover { background: #f3dc55; }
.action--signal .icon:last-child { transition: transform .25s var(--ease); }
.action--signal:hover .icon:last-child { transform: translateX(4px); }
.action--line { border: 1px solid var(--line-strong); background: rgba(10, 13, 17, .7); color: var(--bone); }
.action--line b { color: var(--blue-light); font-family: var(--font-rune); font-size: 18px; font-weight: 400; }
.action--line:hover { border-color: var(--blue); color: var(--blue-light); }

/* ---------- Asgard ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding: 125px 0 100px; overflow: hidden; }
.hero__snow { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: .82; pointer-events: none; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .65fr); align-items: center; gap: 60px; }
.hero__copy { max-width: 750px; }
.hero__pretitle { display: block; margin-bottom: 14px; color: var(--frost); font-size: 10px; font-weight: 800; letter-spacing: .32em; }
.hero__name { display: block; color: var(--bone); font-family: var(--font-display); font-size: clamp(7rem, 11.5vw, 11rem); font-weight: 700; letter-spacing: -.055em; line-height: .82; text-transform: uppercase; white-space: nowrap; text-shadow: 0 6px 30px rgba(0, 0, 0, .6); }
.hero__designation { display: flex; align-items: center; gap: 13px; margin-top: 25px; color: var(--frost); font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: .15em; }
.hero__designation i { color: var(--blue-light); font-style: normal; }
.hero__oath { margin-top: 34px; font-family: var(--font-display); font-size: clamp(1.8rem, 2.8vw, 2.65rem); font-weight: 500; letter-spacing: .015em; line-height: 1.12; text-shadow: 0 3px 18px rgba(0, 0, 0, .8); }
.hero__oath span { color: var(--blue-light); }
.hero__text { max-width: 560px; margin-top: 19px; color: var(--frost); font-size: 14px; line-height: 1.85; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.hero__stats { display: flex; gap: clamp(30px, 4vw, 58px); max-width: 650px; margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); }
.hero__stats dt { font-family: var(--font-display); font-size: 37px; font-weight: 500; line-height: 1; }
.hero__stats dd { margin-top: 8px; color: var(--frost); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.hero__banner { position: relative; justify-self: center; width: 285px; margin-top: 65px; filter: drop-shadow(0 28px 35px rgba(0, 0, 0, .55)); }
.hero__banner::before, .hero__banner::after { content: ""; position: absolute; bottom: 88%; width: 2px; height: 230px; background: linear-gradient(#536977, #28323b); }
.hero__banner::before { left: 36px; transform: rotate(-5deg); transform-origin: bottom; }
.hero__banner::after { right: 36px; transform: rotate(5deg); transform-origin: bottom; }
.hero__banner-cloth { position: relative; display: grid; place-items: center; height: 430px; padding: 40px; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 87%, 50% 100%, 0 87%); background: linear-gradient(100deg, #111a23, #1b2832 48%, #101821); }
.hero__banner-cloth::before { content: ""; position: absolute; inset: 14px 14px 35px; border: 1px dashed rgba(169, 186, 197, .25); }
.hero__banner-cloth::after { content: ""; position: absolute; top: 0; bottom: 12%; left: 50%; width: 45%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .025), transparent); transform: translateX(-50%); }
.hero__banner-cloth img { position: relative; z-index: 2; width: auto; height: 100%; }
.hero__banner-cloth > span { position: absolute; color: rgba(35, 137, 189, .1); font-family: var(--font-rune); font-size: 280px; }
.hero__banner figcaption { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; color: var(--frost); font-size: 9px; letter-spacing: .12em; }
.hero__banner figcaption b { font-family: var(--font-display); font-size: 13px; font-weight: 500; }
.hero__next { position: absolute; bottom: 22px; left: 50%; z-index: 2; display: flex; align-items: center; gap: 14px; color: var(--frost); font-size: 8px; font-weight: 800; letter-spacing: .15em; transform: translateX(-50%); }
.hero__next b { color: var(--blue-light); font-family: var(--font-rune); font-size: 21px; font-weight: 400; }

/* ---------- Midgard ---------- */
.saga { border-top: 1px solid var(--line); }
.saga__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(370px, .75fr); gap: clamp(60px, 8vw, 115px); align-items: start; }
.saga__goal { margin-top: 42px; padding: 24px 26px; border-left: 3px solid var(--yellow); background: rgba(20, 25, 31, .88); }
.saga__goal small { color: var(--yellow); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.saga__goal strong { display: block; margin-top: 10px; font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1.08; }
.saga__goal p { margin-top: 11px; color: var(--frost); font-size: 12px; }
.doctrine { display: grid; gap: 17px; margin-top: 90px; }
.stone { display: grid; grid-template-columns: 62px 1fr; gap: 20px; padding: 27px 25px; clip-path: polygon(1% 0, 99% 1%, 100% 96%, 96% 100%, 0 98%); background: linear-gradient(135deg, rgba(30, 40, 49, .95), rgba(14, 20, 26, .96)); box-shadow: inset 0 0 0 1px var(--line); }
.stone__rune { color: var(--blue-light); font-family: var(--font-rune); font-size: 48px; line-height: 1; text-shadow: 1px 1px 0 #05080b; }
.stone small { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.stone h3 { margin-top: 5px; font-family: var(--font-display); font-size: 30px; font-weight: 500; letter-spacing: .02em; line-height: 1; }
.stone p { margin-top: 12px; color: var(--frost); font-size: 13px; line-height: 1.75; }

/* ---------- Commanders and their avatars ---------- */
.command { border-block: 1px solid var(--line); background: rgba(10, 14, 19, .76); }
.formation { max-width: 1060px; margin: 75px auto 0; }
.formation__high { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr); align-items: stretch; gap: 24px; }
.commander { display: grid; grid-template-columns: 136px minmax(0, 1fr); align-items: center; gap: 23px; width: 400px; padding: 23px; border-block: 1px solid var(--line-strong); background: rgba(20, 27, 34, .94); }
.formation__high .commander { width: auto; }
.commander--leader { grid-template-columns: 176px minmax(0, 1fr); width: 580px; margin-inline: auto; border-top-color: var(--yellow); }
.commander--vice { margin: 0; border-top: 2px solid var(--blue); }
.avatar { position: relative; flex: 0 0 auto; width: 136px; height: 136px; padding: 2px; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); background: #465763; }
.avatar--leader { width: 176px; height: 176px; background: #746a36; }
.avatar img { width: 100%; height: 100%; clip-path: inherit; object-fit: cover; }
.commander__info > span { color: var(--blue-light); font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.commander--leader .commander__info > span { color: var(--yellow); }
.commander__info h3 { margin-top: 9px; font-family: var(--font-display); font-size: 27px; font-weight: 500; letter-spacing: .025em; line-height: 1.1; }
.commander--leader .commander__info h3 { font-size: 34px; }
.commander__info small { display: block; margin-top: 12px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.valkyries { margin-top: 85px; border-block: 1px solid var(--line-strong); background: rgba(10, 14, 19, .72); }
.valkyries__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 25px 0; }
.valkyries__head small { color: var(--blue-light); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.valkyries__head h3 { margin-top: 5px; font-family: var(--font-display); font-size: 40px; font-weight: 500; letter-spacing: .04em; line-height: 1; }
.valkyries__head > p { color: var(--muted); font-size: 11px; }
.valkyries__list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.valkyrie { display: flex; align-items: center; gap: 14px; min-height: 98px; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.valkyrie:nth-child(4n) { border-right: 0; }
.valkyrie:nth-last-child(-n+4) { border-bottom: 0; }
.valkyrie .avatar { width: 64px; height: 64px; clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
.valkyrie small { display: block; color: var(--blue-light); font-size: 9px; font-weight: 800; }
.valkyrie span { display: block; margin-top: 5px; font-family: var(--font-display); font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.valkyrie--vacant { padding: 0; background: var(--yellow); }
.valkyrie--vacant > a { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 98px; padding: 16px; transition: background .2s ease; }
.valkyrie--vacant > a:hover { background: rgba(255, 255, 255, .13); }
.valkyrie--vacant .avatar { background: #11151a; }
.valkyrie--vacant small, .valkyrie--vacant span, .valkyrie--vacant b { color: #11151a; }
.valkyrie--vacant small { font-weight: 900; }
.valkyrie--vacant b { display: block; margin-top: 5px; font-size: 8px; letter-spacing: .07em; }
.valkyries__recruit { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 20px; min-height: 88px; padding: 18px 24px; border-top: 1px solid var(--line-strong); border-bottom: 4px solid var(--yellow); background: linear-gradient(90deg, rgba(227, 200, 63, .15), rgba(35, 137, 189, .08) 58%, transparent); transition: background .2s ease; }
.valkyries__recruit:hover { background: linear-gradient(90deg, rgba(227, 200, 63, .24), rgba(35, 137, 189, .14) 65%, transparent); }
.valkyries__recruit > span { color: var(--yellow); font-family: var(--font-rune); font-size: 37px; }
.valkyries__recruit small { color: var(--yellow); font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.valkyries__recruit strong { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: .04em; }
.valkyries__recruit > b { display: inline-flex; align-items: center; gap: 12px; padding: 11px 15px; border: 1px solid var(--yellow); color: var(--yellow); font-family: var(--font-display); font-size: 11px; font-weight: 500; letter-spacing: .1em; white-space: nowrap; }
.valkyries__recruit > b i { font-size: 17px; font-style: normal; }

/* ---------- Mimir's runestones ---------- */
.codex { border-bottom: 1px solid var(--line); }
.codex__layout { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 30px; min-width: 0; margin-top: 70px; }
.rune-stones { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.codex__panels, .codex-panel, .codex-panel__copy { min-width: 0; }
.codex-tab { position: relative; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 16px; min-height: 94px; padding: 15px 20px; border: 0; border-left: 3px solid transparent; clip-path: polygon(2% 0, 98% 2%, 100% 94%, 94% 100%, 0 97%); background: rgba(24, 32, 40, .94); text-align: left; cursor: pointer; transition: background .25s ease, border-color .25s ease; }
.codex-tab > span { color: var(--muted); font-family: var(--font-rune); font-size: 40px; }
.codex-tab > b { color: var(--frost); font-family: var(--font-display); font-size: 14px; font-weight: 500; letter-spacing: .08em; }
.codex-tab > b small { display: block; margin-top: 4px; color: var(--muted); font-family: var(--font-body); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.codex-tab > i { color: var(--muted); font-family: var(--font-display); font-size: 11px; font-style: normal; }
.codex-tab:hover { background: rgba(31, 45, 56, .96); }
.codex-tab.is-active { border-left-color: var(--blue); background: #1a2b38; }
.codex-tab.is-active > span, .codex-tab.is-active > b { color: var(--blue-light); }
.codex__panels { position: relative; }
.codex__panels::before { content: ""; position: absolute; inset: 10% 5%; border: 1px solid rgba(35, 137, 189, .12); border-radius: 50%; transform: scaleY(.45); pointer-events: none; }
.codex-panel { position: relative; display: grid; grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr); min-height: 520px; clip-path: polygon(1% 0, 99% 1%, 100% 97%, 97% 100%, 0 99%); background: linear-gradient(135deg, rgba(29, 39, 48, .97), rgba(13, 19, 25, .98)); box-shadow: inset 0 0 0 1px var(--line); }
.js .codex-panel { display: none; }
.js .codex-panel.is-active { display: grid; animation: carveIn .4s ease; }
.codex-panel__rune { display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--line); }
.codex-panel__rune > span { color: #739cb2; font-family: var(--font-rune); font-size: clamp(160px, 18vw, 245px); line-height: 1; text-shadow: 2px 2px 0 #05080b, -1px -1px 0 rgba(232, 225, 210, .13); }
.codex-panel__rune small { margin-top: 25px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.codex-panel__copy { align-self: center; max-width: 650px; padding: 45px 50px; }
.codex-panel__copy > p { color: var(--blue-light); font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.codex-panel__copy h3 { margin-top: 12px; font-family: var(--font-display); font-size: clamp(3.3rem, 5vw, 4.8rem); font-weight: 600; letter-spacing: .015em; line-height: 1; }
.codex-panel__copy dl { margin-top: 30px; }
.codex-panel__copy dl > div { display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.codex-panel__copy dt { color: var(--blue-light); font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: .1em; }
.codex-panel__copy dd { color: var(--frost); font-size: 14px; line-height: 1.8; }
@keyframes carveIn { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }

/* ---------- Tactical table promo ---------- */
.nav__link--maps { color: var(--yellow); }
.map-promo { border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(10, 14, 19, .82), rgba(10, 14, 19, .35)); }
.map-promo__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr); align-items: center; gap: clamp(50px, 8vw, 110px); }
.map-promo__stats { display: flex; gap: 30px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.map-promo__stats li { display: flex; align-items: baseline; gap: 8px; }
.map-promo__stats b { color: var(--blue-light); font-family: var(--font-display); font-size: 30px; font-weight: 500; line-height: 1; }
.map-promo__stats span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.map-promo__copy .action { margin-top: 31px; }
.map-promo__visual { position: relative; justify-self: end; width: min(100%, 500px); aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line-strong); clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); background: #0c141b; }
.map-promo__visual > img { width: 100%; height: 100%; object-fit: cover; opacity: .68; filter: saturate(.7) contrast(1.05); transition: transform .55s var(--ease), opacity .3s ease; }
.map-promo__visual:hover > img { opacity: .85; transform: scale(1.035); }
.map-promo__grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(169, 186, 197, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(169, 186, 197, .18) 1px, transparent 1px); background-size: 10% 10%; mask-image: linear-gradient(#000, transparent 93%); }
.map-promo__sector { position: absolute; top: 17px; left: 19px; padding: 5px 8px; background: rgba(6, 9, 12, .8); color: var(--frost); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.map-promo__rune { position: absolute; top: 50%; left: 50%; color: rgba(35, 137, 189, .16); font-family: var(--font-rune); font-size: 260px; line-height: 1; transform: translate(-50%, -50%); }
.map-promo__units i { position: absolute; width: 13px; height: 13px; border: 1px solid var(--blue-light); background: rgba(35, 137, 189, .3); transform: rotate(45deg); }
.map-promo__units i:nth-child(1) { top: 28%; left: 30%; }
.map-promo__units i:nth-child(2) { top: 39%; left: 63%; border-color: #e28b82; background: rgba(226, 96, 82, .28); }
.map-promo__units i:nth-child(3) { top: 63%; left: 46%; }
.map-promo__units i:nth-child(4) { top: 70%; left: 73%; border-color: var(--yellow); background: rgba(227, 200, 63, .25); }
.map-promo__open { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; min-height: 55px; padding: 0 19px; background: linear-gradient(transparent, rgba(6, 9, 12, .94) 35%); color: var(--bone); font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: .12em; }
.map-promo__open i { color: var(--yellow); font-size: 21px; font-style: normal; }
.footer__actions { display: flex; align-items: center; gap: 28px; }
.footer__map { display: inline-flex; align-items: center; gap: 9px; color: var(--yellow); font-family: var(--font-display); font-size: 11px; letter-spacing: .1em; }
.footer__map b { font-size: 17px; font-weight: 400; }

/* ---------- Armory ---------- */
.arsenal { background: rgba(9, 13, 17, .72); }
.armory-control { margin-top: 60px; border: 1px solid var(--line-strong); background: #111920; box-shadow: 0 20px 48px rgba(0, 0, 0, .22); }
.filter-row { display: grid; grid-template-columns: 145px minmax(0, 1fr); align-items: stretch; min-height: 60px; border-bottom: 1px solid var(--line-strong); }
.filter-row__label { display: flex; align-items: center; padding: 0 18px; border-right: 1px solid var(--line); background: rgba(35, 137, 189, .075); color: var(--blue-light); font-family: var(--font-display); font-size: 11px; font-weight: 500; letter-spacing: .12em; }
.armory-filters { display: flex; align-items: center; flex-wrap: wrap; padding: 7px 10px; }
.armory-filter { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 3px; padding: 0 13px; border: 1px solid rgba(169, 186, 197, .14); background: rgba(255, 255, 255, .025); color: var(--frost); cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.armory-filter::after { content: ""; position: absolute; right: -1px; bottom: -1px; left: -1px; height: 2px; background: var(--yellow); transform: scaleX(0); transition: transform .25s ease; }
.armory-filter > span { font-family: var(--font-display); font-size: 11px; font-weight: 500; letter-spacing: .08em; white-space: nowrap; }
.armory-filter > small { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding-inline: 4px; border: 1px solid var(--line-strong); background: #0a1015; color: var(--frost); font-size: 8px; }
.armory-filter .nation__flag { width: 17px; height: 12px; }
.armory-filter:hover { border-color: rgba(130, 196, 226, .42); background: rgba(35, 137, 189, .08); color: var(--bone); }
.armory-filter.is-active { border-color: rgba(130, 196, 226, .58); background: rgba(35, 137, 189, .22); color: #e1f5ff; }
.armory-filter.is-active::after { transform: scaleX(1); }
.armory-filter.is-active > small { border-color: transparent; background: var(--blue); color: #fff; }
.armory-filter:disabled { opacity: .24; cursor: not-allowed; }
.filter-summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 8px 17px; color: var(--frost); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.filter-summary button { padding: 6px 10px; border: 1px solid rgba(130, 196, 226, .4); background: rgba(35, 137, 189, .08); color: var(--blue-light); font-family: var(--font-display); font-size: 10px; cursor: pointer; }
.filter-summary button:hover { border-color: var(--blue-light); background: rgba(35, 137, 189, .16); }
.armory { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(340px, .65fr); min-height: 720px; margin-top: 28px; border: 1px solid var(--line-strong); background: #0a0f14; box-shadow: 0 35px 90px rgba(0, 0, 0, .3); }
.armory__stage { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.armory__stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(145, 174, 197, .027) 1px, transparent 1px), linear-gradient(90deg, rgba(145, 174, 197, .027) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(#000, transparent 75%); pointer-events: none; }
.armory__stage-top { position: relative; z-index: 3; display: flex; align-items: center; gap: 18px; min-height: 63px; padding: 13px 25px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nation { display: inline-flex; align-items: center; gap: 8px; color: var(--bone); }
.nation__flag { width: 19px; height: 13px; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
#vehicleClass { flex: 1; }
.armory__br { display: flex; align-items: center; gap: 10px; }
.armory__br small { font-size: 8px; }
.armory__br b { color: var(--blue-light); font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.armory__visual { position: relative; z-index: 2; display: grid; place-items: center; height: 330px; padding: 28px 40px 5px; }
.armory__visual img { width: 94%; height: 100%; object-fit: contain; filter: drop-shadow(0 25px 20px rgba(0, 0, 0, .7)); transition: opacity .2s ease, transform .45s var(--ease); }
.armory__visual.is-changing img { opacity: 0; transform: translateX(18px); }
.armory__target { position: absolute; top: 63px; right: 0; left: 0; z-index: 0; display: grid; place-items: center; height: 330px; opacity: .65; pointer-events: none; }
.armory__target i { position: absolute; width: 300px; height: 300px; border: 1px solid rgba(145, 174, 197, .12); border-radius: 50%; }
.armory__target i:nth-child(2) { width: 220px; height: 220px; border-style: dashed; animation: targetSpin 70s linear infinite; }
.armory__target::before, .armory__target::after { content: ""; position: absolute; background: rgba(145, 174, 197, .1); }
.armory__target::before { width: 400px; height: 1px; }
.armory__target::after { width: 1px; height: 300px; }
.armory__target span { color: rgba(35, 137, 189, .06); font-family: var(--font-rune); font-size: 230px; }
@keyframes targetSpin { to { transform: rotate(360deg); } }
.armory__details { position: relative; z-index: 2; flex: 1; padding: 0 38px 25px; }
.armory__number { color: var(--muted); font-family: var(--font-display); font-size: 10px; letter-spacing: .13em; }
.armory__details h3 { margin-top: 8px; font-family: var(--font-display); font-size: clamp(3rem, 4.5vw, 4.3rem); font-weight: 500; line-height: .95; }
.armory__details > p:not(.armory__number) { max-width: 650px; margin-top: 17px; color: var(--frost); font-size: 13px; line-height: 1.8; }
.armory__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.armory__tags li { padding: 4px 9px; border: 1px solid var(--line); color: var(--bone); font-size: 8px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.armory__controls { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: 54px; border-top: 1px solid var(--line); }
.armory__controls > span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.armory__controls button { display: grid; place-items: center; align-self: stretch; width: 60px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--blue-light); cursor: pointer; }
.armory__controls button:last-child { border-right: 0; border-left: 1px solid var(--line); }
.armory__controls button:first-child .icon { transform: rotate(180deg); }
.armory__controls button:hover { background: rgba(35, 137, 189, .09); }
.vehicle-index { max-height: 720px; overflow-y: auto; border-left: 1px solid var(--line-strong); scrollbar-width: thin; scrollbar-color: #354653 transparent; }
.vehicle-item { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 76px; padding: 12px 19px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.vehicle-item::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--blue); transform: scaleY(0); transition: transform .25s ease; }
.vehicle-item:hover { background: rgba(145, 174, 197, .045); }
.vehicle-item.is-active { background: linear-gradient(90deg, rgba(35, 137, 189, .13), rgba(35, 137, 189, .025)); }
.vehicle-item.is-active::before { transform: scaleY(1); }
.vehicle-item > i { color: var(--muted); font-family: var(--font-display); font-size: 11px; font-style: normal; }
.vehicle-item > span { min-width: 0; }
.vehicle-item > span > b { display: block; overflow: hidden; color: var(--bone); font-family: var(--font-display); font-size: 16px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.vehicle-item > span > b small { font-size: .75em; }
.vehicle-item > span > small { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.vehicle-item > em { color: var(--blue-light); font-family: var(--font-display); font-size: 18px; font-style: normal; }
.vehicle-item.is-active > span > b { color: #d9f2ff; }
.vehicle-item--flag > i { color: var(--yellow); }
.vehicle-item.is-filtered-out { display: none; }
.armory-note { margin-top: 20px; color: var(--muted); font-size: 10px; }
.armory-note a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Urd and the roots ---------- */
.oath { padding-bottom: 60px; }
.initiation { display: grid; gap: 20px; max-width: 1060px; margin-top: 70px; }
.oath-step { display: grid; grid-template-columns: 58px 1fr; gap: 21px; width: 74%; padding: 25px 27px; border-left: 3px solid var(--blue); background: rgba(20, 27, 34, .94); box-shadow: inset 0 0 0 1px var(--line); }
.oath-step:nth-child(even) { margin-left: auto; }
.oath-step > span { color: var(--blue-light); font-family: var(--font-rune); font-size: 42px; line-height: 1; }
.oath-step small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.oath-step h3 { margin-top: 6px; font-family: var(--font-display); font-size: 29px; font-weight: 500; letter-spacing: .025em; }
.oath-step p { margin-top: 12px; color: var(--frost); font-size: 13px; line-height: 1.8; }
.initiation__nations { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.initiation__nations span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; border: 1px solid var(--line); color: var(--bone); font-size: 8px; font-weight: 800; }
.initiation__nations .nation__flag { width: 16px; height: 11px; }
.oath-step--main { width: 82%; border-left-color: var(--yellow); background: rgba(33, 31, 20, .94); }
.oath-step--main > span, .oath-step--main small { color: var(--yellow); }
.oath-join { position: relative; max-width: 1050px; margin: 125px auto 0; padding: 70px 0 130px; text-align: center; }
.oath-join::before { content: ""; position: absolute; right: 10%; bottom: 0; left: 10%; height: 160px; border: 1px solid rgba(35, 137, 189, .18); border-radius: 50%; transform: scaleY(.35); }
.oath-join .realm-mark { justify-content: center; }
.oath-join > h2 { font-family: var(--font-display); font-size: clamp(4rem, 7vw, 6.8rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.035; }
.oath-join > h2 span { color: var(--blue-light); }
.oath-join__lead { margin-top: 27px; color: var(--frost); font-size: 15px; line-height: 1.85; }
.oath-join > .action { margin-top: 30px; }
.oath-join__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; max-width: 920px; margin: 70px auto 0; padding-top: 28px; border-top: 1px solid var(--line-strong); text-align: left; }
.oath-join__steps li { display: grid; grid-template-columns: 33px 1fr; gap: 15px; }
.oath-join__steps > li > span { color: var(--blue-light); font-family: var(--font-display); font-size: 15px; }
.oath-join__steps h3 { font-family: var(--font-display); font-size: 23px; font-weight: 500; }
.oath-join__steps p { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.7; }

/* ---------- Footer ---------- */
.footer { padding: 50px 0 24px; border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer__ascent { display: inline-flex; align-items: center; gap: 14px; color: var(--frost); font-family: var(--font-display); font-size: 11px; letter-spacing: .1em; }
.footer__ascent b { color: var(--blue-light); font-size: 18px; font-weight: 400; }
.footer__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: 37px; padding-top: 20px; border-top: 1px solid var(--line); color: #71828e; font-size: 9px; line-height: 1.8; }
.footer__bottom > span { flex: 0 0 auto; font-size: 8px; font-weight: 700; letter-spacing: .09em; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .container { width: min(calc(100% - 88px), var(--container)); }
  .world-route { display: none; }
  .tree-scene > img { left: 55%; opacity: .67; }
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) 270px; gap: 40px; }
  .hero__banner { width: 260px; }
  .hero__banner-cloth { height: 400px; }
  .saga__grid { gap: 50px; }
  .armory { grid-template-columns: minmax(0, 1.35fr) 325px; }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: block; }
  .container { width: min(calc(100% - 72px), var(--container)); }
  .hero__name { font-size: clamp(6.8rem, 12vw, 9rem); }
  .saga__grid { grid-template-columns: 1fr 350px; gap: 38px; }
  .doctrine { margin-top: 40px; }
  .commander { grid-template-columns: 110px 1fr; width: 350px; }
  .commander .avatar { width: 110px; height: 110px; }
  .commander--leader { grid-template-columns: 160px 1fr; width: 540px; }
  .commander--leader .avatar { width: 160px; height: 160px; }
  .commander__info h3 { font-size: 23px; }
  .codex__layout { grid-template-columns: 240px 1fr; gap: 20px; }
  .codex-panel { grid-template-columns: 210px 1fr; }
  .codex-panel__copy { padding: 32px; }
  .armory { grid-template-columns: 1fr; }
  .armory__stage { min-height: 690px; }
  .vehicle-index { display: grid; grid-template-columns: 1fr 1fr; max-height: 390px; border-top: 1px solid var(--line-strong); border-left: 0; }
  .vehicle-item:nth-child(odd) { border-right: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .container { width: calc(100% - 48px); }
  .tree-scene > img { left: 60%; height: 340vh; opacity: .5; }
  .tree-scene::after { background: linear-gradient(90deg, rgba(10, 13, 17, .88), rgba(10, 13, 17, .38) 70%, rgba(10, 13, 17, .7)); }
  .hero { min-height: auto; padding-top: 120px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { max-width: 690px; }
  .hero__banner { width: 250px; margin: 50px auto 0; }
  .hero__banner::before, .hero__banner::after { height: 100px; }
  .hero__next { display: none; }
  .map-promo__grid { grid-template-columns: 1fr; gap: 45px; }
  .map-promo__visual { justify-self: start; width: min(100%, 480px); }
  .section-header--split { display: block; }
  .section-header--split .section-lead { max-width: 590px; }
  .saga__grid { grid-template-columns: 1fr; }
  .doctrine { margin-top: 15px; }
  .formation { margin-top: 60px; }
  .commander--leader { max-width: 100%; }
  .valkyries__list { grid-template-columns: repeat(2, 1fr); }
  .valkyrie:nth-child(2n) { border-right: 0; }
  .valkyrie:nth-child(odd) { border-right: 1px solid var(--line); }
  .valkyrie:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .valkyrie:nth-last-child(-n+2) { border-bottom: 0; }
  .codex__layout { grid-template-columns: minmax(0, 1fr); }
  .rune-stones { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .rune-stones::-webkit-scrollbar { display: none; }
  .codex-tab { flex: 1 0 165px; }
  .codex-panel { grid-template-columns: 220px 1fr; }
  .filter-row { grid-template-columns: 1fr; padding-top: 0; }
  .filter-row__label { min-height: 34px; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .armory-filters { flex-wrap: nowrap; overflow-x: auto; padding: 7px 6px; scrollbar-width: none; }
  .armory-filters::-webkit-scrollbar { display: none; }
  .armory-filter { flex: 0 0 auto; }
  .valkyries__recruit { grid-template-columns: 42px minmax(0, 1fr); }
  .valkyries__recruit > b { grid-column: 2; justify-self: start; }
  .oath-step, .oath-step--main { width: 88%; }
  .oath-join { margin-top: 90px; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 34px); }
  .header { padding: 15px 16px; }
  .header__join { display: none; }
  .brand__word { font-size: 16px; }
  .mobile-menu__nav a { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .mobile-menu__nav b { grid-row: span 2; }
  .mobile-menu__nav small { grid-column: 2; font-size: 8px; }
  .tree-scene > img { left: 65%; opacity: .4; }
  .hero { padding: 105px 0 75px; }
  .hero__name { font-size: clamp(5.6rem, 25vw, 8rem); }
  .hero__pretitle { font-size: 8px; letter-spacing: .25em; }
  .hero__designation { flex-wrap: wrap; gap: 8px; font-size: 10px; }
  .hero__oath { margin-top: 28px; font-size: 29px; }
  .hero__text { font-size: 13px; }
  .hero__actions { flex-direction: column; }
  .action { width: 100%; }
  .hero__stats { justify-content: space-between; gap: 10px; }
  .hero__stats dt { font-size: 31px; }
  .hero__stats dd { max-width: 90px; font-size: 7px; line-height: 1.55; }
  .hero__banner-cloth { height: 370px; }
  .section { padding: 95px 0; }
  .section-title { font-size: clamp(3.1rem, 14.5vw, 4.5rem); }
  .section-lead { font-size: 14px; }
  .realm-mark { gap: 11px; margin-bottom: 23px; }
  .realm-mark > span { font-size: 35px; }
  .realm-mark > b { font-size: 13px; }
  .realm-mark small { font-size: 8px; }
  .saga__goal { padding: 20px; }
  .saga__goal strong { font-size: 26px; }
  .map-promo__stats { flex-wrap: wrap; gap: 18px 25px; }
  .map-promo__stats b { font-size: 26px; }
  .map-promo__rune { font-size: 210px; }
  .footer__top { flex-wrap: wrap; }
  .footer__actions { width: 100%; justify-content: space-between; }
  .stone { grid-template-columns: 48px 1fr; gap: 14px; padding: 23px 18px; }
  .stone__rune { font-size: 39px; }
  .stone h3 { font-size: 26px; }
  .commander--leader { grid-template-columns: 120px 1fr; gap: 17px; padding: 18px; }
  .commander--leader .avatar { width: 120px; height: 120px; }
  .commander--leader .commander__info h3 { font-size: 25px; }
  .formation__high { grid-template-columns: 1fr; gap: 16px; }
  .commander { grid-template-columns: 1fr; gap: 14px; padding: 18px 12px; text-align: center; }
  .commander .avatar { width: 90px; height: 90px; margin-inline: auto; }
  .commander__info > span { font-size: 8px; }
  .commander__info h3 { font-size: 19px; }
  .commander__info small { font-size: 7px; }
  .valkyries { margin-top: 65px; }
  .valkyries__head > p { display: none; }
  .valkyrie, .valkyrie--vacant > a { gap: 10px; min-height: 82px; padding: 11px; }
  .valkyrie .avatar { width: 48px; height: 48px; }
  .valkyrie span { font-size: 11px; }
  .valkyrie small { font-size: 8px; }
  .valkyrie--vacant b { font-size: 7px; }
  .valkyries__recruit { grid-template-columns: 35px minmax(0, 1fr); gap: 12px; padding: 15px 12px; }
  .valkyries__recruit > span { font-size: 30px; }
  .valkyries__recruit strong { font-size: 18px; line-height: 1.15; }
  .valkyries__recruit > b { gap: 8px; padding: 9px 10px; font-size: 9px; }
  .codex__layout { margin-top: 50px; }
  .codex-panel { grid-template-columns: 1fr; }
  .js .codex-panel.is-active { display: grid; }
  .codex-panel__rune { min-height: 230px; border-right: 0; border-bottom: 1px solid var(--line); }
  .codex-panel__rune > span { font-size: 150px; }
  .codex-panel__rune small { margin-top: 10px; }
  .codex-panel__copy { padding: 30px 20px; }
  .codex-panel__copy h3 { font-size: 43px; }
  .codex-panel__copy dl > div { grid-template-columns: 62px 1fr; gap: 12px; }
  .codex-panel__copy dd { font-size: 13px; }
  .armory-control { margin-top: 45px; }
  .armory-filter { gap: 6px; padding-inline: 10px; }
  .filter-summary { padding-inline: 11px; }
  .armory__stage { min-height: 630px; }
  .armory__stage-top { gap: 10px; padding-inline: 14px; font-size: 8px; }
  #vehicleClass { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .armory__br small { display: none; }
  .armory__visual { height: 245px; padding: 20px 12px 0; }
  .armory__target { height: 245px; }
  .armory__target i { width: 230px; height: 230px; }
  .armory__target i:nth-child(2) { width: 175px; height: 175px; }
  .armory__target::before { width: 290px; }
  .armory__target::after { height: 230px; }
  .armory__target span { font-size: 180px; }
  .armory__details { padding: 0 20px 22px; }
  .armory__details h3 { font-size: 42px; }
  .armory__details > p:not(.armory__number) { font-size: 12px; }
  .vehicle-index { grid-template-columns: 1fr; max-height: 380px; }
  .vehicle-item:nth-child(odd) { border-right: 0; }
  .vehicle-item { min-height: 68px; }
  .initiation { margin-top: 50px; }
  .oath-step, .oath-step--main { grid-template-columns: 43px 1fr; gap: 13px; width: 100%; padding: 22px 16px; }
  .oath-step > span { font-size: 34px; }
  .oath-step h3 { font-size: 25px; }
  .oath-step p { font-size: 12px; }
  .oath-join { padding: 40px 0 90px; }
  .oath-join > h2 { font-size: 46px; }
  .oath-join__lead { font-size: 13px; }
  .oath-join__steps { grid-template-columns: 1fr; gap: 22px; margin-top: 55px; }
  .footer__bottom { align-items: flex-start; flex-direction: column; gap: 14px; }
  .footer__ascent span { display: none; }
}

@media (max-width: 380px) {
  .section-title { font-size: 2.85rem; }
  .hero__name { font-size: clamp(4.7rem, 24vw, 5.35rem); }
  .hero__oath { font-size: 26px; }
  .commander--leader { grid-template-columns: 100px 1fr; }
  .commander--leader .avatar { width: 100px; height: 100px; }
  .commander--leader .commander__info h3 { font-size: 21px; }
  .valkyries__list { grid-template-columns: 1fr; }
  .valkyrie { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .valkyrie:last-child { border-bottom: 0 !important; }
  .oath-join > h2 { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .split .char { opacity: 1 !important; clip-path: none !important; transform: none !important; }
  .tree-scene > img { transform: translate3d(-50%, 0, 0) !important; }
  .hero__snow { display: none; }
}
