:root {
  color-scheme: dark;
  --ink: #07090d;
  --ink-soft: #0d1118;
  --panel: rgba(12, 16, 22, 0.9);
  --panel-solid: #111720;
  --paper: #f2eadb;
  --muted: #aaa79f;
  --gold: #cda45e;
  --gold-bright: #f0cf82;
  --gold-dark: #765326;
  --crimson: #8e241b;
  --crimson-bright: #c43c2f;
  --blue: #72a9c5;
  --line: rgba(205, 164, 94, 0.3);
  --shell: min(1180px, calc(100vw - 48px));
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 20%, rgba(49, 89, 111, 0.09), transparent 30%),
    radial-gradient(circle at 84% 80%, rgba(119, 45, 30, 0.08), transparent 34%),
    var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border: 1px solid var(--gold);
  background: var(--ink);
  color: var(--paper);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 82px;
  border-bottom: 1px solid rgba(205, 164, 94, 0.18);
  background: linear-gradient(to bottom, rgba(5, 7, 10, 0.94), rgba(5, 7, 10, 0.72));
  backdrop-filter: blur(14px);
  transition: height 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  height: 68px;
  background: rgba(5, 7, 10, 0.95);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  transform: rotate(45deg);
  border: 1px solid var(--gold-dark);
  background: linear-gradient(145deg, #2a2115, #0d1015 65%);
  color: var(--gold-bright);
  font: 700 21px/1 var(--serif);
  box-shadow: inset 0 0 0 4px #090b0f, 0 0 18px rgba(205, 164, 94, 0.12);
}

.brand-mark::before {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(205, 164, 94, 0.2);
  content: "";
}

.brand-mark::after {
  position: absolute;
  width: 6px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--crimson-bright);
  box-shadow: 0 0 12px rgba(196, 60, 47, 0.7);
  content: "";
}

.brand-mark,
.brand-mark::after {
  transform-origin: center;
}

.brand-mark > *,
.brand-mark {
  text-shadow: 0 1px 0 #000;
}

.brand-mark {
  line-height: 1;
}

.brand-mark::after {
  right: 3px;
  bottom: 3px;
}

.brand-mark {
  --unrotate: -45deg;
}

.brand-mark {
  text-indent: 0;
}

.brand-mark {
  /* The glyph is visually counter-rotated through writing orientation. */
  writing-mode: horizontal-tb;
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 7px;
  text-transform: uppercase;
}

.brand-name {
  color: var(--gold-bright);
  font: 700 23px/1 var(--serif);
  letter-spacing: 0.045em;
}

.brand-suffix {
  color: #8e8b84;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.7vw, 38px);
}

.nav-link {
  position: relative;
  padding: 27px 0 24px;
  color: #b9b6ae;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.is-scrolled .nav-link {
  padding-block: 20px;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  content: "";
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--gold-bright);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link-accent {
  padding: 10px 15px;
  border: 1px solid rgba(205, 164, 94, 0.44);
}

.nav-link-accent::after {
  display: none;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(8, 10, 14, 0.8);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 5px 0;
  background: var(--gold-bright);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  display: grid;
  min-height: 820px;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
}

.hero-art,
.hero-vignette {
  position: absolute;
  inset: 0;
}

.hero-art {
  z-index: -3;
  scale: 1.035;
  background-image: url("assets/hero-dmowscy-mt2.png");
  background-position: center;
  background-size: cover;
  animation: hero-settle 1.8s cubic-bezier(0.2, 0.65, 0.3, 1) both;
}

