@font-face {
  font-family: "Cinzel";
  src: url("fonts/cinzel_variable.ttf") format("truetype");
  font-display: swap;
  font-weight: 400 900;
}

@font-face {
  font-family: "Bitter";
  src: url("fonts/bitter_variable.ttf") format("truetype");
  font-display: swap;
  font-weight: 100 900;
}

@font-face {
  font-family: "Fira Sans";
  src: url("fonts/fira_sans_regular.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "Fira Sans";
  src: url("fonts/fira_sans_medium.ttf") format("truetype");
  font-display: swap;
  font-weight: 500;
}

@font-face {
  font-family: "Fira Sans";
  src: url("fonts/fira_sans_bold.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: "Fira Sans";
  src: url("fonts/fira_sans_extra_bold.ttf") format("truetype");
  font-display: swap;
  font-weight: 800;
}

:root {
  color-scheme: dark;
  --canvas: #0b120f;
  --outline: #080b09;
  --surface: #17211d;
  --panel: #202b25;
  --panel-alt: #28342d;
  --inset: #111a16;
  --iron-dark: #303b35;
  --iron: #48544c;
  --iron-light: #737e75;
  --border: #514b37;
  --bronze-dark: #4b3b23;
  --bronze: #826b3f;
  --bronze-light: #b9914d;
  --gold: #e2b45e;
  --selection: #d3aa5e;
  --action: #6ea87b;
  --danger: #e36d55;
  --mana: #7ea7e8;
  --ink: #eaf1ea;
  --muted: #acc0b4;
  --shell: 1220px;
  --title: "Cinzel", Georgia, serif;
  --entity: "Bitter", Georgia, serif;
  --body: "Fira Sans", system-ui, sans-serif;
  --pixel-clip: polygon(
    8px 0,
    calc(100% - 8px) 0,
    calc(100% - 8px) 2px,
    calc(100% - 4px) 2px,
    calc(100% - 4px) 6px,
    100% 6px,
    100% calc(100% - 6px),
    calc(100% - 4px) calc(100% - 6px),
    calc(100% - 4px) calc(100% - 2px),
    calc(100% - 8px) calc(100% - 2px),
    calc(100% - 8px) 100%,
    8px 100%,
    8px calc(100% - 2px),
    4px calc(100% - 2px),
    4px calc(100% - 6px),
    0 calc(100% - 6px),
    0 6px,
    4px 6px,
    4px 2px,
    8px 2px
  );
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(115, 126, 117, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 126, 117, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  pointer-events: none;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

img[src*="landing-assets/"],
img[src="app-icon.png"] {
  image-rendering: pixelated;
}

a {
  color: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.visually-hidden {
  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: fixed;
  z-index: 300;
  top: -80px;
  left: 16px;
  padding: 11px 16px;
  clip-path: var(--pixel-clip);
  background: var(--gold);
  color: var(--outline);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.page-shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.topbar {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: 78px;
  padding: 12px max(24px, calc((100vw - var(--shell)) / 2));
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 2px solid transparent;
  transition: background 120ms linear, border-color 120ms linear;
}

.topbar.is-scrolled,
.topbar.is-open {
  border-bottom-color: var(--outline);
  background: rgba(11, 18, 15, 0.97);
  box-shadow: 0 2px 0 var(--bronze-dark);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
}

.site-brand img {
  width: 46px;
  height: 46px;
  border: 2px solid var(--outline);
  box-shadow: 2px 2px 0 var(--bronze-dark);
}

.site-brand strong,
.site-brand small {
  display: block;
}

.site-brand strong {
  font-family: var(--title);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-brand small {
  margin-top: 5px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 25px;
}

.main-navigation a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-family: var(--entity);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.main-navigation a:not(.nav-download)::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--bronze-light);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 100ms steps(2, end);
}

.main-navigation a:hover {
  color: var(--ink);
}

.main-navigation a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-navigation .nav-download {
  padding: 11px 18px;
  clip-path: var(--pixel-clip);
  background: var(--bronze);
  box-shadow: inset 0 0 0 2px var(--outline), inset 0 3px 0 var(--bronze-light);
  color: #fff2d0;
  text-shadow: 0 1px 0 #000;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-picker::after {
  position: absolute;
  right: 11px;
  color: var(--gold);
  content: "▾";
  font-size: 11px;
  pointer-events: none;
}

.language-picker select {
  min-width: 68px;
  min-height: 40px;
  padding: 7px 28px 7px 11px;
  appearance: none;
  border: 2px solid var(--outline);
  clip-path: var(--pixel-clip);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--iron);
  color: var(--gold);
  cursor: pointer;
  font: 800 12px var(--body);
  letter-spacing: 0.08em;
}

.language-picker option {
  background: var(--surface);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--outline);
  clip-path: var(--pixel-clip);
  place-items: center;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--iron);
  cursor: pointer;
}

.menu-toggle span {
  grid-area: 1 / 1;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 100ms steps(2, end);
}

.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.hero {
  position: relative;
  display: grid;
  min-height: 800px;
  height: 100svh;
  overflow: hidden;
  align-items: end;
  border-bottom: 4px solid var(--outline);
}

.hero-background,
.download-background,
.combat-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-background {
  object-position: center 55%;
  animation: hero-reveal 900ms steps(9, end) both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 9, 0.98) 0%, rgba(8, 11, 9, 0.86) 45%, rgba(8, 11, 9, 0.28) 70%, rgba(8, 11, 9, 0.5) 100%),
    linear-gradient(0deg, var(--canvas) 0%, transparent 30%, rgba(8, 11, 9, 0.35) 100%);
}

