/* =========================================================================
   CompAct-Bench · warm editorial style
   Claude's ivory paper and slate ink, with the coral accent hue-shifted to purple; serif headlines, a quiet
   sans for reading, soft rounded cards with hairline borders. No scanlines,
   glow, grain or CRT type. Every interactive module uses the same .panel.
   ========================================================================= */

:root {
  --paper: #f3f1ea;
  --paper-2: #eae6db;
  --card: #ffffff;
  --ink: #141413;
  --ink-2: #3d3d3a;
  --muted: #73726c;
  --line: rgba(20, 20, 19, .08);
  --line-2: rgba(20, 20, 19, .15);

  --space: #f3f1ea;
  --navy: #3d3d3a;
  --light: #f3f1ea;

  --scr: #eee9dc;
  /* Claude coral, hue-shifted to purple and desaturated so it stays quiet. */
  --amber: #8a6896;
  --amber-2: #ac86b9;
  --phos: #5e7d4a;
  --bad: #bf4d43;

  --red: #8a6896;
  --orange: #bea1c1;
  --yellow: #d2b2cd;
  --brown: #795f7e;

  --d-s: #ac86b9;
  --d-c: #788c5d;
  --d-w: #6a9bcc;
  --ds-s: #ac86b9;
  --ds-c: #788c5d;
  --ds-w: #6a9bcc;

  --ff-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --ff-display: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --ff-ui: var(--ff-display);
  --ff-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ff-crt: var(--ff-serif);
  --ff-type: var(--ff-serif);

  --shadow: 0 1px 2px rgba(20, 20, 19, .04), 0 6px 24px -12px rgba(20, 20, 19, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-snap: cubic-bezier(.6, 0, .2, 1);
  --nav-h: 60px;
}

[data-theme="dark"] {
  --paper: #262624;
  --paper-2: #1f1e1d;
  --card: #30302e;
  --ink: #faf9f5;
  --ink-2: #c2c0b6;
  --muted: #9c9a92;
  --line: rgba(250, 249, 245, .08);
  --line-2: rgba(250, 249, 245, .16);
  --space: #262624;
  --navy: #1f1e1d;
  --scr: #2b2b29;
  --amber: #b997c4;
  --amber-2: #c9abd0;
  --red: #b997c4;
  --phos: #9db17c;
  --bad: #e07a6e;
  --d-s: #c9abd0;
  --d-c: #9db17c;
  --d-w: #8fb5de;
  --ds-s: #c9abd0;
  --ds-c: #9db17c;
  --ds-w: #8fb5de;
  --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 8px 28px -14px rgba(0, 0, 0, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--ff-display); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
sup, sub { font-size: .62em; line-height: 0; }
::selection { background: rgba(172, 134, 185, .28); color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.mono, .kbd, .bib, .frag__c, .dtable td.mono { font-family: var(--ff-mono); }
.mono { font-size: .88em; }

/* the clay spark used as brand mark and section bullet */
.spark { display: inline-block; width: 1em; height: 1em; flex: 0 0 auto; color: var(--amber-2); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 800; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px; padding: 0 28px;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease), background .4s, border-color .4s;
}
.nav.is-paper { border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--ff-serif); font-weight: 500; font-size: 19px; text-decoration: none; letter-spacing: -.01em; }
.nav__brand b { font-weight: 500; color: var(--muted); }
.nav__brand .spark { width: 22px; height: 22px; }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a { padding: 7px 12px; border-radius: 8px; text-decoration: none; font-size: 14.5px; color: var(--ink-2); transition: background .2s, color .2s; }
.nav__links a:hover { background: var(--paper-2); color: var(--ink); }
.nav__links a.is-active { color: var(--ink); background: var(--paper-2); }
.nav__links .nav__hot { color: var(--amber); }
.nav__tools { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 9px; background: var(--card); color: var(--ink-2); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }
#soundBtn .snd-on { display: none; }
#soundBtn[aria-pressed="true"] .snd-on { display: inline; }
#soundBtn[aria-pressed="true"] .snd-off { display: none; }
.nav__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.nav__progress i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: var(--amber-2); }

