/* THE AVALANCHE / Venomous Abyss debrief.
 *
 * Risograph poster, re-inked. wow-carried's grammar (zero radius, hairline
 * rules, grain, mono labels, Bayer dither) on coal, with venom green as the one
 * loud ink and ember as the second, reserved for pain. Green is "good", ember
 * is "hurt": colour is never the only channel, every bar carries its number. */

@font-face { font-family: 'Archivo Variable'; font-weight: 100 900; font-display: swap; src: url(../fonts/archivo-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono Variable'; font-weight: 100 900; font-display: swap; src: url(../fonts/geist-mono-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jacquard 12'; font-weight: 400; font-display: swap; src: url(../fonts/jacquard-12-latin-400-normal.woff2) format('woff2'); }

:root {
  color-scheme: dark;

  --coal-deep: #060806;     /* the ground the sheets float on */
  --coal: #0e120e;          /* the sheet */
  --coal-panel: #151a15;    /* cells, wells */
  --coal-sunken: #0a0d0a;   /* tracks, inputs */

  --venom: #8cff3c;         /* the ink */
  --venom-loud: #c2ff85;    /* hover, pressed: brighter, not deeper */
  --venom-wash: #1b2c15;    /* selected background */
  --ember: #ff6a3d;         /* the second ink: pain, friction */
  --ember-wash: #2f1a12;

  --bone: #e9eddc;          /* prose */
  --bone-muted: #a3ab98;    /* captions, ticks */
  --bone-faint: #5f6659;    /* NON-TEXT ONLY: rules, empty marks */
  --knockout: #0a0d0a;      /* type sitting ON a venom or ember fill */

  --rule: #263126;

  --font-display: 'Jacquard 12', serif;
  --font-title: 'Archivo Variable', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'Geist Mono Variable', ui-monospace, Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --page: 1120px;
}

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

html { background: var(--coal-deep); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--coal-deep);
  color: var(--bone);
  font: 400 1rem/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

/* Paper grain, over everything. Inline SVG turbulence: no request, no raster. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* An element's own display rule must not defeat the hidden attribute. */
[hidden] { display: none !important; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--venom-loud); outline-offset: 3px; }
::selection { background: var(--venom); color: var(--knockout); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- type ---------------------------------------------------------------- */
.mono {
  font: 500 0.72rem/1.3 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-muted);
}
.mono b { color: var(--venom); font-weight: 600; }

.h1, .h2, .h3 {
  font-family: var(--font-title);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--venom);
  margin: 0;
}
.h1 { font-size: clamp(2.6rem, 11.5vw, 9.4rem); line-height: 0.84; letter-spacing: -0.045em; }
.h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.02; letter-spacing: -0.025em; }
.h3 { font-size: 1.05rem; line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }
.wheel { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1; }

p { margin: 0; }
.lede { font-size: 1.15rem; line-height: 1.45; max-width: 52ch; color: var(--bone); }
.small { font-size: 0.88rem; color: var(--bone-muted); }

/* ---- sheets -------------------------------------------------------------- */
.page { width: min(var(--page), 100% - 24px); margin: 0 auto; padding: 12px 0 64px; display: grid; gap: 12px; }

.sheet {
  position: relative;
  background: var(--coal);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: clip;
}
.sheet > .in { padding: clamp(20px, 4vw, 48px); }

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule--strong { border-top-color: var(--venom); }

/* ---- hero ---------------------------------------------------------------- */
.hero { min-height: min(86vh, 760px); display: grid; align-items: end; }
.hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  /* One bit a dot, baked in: keep the edges hard rather than blurring the screen. */
  image-rendering: pixelated;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 18%, var(--coal) 96%), linear-gradient(90deg, color-mix(in srgb, var(--coal) 78%, transparent) 0%, transparent 46%);
  pointer-events: none;
}
.hero .in { position: relative; z-index: 2; display: grid; gap: 28px; }
.hero__top { position: absolute; z-index: 2; inset: 20px 24px auto; }
.hero__top:not([hidden]) .mono { background: var(--coal); color: var(--ember); border: 1px solid var(--ember); padding: 4px 8px; }
.hero__title { display: grid; gap: 6px; }


