:root {
  color-scheme: dark;
  --page: #1c1c1e;
  --panel: #252528;
  --panel-soft: #303034;
  --paper: #f5f0e8;
  --muted: rgba(245, 240, 232, 0.72);
  --faint: rgba(245, 240, 232, 0.14);
  --accent: #e85d4e;
  --accent-strong: #ff755f;
  --ink: #151516;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.skip-link {
  left: 16px;
  position: fixed;
  top: -80px;
  z-index: 20;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  backdrop-filter: blur(16px);
  background: rgba(28, 28, 30, 0.84);
  border-bottom: 1px solid var(--faint);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner,
.section,
.footer-inner {
  margin: 0 auto;
  max-width: var(--max);
  padding-inline: 24px;
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
  height: 32px;
  width: 32px;
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 10px;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-color: var(--faint);
  color: var(--paper);
}

.hero {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 414px);
  margin: 0 auto;
  max-width: 1440px;
  min-height: calc(100dvh - 72px);
  padding: 56px 24px 40px;
}

.hero-copy {
  align-self: center;
  max-width: 720px;
}

.label {
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.98;
  max-width: 10ch;
}

.lead {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  margin: 24px 0 0;
  max-width: 680px;
}

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

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:active {
  transform: translateY(1px);
}

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

.button.secondary {
  border: 1px solid rgba(245, 240, 232, 0.34);
  color: var(--paper);
}

.game-shell {
  align-self: center;
  background: #0d0d10;
  border: 1px solid rgba(245, 240, 232, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  overflow: hidden;
  padding: 10px;
}

.game-toolbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 32px;
  padding: 0 6px 8px;
}

.game-toolbar span {
  color: var(--muted);
  font-size: 12px;
}

.game-frame-wrap {
  aspect-ratio: 414 / 896;
  background: #111;
  border-radius: 6px;
  max-height: 76dvh;
  overflow: hidden;
  width: min(100%, 414px);
}

.game-frame-wrap iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.section {
  padding-block: 72px;
}

.section.compact {
  padding-block: 48px;
}

.section h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  max-width: 760px;
}

.section-intro {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin: 18px 0 0;
  max-width: 760px;
}

.grid {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

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

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

.card {
  background: var(--panel);
  border: 1px solid var(--faint);
  border-radius: 8px;
  padding: 24px;
}

.card img {
  border-radius: 8px;
  display: block;
  height: auto;
  margin-bottom: 20px;
  width: 100%;
}

.card h3 {
  font-size: 21px;
  line-height: 1.2;
}

.card p,
.card li {
  color: var(--muted);
  line-height: 1.65;
}

.card ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.feature-band {
  background: var(--paper);
  color: var(--ink);
}

.feature-band .section-intro,
.feature-band .card p,
.feature-band .card li {
  color: rgba(21, 21, 22, 0.72);
}

.feature-band .card {
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(21, 21, 22, 0.12);
}

.faq details {
  background: var(--panel);
  border: 1px solid var(--faint);
  border-radius: 8px;
  padding: 20px 24px;
}

.faq details + details {
  margin-top: 12px;
}

.faq summary {
  cursor: pointer;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
}

.faq p {
  color: var(--muted);
  line-height: 1.7;
}

.legal-page {
  min-height: 100dvh;
}

.legal-hero {
  margin: 0 auto;
  max-width: 860px;
  padding: 80px 24px 48px;
}

.legal-hero h1 {
  max-width: none;
}

.legal-content {
  margin: 0 auto;
  max-width: 860px;
  padding: 0 24px 80px;
}

.legal-content section {
  border-top: 1px solid var(--faint);
  padding: 32px 0;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.75;
}

.site-footer {
  border-top: 1px solid var(--faint);
}

.footer-inner {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding-block: 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  h1 {
    max-width: 12ch;
  }

  .game-shell {
    justify-self: center;
    width: min(100%, 438px);
  }

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

@media (max-width: 640px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-block: 16px;
  }

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

  .hero {
    gap: 32px;
    padding-top: 32px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    justify-content: center;
    width: 100%;
  }

  .section {
    padding-block: 52px;
  }
}