/* ---------- shared atoms ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--muted); }
.eyebrow--light { color: var(--muted); }
.eyebrow--sec { color: var(--amber); margin-bottom: 16px; }
.eyebrow--sec::before { content: ""; width: .8em; height: .8em; background: currentColor; -webkit-mask: var(--spark-mask) center / contain no-repeat; mask: var(--spark-mask) center / contain no-repeat; }
:root { --spark-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 1.5c.7 0 1.1 3.6 1.6 6.3.4-2.6 2.6-5.6 3.2-5.3.6.3-.9 3.8-2.2 6.1 2-1.6 5.5-3.1 5.8-2.5.3.6-2.6 2.8-5 3.9 2.6-.1 6.3.6 6.3 1.3 0 .7-3.7 1.2-6.3 1.3 2.4 1.1 5.3 3.3 5 3.9-.3.6-3.8-.9-5.8-2.5 1.3 2.3 2.8 5.8 2.2 6.1-.6.3-2.8-2.7-3.2-5.3-.5 2.7-.9 6.3-1.6 6.3s-1.1-3.6-1.6-6.3c-.4 2.6-2.6 5.6-3.2 5.3-.6-.3.9-3.8 2.2-6.1-2 1.6-5.5 3.1-5.8 2.5-.3-.6 2.6-2.8 5-3.9-2.6-.1-6.3-.6-6.3-1.3 0-.7 3.7-1.2 6.3-1.3-2.4-1.1-5.3-3.3-5-3.9.3-.6 3.8.9 5.8 2.5-1.3-2.3-2.8-5.8-2.2-6.1.6-.3 2.8 2.7 3.2 5.3.5-2.7.9-6.3 1.6-6.3z'/></svg>"); }
.lamp { width: 7px; height: 7px; border-radius: 50%; background: var(--phos); }
@keyframes blink { 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }

.led { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); vertical-align: 1px; }
.led.on { background: var(--phos); }
.led.red { background: var(--bad); }
.led.amber { background: var(--amber-2); }

.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 13px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); text-decoration: none;
  font-size: 14.5px; font-weight: 500; line-height: 1.3;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 16px; height: 16px; color: var(--muted); }
.btn:hover { background: var(--paper-2); border-color: var(--line-2); }
.btn--hot { background: var(--red); border-color: var(--red); color: #fff; }
.btn--hot svg { color: currentColor; }
.btn--hot:hover { background: color-mix(in srgb, var(--red) 88%, #000); border-color: transparent; }
.btn--sm { padding: 5px 12px; font-size: 13px; }
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn:disabled { opacity: .45; box-shadow: none; }

.kbd { font-size: .84em; padding: .05em .4em; border: 1px solid var(--line-2); border-radius: 6px; background: var(--card); white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags span, .chipx { padding: 2px 9px; font-size: 12.5px; font-weight: 600; border-radius: 999px; color: var(--pc, var(--ink-2)); background: color-mix(in srgb, var(--pc, var(--ink)) 12%, transparent); }

.screen { position: relative; isolation: isolate; background: var(--scr); color: var(--ink-2); border-radius: 12px; }

/* ---------- panel: the one card component ---------- */
.panel {
  position: relative; margin-top: 28px; padding: 0 22px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.panel__hd {
  display: flex; align-items: center; gap: 12px; margin: 0 -22px 18px; padding: 14px 22px;
  border-bottom: 1px solid var(--line); font-size: 14px;
}
.panel__id { padding: 2px 9px; border-radius: 999px; background: var(--paper-2); color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.panel__t { font-weight: 600; color: var(--ink); }
.panel__st { margin-left: auto; color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.panel__hd .btn { margin-left: auto; }
.panel__cap { margin: 16px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.panel__sub { margin: -4px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.panel__sub strong { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; color: var(--ink);
  background: var(--paper);
  display: flex; flex-direction: column;
}
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero__vign { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 88%, transparent) 30%, color-mix(in srgb, var(--paper) 10%, transparent) 54%, transparent 64%), linear-gradient(0deg, var(--paper), transparent 22%), linear-gradient(180deg, var(--paper), transparent 16%); }
.hero__grid-bg { display: none; }
.line-tag { position: absolute; z-index: 2; pointer-events: none; transform: translate(-50%, -100%); padding: 5px 10px; white-space: nowrap; font-size: 13px; color: var(--ink-2); background: var(--card); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: var(--shadow); opacity: 0; transition: opacity .4s; }
.line-tag b { color: var(--amber); font-weight: 600; }
.line-tag::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 14px; background: var(--line-2); }
.line-tag.on { opacity: 1; }
.hero__wrap { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: minmax(0, 640px) 1fr; grid-template-rows: 1fr auto; width: 100%; max-width: 1400px; margin: 0 auto; padding: calc(var(--nav-h) + 52px) 40px 32px; gap: 24px 40px; pointer-events: none; }
.hero__wrap > * { pointer-events: auto; }
.hero__copy { align-self: center; }
.hero__title { margin: 20px 0 0; font-family: var(--ff-serif); font-weight: 400; line-height: 1; }
.t-mark { display: block; font-size: clamp(48px, 6.6vw, 100px); font-weight: 500; letter-spacing: -.025em; white-space: nowrap; }
.t-rest { display: block; margin-top: 18px; max-width: 24ch; font-size: clamp(22px, 2.3vw, 32px); font-weight: 400; line-height: 1.22; letter-spacing: -.01em; color: var(--ink-2); }
.hl { background: linear-gradient(transparent 64%, rgba(172, 134, 185, .26) 64%, rgba(172, 134, 185, .26) 94%, transparent 94%); color: var(--ink); padding: 0 .04em; }
.hero__sub { max-width: 54ch; margin: 24px 0 0; font-size: 17.5px; color: var(--ink-2); }
.hero__sub em { font-style: italic; font-family: var(--ff-serif); font-size: 1.06em; color: var(--ink); }
.hero__authors { margin-top: 26px; font-size: 15px; font-weight: 500; line-height: 1.8; }
.au { white-space: nowrap; margin-right: 3px; }
.au a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.au a:hover { color: var(--amber); border-color: var(--amber); }
.au sup { color: var(--amber); margin-left: 1px; }
.hero__aff { display: flex; flex-wrap: wrap; gap: 3px 20px; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.hero__aff sup { color: var(--amber); margin-right: 3px; }
.hero__corr { flex-basis: 100%; font-size: 12.5px; }

.telemetry { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.6fr); border-top: 1px solid var(--line-2); }
.tm { padding: 14px 14px 4px 0; border-right: 1px solid var(--line); }
.tm + .tm { padding-left: 16px; }
.tm:last-child { border-right: 0; }
.tm span { display: block; font-size: 13px; color: var(--muted); }
.tm b { display: block; margin-top: 2px; font-family: var(--ff-serif); font-weight: 400; font-size: 34px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.tm b i { font-style: normal; }
.tm--hot b { color: var(--amber); }
.tm--live span { color: var(--amber); }

/* ---------- sections ---------- */
.section { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 56px; max-width: 1360px; margin: 0 auto; padding: 120px 40px; }
.section--alt { isolation: isolate; }
.section--alt::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--paper-2); transition: background .5s var(--ease); }
.section__side { position: sticky; top: calc(var(--nav-h) + 30px); align-self: start; }
.sidx { font-family: var(--ff-serif); font-weight: 400; font-size: 64px; line-height: .9; letter-spacing: -.03em; color: var(--amber-2); font-variant-numeric: oldstyle-nums; }
.sname { margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--muted); }
.tblock { display: none; }
.section__main { min-width: 0; }
.h2 { margin: 0; max-width: 22ch; font-family: var(--ff-serif); font-size: clamp(34px, 4vw, 56px); line-height: 1.1; letter-spacing: -.02em; font-weight: 400; text-wrap: balance; }
.h2 .dot { display: none; }
.h3 { margin: 76px 0 0; font-family: var(--ff-serif); font-size: 30px; letter-spacing: -.01em; font-weight: 400; }
.lead { max-width: 68ch; margin: 22px 0 0; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.lead strong { color: var(--ink); font-weight: 600; }
.lead--drop::first-letter { float: left; font-family: var(--ff-serif); font-size: 3.6em; line-height: .86; font-weight: 400; margin: .06em .1em 0 0; color: var(--amber-2); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal[data-d="1"] { transition-delay: .08s; } .reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; } .reveal[data-d="4"] { transition-delay: .32s; }
.reveal.in { opacity: 1; transform: none; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 52px; border-top: 1px solid var(--line-2); }
.stat { padding: 20px 20px 4px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 20px; }
.stat:last-child { border-right: 0; }
.stat__v { font-family: var(--ff-serif); font-weight: 400; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat__l { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }

.abstract { margin-top: 28px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.abstract summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; cursor: pointer; list-style: none; font-family: var(--ff-serif); font-size: 20px; font-weight: 400; }
.abstract summary::-webkit-details-marker { display: none; }
.abstract summary i { width: 14px; height: 14px; position: relative; }
.abstract summary i::before, .abstract summary i::after { content: ""; position: absolute; inset: 6px 0; background: var(--ink); transition: transform .3s var(--ease); }
.abstract summary i::after { transform: rotate(90deg); }
.abstract[open] summary i::after { transform: rotate(0); }
.abstract p { margin: 0 0 18px; max-width: 78ch; font-size: 15.5px; color: var(--ink-2); columns: 2; column-gap: 36px; }

.eq { margin: 30px 0 0; padding: 18px 22px 14px; border-left: 3px solid var(--amber-2); border-radius: 0 12px 12px 0; background: var(--paper-2); overflow-x: auto; }
.eq--in { margin: 16px 0 0; background: transparent; padding: 10px 14px; }
.eqlabel { font-family: var(--ff-ui); font-size: 12px; letter-spacing: .005em; color: var(--muted); }
.eq .katex-display { margin: .5em 0 .1em; }
.eq .katex { font-size: 1.15em; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.grid2--wide { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.tablewrap { overflow-x: auto; }

/* ---------- overview figure ---------- */
.overview { padding: 14px 14px 8px; overflow: hidden; }
.overview svg { display: block; width: 100%; height: auto; }
.ov-hd { font-family: var(--ff-ui); font-size: 13px; font-weight: 600; fill: var(--muted); }
.ov-txt { font-family: var(--ff-ui); font-size: 14px; fill: var(--ink-2); }
.ov-big { font-family: var(--ff-serif); font-size: 30px; fill: var(--ink); }
.ov-small { font-family: var(--ff-ui); font-size: 12px; fill: var(--muted); }

/* ---------- domain cards ---------- */
.carts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.cart { position: relative; }
.cart__shell { position: relative; padding: 0; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.cart:hover .cart__shell { transform: translateY(-3px); }
.cart__foot, .cart__win { display: none; }
.cart__label { position: relative; padding: 22px 22px 26px; color: var(--ink); }
.cart__k { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.cart__k span:first-child { color: var(--dc); font-weight: 600; text-transform: capitalize; }
.cart__n { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.cart__n b { font-family: var(--ff-serif); font-size: 64px; font-weight: 400; line-height: .9; letter-spacing: -.03em; }
.cart__n span { font-size: 14px; color: var(--muted); text-transform: lowercase; }
.cart__name { margin-top: 6px; font-family: var(--ff-serif); font-size: 20px; font-weight: 400; color: var(--ink-2); }
.cart__stripe { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--dc); }
.cart__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 14px; padding: 0 4px; font-size: 13.5px; color: var(--muted); }
.cart__meta b { color: var(--ink); }

/* ---------- data tables ---------- */
.dtable { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.dtable th { padding: 8px 10px; text-align: left; font-family: var(--ff-ui); font-size: 12px; font-weight: 700; letter-spacing: .005em; color: var(--muted); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.dtable td { padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dtable tbody tr { transition: background .2s; }
.dtable tbody tr:hover { background: color-mix(in srgb, var(--amber) 12%, transparent); }
.dtable .num { text-align: right; }
.dtable .grp td { border-top: 1px solid var(--line-2); }
.dtable .spark { display: inline-block; height: 8px; background: var(--bc, var(--ink)); vertical-align: middle; margin-right: 8px; }
.dtable--compact td, .dtable--compact th { padding: 7px 8px; }
.dk { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 6px; vertical-align: 0; }
.dk--s { background: var(--d-s); } .dk--c { background: var(--d-c); } .dk--w { background: var(--d-w); }

/* ---------- protocol ---------- */
.pipe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 22px; counter-reset: p; }
.pipe__node { position: relative; padding: 18px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); transition: background .3s, border-color .3s; }
.pipe__node::after { content: "→"; position: absolute; right: -10px; top: 18px; z-index: 2; font-size: 14px; color: var(--muted); }
.pipe__node:last-child::after { display: none; }
.pipe__node:hover { border-color: var(--line-2); }
.pipe__node em { display: block; font-style: normal; font-family: var(--ff-serif); font-size: 15px; color: var(--muted); }
.pipe__node b { display: block; margin-top: 4px; font-family: var(--ff-serif); font-size: 21px; font-weight: 400; }
.pipe__node span { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.pipe__node--hot { background: color-mix(in srgb, var(--amber-2) 12%, var(--card)); border-color: color-mix(in srgb, var(--amber-2) 40%, transparent); }
.pipe__node--hot:hover { border-color: var(--amber-2); }
.pipe__node--hot em { color: var(--amber); }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; column-gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: "✓"; grid-row: span 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--phos); background: color-mix(in srgb, var(--phos) 14%, transparent); font-family: var(--ff-ui); font-size: 12px; font-weight: 700; }
.checklist b { font-size: 15px; }
.checklist span { grid-column: 2; font-family: var(--ff-ui); font-size: 12.5px; color: var(--muted); }
.checklist .is-live::before { content: "●"; font-size: 9px; color: #fff; background: var(--amber-2); }
.checklist .is-live b { color: var(--amber); }

.irc { display: grid; grid-template-columns: 190px minmax(0, 1fr) 70px; gap: 0 14px; align-items: center; font-family: var(--ff-ui); font-size: 12.5px; }
.irc__hd { padding-bottom: 8px; border-bottom: 1px solid var(--line-2); font-size: 12px; letter-spacing: .005em; color: var(--muted); }
.irc__nm { padding: 6px 0; border-bottom: 1px solid var(--line); font-family: var(--ff-display); font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.irc__tr { position: relative; height: 100%; min-height: 31px; border-bottom: 1px solid var(--line); }
.irc__band { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--d-c) 14%, transparent); border-inline: 1px dashed color-mix(in srgb, var(--d-c) 60%, transparent); }
.irc__tgt { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px solid var(--red); }
.irc__iqr { position: absolute; top: 50%; height: 4px; margin-top: -2px; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease-snap); }
.irc__med { position: absolute; z-index: 2; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--amber); border: 1px solid var(--line-2); opacity: 0; transition: opacity .4s var(--ease) .5s; }
.irc.in .irc__iqr { transform: scaleX(1); } .irc.in .irc__med { opacity: 1; }
.irc__tol { padding: 6px 0; border-bottom: 1px solid var(--line); text-align: right; font-weight: 700; }
.irc__tol.lo { color: var(--bad); }
.irc__ax { position: relative; height: 22px; font-size: 12px; color: var(--muted); }
.irc__ax span { position: absolute; top: 4px; transform: translateX(-50%); }

/* ---------- leaderboard ---------- */
.lb__ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.seg-ctl { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--paper-2); }
.seg-ctl button { padding: 6px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font-family: var(--ff-ui); font-size: 12.5px; letter-spacing: 0; transition: background .2s, color .2s; }

.seg-ctl button:hover { color: var(--ink); }
.seg-ctl button.is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 20, 19, .12); }
.lb__ci { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-ui); font-size: 12.5px; letter-spacing: 0; cursor: pointer; }
.lb__ci input { accent-color: var(--red); width: 15px; height: 15px; }
.lb__table { position: relative; margin-top: 14px; }
.lb__head, .lb__row { display: grid; grid-template-columns: 44px minmax(170px, 1.4fr) repeat(4, minmax(0, 1fr)); align-items: center; gap: 12px; }
.lb__head { padding: 8px 6px; border-bottom: 1px solid var(--line-2); font-family: var(--ff-ui); font-size: 12px; letter-spacing: .005em; color: var(--muted); }
.lb__head button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.lb__head button:hover, .lb__head button.is-on { color: var(--ink); }
.lb__head button::after { content: "↕"; opacity: .4; }
.lb__head button.is-on::after { content: "↓"; opacity: 1; color: var(--red); }
.lb__body { position: relative; }
.lb__row { position: absolute; left: 0; right: 0; height: 46px; padding: 0 6px; border-bottom: 1px solid var(--line); transition: transform .8s var(--ease-snap), background .2s; cursor: pointer; }
.lb__row:hover, .lb__row.is-hl { background: color-mix(in srgb, var(--amber) 13%, transparent); }
.lb__rk { font-family: var(--ff-serif); font-size: 22px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb__row.is-top .lb__rk { color: var(--red); }
.lb__nm { min-width: 0; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb__nm small { margin-left: 6px; font-family: var(--ff-ui); font-size: 12.5px; font-weight: 500; letter-spacing: 0; padding: 2px 5px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--muted); }
.lb__row.is-top .lb__nm::before { content: "✻ "; color: var(--amber-2); }
.lb__c { position: relative; height: 30px; display: flex; flex-direction: column; justify-content: center; }
.lb__v, .lb__bar, .lb__bar i, .lb__bar s { display: block; }
.lb__c { height: auto !important; }
.lb__v { line-height: 1.15; }
.lb__bar { flex-shrink: 0; }
.lb__v { position: relative; z-index: 1; font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.lb__c.sorted .lb__v { color: var(--red); }
.lb__bar { position: relative; height: 4px; margin-top: 4px; border-radius: 2px; background: var(--line); }
.lb__bar i { position: absolute; inset: 0 auto 0 0; border-radius: 2px; width: 0; background: var(--bc, var(--ink)); transition: width 1s var(--ease-snap); }
.lb__bar s { position: absolute; top: -3px; bottom: -3px; border-inline: 1px solid var(--line-2); opacity: 0; transition: left 1s var(--ease-snap), width 1s var(--ease-snap), opacity .3s; text-decoration: none; }
.lb.ci-on .lb__bar s.has { opacity: .45; }
.lb__ci-t { font-family: var(--ff-ui); font-size: 12.5px; color: var(--muted); letter-spacing: .02em; display: none; }
.lb.ci-on .lb__ci-t.has { display: block; }
.lb__detail { position: absolute; left: 0; right: 0; top: 0; height: 158px; overflow: hidden; padding: 12px 6px 14px 62px; border-bottom: 1px solid var(--line-2); background: color-mix(in srgb, var(--amber) 8%, var(--card)); opacity: 0; pointer-events: none; transition: opacity .3s, transform .8s var(--ease-snap); }
.lb__detail.on { opacity: 1; pointer-events: auto; }
.lb__dgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lb__dgrid h5 { margin: 0 0 6px; font-family: var(--ff-ui); font-size: 12px; letter-spacing: .005em; color: var(--muted); }
.lb__dbars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.lb__dbars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-family: var(--ff-ui); font-size: 12px; }
.lb__dbars i { display: block; width: 100%; background: var(--bc); }
.lb__dbars span { margin-top: 3px; color: var(--muted); }
.lb__dbars b { font-size: 12px; }

.multi { margin-top: 24px; }
.multi__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 10px; box-shadow: var(--shadow); }
.mcard__t { display: flex; flex-direction: column; gap: 2px; font-family: var(--ff-ui); font-size: 12px; letter-spacing: .005em; color: var(--muted); }
.mcard__t b { font-family: var(--ff-serif); font-weight: 400; font-size: 26px; line-height: 1.1; letter-spacing: -.02em; text-transform: none; white-space: nowrap; }
.mcard svg { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.mline { fill: none; stroke: var(--line-2); stroke-width: 1.3; transition: stroke .25s, stroke-width .25s, opacity .25s; }
.mline.is-hl { stroke: var(--ink); stroke-width: 3; }
.multi.has-hl .mline:not(.is-hl) { opacity: .2; }
.mavg { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.mband { opacity: .14; }
.mdot { stroke: var(--card); stroke-width: 2; }
.maxis { font-family: var(--ff-ui); font-size: 12px; fill: var(--muted); }
.mgrid { stroke: var(--line); stroke-dasharray: 2 4; }
.mval { font-family: var(--ff-ui); font-size: 12.5px; font-weight: 700; }
.multi__legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; font-family: var(--ff-ui); font-size: 12.5px; transition: background .2s, color .2s; }
.chip:hover { background: var(--paper-2); } .chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.multi__read { min-height: 24px; margin-top: 10px; font-family: var(--ff-ui); font-size: 12px; color: var(--muted); }
.multi__read b { color: var(--ink); }

/* ---------- analysis ---------- */
.reels { padding: 16px 16px 10px; display: grid; grid-template-columns: 56px repeat(3, minmax(0, 1fr)); }
.reels__hd { padding: 0 0 8px; font-family: var(--ff-ui); font-size: 12.5px; letter-spacing: .005em; text-align: center; }
.reels__rw { display: flex; align-items: center; font-family: var(--ff-serif); font-size: 22px; color: var(--muted); }
.reel-c { display: flex; flex-direction: column; align-items: center; padding: 6px 0 10px; border-top: 1px dashed var(--line-2); }
.reel-c svg { width: 100%; max-width: 140px; height: auto; overflow: visible; }
.reel-c .spin { transform-box: fill-box; transform-origin: center; animation: spin var(--spd, 6s) linear infinite; }
.reel-c .pack { transition: r 1.4s var(--ease); }
.reel-c b { margin-top: 2px; font-family: var(--ff-serif); color: var(--ink); font-size: 24px; font-weight: 400; line-height: 1; }

.gbars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 50px; height: 240px; padding-bottom: 28px; position: relative; border-bottom: 1px solid var(--line-2); }
.gb { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 5px; }
.gb__x { position: absolute; bottom: -26px; left: 0; right: 0; text-align: center; font-family: var(--ff-crt); font-size: 22px; }
.gb__b { position: relative; flex: 1 1 0; max-width: 40px; height: 0; border-radius: 6px 6px 0 0; background: var(--bc); transition: height 1.2s var(--ease-snap); }
.gb__b span { position: absolute; top: -19px; left: 50%; transform: translateX(-50%); font-family: var(--ff-ui); font-size: 12px; font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity .4s .9s; }
.gb.in .gb__b span { opacity: 1; }
.gb__gain { position: absolute; left: 50%; transform: translate(-50%, -6px); padding: 2px 6px; font-family: var(--ff-ui); font-size: 12.5px; font-weight: 700; color: #fff; background: var(--red); border-radius: 6px; opacity: 0; transition: opacity .4s 1.2s; white-space: nowrap; }
.gb__gain.neg { background: var(--muted); }
.gb.in .gb__gain { opacity: 1; }
.gkey { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 34px; font-family: var(--ff-ui); font-size: 12.5px; color: var(--muted); }
.gkey i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }

