/* valkyr site: the hall of judgement, on top of Monsoon CSS.
   Night: a dark hall under a gold eclipse. Day: a bone white piazza at noon
   with long shadows. Every color is a token below; both themes follow
   data-theme on <html>. The --c-* tokens also paint the landing canvases. */

:root,
:root[data-theme='dark'] {
  --bg: #06080c;
  --bg-2: #0a0d13;
  --panel: #0d1219;
  --panel-hi: #121a24;
  --panel-lo: #090d13;
  --line: rgba(150, 190, 230, 0.12);
  --line-hi: rgba(150, 190, 230, 0.26);
  --ink: #eef2f7;
  --text: #c3ccd8;
  --muted-ink: #8391a4;
  --hud: rgba(140, 200, 235, 0.42);
  --shadow-ink: rgba(0, 0, 0, 0.55);
  --vk-gold: #f5b83d;
  --mark-wing: #f5b83d;
  --mark-blade: #3ad7ef;
  --vk-gold-ink: #f5b83d;
  --vk-gold-soft: rgba(245, 184, 61, 0.14);
  --vk-cyan: #3ad7ef;
  --vk-cyan-ink: #5fe0f3;
  --vk-cyan-soft: rgba(58, 215, 239, 0.12);
  --vk-red: #ff4d6d;
  --vk-red-ink: #ff6b86;
  --vk-red-soft: rgba(255, 77, 109, 0.13);
  --vk-green: #3ddc97;
  --vk-green-ink: #52e3a5;
  --vk-green-soft: rgba(61, 220, 151, 0.12);
  --vk-violet: #a68bff;
  --vk-violet-soft: rgba(166, 139, 255, 0.14);
  --on-gold: #160f02;
  --mock-bg: #0a0e14;
  --mock-side: #0d131b;
  --mock-card: #121a24;
  --mock-active: rgba(245, 184, 61, 0.16);
  --code-bg: #080b10;
  --glow: 0 0 0 1px rgba(245, 184, 61, 0.25), 0 18px 60px -20px rgba(245, 184, 61, 0.35);
  --vk-display: 'Instrument Serif', 'Kaisei Tokumin', 'Iowan Old Style', Georgia, serif;
  --vk-head: 'Sora', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', system-ui, sans-serif;
  --vk-text: 'Sora', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', system-ui, sans-serif;
  --vk-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --cut: 14px;
  --radius: 4px;
  --header-h: 68px;
  --c-sky0: #020306;
  --c-sky1: #070a10;
  --c-sky2: #1d1508;
  --c-floor0: #0f0d09;
  --c-floor1: #05070b;
  --c-sun: rgba(245, 184, 61, 0.5);
  --c-ring: rgba(245, 184, 61, 0.7);
  --c-wing: #f5b83d;
  --c-blade: #3ad7ef;
  --c-iris: #3ad7ef;
  --c-line: rgba(245, 184, 61, 0.13);
  --c-fig: #c9d2dd;
  --c-shadow: #000000;
  --c-guilty: #ff4d6d;
  --c-beam: #ffd27a;
  --c-text: #eef2f7;
  --c-mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}

:root[data-theme='light'] {
  /* BRAND.md: on light the mark turns ink with an amber blade. */
  --mark-wing: #0e141d;
  --mark-blade: #d18a0c;
  --bg: #f2f0ea;
  --bg-2: #ebe8e0;
  --panel: #ffffff;
  --panel-hi: #fbfaf6;
  --panel-lo: #e9e6de;
  --line: rgba(25, 35, 50, 0.12);
  --line-hi: rgba(25, 35, 50, 0.24);
  --ink: #0e141d;
  --text: #2a3340;
  --muted-ink: #586374;
  --hud: rgba(30, 90, 130, 0.35);
  --shadow-ink: rgba(40, 35, 20, 0.18);
  --vk-gold: #e9a21a;
  --vk-gold-ink: #8a5a00;
  --vk-gold-soft: rgba(233, 162, 26, 0.16);
  --vk-cyan: #0d9bb5;
  --vk-cyan-ink: #076d80;
  --vk-cyan-soft: rgba(13, 155, 181, 0.1);
  --vk-red: #d92d50;
  --vk-red-ink: #b01d3d;
  --vk-red-soft: rgba(217, 45, 80, 0.1);
  --vk-green: #14935f;
  --vk-green-ink: #0d7049;
  --vk-green-soft: rgba(20, 147, 95, 0.1);
  --vk-violet: #6a4fd6;
  --vk-violet-soft: rgba(106, 79, 214, 0.1);
  --on-gold: #1b1203;
  --mock-bg: #f6f4ef;
  --mock-side: #ece9e1;
  --mock-card: #ffffff;
  --mock-active: rgba(233, 162, 26, 0.2);
  --code-bg: #0c1118;
  --glow: 0 0 0 1px rgba(233, 162, 26, 0.35), 0 18px 50px -24px rgba(150, 100, 0, 0.35);
  --c-sky0: #ddd5c4;
  --c-sky1: #e9e3d6;
  --c-sky2: #f5f0e5;
  --c-floor0: #ece6d9;
  --c-floor1: #f2f0ea;
  --c-sun: rgba(209, 138, 12, 0.2);
  --c-ring: rgba(14, 20, 29, 0.5);
  --c-wing: #0e141d;
  --c-blade: #d18a0c;
  --c-iris: #d18a0c;
  --c-line: rgba(14, 20, 29, 0.1);
  --c-fig: #0e141d;
  --c-shadow: #6b5434;
  --c-guilty: #c8243f;
  --c-beam: #b87400;
  --c-text: #0e141d;
  color-scheme: light;
}

/* ---------------------------------------------------------------- base */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
html body,
html body.bg-background {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--vk-text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
main {
  display: block;
  outline: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--vk-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--vk-cyan-ink);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
code,
kbd,
pre {
  font-family: var(--vk-mono);
  font-size: 0.88em;
}
:not(pre) > code {
  background: var(--panel-lo);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.08em 0.38em;
  border-radius: 3px;
  /* Breaks come from the <wbr> points the build adds (codeBreaks in
     md.mjs). break-word only splits a part wider than the whole line, and
     unlike anywhere it does not squeeze table columns. */
  overflow-wrap: break-word;
}
img,
svg {
  max-width: 100%;
}
svg {
  overflow: visible;
}
::selection {
  background: var(--vk-gold);
  color: var(--on-gold);
}
:focus-visible {
  outline: 2px solid var(--vk-gold);
  outline-offset: 3px;
  border-radius: 2px;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}
.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: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--vk-gold);
  color: var(--on-gold);
  padding: 10px 16px;
  font-weight: 700;
  transition: top 0.15s;
}
.skip:focus {
  top: 12px;
}
.muted {
  color: var(--muted-ink);
}
.small {
  font-size: 0.86rem;
}
.note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted-ink);
  font-size: 0.85rem;
  margin: 14px 0 0;
}
.note svg {
  flex: none;
  margin-top: 3px;
}
.glyphfox {
  flex: none;
  vertical-align: middle;
}

/* ---------------------------------------------------------------- buttons */

.btn-vk {
  --bc: var(--line-hi);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  font-family: var(--vk-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--bc);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform 0.15s, background 0.15s, box-shadow 0.2s, color 0.15s;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn-primary-vk {
  background: linear-gradient(180deg, #ffd37a, var(--vk-gold) 55%, #d9951c);
  color: var(--on-gold);
  border-color: transparent;
}
.btn-primary-vk:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}
.btn-ghost-vk {
  background: var(--panel-lo);
}
.btn-ghost-vk:hover {
  background: var(--panel-hi);
  border-color: var(--vk-gold);
}
.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.82rem;
}
.btn-lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 1rem;
}
.iconbtn {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  gap: 6px;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--panel-lo);
  border-radius: var(--radius);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.iconbtn:hover {
  color: var(--ink);
  border-color: var(--line-hi);
  text-decoration: none;
}
.copybtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 8px;
  color: var(--muted-ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  font-size: 0.75rem;
  font-family: var(--vk-mono);
}
.copybtn:hover {
  color: var(--ink);
  border-color: var(--line-hi);
}
.copybtn .copy-done,
.copybtn.is-done .copy-idle {
  display: none;
}
.copybtn.is-done .copy-done {
  display: inline-flex;
  color: var(--vk-green-ink);
}
.copybtn .copy-idle {
  display: inline-flex;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-family: var(--vk-head);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--vk-gold-ink);
}

/* ---------------------------------------------------------------- pills and status */

.pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  font-family: var(--vk-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 2px;
  white-space: nowrap;
  color: var(--muted-ink);
}
.act-none,
.act-log {
  color: var(--muted-ink);
}
.pill.act-review {
  color: var(--vk-violet);
}
.pill.act-shadowqueue {
  color: var(--vk-cyan-ink);
}
.pill.act-kick {
  color: var(--vk-gold-ink);
}
.pill.act-restrict,
.pill.act-ban {
  color: var(--vk-red-ink);
}
.vk-status {
  flex: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  font-family: var(--vk-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
}
.vk-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.vk-status.ok {
  color: var(--vk-green-ink);
  background: var(--vk-green-soft);
}
.vk-status.mid {
  color: var(--vk-cyan-ink);
  background: var(--vk-cyan-soft);
}
.vk-status.soon {
  color: var(--vk-gold-ink);
  background: var(--vk-gold-soft);
}
.tagchip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--vk-gold-ink);
  background: var(--vk-gold-soft);
  border-radius: 2px;
  margin: 0 4px 4px 0;
}
.ictile {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  color: var(--vk-cyan-ink);
  background: var(--vk-cyan-soft);
  border: 1px solid color-mix(in srgb, var(--vk-cyan) 35%, transparent);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.ictile.gold {
  color: var(--vk-gold-ink);
  background: var(--vk-gold-soft);
  border-color: color-mix(in srgb, var(--vk-gold) 40%, transparent);
}
.ictile.red {
  color: var(--vk-red-ink);
  background: var(--vk-red-soft);
  border-color: color-mix(in srgb, var(--vk-red) 40%, transparent);
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s, height 0.2s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none !important;
}
.brand .lockup {
  display: block;
  width: auto;
  height: 30px;
}
.fbrand .lockup {
  height: 36px;
}
.main-nav {
  margin-left: auto;
}
.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  font-family: var(--vk-head);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none !important;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--vk-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.main-nav a:hover,
.main-nav a.current {
  color: var(--ink);
}
.main-nav a:hover::after,
.main-nav a.current::after {
  transform: scaleX(1);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-btn {
  grid-auto-flow: column;
  font-family: var(--vk-mono);
  font-size: 0.75rem;
  font-weight: 700;
}
.lb {
  position: relative;
}
.lb-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--line-hi);
  box-shadow: 0 20px 50px -12px var(--shadow-ink);
  z-index: 60;
}
.lb-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  cursor: pointer;
  color: var(--text);
  border-radius: 2px;
}
.lb-list li.active {
  background: var(--vk-gold-soft);
  color: var(--ink);
}
.lb-list li[aria-selected='true'] {
  color: var(--vk-gold-ink);
  font-weight: 700;
}
.themebtn .ic-sun {
  display: none;
}
[data-theme='light'] .themebtn .ic-sun {
  display: inline-flex;
}
[data-theme='light'] .themebtn .ic-moon {
  display: none;
}
.themebtn .ic-moon,
.themebtn .ic-sun {
  transition: transform 0.35s;
}
.themebtn:hover .ic-moon,
.themebtn:hover .ic-sun {
  transform: rotate(-20deg);
}
.menubtn {
  display: none;
}