.hero-vignette {
  z-index: -2;
  background:
    linear-gradient(to bottom, rgba(3, 5, 8, 0.16) 8%, rgba(3, 5, 8, 0.46) 54%, #07090d 100%),
    radial-gradient(ellipse at center, rgba(4, 6, 9, 0.05) 10%, rgba(4, 6, 9, 0.6) 82%),
    linear-gradient(90deg, rgba(2, 3, 5, 0.64), transparent 26%, transparent 74%, rgba(2, 3, 5, 0.64));
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.3;
  background-image: radial-gradient(rgba(240, 207, 130, 0.18) 0.65px, transparent 0.65px);
  background-size: 5px 5px;
  content: "";
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-top: 118px;
  text-align: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 42px;
  padding: 8px 15px;
  border: 1px solid rgba(114, 169, 197, 0.45);
  background: rgba(4, 9, 13, 0.72);
  color: #b8d3df;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  box-shadow: 0 0 30px rgba(64, 123, 152, 0.12);
}

.status-dot {
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(114, 169, 197, 0.1), 0 0 12px rgba(114, 169, 197, 0.85);
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 10px;
  color: var(--gold-bright);
  font: 700 clamp(12px, 1.35vw, 17px)/1.3 var(--serif);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.eyebrow span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.eyebrow-small {
  font-size: 10px;
  letter-spacing: 0.26em;
}

.eyebrow-small.left {
  justify-content: flex-start;
}

.eyebrow-small.left span {
  width: 34px;
}

.hero h1 {
  margin: 0;
  color: #e8c676;
  font: 700 clamp(66px, 10vw, 145px)/0.84 var(--serif);
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #3f2c13, 0 5px 24px rgba(0, 0, 0, 0.8), 0 0 65px rgba(188, 142, 58, 0.18);
}

.hero h1 em {
  color: #f1e8d3;
  font-size: 0.44em;
  font-style: normal;
  letter-spacing: 0.1em;
  vertical-align: 0.18em;
}

.hero-lead {
  max-width: 670px;
  margin: 28px auto 32px;
  color: #d0cec7;
  font: 400 clamp(17px, 1.6vw, 21px)/1.65 var(--serif);
  text-shadow: 0 2px 12px #000;
}

.primary-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  min-width: 238px;
  padding: 15px 24px;
  border: 1px solid #c44838;
  background: linear-gradient(180deg, #9f2e22, #5f1712);
  color: #fff1d4;
  font: 700 13px/1 var(--serif);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 3px rgba(10, 7, 5, 0.48), 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.primary-action::before,
.primary-action::after {
  position: absolute;
  top: 50%;
  width: 11px;
  aspect-ratio: 1;
  transform: translateY(-50%) rotate(45deg);
  border: 1px solid var(--gold);
  background: #1a120b;
  content: "";
}

.primary-action::before {
  left: -6px;
}

.primary-action::after {
  right: -6px;
}

.primary-action:hover,
.primary-action:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.15);
  box-shadow: inset 0 0 0 3px rgba(10, 7, 5, 0.48), 0 17px 38px rgba(0, 0, 0, 0.55), 0 0 30px rgba(154, 41, 31, 0.22);
}

.action-arrow {
  color: var(--gold-bright);
  font-family: var(--sans);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(930px, 100%);
  margin: 74px 0 0;
  border-block: 1px solid var(--line);
  background: rgba(5, 8, 12, 0.66);
  backdrop-filter: blur(10px);
}

.hero-stats div {
  position: relative;
  padding: 18px 15px 20px;
}

.hero-stats div + div::before {
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 0;
  width: 1px;
  background: var(--line);
  content: "";
}

.hero-stats dt {
  color: #8d8d8b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 5px 0 0;
  color: var(--gold-bright);
  font: 700 clamp(18px, 2vw, 28px)/1 var(--serif);
}

.hero-stats div:last-child dd {
  font-size: clamp(15px, 1.7vw, 22px);
}

.scroll-cue {
  position: absolute;
  right: 26px;
  bottom: 54px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  color: #8d8b84;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.scroll-cue span {
  writing-mode: vertical-rl;
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 45px;
  overflow: hidden;
  background: rgba(205, 164, 94, 0.22);
}

.scroll-cue i::after {
  display: block;
  width: 100%;
  height: 45%;
  background: var(--gold);
  content: "";
  animation: scroll-line 2s ease-in-out infinite;
}

.section {
  position: relative;
  padding: 112px 0;
}

.section-heading {
  max-width: 690px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading h2,
.world-copy h2,
.ranking-copy h2,
.download-copy h2,
.community-inner h2,
.dialog h2 {
  margin: 11px 0 18px;
  color: var(--paper);
  font: 700 clamp(36px, 4.5vw, 62px)/1.04 var(--serif);
  letter-spacing: -0.035em;
}

.section-heading p,
.world-copy > p,
.ranking-copy > p,
.download-copy > p,
.community-inner > p,
.dialog > p {
  margin: 0;
  color: var(--muted);
}

.story-section {
  background:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    #080b10;
  background-size: 42px 42px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.feature-card {
  position: relative;
  min-height: 310px;
  padding: 36px 30px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(18, 24, 32, 0.92), rgba(8, 11, 16, 0.96));
  transition: background 250ms ease, transform 250ms ease;
}

.feature-card + .feature-card {
  border-left: 1px solid var(--line);
}

.feature-card::after {
  position: absolute;
  inset: auto 25px 0;
  height: 2px;
  transform: scaleX(0);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  content: "";
  transition: transform 250ms ease;
}

.feature-card:hover {
  z-index: 2;
  transform: translateY(-8px);
  background: linear-gradient(160deg, rgba(34, 31, 25, 0.96), rgba(10, 13, 18, 0.98));
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-number {
  position: absolute;
  top: 14px;
  right: 20px;
  color: rgba(205, 164, 94, 0.22);
  font: 700 35px/1 var(--serif);
}

.feature-icon {
  display: grid;
  width: 65px;
  aspect-ratio: 1;
  margin-bottom: 32px;
  place-items: center;
  transform: rotate(45deg);
  border: 1px solid rgba(205, 164, 94, 0.45);
  background: #0c1016;
  color: var(--gold-bright);
  font: 700 18px/1 var(--serif);
  box-shadow: inset 0 0 0 5px rgba(205, 164, 94, 0.025);
}

.feature-card h3 {
  margin: 0 0 14px;
  color: #e9dfcd;
  font: 700 21px/1.2 var(--serif);
}

.feature-card p {
  margin: 0;
  color: #908f8b;
  font-size: 13px;
  line-height: 1.8;
}

.world-section {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.96) 0%, rgba(7, 9, 13, 0.72) 60%, rgba(7, 9, 13, 0.9) 100%),
    url("assets/hero-dmowscy-mt2.png") center 53% / cover;
}

.world-section::before,
.world-section::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  content: "";
}

