@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap; src: url(assets/fonts/bricolage-latin.woff2) format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(assets/fonts/geist-latin.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/geistmono-latin.woff2) format("woff2"); }
:root {
  --bg: #121418;
  --bg-2: #171a1f;
  --surface: #1e2127;
  --surface-2: #262a31;
  --line: rgba(244, 241, 234, .12);
  --ink: #f4f1ea;
  --muted: #a3a8b3;
  --dim: #8a909b;
  --yellow: #ffc833;      /* calls to action only */
  --yellow-ink: #1a1408;
  --accent-soft: rgba(255, 200, 51, .14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 18px;
  --wrap: 1160px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--yellow-ink); padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(18, 20, 24, .72); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 600 18px/1 var(--display); }
.brand b { color: var(--yellow); font-weight: 700; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav nav { display: none; } .gh { margin-left: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 999px; font: 600 16px/1 var(--text); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--yellow); color: var(--yellow-ink); }
.btn-primary:hover { background: #ffd35c; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #4a505c; background: var(--surface); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.stars { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-left: 8px; border-left: 1px solid var(--line); }

/* hero */
.hero { position: relative; padding: 72px 0 48px; overflow: hidden; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; }
.eyebrow { font: 500 14px/1 var(--mono); color: var(--muted); margin: 0 0 16px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(44px, 6.4vw, 80px); line-height: 1; font-weight: 600; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.04; font-weight: 600; }
h3 { font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: 0; }
.unofficial { margin: 20px 0 0; padding: 10px 14px; max-width: 34em; border-left: 3px solid var(--dim); background: var(--surface); color: var(--ink); font-size: 15px; line-height: 1.45; border-radius: 0 10px 10px 0; }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 20px 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.chips li { font: 500 13px/1 var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-art .pad { position: relative; width: 100%; max-width: 580px; }
.ticker { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; background: rgba(30, 33, 39, .86); border: 1px solid var(--line); padding: 8px 16px 8px 8px; border-radius: 16px; font-weight: 500; white-space: nowrap; }
.ticker-key { font: 600 13px/1 var(--mono); background: var(--surface-2); color: var(--ink); border: 1px solid rgba(244,241,234,.14); border-bottom-width: 3px; border-radius: 8px; padding: 6px 10px; min-width: 44px; text-align: center; }
.ticker-arrow { color: var(--dim); }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; padding-bottom: 64px; }
}

