:root {
  color-scheme: dark;
  --bg: #080b10;
  --bg-2: #0d121a;
  --surface: rgba(18, 24, 33, 0.82);
  --surface-strong: rgba(24, 32, 43, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(226, 235, 245, 0.12);
  --line-strong: rgba(255, 194, 71, 0.48);
  --text: #f7fafc;
  --muted: #b8c3cf;
  --subtle: #8391a1;
  --yellow: #ffc247;
  --yellow-2: #f59f18;
  --cyan: #5ed7ff;
  --green: #84d982;
  --danger: #ff8a78;
  --radius: 8px;
  --shadow: 0 20px 52px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.22);
  --focus: 0 0 0 4px rgba(94, 215, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(150deg, rgba(94, 215, 255, 0.12), transparent 30%),
    linear-gradient(30deg, rgba(255, 194, 71, 0.12), transparent 34%),
    linear-gradient(180deg, #101722 0, var(--bg) 620px);
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  display: flex;
  flex-direction: column;
}

body::selection {
  color: #081018;
  background: var(--cyan);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

code {
  color: var(--yellow);
  font-size: 0.95em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 16, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
}

.nav,
.container {
  width: min(1184px, calc(100% - 48px));
  margin: 0 auto;
}

.nav {
  display: grid;
  grid-template-columns: auto minmax(260px, 430px) auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: var(--text);
  text-decoration: none;
  font-weight: 950;
  line-height: 1;
}

.brand span:first-child {
  font-size: 25px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:not(.button) {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:not(.button):hover {
  color: var(--text);
  background: var(--surface-soft);
}

.header-search {
  position: relative;
}

.header-search input,
.search-box input,
.admin-login input,
.admin-editor input,
.admin-editor textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(4, 8, 14, 0.62);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.header-search input {
  min-height: 42px;
  padding: 0 14px;
  font: 800 14px/1 Inter, "Segoe UI", Arial, sans-serif;
}

.search-box input {
  min-height: 56px;
  padding: 0 16px;
  font: 800 16px/1 Inter, "Segoe UI", Arial, sans-serif;
}

.header-search input:focus,
.search-box input:focus,
.admin-login input:focus,
.admin-editor input:focus,
.admin-editor textarea:focus {
  border-color: var(--cyan);
  background: rgba(4, 8, 14, 0.84);
  box-shadow: var(--focus);
}

.header-search-results {
  position: absolute;
  inset: calc(100% + 10px) 0 auto;
  display: none;
  max-height: 392px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(94, 215, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(10, 15, 22, 0.98);
  box-shadow: var(--shadow);
}

.header-search-results.is-open,
.search-results.is-open {
  display: grid;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 215, 255, 0.5);
  background: rgba(94, 215, 255, 0.1);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}

.button:active {
  transform: translateY(0);
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.button.primary {
  color: #081018;
  border-color: var(--yellow);
  background: linear-gradient(180deg, var(--yellow), var(--yellow-2));
}

.button.primary:hover {
  border-color: #ffe09a;
  background: linear-gradient(180deg, #ffd16b, #f5a623);
}

.button.large {
  min-height: 56px;
  padding: 0 24px;
  font-size: 16px;
}

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(328px, 392px);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow,
.kicker {
  margin: 0 0 8px;
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin: 8px 0 18px;
  font-size: 64px;
}

h2 {
  margin: 0 0 14px;
  font-size: 42px;
}

h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

p {
  color: var(--muted);
  margin: 0 0 14px;
}

.lead {
  max-width: 720px;
  color: #ced7e1;
  font-size: 20px;
  line-height: 1.7;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.card,
.article-card,
.callout,
.toc,
.featured-story {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.032)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.section {
  padding: 72px 0;
}

.section .section {
  padding: 48px 0 0;
}

.section.alt {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.026);
}

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

.section-head p {
  max-width: 560px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(304px, 0.85fr);
  gap: 16px;
  margin-top: 28px;
}

.featured-story {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(94, 215, 255, 0.18), transparent 42%),
    linear-gradient(45deg, rgba(255, 194, 71, 0.14), transparent 46%),
    linear-gradient(180deg, rgba(24, 32, 43, 0.96), rgba(9, 13, 19, 0.96));
}

.featured-story h2 {
  max-width: 680px;
}

.latest-feed {
  display: grid;
  gap: 12px;
}

.latest-item {
  display: grid;
  gap: 4px;
  min-height: 0;
  padding: 18px;
}

.latest-item h3 {
  font-size: 19px;
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.category-row a {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.category-row a:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 215, 255, 0.48);
  color: var(--text);
  background: rgba(94, 215, 255, 0.09);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline article {
  position: relative;
  min-height: 216px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.timeline span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border-radius: 999px;
  color: #081018;
  background: var(--cyan);
  font-weight: 950;
}

.trust-card {
  min-height: 190px;
}

.trust-card.good {
  border-color: rgba(132, 217, 130, 0.38);
}

.card,
.article-card,
.callout {
  padding: 24px;
}

.card,
.article-card {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.card:hover,
.article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(94, 215, 255, 0.36);
  background:
    linear-gradient(180deg, rgba(94, 215, 255, 0.08), rgba(255, 255, 255, 0.036)),
    var(--surface);
  box-shadow: var(--shadow);
}

.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #081018;
  background: var(--yellow);
  font-weight: 950;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 232px;
  text-decoration: none;
}

.article-card p {
  margin-bottom: auto;
}

.article-card span {
  color: var(--cyan);
  font-weight: 950;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.pill-list li {
  padding: 8px 12px;
  border: 1px solid rgba(94, 215, 255, 0.24);
  border-radius: 999px;
  color: #d7e2ec;
  background: rgba(4, 8, 14, 0.42);
  font-size: 13px;
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  padding: 32px 0 64px;
}

.breadcrumb {
  width: min(1184px, calc(100% - 48px));
  margin: 28px auto 0;
  color: var(--subtle);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

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

.breadcrumb span {
  color: var(--cyan);
}

.article-body {
  max-width: 790px;
}

.article-body h1 {
  font-size: 56px;
}

.article-body h2 {
  margin-top: 40px;
  font-size: 30px;
}

.article-body p {
  font-size: 17px;
  line-height: 1.78;
}

.download-strip {
  margin: 32px 0;
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(255, 194, 71, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(24, 32, 43, 0.96), rgba(10, 15, 22, 0.96));
}

.release-meta {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.release-meta div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.release-meta dt {
  color: var(--subtle);
  font-weight: 900;
}

.release-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 20px;
}

.toc a {
  display: block;
  margin: 9px 0;
  color: var(--muted);
  text-decoration: none;
}

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

.download-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.search-box {
  margin: 28px 0 0;
  padding: 20px;
}

.search-results {
  display: none;
  gap: 10px;
  margin-top: 12px;
}

.search-result,
.search-state {
  display: block;
  padding: 12px;
  border: 1px solid rgba(94, 215, 255, 0.18);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(4, 8, 14, 0.42);
  text-decoration: none;
}

.search-result {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.search-result:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 215, 255, 0.46);
  background: rgba(94, 215, 255, 0.08);
}

.search-result strong {
  display: block;
  color: var(--text);
}

.search-state {
  font-weight: 800;
}

.search-state.error {
  border-color: rgba(255, 138, 120, 0.42);
  color: #ffd6cf;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 40px 0 24px;
  color: var(--muted);
  background: rgba(8, 11, 16, 0.76);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 16px;
  text-transform: uppercase;
}

.footer-grid a:not(.brand) {
  display: grid;
  gap: 3px;
  margin: 0 0 12px;
  color: var(--muted);
  text-decoration: none;
}

.footer-grid a:not(.brand):hover {
  color: var(--text);
}

.footer-brand p {
  max-width: 360px;
  margin-top: 14px;
}

.footer-link span {
  color: var(--text);
  font-weight: 900;
}

.footer-link small {
  color: var(--subtle);
  font: 700 12px/1.35 "Segoe UI", Arial, sans-serif;
}

.footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
}

.admin-layout {
  display: grid;
  grid-template-columns: 328px minmax(0, 1fr);
  gap: 16px;
}

.admin-layout.locked,
.hidden {
  display: none;
}

.admin-login {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 360px) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.admin-login h2 {
  margin: 4px 0 8px;
}

.admin-login label,
.admin-editor label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.admin-login input,
.admin-login-panel input,
.admin-editor input,
.admin-editor textarea {
  padding: 12px;
  font: 700 14px/1.45 Inter, "Segoe UI", Arial, sans-serif;
}

.admin-error {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--danger);
  font-weight: 850;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-editor {
  display: grid;
  gap: 12px;
}

.file-button input {
  display: none;
}

.post-list {
  display: grid;
  gap: 8px;
}

.post-list-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(4, 8, 14, 0.42);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.post-list-item:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 215, 255, 0.38);
  background: rgba(94, 215, 255, 0.08);
}

.post-list-item span {
  color: var(--muted);
  font-size: 12px;
}

.post-list-item.active {
  border-color: var(--yellow);
}

.empty-state {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(4, 8, 14, 0.3);
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
    padding: 14px 0;
  }

  .nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-grid,
  .grid,
  .grid.two,
  .news-layout,
  .timeline,
  .admin-login,
  .admin-layout,
  .article-layout,
  .footer-grid,
  .download-box {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 56px 0;
  }

  .section-head {
    display: grid;
    align-items: start;
    gap: 12px;
  }

  .toc {
    position: static;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 36px;
  }
}

@media (max-width: 640px) {
  .nav,
  .container,
  .breadcrumb {
    width: min(100% - 24px, 1184px);
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  .section {
    padding: 56px 0;
  }

  .card,
  .article-card,
  .callout {
    padding: 18px;
  }

  .button.large,
  .button {
    width: 100%;
  }

  .hero-actions,
  .card-actions,
  .admin-actions {
    flex-direction: column;
  }

  .release-meta div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .lead {
    font-size: 17px;
  }

  .article-body h1 {
    font-size: 40px;
  }
}

/* Squad Fixer game-launcher landing theme */
:root {
  --bg: #050505;
  --bg-2: #090a0a;
  --surface: rgba(13, 15, 16, 0.86);
  --surface-strong: rgba(18, 20, 21, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 214, 0, 0.58);
  --text: #f5f5f0;
  --muted: #aaa9a2;
  --subtle: #70706b;
  --yellow: #ffd400;
  --yellow-2: #e3a900;
  --cyan: #ffd400;
  --green: #96d56f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  --focus: 0 0 0 4px rgba(255, 212, 0, 0.2);
}

body {
  background: #050505;
  font-family: "Segoe UI Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
}

body.download-bg {
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.84) 38%, rgba(5, 5, 5, 0.56) 68%, rgba(5, 5, 5, 0.78) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.18) 0, rgba(5, 5, 5, 0.74) 980px, #050505 1540px),
    url("assets/soldiers-standing-with-blue-sky-bg.jpg"),
    radial-gradient(circle at 72% 14%, rgba(255, 212, 0, 0.08), transparent 26%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.055), transparent 22%),
    linear-gradient(180deg, #090909 0, #030303 720px, #050505);
  background-size: 6px 6px, 6px 6px, auto, auto, cover, auto, auto, auto;
  background-position: left top, left top, left top, left top, center top, left top, left top, left top;
  background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
}

body.home-page {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 5, 5, 0.86) 0%, rgba(5, 5, 5, 0.7) 38%, rgba(5, 5, 5, 0.52) 68%, rgba(5, 5, 5, 0.78) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.12) 0, rgba(5, 5, 5, 0.58) 760px, #050505 1120px),
    url("assets/squad-us-army-wallpaper.webp"),
    radial-gradient(circle at 72% 14%, rgba(255, 212, 0, 0.08), transparent 26%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.055), transparent 22%),
    linear-gradient(180deg, #090909 0, #030303 720px, #050505);
  background-size: 6px 6px, 6px 6px, auto, auto, cover, auto, auto, auto;
  background-position: left top, left top, left top, left top, center top, left top, left top, left top;
  background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
}