.hero-shade::after,
.download-overlay::after {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(234, 241, 234, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 241, 234, 0.08) 1px, transparent 1px);
  background-size: 4px 4px;
  content: "";
  pointer-events: none;
}

.hero-party {
  position: absolute;
  z-index: 1;
  right: max(2vw, calc((100vw - var(--shell)) / 2 - 30px));
  bottom: 5vh;
  display: grid;
  width: min(48vw, 660px);
  height: min(70vh, 710px);
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  pointer-events: none;
}

.hero-party img {
  width: 135%;
  max-width: none;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(6px 8px 0 rgba(8, 11, 9, 0.85));
}

.hero-party img:nth-child(1) {
  height: 82%;
  transform: translateX(18%);
}

.hero-party img:nth-child(2) {
  position: relative;
  z-index: 2;
  height: 100%;
  transform: translateX(-5%);
}

.hero-party img:nth-child(3) {
  height: 86%;
  transform: translateX(-26%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 140px;
  padding-bottom: clamp(94px, 13vh, 135px);
}

.eyebrow {
  display: flex;
  margin: 0 0 20px;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow span {
  width: 28px;
  height: 3px;
  background: var(--bronze-light);
  box-shadow: 0 2px 0 var(--outline);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--title);
  font-weight: 650;
  text-wrap: balance;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(47px, 6.2vw, 88px);
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-shadow: 3px 4px 0 var(--outline);
}

h1 em {
  color: #fff2d0;
  font-style: normal;
  font-weight: 700;
}

.hero-lead {
  max-width: 610px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-button {
  display: inline-flex;
  min-width: 205px;
  min-height: 62px;
  padding: 10px 18px;
  align-items: center;
  gap: 13px;
  clip-path: var(--pixel-clip);
  background: var(--panel);
  box-shadow:
    inset 0 0 0 2px var(--outline),
    inset 0 0 0 3px var(--iron),
    inset 0 3px 0 var(--iron-light);
  color: var(--ink);
  text-decoration: none;
  transition: filter 100ms linear, transform 100ms steps(2, end);
}

.store-button:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.store-button-unavailable,
.store-button-unavailable:hover {
  background: #292824;
  box-shadow: inset 0 0 0 2px var(--outline), inset 0 0 0 3px #514b40;
  color: #9d9686;
  cursor: default;
  filter: none;
  transform: none;
}

.store-button-primary {
  background: #55462d;
  box-shadow:
    inset 0 0 0 2px var(--outline),
    inset 0 0 0 3px #9b8047,
    inset 0 3px 0 var(--selection),
    0 3px 0 var(--outline);
  color: #fff2d0;
}

.store-button small,
.store-button strong {
  display: block;
}

.store-button small {
  margin-bottom: 4px;
  opacity: 0.78;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-button strong {
  font-family: var(--entity);
  font-size: 15px;
  line-height: 1;
}

.store-symbol {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid currentColor;
  font-size: 14px;
  line-height: 1;
}

.apple-symbol {
  font-size: 9px;
  font-weight: 900;
}

.hero-footnote {
  display: flex;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-footnote span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-footnote span::before {
  width: 5px;
  height: 5px;
  background: var(--action);
  box-shadow: 1px 1px 0 var(--outline);
  content: "";
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - var(--shell)) / 2));
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 48px;
  height: 3px;
  overflow: hidden;
  background: var(--iron-dark);
}

.scroll-cue i::after {
  position: absolute;
  inset: 0;
  background: var(--gold);
  content: "";
  animation: scroll-line 1.7s steps(8, end) infinite;
  transform: translateX(-100%);
}

.section {
  position: relative;
  padding: clamp(84px, 10vw, 138px) 0;
}

.section-heading {
  display: grid;
  margin-bottom: 50px;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  align-items: end;
  gap: 58px;
}

.section-heading .eyebrow,
.centered-heading .eyebrow {
  margin-bottom: 17px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(39px, 5.2vw, 68px);
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-shadow: 2px 3px 0 var(--outline);
}

.section-heading > p,
.centered-heading > p,
.loot-copy > p,
.combat-copy > p,
.warden-copy > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.world {
  background: var(--canvas);
}

.world-atlas {
  display: grid;
  overflow: hidden;
  padding: 2px;
  clip-path: var(--pixel-clip);
  background: var(--outline);
  box-shadow: 0 6px 0 rgba(8, 11, 9, 0.75);
  grid-template-columns: minmax(0, 1fr) 320px;
}

.atlas-stage {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: var(--inset);
}

.atlas-stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 120ms steps(3, end), transform 420ms steps(7, end);
}