.world-section::before {
  top: 0;
}

.world-section::after {
  bottom: 0;
}

.world-glow {
  position: absolute;
  top: 50%;
  right: 10%;
  width: 380px;
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(176, 87, 39, 0.08);
  filter: blur(70px);
}

.world-layout {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  align-items: center;
  gap: 9vw;
}

.world-copy {
  max-width: 600px;
}

.world-copy h2 {
  color: #ecdfc6;
}

.world-list {
  display: grid;
  gap: 0;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.world-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(205, 164, 94, 0.16);
  color: #c5c2ba;
  font-size: 13px;
}

.world-list span {
  color: var(--gold);
  font: 700 11px/1 var(--serif);
}

.realm-card {
  position: relative;
  display: grid;
  min-height: 410px;
  padding: 18px;
  place-items: center;
  border: 1px solid rgba(205, 164, 94, 0.3);
  background: rgba(5, 7, 10, 0.72);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
}

.realm-card::before,
.realm-card::after {
  position: absolute;
  width: 26px;
  aspect-ratio: 1;
  transform: rotate(45deg);
  border: 1px solid var(--gold-dark);
  background: #0c0f14;
  content: "";
}

.realm-card::before {
  top: -14px;
  left: -14px;
}

.realm-card::after {
  right: -14px;
  bottom: -14px;
}

