@font-face {
  font-family: "Exo 2";
  src: url("assets/Exo2.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #101b23;
  --panel: #15252f;
  --text: #edf3f5;
  --muted: #a9bac3;
  --line: #344750;
  --accent: #9cdef3;
  font-family: "Exo 2", "Arial", sans-serif;
  color: var(--text);
  background: var(--ink);
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
::selection { background: var(--accent); color: var(--ink); }
img { display: block; width: 100%; height: auto; }
p { line-height: 1.65; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(1328px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; background: var(--text); color: var(--ink); padding: 16px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header { height: 104px; display: flex; justify-content: space-between; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 750; line-height: 1.05; font-size: 15px; letter-spacing: -.2px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 42px; border: 2px solid var(--accent); color: var(--accent); font-size: 30px; font-weight: 850; transform: skewY(-8deg); }
nav { display: flex; align-items: center; gap: 40px; font-size: 14px; }
nav a { padding-block: 12px; }
nav a:hover, .site-footer > a:last-child:hover { color: var(--accent); }
.nav-download { color: var(--accent); }
.nav-download span { padding-left: 20px; }

.hero { min-height: min(760px, calc(100svh - 104px)); position: relative; isolation: isolate; display: flex; align-items: center; padding: 64px 48px 116px; overflow: hidden; border-block: 1px solid var(--line); }
.hero-copy { position: relative; z-index: 2; width: 75%; }
.hero-genre { color: var(--accent); font-size: 15px; margin-bottom: 26px; }
h1 { font-size: clamp(64px, 7.5vw, 112px); font-weight: 650; line-height: .99; letter-spacing: -.055em; }
.hero-description { font-size: 19px; color: var(--muted); margin-top: 28px; margin-bottom: 32px; line-height: 1.6; }
.button { display: inline-flex; gap: 28px; align-items: center; justify-content: space-between; min-height: 56px; padding: 16px 24px; font-size: 15px; font-weight: 650; border: 1px solid transparent; transition: background .2s, border-color .2s, transform .2s; }
.button span { font-size: 23px; font-weight: 400; line-height: 1; }
.button:active { transform: translateY(1px); }
.primary { color: var(--ink); background: var(--accent); }
.primary:hover { background: #c5edfa; }
.secondary { border-color: #69828f; color: var(--text); background: transparent; }
.secondary:hover { border-color: var(--accent); background: #233a48; }
.hero-landscape { position: absolute; z-index: -2; inset: 0; background: url("assets/battle-close.jpg") 55% center / auto 150% no-repeat; opacity: .85; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #101b23d9 0%, #101b23b3 28%, #101b2326 77%), linear-gradient(0deg, var(--ink), transparent 40%); }

.intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; padding-block: 120px; }
h2 { font-size: clamp(34px, 3.6vw, 52px); font-weight: 550; line-height: 1.14; letter-spacing: -.035em; text-wrap: balance; }
.intro-body > p { color: var(--muted); font-size: 17px; max-width: 54ch; }
.intro-body > p + p { margin-top: 20px; }

.battlefield { padding-bottom: 120px; }
.battlefield-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 40px; }
.screenshots { display: grid; grid-template-columns: 1.45fr 1fr; gap: 28px; align-items: start; }
.screenshot-map { padding-top: 96px; }
.image-button { display: block; padding: 0; width: 100%; border: 1px solid var(--line); background: var(--panel); cursor: zoom-in; position: relative; overflow: hidden; }
.image-button img { transition: transform .4s; }
.image-button:hover img { transform: scale(1.025); }
.image-expand { position: absolute; right: 0; bottom: 0; background: var(--panel); padding: 9px 14px; font-size: 24px; }

.download-section { background: var(--panel); border-block: 1px solid var(--line); }
.download-inner { display: grid; grid-template-columns: .9fr 1.2fr; gap: 80px; padding-block: 88px; }
.download-heading > p { color: var(--muted); margin-top: 24px; font-size: 16px; }
.download-heading .install-size { margin-top: 16px; font-size: 14px; }
.download-options { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-content: start; }
.download-platform { min-width: 0; }
.platform-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.platform-heading h3 { font-weight: 550; font-size: 25px; }
.platform-heading span { font-size: 12px; color: var(--muted); }
.download-platform > p { margin-block: 24px; font-size: 13px; color: var(--muted); min-height: 64px; }
.download-platform .button { width: 100%; padding: 16px; gap: 12px; font-size: 13px; white-space: nowrap; }
.button[aria-disabled="true"] { background: #2a3e48; color: #afc0c9; border-color: #3f5662; cursor: not-allowed; pointer-events: none; }
.file-size { display: block; margin-top: 12px; color: var(--muted); font-size: 11px; }
.download-status { grid-column: 1 / -1; margin-top: 28px; color: var(--muted); font-size: 12px; }
.download-status:empty { display: none; }
noscript { grid-column: 1 / -1; margin-top: 20px; }

.faq { display: grid; grid-template-columns: .9fr 1.2fr; gap: 80px; padding-block: 104px; }
.faq h2 { font-size: 36px; }
details { border-bottom: 1px solid var(--line); padding-block: 22px; }
details:first-child { padding-top: 0; }
summary { display: flex; gap: 24px; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; line-height: 1.5; font-size: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 25px; font-weight: 350; flex-shrink: 0; }
details[open] summary::after { content: "−"; }
details p { margin-top: 16px; color: var(--muted); font-size: 14px; max-width: 62ch; }
.site-footer { padding-block: 36px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer .brand { font-size: 12px; }
.site-footer .brand-mark { width: 30px; height: 32px; font-size: 22px; }
.site-footer > a:last-child { font-size: 12px; color: var(--muted); }
.site-footer > a:last-child span { margin-left: 20px; }

dialog { border: 1px solid var(--line); background: var(--ink); padding: 52px 12px 12px; width: min(1600px, 96vw); max-height: 95dvh; }
dialog::backdrop { background: #050c12e8; }
dialog img { width: auto; max-width: 100%; max-height: calc(95dvh - 80px); margin: auto; object-fit: contain; }
.dialog-close { position: absolute; right: 16px; top: 8px; border: 0; background: transparent; cursor: pointer; min-height: 36px; font-size: 14px; }
.dialog-close span { font-size: 23px; margin-left: 12px; }
body:has(dialog[open]) { overflow: hidden; }

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .intro { gap: 40px; }
  .download-inner, .faq { grid-template-columns: .85fr 1.2fr; gap: 40px; }
  .download-options { column-gap: 18px; }
  .download-platform .button { font-size: 12px; padding: 14px 12px; }
  .platform-heading { display: block; }
  .platform-heading span { display: block; margin-top: 6px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { height: 84px; }
  .brand { font-size: 12px; gap: 10px; }
  .brand-mark { width: 30px; height: 34px; font-size: 25px; }
  nav { gap: 18px; font-size: 12px; }
  nav > a:not(.nav-download) { display: none; }
  .nav-download span { padding-left: 8px; }
  .hero { min-height: 650px; padding: 72px 24px 112px; align-items: start; }
  .hero-copy { width: 100%; }
  .hero-genre { font-size: 12px; margin-bottom: 28px; }
  h1 { font-size: clamp(54px, 11.4vw, 84px); }
  .hero-description { font-size: 17px; margin-top: 24px; }
  .hero-landscape { inset: 0; opacity: .65; background-position: 65% center; background-size: auto 115%; }
  .hero::after { background: linear-gradient(90deg, #101b23ed, #101b2350), linear-gradient(0deg, var(--ink), transparent 65%); }
  .intro { grid-template-columns: 1fr; padding-block: 72px; gap: 32px; }
  h2 { font-size: clamp(30px, 6.8vw, 44px); }
  .intro-body > p { font-size: 16px; }
  .battlefield { padding-bottom: 72px; }
  .battlefield-heading { display: block; margin-bottom: 28px; }
  .screenshots { grid-template-columns: 1fr; gap: 32px; }
  .screenshot-map { padding-top: 0; }
  .download-inner, .faq { grid-template-columns: 1fr; padding-block: 64px; gap: 40px; }
  .download-options { gap: 32px 20px; }
  .download-platform > p { margin-block: 18px; min-height: 66px; }
  .platform-heading h3 { font-size: 23px; }
  .download-platform .button { font-size: 12px; }
  .download-platform .button span { font-size: 18px; }
  .download-status { margin-top: 0; }
  .faq h2 { font-size: 30px; }
  .site-footer { flex-wrap: wrap; padding-block: 28px; }
}

@media (max-width: 420px) {
  .download-options { grid-template-columns: 1fr; }
  .platform-heading { display: flex; }
  .platform-heading span { margin-top: 0; }
  .download-platform > p { min-height: 0; }
  .download-platform .button { font-size: 14px; padding-inline: 20px; }
  .file-size { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