/* ---- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--venom);
  border-radius: 0;
  background: var(--venom);
  color: var(--knockout);
  font: 700 0.8rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 120ms, color 120ms, transform 120ms;
}
.btn:hover { background: var(--venom-loud); border-color: var(--venom-loud); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { background: transparent; color: var(--bone-faint); border-color: var(--rule); cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; color: var(--venom); }
.btn--ghost:hover { background: var(--venom-wash); color: var(--venom-loud); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 0.7rem; }

/* ---- progress ------------------------------------------------------------ */
.progress {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--coal-deep) 88%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--rule);
}
.progress__track { flex: 1; height: 8px; background: var(--coal-sunken); border: 1px solid var(--rule); position: relative; }
.progress__fill {
  position: absolute; inset: 0 auto 0 0; width: 0;
  background-color: var(--venom);
  background-image: radial-gradient(circle, var(--coal) 0.9px, transparent 1.1px);
  background-size: 3px 3px;
  transition: width 400ms var(--ease);
}

/* ---- questions ----------------------------------------------------------- */
.q { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 20px 40px; padding: clamp(20px, 4vw, 44px); border-top: 1px solid var(--rule); }
.q:first-child { border-top: 0; }
.q__head { display: grid; gap: 10px; align-content: start; }
.q__no { font: 400 clamp(3rem, 6vw, 4.6rem)/0.8 var(--font-display); color: var(--venom); }
.q__body { display: grid; gap: 18px; align-content: start; min-width: 0; }
.q__hint { font-size: 0.9rem; color: var(--bone-muted); }
.q.is-done .q__no { color: var(--bone-faint); }
.q.is-done .q__head .h2 { color: var(--bone-muted); }
.q__head .h2 { transition: color 200ms; }
.q.is-done .q__no::after { content: ' ✓'; font-family: var(--font-mono); font-size: 1.1rem; color: var(--venom); }
@media (max-width: 820px) { .q { grid-template-columns: 1fr; } .q__head { grid-template-columns: auto 1fr; align-items: end; } }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.sub { display: grid; gap: 10px; }
.sub + .sub { margin-top: 10px; }
.sub__label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* real inputs, visually hidden, so keyboard and screen readers get radios */
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick { position: relative; cursor: pointer; }
.pick:has(input:focus-visible) { outline: 2px solid var(--venom-loud); outline-offset: 3px; }

/* role */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.role {
  display: grid; place-items: center; gap: 4px;
  min-height: 88px;
  border: 1px solid var(--rule);
  background: var(--coal-panel);
  font: 800 1.3rem/1 var(--font-title);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  transition: background 120ms, color 120ms, border-color 120ms;
}
.role .mono { transition: color 120ms; }
.role:hover { border-color: var(--venom); }
.role:has(input:checked) { background: var(--venom); color: var(--knockout); border-color: var(--venom); }
.role:has(input:checked) .mono { color: var(--knockout); }

/* 1-6 */
.q { --cell: clamp(40px, 11.5vw, 52px); --gap: 8px; }
/* Every 1-6 box is the same size wherever it appears: one size, set once. */
.scale { display: flex; gap: var(--gap); }
.scale__cell {
  display: grid; place-items: center;
  flex: none;
  width: var(--cell);
  height: var(--cell);
  border: 1px solid var(--rule);
  background: var(--coal-panel);
  font: 700 1.3rem/1 var(--font-mono);
  transition: background 120ms, color 120ms, border-color 120ms, transform 160ms var(--ease);
}
.scale__cell:hover { border-color: var(--venom); transform: translateY(-2px); }
.scale__cell:has(input:checked) { background: var(--venom); color: var(--knockout); border-color: var(--venom); }
.scale__ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; max-width: calc(var(--cell) * 6 + var(--gap) * 5); }
.teams + .scale__ends { margin-left: calc(110px + 14px); }

/* The boss question takes the full sheet width: the plates are the point, and a
 * 170px card cannot hold a screenshot's worth of detail. */
.q--wide { grid-template-columns: 1fr; }
.q--wide .q__head { grid-template-columns: auto 1fr; align-items: end; }
/* bosses */
.bosses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .bosses { grid-template-columns: 1fr; } }
.boss { display: grid; border: 1px solid var(--rule); background: var(--coal-panel); transition: border-color 120ms, transform 160ms var(--ease); }
.boss:hover { border-color: var(--venom); transform: translateY(-2px); }
.boss canvas, .boss img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--coal-sunken); }
.boss__cap { display: grid; gap: 2px; padding: 10px 14px 12px; border-top: 1px solid var(--rule); min-height: 62px; align-content: start; transition: background 120ms, color 120ms; }
.boss__cap .mono { font-size: 0.64rem; }
.boss__cap b { font: 700 0.9rem/1.15 var(--font-title); text-transform: uppercase; letter-spacing: -0.01em; }
.boss--good:has(input:checked) { border-color: var(--venom); box-shadow: 0 0 0 1px var(--venom); }
.boss--good:has(input:checked) .boss__cap { background: var(--venom); color: var(--knockout); }
.boss--good:has(input:checked) .mono { color: var(--knockout); }
.boss--hard:hover { border-color: var(--ember); }
.boss--hard:has(input:checked) { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember); }
.boss--hard:has(input:checked) .boss__cap { background: var(--ember); color: var(--knockout); }
.boss--hard:has(input:checked) .mono { color: var(--knockout); }

