/* The game's own colours and fonts: Scripts/Client/UiStyle.cs */
:root {
  --gold: #c9a227;
  --gold-light: #f0d36a;
  --text: #d8d2c0;
  --muted: #a39e89;
  --panel: #0f100d;
  --bar: #1a1b17;
  --button: #23251f;
  --border: #4a4a3a;
  --reich: #c0452f;
  --coalition: #4a86c8;
  --soviet: #8a6ae0;
  --stencil: Stencil, "Stencil Std", Impact, "Arial Black", sans-serif;
  --body: Bahnschrift, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--panel); color: var(--text); font: 17px/1.6 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-light); }
h1, h2, h3, p, ul { margin: 0; }
h2, h3 { color: var(--gold-light); font-family: var(--stencil); font-weight: 400; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }
h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 18px; }
h3 { font-size: 24px; color: var(--text); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.btn { display: inline-block; padding: 13px 26px; background: var(--gold); border: 1px solid var(--gold); color: var(--panel); font: 19px/1.2 var(--stencil); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; transition: background .15s, color .15s; }
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-line { background: rgba(15, 16, 13, .7); color: var(--gold-light); }
.btn-line:hover { color: var(--panel); }
.btn-small { padding: 7px 14px; font-size: 15px; }

.nav { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 28px; padding: 10px clamp(16px, 4vw, 40px); background: var(--bar); border-bottom: 1px solid var(--border); }
.nav-name { color: var(--gold-light); font: 20px var(--stencil); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.nav nav { display: flex; gap: 22px; }
.nav nav a { color: var(--text); text-decoration: none; }
.nav nav a:hover { color: var(--gold-light); }
.nav-end { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.icon-link { display: flex; color: var(--text); }
.icon-link:hover { color: var(--gold-light); }
.icon-link svg { width: 24px; height: 24px; fill: currentColor; }
[data-social].soon { color: var(--muted); opacity: .55; cursor: default; }

.hero { position: relative; display: grid; min-height: min(78vh, 760px); overflow: hidden; background: var(--bar); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(15, 16, 13, .35), rgba(15, 16, 13, .25) 45%, var(--panel)); }
.hero-text { position: relative; z-index: 1; align-self: end; display: grid; justify-items: center; gap: 16px; width: 100%; padding: 56px 16px 40px; text-align: center; }
.logo { width: min(620px, 88vw); filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .75)); }
.tagline { color: #fff; font-size: clamp(19px, 2.6vw, 26px); text-shadow: 0 2px 8px #000; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.release { min-height: 1.6em; color: var(--text); font-size: 15px; text-shadow: 0 1px 4px #000; }

.section { max-width: 1160px; margin: 0 auto; padding: clamp(36px, 6vw, 64px) clamp(16px, 4vw, 40px); }
.intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); }
.intro p + p { margin-top: 14px; }
.features { display: grid; gap: 14px; padding: 0; list-style: none; }
.features li { padding-left: 14px; border-left: 3px solid var(--gold); color: var(--muted); }
.features b { display: block; color: var(--text); font-weight: 600; }

.key-features { padding-top: 0; }
.key-list { columns: 300px 3; column-gap: 40px; padding: 0; list-style: none; }
.key-list li { position: relative; break-inside: avoid; margin-bottom: 10px; padding-left: 20px; }
.key-list li::before { content: ""; position: absolute; left: 1px; top: .62em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

.factions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-top: 0; }
.faction { display: flex; flex-direction: column; background: var(--bar); border: 1px solid var(--border); border-top: 4px solid var(--reich); }
.faction.coalition { border-top-color: var(--coalition); }
.faction.soviet { border-top-color: var(--soviet); }
.faction img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.faction > div { display: grid; gap: 6px; padding: 18px 20px 22px; }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 0; }
.shots button { padding: 0; border: 1px solid var(--border); background: none; cursor: zoom-in; }
.shots button:hover { border-color: var(--gold); }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
#shot-view { max-width: 94vw; padding: 0; border: 1px solid var(--gold); background: var(--panel); }
#shot-view::backdrop { background: rgba(0, 0, 0, .85); }
#shot-view button { display: block; padding: 0; border: 0; background: none; cursor: zoom-out; }
#shot-view img { max-height: 90vh; width: auto; }

.news { max-width: 860px; padding-top: 0; }
.release-card { margin-bottom: 8px; background: var(--bar); border: 1px solid var(--border); }
.release-card[open] { border-color: var(--gold); }
.release-card summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 16px; cursor: pointer; list-style-position: inside; }
.release-number { color: var(--gold-light); font-size: 20px; font-weight: 600; }
.release-date { color: var(--muted); font-size: 15px; }
.release-new { padding: 0 8px; background: var(--gold); color: var(--panel); font-size: 13px; font-weight: 600; letter-spacing: .05em; }
.release-card ul { padding: 0 16px 16px 36px; }
.release-card li + li { margin-top: 4px; }
.link-button { margin-top: 8px; padding: 6px 0; border: 0; background: none; color: var(--gold-light); font: inherit; text-decoration: underline; cursor: pointer; }

.download { display: grid; justify-items: center; gap: 16px; max-width: none; background: var(--button); border-block: 1px solid var(--border); text-align: center; }
.download h2 { margin: 0; }
.download p { max-width: 640px; }

.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 18px clamp(16px, 4vw, 40px); background: var(--bar); font-size: 15px; }
.footer .muted { margin-left: auto; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { gap: 10px; }
  .nav nav { display: none; }
  .nav-name { font-size: 16px; white-space: normal; line-height: 1.1; }
  .intro, .factions { grid-template-columns: minmax(0, 1fr); }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 520px; }
  .footer .muted { margin-left: 0; width: 100%; }
}

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