:root {
  color-scheme: dark;
  --bg: #111;
  --surface: #191919;
  --surface-raised: #202020;
  --text: #f5f5f5;
  --muted: #aaa;
  --quiet: #777;
  --line: #333;
  --accent: #4fd6c2;
  --warm: #ffd06a;
  --content: 1120px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

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

a {
  color: var(--text);
  text-decoration-color: #666;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.site-shell {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a {
  color: inherit;
  text-decoration: none;
}

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

main {
  min-height: 65vh;
}

.home {
  width: min(760px, 100%);
  padding: 80px 0 24px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.subtitle {
  margin-bottom: 56px;
  color: var(--muted);
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  line-height: 1.5;
}

.home-section {
  margin-top: 44px;
}

.section-label {
  margin-bottom: 16px;
  color: var(--quiet);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

p,
li {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.72;
}

.game-card {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

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

.game-card:hover {
  border-color: #666;
  transform: translateY(-2px);
}

.game-card img {
  width: 76px;
  height: 76px;
  border-radius: 17px;
}

.game-card h3 {
  margin: 0 0 5px;
  font-size: 1.25rem;
}

.game-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.arrow {
  color: var(--quiet);
  font-size: 1.35rem;
}

.game-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  align-items: center;
  gap: clamp(36px, 7vw, 88px);
  padding: clamp(64px, 10vw, 120px) 0 72px;
}

.game-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(3.4rem, 9vw, 7.2rem);
}

.lede {
  max-width: 660px;
  margin-bottom: 24px;
  color: #d6d6d6;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.55;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.availability::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warm);
  content: "";
}

.app-icon {
  width: min(100%, 380px);
  margin: 0 auto;
  border-radius: 25%;
  box-shadow: 0 32px 90px rgb(0 0 0 / 45%);
}

.feature-banner {
  overflow: hidden;
  border: 1px solid #3b3038;
  border-radius: 22px;
  background: #2a1c27;
}

.feature-banner img {
  width: 100%;
}

.feature-banner--dungeon {
  border-color: #513c32;
  background: #171210;
}

.feature-banner--hexward {
  border-color: #585240;
  background: #35372b;
}

.landscape-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 0 88px;
}

.landscape-shots img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 72px 0;
}

.feature {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.feature h2 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.story {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 7vw, 90px);
  padding: 56px 0 88px;
  border-top: 1px solid var(--line);
}

.story h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.story-copy p:last-child {
  margin-bottom: 0;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 440px));
  justify-content: center;
  gap: clamp(20px, 5vw, 56px);
  padding: 72px 0 96px;
  border-top: 1px solid var(--line);
}

.phone-shot {
  overflow: hidden;
  border: 1px solid #2f423a;
  border-radius: 28px;
  background: #0d261d;
  box-shadow: 0 30px 80px rgb(0 0 0 / 35%);
}

.game-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 28px 0 68px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.game-footer-links a {
  color: inherit;
}

.policy {
  width: min(760px, 100%);
  padding: 72px 0 96px;
}

.policy h1 {
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  line-height: 1;
}

.effective-date {
  margin-bottom: 56px;
  color: var(--muted);
}

.policy section {
  margin-top: 40px;
}

.policy h2 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.policy ul {
  padding-left: 1.4em;
}

.policy li + li {
  margin-top: 8px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  color: #666;
  font-size: 0.9rem;
}

.site-footer a {
  color: #888;
}

@media (max-width: 760px) {
  .site-header {
    padding: 22px 0;
  }

  .home {
    padding-top: 60px;
  }

  .game-hero,
  .story {
    grid-template-columns: 1fr;
  }

  .game-hero {
    padding-top: 60px;
  }

  .game-hero-copy {
    order: 2;
  }

  .app-icon {
    width: 210px;
  }

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

  .screenshots {
    gap: 14px;
  }

  .landscape-shots {
    grid-template-columns: 1fr;
  }

  .phone-shot {
    border-radius: 16px;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: min(var(--content), calc(100% - 28px));
  }

  .site-nav {
    gap: 15px;
    font-size: 0.88rem;
  }

  .game-card {
    grid-template-columns: 64px 1fr;
    gap: 15px;
  }

  .game-card img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .game-card .arrow {
    display: none;
  }
}

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

  .game-card {
    transition: none;
  }

  .game-card:hover {
    transform: none;
  }
}