.audit__bar { display: flex; height: 50px; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.audit__bar > div { width: 0; transition: width 1.4s var(--ease-snap); display: flex; align-items: center; padding-left: 14px; font-family: var(--ff-serif); font-weight: 400; font-size: 20px; color: #fff; white-space: nowrap; overflow: hidden; }
.audit__bar > div + div { border-left: 2px solid var(--card); }
.audit__key { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-family: var(--ff-ui); font-size: 12.5px; color: var(--muted); }
.audit__key i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }

.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.path { position: relative; padding: 24px 24px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.path::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--pc); }
.path--omit { --pc: #b492b5; } .path--distort { --pc: var(--bad); }
.path__no { position: absolute; right: 20px; top: 6px; font-family: var(--ff-serif); font-weight: 400; font-style: italic; font-size: 84px; line-height: 1; color: var(--pc); opacity: .18; }
.path__flow { display: flex; align-items: center; gap: 8px; font-family: var(--ff-ui); font-size: 12px; letter-spacing: 0; }
.path__flow span { padding: 3px 10px; border-radius: 999px; background: var(--paper-2); }
.path__flow span:last-child { background: var(--pc); color: #fff; }
.path__flow i { flex: 1; max-width: 46px; height: 2px; background: repeating-linear-gradient(90deg, var(--pc) 0 4px, transparent 4px 7px); background-size: 7px 2px; animation: tape .5s linear infinite; }
@keyframes tape { to { background-position: 7px 0; } }
.path h4 { margin: 18px 0 8px; font-family: var(--ff-serif); font-size: 26px; font-weight: 400; letter-spacing: -.01em; }
.path p { margin: 0; font-size: 15px; color: var(--ink-2); }
.path p b { color: var(--pc); }

.fly__hd, .fly__row { display: grid; grid-template-columns: minmax(0, 1fr) 118px minmax(0, 1fr); align-items: center; }
.fly__hd { font-family: var(--ff-ui); font-size: 12px; letter-spacing: .005em; color: var(--muted); padding-bottom: 8px; }
.fly__hd span:first-child { text-align: right; padding-right: 10px; } .fly__hd span:last-child { padding-left: 10px; }
.fly__row { height: 40px; }
.fly__l, .fly__r { position: relative; height: 18px; }
.fly__l i, .fly__r i { position: absolute; top: 0; bottom: 0; width: 0; transition: width 1.1s var(--ease-snap); }
.fly__l i { right: 0; border-radius: 4px 0 0 4px; background: var(--amber-2); } .fly__r i { left: 0; border-radius: 0 4px 4px 0; background: #b492b5; }
.fly__l em, .fly__r em { position: absolute; top: 50%; transform: translateY(-50%); font-family: var(--ff-ui); font-size: 12px; font-weight: 700; font-style: normal; white-space: nowrap; }
.fly__lab { text-align: center; font-family: var(--ff-ui); font-size: 12px; font-weight: 700; }
.fly__lab small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); line-height: 1.1; }
.fly__row.hot .fly__lab { color: var(--red); }
.fly__any { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-family: var(--ff-ui); font-size: 12.5px; color: var(--muted); }
.fly__any b { color: var(--ink); }

.heat { display: grid; grid-template-columns: 46px repeat(7, minmax(0, 1fr)); gap: 3px; }
.heat__h { font-family: var(--ff-ui); font-size: 12.5px; line-height: 1.15; color: var(--muted); display: flex; align-items: flex-end; justify-content: center; text-align: center; padding-bottom: 4px; min-height: 34px; }
.heat__r { font-family: var(--ff-ui); font-size: 12.5px; font-weight: 700; display: flex; align-items: center; }
.heat__c { aspect-ratio: 1.6; display: grid; place-items: center; font-family: var(--ff-ui); font-size: 12.5px; font-weight: 700; border-radius: 6px; transform: scale(.4); opacity: 0; transition: transform .5s var(--ease), opacity .5s, outline-color .2s; outline: 2px solid transparent; outline-offset: 1px; }
.heat.in .heat__c { transform: none; opacity: 1; }
.heat__c:hover { outline-color: var(--ink); }
.heat__c.dim { opacity: .25 !important; }
.heat__read { min-height: 40px; margin-top: 12px; font-family: var(--ff-ui); font-size: 12px; color: var(--muted); }
.heat__read b { color: var(--ink); }

/* ---------- investigation board ---------- */
.inv { margin-top: 36px; }
.inv__folders { display: flex; gap: 8px; padding-bottom: 4px; overflow-x: auto; }
.folder {
  position: relative; flex: 0 0 auto; padding: 9px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--muted); font-size: 12.5px; text-align: left;
  transition: background .2s, border-color .2s, color .2s;
}

