/* The talk deck. The brain is the stage; slides are light layers over it; the fly watches from its corner. */
:root {
  --bg: oklch(0.13 0.012 290);
  --ink: oklch(0.96 0.005 290);
  --muted: oklch(0.72 0.02 290);
  --faint: oklch(0.5 0.02 290);
  --line: oklch(0.32 0.02 290);
  --panel: oklch(0.16 0.015 290 / 0.72);
  --red: oklch(0.68 0.22 25);
  --green: oklch(0.85 0.2 150);
  --violet: oklch(0.7 0.18 300);
  --pink: oklch(0.75 0.2 340);
  --yellow: oklch(0.89 0.15 93);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
  --stage: oklch(0 0 0);
  font-family:
    ui-sans-serif,
    -apple-system,
    'Segoe UI',
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--stage);
  height: 100%;
  overflow: hidden;
}
.brain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  cursor: grab;
  transform: translateX(18vw);
  transition:
    transform 1s var(--ease),
    opacity 0.9s var(--ease);
}
body[data-layout='wide'] .brain {
  transform: translateX(24vw);
}
body[data-layout='center'] .brain {
  transform: none;
}
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 70% 45%, transparent 30%, oklch(0.1 0.01 290 / 0.55) 75%),
    linear-gradient(
      90deg,
      oklch(0.1 0.01 290 / 0.82) 0%,
      oklch(0.1 0.01 290 / 0.35) 46%,
      transparent 70%
    );
  transition: opacity 0.8s var(--ease);
}
body.brain-only .vignette,
body.brain-only .deck,
body.brain-only .readout {
  opacity: 0;
  pointer-events: none;
}

/* The premise comes before the fly is plugged in: no brain, no fly, no readout. */
body.bare .brain,
body.bare .fly,
body.bare .readout,
body.bare .touch {
  opacity: 0;
  pointer-events: none;
}

/* Slides */
.deck {
  position: fixed;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.slide {
  position: absolute;
  inset: 6vh 5vw 9vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.2vh;
  max-width: 58vw;
  opacity: 0;
  transform: translateY(1.2vh);
  transition:
    opacity 0.5s var(--ease),
    transform 0.6s var(--ease);
}
.slide.wide {
  max-width: 90vw;
}
.slide.center {
  max-width: none;
  align-items: center;
  text-align: center;
}
.slide.on {
  opacity: 1;
  transform: none;
}
.slide.on * {
  pointer-events: auto;
}
.kicker {
  font: 600 1.6vh/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
}
h1 {
  margin: 0;
  font-size: 8.4vh;
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 750;
  text-wrap: balance;
}
h1.cover {
  font-size: 12vh;
  max-width: 14ch;
}
h2 {
  margin: 0;
  font-size: 5.6vh;
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 720;
  text-wrap: balance;
}
p,
li {
  font-size: 2.6vh;
  line-height: 1.38;
  color: var(--muted);
  margin: 0;
  max-width: 48ch;
  text-wrap: pretty;
}
.slide strong {
  color: var(--ink);
}
.slide strong.red {
  color: var(--red);
}
.slide strong.green {
  color: var(--green);
}
.byline {
  font-size: 2.4vh;
  color: var(--muted);
}
blockquote {
  margin: 0;
  padding-left: 2.2vh;
  border-left: 0.5vh solid var(--violet);
  font-size: 3.4vh;
  line-height: 1.3;
  color: var(--ink);
  max-width: 34ch;
  text-wrap: pretty;
}
blockquote.big {
  font-size: 5vh;
  max-width: 24ch;
  border: 0;
  padding: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}
blockquote cite {
  display: block;
  margin-top: 1.2vh;
  font: 500 1.7vh var(--mono);
  color: var(--faint);
  font-style: normal;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2vh 3vh;
  font: 500 1.9vh var(--mono);
  color: var(--muted);
}
.facts b {
  color: var(--ink);
  font-size: 2.6vh;
  display: block;
}
.step {
  transition:
    opacity 0.45s var(--ease),
    transform 0.5s var(--ease);
}
.step.later {
  opacity: 0;
  transform: translateY(0.8vh);
}
.caption {
  font: 500 1.8vh var(--mono);
  color: var(--faint);
}
/* The jokes. */
.aside {
  font-size: 2.4vh;
  font-style: italic;
  color: var(--yellow);
}

/* Buttons and inputs */
button,
input {
  font: inherit;
}
.button {
  appearance: none;
  border: 1px solid var(--line);
  background: oklch(0.2 0.02 290 / 0.8);
  color: var(--ink);
  border-radius: 999px;
  padding: 1.1vh 2.4vh;
  font-size: 2vh;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.15s;
}
.button:hover {
  border-color: var(--violet);
}
.button:active {
  transform: scale(0.97);
}
.button.primary {
  background: var(--violet);
  border-color: var(--violet);
  color: oklch(0.13 0.02 290);
}
.button.on {
  border-color: var(--yellow);
  color: var(--yellow);
}
.row {
  display: flex;
  gap: 1.2vh;
  align-items: center;
  flex-wrap: wrap;
}
.pr-input {
  flex: 1 1 32ch;
  min-width: 0;
  background: oklch(0.1 0.01 290 / 0.8);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 1vh;
  padding: 1.2vh 1.6vh;
  font: 500 2.1vh var(--mono);
}
.pr-input:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* The nose: Jev's questions */
.receptors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8vh;
  max-width: 62vw;
}
.receptor {
  font: 500 1.55vh var(--mono);
  padding: 0.6vh 1.1vh;
  border-radius: 0.8vh;
  border: 1px solid var(--line);
  color: var(--muted);
  background: oklch(0.16 0.015 290 / 0.7);
}
.receptor.lit {
  color: var(--ink);
  border-color: var(--violet);
  background: oklch(0.7 0.18 300 / 0.22);
}
.receptor.silenced {
  text-decoration: line-through;
  color: var(--red);
  border-color: oklch(0.68 0.22 25 / 0.5);
}
.odor {
  display: grid;
  grid-template-columns: repeat(53, 1fr);
  gap: 0.25vh;
  height: 8vh;
  align-items: end;
  width: min(58vw, 900px);
}
.odor i {
  display: block;
  height: 4%;
  border-radius: 0.3vh 0.3vh 0 0;
  background: var(--violet);
  transition: height 0.9s var(--ease);
}
.odor i.lexical {
  background: var(--yellow);
}

