/* Flight Control. The emblem sets the identity: black panel, neon yellow controller, white ship and HUD brackets.
   Yellow is the action colour; the cyan of the in-game wheel marks live, in-flight states only. */
:root {
  color-scheme: dark;
  --bg: #000; --panel: #0b0b0a; --panel-2: #141411; --line: rgba(255,255,255,.1); --line-2: rgba(255,255,255,.22);
  --ink: #f6f5ee; --soft: #cfcdc2; --muted: #96948a;
  --yellow: #ffe414; --yellow-dim: #b9a50c; --cyan: #4fd6e0;
  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --ui: "IBM Plex Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --max: 1200px; --r: 14px; --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--ui); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: rgba(255,228,20,.45); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--yellow); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
code, kbd { font: .86em var(--mono); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 5px; padding: .05em .38em; overflow-wrap: anywhere; }
kbd { color: var(--yellow); border-color: rgba(255,228,20,.35); }
strong { color: #fff; font-weight: 600; }
.mono { font-family: var(--mono); }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--yellow); color: #000; padding: 8px 14px; border-radius: 6px; font-weight: 600; }
.skip:focus { left: 8px; }
.eyebrow { font: 500 12px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.eyebrow::before { content: "// "; color: var(--muted); }

/* Product header */
.fc-header { position: sticky; top: 0; z-index: 40; background: rgba(0,0,0,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.fc-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.brand img { width: 38px; height: 38px; }
.fc-header nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.fc-header nav a { text-decoration: none; font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); padding: 8px 0; border-bottom: 2px solid transparent; }
.fc-header nav a:hover, .fc-header nav a[aria-current] { color: var(--yellow); border-bottom-color: var(--yellow); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 8px; text-decoration: none; font: 600 14px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--yellow); transition: background .2s, color .2s, box-shadow .2s; }
.btn-go { background: var(--yellow); color: #000; box-shadow: 0 0 0 0 rgba(255,228,20,.0); }
.btn-go:hover { box-shadow: 0 0 28px rgba(255,228,20,.45); }
.btn-ghost { color: var(--yellow); background: rgba(255,228,20,.06); }
.btn-ghost:hover { background: rgba(255,228,20,.14); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; opacity: .62; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.88) 38%, rgba(0,0,0,.35) 75%, rgba(0,0,0,.55) 100%), linear-gradient(0deg, #000 0%, transparent 35%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; padding: 84px 0 70px; }
.pill { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pill span { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(0,0,0,.6); color: var(--soft); }
.pill .warn { color: #000; background: var(--yellow); border-color: var(--yellow); font-weight: 600; }
.hero h1 { font-size: clamp(40px, 6.4vw, 78px); margin-bottom: 20px; text-transform: uppercase; }
.hero h1 small { display: block; font-size: .42em; letter-spacing: .02em; color: var(--yellow); margin-top: 10px; }
.hero-lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--soft); max-width: 36em; margin-bottom: 16px; }
.hero-lede strong { color: var(--yellow); }
.hero-story { font-size: 16px; color: var(--soft); max-width: 40em; margin-bottom: 30px; opacity: .9; }
.hero-mark { justify-self: center; width: min(360px, 100%); filter: drop-shadow(0 0 40px rgba(255,228,20,.22)); }
.hero-note { font-size: 14px; color: var(--muted); margin: 22px 0 0; max-width: 40em; }
.spec { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); background: rgba(0,0,0,.7); }
.spec .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec div { padding: 18px 18px 18px 0; border-right: 1px solid var(--line); margin-right: 18px; }
.spec div:last-child { border-right: 0; }
.spec dt { font: 500 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.spec dd { margin: 0; font: 600 15px/1.35 var(--display); }

/* Sections */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 16px; }
.section-head p { color: var(--soft); font-size: 18px; margin: 0; }

/* Wheel switcher */
.wheels { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: start; }
.dpad-panel { position: sticky; top: 90px; }
.dpad { position: relative; width: 210px; height: 210px; margin: 0 auto 26px; }
.dpad button { position: absolute; width: 70px; height: 70px; border: 2px solid var(--yellow-dim); background: #000; color: var(--yellow); cursor: pointer; display: grid; place-items: center; transition: background .15s, box-shadow .2s, border-color .15s; }
.dpad button svg { width: 22px; height: 22px; }
.dpad button[aria-selected="true"] { background: var(--yellow); color: #000; border-color: var(--yellow); box-shadow: 0 0 26px rgba(255,228,20,.5); }
.dpad button:hover { border-color: var(--yellow); }
.dpad [data-dir="up"] { left: 70px; top: 0; border-radius: 10px 10px 0 0; border-bottom: 0; }
.dpad [data-dir="down"] { left: 70px; bottom: 0; border-radius: 0 0 10px 10px; border-top: 0; }
.dpad [data-dir="left"] { left: 0; top: 70px; border-radius: 10px 0 0 10px; border-right: 0; }
.dpad [data-dir="right"] { right: 0; top: 70px; border-radius: 0 10px 10px 0; border-left: 0; }
.dpad::after { content: ""; position: absolute; left: 70px; top: 70px; width: 70px; height: 70px; background: #000; border: 2px solid var(--yellow-dim); border-width: 0; box-shadow: inset 0 0 0 2px #1d1b08; }
.wheel-copy h3 { font-size: 26px; margin-bottom: 4px; }
.wheel-copy .dir { font: 500 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.wheel-copy p { color: var(--soft); margin-bottom: 12px; }
.wheel-copy ul { margin: 0; padding-left: 18px; color: var(--soft); }
.screen { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); background: #000; }
.screen img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.screen::before, .screen::after { content: ""; position: absolute; width: 34px; height: 34px; border: 3px solid #fff; pointer-events: none; opacity: .85; }
.screen::before { left: 14px; top: 14px; border-right: 0; border-bottom: 0; }
.screen::after { right: 14px; bottom: 14px; border-left: 0; border-top: 0; }
.screen figcaption, .shot figcaption { font-size: 14px; color: var(--muted); padding: 12px 2px 0; }
.wheels figure { margin: 0; }
.hold-note { margin-top: 22px; padding: 14px 16px; border-left: 3px solid var(--cyan); background: var(--panel); border-radius: 0 8px 8px 0; font-size: 15px; color: var(--soft); }

/* Controls table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 500 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--panel); }
tbody tr:last-child td { border-bottom: 0; }
tbody th { font: 600 14px/1.4 var(--mono); color: var(--yellow); white-space: nowrap; }
td { color: var(--soft); }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { padding: 26px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.card .num { font: 500 12px/1 var(--mono); color: var(--yellow); letter-spacing: .14em; margin-bottom: 18px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--soft); font-size: 15.5px; margin: 0; }

/* Install steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); color: var(--soft); }
.steps li::before { content: "0" counter(step); font: 700 26px/1 var(--display); color: var(--yellow); }
.steps strong { color: #fff; }
.install { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: start; }
.callout { padding: 16px 18px; border: 1px solid rgba(255,228,20,.35); background: rgba(255,228,20,.06); border-radius: 10px; color: var(--soft); font-size: 15px; margin-top: 16px; }
.callout strong { color: var(--yellow); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.shot { margin: 0; }
.shot button { display: block; width: 100%; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: #000; cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: 16 / 9.7; object-fit: cover; object-position: top left; transition: transform .4s var(--ease); }
.shot button:hover img { transform: scale(1.02); }
.shot strong { display: block; color: #fff; font: 600 16px/1.3 var(--display); margin-bottom: 2px; }
dialog.lightbox { padding: 0; border: 1px solid var(--line-2); border-radius: 12px; background: #000; max-width: min(1600px, 96vw); width: 100%; color: var(--ink); }
dialog.lightbox::backdrop { background: rgba(0,0,0,.86); }
dialog.lightbox img { width: 100%; height: auto; max-height: 86vh; object-fit: contain; }
dialog.lightbox p { margin: 0; padding: 12px 16px; font-size: 14px; color: var(--soft); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
dialog.lightbox button { background: none; border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 12px; cursor: pointer; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }

/* Download */
.download { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: stretch; }
.dl-card { position: relative; padding: 32px; border-radius: var(--r); background: linear-gradient(160deg, #191705, #000 60%); border: 1px solid rgba(255,228,20,.45); }
.dl-card h3 { font-size: 30px; margin-bottom: 6px; }
.dl-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 22px 0 26px; font-size: 14.5px; }
.dl-meta dt { font: 500 11px/1.9 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dl-meta dd { margin: 0; color: var(--soft); min-width: 0; }
.hash { font: 13px/1.5 var(--mono); word-break: break-all; color: var(--ink); }
.copy { margin-left: 6px; background: none; border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 8px; cursor: pointer; font: 500 11px/1.6 var(--mono); text-transform: uppercase; color: var(--yellow); }
.side-card { padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.side-card h3 { font-size: 20px; margin-bottom: 12px; }
.side-card ul { margin: 0 0 18px; padding-left: 18px; color: var(--soft); font-size: 15.5px; }
.side-text { color: var(--soft); font-size: 15px; margin: 0 0 18px; }
.side-card li { margin-bottom: 6px; }
.status { display: inline-block; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; border-radius: 5px; background: var(--yellow); color: #000; margin-bottom: 14px; }
.links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.links a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: var(--panel); }
.links a:hover { border-color: var(--yellow); }
.links b { display: block; font: 600 15px/1.3 var(--display); color: #fff; }
.links span { font-size: 13.5px; color: var(--muted); }

/* Product footer */
.fc-footer { padding: 56px 0 64px; color: var(--muted); font-size: 14.5px; }
.fc-footer .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; }
.fc-footer img { width: 72px; height: 72px; }
.fc-footer p { margin-bottom: 10px; max-width: 70em; }
.fc-footer a { color: var(--soft); }

/* Help */
.help-hero { padding: 56px 0 36px; border-bottom: 1px solid var(--line); }
.help-hero h1 { font-size: clamp(34px, 5vw, 56px); text-transform: uppercase; margin-bottom: 12px; }
.help-hero p { color: var(--soft); max-width: 46em; margin-bottom: 0; }
.help-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 48px; padding: 40px 0 90px; align-items: start; }
.help-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding-right: 6px; }
.help-side label { display: block; font: 500 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.help-side input { width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font: 15px var(--ui); margin-bottom: 16px; }
.help-side input:focus { border-color: var(--yellow); outline: none; }
.toc { display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 12px; border-left: 2px solid var(--line); text-decoration: none; color: var(--soft); font-size: 15px; }
.toc a:hover { color: #fff; border-left-color: var(--yellow-dim); }
.toc a[aria-current="true"] { color: var(--yellow); border-left-color: var(--yellow); background: rgba(255,228,20,.05); }
.no-results { color: var(--muted); font-size: 14px; }
.help-article { min-width: 0; max-width: 820px; }
.help-article section { padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.help-article section:last-child { border-bottom: 0; }
.help-article h2 { font-size: 30px; margin-bottom: 16px; }
.help-article h3 { font-size: 20px; margin: 26px 0 10px; color: #fff; }
.help-article p, .help-article li { color: var(--soft); }
.help-article ol, .help-article ul { padding-left: 22px; }
.help-article li { margin-bottom: 8px; }
.help-article .table-scroll { margin: 6px 0 18px; }
.help-article table:not(:has(thead th:nth-child(3))) { min-width: 0; }
.help-article table:not(:has(thead th:nth-child(3))) tbody th { white-space: normal; }
.help-article .screen { margin: 10px 0 20px; }
.help-article details { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); margin-bottom: 10px; }
.help-article summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: #fff; }
.help-article details[open] summary { border-bottom: 1px solid var(--line); }
.help-article details > div { padding: 14px 18px 4px; }
.anchor { color: var(--muted); text-decoration: none; font-size: .7em; margin-left: 6px; opacity: 0; }
h2:hover .anchor, .anchor:focus { opacity: 1; }
[hidden] { display: none !important; }

@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wheels { grid-template-columns: 1fr; }
  .dpad-panel { position: static; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: center; }
  .dpad { margin: 0; }
  .install, .download { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 48px; }
  .hero-mark { display: none; }
  .spec .wrap { grid-template-columns: repeat(2, 1fr); }
  .spec div:nth-child(2) { border-right: 0; }
  .fc-header nav a:not(.keep) { display: none; }
  .help-layout { grid-template-columns: 1fr; gap: 24px; }
  .help-side { position: static; max-height: none; }
  .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand { font-size: 15px; white-space: nowrap; }
  .brand img { width: 32px; height: 32px; }
  .fc-header nav { flex-wrap: nowrap; gap: 16px; }
  .fc-header nav a { font-size: 12px; letter-spacing: .06em; }
  .section { padding: 64px 0; }
  .cards, .gallery { grid-template-columns: 1fr; }
  .dpad-panel { grid-template-columns: 1fr; }
  .dpad { margin: 0 auto; width: 180px; height: 180px; }
  .dpad button { width: 60px; height: 60px; }
  .dpad [data-dir="up"], .dpad [data-dir="down"] { left: 60px; }
  .dpad [data-dir="left"], .dpad [data-dir="right"] { top: 60px; }
  .dpad::after { left: 60px; top: 60px; width: 60px; height: 60px; }
  .steps li { grid-template-columns: 1fr; gap: 6px; }
  .dl-card, .side-card { padding: 22px; }
  .dl-meta { grid-template-columns: 1fr; gap: 2px; }
  .dl-meta dd { margin-bottom: 10px; }
  .fc-footer .wrap { grid-template-columns: 1fr; }
  .toc { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