/* text inputs */
.field {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  background: var(--coal-sunken);
  border: 1px solid var(--rule);
  border-radius: 0;
  color: var(--bone);
  transition: border-color 120ms;
}
.field:hover { border-color: var(--bone-faint); }
.field:focus { outline: none; border-color: var(--venom); box-shadow: 0 0 0 1px var(--venom); }
textarea.field { min-height: 110px; resize: vertical; line-height: 1.45; }
.field::placeholder { color: var(--bone-faint); }
.counter { text-align: right; }

/* tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--rule);
  background: var(--coal-panel);
  font-size: 0.92rem;
  transition: background 120ms, color 120ms, border-color 120ms, opacity 120ms;
}
.tag::before { content: '+'; font: 700 0.9rem var(--font-mono); color: var(--bone-faint); }
.tags--good .tag:hover { border-color: var(--venom); }
.tags--good .tag:has(input:checked) { background: var(--venom); color: var(--knockout); border-color: var(--venom); }
.tags--good .tag:has(input:checked)::before { content: '✓'; color: var(--knockout); }
.tags--bad .tag:hover { border-color: var(--ember); }
.tags--bad .tag:has(input:checked) { background: var(--ember); color: var(--knockout); border-color: var(--ember); }
.tags--bad .tag:has(input:checked)::before { content: '!'; color: var(--knockout); }
.tag:has(input:disabled) { opacity: 0.38; cursor: not-allowed; }

/* aspiration */
.opts { display: grid; gap: 8px; }
.opt {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 14px;
  min-height: 60px; padding: 10px 16px;
  border: 1px solid var(--rule);
  background: var(--coal-panel);
  transition: background 120ms, color 120ms, border-color 120ms;
}
.opt__dot { width: 18px; height: 18px; border: 1px solid var(--bone-faint); transition: background 120ms, border-color 120ms; }
.opt b { font: 700 1.02rem/1.15 var(--font-title); text-transform: uppercase; letter-spacing: -0.01em; }
.opt:hover { border-color: var(--venom); }
.opt:has(input:checked) { background: var(--venom); color: var(--knockout); border-color: var(--venom); }
.opt:has(input:checked) .opt__dot { background: var(--knockout); border-color: var(--knockout); }
.opt:has(input:checked) .mono { color: var(--knockout); }
@media (max-width: 560px) { .opt { grid-template-columns: 28px 1fr; } .opt .mono { display: none; } }

/* submit */
.submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(20px, 4vw, 44px); border-top: 1px solid var(--venom); background: var(--coal-panel); }
.notice { color: var(--ember); font-size: 0.9rem; min-height: 1.3em; }

.thanks { display: grid; gap: 28px; justify-items: center; text-align: center; min-height: 70vh; align-content: center; }
.stamp {
  display: grid; place-items: center; text-align: center;
  width: clamp(200px, 30vw, 280px); aspect-ratio: 1;
  border: 3px solid var(--venom);
  border-radius: 100%;
  color: var(--venom);
  font: 700 0.7rem/1.5 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(-9deg);
  animation: stamp 700ms var(--ease) both;
}
.stamp .wheel { font-size: clamp(3.8rem, 9vw, 6rem); letter-spacing: 0; text-transform: none; }
@keyframes stamp { from { transform: rotate(-30deg) scale(2.4); opacity: 0; } to { transform: rotate(-9deg) scale(1); opacity: 1; } }

.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding: 8px 4px; }