body.home-page .game-hero,
body.home-page .how-section,
body.home-page .guides-section {
  border-top: 0;
  border-bottom: 0;
}

body.home-page .guides-section {
  background: #050505;
}

body.guides-page {
  background: #050505;
}

.site-header {
  background: rgba(4, 4, 4, 0.84);
}

.nav {
  min-height: 58px;
  grid-template-columns: auto 1fr;
}

.nav .header-search {
  display: none;
}

.brand {
  text-transform: uppercase;
  font-weight: 1000;
}

.brand span:first-child {
  font-size: 28px;
}

.nav-links {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  color: #d7d5ce;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.nav-links a:not(.button) {
  position: relative;
  padding: 0;
}

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

.nav-links a:not(.button):hover,
.nav-links a:not(.button).active {
  color: var(--yellow);
  background: transparent;
}

.nav-links a:not(.button):hover::after,
.nav-links a:not(.button).active::after {
  transform: scaleX(1);
}

.button {
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.button.primary {
  color: #090909;
  box-shadow: 0 18px 44px rgba(255, 212, 0, 0.16);
}

.game-hero {
  min-height: auto;
  padding: 76px 0 52px;
  isolation: isolate;
  background: transparent;
}

.game-hero-grid {
  grid-template-columns: minmax(0, 1fr);
  justify-content: start;
  gap: 0;
  align-items: start;
}

.game-hero-copy {
  max-width: 760px;
}

.game-hero-copy h1 {
  display: grid;
  gap: 8px;
  margin: 10px 0 18px;
  text-transform: uppercase;
  font-size: 92px;
  line-height: 0.9;
  font-weight: 1000;
  letter-spacing: 0;
}

.game-hero-copy h1 span {
  white-space: nowrap;
}

.game-hero-copy h1 span:first-child {
  color: #f6f6f1;
  text-shadow: 0 5px 0 rgba(255, 255, 255, 0.13), 0 22px 56px rgba(0, 0, 0, 0.62);
}

.game-hero-copy h1 span:last-child {
  color: var(--yellow);
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.38), 0 18px 42px rgba(255, 212, 0, 0.12);
}

