:root {
  color-scheme: dark;
  --ink: #0b0d0c;
  --ink-soft: #111410;
  --surface: #171a16;
  --surface-raised: #1d211c;
  --paper: #e9e4d8;
  --paper-soft: #d0c9bb;
  --text: #f3f0e8;
  --muted: #aaa99f;
  --line: rgba(233, 228, 216, 0.16);
  --line-strong: rgba(211, 167, 76, 0.42);
  --gold: #d3a74c;
  --gold-light: #f0ce7b;
  --crimson: #a64337;
  --teal: #43aa8b;
  --amber: #d8a03f;
  --danger: #cf5a4c;
  --header-height: 74px;
  --content: 1180px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

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

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

h1,
h2,
h3,
.brand-name,
.display-type {
  margin-top: 0;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  line-height: 1.12;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
}

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

.container {
  width: min(var(--content), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-title {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-intro {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-weight: 800;
}

.text-link::after {
  content: "\2192";
  font-size: 1.1em;
}

.text-link:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--gold-light);
  background: var(--gold);
  color: #171108;
}

.button-primary:hover {
  background: var(--gold-light);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(11, 13, 12, 0.54);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--gold);
  background: rgba(11, 13, 12, 0.82);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 12, 0.94);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(var(--content), calc(100% - 40px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(240, 206, 123, 0.58);
  border-radius: 7px;
}

.brand-name {
  margin: 0;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1;
}

.brand-name strong {
  color: var(--gold-light);
  font-weight: inherit;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.primary-nav > a:not(.nav-download) {
  position: relative;
  color: var(--paper-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.primary-nav > a:not(.nav-download)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.primary-nav > a:hover,
.primary-nav > a[aria-current="page"] {
  color: var(--text);
}

.primary-nav > a:hover::after,
.primary-nav > a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-download {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 15px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--gold);
  color: #171108;
  font-size: 0.86rem;
  font-weight: 800;
}

.nav-download:hover {
  background: var(--gold-light);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  width: 20px;
  height: 2px;
  display: block;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(590px, calc(100svh - 108px), 760px);
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background-color: #15211c;
  background-image: url("../img/screens/gameplay-9.webp");
  background-position: 62% 50%;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(7, 10, 8, 0.52);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 38% 0 0;
  z-index: -1;
  background: rgba(6, 8, 7, 0.48);
  clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%);
}

.hero-content {
  width: min(var(--content), calc(100% - 40px));
  margin-inline: auto;
  padding: 72px 0 78px;
}

.hero-copy {
  min-width: 0;
  max-width: 670px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 38px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  max-width: 660px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: clamp(3.45rem, 6vw, 6rem);
  line-height: 0.92;
  white-space: nowrap;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.6);
}

.hero h1 span {
  color: var(--gold-light);
}

.hero-tagline {
  margin: 0 0 14px;
  color: var(--paper);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  font-weight: 600;
}

.hero-lead {
  max-width: 590px;
  margin: 0;
  color: #e1ded5;
  font-size: clamp(1rem, 1.7vw, 1.14rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 27px;
  flex-wrap: wrap;
}

.play-badge {
  display: inline-block;
  border-radius: 6px;
  transition: transform 160ms ease, filter 160ms ease;
}

.play-badge img {
  width: 206px;
  height: auto;
}

.play-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px 24px;
  margin-top: 25px;
  flex-wrap: wrap;
  color: #d3d0c8;
  font-size: 0.85rem;
}

.server-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 4px;
  background: rgba(9, 11, 9, 0.62);
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(170, 169, 159, 0.14);
}

[data-server-state="online"] .status-dot {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(67, 170, 139, 0.17);
}

[data-server-state="maintenance"] .status-dot {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(216, 160, 63, 0.17);
}

[data-server-state="offline"] .status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(207, 90, 76, 0.17);
}

/* Realm status */
.realm-strip {
  position: relative;
  z-index: 2;
  background: var(--paper);
  color: #171814;
}

.realm-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(120px, 0.7fr)) auto;
  align-items: stretch;
}

.realm-heading,
.realm-stat,
.realm-action {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 24px;
  border-right: 1px solid rgba(23, 24, 20, 0.16);
}

.realm-heading {
  padding-left: 0;
}

.realm-heading span,
.realm-stat span {
  color: #68675f;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.realm-heading strong {
  margin-top: 3px;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.1rem;
}

.realm-stat strong {
  margin-top: 3px;
  color: #171814;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1;
}

.realm-stat .online-number {
  color: #197a60;
}

