:root {
  color-scheme: dark;
  --surface: #151614;
  --surface-raised: #20211e;
  --surface-strong: #2a2723;
  --surface-sunken: #11100e;
  --accent: #77c84d;
  --accent-pressed: #67b63e;
  --board-light: #d7a75f;
  --board-dark: #b47a35;
  --text-primary: #f3f3ee;
  --text-secondary: #c7c8c1;
  --text-muted: #989b93;
  --border: rgba(255, 255, 255, 0.1);
  --danger: #e06464;
  --content: 1120px;
  --reading: 760px;
  --radius: 8px;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--accent);
  color: #111;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
.page-section,
.signal-band,
.game-band,
.legal-main {
  width: min(100% - 40px, var(--content));
  margin-inline: auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 850;
  text-decoration: none;
}

.brand img {
  border-radius: var(--radius);
}

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header nav a,
.site-footer nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: min(720px, 78svh);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}

.hero-board,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-board {
  z-index: -2;
}

.hero-scrim {
  z-index: -1;
  background: rgba(17, 16, 14, 0.68);
}

.hero-content {
  width: min(100% - 40px, var(--content));
  min-height: min(720px, 78svh);
  margin-inline: auto;
  padding: 88px 0 72px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.98;
  font-weight: 900;
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--text-secondary);
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.35;
  font-weight: 600;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.button-primary {
  background: var(--accent);
  color: #13200d;
}

.button-primary:hover {
  background: var(--accent-pressed);
  color: #0d1609;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(21, 22, 20, 0.72);
  color: var(--text-primary);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-note {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
}

.signal-band div {
  padding: 24px;
  display: grid;
  gap: 4px;
}

.signal-band div + div {
  border-left: 1px solid var(--border);
}

.signal-band strong {
  font-size: 15px;
}

.signal-band span {
  color: var(--text-muted);
  font-size: 13px;
}

.page-section,
.game-band {
  padding-block: 88px;
}

.section-heading {
  max-width: 680px;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  font-weight: 850;
}

.section-heading > p:last-child,
.game-copy > p:last-child {
  margin: 18px 0 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 48px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  list-style: none;
}

.install-steps li {
  padding: 28px 28px 32px 0;
}

.install-steps li + li {
  padding-left: 28px;
  border-left: 1px solid var(--border);
}

.step-number,
.mode-list span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.install-steps h3 {
  margin: 28px 0 0;
  font-size: 19px;
}

.install-steps p {
  min-height: 76px;
  margin: 10px 0 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.install-steps a {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 800;
}

.game-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 80px;
  align-items: start;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mode-list {
  border-top: 1px solid var(--border);
}

.mode-list > div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 5px 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.mode-list span {
  grid-row: span 2;
}

.mode-list strong {
  font-size: 16px;
}

.mode-list small {
  color: var(--text-muted);
  font-size: 13px;
}

.support-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.site-footer {
  min-height: 132px;
  padding-block: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 32px;
  border-top: 1px solid var(--border);
}

.site-footer p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.brand-footer {
  font-size: 15px;
}

.legal-main {
  display: grid;
  grid-template-columns: 220px minmax(0, var(--reading));
  gap: 72px;
  justify-content: center;
  padding-block: 64px 96px;
}

.legal-nav {
  position: sticky;
  top: 32px;
  align-self: start;
  display: grid;
  gap: 4px;
}

.legal-nav a {
  min-height: 40px;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.legal-nav a[aria-current="page"] {
  color: var(--accent);
}

.legal-document h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
}

.legal-meta,
.legal-lead {
  color: var(--text-secondary);
}

.legal-meta {
  margin: 18px 0 0;
  font-size: 13px;
}

.legal-lead {
  margin: 28px 0 0;
  font-size: 18px;
}

.legal-document section {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.legal-document h2 {
  font-size: 23px;
  line-height: 1.25;
}

.legal-document p,
.legal-document li {
  color: var(--text-secondary);
}

.legal-document ul,
.legal-document ol {
  padding-left: 22px;
}

.legal-document li + li {
  margin-top: 10px;
}

.legal-document a {
  color: var(--accent);
}

.profile-fallback {
  min-height: calc(100svh - 205px);
  width: min(100% - 40px, 720px);
  margin-inline: auto;
  padding-block: 80px 96px;
}

.profile-fallback img {
  width: 76px;
  height: 76px;
  border-radius: var(--radius);
}

.profile-fallback h1 {
  margin-top: 28px;
  font-size: clamp(36px, 7vw, 58px);
}

.profile-fallback p {
  max-width: 600px;
  color: var(--text-secondary);
  font-size: 18px;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .page-section,
  .signal-band,
  .game-band,
  .legal-main {
    width: min(100% - 32px, var(--content));
  }

  .site-header nav {
    gap: 14px;
  }

  .site-header nav a:nth-child(2) {
    display: none;
  }

  .hero-content {
    width: min(100% - 32px, var(--content));
    min-height: 680px;
    padding-block: 64px;
  }

  .signal-band,
  .install-steps,
  .game-band,
  .legal-main {
    grid-template-columns: 1fr;
  }

  .signal-band div {
    padding-inline: 0;
  }

  .signal-band div + div {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .page-section,
  .game-band {
    padding-block: 64px;
  }

  .install-steps li,
  .install-steps li + li {
    padding: 24px 0;
    border-left: 0;
  }

  .install-steps li + li {
    border-top: 1px solid var(--border);
  }

  .install-steps p {
    min-height: 0;
  }

  .game-band {
    gap: 48px;
  }

  .support-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .legal-main {
    gap: 36px;
    padding-top: 40px;
  }

  .legal-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 430px) {
  .site-header nav a {
    display: none;
  }

  .hero-scrim {
    background: rgba(17, 16, 14, 0.78);
  }

  .hero-actions,
  .hero-actions .button,
  .support-section .button {
    width: 100%;
  }

  .site-footer nav {
    display: grid;
    justify-items: start;
  }
}

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

  .button {
    transition: none;
  }
}