.game-hero-copy .lead {
  max-width: 680px;
  color: #b9b8b2;
  font: 500 21px/1.45 "Segoe UI", Arial, sans-serif;
}

.ghost-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-right: 12px;
  border-block: 8px solid transparent;
  border-left: 12px solid currentColor;
}

.hero-feature-grid {
  margin-top: 42px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
}

.feature-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  min-height: 88px;
  padding: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 212, 0, 0.5);
  border-radius: 6px;
  color: var(--yellow);
  font-size: 16px;
  font-weight: 1000;
  line-height: 1;
}

.feature-card h3 {
  margin-bottom: 4px;
  text-transform: uppercase;
  font-size: 17px;
  letter-spacing: 0.25px;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
}

.section-head h2,
.download-strip h2,
.card h3,
.article-card h3 {
  text-transform: uppercase;
}

.how-section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.center-head {
  margin-bottom: 24px;
  text-align: left;
}

body.home-page .how-section .center-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.center-head h2 {
  text-transform: uppercase;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.steps-grid article {
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
  min-height: 100px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.steps-grid span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--yellow);
  border-radius: 4px;
  color: var(--yellow);
  font-weight: 1000;
}

.steps-grid strong {
  color: var(--text);
  text-transform: uppercase;
  font-size: 20px;
  align-self: center;
}

