/* roam.gg SEO sections (/play, /games, /make). Dark, in the look of the roam.gg home page. Self-contained: no /info.css. */
@font-face { font-family: "Stack Sans Headline"; src: url("/assets/stack-sans-headline-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Stack Sans Headline"; src: url("/assets/stack-sans-headline-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
:root {
  --head: "Stack Sans Headline", Arial, sans-serif;
  --soft: #d6d6d6; --muted: #bdbdbd; --dim: #8c8c8c;
  --tile: #111; --pill: #161616; --accent: #9e9eff; --accent-2: #c9c9ff;
  --inset: clamp(16px, 4vw, 32px);
  color-scheme: dark; background: #000; color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; background: #000; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 700; letter-spacing: -.01em; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 60; padding: 10px 14px; border-radius: 10px; background: #fff; color: #000; }
.skip-link:focus { left: 16px; }

/* header + footer (same on every section) */
.site-top { position: absolute; z-index: 20; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px var(--inset); }
.brand { line-height: 0; }
.brand img { display: block; width: 82px; height: auto; }
.top-nav { display: flex; gap: 24px; font: 300 14px/1 var(--head); letter-spacing: .03em; }
.top-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: #b5b5b5; }
.top-nav a:hover, .top-nav a[aria-current] { color: #fff; }
.site-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px var(--inset); font: 300 11px/16px var(--head); letter-spacing: .045em; color: var(--dim); }
.site-foot a { text-decoration: none; color: var(--dim); }
.site-foot a:hover { color: #fff; }
.site-foot nav { display: flex; gap: 20px; }

/* hero */
.hero { position: relative; isolation: isolate; overflow-x: clip; padding-top: 88px; }
.floaters { position: absolute; inset: 0; z-index: -1; pointer-events: none; display: none; }
.floaters img { position: absolute; object-fit: cover; border-radius: 16px; opacity: .35; }
.floaters img:nth-child(1) { left: 1.5%; top: 120px; width: 128px; height: 172px; transform: rotate(-7deg); opacity: .45; }
.floaters img:nth-child(2) { left: 3%; bottom: 40px; width: 104px; height: 140px; transform: rotate(5deg); opacity: .3; }
.floaters img:nth-child(3) { right: 1.5%; top: 90px; width: 130px; height: 170px; transform: rotate(8deg); }
.floaters img:nth-child(4) { right: 3%; bottom: 50px; width: 110px; height: 150px; transform: rotate(-6deg); opacity: .3; }
@media (min-width: 1360px) { .floaters { display: block; } }
.hero-inner { max-width: 1120px; margin: 0 auto; padding: 24px var(--inset) 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.crumbs { margin: 0; font: 300 13px/1.4 var(--head); letter-spacing: .04em; color: var(--dim); }
.crumbs a { text-decoration: none; color: var(--dim); }
.crumbs a:hover { color: #fff; }
.hero h1 { font-size: clamp(52px, 6.4vw, 104px); line-height: .92; text-wrap: balance; }
.hero h1 .pre { display: block; margin-bottom: .18em; font-weight: 300; font-size: .32em; line-height: 1.2; letter-spacing: .02em; color: var(--soft); }
.tagline { margin: 0; max-width: 560px; font: 300 clamp(19px, 1.9vw, 24px)/1.3 var(--head); color: var(--soft); }
.lead-hub { margin: 0; max-width: 640px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.play-note { margin: 0; font: 300 13px/1.4 var(--head); letter-spacing: .04em; color: var(--dim); }
.game-shot { flex: 1 1 260px; max-width: 320px; margin: 0 auto; }
.play-btn { display: flex; align-items: center; justify-content: center; min-height: 56px; margin-top: 26px; border-radius: 999px;
  background: #fff; color: #000; font: 700 18px/1 var(--head); text-decoration: none; box-shadow: 0 10px 40px rgba(158, 158, 255, .28); }
.play-btn:hover { filter: brightness(.92); }
.shot-crop { display: block; aspect-ratio: 390 / 524; border-radius: 28px; overflow: hidden; background: #111; transform: rotate(2deg);
  box-shadow: 0 30px 90px rgba(80, 140, 255, .28), 0 0 0 1px rgba(255, 255, 255, .08); }
.shot-crop img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* store badges (same art and crop as the home page) */
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.app-store-link { display: block; line-height: 0; border-radius: 9px; }
.app-store-link img { display: block; height: 54px; width: auto; }
.google-play-link { display: block; width: 188px; line-height: 0; border-radius: 9px; }
.google-play-art { display: block; position: relative; width: 100%; aspect-ratio: 1418 / 408; border-radius: 7px; overflow: hidden; background: #fff; }
.google-play-art img { position: absolute; width: 109.732%; height: auto; left: -4.7955%; top: -72.794%; max-width: none; }
.sticky-get { display: none; }

/* game page body */
.page { max-width: 1120px; margin: 0 auto; padding: 8px var(--inset) 96px; display: flex; flex-direction: column; gap: 64px; }
.lead { margin: 0; max-width: 780px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--soft); }
.block { display: flex; flex-direction: column; gap: 22px; }
.block > h2, .related h2, .faq h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.02; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 22px; background: var(--tile); font-size: 16px; line-height: 1.45; color: var(--soft); }
.steps li::before { content: counter(step); font: 700 44px/1 var(--head); color: var(--accent); }
.features { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.features li { padding: 12px 18px; border-radius: 18px; background: var(--pill); font-size: 15px; line-height: 1.4; color: var(--soft); }
.sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px 56px; }
.sections h2 { margin-bottom: 14px; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.08; }
.sections p { margin: 0 0 12px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.related { display: flex; flex-direction: column; gap: 24px; }
.game-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.game-grid a { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.game-grid .crop { display: block; aspect-ratio: 390 / 524; border-radius: 20px; overflow: hidden; background: #111; }
.game-grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.game-grid a:hover img { transform: scale(1.04); }
.game-grid .name { font: 700 16px/1.25 var(--head); }
.faq { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.faq h2 { margin-bottom: 8px; }
.qa { padding: 22px 26px; border-radius: 20px; background: var(--tile); }
.qa h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; }
.qa p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.cta-band { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding: 56px 24px; border-radius: 32px; background: #0d0d14; }
.cta-band h2 { font-size: clamp(44px, 5vw, 64px); line-height: .95; }
.cta-band p { margin: 0; font: 300 18px/1.4 var(--head); color: var(--muted); }
.cta-band .store-row { justify-content: center; }
.more-links h2 { margin-bottom: 14px; font-size: 22px; line-height: 1.1; }
.pills, .cat-nav { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pills a, .cat-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--pill); font-size: 14px; text-decoration: none; }
.pills a.make { color: var(--accent-2); }
.pills a:hover, .cat-nav a:hover { background: #222; }
.cat-nav span { color: var(--dim); }
.xlinks { margin: 0; font-size: 15px; line-height: 1.6; color: var(--dim); }
.xlinks a { color: var(--accent-2); font-weight: 600; text-decoration: none; }
.xlinks a:hover { text-decoration: underline; }

/* /games and /make keyword pages (body.kw) */
.kw main { display: block; width: 100%; max-width: 1040px; margin: 0 auto; padding: 112px var(--inset) 96px; }
.kw .crumbs { margin-bottom: 20px; }
.kw main h1 { margin: 0 0 22px; max-width: 900px; font-size: clamp(40px, 5.6vw, 80px); line-height: .96; text-wrap: balance; }
.kw main h2 { margin: 56px 0 16px; font-size: clamp(26px, 3vw, 36px); line-height: 1.05; }
.kw main h3 { margin: 22px 0 6px; font-size: 18px; line-height: 1.3; }
.kw .intro { margin: 0 0 16px; max-width: 780px; font: 300 clamp(19px, 2vw, 24px)/1.4 var(--head); color: var(--soft); }
.kw .copy { max-width: 780px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.kw .copy p { margin: 0 0 14px; }
.kw .copy b, .kw .copy strong, .kw .copy h2, .kw .copy h3 { color: #fff; }
.kw .items { margin: 8px 0 14px; padding: 0; list-style: none; display: grid; gap: 10px; }
.kw .items li { padding: 16px 20px; border-radius: 18px; background: var(--tile); }
.kw .cta { margin: 56px 0; padding: 44px 28px; border-radius: 32px; background: #0d0d14; text-align: center; }
.kw .cta h2 { margin: 0 0 10px; }
.kw .cta p { margin: 0 auto 18px; max-width: 560px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.kw .cta .prompt { display: inline-block; margin: 0 0 20px; padding: 12px 18px; border-radius: 14px; background: #000; font-size: 15px; color: #fff; }
.kw .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.kw .btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px; border-radius: 999px; background: #fff; color: #000; font: 700 16px/1 var(--head); text-decoration: none; }
.kw .btn.ghost { background: var(--pill); color: #fff; }
.kw .btn:hover { filter: brightness(.92); }
.kw .grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.kw .grid a { display: block; text-decoration: none; }
.kw .grid img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 524; object-fit: cover; border-radius: 20px; background: #111; }
.kw .grid span { display: block; margin-top: 10px; font: 700 16px/1.25 var(--head); }
.kw .grid small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--dim); }
.kw .links { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.kw .links a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 22px; line-height: 1.35; background: var(--pill); font-size: 14px; text-decoration: none; }
.kw .links a:hover { background: #222; }
.kw .xlinks { margin-top: 18px; }

@media (max-width: 700px) {
  .top-nav { gap: 16px; font-size: 13px; }
  .hero { padding-top: 76px; }
  .floaters { display: block; }
  .floaters img:nth-child(2), .floaters img:nth-child(4) { display: none; }
  .floaters img:nth-child(1) { left: -26px; top: auto; bottom: 110px; width: 96px; height: 128px; transform: rotate(-8deg); opacity: .4; }
  .floaters img:nth-child(3) { right: -22px; top: auto; bottom: 170px; width: 90px; height: 120px; transform: rotate(7deg); opacity: .4; }
  .hero-inner { flex-direction: column; align-items: stretch; gap: 28px; padding: 8px var(--inset) 40px; }
  .hero-text { flex: none; align-items: center; text-align: center; gap: 14px; }
  .hero h1 { font-size: clamp(42px, 13vw, 56px); }
  .hero .store-row { display: none; }
  /* Hub on phones: headline + one line of text, badges live in the pinned bar, categories scroll in one row. */
  .hero.hub .floaters { display: none; }
  .hero.hub .hero-inner { padding-bottom: 8px; }
  .hero.hub h1 { font-size: clamp(36px, 10.5vw, 46px); }
  .lead-hub { font-size: 16px; line-height: 1.5; }
  .cat-nav { position: sticky; top: 0; z-index: 30; flex-wrap: nowrap; overflow-x: auto; gap: 6px;
    margin: 0 calc(-1 * var(--inset)); padding: 10px var(--inset); background: rgba(0, 0, 0, .9);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); scrollbar-width: none; }
  .cat-nav::-webkit-scrollbar { display: none; }
  .cat-nav a { flex: none; min-height: 36px; padding: 0 14px; font-size: 13px; }
  .related[id] { scroll-margin-top: 64px; }
  .game-shot { flex: none; width: min(58vw, 230px); }
  .shot-crop { border-radius: 24px; }
  .page { gap: 48px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .steps li { padding: 18px; border-radius: 18px; font-size: 15px; }
  .steps li::before { font-size: 34px; }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .game-grid .crop { border-radius: 14px; }
  .game-grid .name { font-size: 13px; }
  .qa { padding: 18px 20px; }
  .cta-band { padding: 40px 20px; border-radius: 26px; }
  .sticky-get { display: flex; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; justify-content: center; gap: 10px;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: rgba(0, 0, 0, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .sticky-get .app-store-link img { height: 48px; }
  .sticky-get .google-play-link { width: 167px; }
  .has-sticky .site-foot { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .kw main { padding-top: 92px; }
  .kw main h1 { font-size: clamp(36px, 10.5vw, 52px); }
  .kw .cta { padding: 32px 20px; border-radius: 26px; }
  .kw .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .game-grid img { transition: none; } }
