/* Site styles. Colours, type and radii come from design/brand-foundation.md and
   design/brand/system/project/tokens.json (dark theme, AA-checked). */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sora';
  src: url('/fonts/Sora-Variable.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0e14;
  --bg-raised: #10141c;
  --surface: #161b26;
  --surface-hover: #1e2533;
  --border: #272f3f;
  --border-strong: #3a4458;
  --text: #eceff5;
  --text-muted: #9aa3b5;
  --text-faint: #808a9e;
  --accent: #ff6b35;
  --accent-hover: #ff8255;
  --accent-soft: #ff6b3524;
  --on-accent: #0b0e14;
  --info: #4da3ff;
  --success: #3fb950;
  --warning: #f5b83d;
  --danger: #f2555a;
  --deep: #0e1219;

  --sans: 'Inter', 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  --display: 'Sora', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);

  --maxw: 1200px;
  --gutter: 24px;
  --bleed: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  --section: 112px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.6rem + 2.9vw, 3.625rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: 1.375rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--text); text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

code { font-family: var(--mono); font-size: 0.9em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }
.muted { color: var(--text-muted); }
.lead { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); line-height: 1.5; color: var(--text-muted); max-width: 52ch; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  background: var(--accent); color: var(--on-accent);
  font: 600 1rem/1.2 var(--sans);
  border: 0; border-radius: var(--r-md);
  text-decoration: none; cursor: pointer;
  transition: background-color 140ms ease-out;
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 0.9375rem; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--surface-hover); color: var(--text); }
.btn-ghost {
  background: transparent; color: var(--text-muted); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 4px 10px; font: 500 0.8125rem/1.4 var(--sans); cursor: pointer;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }

.link-quiet { color: var(--text-muted); text-decoration: none; font-weight: 500; }
.link-quiet:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); }

/* The Ember square from the mark, used as the list marker. */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; color: var(--text-muted); max-width: 60ch; }
.ticks li::before {
  content: ''; position: absolute; left: 2px; top: 0.62em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 20, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  position: relative; display: block; padding: 20px 12px;
  color: var(--text-muted); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
}
.site-nav ul a:hover { color: var(--text); }
.site-nav ul a[aria-current='page'] { color: var(--text); }
.site-nav ul a[aria-current='page']::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--accent);
}
.lang-switch {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text-muted);
  text-decoration: none; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--r-sm);
}
.lang-switch:hover { color: var(--text); border-color: var(--border-strong); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */

.hero { padding: 80px 0 96px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 56px; align-items: center; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy .lead { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 0; }
.hero-meta { margin-top: 18px; font-size: 0.9375rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.hero-visual { margin: 0; margin-right: calc(-1 * var(--bleed)); }
.hero-visual .mk-win { min-width: 820px; border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0; }

/* ---------- Sections ---------- */

.why, .promises { padding: var(--section) 0; border-top: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 72px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--text-muted); font-size: 1.1875rem; }

.pillar {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center;
  padding: 40px 0;
}
.pillar + .pillar { margin-top: 48px; }
.pillar.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.pillar.flip .pillar-copy { order: 2; }
.pillar-copy h3 { font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem); margin-bottom: 16px; }
.pillar-copy p { color: var(--text-muted); margin-bottom: 24px; }
.pillar-visual, .feature-visual { margin: 0; }

.promises h2 { margin-bottom: 48px; max-width: 720px; }
.promise-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 0; }
.promise-list > div { border-top: 1px solid var(--border-strong); padding-top: 20px; }
.promise-list dt { font-family: var(--display); font-weight: 600; font-size: 1.125rem; margin-bottom: 8px; }
.promise-list dd { margin: 0; color: var(--text-muted); font-size: 1rem; }

.end-cta { background: var(--bg-raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 72px 0; }
.end-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.end-inner h2 { margin-bottom: 12px; }
.end-inner p { color: var(--text-muted); }

.page-head { padding: 72px 0 48px; }
.page-head h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); margin-bottom: 16px; }

/* ---------- Download ---------- */

