:root {
  --page: #17191c;
  --surface: #1c2026;
  --surface-2: #20242a;
  --card: #282d35;
  --card-hover: #2d333d;
  --line: #383c44;
  --line-soft: rgba(141, 151, 166, 0.16);
  --text: #ffffff;
  --muted: #8d97a6;
  --muted-2: #a9b2bf;
  --accent: #ff1469;
  --green: #12d782;
  --font:
    "Roboto Flex", Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: transparent;
  font-family: var(--font);
  font-size: 16px;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(23, 25, 28, 0.06), rgba(23, 25, 28, 0.42) 620px, #17191c 1120px),
    rgba(23, 25, 28, 0.12);
  pointer-events: none;
}

.page-video {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  pointer-events: none;
}

button,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: transparent;
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1408px, calc(100% - 64px));
  min-height: 88px;
  margin: 0 auto;
  gap: 24px;
}

.game-logo {
  position: relative;
  width: max-content;
}

.game-logo-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px 0 0;
  color: var(--muted-2);
  background: transparent;
  cursor: pointer;
}

.game-logo-button:hover,
.game-logo.is-open .game-logo-button {
  color: #fff;
}

.game-logo-button img {
  display: block;
  width: 52px;
  height: 52px;
}

.game-logo-button span {
  font-size: 18px;
  font-variation-settings:
    "wght" 760,
    "wdth" 118,
    "opsz" 18;
  font-weight: 760;
}

.game-arrow {
  color: var(--muted);
  font-size: 14px;
}

.game-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: none;
  min-width: 236px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(28, 32, 38, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.game-logo.is-open .game-menu {
  display: block;
}

.game-menu-item {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 8px 12px;
  color: var(--muted-2);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.game-menu-item:hover,
.game-menu-item.is-active {
  color: #fff;
  background: var(--card);
}

.game-menu-item.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.game-menu-item.is-disabled:hover {
  color: var(--muted-2);
  background: transparent;
}

.game-menu-item img {
  display: block;
  width: 24px;
  height: 24px;
}

.game-menu-item span {
  font-size: 14px;
  font-variation-settings:
    "wght" 680,
    "wdth" 112,
    "opsz" 14;
  font-weight: 680;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.site-nav a {
  color: var(--muted-2);
  font-size: 14px;
  font-variation-settings:
    "wght" 760,
    "wdth" 128,
    "opsz" 14;
  font-weight: 760;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
}

.header-side {
  display: flex;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 24px;
  color: #fff;
  font-size: 16px;
  font-variation-settings:
    "wght" 760,
    "wdth" 118,
    "opsz" 14;
  font-weight: 760;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
}

.button-alt {
  background: var(--surface-2);
}

.lang-switch {
  position: relative;
  width: max-content;
}

.lang-selected,
.lang-menu button {
  display: inline-flex;
  align-items: center;
  border: 0;
  color: var(--muted);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 14px;
  font-variation-settings:
    "wght" 620,
    "wdth" 112,
    "opsz" 14;
}

.lang-selected {
  min-height: 32px;
  gap: 8px;
  border-radius: 8px;
  padding: 8px;
}

.lang-selected:hover,
.lang-switch.is-open .lang-selected {
  color: #fff;
}

.lang-selected img,
.lang-menu img {
  display: block;
  width: 16px;
  height: 16px;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  min-width: 148px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
}

.lang-menu-top {
  top: auto;
  bottom: calc(100% + 8px);
}

.lang-switch.is-open .lang-menu {
  display: block;
}

.lang-menu button {
  width: 100%;
  min-height: 36px;
  gap: 8px;
  padding: 8px 10px;
  text-align: left;
}

.lang-menu button:hover,
.lang-menu button.is-active {
  color: #fff;
  background: var(--card);
}

.page {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.release-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  min-height: 280px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 14px;
  font-variation-settings:
    "wght" 780,
    "wdth" 130,
    "opsz" 14;
  font-weight: 780;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.98;
  font-variation-settings:
    "wght" 850,
    "wdth" 130,
    "opsz" 32;
  font-weight: 850;
}

.release-copy > p:last-child {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 18px;
  line-height: 1.45;
  font-variation-settings:
    "wght" 420,
    "wdth" 106,
    "opsz" 18;
}

.release-summary span,
.side-title {
  color: var(--muted);
  font-size: 12px;
  font-variation-settings:
    "wght" 780,
    "wdth" 130,
    "opsz" 14;
  font-weight: 780;
  text-transform: uppercase;
}

select {
  width: 100%;
  height: 43px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #fff;
  outline: 1px solid transparent;
  background: var(--surface-2);
}

select:focus {
  outline-color: var(--accent);
}

.release-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.release-summary div,
.version-list,
.patch-section,
.empty-state {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(28, 32, 38, 0.9);
}

.release-summary div {
  padding: 16px;
}

.release-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  font-variation-settings:
    "wght" 760,
    "wdth" 118,
    "opsz" 22;
}

.content-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.version-list {
  position: sticky;
  top: 112px;
  padding: 18px;
}

.side-title {
  margin-bottom: 12px;
}

.version-button {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  min-height: 54px;
  align-items: center;
  column-gap: 18px;
  row-gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--muted-2);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.version-button + .version-button {
  margin-top: 6px;
}

.version-button:hover {
  background: var(--surface-2);
}

.version-button.is-active {
  color: #fff;
  background: var(--card);
}

.version-name {
  min-width: 0;
  white-space: nowrap;
  font-size: 16px;
  line-height: 1.12;
  font-variation-settings:
    "wght" 760,
    "wdth" 120,
    "opsz" 16;
  font-weight: 760;
}

.version-date {
  justify-self: end;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.version-badge {
  grid-column: 1 / -1;
  margin-top: 2px;
  width: max-content;
  border: 1px solid color-mix(in srgb, var(--accent) 46%, transparent);
  border-radius: 999px;
  padding: 3px 8px;
  color: #fff;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow:
    0 0 12px color-mix(in srgb, var(--accent) 50%, transparent),
    0 0 28px color-mix(in srgb, var(--accent) 28%, transparent);
  font-size: 10px;
  line-height: 1;
  font-variation-settings:
    "wght" 820,
    "wdth" 128,
    "opsz" 10;
  font-weight: 820;
  text-transform: uppercase;
}

.patch-list {
  display: grid;
  gap: 20px;
}

.patch-section {
  overflow: hidden;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--card);
}

.section-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  font-variation-settings:
    "wght" 800,
    "wdth" 130,
    "opsz" 24;
  font-weight: 800;
  text-transform: uppercase;
}

.section-header span {
  color: var(--muted);
  font-size: 13px;
}

.change-group {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  background: rgba(40, 45, 53, 0.66);
}

.change-group + .change-group {
  border-top: 1px solid var(--line-soft);
}

.accent-bar {
  background: var(--accent);
}

.group-body {
  padding: 18px 20px;
}

.group-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.group-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: var(--accent);
  background: var(--surface-2);
  font-size: 14px;
  font-variation-settings:
    "wght" 780,
    "wdth" 130,
    "opsz" 14;
  font-weight: 780;
  overflow: hidden;
}