.realm-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 30px;
  border: 1px solid rgba(205, 164, 94, 0.16);
  text-align: center;
}

.realm-emblem {
  display: grid;
  width: 120px;
  aspect-ratio: 1;
  margin-bottom: 30px;
  place-items: center;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
  background: radial-gradient(circle, #273544, #0b1016 63%);
  box-shadow: inset 0 0 0 8px #080b0f, 0 0 42px rgba(90, 151, 181, 0.16);
}

.realm-emblem span {
  transform: rotate(-45deg);
  color: var(--gold-bright);
  font: 700 56px/1 var(--serif);
  text-shadow: 0 0 24px rgba(205, 164, 94, 0.38);
}

.realm-frame p {
  margin: 0 0 5px;
  color: #8e8d88;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.realm-frame strong {
  color: #e7d7b9;
  font: 700 clamp(28px, 3.2vw, 42px)/1.1 var(--serif);
}

.realm-caption {
  margin-top: 14px;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.news-section {
  background: #090c11;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 20px;
}

.news-card {
  overflow: hidden;
  border: 1px solid rgba(205, 164, 94, 0.2);
  background: #0d1219;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition: transform 220ms ease, border-color 220ms ease;
}

.news-card:hover {
  transform: translateY(-7px);
  border-color: rgba(205, 164, 94, 0.5);
}

.news-visual {
  position: relative;
  height: 190px;
  background-image:
    linear-gradient(to top, #0d1219, transparent 55%),
    url("assets/hero-dmowscy-mt2.png");
  background-repeat: no-repeat;
  background-size: auto, 780px auto;
  filter: saturate(0.8);
}

.news-visual-one {
  background-position: center, 42% 36%;
}

.news-visual-two {
  background-position: center, 5% 73%;
}

.news-visual-three {
  background-position: center, 95% 70%;
}

.news-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 9px;
  border-left: 2px solid var(--gold);
  background: rgba(5, 7, 10, 0.8);
  color: var(--gold-bright);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-body {
  padding: 25px 24px 29px;
}

.news-body time {
  color: #777a7e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.news-body h3 {
  min-height: 52px;
  margin: 10px 0 11px;
  color: #e2d7c4;
  font: 700 22px/1.2 var(--serif);
}

.news-body p {
  min-height: 68px;
  margin: 0 0 17px;
  color: #8f9090;
  font-size: 12px;
  line-height: 1.75;
}

.text-link {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.text-link b {
  display: inline-block;
  margin-left: 5px;
  transition: transform 180ms ease;
}

.news-card:hover .text-link b {
  transform: translateX(5px);
}

.ranking-section {
  background:
    linear-gradient(120deg, rgba(22, 29, 38, 0.7), rgba(6, 8, 12, 0.94)),
    repeating-linear-gradient(135deg, rgba(205, 164, 94, 0.025) 0 1px, transparent 1px 12px);
}

.ranking-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 80px;
}

.ranking-preview {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  background: rgba(5, 8, 12, 0.72);
}

.ranking-seal {
  display: grid;
  flex: 0 0 68px;
  aspect-ratio: 1;
  place-items: center;
  transform: rotate(45deg);
  border: 1px solid rgba(205, 164, 94, 0.5);
  color: var(--gold-bright);
  font: 700 23px/1 var(--serif);
}

.ranking-preview small {
  color: var(--blue);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.ranking-preview strong {
  display: block;
  margin: 4px 0;
  color: #ded2bd;
  font: 700 22px/1.3 var(--serif);
}

.ranking-preview p {
  margin: 0;
  color: #7d8083;
  font-size: 11px;
}

.download-section {
  padding-block: 95px;
  overflow: hidden;
  background: #06080b;
}

.download-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background: url("assets/hero-dmowscy-mt2.png") center 62% / cover;
  filter: grayscale(0.2) blur(1px);
}

.download-panel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 39px 46px;
  border: 1px solid rgba(205, 164, 94, 0.38);
  background: linear-gradient(110deg, rgba(16, 21, 29, 0.96), rgba(8, 11, 16, 0.96));
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.48), inset 0 0 0 5px rgba(205, 164, 94, 0.025);
}

.download-panel::before,
.download-panel::after {
  position: absolute;
  top: 50%;
  width: 24px;
  aspect-ratio: 1;
  transform: translateY(-50%) rotate(45deg);
  border: 1px solid var(--gold-dark);
  background: #0a0d12;
  content: "";
}

.download-panel::before {
  left: -13px;
}

.download-panel::after {
  right: -13px;
}

.download-emblem {
  display: grid;
  width: 108px;
  aspect-ratio: 1;
  place-items: center;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
  background: radial-gradient(circle, rgba(50, 101, 127, 0.8), #0b1118 58%);
  box-shadow: inset 0 0 0 7px #090c11, 0 0 34px rgba(65, 127, 156, 0.2);
}

.download-emblem span {
  transform: rotate(-45deg);
  color: var(--gold-bright);
  font: 700 25px/1 var(--serif);
}

.download-copy h2 {
  margin: 7px 0 8px;
  font-size: clamp(34px, 4vw, 52px);
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;
  margin: 18px 0 0;
  padding: 0;
  color: #a8a69e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  list-style: none;
  text-transform: uppercase;
}

.download-meta li {
  position: relative;
}

.download-meta li + li::before {
  position: absolute;
  top: 50%;
  left: -15px;
  width: 4px;
  aspect-ratio: 1;
  transform: translateY(-50%) rotate(45deg);
  background: var(--gold-dark);
  content: "";
}

.download-button {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-width: 285px;
  padding: 17px 26px 15px;
  border: 1px solid #c84939;
  background: linear-gradient(180deg, #a63227, #681913);
  color: #fff0d1;
  text-align: center;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 4px rgba(8, 5, 4, 0.5), 0 15px 34px rgba(0, 0, 0, 0.4);
  transition: transform 180ms ease, filter 180ms ease;
}

.download-button span {
  font: 700 16px/1.1 var(--serif);
  letter-spacing: 0.12em;
}

.download-button small {
  margin-top: 7px;
  color: rgba(255, 236, 207, 0.62);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.download-button:hover,
.download-button:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.15);
}

.download-note {
  position: absolute;
  right: 46px;
  bottom: 11px;
  margin: 0;
  color: #666a6d;
  font-size: 8px;
}

.community-section {
  padding-block: 75px;
  border-top: 1px solid rgba(205, 164, 94, 0.11);
  background: #090c11;
}

.community-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 80px;
}

.community-inner h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 50px);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #05070a;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 108px;
  gap: 24px;
}