.atlas-stage.is-changing > img {
  opacity: 0.28;
  transform: scale(1.025);
}

.atlas-stage::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 11, 9, 0.98), transparent 64%);
  content: "";
}

.atlas-overlay {
  position: absolute;
  z-index: 2;
  right: 42px;
  bottom: 38px;
  left: 42px;
}

.atlas-overlay p {
  margin-bottom: 11px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.atlas-overlay h3 {
  margin-bottom: 7px;
  font-family: var(--title);
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 2px 3px 0 var(--outline);
}

.atlas-overlay span,
.atlas-overlay strong {
  display: block;
}

.atlas-overlay span {
  margin-bottom: 7px;
  color: #fff2d0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.atlas-overlay strong {
  max-width: 560px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.atlas-selector {
  display: grid;
  gap: 2px;
  margin-left: 2px;
  background: var(--outline);
}

.atlas-selector button {
  position: relative;
  display: grid;
  padding: 0 28px;
  border: 0;
  align-content: center;
  gap: 7px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--entity);
  font-size: 20px;
  font-weight: 650;
  text-align: left;
}

.atlas-selector button::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--gold);
  content: "";
  transform: scaleY(0);
  transition: transform 100ms steps(3, end);
}

.atlas-selector button span {
  color: var(--bronze-light);
  font: 800 9px var(--body);
  letter-spacing: 0.16em;
}

.atlas-selector button:hover,
.atlas-selector button[aria-pressed="true"] {
  background: var(--panel-alt);
  color: var(--ink);
}

.atlas-selector button[aria-pressed="true"]::before {
  transform: scaleY(1);
}