/* ---------------------------------------------------------------- headings shared */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--vk-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vk-gold-ink);
}
.eb-mark {
  width: 22px;
  height: 2px;
  background: var(--vk-gold);
  box-shadow: 6px 0 0 -0px transparent;
  position: relative;
}
.eb-mark::after {
  content: '';
  position: absolute;
  right: -6px;
  top: -2px;
  width: 6px;
  height: 6px;
  background: var(--vk-gold);
  transform: rotate(45deg);
}
.sec {
  position: relative;
  padding: clamp(72px, 10vw, 120px) 0;
}
.sec-alt {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sec-head {
  max-width: 820px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.sec-title {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.sec-lead {
  margin: 16px 0 0;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text);
  max-width: 72ch;
}
.sub-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  text-transform: uppercase;
  margin: 56px 0 12px;
}
.sub-lead {
  max-width: 72ch;
  color: var(--muted-ink);
}
.panel {
  position: relative;
  background: linear-gradient(180deg, var(--panel-hi), var(--panel));
  border: 1px solid var(--line);
  padding: clamp(16px, 2.4vw, 24px);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.panel h3 svg {
  color: var(--vk-gold-ink);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.panel-head h3 {
  margin: 0;
}
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ticks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ticks li svg {
  color: var(--vk-green-ink);
  margin-top: 4px;
}
.ticks.cols {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 28px;
}

/* reveal on scroll, only when scripts run */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- install line (hero, CTA) */

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}

.install-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 6px 6px 6px 14px;
  background: var(--code-bg);
  border: 1px solid var(--line-hi);
  color: #dfe6ef;
  flex-wrap: wrap;
}

.install-pill code {
  background: none;
  border: 0;
  padding: 0;
  color: #e9eef5;
}

.ip-label {
  font-family: var(--vk-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vk-gold);
}

.ip-prompt {
  color: #f5b83d;
  margin-right: 4px;
}

.install-pill .copybtn {
  color: #9fb0c3;
  border-color: rgba(255, 255, 255, 0.14);
}

/* ---------------------------------------------------------------- radar */

.sec-radar {
  background: radial-gradient(60% 60% at 30% 40%, var(--vk-cyan-soft), transparent 70%), var(--bg);
}
.radar {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px;
}
.radar-stage {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.radar-frame {
  position: relative;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--vk-cyan) 8%, var(--panel-lo)), var(--panel-lo) 70%);
  border: 1px solid var(--line-hi);
  overflow: hidden;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.radar-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, transparent 0 300deg, color-mix(in srgb, var(--vk-cyan) 22%, transparent) 360deg);
  border-radius: 50%;
  transform: scale(1.5);
  animation: spin 5s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.5;
}
[data-theme='light'] .radar-frame::after {
  mix-blend-mode: multiply;
  opacity: 0.25;
}
.radar-map {
  width: 100%;
  height: 100%;
  display: block;
}
.radar-map .floor {
  fill: transparent;
}
.radar-map .vk-grid path {
  stroke: var(--line);
  stroke-width: 0.15;
  fill: none;
}
.radar-map .walls rect {
  fill: color-mix(in srgb, var(--ink) 14%, transparent);
  stroke: var(--line-hi);
  stroke-width: 0.15;
}
.radar-map .walls rect.low {
  fill: color-mix(in srgb, var(--ink) 7%, transparent);
  stroke-dasharray: 0.5 0.5;
}
.radar-map .walls rect.outer {
  fill: none;
  stroke: var(--hud);
  stroke-width: 0.35;
}
.radar-map .walls rect.hedge {
  fill: color-mix(in srgb, var(--vk-green) 20%, transparent);
  stroke: none;
}
.pl .cone {
  fill: color-mix(in srgb, var(--vk-cyan) 26%, transparent);
}
.pl .halo {
  fill: none;
  stroke: var(--vk-cyan);
  stroke-width: 0.25;
  opacity: 0.6;
}
.pl .body {
  fill: var(--vk-cyan);
}
.pl.team1 .body {
  fill: var(--vk-violet);
}
.pl.team1 .cone {
  fill: color-mix(in srgb, var(--vk-violet) 24%, transparent);
}
.pl.team1 .halo {
  stroke: var(--vk-violet);
}
.pl .pid {
  font-family: var(--vk-mono);
  font-size: 1.8px;
  font-weight: 700;
  text-anchor: middle;
  fill: var(--ink);
}
.pl.flagged .body {
  fill: var(--vk-red);
}
.pl.flagged .halo {
  stroke: var(--vk-red);
  stroke-width: 0.4;
  opacity: 1;
  animation: halo 1.2s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes halo {
  from {
    transform: scale(0.8);
    opacity: 1;
  }
  to {
    transform: scale(1.8);
    opacity: 0;
  }
}
.radar-pops {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pop {
  position: absolute;
  transform: translate(-50%, calc(-100% - 14px));
  padding: 5px 8px;
  font-family: var(--vk-mono);
  font-size: 0.68rem;
  white-space: nowrap;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--vk-red);
  box-shadow: 0 10px 30px -8px var(--shadow-ink);
  animation: pop 2.6s ease forwards;
}
.pop b {
  color: var(--vk-red-ink);
  margin-right: 6px;
}
@keyframes pop {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(-100% - 4px));
  }
  10%,
  80% {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 14px));
  }
  100% {
    opacity: 0;
  }
}
.radar-hud {
  position: absolute;
  inset: 12px 14px auto;
  display: flex;
  justify-content: space-between;
  font-family: var(--vk-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--vk-cyan-ink);
  pointer-events: none;
}
.hud-tl {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.hud-tr {
  color: var(--ink);
  font-weight: 700;
}
.radar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.slider {
  position: relative;
  flex: 1 1 180px;
  height: 36px;
  cursor: pointer;
  touch-action: none;
  min-width: 140px;
}
.slider-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  background: var(--panel-lo);
  border: 1px solid var(--line);
}
.slider-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--vk-cyan), var(--vk-gold));
}
.slider .tick {
  position: absolute;
  top: -6px;
  width: 2px;
  height: 16px;
  margin-left: -1px;
  background: var(--muted-ink);
}
.slider .tick.act-kick,
.slider .tick.act-restrict,
.slider .tick.act-ban {
  background: var(--vk-red);
}
.slider .tick.act-review,
.slider .tick.act-shadowqueue {
  background: var(--vk-violet);
}
.slider-thumb {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  background: var(--vk-gold);
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px var(--vk-gold-soft);
}
.slider:focus-visible .slider-thumb {
  box-shadow: 0 0 0 4px var(--vk-gold-soft), 0 0 0 6px var(--vk-gold);
}
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--line-hi);
  background: var(--panel-lo);
}
.seg button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  font-family: var(--vk-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted-ink);
}
.seg button + button {
  border-left: 1px solid var(--line);
}
.seg button[aria-checked='true'] {
  background: var(--vk-gold);
  color: var(--on-gold);
}
.radar-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, var(--panel-hi), var(--panel));
  border: 1px solid var(--line);
  padding: 16px;
  max-height: 100%;
}
.radar-side h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  color: var(--ink);
}
.radar-side h3 svg {
  color: var(--vk-red-ink);
}
.feed {
  list-style: none;
  margin: 0;
  padding: 0 4px 0 0;
  display: grid;
  gap: 10px;
  overflow-y: auto;
  max-height: 520px;
  flex: 1;
  scrollbar-width: thin;
}
.fv {
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted-ink);
  padding: 10px 12px;
  background: var(--panel-lo);
  font-size: 0.82rem;
  transition: opacity 0.3s, border-color 0.3s, background 0.3s;
}
.js .radar.ready .fv {
  opacity: 0.35;
}
.js .radar.ready .fv.past {
  opacity: 1;
}
.fv.now {
  background: color-mix(in srgb, var(--vk-red) 10%, var(--panel-lo));
}
.fv.act-review,
.fv.act-shadowqueue {
  border-left-color: var(--vk-violet);
}
.fv.act-kick {
  border-left-color: var(--vk-gold);
}
.fv.act-restrict,
.fv.act-ban {
  border-left-color: var(--vk-red);
}
.fv p {
  margin: 4px 0;
}
.fv-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fv-time {
  font-family: var(--vk-mono);
  font-size: 0.72rem;
  color: var(--vk-cyan-ink);
}
.fv-player {
  font-weight: 700;
  color: var(--ink);
  margin-right: auto;
}
.fv-player small {
  font-weight: 500;
  color: var(--muted-ink);
}
.fv-sum {
  color: var(--text);
}
.fv-ev {
  list-style: none;
  margin: 6px 0;
  padding: 0;
  display: grid;
  gap: 3px;
  font-family: var(--vk-mono);
  font-size: 0.72rem;
}
.fv-ev li {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fv-ev span {
  color: var(--muted-ink);
}
.fv-ev b {
  color: var(--ink);
}
.fv-ev i {
  font-style: normal;
  color: var(--muted-ink);
}
.fv-meta {
  display: flex;
  gap: 14px;
  font-size: 0.74rem;
  color: var(--muted-ink);
}
.fv-meta b {
  color: var(--ink);
  font-family: var(--vk-mono);
}
.roster {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.roster-btn {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  font-family: var(--vk-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--ink);
}
.roster-btn svg {
  transition: transform 0.2s;
}
.roster-btn[aria-expanded='true'] svg {
  transform: rotate(180deg);
}
.roster ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
}
.roster li {
  display: grid;
  grid-template-columns: 10px 28px 1fr auto;
  gap: 8px;
  align-items: center;
}
.swatch {
  width: 10px;
  height: 10px;
  background: var(--vk-cyan);
}
.swatch.team1 {
  background: var(--vk-violet);
}
.radar-note {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted-ink);
  font-size: 0.82rem;
  margin: 0;
}
.radar-legend {
  grid-column: 1 / -1;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted-ink);
}
.radar-legend span,
.viz-legend span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.vk-lg {
  display: inline-block;
  width: 12px;
  height: 12px;
}
.vk-lg.honest {
  background: var(--vk-cyan);
  border-radius: 50%;
}
.vk-lg.cheat {
  background: var(--vk-red);
  border-radius: 50%;
}
.vk-lg.wall {
  background: color-mix(in srgb, var(--ink) 18%, transparent);
  border: 1px solid var(--line-hi);
}
.vk-lg.human {
  background: var(--vk-cyan);
  height: 3px;
}
.vk-lg.bot {
  background: var(--vk-red);
  height: 3px;
}

/* ---------------------------------------------------------------- how */