/* Intro and sponsor */
.intro {
  display: flex;
  align-items: center;
  gap: 4vh;
}
.headshot {
  width: 30vh;
  height: 30vh;
  border-radius: 50%;
  object-fit: cover;
  border: 0.4vh solid var(--violet);
  box-shadow: 0 0 6vh oklch(0.7 0.18 300 / 0.35);
}
.logo {
  width: min(56vw, 900px);
  height: auto;
}

/* Big comparisons */
.duel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3vh;
  width: min(62vw, 980px);
}
.duel > div {
  padding: 2.4vh;
  border: 1px solid var(--line);
  border-radius: 1.6vh;
  background: var(--panel);
  transition:
    border-color 0.3s,
    opacity 0.3s;
}
.duel.three {
  grid-template-columns: repeat(3, 1fr);
}
.duel.three .num {
  font-size: 6.4vh;
}
.duel ul {
  margin: 1.6vh 0 0;
  padding-left: 2.2vh;
  font-size: 1.9vh;
  line-height: 1.45;
  color: var(--muted);
}
.duel li + li {
  margin-top: 0.8vh;
}
.build-list {
  padding-left: 3vh;
  font-size: 2.3vh;
  line-height: 1.45;
  max-width: 44vw;
}
.build-list li + li {
  margin-top: 1.4vh;
}
.duel > div.dim {
  opacity: 0.4;
}
.duel .num {
  font-size: 9vh;
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.duel .num small {
  font-size: 3.4vh;
  color: var(--muted);
}
.duel .good {
  border-color: var(--green);
}
.duel .bad {
  border-color: var(--red);
}
.bars {
  display: grid;
  gap: 1.4vh;
  width: min(60vw, 920px);
}
.bar {
  display: grid;
  grid-template-columns: 30vh 1fr 10vh;
  gap: 1.6vh;
  align-items: center;
  font-size: 2.2vh;
  color: var(--muted);
}
.bar .track {
  height: 3.2vh;
  border-radius: 0.6vh;
  background: oklch(0.2 0.015 290 / 0.8);
  overflow: hidden;
}
.bar .fill {
  height: 100%;
  width: 0;
  background: var(--faint);
  transition: width 1.1s var(--ease);
}
.bar.is-fly .fill {
  background: var(--violet);
}
.bar.is-fly {
  color: var(--ink);
  font-weight: 650;
}
.bar.room .fill {
  background: var(--yellow);
}
.bar .value {
  font: 650 2.2vh var(--mono);
  color: var(--ink);
  text-align: right;
}

/* The audience round */
.diff {
  font: 500 2vh/1.45 var(--mono);
  background: oklch(0.1 0.01 290 / 0.88);
  border: 1px solid var(--line);
  border-radius: 1.2vh;
  padding: 1.6vh 0;
  width: min(62vw, 980px);
  max-height: 46vh;
  overflow: auto;
  white-space: pre;
}
.diff div {
  padding: 0 2vh;
}
.diff .added {
  background: oklch(0.5 0.12 150 / 0.28);
  color: oklch(0.92 0.08 150);
}
.diff .removed {
  background: oklch(0.5 0.15 25 / 0.28);
  color: oklch(0.9 0.08 25);
}
.diff .same {
  color: var(--faint);
}
.verdicts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6vh;
  width: min(62vw, 980px);
}
.verdict {
  padding: 1.6vh 2vh;
  border-radius: 1.2vh;
  border: 1px solid var(--line);
  background: var(--panel);
  min-height: 11vh;
}
.verdict .who {
  font: 600 1.5vh var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.verdict .what {
  font-size: 3vh;
  font-weight: 700;
  margin-top: 0.6vh;
}
.verdict .why {
  font-size: 1.7vh;
  color: var(--muted);
  margin-top: 0.4vh;
}
.verdict.approve .what {
  color: var(--green);
}
.verdict.object .what {
  color: var(--red);
}
.verdict.unsure .what {
  color: var(--yellow);
}
.verdict.right {
  border-color: var(--green);
}
.verdict.wrong {
  border-color: var(--red);
}

/* The game show: marquee, reels, podiums, scoreboard, confetti. */
.marquee {
  position: relative;
  padding: 4.5vh 7vh;
  border-radius: 2.4vh;
  background:
    radial-gradient(ellipse at 50% 120%, oklch(0.45 0.18 300 / 0.45), transparent 70%),
    oklch(0.13 0.03 300 / 0.75);
  box-shadow:
    inset 0 0 0 0.3vh oklch(0.55 0.16 300 / 0.8),
    0 0 8vh oklch(0.7 0.18 300 / 0.25);
}
.slide.on .marquee h1 {
  animation: pop-in 0.7s cubic-bezier(0.2, 1.6, 0.4, 1) both 0.15s;
  text-shadow:
    0 0.5vh 0 oklch(0.35 0.14 300),
    0 0 4vh oklch(0.7 0.18 300 / 0.5);
}
.bulb {
  position: absolute;
  width: 1.3vh;
  height: 1.3vh;
  border-radius: 50%;
  translate: -50% -50%;
  background: oklch(0.42 0.07 80);
  animation: chase 0.75s steps(1) infinite;
  animation-delay: calc(var(--i) * -0.25s);
}
@keyframes chase {
  0% {
    background: var(--yellow);
    box-shadow: 0 0 1.4vh var(--yellow);
  }
  33.34% {
    background: oklch(0.42 0.07 80);
    box-shadow: none;
  }
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.3) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.button.big {
  font-size: 2.6vh;
  padding: 1.5vh 3.6vh;
  box-shadow:
    0 0.6vh 0 oklch(0.45 0.16 300),
    0 0 4vh oklch(0.7 0.18 300 / 0.45);
  animation: beckon 1.6s ease-in-out infinite;
}
.button.big:active {
  transform: translateY(0.5vh);
  box-shadow: 0 0.1vh 0 oklch(0.45 0.16 300);
}
@keyframes beckon {
  50% {
    scale: 1.05;
  }
}
.reels {
  display: flex;
  gap: 1.6vh;
}
.reel {
  width: 30vh;
  padding: 1.2vh 1.4vh;
  border-radius: 1.2vh;
  border: 2px solid oklch(0.55 0.16 300 / 0.8);
  background: oklch(0.1 0.02 290 / 0.9);
  box-shadow:
    inset 0 1.4vh 1.4vh -1vh oklch(0 0 0 / 0.8),
    inset 0 -1.4vh 1.4vh -1vh oklch(0 0 0 / 0.8);
  overflow: hidden;
}
.reel span {
  display: block;
  font: 600 1.3vh var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
}
.reel b {
  display: block;
  margin-top: 0.5vh;
  font: 700 2.1vh var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reel.spinning b {
  filter: blur(0.15vh);
  animation: roll 0.07s linear infinite;
}
@keyframes roll {
  from {
    transform: translateY(-60%);
  }
  to {
    transform: translateY(60%);
  }
}
.reel.landed {
  border-color: var(--yellow);
  animation: land 0.5s cubic-bezier(0.2, 1.8, 0.4, 1);
}
.reel.landed b {
  color: var(--yellow);
}
@keyframes land {
  from {
    transform: translateY(-1vh) scale(1.08);
  }
}
.round-badge {
  align-self: flex-start;
  padding: 0.8vh 2vh;
  border-radius: 999px;
  background: var(--yellow);
  color: oklch(0.2 0.04 80);
  font: 800 1.9vh/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  rotate: -3deg;
  box-shadow:
    0 0.5vh 0 oklch(0.55 0.12 80),
    0 0 3vh oklch(0.89 0.15 93 / 0.45);
}
.slide.on .round-badge {
  animation: pop-in 0.6s cubic-bezier(0.2, 1.8, 0.4, 1) both;
}
.podiums {
  perspective: 120vh;
  gap: 2.4vh;
}
.podiums .verdict {
  position: relative;
  text-align: center;
  padding: 0 0 1.6vh;
  overflow: visible;
  border: 2px solid oklch(0.5 0.14 300 / 0.9);
  border-radius: 1.6vh 1.6vh 0.8vh 0.8vh;
  background: linear-gradient(oklch(0.24 0.06 300 / 0.94), oklch(0.13 0.03 290 / 0.94));
  box-shadow:
    inset 0 -1vh 0 oklch(0.08 0.02 290 / 0.6),
    0 1.2vh 3vh oklch(0 0 0 / 0.45);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
/* The name plate, with its row of bulbs. */
.podiums .verdict .who {
  padding: 1.6vh 1vh 0.9vh;
  margin-bottom: 0.4vh;
  color: var(--ink);
  border-bottom: 1px solid oklch(0.5 0.14 300 / 0.6);
  background:
    radial-gradient(circle, var(--yellow) 0 0.3vh, transparent 0.45vh) 0 0.25vh / 2.2vh 1vh repeat-x,
    oklch(0.3 0.09 300 / 0.6);
  border-radius: 1.4vh 1.4vh 0 0;
}
.podiums .verdict .what {
  font-size: 3.4vh;
}
/* Not revealed yet: a bobbing question mark. */
.podiums .mystery .what {
  font-size: 0;
  line-height: 1;
  color: var(--yellow);
  animation: bob 1.4s ease-in-out infinite;
}
.podiums .mystery .what::before {
  content: '?';
  font-size: 5vh;
}
@keyframes bob {
  50% {
    transform: translateY(-0.6vh) rotate(6deg);
  }
}
.podiums .flip .what,
.podiums .flip .why {
  animation: flip 0.6s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}
@keyframes flip {
  from {
    opacity: 0;
    transform: rotateX(95deg) scale(0.8);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.podiums .suspense .what,
.podiums .suspense .why {
  animation-delay: 1.1s;
}
.sniff {
  position: absolute;
  left: 0;
  right: 0;
  top: 5.6vh;
  font: 700 2.6vh var(--mono);
  color: var(--yellow);
  animation:
    sniffing 0.35s ease-in-out 3 alternate,
    gone 0.2s 1s forwards;
}
@keyframes sniffing {
  to {
    transform: scale(1.12) translateY(-0.4vh);
  }
}
@keyframes gone {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
.podiums .verdict.right {
  border-color: var(--green);
  box-shadow:
    inset 0 -1vh 0 oklch(0.08 0.02 290 / 0.6),
    0 0 4vh oklch(0.85 0.2 150 / 0.45);
}
.podiums .verdict.wrong {
  border-color: var(--red);
  opacity: 0.85;
}
/* Right or wrong: a badge on the podium's corner. */
.podiums .verdict.right::after,
.podiums .verdict.wrong::after {
  position: absolute;
  top: -1.8vh;
  right: -1.4vh;
  width: 4.6vh;
  height: 4.6vh;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font:
    900 2.8vh/1 ui-sans-serif,
    system-ui,
    sans-serif;
  color: oklch(0.15 0.03 290);
}
.podiums .verdict.right::after {
  content: '\2713';
  background: var(--green);
  box-shadow: 0 0 2.4vh var(--green);
}
.podiums .verdict.wrong::after {
  content: '\2717';
  background: var(--red);
}
.podiums.judging .verdict.right::after,
.podiums.judging .verdict.wrong::after {
  animation: pop-in 0.5s cubic-bezier(0.2, 1.8, 0.4, 1) both 0.75s;
}
/* Judged as the tests' card lands: until then each podium holds its plain look (the from keyframe), so nothing spoils it. */
.podiums.judging .verdict.right {
  animation: cheer 0.6s cubic-bezier(0.2, 1.8, 0.4, 1) 0.7s backwards;
}
.podiums.judging .verdict.wrong {
  animation: shake 0.45s ease-in-out 0.7s backwards;
}
@keyframes cheer {
  from {
    border-color: oklch(0.5 0.14 300 / 0.9);
    box-shadow:
      inset 0 -1vh 0 oklch(0.08 0.02 290 / 0.6),
      0 1.2vh 3vh oklch(0 0 0 / 0.45);
  }
  40% {
    transform: translateY(-1.4vh) scale(1.04);
  }
}
@keyframes shake {
  from {
    border-color: oklch(0.5 0.14 300 / 0.9);
    opacity: 1;
  }
  20%,
  60% {
    transform: translateX(-1vh) rotate(-1.5deg);
  }
  40%,
  80% {
    transform: translateX(1vh) rotate(1.5deg);
  }
}
.podiums + .row {
  width: min(62vw, 980px);
}
.scoreboard {
  display: flex;
  align-items: center;
  gap: 1.2vh;
  margin-left: auto;
  font: 700 1.6vh var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.scoreboard i {
  font-style: normal;
  color: var(--faint);
}
.scoreboard b {
  min-width: 5.6vh;
  padding: 0.6vh 1.2vh;
  border-radius: 0.8vh;
  text-align: center;
  font: 800 4vh/1 var(--mono);
  letter-spacing: 0;
  color: var(--yellow);
  background: oklch(0.08 0.02 290 / 0.95);
  border: 2px solid oklch(0.5 0.14 300 / 0.9);
  text-shadow: 0 0 1.6vh oklch(0.89 0.15 93 / 0.7);
}
.scoreboard b.bump {
  animation: bump 0.6s cubic-bezier(0.2, 1.8, 0.4, 1) both 0.8s;
}
@keyframes bump {
  from {
    transform: scale(1.7);
    color: var(--ink);
  }
}
.confetti {
  position: fixed;
  z-index: 20;
  width: 1vh;
  height: 1.6vh;
  border-radius: 0.2vh;
  pointer-events: none;
  animation: confetti 1.6s both;
}
@keyframes confetti {
  0% {
    transform: none;
    animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1);
  }
  35% {
    transform: translate(calc(var(--dx) * 0.6), var(--dy)) rotate(calc(var(--spin) * 0.4));
    animation-timing-function: cubic-bezier(0.5, 0, 0.8, 0.6);
  }
  100% {
    transform: translate(var(--dx), 40vh) rotate(var(--spin));
    opacity: 0;
  }
}

/* The pipeline */
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.6vh;
  width: 90vw;
  align-items: stretch;
}
.pipeline.four {
  grid-template-columns: repeat(4, 1fr);
  width: 62vw;
  gap: 2.4vh;
}
.station .term {
  margin-top: 1.4vh;
  font: 650 1.6vh var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
}
.summary {
  font-size: 2.8vh;
  font-weight: 600;
}
.station {
  position: relative;
  padding: 2vh;
  border: 1px solid var(--line);
  border-radius: 1.6vh;
  background: var(--panel);
  backdrop-filter: blur(6px);
}
.station h3 {
  margin: 0 0 0.8vh;
  font-size: 2.6vh;
  letter-spacing: -0.01em;
}
.station p {
  font-size: 1.9vh;
}
.station.fly-station {
  border-color: var(--violet);
}
.station.human {
  border-color: var(--yellow);
}
.station .arrow {
  position: absolute;
  right: -1.5vh;
  top: 50%;
  width: 1.4vh;
  height: 1.4vh;
  border-top: 2px solid var(--muted);
  border-right: 2px solid var(--muted);
  transform: translateY(-50%) rotate(45deg);
}
.packet {
  position: absolute;
  top: -1.4vh;
  left: 2vh;
  width: 1.2vh;
  height: 1.2vh;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 1.6vh var(--yellow);
  opacity: 0;
}
.station.active .packet {
  opacity: 1;
}
.station.active {
  border-color: var(--yellow);
}
.bridge {
  border-collapse: collapse;
  font-size: 2.2vh;
  width: min(80vw, 1200px);
}
.bridge th,
.bridge td {
  text-align: left;
  padding: 1.3vh 1.8vh;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.bridge th {
  font: 600 1.6vh var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.bridge td:first-child {
  color: var(--ink);
  font-weight: 650;
  width: 34%;
}
.bridge td {
  color: var(--muted);
}
.receipts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2vh;
  max-width: 60vw;
}
.receipts span {
  padding: 1vh 1.8vh;
  border-radius: 999px;
  border: 1px solid var(--green);
  color: var(--ink);
  font-size: 2.4vh;
}
.url {
  font: 750 11vh var(--mono);
  letter-spacing: -0.04em;
  color: var(--ink);
}

/* The fly in its corner, and its one flight */
.fly {
  position: fixed;
  right: 2vw;
  bottom: 6vh;
  /* Wider than tall: turned side-on, the fly is longer than it is wide face-on. */
  width: 32vh;
  height: 22vh;
  z-index: 5;
  filter: drop-shadow(0 1vh 2vh oklch(0 0 0 / 0.5));
  transition:
    right 0.8s var(--ease),
    bottom 0.8s var(--ease),
    width 0.8s var(--ease),
    height 0.8s var(--ease),
    opacity 0.9s var(--ease);
}
.fly canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.fly.station-seat {
  right: 45.5vw;
  bottom: 60vh;
  width: 22vh;
  height: 15vh;
}
.fly.flying {
  animation: flight 3.2s var(--ease) both;
}
@keyframes flight {
  0% {
    transform: translate(0, 0) rotate(0);
  }
  18% {
    transform: translate(-6vw, -22vh) rotate(-14deg);
  }
  42% {
    transform: translate(-30vw, -34vh) rotate(9deg);
  }
  64% {
    transform: translate(-58vw, -18vh) rotate(-8deg);
  }
  82% {
    transform: translate(-40vw, -40vh) rotate(6deg);
  }
  100% {
    transform: translate(0, 0) rotate(0);
  }
}

/* The intro: digital rain, the jack, the flash */
.rain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  transition: opacity 1.4s var(--ease);
}
body.unplugged .readout {
  opacity: 0;
}
.rain.gone {
  opacity: 0;
}
.wake {
  font: 600 4.4vh var(--mono);
  color: #5f8;
  text-shadow: 0 0 1.4vh #2f5;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  border-right: 0.5vh solid #5f8;
  animation: type 1.4s steps(13) 0.8s forwards;
}
@keyframes type {
  to {
    width: 13.4ch;
  }
}
.slide .gone {
  display: none;
}
.jack {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 6;
  overflow: visible;
}
.jack:not(.in) {
  display: none;
}
.jack path {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 4000;
  stroke-dashoffset: 4000;
  animation: draw 0.9s cubic-bezier(0.5, 0, 0.9, 0.6) forwards;
}
.cable {
  stroke: #1c1c1f;
  stroke-width: 1.4vh;
}
.cable-shine {
  stroke: #5a5a66;
  stroke-width: 0.3vh;
  transform: translate(-0.3vh, -0.2vh);
}
.jack .plug {
  fill: #9aa;
  stroke: #333;
  stroke-width: 2;
  opacity: 0;
  animation: plug 0.15s 0.85s forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes plug {
  to {
    opacity: 1;
  }
}
.flash {
  position: fixed;
  inset: 0;
  background: #eaffef;
  opacity: 0;
  pointer-events: none;
  z-index: 8;
}
.flash.go {
  animation: flash 0.6s ease-out;
}
@keyframes flash {
  from {
    opacity: 0.85;
  }
  to {
    opacity: 0;
  }
}

/* The fly's games: center stage, a Doom-style screen, Beat Saber blocks */
.fly.star {
  right: 8vw;
  bottom: 10vh;
  width: 74vh;
  /* Tall enough for raised sabers; the fly model's camera keeps the fly itself at 52vh scale (FlyModel.tall). */
  height: 82vh;
}
.doom-wrap {
  width: min(42vw, 720px);
  aspect-ratio: 320 / 200;
  border: 0.8vh solid #1b1b1b;
  border-radius: 1.2vh;
  box-shadow:
    0 0 0 1px var(--line),
    0 2vh 6vh oklch(0 0 0 / 0.6);
  overflow: hidden;
}
.doom {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}
.saber-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}
.block {
  position: absolute;
  left: 0;
  top: 0;
  width: 12vh;
  height: 12vh;
  margin: -6vh 0 0 -6vh;
  border-radius: 1.2vh;
}
.block.red {
  background: linear-gradient(160deg, #ff4d5a, #a3121f);
  box-shadow: 0 0 3vh #ff334499;
}
.block.blue {
  background: linear-gradient(160deg, #4da3ff, #123ea3);
  box-shadow: 0 0 3vh #3388ff99;
}
.block::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 40%;
  width: 3.4vh;
  height: 3.4vh;
  border-right: 0.9vh solid #fff;
  border-bottom: 0.9vh solid #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}
.block.half.top {
  clip-path: inset(0 0 50% 0);
}
.block.half.bottom {
  clip-path: inset(50% 0 0 0);
}
.wat {
  margin: 0;
  padding: 2vh 2.4vh;
  border: 1px solid var(--line);
  border-radius: 1.4vh;
  background: var(--panel);
  font: 500 2.4vh/1.6 var(--mono);
  color: var(--ink);
  width: fit-content;
}

/* Beat Saber's score, for a fly that has mastered it */
.combo {
  display: flex;
  align-items: baseline;
  gap: 1.4vh;
  font: 700 1.9vh var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.combo b {
  min-width: 2ch;
  font-size: 7vh;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-shadow:
    -0.4vh 0 2.4vh #4da3ff,
    0.4vh 0 2.4vh #ff4d5a;
  font-variant-numeric: tabular-nums;
}
.combo em {
  font-style: normal;
  color: var(--yellow);
}

/* The premise: a pull request that every bot has passed, blocked on one human */
.mergebox {
  width: min(52vw, 860px);
  border: 1px solid var(--line);
  border-radius: 1.4vh;
  background: oklch(0.1 0.01 290 / 0.9);
  overflow: hidden;
}
.check {
  display: grid;
  grid-template-columns: 3vh 22ch 1fr;
  gap: 1.4vh;
  align-items: center;
  padding: 1.2vh 2vh;
  border-bottom: 1px solid var(--line);
  font-size: 2.1vh;
  opacity: 0;
}
.check::before {
  content: '\2713';
  display: grid;
  place-items: center;
  width: 2.6vh;
  height: 2.6vh;
  border-radius: 50%;
  background: oklch(0.6 0.16 150);
  color: oklch(0.13 0.02 150);
  font-weight: 800;
  font-size: 1.6vh;
}
.check b {
  color: var(--ink);
  font-weight: 650;
}
.check span {
  font: 500 1.7vh var(--mono);
  color: var(--muted);
}
.check.blocked {
  background: oklch(0.68 0.22 25 / 0.12);
}
.check.blocked::before {
  content: '!';
  background: var(--red);
}
.check.blocked span {
  color: oklch(0.85 0.08 25);
}
.slide.on .check {
  animation: check-in 0.35s var(--ease) forwards;
}
.slide.on .check:nth-child(2) {
  animation-delay: 0.45s;
}
.slide.on .check:nth-child(3) {
  animation-delay: 0.9s;
}
.slide.on .check.blocked {
  animation-delay: 1.6s;
}
@keyframes check-in {
  from {
    opacity: 0;
    transform: translateX(-1vh);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.merge-row {
  display: flex;
  align-items: center;
  gap: 2vh;
  padding: 1.6vh 2vh;
}
.merge {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 0.8vh;
  background: oklch(0.22 0.01 290);
  color: var(--faint);
  padding: 1vh 2vh;
  font-size: 2vh;
  font-weight: 650;
  cursor: not-allowed;
}
.merge:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}
.waiting {
  font: 500 1.9vh var(--mono);
  color: var(--yellow);
}
.waiting b {
  font-variant-numeric: tabular-nums;
}
.mergebox.nope {
  animation: nope 0.4s;
}
@keyframes nope {
  20%,
  60% {
    transform: translateX(-1vh);
  }
  40%,
  80% {
    transform: translateX(1vh);
  }
}
.points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4vh;
  width: min(88vw, 1500px);
}
.point {
  display: flex;
  flex-direction: column;
  gap: 1.6vh;
  padding: 2.2vh 2.4vh;
  border: 1px solid var(--line);
  border-radius: 1.6vh;
  background: var(--panel);
}
.point h3 {
  margin: 0;
  font-size: 3vh;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.mini {
  margin: 0;
  padding: 1.2vh 1.6vh;
  border-radius: 1vh;
  background: oklch(0.1 0.01 290 / 0.85);
  font: 500 1.75vh/1.55 var(--mono);
  color: var(--muted);
  white-space: pre;
  overflow: hidden;
}
.mini i {
  display: inline-block;
  width: 9ch;
  font-style: normal;
  color: var(--violet);
}
.mini i.you {
  color: var(--yellow);
}
.mini .ok {
  color: var(--green);
}
.mini s {
  color: var(--faint);
  text-decoration-color: var(--red);
}

/* The culprit, nailed up beside the merge box */
.wanted {
  position: absolute;
  left: 64vw;
  top: 50%;
  /* Keeps it on screen on a 4:3 projector. */
  height: min(74vh, 44vw);
  width: auto;
  border-radius: 0.6vh;
  box-shadow: 0 3vh 8vh oklch(0 0 0 / 0.7);
  transform: translateY(-50%) rotate(3deg);
}
.slide.on .wanted:not(.later) {
  animation: slap 0.55s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}
@keyframes slap {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(1.5) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) rotate(3deg);
  }
}

/* 1947: the first actual bug, taped into the logbook */
.logbook {
  width: min(44vw, 720px);
  padding: 2.4vh 4vh 3vh;
  border-radius: 0.6vh;
  background:
    repeating-linear-gradient(
      transparent 0 4.6vh,
      oklch(0.7 0.05 240 / 0.45) 4.6vh calc(4.6vh + 1px)
    ),
    #efe6cf;
  box-shadow: 0 2vh 6vh oklch(0 0 0 / 0.6);
  transform: rotate(-1.5deg);
  text-align: left;
}
.logbook p {
  max-width: none;
  font:
    3vh/4.6vh 'Noteworthy',
    'Bradley Hand',
    'Segoe Print',
    cursive;
  color: #2b2a6a;
}
.logbook .time {
  margin-right: 2.4vh;
  color: #7a2b2b;
}
.moth {
  display: block;
  width: 22vh;
  margin: 0 auto 0.6vh;
}

/* The close: a QR code to the site */
.qr {
  width: 36vh;
  height: 36vh;
  padding: 1.4vh;
  border-radius: 1.6vh;
  background: #fff;
  box-shadow: 0 0 6vh oklch(0.7 0.18 300 / 0.4);
  image-rendering: pixelated;
}
.slide:has(.qr) .url {
  font-size: 8vh;
}

/* The live review, inline */
.live-panel {
  display: grid;
  gap: 1.4vh;
  width: min(56vw, 940px);
}
.live-panel:empty {
  display: none;
}
.live-title {
  margin: 0;
  font-size: 2.8vh;
  letter-spacing: -0.01em;
}
.live-status {
  font: 500 2.1vh var(--mono);
  color: var(--yellow);
}
.live-panel .caption {
  max-width: none;
}
.live-status.error {
  color: var(--red);
}
.live-panel .diff {
  width: 100%;
  max-height: 24vh;
  font-size: 1.8vh;
}
.live-panel .verdict {
  min-width: 30vh;
}
.payload summary {
  font: 500 1.7vh var(--mono);
  color: var(--faint);
  cursor: pointer;
}
.payload pre {
  max-height: 22vh;
  overflow: auto;
  margin: 1vh 0 0;
  padding: 1.2vh;
  border-radius: 1vh;
  background: oklch(0.1 0.01 290 / 0.9);
  font: 500 1.4vh/1.4 var(--mono);
  color: var(--muted);
}
.verdict.stamp {
  animation: stamp 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
@keyframes stamp {
  from {
    opacity: 0;
    transform: scale(1.8) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: rotate(-2deg);
  }
}

/* The fly's scream at JavaScript */
.aaah {
  position: fixed;
  right: 5vw;
  bottom: 29vh;
  font:
    900 7vh/1 ui-sans-serif,
    system-ui,
    sans-serif;
  letter-spacing: -0.02em;
  color: var(--yellow);
  text-shadow:
    0 0.4vh 0 oklch(0.4 0.15 60),
    0 0 3vh oklch(0.89 0.15 93 / 0.5);
  opacity: 0;
  transform: rotate(-8deg) scale(0.4);
  transition:
    opacity 0.15s,
    transform 0.25s cubic-bezier(0.2, 1.8, 0.4, 1);
  pointer-events: none;
}
.aaah.on {
  opacity: 1;
  transform: rotate(-8deg);
  animation: shiver 0.09s linear infinite 0.25s;
}
@keyframes shiver {
  50% {
    translate: 0.3vh -0.2vh;
  }
}

/* The harder test: one ticket, the right and the wrong change side by side */
.ticket {
  font-size: 2.4vh;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4vh;
  width: min(60vw, 1000px);
}
.pair .diff {
  width: auto;
  font-size: 1.7vh;
  overflow: hidden;
}
.pair-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2vh;
}
.handoff {
  display: flex;
  flex-direction: column;
  gap: 1.6vh;
}

/* What you just touched */
.touch {
  position: fixed;
  right: 2vw;
  bottom: 29vh;
  max-width: 34ch;
  margin: 0;
  padding: 1vh 1.4vh;
  border-radius: 1vh;
  border: 1px solid var(--yellow);
  background: oklch(0.12 0.01 290 / 0.9);
  color: var(--ink);
  font: 500 1.6vh/1.35 var(--mono);
  opacity: 0;
  transform: translateY(0.6vh);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
  pointer-events: none;
  z-index: 6;
}
.touch.on {
  opacity: 1;
  transform: none;
}

/* Live readout strip */
.readout {
  position: fixed;
  left: 5vw;
  bottom: 3vh;
  display: flex;
  gap: 0.6vh 1.4vh;
  align-items: center;
  flex-wrap: wrap;
  font: 500 1.5vh var(--mono);
  color: var(--faint);
  transition: opacity 0.4s;
}
.readout b {
  color: var(--ink);
  min-width: 4ch;
  text-align: right;
}
.dot {
  width: 1vh;
  height: 1vh;
  border-radius: 50%;
  display: inline-block;
}
.dot.kenyon {
  background: var(--violet);
}
.dot.avoid {
  background: var(--red);
}
.dot.approach,
.dot.feed {
  background: var(--green);
}
.dot.dan {
  background: var(--pink);
}
.progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.35vh;
  background: oklch(0.2 0.01 290);
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--violet);
  transition: width 0.5s var(--ease);
}

/* Speaker notes */
.notes {
  position: fixed;
  right: 1.5vw;
  top: 2vh;
  width: min(38vw, 620px);
  max-height: 70vh;
  overflow: auto;
  z-index: 10;
  padding: 1.8vh 2vh;
  border-radius: 1.4vh;
  background: oklch(0.08 0.01 290 / 0.94);
  border: 1px solid var(--line);
  font-size: 1.9vh;
  line-height: 1.45;
  color: var(--ink);
}
.notes header {
  display: flex;
  justify-content: space-between;
  gap: 2vh;
  font: 600 1.6vh var(--mono);
  color: var(--violet);
  margin-bottom: 1vh;
}
.notes footer {
  margin-top: 1.2vh;
  font: 500 1.4vh var(--mono);
  color: var(--faint);
}
.notes .nick {
  color: var(--yellow);
}
.notes p {
  font-size: 1.9vh;
  color: var(--ink);
  max-width: none;
  margin: 0 0 0.8vh;
}

@media (prefers-reduced-motion: reduce) {
  .fly.flying {
    animation: none;
  }
  .slide,
  .step,
  .bar .fill,
  .odor i {
    transition: none;
  }
  .slide.on .check {
    animation: none;
    opacity: 1;
  }
  .bulb,
  .button.big,
  .reel,
  .reel b,
  .round-badge,
  .marquee h1,
  .podiums *,
  .podiums .verdict::after,
  .scoreboard b {
    animation: none !important;
  }
  .sniff {
    display: none;
  }
  .mergebox.nope,
  .verdict.stamp,
  .aaah.on,
  .slide.on .wanted:not(.later) {
    animation: none;
  }
}

/* The scramble slide says what the fly did in words, not a score. */
.duel .num.say {
  font-size: 6vh;
  letter-spacing: -0.03em;
}

/* The proposal's last press: one team's review skill, as the Markdown file it would be, open in an editor. */
.review-card {
  width: min(84vw, 1300px);
  animation: card-in 0.6s var(--ease) both;
}
.review-card .file {
  border: 1px solid var(--line);
  border-radius: 1.2vh;
  background: oklch(0.12 0.012 290 / 0.92);
  backdrop-filter: blur(6px);
  overflow: hidden;
  font: 500 1.9vh/1.45 var(--mono);
}
.review-card header {
  display: flex;
  align-items: center;
  gap: 0.8vh;
  padding: 1.1vh 1.8vh;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  font-size: 1.6vh;
}
.review-card header i {
  width: 1.2vh;
  height: 1.2vh;
  border-radius: 50%;
  background: var(--line);
}
.review-card header b {
  margin-left: 1.6vh;
  color: var(--ink);
  font-weight: 600;
}
.review-card .example {
  margin-left: auto;
  color: var(--yellow);
}
.review-card .md {
  padding: 2.2vh 2.8vh 2.6vh;
}
/* The Markdown markers stay visible, dimmed, so it reads as source. */
.review-card h3,
.review-card h4,
.review-card .md p {
  margin: 0;
  font: inherit;
}
.review-card h3 {
  color: var(--ink);
  font-weight: 700;
}
.review-card h3::before {
  content: '# ';
  color: var(--faint);
}
.review-card .md p {
  margin-bottom: 1.45em;
  color: var(--muted);
}
.review-card .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4ch;
}
.review-card h4 {
  margin-bottom: 0.5em;
  font-weight: 700;
}
.review-card h4::before {
  content: '## ';
  color: var(--faint);
}
.review-card .human h4 {
  color: var(--red);
}
.review-card .pass h4 {
  color: var(--green);
}
.review-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.review-card li {
  max-width: none;
  font: inherit;
  padding-left: 2ch;
  text-indent: -2ch;
  color: var(--ink);
}
.review-card li::before {
  content: '- ';
  color: var(--faint);
}
.review-card .caption {
  max-width: none;
  margin: 1.6vh 0 0;
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(1.2vh);
  }
}
@media (prefers-reduced-motion: reduce) {
  .review-card {
    animation: none;
  }
}