.fact-strip {
  display: grid;
  margin-top: 2px;
  padding: 2px;
  clip-path: var(--pixel-clip);
  background: var(--outline);
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.fact-strip div {
  display: flex;
  min-height: 112px;
  padding: 23px 31px;
  align-items: center;
  gap: 17px;
  background: var(--surface);
}

.fact-strip strong {
  color: #fff2d0;
  font-family: var(--title);
  font-size: 38px;
  font-weight: 700;
  text-shadow: 2px 2px 0 var(--outline);
}

.fact-strip span {
  max-width: 155px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.45;
  text-transform: uppercase;
}

.vocations {
  overflow: hidden;
  border-top: 4px solid var(--outline);
  border-bottom: 4px solid var(--outline);
  background: var(--inset);
}

.centered-heading {
  display: block;
  max-width: 840px;
  margin: 0 auto 58px;
  text-align: center;
}

.centered-heading .eyebrow {
  justify-content: center;
}

.centered-heading > p {
  max-width: 690px;
  margin: 23px auto 0;
}

.vocation-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vocation-card {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  padding: 2px;
  clip-path: var(--pixel-clip);
  background: var(--outline);
  box-shadow: 0 5px 0 rgba(8, 11, 9, 0.82);
  transition: transform 100ms steps(2, end);
}

.vocation-card:hover {
  transform: translateY(-4px);
}

.vocation-card::after {
  position: absolute;
  z-index: 3;
  inset: 3px;
  border: 1px solid var(--bronze-dark);
  clip-path: var(--pixel-clip);
  content: "";
  pointer-events: none;
}

.vocation-portrait {
  position: relative;
  display: grid;
  aspect-ratio: 1.13 / 1;
  overflow: hidden;
  background: var(--surface);
  place-items: center;
}

.vocation-portrait::before {
  position: absolute;
  inset: 20px;
  background-image:
    linear-gradient(var(--iron-dark) 2px, transparent 2px),
    linear-gradient(90deg, var(--iron-dark) 2px, transparent 2px);
  background-size: 18px 18px;
  content: "";
  opacity: 0.3;
}

.vocation-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 20px 18px 2px;
  object-fit: contain;
  filter: drop-shadow(4px 5px 0 rgba(8, 11, 9, 0.72));
}

.vocation-copy {
  position: relative;
  z-index: 2;
  min-height: 374px;
  padding: 25px 28px 30px;
  background: var(--panel);
}

.vocation-number {
  position: absolute;
  top: 21px;
  right: 25px;
  color: var(--bronze);
  font-family: var(--title);
  font-size: 35px;
  font-weight: 700;
}

.vocation-role {
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vocation-copy h3 {
  margin-bottom: 15px;
  font-family: var(--title);
  font-size: 37px;
  font-weight: 700;
  text-shadow: 2px 2px 0 var(--outline);
}

.vocation-copy > p:not(.vocation-role),
.vocation-copy li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.58;
}

.vocation-copy ul {
  margin: 17px 0 21px;
  padding: 0;
  list-style: none;
}

.vocation-copy li {
  position: relative;
  padding: 7px 0 7px 17px;
  border-bottom: 1px solid var(--iron-dark);
}

.vocation-copy li::before {
  position: absolute;
  top: 13px;
  left: 1px;
  width: 6px;
  height: 6px;
  background: var(--bronze-light);
  box-shadow: 1px 1px 0 var(--outline);
  content: "";
}

.spell-chip {
  display: flex;
  padding: 9px;
  align-items: center;
  gap: 11px;
  border: 2px solid var(--outline);
  background: var(--inset);
  box-shadow: inset 0 0 0 1px var(--iron);
}

.spell-chip img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
}

.spell-chip small,
.spell-chip strong {
  display: block;
}

.spell-chip small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.spell-chip strong {
  color: #fff2d0;
  font-family: var(--entity);
  font-size: 12px;
}

.combat {
  display: grid;
  min-height: 900px;
  overflow: hidden;
  align-items: center;
}

.combat-visual {
  position: absolute;
  inset: 0;
}