.steps-grid p {
  grid-column: 2;
  margin: -14px 0 0;
  font-size: 15px;
}

.wide-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
  padding: 24px 30px;
  border: 1px solid var(--yellow);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 212, 0, 0.08), rgba(255, 255, 255, 0.02));
}

.wide-cta h2 {
  margin-bottom: 4px;
  text-transform: uppercase;
}

.wide-cta p {
  margin: 0;
}

.guides-section {
  margin-top: 0;
  padding-top: 72px;
  border-top: 1px solid var(--line);
  background: transparent;
}

.guides-section .section-head {
  align-items: start;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.guides-section .section-head > div {
  display: grid;
  gap: 8px;
}

.guides-section .kicker,
.guides-section .section-head h2 {
  margin: 0;
}

.guides-section .grid {
  gap: 12px;
}

.guides-section .article-card {
  position: relative;
  min-height: 0;
  padding: 22px 22px 22px 28px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 212, 0, 0.08), transparent 40%),
    rgba(255, 255, 255, 0.025);
}

.guides-section .article-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 999px;
  background: var(--yellow);
}

.guides-section .article-card:hover {
  transform: translateX(4px);
  border-color: rgba(255, 212, 0, 0.36);
  background:
    linear-gradient(90deg, rgba(255, 212, 0, 0.13), transparent 48%),
    rgba(255, 255, 255, 0.035);
}