/* reveal */
.rise { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.rise.in-view { opacity: 1; transform: none; }

/* ============================ dashboard ================================== */
.bar { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter {
  min-height: 38px; padding: 0 14px;
  border: 1px solid var(--rule); background: transparent; border-radius: 0;
  font: 600 0.72rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-muted);
}
.filter:hover { border-color: var(--venom); color: var(--venom); }
.filter[aria-pressed='true'] { background: var(--venom); color: var(--knockout); border-color: var(--venom); }

.grid { display: grid; gap: 12px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; }
@media (max-width: 900px) { .span-8, .span-7, .span-6, .span-5, .span-4 { grid-column: span 12; } }

.panel { background: var(--coal); border: 1px solid var(--rule); border-radius: 16px; padding: clamp(18px, 3vw, 30px); display: grid; gap: 20px; align-content: start; min-width: 0; }
.panel__head { display: grid; gap: 6px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); border-radius: 16px; background: var(--coal); overflow: clip; }
.kpi { padding: 20px 22px; border-left: 1px solid var(--rule); display: grid; gap: 8px; align-content: space-between; min-height: 132px; }
.kpi:first-child { border-left: 0; }
.kpi__n { font: 800 clamp(2.4rem, 5vw, 3.8rem)/0.9 var(--font-title); letter-spacing: -0.04em; color: var(--venom); }
.kpi__n small { font: 500 0.9rem var(--font-mono); letter-spacing: 0; color: var(--bone-muted); margin-left: 4px; }
.kpi__n--word { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1; text-transform: none; }
@media (max-width: 760px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi:nth-child(3) { border-left: 0; } .kpi:nth-child(n + 3) { border-top: 1px solid var(--rule); } }

/* horizontal bars */
.hbars { display: grid; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(96px, 190px) 1fr 40px; align-items: center; gap: 12px; }
.hbar__label { font-size: 0.92rem; line-height: 1.2; }
.track { height: 22px; background: var(--coal-sunken); border: 1px solid var(--rule); position: relative; }
.fill { position: absolute; inset: 0 auto 0 0; width: 0; background-color: var(--venom); transition: width 700ms var(--ease); }
.fill--dots {
  background-image: radial-gradient(circle, var(--coal) 0.9px, transparent 1.1px);
  background-size: 3px 3px;
}
.fill--ember { background-color: var(--ember); }
.hbar__n { font: 600 0.86rem var(--font-mono); text-align: right; }
.hbar.is-top .fill:not(.fill--dots) { box-shadow: 0 0 0 1px var(--venom-loud); }
@media (max-width: 560px) { .hbar { grid-template-columns: 1fr 40px; } .hbar__label { grid-column: 1 / -1; } .hbar .track { grid-column: 1; } }

/* histogram */
.hist { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; align-items: end; height: 170px; }
.hist--sm { height: 96px; gap: 4px; }
.hist__col { display: grid; grid-template-rows: 1fr auto auto; height: 100%; gap: 4px; align-items: end; text-align: center; }
.hist__bar { width: 100%; min-height: 2px; background-color: var(--venom); background-image: radial-gradient(circle, var(--coal) 0.9px, transparent 1.1px); background-size: 3px 3px; transition: height 700ms var(--ease); height: 0; }
.hist__bar.is-mode { background-image: none; }
.hist__n { font: 600 0.78rem var(--font-mono); }
.hist--sm .hist__n { font-size: 0.66rem; }
.hist__x { font: 600 0.72rem var(--font-mono); color: var(--bone-muted); border-top: 1px solid var(--bone-faint); padding-top: 4px; }

.roleset { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .roleset { grid-template-columns: 1fr; } }
.roleset > div { border: 1px solid var(--rule); background: var(--coal-panel); padding: 14px; display: grid; gap: 12px; align-content: start; }
.roleset__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.roleset__mean { font: 800 2.2rem/0.9 var(--font-title); color: var(--venom); letter-spacing: -0.04em; }
.hidden-group { display: grid; place-items: center; min-height: 140px; text-align: center; color: var(--bone-muted); font-size: 0.86rem; padding: 12px; border: 1px dashed var(--bone-faint); }

/* boss butterfly */
.fly { display: grid; gap: 6px; }
.fly__row { display: grid; grid-template-columns: 1fr 232px 1fr; align-items: center; gap: 10px; }
.fly__mid { display: grid; grid-template-columns: 80px 1fr; gap: 10px; align-items: center; }
.fly__mid canvas, .fly__mid img { width: 80px; height: 60px; object-fit: cover; display: block; border: 1px solid var(--rule); background: var(--coal-sunken); }
.fly__mid b { font: 700 0.8rem/1.1 var(--font-title); text-transform: uppercase; letter-spacing: -0.01em; }
.fly__side { display: flex; align-items: center; gap: 8px; height: 22px; }
.fly__side--l { flex-direction: row-reverse; }
.fly__side .fill, .dv__side .fill { position: static; flex: none; height: 100%; width: calc((100% - 34px) * var(--r, 0)); min-width: 0; }
.fly__side .hbar__n { min-width: 22px; }
.fly__side--l .hbar__n { text-align: right; }
.fly__heads { display: grid; grid-template-columns: 1fr 232px 1fr; gap: 10px; margin-bottom: 4px; }
.fly__heads span:first-child { text-align: right; color: var(--venom); }
.fly__heads span:last-child { color: var(--ember); }
@media (max-width: 700px) {
  .fly__row, .fly__heads { grid-template-columns: 1fr 1fr; }
  .fly__heads span:nth-child(2) { display: none; }
  .fly__mid { grid-column: 1 / -1; order: -1; margin-top: 8px; }
}

