/* THE WEBSITE'S SHARED STYLE: tokens, type, the top bar and the footer, used
   by every page (/, /about/, /roadmap/). The tokens are the game's own
   (src/ui/theme.js), repeated here because the site loads none of the game.
   Paths are absolute so a page in a folder finds them too. */
@font-face { font-family: Montserrat; font-weight: 500; font-display: swap; src: url("/fonts/Montserrat-500-normal.woff2") format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 600; font-display: swap; src: url("/fonts/Montserrat-600-normal.woff2") format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 700; font-display: swap; src: url("/fonts/Montserrat-700-normal.woff2") format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 900; font-display: swap; src: url("/fonts/Montserrat-900-normal.woff2") format("woff2"); }
:root {
  --bg: #ffffff; --bg-2: #f4f5f7; --line: #e4e7eb; --line-2: #d3d7dd;
  --fg: #15181d; --fg-2: #4a5059; --fg-3: #8a9099;
  --acc: #1f4fff; --acc-strong: #1438cc; --acc-soft: #e8edff; --acc-ink: #ffffff;
  --r: 14px; --r-lg: 20px;
  --shadow: 0 1px 2px rgba(13,15,18,.06), 0 8px 24px rgba(13,15,18,.06);
  --gutter: 24px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 500 16px/1.5 Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }

/* THE TOP BAR: the game's wordmark on the left (a copy of public/brand's,
   its empty margins trimmed), the pages and "Other games" on the right. */
.top.wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 32px;
}
.wordmark { display: block; flex: none; line-height: 0; }
.wordmark img { display: block; width: 200px; height: auto; }
.nav { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a, .more-btn { white-space: nowrap; }
.nav a, .more-btn {
  display: block; padding: 10px 16px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--fg-2); text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--bg-2); color: var(--fg); }
.nav a[aria-current="page"] { background: var(--acc-soft); color: var(--acc); }

/* "Other games": hover (or tap, or tab to it) opens a small card of the
   sister games. Neither is out yet, so they are plain text, not links. */
.more { position: relative; }
.more-btn {
  display: flex; align-items: center; gap: 6px;
  border: 0; background: none; font-family: inherit; cursor: default;
}
.more-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.more:hover .more-btn, .more:focus-within .more-btn { background: var(--bg-2); color: var(--fg); }
.more:hover .more-btn svg, .more:focus-within .more-btn svg { transform: rotate(180deg); }
.more-menu {
  position: absolute; right: 0; top: 100%; z-index: 10; min-width: 220px;
  margin: 0; padding: 8px; list-style: none;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}
/* A bridge over the gap under the button, so the card stays open while the
   pointer moves down onto it. */
.more-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.more-menu { margin-top: 8px; }
.more:hover .more-menu, .more:focus-within .more-menu {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.more-menu li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px; border-radius: 10px; cursor: default;
}
.more-menu b { font-size: 15px; font-weight: 600; color: var(--fg-3); white-space: nowrap; }
.more-menu span {
  padding: 3px 9px; border-radius: 999px; background: var(--bg-2);
  font-size: 12px; font-weight: 600; color: var(--fg-3); white-space: nowrap;
}

footer.wrap { padding-top: 72px; padding-bottom: 40px; text-align: center; font-size: 13px; color: var(--fg-3); }

/* A plain page (about, the roadmap). */
.page { max-width: 720px; padding-top: 72px; padding-bottom: 24px; }
.page h1 { margin: 0; font-weight: 700; font-size: clamp(28px, 4.4vw, 48px); line-height: 1.05; letter-spacing: -.03em; }   /* the same as the home page's */
.page .lede { margin: 20px 0 0; font-size: 18px; color: var(--fg-2); }
.page .note {
  margin-top: 40px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg-2); color: var(--fg-2);
}

/* Long-form text on the about page. */
.prose { margin-top: 48px; }
.prose h2 { margin: 48px 0 0; font-size: 24px; font-weight: 700; letter-spacing: -.015em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 14px 0 0; font-size: 17px; line-height: 1.7; color: var(--fg-2); }
.prose strong { color: var(--fg); font-weight: 600; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; border-left: 2px solid var(--line); }
.steps li { position: relative; margin: 0 0 22px; padding-left: 24px; }
.steps li::before {
  content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--acc);
}
.steps li:last-child::before { background: var(--acc); }
.steps b { display: block; font-size: 16px; font-weight: 600; color: var(--fg); }
.steps span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.6; color: var(--fg-2); }

/* The tools the game is made with, on the about page: a list, each row its
   logo, name and job, linking to the tool's site. Monochrome logos sit on a
   light tile; app-icon logos (Tripo, Grok) fill the tile. */
.tools { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.tools a {
  display: flex; align-items: center; gap: 18px; padding: 16px 20px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg);
  text-decoration: none; transition: border-color .15s ease, background .15s ease;
}
.tools a:hover { border-color: var(--line-2); background: var(--bg-2); }
.tools .logo {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px;
  border-radius: 12px; background: var(--bg-2); overflow: hidden;
}
.tools .logo img { display: block; width: 26px; height: 26px; }
.tools .logo--full img { width: 100%; height: 100%; object-fit: cover; }
.tools a:hover .logo:not(.logo--full) { background: var(--bg); }
.tools .what { display: block; min-width: 0; }
.tools b { display: block; font-size: 16px; font-weight: 600; color: var(--fg); }
.tools .what span { display: block; margin-top: 2px; font-size: 15px; line-height: 1.55; color: var(--fg-2); }

/* Screenshot slots on the about page: a still per stage of the build. A
   placeholder box until the image is dropped in (an <img> replaces the div). */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.shots--2 { grid-template-columns: repeat(2, 1fr); }
.shot-slot { margin: 0; }
.shot-slot > div, .shot-slot > img {
  display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--bg-2);
  font-size: 13px; font-weight: 600; color: var(--fg-3);
}
.shot-slot > img { border-style: solid; }
.shot-slot figcaption { margin-top: 8px; font-size: 13px; color: var(--fg-3); }

/* The roadmap: one column, a bulleted list each for Now, Next and Later. */
.roadmap { margin-top: 48px; }
.roadmap section + section { margin-top: 44px; }
.roadmap h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.chip { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.chip--now { background: var(--acc); color: var(--acc-ink); }
.chip--next { background: var(--acc-soft); color: var(--acc); }
.chip--later { background: var(--bg-2); color: var(--fg-2); border: 1px solid var(--line); }
.road { margin: 16px 0 0; padding-left: 20px; }
.road li { margin: 10px 0 0; font-size: 16px; line-height: 1.65; color: var(--fg-2); }
.road li::marker { color: var(--acc); }
.road strong { font-weight: 600; color: var(--fg); }
.small-print { margin-top: 32px; font-size: 14px; color: var(--fg-3); }

@media (max-width: 900px) {
  .shots { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  /* A phone: the wordmark on its own line, the nav in a row under it. */
  .top.wrap { padding-top: 20px; flex-wrap: wrap; gap: 12px; }
  .wordmark img { width: 140px; }
  .nav { gap: 0; justify-content: space-between; width: 100%; }
  .nav a, .more-btn { padding: 8px 5px; font-size: 13px; white-space: nowrap; }
  .nav > li:first-child { display: none; }   /* the wordmark is the way home */
  .nav > li:nth-child(2) a { margin-left: -5px; }
  .more { margin-right: -5px; }
  .more-btn { gap: 3px; }
  .more-menu { min-width: 200px; }
  .page { padding-top: 48px; }
  .page .lede { font-size: 16px; }
}