.brand-footer {
  scale: 0.82;
  transform-origin: left center;
}

.footer-inner p,
.back-to-top {
  color: #6e7072;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.back-to-top {
  transition: color 180ms ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: var(--gold);
}

.dialog-backdrop {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(2, 3, 5, 0.84);
  backdrop-filter: blur(10px);
}

.dialog-backdrop[hidden] {
  display: none;
}

.dialog {
  position: relative;
  width: min(520px, 100%);
  padding: 52px 44px 42px;
  border: 1px solid rgba(205, 164, 94, 0.5);
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    #0d1219;
  background-size: 28px 28px;
  text-align: center;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.7);
}

.dialog-close {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  width: 36px;
  aspect-ratio: 1;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(205, 164, 94, 0.25);
  background: transparent;
  color: #aaa69e;
  font-size: 22px;
  cursor: pointer;
}

.dialog-symbol {
  display: block;
  margin-bottom: 20px;
  color: var(--gold-bright);
  font-size: 30px;
}

.dialog h2 {
  font-size: 34px;
}

.dialog-action {
  margin-top: 28px;
  padding: 11px 23px;
  border: 1px solid var(--gold-dark);
  background: #1b1711;
  color: var(--gold-bright);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.7, 0.25, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

@keyframes hero-settle {
  from {
    opacity: 0;
    scale: 1.1;
  }
  to {
    opacity: 1;
    scale: 1.035;
  }
}

@keyframes scroll-line {
  0% {
    transform: translateY(-110%);
  }
  55%,
  100% {
    transform: translateY(230%);
  }
}

@media (max-width: 980px) {
  :root {
    --shell: min(100% - 36px, 780px);
  }

  .menu-toggle {
    display: block;
  }

  .menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 18px;
    transform: translateY(-120%);
    border-bottom: 1px solid var(--line);
    background: rgba(6, 8, 12, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: transform 220ms ease, opacity 180ms ease, visibility 180ms ease;
  }

  .menu-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link,
  .is-scrolled .nav-link {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(205, 164, 94, 0.1);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link-accent {
    margin-top: 8px;
    text-align: center;
  }

  .hero {
    min-height: 770px;
  }

  .hero-content {
    padding-top: 100px;
  }

  .hero h1 em {
    display: block;
    margin-top: 14px;
    font-size: 0.36em;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    width: min(600px, 100%);
    margin-top: 55px;
  }

  .hero-stats div:nth-child(3)::before {
    display: none;
  }

  .hero-stats div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .scroll-cue {
    display: none;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card:nth-child(3) {
    border-left: 0;
  }

  .feature-card:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .world-layout,
  .ranking-layout,
  .community-inner {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .world-copy,
  .ranking-copy {
    max-width: none;
  }

  .realm-card {
    min-height: 360px;
  }

  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-card-featured {
    grid-column: 1 / -1;
  }

  .download-panel {
    grid-template-columns: auto 1fr;
    padding-bottom: 48px;
  }

  .download-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .download-note {
    right: 25px;
    bottom: 14px;
    left: 25px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(100% - 28px, 520px);
  }

  .site-header,
  .site-header.is-scrolled {
    height: 68px;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-mark {
    width: 38px;
  }

  .hero {
    min-height: 780px;
  }

  .hero-art {
    background-position: 50% center;
  }

  .hero-content {
    padding-top: 82px;
  }

  .status-pill {
    margin-bottom: 32px;
  }

  .eyebrow {
    gap: 9px;
    font-size: 10px;
    letter-spacing: 0.21em;
  }

  .eyebrow span {
    width: 27px;
  }

  .hero h1 {
    font-size: clamp(52px, 18vw, 80px);
  }

  .hero-lead {
    margin-top: 24px;
    font-size: 17px;
  }

  .primary-action {
    width: min(285px, 100%);
  }

  .hero-stats {
    margin-top: 48px;
  }

  .hero-stats div {
    padding-inline: 8px;
  }

  .hero-stats dt {
    letter-spacing: 0.12em;
  }

  .section {
    padding-block: 82px;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .feature-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .feature-card + .feature-card,
  .feature-card:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .news-card-featured {
    grid-column: auto;
  }

  .news-body h3,
  .news-body p {
    min-height: 0;
  }

  .ranking-preview {
    align-items: flex-start;
    flex-direction: column;
  }

  .ranking-seal {
    margin-left: 12px;
  }

  .download-section {
    padding-block: 70px;
  }

  .download-panel {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 42px 25px 62px;
    text-align: center;
  }

  .download-emblem {
    width: 88px;
    margin: 8px auto;
  }

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

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

  .download-button {
    grid-column: auto;
    min-width: 0;
  }

  .community-inner {
    gap: 30px;
  }

  .footer-inner {
    align-items: center;
    flex-direction: column;
    padding-block: 34px;
    text-align: center;
  }

  .brand-footer {
    transform-origin: center;
  }

  .dialog {
    padding: 48px 25px 34px;
  }

  .dialog h2 {
    font-size: 29px;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