.arch-wrap {
  position: relative;
  background: var(--panel-lo);
  border: 1px solid var(--line);
  padding: clamp(12px, 2vw, 24px);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.arch {
  width: 100%;
  height: auto;
  display: block;
}
.arch .node-bg {
  fill: var(--panel-hi);
  stroke: var(--line-hi);
  stroke-width: 1.2;
}
.arch .node-cut {
  stroke: var(--vk-gold);
  stroke-width: 2;
}
.arch .n-engine .node-bg {
  fill: color-mix(in srgb, var(--vk-gold) 6%, var(--panel));
  stroke: color-mix(in srgb, var(--vk-gold) 55%, transparent);
}
.arch .n-verdict .node-bg {
  stroke: color-mix(in srgb, var(--vk-red) 60%, transparent);
}
.arch .n-client .node-bg {
  stroke-dasharray: 6 5;
}
.arch .nt {
  font-family: var(--vk-head);
  font-weight: 700;
  font-size: 18px;
  fill: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.arch .ns {
  font-family: var(--vk-text);
  font-size: 13px;
  fill: var(--muted-ink);
}
.arch .vk-chip {
  fill: var(--panel-lo);
  stroke: var(--line-hi);
}
.arch .ct {
  font-family: var(--vk-mono);
  font-size: 12px;
  fill: var(--vk-cyan-ink);
}
.arch .wire {
  fill: none;
  stroke: var(--vk-cyan);
  stroke-width: 2;
  opacity: 0.7;
}
.arch .wire.dashed {
  stroke-dasharray: 6 6;
  stroke: var(--vk-violet);
}
.arch .wire.faint {
  opacity: 0.3;
}
.arch .wire.return {
  stroke: var(--vk-gold);
  stroke-dasharray: 3 7;
}
.arch .flow-dot {
  fill: var(--vk-gold);
}
.arch .wl {
  font-family: var(--vk-mono);
  font-size: 12px;
  fill: var(--vk-cyan-ink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.arch .wl.vk-hint {
  fill: var(--vk-violet);
}
.arch-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}
.arch-list li {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--panel);
  border-left: 2px solid var(--vk-gold);
}
.arch-list b {
  display: block;
  color: var(--ink);
}
.arch-list span {
  color: var(--muted-ink);
  font-size: 0.88rem;
}
.al-ic {
  color: var(--vk-gold-ink);
}
.vk-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.step-card {
  position: relative;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--vk-gold);
}
.step-n {
  font-family: var(--vk-head);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--vk-gold);
  display: block;
  margin-bottom: 10px;
}
.step-card h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 0.92rem;
  margin: 0;
}

/* ---------------------------------------------------------------- tiers */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: linear-gradient(180deg, var(--panel-hi), var(--panel));
  border: 1px solid var(--line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform 0.25s, border-color 0.25s;
}
.tier-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-hi);
}
.tier-card.main {
  border-color: color-mix(in srgb, var(--vk-gold) 50%, transparent);
  box-shadow: var(--glow);
}
.tier-card.optin {
  border-style: dashed;
}
.tier-art {
  height: 150px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.tier-art svg {
  max-height: 150px;
  width: auto;
}
.tier-tag {
  font-family: var(--vk-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vk-gold-ink);
  margin: 0 0 6px;
}
.tier-card h3 {
  font-size: 1.35rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tier-card .ticks {
  margin-top: auto;
  font-size: 0.9rem;
}
.tier-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 22px 0 0;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--vk-gold) 35%, transparent);
  background: var(--vk-gold-soft);
  color: var(--ink);
}
.tier-note svg {
  color: var(--vk-gold-ink);
  margin-top: 3px;
}

/* ---------------------------------------------------------------- real time */

.sec-rt {
  background: radial-gradient(50% 60% at 80% 20%, var(--vk-red-soft), transparent 70%), var(--bg);
}
.rt-console {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  border: 1px solid var(--line-hi);
  background: var(--panel-lo);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.rt-tabs {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  padding: 10px;
  gap: 4px;
}
.rt-tabs button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 12px;
  text-align: left;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.rt-tabs button:hover {
  background: var(--panel);
}
.rt-tabs button[aria-checked='true'] {
  background: color-mix(in srgb, var(--vk-red) 9%, var(--panel));
  border-left-color: var(--vk-red);
  color: var(--ink);
}
.rt-ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--vk-red-ink);
  background: var(--vk-red-soft);
}
.rt-screen {
  position: relative;
  padding: clamp(16px, 2.4vw, 28px);
  overflow: hidden;
  min-height: 360px;
}
.rt-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--vk-red) 9%, transparent), transparent);
  width: 30%;
  animation: rtscan 4s linear infinite;
}
@keyframes rtscan {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(400%);
  }
}
.rt-chain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  position: relative;
}
.rt-step {
  position: relative;
  padding: 16px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  animation: stepin 0.5s both;
  animation-delay: calc(var(--d, 0) * 1ms);
}
.rt-step.s1 {
  --d: 0;
  border-top: 2px solid var(--vk-red);
}
.rt-step.s2 {
  --d: 120;
  border-top: 2px solid var(--vk-gold);
}
.rt-step.s3 {
  --d: 240;
  border-top: 2px solid var(--vk-cyan);
}
.rt-step.s4 {
  --d: 360;
  border-top: 2px solid var(--vk-violet);
}
.rt-step.s5 {
  --d: 480;
  border-top: 2px solid var(--vk-green);
}
.rt-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 28px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--line-hi);
  border-right: 2px solid var(--line-hi);
  transform: rotate(45deg);
}
@keyframes stepin {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.rt-n {
  font-family: var(--vk-mono);
  font-size: 0.7rem;
  color: var(--muted-ink);
}
.rt-step h4 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 4px 0 8px;
}
.rt-step p {
  margin: 0 0 8px;
}
.rt-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.rt-codes code {
  font-size: 0.7rem;
}
.rt-meter {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 0.72rem;
  color: var(--muted-ink);
  margin: 6px 0;
}
.rt-meter i {
  position: relative;
  height: 6px;
  background: var(--panel-lo);
  border: 1px solid var(--line);
}
.rt-meter i::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: var(--vk-violet);
}
.rt-meter.llr i::after {
  background: var(--vk-gold);
}
.rt-meter b {
  font-family: var(--vk-mono);
  color: var(--ink);
}
.rt-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.rt-table {
  grid-column: 1 / -1;
}
.rt-sched {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.rt-sched li {
  display: grid;
  gap: 2px;
  padding-left: 12px;
  border-left: 2px solid var(--vk-cyan);
}
.rt-sched b {
  color: var(--ink);
  font-size: 0.92rem;
}
.rt-sched span {
  font-size: 0.86rem;
}
table.data th[scope='row'] small {
  display: block;
  font-weight: 400;
  color: var(--muted-ink);
  font-size: 0.76rem;
}

/* ---------------------------------------------------------------- detection bento */

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.bcard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: linear-gradient(180deg, var(--panel-hi), var(--panel));
  border: 1px solid var(--line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.bcard p {
  margin: 0;
}
.b-wide {
  grid-column: span 2;
}
.b-hero {
  grid-row: span 2;
}
.bcard-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.bcard-head h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
}
.viz {
  width: 100%;
  height: auto;
  margin-top: 10px;
}
.viz .axis {
  fill: none;
  stroke: var(--line-hi);
}
.viz .vl {
  font-family: var(--vk-mono);
  font-size: 10px;
  fill: var(--muted-ink);
}
.viz .target-line {
  stroke: var(--vk-gold);
  stroke-dasharray: 4 4;
}
.viz .trace {
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}
.reveal.in .viz .trace,
:not(.js) .viz .trace {
  animation: draw 2.2s ease forwards 0.3s;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.viz .trace.human {
  stroke: var(--vk-cyan);
}
.viz .trace.bot {
  stroke: var(--vk-red);
}
.viz .snap-dot {
  fill: var(--vk-red);
}
.viz .cone {
  fill: color-mix(in srgb, var(--vk-cyan) 14%, transparent);
  stroke: color-mix(in srgb, var(--vk-cyan) 50%, transparent);
}
.viz .wallr {
  fill: color-mix(in srgb, var(--ink) 20%, transparent);
}
.viz .you {
  fill: var(--vk-cyan);
}
.viz .seen {
  fill: var(--vk-violet);
}
.viz .ghost circle {
  fill: none;
  stroke: var(--muted-ink);
  stroke-dasharray: 3 3;
}
.viz .ghost path {
  stroke: var(--vk-red);
  stroke-width: 2;
}
.viz .decoy circle,
.viz .decoy path {
  fill: color-mix(in srgb, var(--vk-gold) 25%, transparent);
  stroke: var(--vk-gold);
  stroke-dasharray: 4 3;
}
.viz .xhair circle,
.viz .xhair path {
  fill: none;
  stroke: var(--vk-red);
  stroke-width: 2;
}
.viz-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted-ink);
}

/* ---------------------------------------------------------------- ML */