.combat-visual::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 9, 0.98) 0%, rgba(8, 11, 9, 0.88) 50%, rgba(8, 11, 9, 0.48) 100%),
    linear-gradient(0deg, var(--canvas) 0%, transparent 17%, transparent 83%, var(--canvas) 100%);
  content: "";
}

.combat-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.7fr);
  align-items: center;
  gap: clamp(64px, 9vw, 130px);
}

.combat-copy h2 {
  max-width: 690px;
  margin-bottom: 25px;
}

.combat-copy > p {
  max-width: 620px;
}

.combat-points {
  max-width: 640px;
  margin-top: 36px;
  border-top: 2px solid var(--outline);
}

.combat-points article {
  display: grid;
  padding: 18px 0;
  border-bottom: 2px solid var(--outline);
  grid-template-columns: 48px 1fr;
  gap: 12px;
}

.combat-points article > span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.combat-points h3 {
  margin-bottom: 4px;
  font-family: var(--entity);
  font-size: 20px;
}

.combat-points p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.battle-panel {
  padding: 28px;
  clip-path: var(--pixel-clip);
  background: var(--panel);
  box-shadow:
    inset 0 0 0 2px var(--outline),
    inset 0 0 0 3px var(--bronze),
    0 7px 0 rgba(8, 11, 9, 0.82);
}

.battle-panel-top {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 11px;
}

.battle-panel-top span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.battle-panel-top i {
  height: 2px;
  background: var(--bronze-dark);
}

.battle-panel-top strong {
  grid-column: 1 / -1;
  font-family: var(--title);
  font-size: 25px;
  text-shadow: 2px 2px 0 var(--outline);
}

.battle-target {
  display: flex;
  margin-top: 20px;
  padding: 13px 0;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid var(--outline);
  border-bottom: 2px solid var(--outline);
}

.battle-target p,
.battle-target strong { margin: 0; }
.battle-target p { color: var(--muted); font-size: 10px; font-weight: 700; }
.battle-target strong { color: #fff2d0; font-size: 15px; }

.encounter-lineup {
  display: grid;
  min-height: 176px;
  margin: 14px 0 18px;
  padding: 9px 7px 7px;
  border: 2px solid var(--outline);
  background: var(--inset);
  box-shadow: inset 0 0 0 1px var(--iron-dark);
  grid-template-columns: repeat(3, 1fr);
}

.encounter-lineup figure {
  display: grid;
  min-width: 0;
  margin: 0;
  grid-template-rows: 1fr auto;
  align-items: end;
}

.encounter-lineup img {
  width: 100%;
  height: 136px;
  object-fit: contain;
  filter: drop-shadow(2px 3px 0 var(--outline));
}

.encounter-lineup figcaption {
  min-height: 27px;
  color: var(--muted);
  font-family: var(--entity);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
}

.battle-log {
  margin: 20px 0;
}

.battle-log small {
  color: var(--action);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.battle-log p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.hotbar-demo {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(5, 1fr);
}

.hotbar-demo > div {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--outline);
  background: var(--inset);
  box-shadow: inset 0 0 0 1px var(--iron);
}

.hotbar-demo img {
  width: 74%;
  height: 74%;
  object-fit: contain;
}

.hotbar-demo span {
  position: absolute;
  right: 3px;
  bottom: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.hotbar-demo .hotbar-empty { opacity: 0.55; }

.battle-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.55;
  text-transform: uppercase;
}

.systems {
  border-top: 4px solid var(--outline);
  border-bottom: 4px solid var(--outline);
  background: var(--inset);
}

.warden-section {
  display: grid;
  margin-bottom: 54px;
  padding: 2px;
  clip-path: var(--pixel-clip);
  background: var(--outline);
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.5fr);
}

.warden-copy {
  padding: 34px;
  background: var(--panel);
}

.warden-copy h3 {
  margin-bottom: 16px;
  font-family: var(--title);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  text-shadow: 2px 2px 0 var(--outline);
}

.warden-roster {
  display: grid;
  margin-left: 2px;
  background: var(--outline);
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}

.warden-roster article {
  display: grid;
  min-width: 0;
  background: var(--surface);
  grid-template-rows: minmax(190px, 1fr) auto;
}

