:root {
  color-scheme: light;
  --ink: #151719;
  --muted: #5f6873;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #ded9cf;
  --amber: #f4b43f;
  --coral: #e65f4c;
  --teal: #188f8a;
  --green: #3f8b54;
  --night: #030509;
  --night-2: #222735;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(21, 23, 25, 0.12);
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

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

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: calc(100svh - 66px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(40px, 7vw, 84px) clamp(18px, 6vw, 80px) clamp(34px, 5vw, 64px);
  background: var(--night);
  color: #fffaf0;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--amber);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin: 24px 0 0;
  color: #d7d2c6;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  align-items: center;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  background: var(--amber);
  color: #19140a;
}

.button.secondary {
  border-color: rgba(255, 250, 240, 0.26);
  color: #fffaf0;
}

.store-button {
  width: 450px;
  aspect-ratio: 4 / 1;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #030509;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  flex: 0 0 auto;
}

.store-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.hero-art {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
  align-items: stretch;
}

.tile {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.tile-large {
  grid-row: span 2;
  aspect-ratio: 1 / 2.06;
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 6vw, 80px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.92fr) minmax(280px, 1fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.game-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.game-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
  background: #ece7dc;
}

.game-card h3 {
  padding: 18px 18px 0;
}

.game-card p {
  min-height: 74px;
  margin: 8px 0 0;
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.45;
}

.more-games {
  margin-top: 18px;
}

.more-games summary {
  width: fit-content;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.more-games summary::-webkit-details-marker {
  display: none;
}

.more-games summary::after {
  content: "+";
  margin-left: 10px;
  color: var(--teal);
  font-size: 20px;
  line-height: 1;
}

.more-games[open] summary {
  margin-bottom: 18px;
}

.more-games[open] summary::after {
  content: "-";
}

.more-game-grid {
  animation: revealGames 180ms ease-out;
}

@keyframes revealGames {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-band {
  background: #e8f3ee;
}

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

.feature-grid > div {
  min-height: 172px;
  padding: 24px;
  border: 1px solid rgba(63, 139, 84, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.feature-grid p {
  margin: 10px 0 0;
  color: #425247;
  line-height: 1.5;
}

.download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--night-2);
  color: #fffaf0;
}

.download p:not(.eyebrow) {
  max-width: 580px;
  color: #d7d2c6;
  line-height: 1.55;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.store-badge {
  min-width: 148px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 250, 240, 0.26);
  border-radius: 8px;
  color: #fffaf0;
  font-weight: 900;
  text-decoration: none;
}

.store-badge:hover,
.store-button:hover {
  transform: translateY(-1px);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 24px clamp(18px, 6vw, 80px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer span {
  margin-right: auto;
  color: var(--ink);
  font-weight: 800;
}

.site-footer a {
  text-decoration: none;
}

.document-page {
  padding: clamp(32px, 6vw, 72px) 18px;
}

.document {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.document h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 0.98;
}

.document h2 {
  margin-top: 34px;
  font-size: 22px;
  line-height: 1.2;
}

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

.document a {
  color: #0b6f69;
  font-weight: 800;
}

.updated {
  color: var(--muted);
}

@media (max-width: 880px) {
  .hero,
  .intro,
  .download {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .download {
    display: grid;
  }

  .store-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-art {
    grid-template-columns: 1fr 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .store-button {
    width: min(100%, 300px);
    aspect-ratio: 4 / 1;
    height: auto;
  }

  .button {
    width: 100%;
  }

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

  .game-card p {
    min-height: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer span {
    margin-right: 0;
  }
}