.sec-ml {
  background: radial-gradient(50% 50% at 20% 30%, var(--vk-violet-soft), transparent 70%), var(--bg);
}
.pipeline {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  counter-reset: p;
}
.pipe-step {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 0.84rem;
}
.pipe-step b {
  font-family: var(--vk-head);
  font-size: 0.95rem;
  color: var(--ink);
  text-transform: uppercase;
}
.pipe-step span:not(.ictile) {
  color: var(--muted-ink);
}
.pipe-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 34px;
  width: 6px;
  height: 6px;
  background: var(--vk-gold);
  transform: rotate(45deg);
  z-index: 1;
}
.aim-scope {
  margin-bottom: 18px;
}
.aim-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 14px;
}
.aim-picks button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-hi);
  background: var(--panel-lo);
  font-size: 0.78rem;
  color: var(--text);
}
.aim-picks button b {
  font-family: var(--vk-mono);
  color: var(--ink);
}
.aim-picks button.is-cheat b {
  color: var(--vk-red-ink);
}
.aim-picks button[aria-checked='true'] {
  border-color: var(--vk-gold);
  background: var(--vk-gold-soft);
  color: var(--ink);
}
.aim-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: start;
}
.aim-chart {
  width: 100%;
  height: auto;
  background: var(--panel-lo);
  border: 1px solid var(--line);
}
.aim-grid path {
  stroke: var(--line);
}
.aim-grid text {
  font-family: var(--vk-mono);
  font-size: 10px;
  fill: var(--muted-ink);
}
.aim-path {
  fill: none;
  stroke: var(--vk-cyan);
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.aim-line.cheat .aim-path {
  stroke: var(--vk-red);
}
.vmark path {
  stroke: var(--vk-gold);
  stroke-dasharray: 3 3;
  opacity: 0.6;
}
.vmark circle {
  fill: var(--vk-gold);
}
.vmark.act-kick circle,
.vmark.act-restrict circle,
.vmark.act-ban circle {
  fill: var(--vk-red);
}
.aim-who {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.aim-who b {
  color: var(--ink);
}
.aim-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 12px;
}
.aim-stats div {
  background: var(--panel-lo);
  border: 1px solid var(--line);
  padding: 8px;
}
.aim-stats dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-ink);
}
.aim-stats dd {
  margin: 2px 0 0;
  font-family: var(--vk-mono);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.86rem;
}
.aim-vs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
}
.aim-vs li {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.ml-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.seq-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: s;
}
.seq-steps li {
  position: relative;
  padding-left: 40px;
  counter-increment: s;
}
.seq-steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--vk-mono);
  font-weight: 700;
  color: var(--vk-gold-ink);
}
.seq-steps b {
  color: var(--ink);
  font-family: var(--vk-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.seq-steps p {
  margin: 4px 0 6px;
  font-size: 0.9rem;
}
.seq-window {
  display: grid;
  grid-template-columns: repeat(80, 1fr);
  gap: 1px;
  height: 18px;
}
.seq-window i {
  background: color-mix(in srgb, var(--vk-cyan) 35%, transparent);
}
.seq-window i.anchor {
  background: var(--vk-gold);
  transform: scaleY(1.5);
}
.seq-window i.after {
  background: color-mix(in srgb, var(--vk-violet) 50%, transparent);
}
.gen-note {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted-ink);
  margin: 10px 0 0;
}
.gauge-row {
  display: grid;
  gap: 6px;
  margin: 10px 0 14px;
  font-size: 0.85rem;
}
.gauge {
  position: relative;
  height: 10px;
  background: var(--panel-lo);
  border: 1px solid var(--line);
}
.gauge-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--vk-gold), var(--vk-red));
}
.gauge-mark {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--ink);
}
.factor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
}
.factor-list li {
  display: grid;
  grid-template-columns: minmax(0, 150px) 1fr 52px 52px;
  gap: 8px;
  align-items: center;
}
.factor-list code {
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.factor-list b {
  font-family: var(--vk-mono);
  color: var(--ink);
  text-align: right;
}
.factor-list small {
  color: var(--muted-ink);
  font-family: var(--vk-mono);
  text-align: right;
}
.fbar {
  height: 8px;
  background: var(--panel-lo);
}
.fbar i {
  display: block;
  height: 100%;
}
.fbar i.pos {
  background: var(--vk-red);
}
.fbar i.neg {
  background: var(--vk-cyan);
}
.ml-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.roc {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.roc-grid path {
  stroke: var(--line);
}
.roc-grid text,
.roc-ax {
  font-family: var(--vk-mono);
  font-size: 9px;
  fill: var(--muted-ink);
}
.roc-diag {
  stroke: var(--line-hi);
  stroke-dasharray: 4 4;
}
.roc-line {
  fill: none;
  stroke-width: 2;
}
.roc-line.c0,
.roc-legend i.c0 {
  stroke: var(--vk-gold);
  background: var(--vk-gold);
}
.roc-line.c1,
.roc-legend i.c1 {
  stroke: var(--vk-cyan);
  background: var(--vk-cyan);
}
.roc-line.c2,
.roc-legend i.c2 {
  stroke: var(--vk-violet);
  background: var(--vk-violet);
}
.roc-line.c3,
.roc-legend i.c3 {
  stroke: var(--vk-green);
  background: var(--vk-green);
}
.roc-line.c4,
.roc-legend i.c4 {
  stroke: var(--vk-red);
  background: var(--vk-red);
}
.roc-line.c5,
.roc-legend i.c5 {
  stroke: var(--muted-ink);
  background: var(--muted-ink);
}
.roc-legend {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
}
.roc-legend li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 8px;
  align-items: center;
}
.roc-legend i {
  height: 3px;
}
.roc-legend b {
  font-family: var(--vk-mono);
  color: var(--ink);
}
.cancannot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.cc {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.cc h3 {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 1.05rem;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.cc li {
  display: flex;
  gap: 10px;
}
.cc li svg {
  margin-top: 4px;
}
.cc.can {
  border-top: 2px solid var(--vk-green);
}
.cc.can svg {
  color: var(--vk-green-ink);
}
.cc.cannot {
  border-top: 2px solid var(--vk-red);
}
.cc.cannot svg {
  color: var(--vk-red-ink);
}

/* ---------------------------------------------------------------- tables */

.tbl-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.tbl-wrap:focus-visible {
  outline-offset: 0;
}
table.data,
table.opts,
table.vk-compare,
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: transparent;
}
table.data th,
table.data td,
table.opts th,
table.opts td,
.prose table th,
.prose table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--text);
}
table.data thead th,
table.opts thead th,
.prose table thead th {
  font-family: var(--vk-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-ink);
  border-bottom: 1px solid var(--line-hi);
  white-space: nowrap;
}
table.data tbody th {
  color: var(--ink);
  font-weight: 700;
}
.num {
  text-align: right !important;
  font-family: var(--vk-mono);
  white-space: nowrap;
}
table.data tr.total th,
table.data tr.total td {
  border-top: 1px solid var(--line-hi);
  color: var(--ink);
  font-weight: 700;
}
table.compact th,
table.compact td {
  padding: 7px 10px;
}
.bar-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
}
.bar-cell b {
  font-family: var(--vk-mono);
  color: var(--ink);
  min-width: 52px;
  text-align: right;
}
.hbar {
  flex: 1;
  height: 8px;
  background: var(--panel-lo);
  border: 1px solid var(--line);
}
.hbar i {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--vk-green);
  transform-origin: left;
}
.hbar.mid i {
  background: var(--vk-gold);
}
.hbar.bad i {
  background: var(--vk-red);
}
.js .reveal .hbar i {
  transform: scaleX(0);
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s;
}
.js .reveal.in .hbar i {
  transform: none;
}
td.rules {
  font-size: 0.78rem;
  white-space: nowrap;
}
td.rules small {
  color: var(--muted-ink);
  margin-right: 6px;
}
.eval-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.panel.hard ul {
  margin: 0 0 14px;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

/* ---------------------------------------------------------------- why */

.aud-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.aud {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
  align-content: start;
}
.aud h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
}
.aud p {
  margin: 0;
  font-size: 0.92rem;
}
.aud-wide {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--vk-gold-soft), var(--panel) 60%);
  border-color: color-mix(in srgb, var(--vk-gold) 35%, transparent);
}
.probs {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel-lo);
}
.probs h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.compare-wrap {
  border: 1px solid var(--line);
  background: var(--panel);
}
table.vk-compare th,
table.vk-compare td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.85rem;
  min-width: 150px;
}
table.vk-compare thead th {
  font-family: var(--vk-head);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  border-bottom: 1px solid var(--line-hi);
}
table.vk-compare tbody th {
  color: var(--ink);
  font-weight: 700;
  min-width: 140px;
  position: sticky;
  left: 0;
  background: var(--panel);
  z-index: 1;
}
table.vk-compare td {
  color: var(--text);
}
table.vk-compare td > span:last-child {
  display: block;
  margin-top: 2px;
}
table.vk-compare .hl {
  background: var(--vk-gold-soft);
}
table.vk-compare thead th.hl {
  color: var(--vk-gold-ink);
  box-shadow: inset 0 2px 0 var(--vk-gold);
}
.mk {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 2px;
}
.mk-yes {
  color: var(--vk-green-ink);
  background: var(--vk-green-soft);
}
.mk-no {
  color: var(--vk-red-ink);
  background: var(--vk-red-soft);
}
.mk-partial {
  color: var(--vk-gold-ink);
  background: var(--vk-gold-soft);
}
.not-enough {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--vk-red) 40%, transparent);
  background: var(--vk-red-soft);
}
.not-enough h3 {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.not-enough h3 svg {
  color: var(--vk-red-ink);
}
.not-enough ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.combine {
  display: flex;
  gap: 10px;
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}
.combine svg {
  color: var(--vk-gold-ink);
  margin-top: 4px;
}
.adopt {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.adopt li {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.adopt b {
  color: var(--ink);
  font-family: var(--vk-head);
  text-transform: uppercase;
}
.adopt p {
  margin: 4px 0 0;
  font-size: 0.9rem;
}
.adopt-n,
.five-n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  font-family: var(--vk-head);
  font-weight: 700;
  color: var(--on-gold);
  background: var(--vk-gold);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

/* ---------------------------------------------------------------- enforcement */

.rail {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  position: relative;
}
.rail::before {
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  top: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--vk-cyan), var(--vk-violet), var(--vk-red), var(--vk-gold));
  opacity: 0.6;
}
.rail-step {
  position: relative;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 0.88rem;
}
.rail-node {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.rail-node b {
  font-family: var(--vk-head);
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--ink);
}
.rail-eps {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.rail-eps li {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.72rem;
  min-width: 0;
}
.rail-eps code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m,
.method {
  display: inline-block;
  min-width: 46px;
  padding: 1px 6px;
  font-family: var(--vk-mono);
  font-size: 0.66rem;
  font-weight: 700;
  text-align: center;
  border-radius: 2px;
  color: var(--vk-cyan-ink);
  background: var(--vk-cyan-soft);
}
.m-post,
.m-put {
  color: var(--vk-green-ink);
  background: var(--vk-green-soft);
}
.m-delete {
  color: var(--vk-red-ink);
  background: var(--vk-red-soft);
}
.rail-hooks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: var(--muted-ink);
}
.rail-hooks svg {
  color: var(--vk-gold-ink);
  margin-right: 2px;
}
.enf-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.enf {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  align-content: start;
}
.enf-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.enf h3 {
  font-size: 1rem;
  text-transform: uppercase;
}
.enf p {
  margin: 0;
  font-size: 0.86rem;
}

/* ---------------------------------------------------------------- storage */

.store {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
}
.store-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.store-list li {
  display: flex;
  gap: 14px;
}
.store-list b {
  color: var(--ink);
}
.store-list p {
  margin: 2px 0 0;
  font-size: 0.9rem;
}
.store-back {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.store-card {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
.store-card h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
}
.store-card p {
  margin: 0;
  font-size: 0.9rem;
}
.store-for {
  font-family: var(--vk-mono);
  font-size: 0.72rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vk-gold-ink);
}

/* ---------------------------------------------------------------- integrations */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.chip-f {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-hi);
  background: var(--panel-lo);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}
.chip-f small {
  font-family: var(--vk-mono);
  font-size: 0.7rem;
  color: var(--muted-ink);
}
.chip-f:hover {
  border-color: var(--vk-gold);
}
.chip-f[aria-checked='true'] {
  background: var(--vk-gold);
  border-color: var(--vk-gold);
  color: var(--on-gold);
}
.chip-f[aria-checked='true'] small {
  color: var(--on-gold);
}
.itiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.itile {
  /* Rows line up across a row of cards: head, badge, method, tags, link. */
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: 8px;
  min-width: 0;
  padding: 16px;
  background: linear-gradient(180deg, var(--panel-hi), var(--panel));
  border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.2s;
}
.itile:hover {
  border-color: color-mix(in srgb, var(--vk-gold) 50%, transparent);
  transform: translateY(-2px);
}
.itile.own {
  border-style: dashed;
}
.itile[hidden] {
  display: none;
}
.itile-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}
.itile-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
}
.itile-art {
  flex: none;
}
.itile-badge {
  margin: 0;
}
.itile-badge:empty,
.itile-fw:empty {
  min-height: 0;
}
.itile-art {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--vk-gold-ink);
  background: var(--vk-gold-soft);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.itile-art.cat-roleplay {
  color: var(--vk-violet);
  background: var(--vk-violet-soft);
}
.itile-art.cat-engine,
.itile-art.cat-sdk {
  color: var(--vk-cyan-ink);
  background: var(--vk-cyan-soft);
}
.itile-art.cat-source,
.itile-art.cat-shooter {
  color: var(--vk-red-ink);
  background: var(--vk-red-soft);
}
.itile-art.cat-minecraft,
.itile-art.cat-survival,
.itile-art.cat-sandbox {
  color: var(--vk-green-ink);
  background: var(--vk-green-soft);
}
.itile h3 {
  font-size: 1rem;
  line-height: 1.2;
}
.itile-cat {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: var(--muted-ink);
}
.itile-method {
  margin: 0;
  font-size: 0.84rem;
}
.itile-fw {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}
.itile .more {
  align-self: end;
}