/* worked vs needs work */
.diverge { display: grid; gap: 8px; }
.dv { display: grid; grid-template-columns: 1fr minmax(120px, 170px) 1fr; align-items: center; gap: 10px; }
.dv__label { text-align: center; font-size: 0.84rem; line-height: 1.15; }
.dv__side { display: flex; align-items: center; gap: 6px; height: 20px; }
.dv__side--l { flex-direction: row-reverse; }
@media (max-width: 560px) { .dv { grid-template-columns: 1fr 1fr; } .dv__label { grid-column: 1 / -1; order: -1; text-align: left; margin-top: 6px; } }

/* words */
.words { columns: 2 320px; column-gap: 12px; }
.word { break-inside: avoid; margin: 0 0 12px; padding: 16px 18px; background: var(--coal-panel); border: 1px solid var(--rule); font-size: 0.95rem; line-height: 1.5; position: relative; }
.word::before { content: '“'; position: absolute; top: -6px; left: 8px; font: 400 2.6rem/1 var(--font-display); color: var(--venom); }
.word--bad::before { color: var(--ember); }
.word p { padding-top: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }

.gate { display: grid; gap: 16px; justify-items: start; max-width: 460px; }
.gate form { display: flex; gap: 8px; width: 100%; }
.gate .field { flex: 1; }
.empty { color: var(--bone-muted); padding: 24px 0; }
.demo-flag { display: inline-block; padding: 4px 8px; background: var(--ember); color: var(--knockout); font: 700 0.68rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
  .rise { opacity: 1; transform: none; }
}

/* ---- team scores --------------------------------------------------------- */
.teams { display: grid; gap: 10px; }
.team { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 14px; }
.team__name { font: 800 1.15rem/1 var(--font-title); text-transform: uppercase; letter-spacing: -0.02em; color: var(--venom); }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; gap: 6px; } .teams + .scale__ends { margin-left: 0; } }

/* ---- MVP search ---------------------------------------------------------- */
.combo { position: relative; }
.combo .field { padding-right: 48px; }
.combo .field.is-picked { color: var(--venom); font-weight: 600; border-color: var(--venom); }
.combo__clear { position: absolute; right: 0; top: 0; width: 52px; height: 52px; border: 0; background: transparent; color: var(--bone-muted); font-size: 1.5rem; line-height: 1; }
.combo__clear:hover { color: var(--venom); }
.combo__list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 0; list-style: none; background: var(--coal-panel); border: 1px solid var(--venom); max-height: 340px; overflow-y: auto; }
.combo__opt { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 8px 12px; cursor: pointer; border-top: 1px solid var(--rule); }
.combo__opt:first-child { border-top: 0; }
.combo__opt[aria-selected='true'] { background: var(--venom-wash); }
.combo__opt:hover { background: var(--venom-wash); }
.combo__avatar, .combo__swatch { width: 36px; height: 36px; display: block; object-fit: cover; border: 1px solid var(--rule); background: var(--coal-sunken); }
.combo__swatch { width: 14px; height: 36px; margin-left: 11px; border: 0; }
.combo__name { font: 700 0.95rem/1.1 var(--font-title); text-transform: uppercase; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.combo__sub { font-size: 0.64rem; text-align: right; }
@media (max-width: 560px) { .combo__opt { grid-template-columns: 36px 1fr; } .combo__sub { grid-column: 2; text-align: left; } }

.hbar__label { display: grid; gap: 2px; }
.hbar__sub { font-size: 0.62rem; }
.roleset__mean.is-dim { color: var(--bone-muted); }

/* MVP: the input sits level with the title, not at the top of its column. */
.q--center .q__body { align-content: center; }
.combo__text { display: grid; gap: 2px; min-width: 0; }
.combo__realm { font-size: 0.82rem; color: var(--bone-muted); }
.combo__opt { padding-block: 10px; }