.folder:hover { border-color: var(--line-2); color: var(--ink-2); }
.folder.is-on { background: var(--ink); border-color: var(--ink); color: color-mix(in srgb, var(--paper) 70%, transparent); }
.folder b { display: block; font-family: var(--ff-serif); font-weight: 400; font-size: 16px; color: var(--ink); } .folder.is-on b { color: var(--paper); }
.folder .closed { position: absolute; right: 8px; top: 6px; font-size: 11.5px; color: var(--phos); font-weight: 700; display: none; }
.folder.is-solved .closed { display: block; }
.inv__board { margin-top: 12px; padding-top: 22px; padding-bottom: 22px; }
.inv__board::before { display: none; }
.case__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.case__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--ff-ui); font-size: 12px; letter-spacing: .005em; color: var(--muted); }
.case__meta b { color: var(--ink); }
.case__title { margin: 8px 0 0; font-family: var(--ff-serif); font-weight: 400; font-size: 32px; letter-spacing: -.01em; line-height: 1.15; }
.case__task { margin: 10px 0 0; max-width: 80ch; font-family: var(--ff-type); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.case__score { text-align: right; font-family: var(--ff-ui); font-size: 12px; letter-spacing: .005em; color: var(--muted); }
.case__score b { display: block; font-family: var(--ff-serif); font-size: 48px; line-height: .9; font-weight: 400; color: var(--ink); letter-spacing: 0; }
.case__q { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--amber-2) 12%, var(--card)); color: var(--ink-2); font-size: 14.5px; }
.case__q b { color: var(--amber); letter-spacing: .005em; }
.board {
  position: relative; margin-top: 14px; padding: 22px 20px 24px; border-radius: 14px;
  background: var(--paper-2);
}
.board__cols { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.board__col h5 { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font-family: var(--ff-ui); font-size: 12px; letter-spacing: .005em; }
.board__col h5 i { padding: 1px 8px; border-radius: 999px; background: var(--card); color: var(--ink); font-style: normal; font-weight: 600; }
.note {
  position: relative; display: block; width: 100%; margin: 0 0 16px; padding: 18px 14px 12px; text-align: left;
  border: 1px solid var(--line); border-radius: 12px; font-family: var(--ff-type); font-size: 15px; line-height: 1.5; color: var(--ink);
  background: var(--card);
  box-shadow: var(--shadow);
  transform: none; transition: transform .3s var(--ease), box-shadow .3s, outline-color .2s;
  outline: 2px solid transparent; outline-offset: 3px;
}
.note::before { content: ""; position: absolute; left: 14px; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--muted); opacity: .5; }
.note small { display: block; margin-bottom: 4px; font-family: var(--ff-ui); font-size: 12.5px; letter-spacing: .005em; color: var(--muted); }
.note mark { background: rgba(172, 134, 185, .22); color: inherit; padding: 0 2px; border-radius: 3px; }
.note--mb { background: color-mix(in srgb, var(--amber-2) 9%, var(--card)); }
.note--mb::before { background: var(--amber-2); opacity: 1; }
.note--act { background: var(--card); color: var(--ink-2); font-family: var(--ff-mono); font-size: 13px; line-height: 1.55; }