/* ---------------------------------------------------------------- downloads */

.dl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  border-color: color-mix(in srgb, var(--vk-gold) 35%, transparent);
}
.dl-main {
  display: grid;
  gap: 16px;
  align-content: start;
  justify-items: start;
}
.dl-detected {
  margin: 0;
  font-family: var(--vk-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vk-cyan-ink);
}
.dl-main .btn-vk {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}
.dl-side {
  display: grid;
  gap: 12px;
  align-content: start;
  font-size: 0.9rem;
}
.dl-side p {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 0;
}
.dl-side p svg {
  color: var(--vk-green-ink);
  margin-top: 3px;
}
.dl-extra {
  display: grid;
  gap: 10px;
}
.dl-extra b {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 4px;
}
.codeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  background: var(--code-bg);
  border: 1px solid var(--line-hi);
}
.codeline code {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  color: #e6edf5 !important;
  overflow-x: auto;
  white-space: nowrap;
}
.codeline .copybtn {
  color: #9fb0c3;
  border-color: rgba(255, 255, 255, 0.14);
}
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.dl-os {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}
.dl-os.sel {
  border-color: var(--vk-gold);
  box-shadow: var(--glow);
}
.dl-os h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.dl-os ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.dl-link {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--panel-lo);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 0;
}
.dl-link:hover {
  border-color: var(--vk-gold);
  text-decoration: none;
}
.dl-link small {
  font-weight: 500;
  color: var(--muted-ink);
}
.dl-link code {
  justify-self: end;
  font-size: 0.68rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
}
.five-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.five-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.five-list li {
  display: flex;
  gap: 14px;
}
.five-list b {
  color: var(--ink);
}
.five-list p {
  margin: 2px 0 0;
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------- apps */

.apps-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 18px;
  margin-bottom: 22px;
}
.app-card {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.app-card h3 {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 1.1rem;
  text-transform: uppercase;
  margin: 12px 0 8px;
}
.app-card h3 svg {
  color: var(--vk-gold-ink);
}
.app-art svg {
  width: 100%;
  height: auto;
  display: block;
}
.shots-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  border-bottom: 1px solid var(--line-hi);
  margin-bottom: 16px;
}
.shots-tabs button {
  flex: none;
  min-height: 42px;
  padding: 0 16px;
  font-family: var(--vk-head);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-ink);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.shots-tabs button[aria-selected='true'] {
  color: var(--ink);
  border-bottom-color: var(--vk-gold);
}
.browser {
  border: 1px solid var(--line-hi);
  background: var(--panel-lo);
  box-shadow: 0 40px 80px -40px var(--shadow-ink);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.browser-url {
  flex: 1;
  font-family: var(--vk-mono);
  font-size: 0.72rem;
  color: var(--muted-ink);
  background: var(--panel);
  padding: 4px 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.browser-view {
  max-height: 640px;
  overflow: hidden;
  position: relative;
}
.browser-view::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--panel-lo));
}
.browser-view img {
  display: block;
  width: 100%;
  height: auto;
}
.only-light {
  display: none !important;
}
[data-theme='light'] .only-light {
  display: block !important;
}
[data-theme='light'] .only-dark {
  display: none !important;
}
.shot-cap {
  margin: 12px 0 0;
  color: var(--text);
}

/* ---------------------------------------------------------------- code windows */

.code-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
}
.code-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-content: start;
}
.code-side > *,
.code-main {
  min-width: 0;
}
.code-h {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  color: var(--muted-ink);
}
.codewin {
  margin: 0;
  background: var(--code-bg);
  border: 1px solid rgba(150, 190, 230, 0.16);
  color: #d7dee8;
  min-width: 0;
  box-shadow: 0 30px 60px -36px var(--shadow-ink);
}
.prose .codewin {
  margin: 18px 0;
}
.codewin-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 14px;
  border-bottom: 1px solid rgba(150, 190, 230, 0.12);
  background: rgba(255, 255, 255, 0.02);
  min-width: 0;
}
.lights {
  display: inline-flex;
  gap: 6px;
  flex: none;
}
.lights i {
  width: 9px;
  height: 9px;
  background: #ff4d6d;
  transform: rotate(45deg);
}
.lights i:nth-child(2) {
  background: #f5b83d;
}
.lights i:nth-child(3) {
  background: #3ddc97;
}
.codewin-title {
  font-family: var(--vk-mono);
  font-size: 0.75rem;
  color: #aab6c5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.codewin-lang {
  margin-left: auto;
  font-family: var(--vk-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f5b83d;
}
.codewin .copybtn {
  color: #9fb0c3;
  border-color: rgba(255, 255, 255, 0.14);
  flex: none;
}
.codewin-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.codewin.tabbed .copybtn {
  margin-left: auto;
}
.codewin-tabs button {
  flex: none;
  min-height: 30px;
  padding: 0 10px;
  font-family: var(--vk-mono);
  font-size: 0.74rem;
  color: #8f9db0;
  border-bottom: 2px solid transparent;
}
.codewin-tabs button[aria-selected='true'] {
  color: #fff;
  border-bottom-color: #f5b83d;
}
pre.code {
  margin: 0;
  padding: 14px 0;
  overflow: auto;
  max-height: 520px;
  font-size: 0.8rem;
  line-height: 1.65;
  tab-size: 4;
  scrollbar-width: thin;
}
pre.code code {
  display: block;
  min-width: max-content;
  padding: 0 16px;
  background: none;
  border: 0;
  color: inherit;
}
pre.numbered code {
  counter-reset: ln;
  padding-left: 0;
}
pre.numbered .ln {
  display: block;
  padding-right: 16px;
}
pre.numbered .ln::before {
  counter-increment: ln;
  content: counter(ln);
  display: inline-block;
  width: 3.2em;
  padding-right: 1em;
  text-align: right;
  color: #4b5868;
  user-select: none;
}
.tk-c {
  color: #6c7a8c;
  font-style: italic;
}
.tk-s {
  color: #9be37b;
}
.tk-n {
  color: #ffb86b;
}
.tk-k {
  color: #ff7a9a;
}
.tk-t {
  color: #5fe0f3;
}
.tk-f {
  color: #ffd37a;
}
.tk-a {
  color: #c3a6ff;
}
.tk-m {
  color: #f5b83d;
}
.tk-o {
  color: #9fb0c3;
}

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

.faq {
  max-width: 900px;
  display: grid;
  gap: 8px;
}
.faq-item {
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.2s;
}
.faq-item.open {
  border-color: color-mix(in srgb, var(--vk-gold) 45%, transparent);
}
.faq-item h3 {
  margin: 0;
  font-size: 1rem;
}
.faq-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  font-family: var(--vk-head);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.faq-btn svg {
  color: var(--vk-gold-ink);
  transition: transform 0.25s;
}
.faq-btn[aria-expanded='true'] svg {
  transform: rotate(180deg);
}
.faq-panel {
  padding: 0 20px 18px;
}
.faq-panel p {
  margin: 0;
}

/* ---------------------------------------------------------------- CTA */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 12vw, 140px) 0;
  text-align: center;
  isolation: isolate;
  border-top: 1px solid var(--line);
}
.cta-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.9;
}
.cta-art svg {
  width: 100%;
  height: 100%;
}
.cta-inner {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.cta-inner h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  text-transform: uppercase;
  max-width: 18ch;
}
.cta-inner p {
  max-width: 60ch;
  font-size: 1.08rem;
}
.cta-inner .hero-ctas {
  justify-content: center;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 56px 0 28px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}