.guides-section .article-card h3 {
  font-size: 18px;
}

.guides-section .article-card span {
  margin-top: 18px;
  color: var(--yellow);
}

.site-footer {
  padding: 36px 0 22px;
  border-top: 1px solid rgba(255, 212, 0, 0.28);
  background:
    linear-gradient(90deg, rgba(255, 212, 0, 0.08), transparent 36%),
    rgba(4, 4, 4, 0.92);
}

/* Fix guide library and article reading experience */
.guides-shell {
  padding: 34px 0 76px;
}

.guides-container {
  display: grid;
  gap: 24px;
}

.guides-hero {
  display: block;
  padding: 28px 0 22px;
  border-bottom: 1px solid rgba(255, 212, 0, 0.26);
}

.guides-hero h1 {
  max-width: 820px;
  margin: 8px 0 16px;
  text-transform: uppercase;
  font-size: 72px;
  line-height: 0.95;
}

.guides-hero .lead {
  max-width: 760px;
}

.guide-hero-panel {
  display: none;
}

.guides-shell .category-row {
  position: sticky;
  top: 58px;
  z-index: 12;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(14px);
}

.guides-shell .category-row a {
  border-radius: 6px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  text-transform: uppercase;
  letter-spacing: 0.25px;
}

.guides-shell .category-row a:hover {
  border-color: rgba(255, 212, 0, 0.48);
  color: var(--yellow);
  background: rgba(255, 212, 0, 0.08);
}

.guides-shell > .container > .section {
  padding: 22px 0 0;
}

.guides-shell .section-head {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 212, 0, 0.18);
}

.guides-shell .section-head h2 {
  text-transform: uppercase;
  font-size: 30px;
}

.guides-shell .grid {
  gap: 12px;
}

.guides-shell .article-card {
  min-height: 168px;
  padding: 20px;
  border-radius: 6px;
  border-color: rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(90deg, rgba(255, 212, 0, 0.07), transparent 44%),
    rgba(255, 255, 255, 0.026);
}

.guides-shell .article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 212, 0, 0.42);
  background:
    linear-gradient(90deg, rgba(255, 212, 0, 0.13), transparent 52%),
    rgba(255, 255, 255, 0.036);
}

.guides-shell .article-card h3 {
  text-transform: uppercase;
  font-size: 18px;
}

.guides-shell .article-card span,
.featured-story span {
  display: inline-block;
  width: max-content;
  margin-top: 16px;
  color: var(--yellow);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.35px;
}

.article-layout {
  grid-template-columns: minmax(0, 760px) minmax(220px, 260px);
  gap: 56px;
  align-items: start;
  padding: 38px 0 76px;
}

.article-body {
  max-width: none;
  padding: 0;
  border-left: 0;
}