.download-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; padding-bottom: 88px; }
.release-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; min-height: 180px; }
.release-card h2 { font-size: 1.5rem; margin-bottom: 12px; }
.release-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin: 28px 0 0; }
.release-facts .wide { grid-column: 1 / -1; }
.release-facts dt { font-size: 0.8125rem; font-weight: 600; color: var(--text-faint); margin-bottom: 4px; }
.release-facts dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hash-row { display: flex; align-items: flex-start; gap: 12px; }
.hash-row code { flex: 1; font-size: 0.875rem; line-height: 1.55; color: var(--text-muted); word-break: break-all; }
.release-notes { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.release-notes h2 { font-size: 1.125rem; margin-bottom: 8px; }
.release-notes p { color: var(--text-muted); white-space: pre-line; }
.spinner {
  display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px;
  border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.requirements h2 { font-size: 1.375rem; margin-bottom: 20px; }

.smartscreen {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center;
  padding-top: 88px; padding-bottom: 88px;
  background: linear-gradient(var(--border), var(--border)) no-repeat var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px;
}
.smartscreen h2, .verify h2, .install-notes h2 { margin-bottom: 20px; }
.smartscreen p { color: var(--text-muted); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; min-height: 28px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px;
  width: 28px; height: 28px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.875rem;
}
.ss-figure { margin: 0; }
.ss-dialog {
  position: relative;
  background: #0a5ca8; color: #fff; padding: 28px 28px 24px; border-radius: 6px;
  font-family: 'Segoe UI', var(--sans); font-size: 0.875rem; line-height: 1.5;
  box-shadow: var(--shadow);
}
.ss-dialog p { color: #fff; }
.ss-title { font-size: 1.5rem; font-weight: 300; line-height: 1.25; margin-bottom: 14px; }
.ss-link { text-decoration: underline; position: relative; }
.ss-buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 28px; }
.ss-btn { border: 1px solid rgba(255, 255, 255, 0.85); padding: 6px 18px; min-width: 104px; text-align: center; }
.ss-link::after, .ss-run::after {
  position: absolute; width: 22px; height: 22px; border-radius: 5px;
  background: var(--accent); color: var(--on-accent);
  font: 700 0.75rem/22px var(--sans); text-align: center;
}
.ss-link::after { content: '2'; right: -30px; top: -1px; }
.ss-run { position: relative; outline: 2px solid var(--accent); outline-offset: 3px; }
.ss-run::after { content: '3'; left: -34px; top: 4px; }

.verify { padding-bottom: 88px; }
.verify p { color: var(--text-muted); }
.code {
  background: var(--deep); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 16px 20px; overflow-x: auto; color: var(--text); font-size: 0.9375rem; margin: 20px 0 0;
}
.install-notes { padding-bottom: var(--section); }
.install-notes .promise-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Features ---------- */

.features-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; padding-bottom: var(--section); }
.toc { position: sticky; top: 96px; align-self: start; }
.toc-title { font-size: 0.875rem; font-weight: 600; color: var(--text-faint); margin-bottom: 12px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-muted); text-decoration: none; font-size: 0.9375rem; }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; padding: 56px 0; border-top: 1px solid var(--border); }
.feature:first-child { border-top: 0; padding-top: 8px; }
.feature-copy h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); margin-bottom: 14px; }
.feature-copy p { color: var(--text-muted); margin-bottom: 20px; }
.feature-visual figcaption { margin-top: 10px; font-size: 0.8125rem; color: var(--text-faint); }
.feature-visual .mk-hero-body { grid-template-columns: 150px minmax(0, 1fr); height: 300px; }
.feature-visual .mk-hero-body .mk-friends { display: none; }
.feature-visual .mk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-visual .mk-cover:nth-child(n + 9) { display: none; }
.feature-end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 56px; border-top: 1px solid var(--border); font-family: var(--display); font-size: 1.375rem; font-weight: 600; max-width: none; }
.ph-frame {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  aspect-ratio: 16 / 10; border: 1px dashed var(--border-strong); border-radius: var(--r-lg);
  background: var(--bg-raised); color: var(--text-faint); font-size: 0.9375rem;
}
.ph-mark { width: 40px; height: 40px; border: 3px solid var(--border-strong); border-radius: 10px; position: relative; }
.ph-mark::after { content: ''; position: absolute; right: -9px; top: -9px; width: 18px; height: 18px; border-radius: 5px; background: var(--accent); opacity: 0.6; }