.fbrand p {
  margin: 12px 0 0;
  color: var(--muted-ink);
  max-width: 36ch;
}
.fcol h2 {
  font-size: 0.78rem;
  font-family: var(--vk-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vk-gold-ink);
  margin-bottom: 12px;
}
.fcol ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.fcol a {
  color: var(--text);
}
.fcol a:hover {
  color: var(--ink);
}
.footer-legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  color: var(--muted-ink);
  font-size: 0.82rem;
}
.footer-legal p {
  margin: 0;
}
.footer-legal .built {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.footer-legal .built svg {
  color: var(--vk-gold-ink);
}
.langs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------- docs */

.docs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 220px;
  gap: 40px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 32px) 80px;
}
.docs-side {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 6px;
}
.docs-menu-btn {
  display: none;
}
.docs-search {
  position: relative;
  margin-bottom: 18px;
}
.ds-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  height: 40px;
  border: 1px solid var(--line-hi);
  background: var(--panel-lo);
  color: var(--muted-ink);
}
.ds-field:focus-within {
  border-color: var(--vk-gold);
}
.ds-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  -webkit-appearance: none;
  appearance: none;
}
.ds-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.ds-field kbd {
  font-size: 0.7rem;
  padding: 1px 6px;
  border: 1px solid var(--line-hi);
  color: var(--muted-ink);
}
.ds-list {
  position: absolute;
  left: 0;
  right: -80px;
  top: calc(100% + 6px);
  z-index: 30;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line-hi);
  box-shadow: 0 24px 60px -16px var(--shadow-ink);
}
.ds-list li {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.85rem;
}
.ds-list li b {
  color: var(--ink);
}
.ds-list li span {
  color: var(--muted-ink);
  font-size: 0.75rem;
}
.ds-list li.active {
  background: var(--vk-gold-soft);
}
.ds-none {
  color: var(--muted-ink);
  cursor: default !important;
}
.side-group {
  margin-bottom: 18px;
}
.side-group h2 {
  font-family: var(--vk-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vk-gold-ink);
  margin: 0 0 6px;
}
.side-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}
.side-group a {
  display: block;
  padding: 5px 12px;
  margin-left: -1px;
  font-size: 0.88rem;
  color: var(--text);
  border-left: 2px solid transparent;
}
.side-group a:hover {
  color: var(--ink);
  text-decoration: none;
  border-left-color: var(--line-hi);
}
.side-group a.current {
  color: var(--ink);
  font-weight: 700;
  border-left-color: var(--vk-gold);
  background: linear-gradient(90deg, var(--vk-gold-soft), transparent);
}
.docs-main {
  min-width: 0;
  max-width: 860px;
}
.crumbs ol {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted-ink);
}
.crumbs li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--line-hi);
}
.crumbs a {
  color: var(--muted-ink);
}
.doc-head {
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.doc-head h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-transform: uppercase;
}
.doc-lead {
  font-size: 1.1rem;
  margin: 12px 0 0;
  color: var(--text);
}
.untranslated {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  background: var(--vk-cyan-soft);
  border: 1px solid color-mix(in srgb, var(--vk-cyan) 35%, transparent);
  font-size: 0.88rem;
  color: var(--ink);
}
.prose {
  font-size: 1rem;
  line-height: 1.72;
}
.prose h2 {
  font-size: 1.55rem;
  text-transform: uppercase;
  margin: 2.2em 0 0.6em;
  padding-top: 0.4em;
  border-top: 1px solid var(--line);
}
.prose h3 {
  font-size: 1.15rem;
  margin: 1.8em 0 0.5em;
}
.prose h4 {
  font-size: 1rem;
  margin: 1.4em 0 0.4em;
}
.prose h2:first-child {
  margin-top: 0.4em;
}
.anchor {
  margin-left: 8px;
  color: var(--line-hi);
  opacity: 0;
  text-decoration: none !important;
  transition: opacity 0.15s;
}
h2:hover > .anchor,
h3:hover > .anchor,
h4:hover > .anchor {
  opacity: 1;
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
}
.prose li {
  margin: 0.3em 0;
}
.prose li::marker {
  color: var(--vk-gold-ink);
}
.prose blockquote {
  margin: 1.2em 0;
  padding: 0.6em 1em;
  border-left: 3px solid var(--vk-gold);
  background: var(--panel);
}
.prose .tbl-wrap {
  margin: 1.2em 0;
  border: 1px solid var(--line);
  background: var(--panel);
}
.prose img {
  max-width: 100%;
  height: auto;
}
.callout {
  display: flex;
  gap: 12px;
  margin: 1.4em 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--vk-cyan);
  background: var(--vk-cyan-soft);
}
.callout > svg {
  color: var(--vk-cyan-ink);
  margin-top: 4px;
}
.callout > div > :last-child {
  margin-bottom: 0;
}
.callout-title {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.callout-warn {
  border-left-color: var(--vk-gold);
  background: var(--vk-gold-soft);
}
.callout-warn > svg {
  color: var(--vk-gold-ink);
}
.callout-danger {
  border-left-color: var(--vk-red);
  background: var(--vk-red-soft);
}
.callout-danger > svg {
  color: var(--vk-red-ink);
}
.callout-tip {
  border-left-color: var(--vk-green);
  background: var(--vk-green-soft);
}
.callout-tip > svg {
  color: var(--vk-green-ink);
}
table.opts td:first-child code {
  white-space: nowrap;
}
.req {
  color: var(--vk-red-ink);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
}
code.fmt {
  font-size: 0.74rem;
}
.facts {
  padding-left: 1.2em;
}
.game-facts dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  margin: 0 0 22px;
  background: var(--line);
  border: 1px solid var(--line);
}
.game-facts dl > div {
  background: var(--panel);
  padding: 12px 14px;
}
.game-facts dt {
  font-family: var(--vk-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-ink);
  margin-bottom: 4px;
}
.game-facts dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.9rem;
}
.doc-lead2 {
  font-size: 1.05rem;
  color: var(--ink);
}
.steps-list {
  list-style: none;
  counter-reset: st;
  padding: 0 !important;
  display: grid;
  gap: 10px;
}
.steps-list > li {
  position: relative;
  counter-increment: st;
  padding: 12px 14px 12px 54px;
  background: var(--panel);
  border: 1px solid var(--line);
  margin: 0 !important;
}
.steps-list > li::before {
  content: counter(st);
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-family: var(--vk-head);
  font-weight: 700;
  color: var(--on-gold);
  background: var(--vk-gold);
}
.ticks-list li::marker {
  content: '+  ';
}
.problems {
  display: grid;
  gap: 10px;
}
.problem {
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--vk-gold);
}
.problem p {
  margin: 0;
}
.pq {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px !important;
  color: var(--ink);
}
.pq svg {
  color: var(--vk-gold-ink);
}
.tm-note {
  margin-top: 2em;
  font-size: 0.8rem;
  color: var(--muted-ink);
}
.game-links {
  columns: 2 240px;
  padding-left: 1.2em;
}
.edit {
  margin: 40px 0 0;
  font-size: 0.85rem;
}
.edit a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.pn {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}
.pn:hover {
  border-color: var(--vk-gold);
  text-decoration: none;
}
.pn small {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--muted-ink);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.pn.next {
  text-align: right;
  justify-items: end;
  grid-column: 2;
}
.docs-toc {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.toc h2 {
  font-family: var(--vk-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-ink);
  margin-bottom: 8px;
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}
.toc a {
  display: block;
  padding: 4px 10px;
  margin-left: -1px;
  font-size: 0.8rem;
  color: var(--muted-ink);
  border-left: 2px solid transparent;
}
.toc li.l3 a {
  padding-left: 22px;
}
.toc a:hover,
.toc a.active {
  color: var(--ink);
  text-decoration: none;
  border-left-color: var(--vk-gold);
}

/* API reference */
.api-ref .op {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.op-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 8px !important;
  border: 0 !important;
  padding: 0 !important;
  font-size: 1rem !important;
  text-transform: none !important;
}
.op-path {
  font-family: var(--vk-mono);
  font-size: 0.9rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.pp {
  color: var(--vk-gold-ink);
}
.role {
  font-family: var(--vk-mono);
  font-size: 0.7rem;
  padding: 1px 6px;
  color: var(--vk-violet);
  background: var(--vk-violet-soft);
}
.vk-status.s2 {
  color: var(--vk-green-ink);
  background: var(--vk-green-soft);
}
.vk-status.s4,
.vk-status.s5 {
  color: var(--vk-red-ink);
  background: var(--vk-red-soft);
}
.schemas details,
.api-ref details {
  margin: 8px 0;
  border: 1px solid var(--line);
  background: var(--panel);
}
.schemas summary,
.api-ref summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  font-family: var(--vk-mono);
  font-size: 0.85rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
/* On a narrow screen the description drops below the name instead of
   pushing past the box. */
.schemas summary,
.api-ref summary {
  flex-wrap: wrap;
}
.schemas summary::-webkit-details-marker,
.api-ref summary::-webkit-details-marker {
  display: none;
}
.schemas summary::before,
.api-ref summary::before {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--vk-gold);
  border-bottom: 2px solid var(--vk-gold);
  transform: rotate(-45deg);
  transition: transform 0.2s;
}
.schemas details[open] > summary::before,
.api-ref details[open] > summary::before {
  transform: rotate(45deg);
}
.schemas details > :not(summary),
.api-ref details > :not(summary) {
  padding: 0 14px 12px;
}

/* ---------------------------------------------------------------- ml replay */

.ml-demo {
  display: grid;
  gap: 14px;
}
.ml-ctl {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ml-clock {
  font-family: var(--vk-mono);
  font-size: 0.85rem;
  color: var(--vk-cyan-ink);
  min-width: 5.5ch;
  text-align: right;
}
.ml-lane {
  border: 1px solid var(--line);
  background: var(--panel-lo);
  padding: 10px 12px 6px;
  border-radius: var(--radius);
}
.ml-lane.cheat {
  border-color: var(--vk-red-soft);
}
.ml-lane-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 6px;
}
.ml-lane-head b {
  font-family: var(--vk-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.ml-lane-head .pill {
  margin-left: auto;
}
.ml-plot {
  position: relative;
  overflow: hidden;
}
.ml-plot svg {
  display: block;
  width: 100%;
  height: 150px;
}
.ml-plot path {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.ml-plot .err {
  stroke: var(--vk-cyan);
  stroke-width: 1.4;
}
.ml-lane.cheat .ml-plot .err {
  stroke: var(--vk-red);
}
.ml-plot .shots path {
  stroke: var(--muted-ink);
  stroke-width: 1;
}
.ml-plot .shots path.hit {
  stroke: var(--vk-gold);
}
.ml-plot .zero {
  stroke: var(--line-hi);
  stroke-dasharray: 2 4;
}
.ml-plot .thr {
  stroke: var(--vk-red-ink);
  stroke-dasharray: 6 4;
  stroke-width: 1.2;
}
.ml-plot .bars rect {
  fill: var(--vk-violet-soft);
}
.ml-plot .agg {
  stroke: var(--vk-gold);
  stroke-width: 2;
}
.ml-plot .lbl {
  font: 600 9px var(--vk-mono);
  fill: var(--muted-ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mlflag path {
  stroke: var(--vk-red);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.mlflag rect {
  fill: var(--vk-red);
}
.mlflag text {
  font: 700 9px var(--vk-mono);
  fill: var(--on-gold);
}
.curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  right: 0;
  background: var(--panel-lo);
  opacity: 0.88;
  pointer-events: none;
}
.playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 2px;
  margin-left: -1px;
  background: var(--vk-gold);
  box-shadow: 0 0 10px var(--vk-gold);
  pointer-events: none;
}
.ml-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted-ink);
}
.ml-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vk-lg {
  display: inline-block;
  width: 16px;
  height: 3px;
}
.vk-lg.err {
  background: var(--vk-cyan);
}
.vk-lg.agg {
  background: var(--vk-gold);
}
.vk-lg.bar {
  height: 10px;
  width: 8px;
  background: var(--vk-violet);
  opacity: 0.6;
}
.vk-lg.thr {
  background: repeating-linear-gradient(90deg, var(--vk-red-ink) 0 5px, transparent 5px 8px);
}
.tbl-h {
  font-family: var(--vk-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  color: var(--ink);
  margin: 18px 0 8px;
}

/* ---------------------------------------------------------------- installer shots */

.inst {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 28px;
  align-items: start;
  margin: 28px 0 36px;
}
.inst-tabs {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}
.inst-tabs [role='tab'] {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius);
}
.inst-tabs [role='tab']:hover {
  border-color: var(--line-hi);
}
.inst-tabs [role='tab'][aria-selected='true'] {
  border-color: var(--vk-gold);
  background: var(--vk-gold-soft);
  color: var(--ink);
}
.inst-tabs [role='tab']:focus-visible {
  outline: 2px solid var(--vk-cyan);
  outline-offset: 2px;
}
.inst-n {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font: 700 0.75rem var(--vk-mono);
  border: 1px solid var(--line-hi);
  border-radius: 2px;
  flex: none;
}
[aria-selected='true'] > .inst-n {
  background: var(--vk-gold);
  color: var(--on-gold);
  border-color: var(--vk-gold);
}
.inst-view {
  border: 1px solid var(--line-hi);
  background: var(--panel-lo);
  padding: 8px;
  box-shadow: var(--glow);
}
.inst-view img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------------------------------------------------------------- 404 */

.nf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: clamp(48px, 10vw, 120px) 0;
}
.nf h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  text-transform: uppercase;
}
.nf-code {
  font-family: var(--vk-mono);
  color: var(--vk-red-ink);
  letter-spacing: 0.3em;
}
.nf-art svg {
  width: 100%;
  height: auto;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  .docs-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .docs-toc {
    display: none;
  }
  .pipeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pipe-step:nth-child(4)::after {
    display: none;
  }
  .enf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .rt-chain {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .rt-step:nth-child(3)::after {
    display: none;
  }
}

@media (max-width: 980px) {
  .inst,
  .nf {
    grid-template-columns: minmax(0, 1fr);
  }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    margin: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line-hi);
    padding: 12px clamp(16px, 4vw, 32px) 20px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .menu-open .main-nav {
    opacity: 1;
    transform: none;
    visibility: visible;
  }
  .main-nav ul {
    flex-direction: column;
  }
  .main-nav a {
    height: 46px;
    width: 100%;
  }
  .header-tools {
    margin-left: auto;
  }
  .menubtn {
    display: inline-grid;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    max-width: 460px;
    margin: 0 auto;
  }
  .radar {
    grid-template-columns: 1fr;
  }
  .feed {
    max-height: 380px;
  }
  .vk-steps,
  .tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tier-card.optin {
    grid-column: span 2;
  }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .b-hero {
    grid-row: auto;
  }
  .ml-split,
  .ml-grid,
  .eval-split,
  .code-grid,
  .apps-grid,
  .store,
  .five-grid,
  .dl-hero,
  .not-enough {
    grid-template-columns: 1fr;
  }
  .aud-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rail::before {
    display: none;
  }
  .rt-console {
    grid-template-columns: 1fr;
  }
  .rt-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    scrollbar-width: thin;
  }
  .rt-tabs button {
    flex: none;
    border-left: 0;
    border-bottom: 3px solid transparent;
  }
  .rt-tabs button[aria-checked='true'] {
    border-bottom-color: var(--vk-red);
  }
  .aim-body {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .fbrand {
    grid-column: 1 / -1;
  }
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 12px;
  }
  .docs-side {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    margin-bottom: 18px;
  }
  .docs-menu-btn {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line-hi);
    background: var(--panel);
    font-family: var(--vk-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink);
  }
  .js .docs-side-inner {
    display: none;
  }
  .js .docs-side-inner.open {
    display: block;
    padding: 14px 0 0;
  }
  .ds-list {
    right: 0;
  }
  .nf {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .arch {
    display: none;
  }
  .arch-list {
    display: grid;
  }
  .arch-wrap {
    padding: 8px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .vk-steps,
  .tier-grid,
  .bento,
  .aud-grid,
  .adopt,
  .rail,
  .enf-grid,
  .dl-grid,
  .cancannot,
  .rt-facts,
  .rt-chain,
  .pipeline {
    grid-template-columns: 1fr;
  }
  .b-wide,
  .aud-wide,
  .tier-card.optin,
  .rt-table {
    grid-column: auto;
  }
  .pipe-step::after,
  .rt-step::after {
    display: none;
  }
  .float-card.fc-trust,
  .float-chip {
    display: none;
  }
  .fc-verdict {
    left: 0;
    bottom: 0;
    width: 78%;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .header-row {
    gap: 12px;
  }
  .factor-list li {
    grid-template-columns: minmax(0, 1fr) 70px 44px;
  }
  .factor-list small {
    display: none;
  }
  .prevnext {
    grid-template-columns: 1fr;
  }
  .pn.next {
    grid-column: auto;
  }
  .aim-stats {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .header-tools {
    gap: 4px;
  }
  .iconbtn {
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
  }
  .lang-btn .lang-code {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-ctas .btn-vk {
    width: 100%;
  }
  .dl-link {
    grid-template-columns: auto 1fr;
  }
  .dl-link code {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .viz .trace {
    stroke-dashoffset: 0;
  }
  .scan,
  .rt-scan,
  .sweep,
  .radar-frame::after {
    display: none;
  }
}

@media print {
  .site-header,
  .docs-side,
  .docs-toc,
  .hero-bg,
  .copybtn {
    display: none !important;
  }
}

/* Grid items may not grow past their track because of wide tables or code. */
.store > *,
.ml-grid > *,
.ml-split > *,
.rt-grid > *,
.inst > *,
.panel {
  min-width: 0;
}
.store-card .enf-head {
  flex-wrap: wrap;
}

/* Hero centerpiece: the mark on a solid plate with HUD readouts. */
.hero-scene .plate {
  fill: var(--panel);
  stroke: var(--line-hi);
  stroke-width: 1.5;
}
.hero-scene .plate-brackets {
  stroke: var(--vk-gold);
}
.hud-tag text {
  font-family: var(--vk-mono);
  letter-spacing: 0.14em;
}
.hud-h {
  font-size: 14px;
  font-weight: 700;
  fill: var(--ink);
}
.hud-s {
  font-size: 11px;
  fill: var(--muted-ink);
  text-transform: uppercase;
}
.tag-server .hud-h {
  fill: var(--mark-blade);
}
.tag-client .hud-h,
.tag-kernel .hud-h {
  fill: var(--vk-gold-ink);
}
.hero-scene .mark {
  transform-box: fill-box;
}
.main-nav a {
  white-space: nowrap;
}
/* Keep the mark clear: the readout cards sit on the rim of the scene. */
.fc-verdict {
  left: -8%;
  bottom: -7%;
  width: min(290px, 58%);
}
.fc-trust {
  top: 3%;
  right: -4%;
}
@media (max-width: 1180px) {
  .main-nav a {
    padding: 0 8px;
    letter-spacing: 0.06em;
  }
  .fc-trust {
    display: none;
  }
  /* Narrower heroes: the verdict card moves under the scene, never over the mark. */
  .hero-visual {
    aspect-ratio: auto;
  }
  .fc-verdict {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(380px, 100%);
    margin: -4% auto 0;
    animation: none;
  }
}
/* Hyphenated words stay on one line (see keepHyphenWords in page.mjs). */
.nw {
  white-space: nowrap;
}
/* Comparison table: even columns, headers wrap between words only, and
   the table scrolls inside its own box on narrow screens. */
table.vk-compare {
  table-layout: fixed;
  min-width: 940px;
}
table.vk-compare th,
table.vk-compare td {
  min-width: 0;
  overflow-wrap: normal;
  hyphens: manual;
}
table.vk-compare thead th:first-child,
table.vk-compare tbody th {
  width: 190px;
}
.compare-wrap {
  overflow-x: auto;
  max-width: 100%;
}
/* Decorative hero layers never widen the page. */
.hero-bg {
  overflow: clip;
}
html {
  overflow-x: clip;
}
.itiles {
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
}
.dl-file {
  margin: -6px 0 0;
  font-family: var(--vk-mono);
  font-size: 0.78rem;
  color: var(--muted-ink);
  overflow-wrap: anywhere;
}
.dl-main .btn-vk > span {
  min-width: 0;
}
@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Single column grids never grow past the viewport. */
@media (max-width: 980px) {
  .ml-split, .ml-grid, .eval-split, .code-grid, .apps-grid, .store, .five-grid, .dl-hero, .not-enough, .rt-console, .aim-body {
    grid-template-columns: minmax(0, 1fr);
  }
}
.dl-hero > *, .dl-main > *, .dl-side > *, .dl-extra > * {
  min-width: 0;
  max-width: 100%;
}
svg.viz {
  overflow: hidden;
}
.fcol h2 {
  letter-spacing: 0.1em;
  overflow-wrap: break-word;
}
svg.mock {
  overflow: hidden;
}
.fc-time,
.fv-time {
  white-space: nowrap;
}

/* ================================================================ the hall
   The art direction layer: serif titles, numbered chambers, hairline
   tablets instead of boxed cards, the hero and the live trial. Placed last
   so it wins over the component rules above. */

h1,
h2,
.sec-title,
.sub-title,
.cta-inner h2,
.nf h1 {
  font-family: var(--vk-display);
  font-weight: 400;
  letter-spacing: -0.012em;
  text-transform: none;
}
h3,
h4 {
  font-family: var(--vk-head);
  font-weight: 600;
  letter-spacing: -0.005em;
}
#main h3,
#main h4,
#main .sub-title {
  text-transform: none;
}
:lang(ja) h1,
:lang(ja) h2,
:lang(ja) h3,
:lang(ja) .sec-lead,
:lang(ja) .hh-small,
:lang(ja) .hh-lead {
  word-break: auto-phrase;
}
:lang(ja) h1,
:lang(ja) h2,
:lang(ja) .sec-title {
  font-family: 'Instrument Serif', 'Kaisei Tokumin', serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
::selection {
  background: var(--vk-gold);
  color: var(--on-gold);
}
:focus-visible {
  outline: 2px solid var(--vk-gold);
  outline-offset: 3px;
}

/* The page is one long hall: faint pillars run down both sides. */
body.page-home {
  background:
    linear-gradient(90deg, transparent calc(50% - 641px), var(--line) calc(50% - 641px), var(--line) calc(50% - 640px), transparent calc(50% - 640px), transparent calc(50% + 640px), var(--line) calc(50% + 640px), var(--line) calc(50% + 641px), transparent calc(50% + 641px)),
    var(--bg);
}

/* Header floats over the hero sky on the landing page. */
.page-home .site-header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.page-home .site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.main-nav a {
  font-family: var(--vk-text);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}
.main-nav a::after {
  height: 1px;
  bottom: 6px;
}
.iconbtn {
  border-radius: 999px;
  background: transparent;
}

/* Buttons: plain pills. Gold on night, ink on day. */
.btn-vk {
  clip-path: none;
  border-radius: 999px;
  font-family: var(--vk-text);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  text-transform: none;
  padding: 0 24px;
}
.btn-primary-vk {
  background: var(--vk-gold);
  color: var(--on-gold);
}
[data-theme='light'] .btn-primary-vk {
  background: var(--ink);
  color: var(--bg);
}
.btn-ghost-vk {
  background: transparent;
  border-color: var(--line-hi);
}
.btn-ghost-vk:hover {
  background: var(--vk-gold-soft);
}
.more {
  font-family: var(--vk-text);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------- chambers */

.sec {
  padding: clamp(84px, 11vw, 156px) 0;
}
.sec-alt {
  background: none;
  border: 0;
}
.sec + .sec::before,
.hh + .sec::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1176px, calc(100% - 32px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line-hi) 18%, var(--line-hi) 82%, transparent);
}
.sec + .sec::after,
.hh + .sec::after {
  content: '';
  position: absolute;
  top: -4px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: var(--bg);
  border: 1px solid var(--vk-gold);
}
.sec-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 clamp(18px, 3vw, 44px);
  max-width: 1040px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.sec-num {
  font-family: var(--vk-display);
  font-style: italic;
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  line-height: 0.9;
  color: var(--vk-gold-ink);
  padding-right: clamp(14px, 2.4vw, 32px);
  border-right: 1px solid var(--line-hi);
  min-width: 1.6em;
  text-align: right;
}
.sec-words {
  min-width: 0;
}
.eyebrow {
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted-ink);
}
.eb-mark {
  width: 7px;
  height: 7px;
  background: none;
  border: 1px solid var(--vk-gold);
  transform: rotate(45deg);
}
.eb-mark::after {
  display: none;
}
.hh-big,
.sec-title,
.sub-title,
.cta-inner h2 {
  text-wrap: balance;
}
.sec-title {
  font-size: clamp(2.2rem, 5.2vw, 4.3rem);
  line-height: 1.02;
  max-width: 20ch;
}
:lang(ja) .sec-title {
  font-size: clamp(1.7rem, 3.8vw, 3rem);
  max-width: none;
}
.sec-lead {
  margin-top: 20px;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.7;
}
.sub-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  gap: 12px;
}
.sub-title svg {
  color: var(--vk-gold-ink);
}

/* Tablets: the cards lose their boxes and keep a single rule on top. */
.bcard,
.tier-card,
.aud,
.enf,
.step-card,
.store-card,
.app-card,
.itile,
.pipe-step {
  background: none;
  border: 0;
  border-top: 1px solid var(--line-hi);
  border-radius: 0;
  clip-path: none;
  box-shadow: none;
  padding: 22px 0 0;
}
.bcard:hover,
.itile:hover,
.tier-card:hover {
  transform: none;
  border-color: var(--vk-gold);
}
.tier-card.main,
.step-card {
  border-top: 1px solid var(--vk-gold);
}
.ictile {
  clip-path: none;
  border-radius: 999px;
  background: transparent;
  border-color: var(--line-hi);
  color: var(--vk-gold-ink);
}
/* Vitrines: framed glass for live pieces, tables and graphs. */
.panel,
.radar-frame,
.rt-console,
.codewin,
.dl-hero,
.browser {
  clip-path: none;
  border-radius: 2px;
}
.panel {
  background: color-mix(in srgb, var(--panel) 55%, transparent);
}
.panel h3 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.05rem;
}

/* ---------------------------------------------------------------- hero: the witness */

.hh {
  --hh-art: clamp(330px, 58vh, 600px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--hh-art) 0 clamp(36px, 5vw, 64px);
  /* Without the canvas: the same sky and floor, still. */
  background: linear-gradient(180deg, var(--c-sky0), var(--c-sky1) calc(var(--hh-art) * 0.7), var(--c-sky2) var(--hh-art), var(--c-floor0) var(--hh-art), var(--c-floor1));
}
.hh-art {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hh-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.hh-copy {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hh-copy::before {
  content: '';
  position: absolute;
  inset: -24px -6% -24px;
  z-index: -1;
  background: radial-gradient(ellipse 62% 64% at 50% 46%, color-mix(in srgb, var(--c-floor1) 90%, transparent) 40%, transparent 100%);
  pointer-events: none;
}
.hh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--vk-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-ink);
}
.mark-inline {
  flex: none;
  display: block;
}
.hh-title {
  margin: 0;
  max-width: 100%;
}
.hh-big {
  display: block;
  font-family: var(--vk-display);
  font-weight: 400;
  font-size: clamp(2.9rem, 8.6vw, 8.4rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 9.5em;
  margin: 0 auto;
}
.hh-big em {
  font-style: italic;
  color: var(--vk-gold-ink);
}

:lang(ja) .hh-big {
  font-size: clamp(2.1rem, 5.6vw, 5.2rem);
  line-height: 1.18;
  letter-spacing: 0.02em;
  font-weight: 700;
}
:lang(ja) .hh-big em {
  font-style: normal;
}
.hh-small {
  display: block;
  margin: 22px auto 0;
  max-width: 36ch;
  font-family: var(--vk-text);
  font-size: clamp(1.02rem, 1.7vw, 1.3rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--ink);
}
.hh-lead {
  max-width: 62ch;
  margin: 18px auto 0;
  color: var(--text);
  font-size: clamp(0.98rem, 1.3vw, 1.06rem);
}
.hh-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.hh .install-pill {
  margin: 18px auto 0;
  max-width: 100%;
  border-radius: 999px;
  clip-path: none;
}
.hh-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(56px, 8vw, 104px);
}
.hh-stat {
  margin: 0;
  padding: 20px clamp(14px, 2vw, 28px) 0;
  border-top: 1px solid var(--line-hi);
  border-left: 1px solid var(--line);
  text-align: left;
  font-size: 0.92rem;
  color: var(--muted-ink);
}
.hh-stat:first-child {
  border-left: 0;
  padding-left: 0;
}
.hh-stat-n {
  display: block;
  font-family: var(--vk-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--vk-gold-ink);
}
.hh-stat b {
  display: block;
  margin: 4px 0 6px;
  font-family: var(--vk-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  line-height: 1;
  color: var(--ink);
}
.hh-enter {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  margin: clamp(36px, 5vw, 56px) auto 0;
  font-family: var(--vk-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-ink);
}
.hh-enter svg {
  animation: hh-fall 2.4s ease-in-out infinite;
}
@keyframes hh-fall {
  0%,
  100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(4px);
  }
}

/* ---------------------------------------------------------------- the trial */

.trial {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.tr-stage {
  position: relative;
  aspect-ratio: 1;
  max-height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c-sun) 22%, transparent), transparent 68%);
}
.tr-arena {
  display: block;
  width: 100%;
  height: 100%;
}
.tr-hud {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--vk-mono);
  font-size: 0.8rem;
  color: var(--muted-ink);
}
.tr-clock::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--vk-red);
  vertical-align: 1px;
}
.tr-side {
  min-width: 0;
}
.tr-label,
.tr-h {
  margin: 0 0 10px;
  font-family: var(--vk-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-ink);
}
#main .tr-h {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 28px;
}
.tr-cheats,
.tr-run {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tr-run {
  margin-top: 10px;
}
.tr-cheat,
.tr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 0.9rem/1 var(--vk-text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.tr-cheat svg {
  color: var(--vk-red-ink);
}
.tr-cheat:hover,
.tr-btn:hover {
  border-color: var(--vk-gold);
  background: var(--vk-gold-soft);
}
.tr-btn {
  color: var(--text);
  font-size: 0.85rem;
}
.tr-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: -2px 0 10px;
  font-size: 0.78rem;
  color: var(--muted-ink);
}
.tr-scale b {
  font-family: var(--vk-mono);
  font-weight: 500;
  color: var(--vk-gold-ink);
}
.tr-ledger,
.tr-feed {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tr-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(70px, 1.3fr) 3.2em minmax(0, 0.9fr);
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  transition: opacity 0.4s;
}
.tr-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.tr-who b {
  font-weight: 600;
  color: var(--ink);
}
.tr-who small {
  font-size: 0.74rem;
  color: var(--vk-red-ink);
}
.tr-who small:empty {
  display: none;
}
.tr-bar {
  position: relative;
  height: 4px;
  background: var(--line);
}
.tr-bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--c-fig);
  transition: width 0.3s, background 0.3s;
}
.tr-bar u {
  position: absolute;
  left: calc(var(--p) * 1%);
  top: -4px;
  bottom: -4px;
  width: 1px;
  background: var(--vk-gold);
  text-decoration: none;
}
.tr-num {
  font-family: var(--vk-mono);
  font-size: 0.8rem;
  text-align: right;
  color: var(--text);
}
.tr-act {
  font-family: var(--vk-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-ink);
  overflow-wrap: anywhere;
}
.act-review .tr-bar i {
  background: var(--vk-gold);
}
.act-shadowqueue .tr-bar i,
.act-kick .tr-bar i {
  background: var(--vk-red);
}
.tr-row.act-review .tr-act {
  color: var(--vk-gold-ink);
}
.tr-row.act-shadowqueue .tr-act,
.tr-row.act-kick .tr-act {
  color: var(--vk-red-ink);
}
.tr-row.is-gone {
  opacity: 0.35;
}
.tr-feed {
  height: 21rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
  mask-image: linear-gradient(180deg, #000 72%, transparent);
}
.tr-quiet {
  padding: 10px 0;
  color: var(--muted-ink);
  font-style: italic;
}
.tr-ev {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  animation: tr-in 0.4s ease-out;
}
@keyframes tr-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.tr-ev-h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.tr-ev time {
  font-family: var(--vk-mono);
  font-size: 0.74rem;
  color: var(--muted-ink);
}
.tr-ev b {
  color: var(--ink);
  font-weight: 600;
}
.tr-ev code {
  font-size: 0.78rem;
  color: var(--vk-cyan-ink);
  background: none;
  padding: 0;
}
.tr-ev em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--vk-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-ink);
}
.tr-ev.act-review em {
  color: var(--vk-gold-ink);
}
.tr-ev.act-shadowqueue em,
.tr-ev.act-kick em {
  color: var(--vk-red-ink);
}
.tr-ev-s {
  display: block;
  margin-top: 2px;
  color: var(--text);
}
.tr-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 80ch;
  margin: clamp(24px, 3vw, 36px) 0 0;
  font-size: 0.86rem;
  color: var(--muted-ink);
}
.tr-note svg {
  flex: none;
  margin-top: 4px;
}