.realm-action {
  align-items: flex-end;
  border-right: 0;
  padding-right: 0;
}

.realm-action .button {
  min-width: 148px;
  border-color: #171814;
  background: #171814;
  color: var(--paper);
}

.realm-action .button:hover {
  border-color: var(--crimson);
  background: var(--crimson);
}

/* Editorial game sections */
.game-intro {
  padding: 110px 0 86px;
  background: var(--ink);
}

.intro-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: end;
  gap: 80px;
}

.intro-layout .section-title {
  margin-bottom: 0;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 62px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.pillar {
  min-height: 210px;
  padding: 30px;
  background: var(--ink);
}

.pillar-index {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-light);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.pillar h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.feature-band {
  overflow: hidden;
  background: var(--surface);
}

.feature-band.alt {
  background: var(--paper);
  color: #171814;
}

.feature-layout {
  min-height: 590px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: stretch;
}

.feature-band.reverse .feature-media {
  order: 2;
}

.feature-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 94px);
}

.feature-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.feature-copy > p {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.feature-band.alt .feature-copy > p {
  color: #626158;
}

.feature-points {
  display: grid;
  gap: 13px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-points li {
  position: relative;
  padding-left: 24px;
  color: var(--paper-soft);
  font-weight: 700;
}

.feature-band.alt .feature-points li {
  color: #35352f;
}

.feature-points li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 10px;
  height: 2px;
  background: var(--gold);
}

/* Gallery */
.gallery-section {
  padding: 110px 0;
  background: var(--ink-soft);
}

.gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.gallery-head .section-title {
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-auto-rows: minmax(205px, 24vw);
  gap: 10px;
}

.gallery-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  cursor: zoom-in;
}

.gallery-item:first-child {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.gallery-item:first-child img {
  object-position: 55% center;
}

.gallery-item:hover img {
  transform: scale(1.025);
  filter: brightness(1.07);
}

.gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 30px 16px 13px;
  background: rgba(7, 9, 8, 0.76);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
}

.gallery-dialog {
  width: min(1120px, calc(100% - 30px));
  max-height: calc(100svh - 30px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #050605;
  color: var(--text);
  box-shadow: var(--shadow);
}

.gallery-dialog::backdrop {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(5px);
}

.gallery-dialog figure {
  margin: 0;
}

.gallery-dialog img {
  width: 100%;
  max-height: calc(100svh - 95px);
  object-fit: contain;
}

.gallery-dialog figcaption {
  padding: 14px 60px 16px 18px;
  color: var(--paper-soft);
  font-size: 0.9rem;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 4px;
  background: rgba(5, 6, 5, 0.82);
  color: var(--text);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.dialog-close:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* Final CTA */
.download-section {
  position: relative;
  overflow: hidden;
  padding: 94px 0;
  background-color: #26211b;
  background-image: url("../img/screens/gameplay-1.webp");
  background-position: center 42%;
  background-size: cover;
  isolation: isolate;
}

.download-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 10, 8, 0.78);
}

.download-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.download-copy {
  max-width: 680px;
}

.download-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.download-copy p {
  margin: 0;
  color: #d4d1c8;
}

.store-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #080a08;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 70px;
  padding: 64px 0 42px;
}