.note--act::before { background: var(--d-w); opacity: 1; }
.note--act .ok { color: var(--phos); } .note--act .no { color: var(--bad); }
.note--ghost { background: transparent; border: 1px dashed var(--line-2); box-shadow: none; color: var(--muted); font-family: var(--ff-ui); font-size: 12px; text-align: center; }
.note--ghost::before { display: none; }
.note.clickable { cursor: pointer; }
.note.clickable:hover { transform: translateY(-2px); outline-color: color-mix(in srgb, var(--amber-2) 60%, transparent); }
.note.wrong { animation: shake .45s; outline-color: var(--muted); }
.note.culprit { outline-color: var(--bad); }
.note.culprit.good { outline-color: var(--d-c); }
.note.dim { opacity: .5; }
@keyframes shake { 20%, 60% { transform: translateX(-6px) rotate(-1deg); } 40%, 80% { transform: translateX(6px) rotate(1deg); } }
.note__flag { position: absolute; right: 8px; top: 6px; font-family: var(--ff-ui); font-size: 12.5px; font-weight: 700; letter-spacing: .005em; padding: 1px 8px; border-radius: 999px; color: #fff; background: var(--bad); }
.note__flag.g { background: var(--d-c); }
.strings { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: visible; }
.strings path { fill: none; stroke-width: 1.8; stroke-linecap: round; opacity: .7; }
.strings .s-red { stroke: var(--bad); } .strings .s-green { stroke: var(--d-c); } .strings .s-gray { stroke: var(--muted); stroke-dasharray: 5 6; }
.case__hint { min-height: 22px; margin-top: 12px; font-family: var(--ff-ui); font-size: 12px; color: var(--muted); }
.case__hint b { color: var(--bad); }
.verdict { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.verdict[hidden] { display: none; }
.stamp { padding: 6px 16px; border-radius: 999px; background: color-mix(in srgb, currentColor 12%, transparent); font-family: var(--ff-serif); font-weight: 500; font-size: 20px; }
.stamp.ok { color: var(--phos); } .stamp.bad { color: var(--bad); }
.stamp.slam { animation: slam .4s var(--ease); }
@keyframes slam { 0% { transform: scale(.85); opacity: 0; } 100% { transform: none; opacity: 1; } }
.verdict h4 { margin: 0; font-family: var(--ff-serif); font-weight: 400; font-size: 21px; }
.verdict p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.verdict .tags { margin-top: 8px; }
.inv__progress { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--ff-ui); font-size: 12.5px; letter-spacing: .005em; color: var(--muted); }
.inv__progress i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-style: normal; font-size: 12px; }
.inv__progress i.on { background: var(--phos); border-color: var(--phos); color: #fff; }

/* ---------- play: missions + game ---------- */
.missions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.mission {
  position: relative; padding: 16px 18px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s, background .2s;
}
.mission::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--dc); }
.mission:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mission.is-on { border-color: var(--dc); box-shadow: 0 0 0 1px var(--dc), var(--shadow); }
.mission small { display: block; font-family: var(--ff-ui); font-size: 12px; letter-spacing: .005em; opacity: .7; }
.mission b { display: block; margin-top: 4px; font-family: var(--ff-serif); font-weight: 400; font-size: 21px; }
.mission span { display: block; margin-top: 4px; font-family: var(--ff-ui); font-size: 12.5px; opacity: .75; }
.mission em { position: absolute; right: 12px; top: 12px; font-style: normal; font-family: var(--ff-ui); font-size: 12px; font-weight: 700; letter-spacing: 0; padding: 1px 8px; border: 0; border-radius: 999px; background: color-mix(in srgb, currentColor 12%, transparent); }
.mission em.pass { color: var(--phos); border-color: var(--phos); } .mission em.fail { color: var(--bad); border-color: var(--bad); }
.mission.is-on em.pass { color: var(--ds-c); border-color: var(--ds-c); }