/* ---------- Changelog ---------- */

.changelog { padding-bottom: var(--section); }
.releases { list-style: none; margin: 0; padding: 0; }
.release { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding: 40px 0; border-top: 1px solid var(--border); }
.release-meta h2 { font-size: 2rem; font-variant-numeric: tabular-nums; }
.release-meta p { color: var(--text-faint); font-size: 0.9375rem; margin-top: 6px; }
.latest-badge { display: inline-block; color: var(--success) !important; font-weight: 600; }
.release-body h3 { margin-bottom: 18px; }

/* ---------- FAQ ---------- */

.faq { padding-bottom: var(--section); max-width: 880px; }
.qa { border-top: 1px solid var(--border); }
.qa:last-child { border-bottom: 1px solid var(--border); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h2 { font-size: 1.25rem; line-height: 1.35; font-weight: 600; }
.qa summary::after {
  content: ''; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-3px); transition: transform 160ms ease-out;
}
.qa[open] summary::after { transform: rotate(-135deg) translateY(-3px); border-color: var(--accent); }
.qa summary:hover h2 { color: var(--accent-hover); }
.qa-body { padding: 0 0 24px; color: var(--text-muted); }

/* ---------- Legal and contact ---------- */

.draft-note {
  margin-top: 8px; padding: 16px 20px; border: 1px solid rgba(245, 184, 61, 0.45);
  background: rgba(245, 184, 61, 0.08); border-radius: var(--r-md);
}
.draft-note strong { color: var(--warning); display: block; margin-bottom: 4px; }
.draft-note p { color: var(--text-muted); font-size: 0.9375rem; }
.prose { padding-bottom: var(--section); }
.prose h2 { font-size: 1.5rem; margin: 48px 0 16px; }
.prose h3 { font-size: 1.1875rem; margin: 32px 0 12px; }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; max-width: 70ch; }
.prose li::marker { color: var(--accent); }
.table-wrap { overflow-x: auto; margin: 8px 0 24px; border: 1px solid var(--border); border-radius: var(--r-md); }
.prose table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.875rem; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--border); }
.prose thead th { border-top: 0; background: var(--bg-raised); color: var(--text); font-weight: 600; }
.prose td { color: var(--text-muted); }
mark.todo { background: rgba(245, 184, 61, 0.16); color: var(--warning); border-radius: 3px; padding: 0 3px; }

.mail-line { margin-top: 28px; font-size: 1.125rem; display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; }
.mail { font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); overflow-wrap: anywhere; }
.topic-list { margin: 0 0 var(--section); display: grid; gap: 0; }
.topic-list > div { padding: 24px 0; border-top: 1px solid var(--border); }
.topic-list dt { font-family: var(--display); font-weight: 600; font-size: 1.125rem; margin-bottom: 6px; }
.topic-list dd { margin: 0; color: var(--text-muted); }

.notfound { padding: 96px var(--gutter) var(--section); }
.nf-block + .nf-block { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.nf-block h1, .nf-block h2 { margin-bottom: 16px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--bg-raised); border-top: 1px solid var(--border); padding: 56px 0 32px; font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--text-muted); margin-top: 12px; }
.site-footer h2 { font-family: var(--sans); font-size: 0.875rem; font-weight: 600; color: var(--text-faint); margin-bottom: 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--text-muted); text-decoration: none; }
.site-footer ul a:hover { color: var(--text); }
.footer-fine { margin-top: 48px; padding-top: 24px; background: linear-gradient(var(--border), var(--border)) no-repeat var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px; color: var(--text-faint); font-size: 0.8125rem; }
.footer-fine p { max-width: 90ch; margin-bottom: 8px; }

/* =================================================================
   Mockups: the app's own compact UI (design/ui/SPEC.md) at small size.
   ================================================================= */