/* controller photo + hotspots */
.pad svg { width: 100%; height: auto; display: block; overflow: visible; }
.pad image { filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.pad .ring { fill: transparent; stroke: rgba(255,255,255,0); transition: stroke .2s, fill .2s; }
.pad .halo { fill: none; stroke: transparent; transition: stroke .25s; }
.pad-lg .ring { stroke: rgba(255,255,255,.16); }
.pad .ctl.on .ring { stroke: var(--yellow); fill: rgba(255,200,51,.16); }
.pad .halo { display: none; }
.pad .pill rect { fill: #1e2127; stroke: #3a3f49; transition: fill .2s, stroke .2s; }
.pad .pill-t { fill: #a3a8b3; font-family: var(--mono); font-weight: 600; transition: fill .2s; }
.pad .pill.on rect { fill: var(--yellow); stroke: var(--yellow); }
.pad .pill.on .pill-t { fill: var(--yellow-ink); }
.pad-lg .ctl { cursor: pointer; }

/* strip */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-in div { padding: 26px 20px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.strip-in div:first-child { border-left: 0; }
.strip b { font: 600 32px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.strip span { color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .strip-in { grid-template-columns: 1fr 1fr; } .strip-in div:nth-child(3) { border-left: 0; } .strip-in div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* sections */
.sec { padding: 112px 0; }
.sec-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head p:not(.eyebrow) { color: var(--muted); font-size: 18px; margin: 18px 0 0; }
.note { font-size: 15px !important; color: var(--dim) !important; }
@media (max-width: 720px) { .sec { padding: 72px 0; } }

/* button map */
.map { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 20px; flex-wrap: wrap; }
.seg button { font: 600 14px/1 var(--text); color: var(--muted); background: transparent; border: 0; padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px #3a3f49; }
.map-grid { display: grid; grid-template-columns: minmax(220px,1fr) 2fr minmax(220px,1fr); gap: 24px; align-items: center; }
.binds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.binds li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; cursor: default; transition: background-color .15s var(--ease); }
.binds li:hover, .binds li.on { background: var(--accent-soft); }
.binds .key { font: 600 12px/1 var(--mono); min-width: 76px; text-align: center; padding: 6px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid rgba(244,241,234,.12); border-bottom-width: 3px; color: var(--ink); white-space: nowrap; }
.binds li.on .key { background: var(--yellow); border-color: #c98a00; color: var(--yellow-ink); }
.binds .act { font-size: 15px; }
@media (max-width: 960px) { .map-grid { grid-template-columns: 1fr; } .pad-lg { order: -1; max-width: 520px; margin-inline: auto; } .map { padding: 18px; } }

/* wheel */
.wheel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.wheel-fig { margin: 0; }
.wheel { width: 100%; max-width: 480px; display: block; margin-inline: auto; }
.wheel .slice path { fill: var(--surface); stroke: var(--bg-2); stroke-width: 4; transition: fill .15s var(--ease); }
.wheel .slice.top path { fill: var(--surface-2); }
.wheel .slice:hover path, .wheel .slice.on path { fill: var(--yellow); }
.wheel .slice text { fill: var(--ink); font: 600 12.5px var(--text); pointer-events: none; }
.wheel .slice .k { fill: var(--muted); font: 500 11px var(--mono); }
.wheel .slice.on .k, .wheel .slice:hover .k { fill: var(--yellow-ink); }
.wheel .slice:hover text, .wheel .slice.on text { fill: var(--yellow-ink); }
.wheel .hub { fill: var(--bg); stroke: var(--line); stroke-width: 2; }
.wheel .hub-t { fill: var(--dim); font: 500 11px var(--mono); }
.wheel-fig figcaption { text-align: center; color: var(--dim); font-size: 14px; margin-top: 16px; }
@media (max-width: 900px) { .wheel-grid { grid-template-columns: 1fr; } }

/* features */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.card p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }
.card-ico { display: block; width: 20px; height: 20px; color: var(--muted); margin-bottom: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.shots { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.shot { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; }
.shot img { border-radius: 10px; }
.shot-tall { max-height: 520px; overflow: hidden; position: relative; }
.shot-tall img { object-fit: cover; object-position: top; height: 100%; }
.shot-tall::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(transparent, var(--surface)); }
.shot figcaption { color: var(--dim); font-size: 14px; padding: 12px 4px 0; position: relative; z-index: 1; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }

/* install */
.install { max-width: 820px; }
.term { background: #0c0e11; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.term-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); font: 500 13px/1 var(--mono); color: var(--dim); }
.copy { font: 600 13px/1 var(--text); background: var(--surface-2); color: var(--ink); border: 1px solid #3a3f49; border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.copy.done { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }
.term pre { margin: 0; padding: 22px 18px; overflow-x: auto; }
.term code { font: 500 14.5px/1.6 var(--mono); color: #e6e1d6; white-space: pre-wrap; word-break: break-all; }
.term-hint { margin: 0; padding: 0 18px 18px; color: var(--muted); font-size: 15px; }
kbd { font: 500 12px/1 var(--mono); background: var(--surface-2); border: 1px solid #3a3f49; border-bottom-width: 2px; border-radius: 6px; padding: 3px 6px; }
.steps { counter-reset: s 1; list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: flex; gap: 14px; color: var(--muted); }
.steps li::before { content: counter(s, decimal) ; counter-increment: none; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--ink); font: 600 13px/1 var(--mono); }
.steps b { color: var(--ink); }
.small { color: var(--dim); font-size: 14px; margin-top: 24px; }
.small a, .faq a { color: var(--ink); text-underline-offset: 3px; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font: 700 19px/1.3 var(--display); letter-spacing: -.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 26px/1 var(--text); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 22px; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 0; } }

/* end */
.cta-end { text-align: center; border-top: 1px solid var(--line); }
.end-in { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.end-in p { color: var(--muted); max-width: 32em; margin: 0 0 12px; font-size: 18px; }
.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--dim); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot p { margin: 0; max-width: 48em; }
.foot a { color: var(--muted); }

/* one entrance on load */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-art { animation: rise .5s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 40ms; } .hero-copy > :nth-child(3) { animation-delay: 80ms; }
  .hero-copy > :nth-child(4) { animation-delay: 120ms; } .hero-copy > :nth-child(5) { animation-delay: 160ms; } .hero-art { animation-delay: 120ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
}
.brand img { height: 30px; width: auto; } .brand span { white-space: nowrap; }
.step1 { display: flex; gap: 12px; align-items: center; color: var(--ink); font-weight: 500; margin: 0 0 16px; }
.step1 span, .steps li::before { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); border: 1px solid rgba(244,241,234,.12); border-bottom-width: 3px; color: var(--ink); font: 600 13px/1 var(--mono); }
.shot-tall { max-height: 460px; }
/* the PokeMMO word in the hero uses PokeMMO's own logo, with its own colours */
.nowrap { white-space: nowrap; }
.pmmo-word { display: inline-block; height: .6em; width: auto; vertical-align: -.02em; margin-left: .06em; image-rendering: pixelated; }
/* demo */
.demo { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: center; }
.demo-video { margin: 0; background: #000; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.demo-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.demo-side { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.demo-side .pad { width: 100%; max-width: 420px; }
.demo-now, .wheel-now { display: flex; align-items: center; gap: 12px; margin: 0; min-height: 36px; font-weight: 500; }
.demo-now .key, .wheel-now .key { font: 600 13px/1 var(--mono); background: var(--surface-2); color: var(--ink); border: 1px solid rgba(244,241,234,.14); border-bottom-width: 3px; border-radius: 8px; padding: 6px 10px; min-width: 44px; text-align: center; transition: background-color .15s var(--ease), color .15s var(--ease); }
.demo-now.on .key, .wheel-now .key { background: var(--yellow); color: var(--yellow-ink); border-color: #c98a00; }
.wheel-now { margin-top: 24px; }

/* narrow phones: the GitHub button shows only its icon and count so the name never collides with it */
@media (max-width: 480px) { .gh > span:not(.stars) { display: none; } .brand { font-size: 17px; gap: 10px; } .nav-in { gap: 12px; } }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } .demo-side .pad { max-width: 360px; } }