.article-body h1 {
  max-width: 880px;
  margin-bottom: 24px;
  text-transform: uppercase;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-body > p:first-of-type {
  max-width: 800px;
  color: #d0cec4;
  font-size: 20px;
  line-height: 1.62;
}

.article-body h2 {
  margin: 42px 0 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  font-size: 28px;
}

.article-body p {
  max-width: 760px;
  color: #bdbbb2;
  font-size: 17px;
  line-height: 1.76;
  overflow-wrap: anywhere;
}

.article-body code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-body .download-strip {
  max-width: 820px;
  margin: 28px 0 34px;
  border-color: rgba(255, 212, 0, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 212, 0, 0.1), transparent 54%),
    rgba(255, 255, 255, 0.04);
}

.article-body .download-strip h2,
.article-body .callout:not(.download-strip) h2 {
  margin: 0 0 12px;
  padding-top: 0;
  border-top: 0;
  font-size: 26px;
}

.article-body .callout:not(.download-strip) p {
  margin-bottom: 0;
}

.article-body .callout:not(.download-strip) {
  max-width: 820px;
  margin-top: 38px;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 212, 0, 0.24);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.toc {
  top: 86px;
  width: 100%;
  max-width: 260px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

.toc strong {
  display: block;
  margin-bottom: 14px;
  color: var(--yellow);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.35px;
}

.toc a {
  display: block;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 850;
}

.toc a:hover {
  color: var(--yellow);
}

.toc a.active {
  color: var(--yellow);
  border-color: rgba(255, 212, 0, 0.38);
}

.toc .button {
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  color: var(--yellow);
  border-color: rgba(255, 212, 0, 0.42);
  background: transparent;
  box-shadow: none;
}

.pill-list li {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.article-body .callout:not(.download-strip) .pill-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.pill-list a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 212, 0, 0.24);
  border-radius: 6px;
  background: rgba(255, 212, 0, 0.045);
  color: var(--text);
  text-decoration: none;
  font-weight: 850;
  line-height: 1.25;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.pill-list a:hover {
  border-color: rgba(255, 212, 0, 0.48);
  background: rgba(255, 212, 0, 0.09);
  color: var(--yellow);
}

.download-page {
  padding-top: 70px;
}

.download-page h1 {
  max-width: 900px;
  text-transform: uppercase;
  font-size: clamp(48px, 7vw, 74px);
  line-height: 0.95;
}

.download-page .lead {
  max-width: 880px;
  color: #d0cec4;
  font-size: 20px;
}

.download-page .download-strip {
  border-color: rgba(255, 212, 0, 0.42);
  background:
    linear-gradient(90deg, rgba(255, 212, 0, 0.12), transparent 56%),
    rgba(255, 255, 255, 0.045);
}

.download-page .card:hover {
  border-color: rgba(255, 212, 0, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 212, 0, 0.08), rgba(255, 255, 255, 0.036)),
    var(--surface-strong);
}

.download-page .grid {
  gap: 12px;
}

.download-page .card {
  position: relative;
  min-height: 190px;
  padding: 22px 22px 22px 28px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 212, 0, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.025);
}

.download-page .card::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: var(--yellow);
}

.download-page .card .num {
  width: auto;
  height: auto;
  margin-bottom: 18px;
  border-radius: 0;
  color: var(--yellow);
  background: transparent;
  font-size: 15px;
}

.download-page .card h3 {
  font-size: 20px;
}

@media (max-width: 980px) {
  .guides-hero,
  .guides-shell .news-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .guides-shell .category-row {
    position: static;
  }

  .guides-hero h1,
  .article-body h1 {
    font-size: 48px;
  }

  .article-body {
    padding-left: 0;
  }

  .toc {
    position: static;
    max-width: none;
    padding: 16px;
    border-top: 1px solid rgba(255, 212, 0, 0.28);
  }
}

@media (max-width: 640px) {
  .guides-shell {
    padding: 28px 0 56px;
  }

  .guides-hero {
    padding-top: 18px;
  }

  .guides-hero h1,
  .article-body h1 {
    font-size: 38px;
  }

  .guides-shell .featured-story {
    min-height: 340px;
    padding: 22px;
  }

  .guides-shell .featured-story h2 {
    font-size: 28px;
  }

  .article-layout {
    padding-top: 28px;
  }

  .article-body {
    padding-left: 0;
  }

  .article-body .callout:not(.download-strip) .pill-list {
    grid-template-columns: 1fr;
  }
}

