/* GestureWright website. Brand: violet on mist, aubergine bands, Manrope display,
   Atkinson Hyperlegible body (chosen for legibility: this is an accessibility product). */
:root {
  --bg: #F8F6FD; --surface: #FFFFFF; --sunk: #EFEAFA; --fg: #1E1236; --muted: #5B4F72;
  --line: #DED5F0; --accent: #6D28D9; --accent-ink: #FFFFFF; --accent-soft: #EDE4FD;
  --band: #1C1036; --band-fg: #F6F2FF; --band-muted: #C4B8E0; --lilac: #B794FF;
  --screen: #FFFFFF; --screen-line: #E6DFF4; --cam: #120A24;
  --good: #15803D; --good-bg: #DCFCE7; --warn: #B45309; --bad: #B42318;
  --font-display: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --measure: 1120px; --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #130A26; --surface: #1C1036; --sunk: #241544; --fg: #F6F2FF; --muted: #C4B8E0;
    --line: #34245A; --accent: #B794FF; --accent-ink: #1C1036; --accent-soft: #2E1C57;
    --band: #0C0619; --screen: #1F1340; --screen-line: #34245A; --cam: #08040F;
    --good: #4ADE80; --good-bg: #133222; --warn: #F5A524; --bad: #F97066;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #130A26; --surface: #1C1036; --sunk: #241544; --fg: #F6F2FF; --muted: #C4B8E0;
  --line: #34245A; --accent: #B794FF; --accent-ink: #1C1036; --accent-soft: #2E1C57;
  --band: #0C0619; --screen: #1F1340; --screen-line: #34245A; --cam: #08040F;
  --good: #4ADE80; --good-bg: #133222; --warn: #F5A524; --bad: #F97066;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg, video, canvas { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.6rem); line-height: 1.1; font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
code, kbd { overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 0.86em; background: var(--sunk); padding: 1px 6px; border-radius: 5px; color: var(--fg); }
pre { margin: 0; font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.55; background: var(--cam); color: #E9DEFF; padding: 18px 20px; border-radius: 12px; overflow-x: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

.wrap { max-width: var(--measure); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 62ch; }
.muted { color: var(--muted); }
section { padding-block: clamp(56px, 7vw, 104px); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 40px; }
.center { text-align: center; margin-inline: auto; justify-items: center; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.035em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { color: var(--accent); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--fg); text-decoration: none; font-weight: 700; font-size: 0.95rem; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.tt .i-sun { display: none; }
:root[data-theme="dark"] .tt .i-sun { display: block; } :root[data-theme="dark"] .tt .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tt .i-sun { display: block; } :root:not([data-theme="light"]) .tt .i-moon { display: none; } }
.menu-btn { display: none; }
@media (max-width: 940px) {
  .menu-btn { display: inline-grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px)); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding-block: 13px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav .btn { margin-top: 14px; }
  .nav .tt { display: none; }
}
.head-tools { display: flex; gap: 8px; align-items: center; }
@media (min-width: 941px) { .head-tools .tt-mobile { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-family: var(--font-display); font-weight: 800; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, border-color .15s ease; line-height: 1.1; text-align: center; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(44px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.page-hero .wrap { display: grid; gap: 18px; }
.page-hero h1 { max-width: 18ch; }

/* ---------- home hero + demo ---------- */
.hero { padding-block: clamp(36px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 4.6rem); line-height: 1; letter-spacing: -0.045em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.demo { position: relative; min-width: 0; }
.screen { position: relative; aspect-ratio: 16 / 10.5; max-width: 100%; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(40, 14, 90, .45); overflow: hidden; }
.screen svg.desk { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cam { position: absolute; right: 3.5%; bottom: 5%; width: 34%; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--cam); border: 2px solid var(--lilac); overflow: hidden; }
.cam svg { width: 100%; height: 100%; display: block; }
.cam-tag { position: absolute; left: 8px; top: 6px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em; color: #C4B8E0; text-transform: uppercase; }
.demo-caption { margin-top: 16px; display: flex; align-items: center; gap: 12px; min-height: 48px; }
.pill { font-family: var(--font-display); font-weight: 800; background: var(--accent-soft); color: var(--accent); padding: 8px 14px; border-radius: 999px; font-size: .95rem; white-space: nowrap; }
.demo-text { color: var(--muted); font-size: .98rem; }
.dots { display: flex; gap: 6px; margin-left: auto; }
.dots button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.dots button span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background-color .2s, transform .2s; }
.dots button[aria-current="true"] span { background: var(--accent); transform: scale(1.3); }
@media (max-width: 520px) { .demo-caption { flex-wrap: wrap; } .dots { margin-left: 0; } }

/* ---------- generic grids & cards ---------- */
.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cols-2, .cols-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 460px) { .cols-4 { grid-template-columns: minmax(0, 1fr); } }
.card { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.card p { color: var(--muted); font-size: .98rem; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.card .ico svg { width: 22px; height: 22px; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }
.alt .card { background: var(--bg); }

/* gesture cards */
.g-card { display: grid; grid-template-rows: auto auto auto 1fr; gap: 8px; padding: 18px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.g-card .pose { height: 128px; border-radius: 12px; background: var(--cam); display: grid; place-items: center; margin-bottom: 6px; }
.g-card .pose svg { height: 112px; width: auto; }
.g-card .does { font-family: var(--font-display); font-weight: 800; color: var(--accent); font-size: 1.05rem; }
.g-card p { color: var(--muted); font-size: .95rem; }
.g-card.key { border-color: var(--accent); }
.g-card .how { display: grid; align-content: start; gap: 6px; margin: 4px 0 0; padding-left: 1.1em; color: var(--muted); font-size: .93rem; }

/* feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: 36px; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature .txt { display: grid; gap: 12px; min-width: 0; }
.feature .txt p { color: var(--muted); }
.feature ul { margin: 4px 0 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 6px; }
.feature .vis { min-width: 0; }
@media (max-width: 820px) { .feature { grid-template-columns: minmax(0, 1fr); } }

/* spec list */
.spec { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; padding: clamp(24px, 4vw, 40px); border-radius: 20px; background: var(--sunk); }
@media (max-width: 860px) { .spec { grid-template-columns: minmax(0, 1fr); } }
.spec-head { display: grid; gap: 12px; align-content: start; }
.spec-head p { color: var(--muted); }
.spec dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 22px; row-gap: 14px; align-items: baseline; }
.spec dt { font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem; color: var(--accent); font-variant-numeric: tabular-nums; text-align: right; }
.spec dd { margin: 0; }
@media (max-width: 460px) { .spec dl { grid-template-columns: minmax(0, 1fr); row-gap: 2px; } .spec dt { text-align: left; } .spec dd { margin-bottom: 12px; } }

/* steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { display: grid; gap: 10px; align-content: start; min-width: 0; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--font-display); font-weight: 800; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.step p { color: var(--muted); }

/* dark band */
.band { background: var(--band); color: var(--band-fg); }
.band .eyebrow { color: var(--lilac); }
.band h2, .band h3 { color: var(--band-fg); }
.band .lede, .band p { color: var(--band-muted); }
.band a { color: var(--lilac); }
.band .btn-primary { background: var(--lilac); color: #1C1036; }
.band .btn-ghost { background: transparent; color: var(--band-fg); border-color: rgba(196,184,224,.4); }
.p-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
@media (max-width: 760px) { .p-grid { grid-template-columns: minmax(0, 1fr); } }
.p-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; padding-block: 18px; border-top: 1px solid rgba(196,184,224,.25); }
.p-item svg { width: 24px; height: 24px; color: var(--lilac); margin-top: 3px; }
.p-item h3 { margin-bottom: 4px; }

/* CTA strip */
.cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: clamp(24px, 4vw, 40px); border-radius: 22px; background: var(--accent-soft); }
.cta-strip h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); max-width: 20ch; }

/* ---------- tabs ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sunk); margin-bottom: 22px; flex-wrap: wrap; }
.tabs [role="tab"] { border: 0; background: transparent; color: var(--fg); font-family: var(--font-display); font-weight: 800; font-size: .98rem; min-height: 44px; padding: 0 20px; border-radius: 999px; cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(30, 18, 54, .15); }

/* download */
.dl-card { display: grid; gap: 16px; align-content: start; padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: var(--surface); border: 2px solid var(--accent); }
.dl-card h3 { font-size: 1.5rem; }
.dl-req { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--muted); }
.ol strong { color: var(--fg); }
.notice { padding: 14px 16px; border-radius: 12px; background: var(--sunk); color: var(--fg); font-size: .96rem; }
.notice.warn { border-left: 0; background: color-mix(in srgb, var(--warn) 14%, var(--surface)); }

/* checklist */
.checklist { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.checklist label { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: 12px; cursor: pointer; }
.checklist label:hover { background: var(--sunk); }
.checklist input { width: 22px; height: 22px; accent-color: var(--accent); margin: 2px 0 0; }
.checklist b { display: block; font-family: var(--font-display); }
.checklist span { color: var(--muted); font-size: .95rem; }
.progress { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.bar { flex: 1; height: 10px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .3s ease; }
#progress { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 60px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); line-height: 1; transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 18px; color: var(--muted); display: grid; gap: 10px; max-width: 70ch; }
.search { display: flex; align-items: center; gap: 10px; max-width: 560px; margin-bottom: 22px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: inherit; min-height: 50px; outline: none; }
.search:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.faq-group { display: grid; gap: 12px; margin-bottom: 34px; }
.faq-group > h2 { font-size: 1.4rem; }

/* ---------- forms ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 860px) { .form-wrap { grid-template-columns: minmax(0, 1fr); } }
form.card { gap: 18px; padding: clamp(20px, 3vw, 32px); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .96rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.err { color: var(--bad); font-size: .9rem; min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .95rem; color: var(--muted); }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 2px; }
.result { display: grid; gap: 10px; }
.result textarea { font-family: var(--font-mono); font-size: .85rem; min-height: 160px; width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
.result .ok { background: var(--good-bg); color: var(--good); padding: 16px; border-radius: 12px; }
.result .ok h3 { color: inherit; }
.side { display: grid; gap: 16px; }

/* ---------- legal ---------- */
.prose { max-width: 72ch; display: grid; gap: 14px; }
.prose h2 { font-size: 1.4rem; margin-top: 18px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* ---------- try it live ---------- */
.try-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .try-grid { grid-template-columns: minmax(0, 1fr); } }
.viewer { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 18px; background: var(--cam); overflow: hidden; border: 2px solid var(--lilac); }
.viewer video, .viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.viewer video { opacity: .55; }
.viewer .overlay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: #F6F2FF; gap: 14px; align-content: center; }
.viewer .overlay p { color: #C4B8E0; max-width: 34ch; }
.readout { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; min-height: 44px; }
.readout .pill.paused { background: color-mix(in srgb, var(--warn) 18%, var(--surface)); color: var(--warn); }
.readout .fps { margin-left: auto; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.play { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; touch-action: none; }
.play .target { position: absolute; width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--accent-soft); border: 3px solid var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--accent); transform: translate(-50%, -50%); transition: transform .15s ease, opacity .25s ease; }
.play .target.hit { transform: translate(-50%, -50%) scale(1.25); opacity: 0; }
.play .ptr { position: absolute; left: 0; top: 0; width: 26px; height: 34px; pointer-events: none; transform: translate(-200px, -200px); }
.play .ptr svg { width: 100%; height: 100%; display: block; }
.play .scrollbox { position: absolute; left: 6%; right: 6%; bottom: 6%; height: 26%; border-radius: 12px; background: var(--sunk); overflow: hidden; }
.play .scrollbox .strip { position: absolute; left: 0; right: 0; top: 0; display: grid; gap: 8px; padding: 12px; }
.play .scrollbox .strip span { display: block; height: 10px; border-radius: 5px; background: var(--line); }
.play .hud { position: absolute; left: 12px; top: 10px; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.play .toast { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--accent); background: var(--surface); padding: 10px 18px; border-radius: 999px; box-shadow: 0 10px 30px -10px rgba(30, 18, 54, .35); }
.legend-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.legend-list li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .96rem; }
.legend-list li.on { border-color: var(--accent); background: var(--accent-soft); }
.legend-list b { font-family: var(--font-display); }
@media (max-width: 460px) { .legend-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--surface); padding-block: 48px 28px; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 820px) { .foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot .about { grid-column: 1 / -1; } }
.foot .about p { color: var(--muted); font-size: .95rem; max-width: 30ch; margin-top: 12px; }
.foot h4 { font-size: .8rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { color: var(--fg); text-decoration: none; font-size: .96rem; }
.foot ul a:hover { color: var(--accent); }
.foot .legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