.footer-brand .brand {
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-group strong {
  display: block;
  margin-bottom: 14px;
  color: var(--paper);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.footer-group nav {
  display: grid;
  gap: 8px;
}

.footer-group a {
  width: fit-content;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.footer-bottom {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: #85867f;
  font-size: 0.78rem;
}

/* Internal page hero */
.page-hero {
  position: relative;
  min-height: 340px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background-color: #1b211c;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 9, 8, 0.7);
}

.page-hero-content {
  padding: 78px 0 52px;
}

.page-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.page-hero p {
  max-width: 660px;
  margin: 0;
  color: #d0cec6;
}

.page-hero-ranking {
  background-image: url("../img/screens/gameplay-1.webp");
  background-position: center 47%;
}

.page-hero-news {
  background-image: url("../img/screens/gameplay-4.webp");
  background-position: center 26%;
}

/* News */
.news-main {
  padding: 84px 0 110px;
}

.news-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.news-entry {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 46px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.news-date {
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.news-entry h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.news-entry p {
  max-width: 750px;
  margin: 0 0 12px;
  color: var(--muted);
}

.news-entry p:last-child {
  margin-bottom: 0;
}

.news-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--paper-soft);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* Legal and error pages */
.legal-body {
  background: #121310;
}

.legal-main {
  width: min(880px, calc(100% - 40px));
  margin: 56px auto 90px;
  overflow: hidden;
  border: 1px solid rgba(23, 24, 20, 0.12);
  border-radius: 6px;
  background: var(--paper);
  color: #24241f;
  box-shadow: var(--shadow);
}

.legal-heading {
  padding: 50px clamp(24px, 7vw, 70px) 34px;
  border-bottom: 1px solid rgba(23, 24, 20, 0.14);
}

.legal-heading h1 {
  margin-bottom: 10px;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
}

.legal-heading p {
  margin: 0;
  color: #69675f;
}

.legal-content {
  padding: 42px clamp(24px, 7vw, 70px) 62px;
}

.legal-content h2 {
  margin: 34px 0 9px;
  color: #26251f;
  font-size: 1.25rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: #55544d;
}

.legal-content a {
  color: #7c5421;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content ul {
  padding-left: 22px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--gold-light);
  font-weight: 800;
}

.error-page {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  place-items: center;
  padding: 60px 20px;
  background-color: #171b16;
  background-image: url("../img/screens/gameplay-1.webp");
  background-position: center;
  background-size: cover;
  isolation: isolate;
  text-align: center;
}

.error-page::before {
  content: "";
  position: absolute;
  inset: var(--header-height) 0 0;
  z-index: -1;
  background: rgba(5, 7, 6, 0.82);
}

.error-content {
  max-width: 660px;
}

.error-code {
  margin: 0 0 10px;
  color: var(--gold-light);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 700;
  line-height: 1;
}

.error-content h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.error-content p {
  margin: 0 0 26px;
  color: var(--paper-soft);
}

@media (max-width: 980px) {
  .realm-grid {
    grid-template-columns: 1.1fr repeat(3, 0.7fr);
  }

  .realm-action {
    grid-column: 1 / -1;
    min-height: auto;
    align-items: stretch;
    padding: 14px 0 18px;
    border-top: 1px solid rgba(23, 24, 20, 0.16);
  }

  .realm-action .button {
    width: 100%;
  }

  .intro-layout {
    gap: 45px;
  }

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

  .feature-band.reverse .feature-media {
    order: 0;
  }

  .feature-media {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .feature-copy {
    padding: 62px max(20px, calc((100vw - var(--content)) / 2));
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(210px, 38vw);
  }

  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 780px) {
  :root {
    --header-height: 66px;
  }

  .container,
  .nav-shell,
  .hero-content {
    width: min(100% - 28px, var(--content));
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .menu-toggle {
    display: grid;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    align-content: start;
    align-items: stretch;
    padding: 30px 20px;
    background: rgba(8, 10, 8, 0.98);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav > a:not(.nav-download) {
    display: flex;
    min-height: 54px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    font-family: "Cinzel", Georgia, serif;
    font-size: 1.08rem;
  }

  .primary-nav > a:not(.nav-download)::after {
    display: none;
  }

  .nav-download {
    min-height: 52px;
    justify-content: center;
    margin-top: 14px;
  }

  .hero {
    min-height: clamp(600px, calc(100svh - 76px), 730px);
    background-position: 67% center;
  }

  .hero::before {
    background: rgba(7, 10, 8, 0.62);
  }

  .hero::after {
    display: none;
  }

  .hero-content {
    padding: 62px 0 68px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 12.4vw, 4.7rem);
  }

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

  .realm-heading {
    grid-column: 1 / -1;
    min-height: 90px;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(23, 24, 20, 0.16);
  }

  .realm-stat {
    min-height: 96px;
    padding: 16px 0;
  }

  .realm-stat:nth-of-type(3) {
    border-right: 0;
    padding-left: 18px;
  }

  .realm-stat:nth-of-type(4) {
    display: none;
  }

  .intro-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .pillar {
    min-height: auto;
  }

  .gallery-head,
  .download-layout {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }

  .news-entry {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .hero-actions .play-badge {
    width: 100%;
  }

  .play-badge {
    display: flex;
    justify-content: flex-start;
  }

  .hero-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .game-intro,
  .gallery-section {
    padding: 76px 0;
  }

  .feature-copy {
    padding: 48px 20px 54px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(190px, 58vw);
  }

  .gallery-item:first-child {
    grid-column: auto;
  }

  .gallery-item:nth-child(n + 4) {
    display: none;
  }

  .download-section {
    padding: 72px 0;
  }

  .footer-main {
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .legal-main {
    width: min(100% - 20px, 880px);
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