.group-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-variation-settings:
    "wght" 720,
    "wdth" 116,
    "opsz" 18;
  font-weight: 720;
}

.group-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.change-list {
  margin: 14px 0 0;
  padding-left: 62px;
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1.55;
}

.change-list li {
  margin: 6px 0;
  padding-left: 2px;
}

.change-list li::marker {
  color: var(--muted);
}

.change-list code,
.group-note code {
  border-radius: 4px;
  padding: 1px 5px;
  color: #fff;
  background: var(--surface-2);
  font-family: "Roboto Flex", monospace;
  font-size: 0.95em;
}

.change-list strong,
.group-note strong {
  color: #fff;
}

.change-list a,
.group-note a {
  color: var(--accent);
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(56, 60, 68, 0.72);
  padding: 0 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1408px, calc(100% - 64px));
  min-height: 72px;
  margin: 0 auto;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-variation-settings:
    "wght" 560,
    "wdth" 112,
    "opsz" 14;
}

.footer-product {
  color: #fff;
  font-variation-settings:
    "wght" 760,
    "wdth" 120,
    "opsz" 14;
  font-weight: 760;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-language .lang-selected {
  width: 48px;
  justify-content: center;
}

@media (max-width: 900px) {
  .header-inner,
  .release-head,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: center;
  }

  .header-side {
    justify-content: flex-start;
  }

  .version-list {
    position: static;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .page,
  .footer-inner {
    width: min(100% - 28px, 1200px);
  }

  .header-inner {
    min-height: 76px;
  }

  .game-logo-button img {
    width: 44px;
    height: 44px;
  }

  .game-logo-button span {
    font-size: 16px;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .page {
    padding-top: 40px;
  }

  .release-head {
    min-height: 220px;
  }

  .release-summary {
    grid-template-columns: 1fr;
  }

  .change-list {
    padding-left: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