@media (max-width: 980px) {
  .trial {
    grid-template-columns: minmax(0, 1fr);
  }
  .tr-stage {
    width: min(100%, 560px);
    margin: 0 auto;
  }
}
@media (max-width: 720px) {
  .hh {
    --hh-art: clamp(250px, 40vh, 340px);
  }
  .hh-ledger {
    grid-template-columns: minmax(0, 1fr);
  }
  .hh-stat,
  .hh-stat:first-child {
    border-left: 0;
    padding: 16px 0 14px;
  }
  .sec-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .sec-num {
    border-right: 0;
    text-align: left;
    padding: 0 0 10px;
    font-size: 2.6rem;
  }
  .tr-row {
    grid-template-columns: minmax(0, 1fr) 3.2em minmax(0, 0.9fr);
    gap: 4px 10px;
  }
  .tr-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .tr-feed {
    height: 24rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hh-enter svg,
  .tr-ev {
    animation: none;
  }
}

/* Real time detection: the attack reads as a procession, one step per row. */
.rt-chain {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: clamp(8px, 2vw, 20px);
}
.rt-step {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr);
  column-gap: 12px;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.rt-step:first-child {
  border-top: 0;
}
.rt-step > * {
  grid-column: 2;
}
.rt-step > .rt-n {
  grid-column: 1;
  grid-row: 1 / span 6;
  font-family: var(--vk-display);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--vk-gold-ink);
}
.rt-step::before,
.rt-step::after {
  display: none;
}
.rt-console {
  background: none;
}
.data code,
.rt-codes code,
.rt-step code,
.tr-ev code {
  white-space: nowrap;
}
.page-home :not(pre) > code {
  white-space: nowrap;
}
.page-home code.cmd {
  white-space: normal;
}
.ml-lane-head {
  flex-wrap: wrap;
}
.ml-demo {
  grid-template-columns: minmax(0, 1fr);
}
/* Code that is kept on one line on purpose ignores the <wbr> break points. */
table.opts td:first-child code wbr,
.data code wbr,
.rt-codes code wbr,
.rt-step code wbr,
.tr-ev code wbr,
.page-home :not(pre) > code:not(.cmd) wbr {
  display: none;
}