.game { margin-top: 18px; }
.brief { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: start; }
.brief__task small { font-family: var(--ff-ui); font-size: 12px; letter-spacing: .005em; color: var(--muted); }
.brief__task p { margin: 4px 0 0; font-family: var(--ff-type); font-size: 15.5px; line-height: 1.5; }
.brief__specs { display: grid; grid-template-columns: repeat(4, auto); gap: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); }
.spec { padding: 8px 14px; border-right: 1px solid var(--line); }
.spec:last-child { border-right: 0; }
.spec span { display: block; font-family: var(--ff-ui); font-size: 12.5px; letter-spacing: .005em; color: var(--muted); }
.spec b { display: block; font-family: var(--ff-serif); font-size: 24px; font-weight: 400; line-height: 1; }
.workbench { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; margin-top: 18px; }
.wb__hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-family: var(--ff-ui); font-size: 12px; letter-spacing: .005em; }
.wb__hd b { font-weight: 700; }
.wb__hd span { color: var(--muted); }
.frags { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow-y: auto; padding-right: 4px; }
.frag {
  position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: start; width: 100%; padding: 10px 12px;
  text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  transition: border-color .2s, background .2s, transform .2s var(--ease), opacity .2s;
}
.frag:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.frag.is-in { border-color: color-mix(in srgb, var(--amber-2) 55%, transparent); background: color-mix(in srgb, var(--amber-2) 9%, var(--card)); }
.frag.is-in::after { content: "in M_b"; position: absolute; right: 12px; bottom: 8px; font-size: 12px; font-weight: 600; color: var(--amber); }
.frag__r { font-family: var(--ff-serif); font-size: 20px; line-height: 1.1; color: var(--muted); }
.frag__t { font-size: 14.5px; line-height: 1.5; }
.frag__t small { display: block; font-family: var(--ff-ui); font-size: 12.5px; letter-spacing: .005em; color: var(--muted); margin-bottom: 2px; }
.frag__c { font-size: 12px; font-weight: 500; white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); }
.frag.heavy .frag__c { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.frag.locked { pointer-events: none; }
.frag__role { display: none; margin-top: 6px; font-family: var(--ff-ui); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.revealed .frag__role { display: block; }

.capsule { position: sticky; top: calc(var(--nav-h) + 16px); }
.gauge { padding: 16px 18px 14px; }
.gauge__row { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--ff-ui); font-size: 12px; color: var(--muted); }
.gauge__row b { font-family: var(--ff-serif); font-weight: 400; font-size: 34px; line-height: 1; color: var(--ink); }
.gauge__row b.over { color: var(--bad); }
.gauge__bar { position: relative; display: flex; gap: 2px; height: 10px; margin-top: 10px; border-radius: 5px; overflow: hidden; }
.gauge__bar i { flex: 1; background: rgba(138, 104, 150, .12); transition: background .15s; }
.gauge__bar i.on { background: var(--amber-2); }
.gauge__bar i.over { background: var(--bad); }
.gauge__cap { display: flex; justify-content: space-between; margin-top: 4px; font-family: var(--ff-ui); font-size: 12.5px; color: var(--muted); }
.picked { display: flex; flex-direction: column; gap: 8px; min-height: 200px; margin-top: 12px; padding: 10px; border: 1px dashed var(--line-2); border-radius: 12px; }
.picked__empty { margin: auto; text-align: center; font-family: var(--ff-ui); font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.pk { padding: 10px 12px; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; background: var(--card); animation: pkIn .35s var(--ease); }
@keyframes pkIn { from { transform: translateY(-8px) scale(.97); opacity: 0; } }
.pk__top { display: flex; align-items: flex-start; gap: 8px; }
.pk__txt { flex: 1; font-family: var(--ff-type); font-size: 13.5px; line-height: 1.4; }
.pk__x { flex: 0 0 auto; width: 22px; height: 22px; border: 1px solid var(--line-2); border-radius: 6px; background: none; font-size: 12px; line-height: 1; }
.pk__x:hover { background: var(--red); color: #fff; border-color: var(--red); }
.pk__vars { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.pk__vars button { padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; font-family: var(--ff-ui); font-size: 12px; letter-spacing: .005em; }
.pk__vars button.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pk__vars button:hover:not(.is-on) { border-color: var(--ink); }
.cap-actions { display: flex; gap: 8px; margin-top: 12px; }
.cap-actions .btn { flex: 1; justify-content: center; }
.btn-commit { background: var(--red); border-color: var(--red); color: #fff; } .btn-commit svg { color: currentColor; }

.runner { margin-top: 20px; padding: 16px 18px 14px; }
.runner[hidden] { display: none; }
.runner__hd { display: flex; justify-content: space-between; font-family: var(--ff-ui); font-size: 12px; color: var(--muted); }
.runner__hd b { color: var(--ink); font-weight: 600; }
.track { display: flex; gap: 4px; margin-top: 10px; }
.track i { flex: 1; height: 26px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); position: relative; transition: background .2s; }
.track i::after { content: attr(data-n); position: absolute; left: 4px; top: 3px; font-family: var(--ff-ui); font-size: 11.5px; color: var(--muted); }
.track i.ok { background: color-mix(in srgb, var(--phos) 70%, transparent); border-color: transparent; }
.track i.rep { background: repeating-linear-gradient(45deg, var(--amber-2) 0 4px, rgba(172, 134, 185, .28) 4px 8px); border-color: transparent; }
.track i.chk { background: color-mix(in srgb, var(--d-w) 60%, transparent); border-color: transparent; }
.track i.bad { background: var(--bad); border-color: var(--bad); }
.track i.ok::after, .track i.bad::after, .track i.chk::after { color: rgba(0, 0, 0, .55); }
.track__key { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.track__key i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; }
.rlog { margin-top: 10px; height: 150px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; font-family: var(--ff-mono); font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.rlog div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: lineIn .25s; }
@keyframes lineIn { from { opacity: 0; transform: translateX(-6px); } }
.rlog .g { color: var(--phos); } .rlog .r { color: var(--bad); } .rlog .d { color: var(--muted); } .rlog .b { color: var(--ds-w); }

.debrief { margin-top: 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; padding-top: 18px; border-top: 1px solid var(--line-2); }
.debrief[hidden] { display: none; }
.debrief__rank small { display: block; font-family: var(--ff-ui); font-size: 12px; letter-spacing: .005em; color: var(--muted); }
.debrief__rank h4 { margin: 4px 0 0; font-family: var(--ff-serif); font-weight: 400; font-size: 34px; line-height: 1.1; }
.debrief__rank p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.debrief__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); }
.dbx { padding: 12px 14px; border-right: 1px solid var(--line); }
.dbx:last-child { border-right: 0; }
.dbx span { display: block; font-family: var(--ff-ui); font-size: 12.5px; letter-spacing: .005em; color: var(--muted); }
.dbx b { display: block; margin-top: 2px; font-family: var(--ff-serif); font-size: 28px; font-weight: 400; line-height: 1; }
.field { margin-top: 14px; }
.field__t { font-family: var(--ff-ui); font-size: 12px; letter-spacing: .005em; color: var(--muted); }
.field__strip { position: relative; height: 46px; margin-top: 6px; border-bottom: 1px solid var(--line-2); }
.field__strip i { position: absolute; bottom: 0; width: 2px; background: var(--muted); }
.field__strip i:hover { background: var(--ink); }
.field__strip .mean { width: 0; top: 0; border-left: 2px dashed var(--red); background: none; }
.field__ax { display: flex; justify-content: space-between; font-family: var(--ff-ui); font-size: 12.5px; color: var(--muted); }
.debrief__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- quiz ---------- */
.quiz { min-height: 440px; }
.qz__prog { display: flex; gap: 6px; }
.qz__prog i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); transition: background .3s; }
.qz__prog i.on { background: var(--amber-2); }
.qz__body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px; margin-top: 22px; }
.qz__n { font-family: var(--ff-serif); font-style: italic; font-size: 56px; line-height: .9; color: var(--amber-2); }
.qz__q { margin: 12px 0 0; font-family: var(--ff-serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -.01em; font-weight: 400; }
.qz__opts { display: flex; flex-direction: column; gap: 8px; }
.qz__opt { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; padding: 13px 14px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 15.5px; line-height: 1.45; transition: background .2s, color .2s, transform .2s var(--ease); animation: optIn .4s var(--ease) both; }
.qz__opt:nth-child(2) { animation-delay: .05s; } .qz__opt:nth-child(3) { animation-delay: .1s; } .qz__opt:nth-child(4) { animation-delay: .15s; }
@keyframes optIn { from { opacity: 0; transform: translateX(14px); } }
.qz__opt b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--paper-2); border: 0; font-family: var(--ff-ui); font-size: 13px; }
.qz__opt:hover { border-color: var(--line-2); background: var(--paper-2); } .qz__opt:hover b { background: var(--card); }
.qz__opt.pick { background: color-mix(in srgb, var(--amber-2) 14%, var(--card)); border-color: var(--amber-2); } .qz__opt.pick b { background: var(--amber-2); color: #fff; }
.qz__res { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 34px; align-items: center; margin-top: 10px; perspective: 1200px; }
.badge3d { position: relative; aspect-ratio: .68; transform-style: preserve-3d; animation: badgeIn 1.1s var(--ease) both; }
@keyframes badgeIn { from { transform: rotateY(-180deg) rotateX(10deg); } to { transform: none; } }
.badge3d:hover .badge { transform: rotateY(var(--bry, 0deg)) rotateX(var(--brx, 0deg)); }
.badge { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; background: #f3f1ea; color: #141413; box-shadow: 0 30px 50px -28px rgba(20, 20, 19, .35), inset 0 0 0 1px rgba(20, 20, 19, .08); transition: transform .3s var(--ease); display: flex; flex-direction: column; }
.badge__top { padding: 16px 18px 12px; background: #8a6896; color: #fff; display: flex; justify-content: space-between; align-items: center; font-family: var(--ff-ui); font-size: 12px; letter-spacing: .005em; }
.badge__top svg { width: 34px; height: 34px; }
.badge__stripes { height: 6px; background: linear-gradient(90deg, #ac86b9 0 33%, #788c5d 33% 66%, #6a9bcc 66%); }
.badge__body { flex: 1; padding: 16px 18px; display: flex; flex-direction: column; }
.badge__body small { font-size: 12.5px; color: #73726c; }
.badge__name { margin: 2px 0 0; font-family: var(--ff-serif); font-size: 32px; line-height: 1.05; font-weight: 400; letter-spacing: -.01em; }
.badge__cfg { font-size: 12.5px; color: #73726c; }
.badge__arch { margin-top: 12px; padding: 4px 12px; border-radius: 999px; background: #eae6db; color: #8a6896; font-family: var(--ff-serif); font-style: italic; font-size: 18px; line-height: 1.3; align-self: flex-start; }
.badge__bars { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.bbar { display: grid; grid-template-columns: 76px minmax(0, 1fr) 40px; gap: 8px; align-items: center; font-family: var(--ff-ui); font-size: 12px; }
.bbar i { display: block; height: 6px; border-radius: 3px; overflow: hidden; background: rgba(20, 20, 19, .08); position: relative; }
.bbar i s { display: block; position: absolute; inset: 0 auto 0 0; background: var(--bc); text-decoration: none; width: 0; transition: width 1s var(--ease-snap) .6s; }
.badge__photo { margin: 14px 0 12px; padding: 10px; border-radius: 12px; background: #eae6db; }
.badge__photo svg { display: block; width: 100%; height: auto; }
.badge__photo .spin { transform-box: fill-box; transform-origin: center; animation: spin 4s linear infinite; }
.bbar b { text-align: right; }
.badge__foot { display: flex; justify-content: space-between; padding: 8px 18px; border-top: 1px solid rgba(20, 20, 19, .08); font-size: 12px; color: #73726c; }
.qz__rtext h3 { margin: 0; font-family: var(--ff-serif); font-weight: 400; font-size: clamp(28px, 3vw, 42px); line-height: 1.12; letter-spacing: -.01em; }
.qz__rtext p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.qz__alt { margin-top: 16px; font-family: var(--ff-ui); font-size: 12.5px; color: var(--muted); }
.qz__alt b { color: var(--ink); }
.qz__note { margin-top: 10px; font-family: var(--ff-ui); font-size: 12px; color: var(--muted); }

/* ---------- cite / footer / toast ---------- */
.bib { margin: 0; padding: 22px 24px; font-family: var(--ff-mono); font-size: 13.5px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; overflow-x: auto; }
.foot { position: relative; background: #141413; color: #faf9f5; }
.foot__stripes { display: none; }
.foot__stripes i { height: 7px; }
.foot__stripes i:nth-child(1) { background: var(--yellow); } .foot__stripes i:nth-child(2) { background: var(--orange); }
.foot__stripes i:nth-child(3) { background: var(--red); } .foot__stripes i:nth-child(4) { background: var(--brown); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; max-width: 1400px; margin: 0 auto; padding: 42px 40px 50px; font-size: 13.5px; line-height: 1.7; }
.foot__l { color: #c2c0b6; } .foot__l strong { display: inline-block; margin-bottom: 6px; font-family: var(--ff-serif); font-weight: 400; font-size: 20px; color: #faf9f5; }
.foot__links { display: flex; gap: 22px; font-size: 14.5px; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { color: var(--amber-2); }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 950; transform: translate(-50%, 200%); opacity: 0; visibility: hidden; padding: 10px 18px; background: var(--ink); color: var(--paper); border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); transition: transform .4s var(--ease); }
.toast.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .nav__links a { padding: 8px 7px; letter-spacing: .005em; }
  .pipe { grid-template-columns: repeat(3, minmax(0, 1fr)); }


  .pipe__node::after { display: none; }
  .workbench { grid-template-columns: minmax(0, 1fr); }
  .capsule { position: static; }
}
@media (max-width: 1060px) {
  .nav__links { display: none; }
  .nav__tools { margin-left: auto; }
  .section { grid-template-columns: 1fr; gap: 10px; padding: 90px 22px; }
  .section__side { position: static; display: flex; align-items: flex-end; gap: 16px; }
  .sidx { font-size: 48px; }
  .sname { margin: 0; border: 0; padding: 0 0 6px; }
  .tblock { display: none; }
  .hero__wrap { grid-template-columns: 1fr; padding: calc(var(--nav-h) + 30px) 22px 22px; }
  .hero__vign { background: linear-gradient(0deg, var(--paper) 12%, color-mix(in srgb, var(--paper) 55%, transparent) 60%, color-mix(in srgb, var(--paper) 30%, transparent)); }
  .patch { width: 90px; height: 90px; right: 18px; }
  .telemetry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tm:nth-child(3) { border-right: 0; }
  .tm:nth-child(4) { padding-left: 0; }
  .tm--live { grid-column: span 3; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .hero__scroll { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid2, .grid2--wide, .paths, .multi__grid, .board__cols { grid-template-columns: minmax(0, 1fr); }
  .carts { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .abstract p { columns: 1; }
  .qz__body, .qz__res { grid-template-columns: minmax(0, 1fr); }
  .badge3d { max-width: 340px; }
  .missions { grid-template-columns: minmax(0, 1fr); }
  .brief { grid-template-columns: minmax(0, 1fr); }
  .case__top { grid-template-columns: minmax(0, 1fr); }
  .case__score { text-align: left; }
  .debrief { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .met { display: none; }
  .t-mark { font-size: 46px; }
  .pipe { grid-template-columns: minmax(0, 1fr); }


  .lb__head, .lb__row { grid-template-columns: 28px minmax(0, 1.4fr) repeat(4, minmax(0, .8fr)); gap: 6px; }
  .lb__nm small { display: none; }
  .lb__nm { font-size: 12.5px; }
  .lb__v { font-size: 13px; }
  .lb__head { font-size: 8.5px; letter-spacing: .04em; }
  .lb__detail { padding-left: 6px; }
  .irc { grid-template-columns: 110px minmax(0, 1fr) 46px; }
  .irc__nm { font-size: 11.5px; }
  .heat { grid-template-columns: 38px repeat(7, minmax(0, 1fr)); }
  .heat__c { font-size: 8.5px; }
  .heat__h { font-size: 7px; }
  .brief__specs { grid-template-columns: repeat(2, auto); }
  .spec:nth-child(2) { border-right: 0; }
  .spec:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .debrief__grid { grid-template-columns: minmax(0, 1fr); }
  .dbx { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .panel { padding: 0 12px 12px; }
  .panel__hd { margin: 0 -12px 14px; padding: 8px 12px; flex-wrap: wrap; gap: 6px 10px; }
  .panel__st { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .grain { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   Charts: purple-led gradient fills, softer marks, and per-module interaction
   states. Page and card backgrounds are untouched.
   ========================================================================= */
:root { --chart-hi: rgba(138, 104, 150, .12); --tint: white; }
[data-theme="dark"] { --chart-hi: rgba(185, 151, 196, .14); }

/* domain cards + data card */
.cart { outline: none; }
.cart__shell { transition: transform .4s var(--ease), box-shadow .4s, border-color .4s, opacity .3s, filter .3s; }
.cart:hover .cart__shell, .cart:focus-visible .cart__shell { box-shadow: 0 18px 34px -20px color-mix(in srgb, var(--dc) 75%, transparent); border-color: color-mix(in srgb, var(--dc) 45%, var(--line)); }
.cart.is-dim .cart__shell { opacity: .45; filter: saturate(.6); }
.cart__stripe { background: linear-gradient(90deg, var(--dc), color-mix(in srgb, var(--dc) 40%, var(--tint))); }
.dtable .spark { height: 10px; border-radius: 0 6px 6px 0; transform-origin: left center; background: linear-gradient(90deg, color-mix(in srgb, var(--bc, var(--ink)) 42%, var(--tint)), var(--bc, var(--ink))); transition: transform .4s var(--ease); }
.dtable tbody tr:hover .spark { transform: scaleY(1.4); }
.dtable tr { transition: background .25s, opacity .3s; }
.dtable tr.is-dim { opacity: .35; }
.dtable tr.grp { cursor: pointer; }
.dtable tr.grp:hover { background: var(--chart-hi); }
.dtable tr.grp .caret { display: inline-block; width: 14px; margin-right: 2px; color: var(--muted); font-size: 11px; transition: transform .35s var(--ease); }
.dtable tr.grp .caret::before { content: "\25BE"; }
.dtable tr.grp.is-collapsed .caret { transform: rotate(-90deg); }
.dtable tr[hidden] { display: none; }
.dk { background-image: linear-gradient(135deg, rgba(255, 255, 255, .35), transparent); }

/* protocol and domain strips */
.path::before { background: linear-gradient(90deg, var(--pc), color-mix(in srgb, var(--pc) 40%, var(--tint))); }
.mission::before { background: linear-gradient(90deg, var(--dc), color-mix(in srgb, var(--dc) 40%, var(--tint))); }

/* interval-range chart */
.irc__nm, .irc__tr, .irc__tol { transition: background .25s; }
.irc__nm.is-hl, .irc__tr.is-hl, .irc__tol.is-hl { background: var(--chart-hi); }
.irc__iqr { height: 5px; margin-top: -2.5px; border-radius: 3px; background: linear-gradient(90deg, var(--amber), var(--amber-2)); }
.irc__med { background: var(--card); border: 2px solid var(--amber); box-shadow: 0 0 0 3px rgba(172, 134, 185, .25); transition: opacity .4s var(--ease) .5s, transform .35s var(--ease); }
.irc__tr.is-hl .irc__med { transform: scale(1.4); }
.irc__band { background: color-mix(in srgb, var(--amber-2) 12%, transparent); border-inline-color: color-mix(in srgb, var(--amber-2) 55%, transparent); }
.irc__tgt { border-left-color: var(--amber); }

/* leaderboard */
.lb__row:focus-visible { outline-offset: -2px; border-radius: 6px; }
.lb__bar { height: 5px; border-radius: 3px; }
.lb__bar i { border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--bc, var(--ink)) 45%, var(--tint)), var(--bc, var(--ink))); }
.lb__row:hover .lb__bar i, .lb__row.is-hl .lb__bar i { filter: saturate(1.3); }
.lb__dbars i { border-radius: 5px 5px 0 0; transform-origin: bottom; animation: growY .7s var(--ease) both; background: linear-gradient(180deg, var(--bc), color-mix(in srgb, var(--bc) 45%, var(--tint))); }
@keyframes growY { from { transform: scaleY(0); } }
.lb__dbars div:hover i { filter: saturate(1.3) brightness(1.05); }

/* boundary small multiples */
.mhit { fill: none; stroke: transparent; stroke-width: 10; pointer-events: stroke; cursor: pointer; }
.mline.is-hl { stroke: var(--amber); }
.mband { opacity: .2; }
.mavg { filter: drop-shadow(0 3px 4px rgba(138, 104, 150, .3)); }
.mdot { stroke-width: 3; }

/* token circles */
.reel-c { transition: opacity .3s; }
.reel-c svg { transition: transform .5s var(--ease); }
.reel-c.is-hl svg { transform: scale(1.08); }
.reels.has-hl .reel-c:not(.is-hl) { opacity: .4; }
.reels__read { grid-column: 1 / -1; }
.reel-c .pack { transition: r 1.4s var(--ease), fill .3s; }

/* persistence bars */
.gb__b { cursor: pointer; background: linear-gradient(180deg, color-mix(in srgb, var(--bc) 62%, var(--tint)), var(--bc)); transition: height 1.2s var(--ease-snap), opacity .3s, filter .3s; }
.gbars.has-s .gb__b:not(.is-hl) { opacity: .35; }
.gb__b.is-hl { filter: saturate(1.25); }
.gbars .gb__b.is-off, .gbars.has-s .gb__b.is-off { opacity: .1; pointer-events: none; }
.gkey .gk { display: inline-flex; align-items: center; padding: 3px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; font: inherit; color: var(--muted); transition: color .25s, border-color .25s, opacity .25s, transform .35s var(--ease); }
.gkey .gk:hover { color: var(--ink); border-color: var(--amber-2); transform: translateY(-1px); }
.gkey .gk.is-off { opacity: .45; text-decoration: line-through; }

/* audit bar */
.audit__bar > div { background: linear-gradient(180deg, color-mix(in srgb, var(--bc) 72%, var(--tint)), var(--bc)); cursor: pointer; transition: width 1.4s var(--ease-snap), opacity .3s, filter .3s; }
.audit__bar > div.is-dim { opacity: .35; }
.audit__bar > div:hover { filter: saturate(1.2) brightness(1.04); }
.audit__key span { cursor: pointer; transition: opacity .3s; }
.audit__key span.is-dim { opacity: .4; }

/* butterfly */
.fly__l i { background: linear-gradient(270deg, var(--amber), var(--amber-2)); }
.fly__r i { background: linear-gradient(90deg, #a98bb0, var(--yellow)); }
.fly__row { border-radius: 8px; transition: opacity .3s, background .3s; }
.fly__row.is-hov { background: var(--chart-hi); }
.fly.has-hov .fly__row:not(.is-hov) { opacity: .4; }
.fly__any { transition: opacity .3s; }

/* heat map */
.heat__c { position: relative; transition: transform .5s var(--ease), opacity .5s, outline-color .2s, box-shadow .3s; }
.heat.in .heat__c:hover { transform: scale(1.1); z-index: 2; box-shadow: 0 8px 18px -8px rgba(44, 28, 58, .45); }

/* leader / compare chips */
.chip { transition: background .25s, color .25s, border-color .25s, transform .35s var(--ease); }
.chip:hover { transform: translateY(-1px); border-color: var(--amber-2); }