.mk-win {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow); overflow: hidden; font-family: var(--sans); font-size: 12px; line-height: 16px;
  color: var(--text); text-align: left; user-select: none;
}
.mk-titlebar {
  display: flex; align-items: stretch; height: 34px; background: var(--bg-raised); border-bottom: 1px solid var(--border);
  white-space: nowrap; overflow: hidden;
}
.mk-logo { display: inline-flex; align-items: center; gap: 7px; padding: 0 14px 0 12px; font-family: var(--display); font-size: 12.5px; }
.mk-logo b { font-weight: 600; }
.mk-mark { flex: none; }
.mk-tabs { display: flex; }
.mk-tabs span { display: flex; align-items: center; padding: 0 11px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); position: relative; }
.mk-tabs span.on { color: var(--text); }
.mk-tabs span.on::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; background: var(--accent); }
.mk-winbtns { margin-left: auto; display: flex; align-items: center; gap: 18px; padding: 0 14px; }
.mk-winbtns i { width: 9px; height: 9px; border: 1.5px solid var(--text-faint); border-radius: 2px; }
.mk-winbtns i:first-child { height: 0; border-width: 1px 0 0; }
.mk-body { background: var(--bg); }
.mk-pad { padding: 16px; }
.mk-h { font-size: 13px; font-weight: 600; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; max-width: none; }
.mk-h small { font-size: 11px; font-weight: 500; color: var(--text-faint); }
.mk-h2 { margin-top: 18px; }
.mk-group { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin: 10px 0 6px; max-width: none; }
.ok { color: var(--success); }

.ldot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; }
.ldot-steam { background: #5fa8d3; } .ldot-epic { background: #d4d7dd; } .ldot-gog { background: #a970ff; }
.ldot-xbox { background: #3fb950; } .ldot-ea { background: #ff4d6d; } .ldot-ubisoft { background: #7a8cff; } .ldot-battlenet { background: #00aeff; }

.mk-av {
  flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 4px;
  background: #2b3550; color: var(--text); font-size: 10px; font-weight: 700; position: relative;
}
.mk-av.sm { width: 18px; height: 18px; font-size: 7.5px; }
.mk-av.big { width: 52px; height: 52px; font-size: 19px; }
.mk-av::after { content: ''; position: absolute; right: -3px; bottom: -3px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--bg-raised); display: none; }
.mk-av.p-play::after, .mk-av.p-on::after { display: block; background: var(--success); }
.mk-av.p-away::after { display: block; background: var(--warning); }
.mk-av.speak, .mk-tile.speak .mk-av { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--success); }

