:root {
  --bg: #101418;
  --bg-2: #182027;
  --paper: #f7f9f4;
  --paper-2: #e8f1ed;
  --text: #f4f7fb;
  --text-dark: #182027;
  --muted: #b9c4cc;
  --muted-dark: #52606a;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(24, 32, 39, 0.16);
  --gold: #f5c542;
  --wood: #d39b4a;
  --teal: #45d6c1;
  --green: #80c65a;
  --red: #f05a4f;
  --blue: #4a8df0;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body.light-page {
  background: var(--paper);
  color: var(--text-dark);
}

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

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

p {
  line-height: 1.65;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 20, 24, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0b0f12;
  border: 1px solid var(--line);
  object-fit: cover;
}

.brand-copy {
  min-width: 0;
}

.brand-title {
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.86rem;
}

.nav-toggle {
  display: none;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.burger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  display: block;
  position: relative;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text);
}

.burger span::before {
  top: -7px;
}

.burger span::after {
  top: 7px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu a {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0d1217;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 20, 24, 0.94), rgba(16, 20, 24, 0.55) 52%, rgba(16, 20, 24, 0.28));
  z-index: 1;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(660px, 100%);
  padding: 76px 0;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: 4rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.25rem;
}

.hero-text {
  margin: 18px 0 28px;
  color: #dce6eb;
  font-size: 1.12rem;
  max-width: 620px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  color: #111416;
  background: var(--gold);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.btn:hover {
  filter: brightness(1.04);
}

.btn.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
  box-shadow: none;
}

.btn.dark {
  color: var(--text);
  background: var(--bg);
}

.band {
  padding: 72px 0;
}

.band.tight {
  padding: 44px 0;
}

.band.dark {
  background: var(--bg);
  color: var(--text);
}

.band.metal {
  background: var(--bg-2);
  color: var(--text);
}

.band.light {
  background: var(--paper);
  color: var(--text-dark);
}

.band.green {
  background: #dcefd7;
  color: var(--text-dark);
}

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

.section-head p {
  margin: 0;
  max-width: 560px;
  color: var(--muted-dark);
}

.dark .section-head p,
.metal .section-head p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
  gap: 32px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1fr);
}

.lead {
  font-size: 1.1rem;
  color: var(--muted-dark);
}

.dark .lead,
.metal .lead {
  color: var(--muted);
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow);
  background: #0b0f12;
}

.dark .media-frame,
.metal .media-frame {
  border-color: var(--line);
}

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

.game-logo {
  max-width: 520px;
  margin-bottom: 24px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.dark .tag,
.metal .tag {
  border-color: var(--line);
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.72);
  padding: 20px;
  box-shadow: 0 10px 24px rgba(24, 32, 39, 0.08);
}

.dark .card,
.metal .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  box-shadow: none;
}

.card p {
  margin: 10px 0 0;
  color: var(--muted-dark);
}

.dark .card p,
.metal .card p {
  color: var(--muted);
}

.accent-gold {
  border-top: 4px solid var(--gold);
}

.accent-teal {
  border-top: 4px solid var(--teal);
}

.accent-green {
  border-top: 4px solid var(--green);
}

.accent-red {
  border-top: 4px solid var(--red);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
}

.screenshot-grid .media-frame:first-child {
  grid-row: span 2;
}

.screenshot-grid img {
  aspect-ratio: 16 / 9;
}

.icon-list {
  display: grid;
  gap: 12px;
}

.help-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.72);
}

.dark .help-row,
.metal .help-row {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.help-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto;
}

.help-row p {
  margin: 6px 0 0;
  color: var(--muted-dark);
}

.dark .help-row p,
.metal .help-row p {
  color: var(--muted);
}

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

.setting {
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.dark .setting,
.metal .setting {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.setting p {
  margin: 8px 0 0;
  color: var(--muted-dark);
  font-size: 0.95rem;
}

.dark .setting p,
.metal .setting p {
  color: var(--muted);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.toc a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.toc a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.32);
}

.page-hero {
  padding: 82px 0 58px;
  background: var(--bg);
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.page-hero.with-image {
  min-height: 520px;
  display: flex;
  align-items: end;
}

.page-hero.with-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 20, 24, 0.95), rgba(16, 20, 24, 0.38));
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 860px;
}

.page-hero p {
  max-width: 760px;
  color: #dce6eb;
  font-size: 1.08rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer {
  padding: 34px 0 56px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-list {
  display: grid;
  gap: 8px;
  color: var(--muted-dark);
}

.dark .contact-list {
  color: var(--muted);
}

@media (max-width: 980px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }

  .grid.three,
  .grid.two,
  .settings-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .screenshot-grid .media-frame:first-child {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .brand-title {
    font-size: 0.94rem;
  }

  .brand-subtitle {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    padding: 10px 16px 16px;
    background: rgba(16, 20, 24, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .menu a {
    display: block;
    padding: 12px;
  }

  .nav-toggle:checked ~ .menu {
    display: block;
  }

  .hero {
    min-height: 72vh;
  }

  .hero::before {
    background: linear-gradient(0deg, rgba(16, 20, 24, 0.96), rgba(16, 20, 24, 0.5));
  }

  h1 {
    font-size: 2.45rem;
  }

  .hero-text,
  .page-hero p {
    font-size: 1rem;
  }

  .band {
    padding: 52px 0;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 12px;
  }

  .grid.three,
  .grid.two,
  .settings-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-grid .media-frame:first-child {
    grid-column: auto;
  }

  .help-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  .help-icon {
    width: 46px;
    height: 46px;
  }
}

html {
  scroll-padding-top: 142px;
}

.toc-sticky {
  position: sticky;
  top: 76px;
  z-index: 18;
  margin-top: 0;
  padding: 10px 0;
  background: rgba(16, 20, 24, 0.94);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.toc-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toc-sticky a {
  color: #dce6eb;
  background: rgba(255, 255, 255, 0.08);
}

.toc-sticky a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 760px) {
  .toc-sticky {
    overflow-x: auto;
  }

  .toc-inner {
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
  }

  .toc-sticky a {
    white-space: nowrap;
  }
}

.guide-title {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  max-width: 980px;
}

.guide-icon-large {
  width: 82px;
  height: 82px;
  object-fit: contain;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.setting-detail-hero {
  padding-bottom: 70px;
}

.setting-link {
  color: inherit;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.setting-link:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 197, 66, 0.64);
  background: rgba(255, 255, 255, 0.12);
}

.light .setting-link:hover,
.green .setting-link:hover {
  border-color: rgba(24, 32, 39, 0.32);
  background: rgba(255, 255, 255, 0.9);
}

.guide-actions {
  margin-top: 24px;
}

@media (max-width: 760px) {
  .guide-title {
    grid-template-columns: 1fr;
  }

  .guide-icon-large {
    width: 68px;
    height: 68px;
  }
}
.control-setting h3 {
  overflow-wrap: break-word;
  word-break: normal;
}

.controls-grid {
  align-items: stretch;
}
.filter-group + .filter-group {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.light .filter-group + .filter-group,
.green .filter-group + .filter-group {
  border-top-color: var(--line-dark);
}

.filter-group-head {
  max-width: 860px;
  margin-bottom: 14px;
}

.filter-group-head h3 {
  font-size: 1.35rem;
}

.filter-group-head p {
  margin: 8px 0 0;
  max-width: 820px;
  color: var(--muted);
}

.light .filter-group-head p,
.green .filter-group-head p {
  color: var(--muted-dark);
}
