/* Eigen Devs site. One stylesheet; each game page sets its own palette with a body class. */
:root {
  color-scheme: light dark;
  --bg: #fbfaf7; --panel: #ffffff; --ink: #1d1d1f; --dim: #6e6e73; --line: #e6e3dc;
  --accent: #5b4bdb; --accent-ink: #ffffff; --hero: linear-gradient(160deg, #efeaff 0%, #fbfaf7 70%);
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111114; --panel: #1b1b20; --ink: #f5f5f7; --dim: #a1a1a6; --line: #2c2c33;
          --accent: #8f83ff; --accent-ink: #111114; --hero: linear-gradient(160deg, #221d3d 0%, #111114 70%); }
}
/* LLM Wars: the garage's cream and burnt orange, set in monospace. */
body.llm { --bg: #fdf6e7; --panel: #fffaf0; --ink: #2b2118; --dim: #7a6a58; --line: #ead9bb;
           --accent: #d2541e; --accent-ink: #fff; --hero: linear-gradient(165deg, #f9c46b 0%, #fdf6e7 62%); }
@media (prefers-color-scheme: dark) {
  body.llm { --bg: #0d1210; --panel: #141b18; --ink: #e8efe9; --dim: #8fa198; --line: #22302a;
             --accent: #4ee38a; --accent-ink: #0d1210; --hero: linear-gradient(165deg, #3a2414 0%, #0d1210 62%); }
}
/* Nidus Pets: the icon's night sky and ember orange. */
body.nidus { --bg: #fbf7ff; --panel: #ffffff; --ink: #221a33; --dim: #6c6380; --line: #e7def5;
             --accent: #e8702a; --accent-ink: #fff; --hero: linear-gradient(165deg, #ffd9a8 0%, #fbf7ff 62%); }
@media (prefers-color-scheme: dark) {
  body.nidus { --bg: #140f24; --panel: #1d1733; --ink: #f3eefc; --dim: #a79fc0; --line: #2e2650;
               --accent: #ffad5c; --accent-ink: #140f24; --hero: linear-gradient(165deg, #3b2350 0%, #140f24 62%); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .4em; }
body.llm h1, body.llm h2, body.llm h3, body.llm .eyebrow { font-family: var(--mono); letter-spacing: 0; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 700px; }
.dim { color: var(--dim); }

/* Header and footer */
.top { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, transparent);
       position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { font-weight: 800; color: var(--ink); text-decoration: none; font-size: 18px; margin-right: auto; }
.brand span { color: var(--accent); }
.top nav a { color: var(--ink); text-decoration: none; font-size: 15px; opacity: .8; }
.top nav a:hover { opacity: 1; }
.top nav { display: flex; gap: 18px; }
footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; font-size: 14px; color: var(--dim); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: var(--dim); }

/* Hero */
.hero { background: var(--hero); padding: 64px 0 56px; }
.hero h1 { font-size: clamp(32px, 6vw, 54px); }
.hero p.lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--dim); max-width: 620px; margin: 0; }
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 10px; }
.app-hero { display: flex; gap: 24px; align-items: center; }
.app-hero img.icon { width: 112px; height: 112px; border-radius: 25px; box-shadow: 0 10px 30px rgba(0,0,0,.18); flex: none; }
.badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 11px 18px; border-radius: 12px;
         background: var(--ink); color: var(--bg); font-weight: 700; font-size: 15px; text-decoration: none; }
.badge small { font-weight: 500; opacity: .75; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-size: 13px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--dim); }

/* Game cards on the home page */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 22px; margin-top: -28px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; overflow: hidden;
        display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,.10); }
.card .head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.card .head img { width: 64px; height: 64px; border-radius: 15px; }
.card h2 { margin: 0; font-size: 22px; }
.card p { margin: 0 0 18px; color: var(--dim); }
.fan { display: flex; justify-content: center; gap: 0; margin-top: auto; padding-top: 10px; height: 300px; }
.fan img { width: 40%; border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.18); border: 1px solid var(--line); object-fit: cover; object-position: top; }
.fan img:nth-child(1) { transform: rotate(-7deg) translate(18%, 22px); }
.fan img:nth-child(2) { z-index: 1; }
.fan img:nth-child(3) { transform: rotate(7deg) translate(-18%, 22px); }
.more { font-weight: 700; color: var(--accent); margin-top: 40px; }

/* Screenshot strip */
.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 16px 18px; margin: 0 -16px; }
.shots figure { margin: 0; flex: 0 0 min(62vw, 240px); scroll-snap-align: start; }
.shots img { border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.shots figcaption { font-size: 14px; color: var(--dim); margin-top: 10px; line-height: 1.4; }
.shots.watch figure { flex-basis: min(46vw, 170px); }
.shots.watch img { border-radius: 34px; background: #000; padding: 6px; }

/* Sections */
section { margin-top: 64px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 18px; margin-top: 18px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.feature h3 { font-size: 18px; }
.feature ul { margin: 0; padding-left: 18px; color: var(--dim); font-size: 15.5px; }
.feature li + li { margin-top: 6px; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 14px; margin-top: 18px; }
.quote { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 0; }
.quote .stars { color: var(--accent); letter-spacing: 2px; font-size: 14px; }
.quote p { margin: 6px 0 8px; font-size: 16px; }
.quote cite { font-style: normal; font-size: 13px; color: var(--dim); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; margin-top: 18px; }
.fact { border-left: 3px solid var(--accent); padding: 4px 0 4px 12px; }
.fact b { display: block; }
.fact span { color: var(--dim); font-size: 15px; }
.note { font-size: 14px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 40px; }

/* Plain text pages (support, privacy) */
.doc { padding-top: 44px; }
.doc h1 { font-size: 34px; }
.doc h2 { font-size: 21px; margin-top: 36px; }
.doc li + li { margin-top: 6px; }
.faq { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 12px 0; }
.faq p { margin-top: 0; color: var(--dim); }
.mail { display: inline-block; margin: 6px 0 4px; padding: 12px 18px; border-radius: 12px; background: var(--accent);
        color: var(--accent-ink); font-weight: 700; text-decoration: none; }

@media (max-width: 560px) {
  .top nav { gap: 14px; }
  .app-hero { flex-direction: column; align-items: flex-start; }
  .app-hero img.icon { width: 88px; height: 88px; border-radius: 20px; }
  .fan { height: 240px; }
}