/* Hero library */
.mk-hero-body { display: grid; grid-template-columns: 184px minmax(0, 1fr) 172px; height: 452px; }
.mk-list { background: var(--bg-raised); border-right: 1px solid var(--border); padding: 8px; overflow: hidden; }
.mk-search, .mk-input { height: 26px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--text-faint); font-size: 11px; display: flex; align-items: center; padding: 0 9px; }
.mk-list ul, .mk-friends ul, .mk-rows, .mk-mini, .mk-kv { list-style: none; margin: 0; padding: 0; }
.mk-list li { display: flex; align-items: center; height: 25px; padding: 0 8px 0 10px; border-radius: 4px; font-size: 12px; white-space: nowrap; overflow: hidden; }
.mk-list li span { overflow: hidden; text-overflow: ellipsis; }
.mk-list li.sel { background: var(--accent-soft); font-weight: 600; }
.mk-grid-area { position: relative; padding: 0 16px 16px; overflow: hidden; }
.mk-subtabs { display: flex; gap: 18px; height: 36px; align-items: center; border-bottom: 1px solid var(--border); margin: 0 -16px 14px; padding: 0 16px; }
.mk-subtabs span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); height: 100%; display: flex; align-items: center; gap: 6px; position: relative; }
.mk-subtabs span.on { color: var(--text); }
.mk-subtabs span.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.mk-subtabs em { font-style: normal; color: var(--text-faint); font-weight: 500; }
.mk-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 10px; }
.mk-cover { position: relative; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; }
.mk-cover-art, .mk-thumb { position: absolute; inset: 0; background: var(--a, #233049); overflow: hidden; }
.mk-cover-art::before, .mk-cover-art::after, .mk-thumb::before { content: ''; position: absolute; }
.mk-cover-title {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 7px 7px;
  background: linear-gradient(to top, rgba(11, 14, 20, 0.85), rgba(11, 14, 20, 0));
  font-family: var(--display); font-size: 11px; line-height: 13px; font-weight: 600; color: #f3f5f9;
}
.mk-thumb { position: relative; display: block; width: 34px; height: 46px; border-radius: 3px; flex: none; }

/* Abstract covers: flat colour fields with one simple shape each. No game art. */
.c1, .c5, .c9 { --a: #24324b; --b: #f0a46b; --c: #182235; }
.c2, .c6, .c10 { --a: #2f2944; --b: #8b7cf0; --c: #1d1a2c; }
.c3, .c7, .c11 { --a: #1f3a3a; --b: #74d1b8; --c: #142727; }
.c4, .c8, .c12 { --a: #3b2a26; --b: #ef8f62; --c: #241a17; }
.c13 { --a: #2a3446; --b: #f0a46b; --c: #1a2232; }
.c14 { --a: #322a3e; --b: #b9a6ff; }
.c15 { --a: #233a33; --b: #f5c75e; }
.c5 { --a: #20302a; --b: #c8d67a; }
.c6 { --a: #3a2433; --b: #f27aa3; }
.c7 { --a: #263046; --b: #6fb2ff; }
.c8 { --a: #2c2c33; --b: #e9e1d0; }
.c9 { --a: #3a3424; --b: #f5c75e; }
.c10 { --a: #1c2b3d; --b: #9fd4ff; }
.c11 { --a: #33262a; --b: #ff9a7a; }
.c12 { --a: #23362e; --b: #8fe0a4; }
/* sun over a horizon */
.c1 .mk-cover-art::before, .c5 .mk-cover-art::before, .c9 .mk-cover-art::before, .c13 .mk-cover-art::before { width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--b); right: 14%; top: 16%; }
.c1 .mk-cover-art::after, .c5 .mk-cover-art::after, .c9 .mk-cover-art::after, .c13 .mk-cover-art::after { left: 0; right: 0; bottom: 0; height: 46%; background: var(--c); }
/* mountain */
.c2 .mk-cover-art::before, .c6 .mk-cover-art::before, .c10 .mk-cover-art::before, .c14 .mk-cover-art::before { left: -10%; right: -10%; bottom: 0; height: 62%; background: var(--b); clip-path: polygon(0 100%, 38% 18%, 56% 46%, 72% 30%, 100% 100%); opacity: 0.85; }
.c2 .mk-cover-art::after, .c6 .mk-cover-art::after, .c10 .mk-cover-art::after, .c14 .mk-cover-art::after { width: 14%; aspect-ratio: 1; border-radius: 50%; background: var(--text); left: 18%; top: 14%; opacity: 0.8; }
/* diagonal band */
.c3 .mk-cover-art::before, .c7 .mk-cover-art::before, .c11 .mk-cover-art::before, .c15 .mk-cover-art::before { left: -30%; right: -30%; top: 34%; height: 22%; background: var(--b); transform: rotate(-24deg); }
.c3 .mk-cover-art::after, .c7 .mk-cover-art::after, .c11 .mk-cover-art::after, .c15 .mk-cover-art::after { left: -30%; right: -30%; top: 58%; height: 6%; background: var(--b); transform: rotate(-24deg); opacity: 0.5; }
/* rings */
.c4 .mk-cover-art::before, .c8 .mk-cover-art::before, .c12 .mk-cover-art::before { width: 70%; aspect-ratio: 1; border-radius: 50%; border: 5px solid var(--b); left: 15%; top: 18%; }
.c4 .mk-cover-art::after, .c8 .mk-cover-art::after, .c12 .mk-cover-art::after { width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--b); left: 35%; top: 30%; }
.mk-thumb::before { width: 60%; aspect-ratio: 1; border-radius: 50%; background: var(--b); right: -10%; top: 12%; }

.mk-toast {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 6px; box-shadow: var(--shadow);
  font-size: 12px; color: var(--text);
  opacity: 0; visibility: hidden;
}
.mk-spinner { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
.mk-friends { background: var(--bg-raised); border-left: 1px solid var(--border); padding: 4px 10px 10px; display: flex; flex-direction: column; overflow: hidden; }
.mk-friends li { display: flex; align-items: center; gap: 9px; padding: 6px 0; }
.mk-fr { display: flex; flex-direction: column; min-width: 0; }
.mk-fr b { font-size: 12px; font-weight: 500; }
.mk-fr small { font-size: 10.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-fr small.ok { color: var(--success); }
.mk-callbar { margin-top: auto; padding: 10px; background: var(--deep); border: 1px solid var(--border); border-radius: 4px; display: flex; flex-direction: column; gap: 3px; }
.mk-callbar span { font-size: 11px; font-weight: 600; }
.mk-callbar small { font-size: 10.5px; color: var(--text-faint); }

/* Hero scan replay (the one orchestrated moment) */
@media (prefers-reduced-motion: no-preference) {
  .hero-visual .mk-toast { animation: mk-toast 2.9s ease-out 0.2s both; }
  .hero-visual .mk-cover { animation: mk-cover 280ms ease-out both; animation-delay: 1.55s; }
  .hero-visual .mk-cover:nth-child(2) { animation-delay: 1.59s; }
  .hero-visual .mk-cover:nth-child(3) { animation-delay: 1.63s; }
  .hero-visual .mk-cover:nth-child(4) { animation-delay: 1.67s; }
  .hero-visual .mk-cover:nth-child(5) { animation-delay: 1.71s; }
  .hero-visual .mk-cover:nth-child(6) { animation-delay: 1.75s; }
  .hero-visual .mk-cover:nth-child(7) { animation-delay: 1.79s; }
  .hero-visual .mk-cover:nth-child(8) { animation-delay: 1.83s; }
  .hero-visual .mk-cover:nth-child(9) { animation-delay: 1.87s; }
  .hero-visual .mk-cover:nth-child(10) { animation-delay: 1.91s; }
  .hero-visual .mk-cover:nth-child(11) { animation-delay: 1.95s; }
  .hero-visual .mk-cover:nth-child(12) { animation-delay: 1.99s; }
  .hero-visual .mk-cover:nth-child(13) { animation-delay: 2.03s; }
  .hero-visual .mk-cover:nth-child(14) { animation-delay: 2.07s; }
  .hero-visual .mk-cover:nth-child(15) { animation-delay: 2.11s; }
}
@keyframes mk-cover { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes mk-toast {
  0% { opacity: 0; visibility: visible; transform: translate(-50%, 8px); }
  7% { opacity: 1; transform: translate(-50%, 0); }
  86% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; visibility: hidden; transform: translate(-50%, 0); }
}

/* Store */
.mk-rows li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); border-radius: 4px; }
.mk-rows li + li { margin-top: 6px; }
.mk-st { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mk-st b { font-size: 12.5px; font-weight: 600; }
.mk-st small { font-size: 11px; color: var(--text-faint); display: flex; align-items: center; }
.mk-price { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.mk-price s { color: var(--text-faint); font-size: 10.5px; }
.mk-price b { font-size: 13px; color: var(--text); }
.mk-price.free b { color: var(--success); }
.mk-price.pass b { color: #3fb950; font-size: 11px; border: 1px solid rgba(63, 185, 80, 0.5); border-radius: 4px; padding: 1px 6px; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border: 1px solid var(--border); border-radius: 4px; font-size: 11px; color: var(--text-muted); }

/* Call */
.mk-call { background: var(--deep); padding: 0 0 14px; }
.mk-call-head { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; background: var(--bg); border-bottom: 1px solid var(--border); }
.mk-call-head b { font-size: 13px; }
.mk-call-head .ok { font-size: 11px; font-weight: 600; }
.mk-pill { margin-left: auto; font-size: 10.5px; color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; }
.mk-pill::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--success); margin-right: 6px; }
.mk-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; }
.mk-tile { position: relative; display: grid; place-items: center; height: 118px; background: var(--surface); border-radius: 4px; border: 2px solid transparent; }
.mk-tile.speak { border-color: var(--success); }
.mk-tile-name { position: absolute; left: 8px; bottom: 7px; font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.mk-tile-game { position: absolute; right: 8px; bottom: 7px; font-size: 10.5px; color: var(--success); }
.mk-mic-off { width: 8px; height: 10px; border-radius: 4px; background: var(--danger); }
.mk-controls { display: flex; justify-content: center; gap: 8px; }
.mk-controls i { width: 38px; height: 32px; border-radius: 4px; background: var(--surface-hover); }
.mk-controls i.hang { width: 48px; background: var(--danger); }

/* PC */
.mk-pc { display: grid; gap: 14px; }
.mk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk-stats div { background: var(--surface); border-radius: 4px; padding: 10px 12px; }
.mk-stats small { display: block; font-size: 10.5px; color: var(--text-faint); }
.mk-stats b { font-size: 19px; line-height: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mk-curve { background: var(--surface); border-radius: 4px; padding: 12px; }
.mk-curve svg { width: 100%; height: auto; aspect-ratio: 320 / 120; }
.mk-curve .grid line { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mk-curve .area { fill: rgba(255, 107, 53, 0.12); }
.mk-curve .line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.mk-curve .pts circle { fill: var(--text); }
.mk-curve .now { stroke: var(--text-faint); stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.mk-driver { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border-radius: 4px; padding: 10px 12px; }
.mk-driver span:first-child { display: flex; flex-direction: column; }
.mk-driver small { color: var(--warning); font-size: 11px; }
.mk-btn { background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 11.5px; border-radius: 4px; padding: 6px 12px; white-space: nowrap; }

/* Chat */
.mk-chat { display: grid; gap: 12px; }
.mk-msg { display: flex; gap: 10px; color: var(--text-muted); font-size: 12px; line-height: 18px; }
.mk-msg b { color: var(--text); font-weight: 600; }
.mk-msg time { color: var(--text-faint); font-size: 10.5px; margin-left: 4px; }
.mk-invite { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 10px; margin-left: 36px; }
.mk-invite > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.mk-invite small { font-size: 10.5px; color: var(--text-faint); }
.mk-invite b { font-size: 13px; }

/* Overlay */
.mk-overlay { position: relative; height: 300px; background: #121a26; }
.mk-scene, .mk-scene i { position: absolute; inset: 0; }
.mk-scene .s1 { background: #1b2638; }
.mk-scene .s2 { top: 52%; background: #16202d; clip-path: polygon(0 40%, 20% 10%, 45% 35%, 70% 0, 100% 30%, 100% 100%, 0 100%); }
.mk-scene .s3 { top: 70%; background: #10171f; }
.mk-scene::after { content: ''; position: absolute; inset: 0; background: rgba(6, 8, 12, 0.55); }
.mk-ov-bar { position: absolute; left: 0; right: 0; top: 0; height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: rgba(11, 14, 20, 0.92); border-bottom: 1px solid var(--border); }
.mk-ov-bar .mk-logo { padding: 0; }
.mk-ov-bar small { color: var(--text-faint); }
.mk-keys { margin-left: auto; display: flex; gap: 4px; }
kbd { font: 600 10px/1 var(--sans); color: var(--text-muted); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 4px; padding: 3px 6px; background: var(--surface); }
.mk-ov-panel { position: absolute; top: 56px; width: 40%; background: rgba(14, 18, 25, 0.94); border: 1px solid var(--border); border-radius: 6px; padding: 12px; }
.mk-ov-panel.left { left: 16px; }
.mk-ov-panel.right { right: 16px; }
.mk-mini li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12px; }
.mk-kv li { display: flex; justify-content: space-between; padding: 5px 0; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.mk-kv li:first-child { border-top: 0; }
.mk-kv span { color: var(--text-faint); }

/* Downloads */
.mk-dl li { gap: 14px; }
.mk-bar { width: 32%; height: 4px; border-radius: 2px; background: var(--surface-hover); overflow: hidden; }
.mk-bar i { display: block; height: 100%; background: var(--accent); }
.mk-bar .w72 { width: 72%; } .mk-bar .w31 { width: 31%; } .mk-bar .w0 { width: 0; }
.mk-pct { width: 32px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-muted); }

/* Lighting */
.mk-light li span:nth-child(2) { flex: 1; font-size: 12.5px; }
.mk-swatch { width: 28px; height: 18px; border-radius: 4px; }
.sw1 { background: linear-gradient(90deg, #ff6b35, #f5b83d); }
.sw2 { background: linear-gradient(90deg, #4da3ff, #8b7cf0); }
.sw3 { background: #f6d9a8; }
.mk-toggle { width: 28px; height: 16px; border-radius: 999px; background: var(--surface-hover); position: relative; }
.mk-toggle.on { background: var(--accent); }
.mk-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--text); }
.mk-toggle.on::after { left: 14px; background: var(--on-accent); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .promise-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .toc { position: static; }
  .toc ul { display: flex; flex-wrap: wrap; gap: 8px; border-left: 0; }
  .toc a { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 4px 10px; margin: 0; font-size: 0.875rem; }
  .toc a:hover { border-color: var(--accent); }
  .feature:first-child { border-top: 1px solid var(--border); padding-top: 56px; margin-top: 32px; }
}

@media (max-width: 900px) {
  :root { --section: 80px; }
  .hero { padding-top: 48px; }
  .hero-grid, .pillar, .pillar.flip, .download-grid, .smartscreen, .feature { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pillar.flip .pillar-copy { order: 0; }
  .pillar { padding: 24px 0; }
  .install-notes .promise-list { grid-template-columns: minmax(0, 1fr); }
  .end-inner { flex-direction: column; align-items: flex-start; }
  .release { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --section: 64px; }
  body { font-size: 1rem; }
  h1, h2 { hyphens: auto; overflow-wrap: break-word; }
  .menu-toggle {
    display: inline-flex; margin-left: auto; align-items: center; min-height: 40px; padding: 0 14px;
    background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-sm);
    font: 600 0.9375rem/1 var(--sans); cursor: pointer;
  }
  .js .site-nav { display: none; }
  .js .site-header.open .site-nav { display: flex; }
  .header-inner { flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; min-height: 64px; }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 12px; margin: 0; padding: 8px 0 16px; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .site-nav ul a[aria-current='page']::after { left: 4px; right: auto; width: 24px; bottom: -1px; }
  .lang-switch { align-self: flex-start; }
  .site-nav .btn { align-self: stretch; min-height: 44px; }
  .hero-visual .mk-win { min-width: 540px; }
  .hero-visual .mk-hero-body { grid-template-columns: minmax(0, 1fr) 160px; height: 400px; }
  .hero-visual .mk-list { display: none; }
  .hero-visual .mk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mk-tile-game { display: none; }
  .section-head { margin-bottom: 40px; }
  .promise-list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .release-card { padding: 22px; }
  .release-facts { grid-template-columns: 1fr 1fr; }
  .hash-row { flex-direction: column; }
  .ss-dialog { padding: 22px 20px 20px; }
  .ss-run::after { left: auto; right: calc(100% + 10px); }
  .mk-stage .mk-tile { height: 92px; }
  .mk-overlay { height: 260px; }
  .mk-ov-panel { width: 44%; }
  .mk-tabs span:nth-child(n + 4) { display: none; }
  .feature-visual .mk-hero-body { grid-template-columns: minmax(0, 1fr); }
  .feature-visual .mk-hero-body .mk-list { display: none; }
  .feature-visual .mk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-visual .mk-cover:nth-child(n + 7) { display: none; }
  .feature-visual .mk-hero-body { height: auto; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .mk-toast { display: none; }
}