.warden-roster img {
  width: 100%;
  height: 100%;
  padding: 10px 4px 0;
  object-fit: contain;
  filter: drop-shadow(3px 4px 0 rgba(8, 11, 9, 0.8));
}

.warden-roster article > div {
  min-height: 74px;
  padding: 12px 10px;
  border-top: 2px solid var(--outline);
  background: var(--panel);
}

.warden-roster strong,
.warden-roster span {
  display: block;
}

.warden-roster strong {
  margin-bottom: 5px;
  font-family: var(--entity);
  font-size: 12px;
}

.warden-roster span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.service-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  position: relative;
  min-height: 305px;
  overflow: hidden;
  padding: 2px;
  clip-path: var(--pixel-clip);
  background: var(--outline);
}

.service-card > img:not(.hall-background) {
  position: absolute;
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  object-fit: cover;
  transition: transform 260ms steps(5, end);
}

.service-card:hover > img:not(.hall-background) {
  transform: scale(1.025);
}

.service-card::before {
  position: absolute;
  z-index: 1;
  inset: 2px;
  background: linear-gradient(0deg, rgba(8, 11, 9, 0.98) 0%, rgba(8, 11, 9, 0.66) 44%, transparent 77%);
  content: "";
}

.service-card::after {
  position: absolute;
  z-index: 3;
  inset: 3px;
  border: 1px solid var(--bronze-dark);
  content: "";
  pointer-events: none;
}

.service-card > div {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 21px;
  left: 20px;
}

.service-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-card h3 {
  margin-bottom: 7px;
  font-family: var(--title);
  font-size: 23px;
  line-height: 1.1;
  text-shadow: 2px 2px 0 var(--outline);
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.service-card-large {
  min-height: 420px;
  grid-column: span 2;
}

.service-card-large > div {
  right: 30px;
  bottom: 29px;
  left: 30px;
}

.service-card-large h3 { font-size: 34px; }
.service-card-large p { max-width: 470px; font-size: 12px; }

.service-card-avatars {
  background: var(--outline);
}

.service-card-avatars .hall-background {
  position: absolute;
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  object-fit: cover;
  opacity: 0.42;
}

.service-card-avatars::before {
  background: linear-gradient(0deg, rgba(8, 11, 9, 0.99) 0%, rgba(8, 11, 9, 0.76) 41%, rgba(8, 11, 9, 0.14) 82%);
}

.avatar-gallery {
  position: absolute;
  z-index: 1;
  top: 7px;
  right: 10px;
  left: 10px;
  display: grid;
  height: 62%;
  margin: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.avatar-gallery img {
  width: 100%;
  height: 100%;
  padding: 4px 0;
  object-fit: contain;
  filter: drop-shadow(2px 3px 0 rgba(8, 11, 9, 0.8));
}

.loot {
  overflow: hidden;
  background: var(--canvas);
}

.loot-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(440px, 1.15fr);
  align-items: center;
  gap: clamp(60px, 9vw, 130px);
}

.loot-copy h2 { margin-bottom: 24px; }

.loot-tags {
  display: flex;
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 7px;
}

.loot-tags span {
  padding: 7px 10px;
  border: 2px solid var(--outline);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--iron-dark);
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.item-vault {
  position: relative;
  display: grid;
  max-width: 620px;
  padding: 38px;
  clip-path: var(--pixel-clip);
  background: var(--panel);
  box-shadow:
    inset 0 0 0 2px var(--outline),
    inset 0 0 0 3px var(--bronze-dark),
    0 7px 0 rgba(8, 11, 9, 0.8);
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
}

.item-vault::before {
  position: absolute;
  inset: 13px;
  border: 2px solid var(--outline);
  content: "";
  pointer-events: none;
}

.item-slot {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  grid-column: span 2;
  place-items: center;
  border: 2px solid var(--outline);
  background: var(--inset);
  box-shadow: inset 0 0 0 2px var(--iron-dark);
}

.item-slot img {
  width: 74%;
  height: 74%;
  object-fit: contain;
  transition: transform 100ms steps(2, end);
}

.item-slot:hover img { transform: translateY(-3px) scale(1.05); }

.item-slot span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.featured-item {
  grid-column: span 3;
  grid-row: span 2;
}

.featured-item + .item-slot { grid-column: span 3; }

.promise {
  border-top: 4px solid var(--outline);
  border-bottom: 4px solid var(--outline);
  background: var(--inset);
}

.promise-grid {
  display: grid;
  padding: 2px;
  clip-path: var(--pixel-clip);
  background: var(--outline);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
}

.promise-grid article {
  min-height: 240px;
  padding: 31px;
  background: var(--surface);
}

.promise-grid .promise-lead {
  min-height: 310px;
  grid-column: span 2;
  background: var(--panel);
}

.promise-lead h2 { max-width: 730px; }

.promise-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 38px;
  place-items: center;
  border: 2px solid var(--outline);
  background: var(--panel-alt);
  box-shadow: inset 0 0 0 1px var(--bronze);
  color: var(--gold);
  font-size: 8px;
  font-weight: 900;
}