.footer-grid {
  grid-template-columns: minmax(300px, 1.45fr) repeat(2, minmax(180px, 0.65fr));
  gap: 40px;
  align-items: start;
}

.footer-grid h3 {
  margin-bottom: 16px;
  color: var(--yellow);
  font-size: 14px;
  letter-spacing: 0.5px;
}

.footer-grid a:not(.brand) {
  position: relative;
  margin: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 160ms ease, border-color 160ms ease;
}

.footer-grid a:not(.brand) + a:not(.brand) {
  padding-top: 12px;
}

.footer-grid a:not(.brand):hover {
  color: var(--yellow);
  border-color: rgba(255, 212, 0, 0.36);
}

.footer-grid a:not(.brand):hover small {
  color: #c8c5b8;
}

.footer-link span {
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.25px;
}

.footer-link small {
  margin-top: 3px;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1180px) {
  .game-hero-grid,
  .feature-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .game-hero-copy h1 {
    font-size: 76px;
  }

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

@media (max-width: 700px) {
  .nav {
    grid-template-columns: 1fr;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 14px;
  }

  .wide-cta {
    grid-template-columns: 1fr;
  }

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

  .game-hero-copy h1 {
    font-size: 52px;
  }

  .steps-grid article {
    grid-template-columns: 38px 1fr;
  }
}

@media (max-width: 420px) {
  .game-hero-copy h1 {
    font-size: 38px;
  }
}

/* Admin control center */
.admin-page {
  background:
    radial-gradient(circle at 78% 0%, rgba(255, 212, 0, 0.12), transparent 26%),
    linear-gradient(180deg, #080808 0, #030303 100%);
}

.admin-shell {
  padding: 40px 0 64px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.admin-hero h1 {
  max-width: 760px;
  text-transform: uppercase;
  font-size: 64px;
}

.admin-status,
.admin-login-panel,
.admin-sidebar,
.admin-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(9, 10, 10, 0.88);
  box-shadow: var(--shadow-soft);
}

.admin-status {
  padding: 20px;
}

.admin-status span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 212, 0, 0.4);
  border-radius: 4px;
  color: var(--yellow);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 1000;
}

.admin-status strong {
  display: block;
  color: var(--text);
  text-transform: uppercase;
  font-size: 22px;
}

.admin-login-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px) auto;
  gap: 20px;
  align-items: end;
  padding: 24px;
  margin-bottom: 18px;
}

.admin-login-panel h2,
.admin-panel-head h2 {
  margin: 0;
  text-transform: uppercase;
  font-size: 28px;
}

.admin-login-panel label,
.admin-editor label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 1000;
}

.admin-layout {
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-sidebar,
.admin-editor {
  padding: 22px;
}

.admin-sidebar {
  position: sticky;
  top: 82px;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-actions-stack {
  display: grid;
  margin-bottom: 18px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-body-field,
.admin-output {
  margin-top: 14px;
}

.admin-editor input,
.admin-editor textarea,
.admin-login-panel input {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.34);
}

.admin-editor textarea {
  resize: vertical;
}

.post-list {
  max-height: 58vh;
  overflow: auto;
  padding-right: 4px;
}

.post-list-item {
  padding: 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.post-list-item.active {
  border-color: var(--yellow);
  background: rgba(255, 212, 0, 0.08);
}

.button.danger {
  border-color: rgba(255, 138, 120, 0.38);
  color: #ffd6cf;
}

.admin-footer {
  margin-top: 0;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .admin-hero,
  .admin-login-panel,
  .admin-layout,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-hero h1 {
    font-size: 48px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html::before {
    content: "";
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--yellow), #fff1a3);
    box-shadow: 0 0 18px rgba(255, 212, 0, 0.42);
    pointer-events: none;
  }

  html.page-leaving::before {
    transform: scaleX(1);
    transition: transform 180ms ease;
  }
}