.promise-grid article:not(.promise-lead) h3 {
  margin-bottom: 10px;
  font-family: var(--entity);
  font-size: 22px;
}

.promise-grid article:not(.promise-lead) p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.download {
  position: relative;
  display: grid;
  min-height: 720px;
  overflow: hidden;
  place-items: center;
  text-align: center;
}

.download-background { object-position: center 52%; }

.download-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 9, 0.78), rgba(8, 11, 9, 0.48), rgba(8, 11, 9, 0.78)),
    linear-gradient(0deg, var(--canvas) 0%, transparent 20%, transparent 80%, var(--inset) 100%);
}

.download-content {
  position: relative;
  z-index: 2;
  display: flex;
  padding: 90px 0;
  align-items: center;
  flex-direction: column;
}

.download-icon {
  width: 116px;
  height: 116px;
  margin-bottom: 26px;
  border: 3px solid var(--outline);
  box-shadow: 0 5px 0 var(--bronze-dark);
}

.download-content .eyebrow { justify-content: center; }

.download-content h2 {
  margin-bottom: 20px;
  font-size: clamp(48px, 6.4vw, 82px);
  text-shadow: 3px 4px 0 var(--outline);
}

.download-content > p:not(.eyebrow) {
  margin-bottom: 27px;
  color: var(--muted);
  font-size: 15px;
}

.download-actions { justify-content: center; }

.footer {
  border-top: 4px solid var(--outline);
  background: #080b09;
}

.footer-inner {
  display: grid;
  min-height: 190px;
  padding: 38px 0;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px 42px;
}

.footer-inner > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.footer nav {
  display: flex;
  gap: 21px;
}

.footer nav a {
  color: var(--muted);
  font-family: var(--entity);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.footer nav a:hover { color: var(--gold); }

.footer-inner > small {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 2px solid var(--outline);
  color: #738078;
  font-size: 9px;
}

@keyframes hero-reveal {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes scroll-line {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}

@media (max-width: 1120px) {
  .main-navigation { gap: 17px; }
  .main-navigation a { font-size: 12px; }
  .hero-party { right: -5vw; width: 54vw; opacity: 0.86; }
  .world-atlas { grid-template-columns: 1fr; }
  .atlas-selector {
    margin-top: 2px;
    margin-left: 0;
    grid-template-columns: repeat(5, 1fr);
  }
  .atlas-selector button { min-height: 88px; padding: 16px; font-size: 14px; }
  .warden-section { grid-template-columns: 1fr; }
  .warden-roster { margin-top: 2px; margin-left: 0; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vocation-copy { padding-inline: 22px; }
}

@media (max-width: 880px) {
  .page-shell { width: min(100% - 32px, var(--shell)); }
  .topbar { min-height: 70px; padding-inline: 16px; }
  .menu-toggle { display: grid; }
  .main-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: calc(100dvh - 70px);
    padding: 34px 22px max(34px, env(safe-area-inset-bottom));
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    background: var(--canvas);
    opacity: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 100ms steps(3, end), transform 100ms steps(3, end);
  }
  .main-navigation.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .main-navigation a {
    padding: 17px 6px;
    border-bottom: 2px solid var(--outline);
    font-family: var(--title);
    font-size: 25px;
    font-weight: 700;
  }
  .main-navigation .nav-download { margin-top: 20px; text-align: center; }
  .hero-party { right: -16vw; width: 66vw; opacity: 0.55; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 11, 9, 0.96), rgba(8, 11, 9, 0.54)),
      linear-gradient(0deg, var(--canvas), transparent 43%, rgba(8, 11, 9, 0.45));
  }
  .scroll-cue { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .atlas-stage { min-height: 540px; }
  .atlas-selector { overflow-x: auto; grid-template-columns: repeat(5, minmax(145px, 1fr)); }
  .vocation-grid { grid-template-columns: 1fr; }
  .vocation-card { display: grid; min-height: 0; grid-template-columns: minmax(220px, 0.8fr) 1.2fr; }
  .vocation-portrait { height: 100%; aspect-ratio: auto; }
  .vocation-copy { min-height: 0; padding: 31px 25px; }
  .combat { min-height: 0; }
  .combat-visual::after { background: rgba(8, 11, 9, 0.86); }
  .combat-layout { grid-template-columns: 1fr; gap: 50px; }
  .battle-panel { max-width: 540px; }
  .warden-roster { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; }
  .loot-layout { grid-template-columns: 1fr; }
  .item-vault { width: min(100%, 620px); }
  .promise-grid { grid-template-columns: repeat(2, 1fr); }
  .promise-grid .promise-lead { grid-column: span 2; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner > p { display: none; }
}

@media (max-width: 580px) {
  .site-brand strong { font-size: 14px; }
  .site-brand img { width: 40px; height: 40px; }
  .hero { min-height: 760px; }
  .hero-background { object-position: 58% center; }
  .hero-party { display: none; }
  .hero-content { padding-top: 118px; padding-bottom: 88px; }
  h1 { font-size: clamp(42px, 13vw, 59px); }
  .hero-lead { font-size: 15px; }
  .hero-actions { display: grid; width: 100%; grid-template-columns: 1fr; }
  .store-button { width: 100%; }
  .hero-footnote { display: grid; gap: 8px; }
  .section { padding: 78px 0; }
  .section-heading, .centered-heading { margin-bottom: 38px; }
  h2 { font-size: clamp(36px, 11vw, 50px); }
  .atlas-stage { min-height: 475px; }
  .atlas-overlay { right: 21px; bottom: 23px; left: 21px; }
  .atlas-overlay h3 { font-size: 39px; }
  .fact-strip { grid-template-columns: 1fr; }
  .fact-strip div { min-height: 86px; padding: 16px 20px; }
  .vocation-card { display: block; }
  .vocation-portrait { height: auto; aspect-ratio: 1.08 / 1; }
  .vocation-copy { padding: 25px 23px 27px; }
  .battle-panel { padding: 22px; }
  .encounter-lineup img { height: 112px; }
  .warden-copy { padding: 27px 23px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card, .service-card-large { min-height: 340px; grid-column: auto; }
  .service-card-large > div { right: 20px; bottom: 21px; left: 20px; }
  .service-card-large h3 { font-size: 29px; }
  .avatar-gallery { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); height: 66%; }
  .item-vault { padding: 27px; gap: 6px; }
  .item-vault::before { inset: 9px; }
  .promise-grid { grid-template-columns: 1fr; }
  .promise-grid .promise-lead { min-height: 280px; grid-column: auto; }
  .promise-grid article { min-height: 205px; padding: 25px; }
  .download { min-height: 670px; }
  .footer-inner { padding: 42px 0; grid-template-columns: 1fr; }
  .footer nav { align-items: flex-start; flex-direction: column; gap: 12px; }
  .footer-inner > small { line-height: 1.55; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
