:root {
  color-scheme: dark;
  --ink: #160b16;
  --night: #101827;
  --storm: #31445d;
  --wine: #7b1735;
  --red: #d52f51;
  --rose: #ff8aa9;
  --ice: #dcebf4;
  --silver: #a9bac8;
  --blue: #78b9dd;
  --cyan: #98e8f0;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: #0b101a;
}

body {
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: var(--ice);
  overflow-x: hidden;
}

button {
  font: inherit;
}

.twilight-room {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(12, 22, 37, .12), rgba(8, 7, 15, .72)),
    radial-gradient(circle at 50% 18%, #425873 0, #1a2233 45%, #090b13 100%);
}

.room-backdrop {
  position: absolute;
  inset: 0;
  z-index: -5;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .9;
  filter: saturate(.78) contrast(1.08) brightness(.64);
}

.rain {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: .2;
  background-image:
    repeating-linear-gradient(102deg, transparent 0 46px, rgba(201, 233, 247, .34) 47px 48px, transparent 49px 83px);
  background-size: 180px 240px;
  animation: rain-fall 4.8s linear infinite;
  mix-blend-mode: screen;
}

.room-vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, transparent 0 28%, rgba(5, 5, 12, .34) 74%, rgba(4, 3, 9, .85) 100%),
    linear-gradient(180deg, rgba(6, 11, 19, .62), transparent 24%, transparent 73%, rgba(9, 5, 12, .84));
}

.room-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 16px clamp(18px, 3vw, 48px);
  border-bottom: 1px solid rgba(197, 221, 234, .25);
  background: linear-gradient(180deg, rgba(8, 15, 27, .94), rgba(10, 15, 25, .78));
  box-shadow: 0 12px 35px rgba(0, 0, 0, .38);
  backdrop-filter: blur(12px);
}

.eyebrow,
.room-header h1 {
  margin: 0;
}

.eyebrow {
  color: #d8e7ef;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-shadow: 0 2px 5px #000;
}

.room-header h1 {
  margin-top: 4px;
  color: #f2f4f6;
  font-family: Georgia, serif;
  font-size: clamp(23px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: .1em;
  text-shadow: 0 0 20px rgba(182, 218, 238, .4);
}

.room-header h1 span {
  color: #c5d9e4;
  font-family: "Trebuchet MS", sans-serif;
  font-size: .48em;
  font-weight: 700;
}

.header-status {
  display: grid;
  justify-items: end;
  gap: 4px;
  padding: 9px 13px;
  border: 1px solid rgba(157, 197, 218, .35);
  background: rgba(10, 20, 32, .76);
  box-shadow: inset 0 0 16px rgba(80, 143, 181, .12);
  font-family: "Courier New", monospace;
}

.header-status span {
  color: #c9dce6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}

.header-status b {
  color: #effbff;
  font-size: 15px;
  letter-spacing: .08em;
  text-shadow: 0 0 8px rgba(152, 232, 240, .45);
}

.persistent-mirror-return {
  position: fixed;
  z-index: 60;
  top: 96px;
  right: clamp(14px, 2.4vw, 34px);
  padding: 9px 13px;
  border: 1px solid #9de7ec;
  border-bottom-width: 3px;
  color: #dffbfe;
  background: linear-gradient(#286c7c, #123b4b);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .4);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
}

.persistent-mirror-return:hover,
.persistent-mirror-return:focus-visible {
  outline: 2px solid #dffbfe;
  outline-offset: 2px;
  filter: brightness(1.22);
  transform: translateY(-2px);
}

.intro-card {
  position: relative;
  z-index: 7;
  width: min(760px, calc(100% - 36px));
  margin: 18px auto 0;
  padding: 12px 22px 13px;
  border: 1px solid rgba(184, 208, 222, .34);
  border-left: 4px solid var(--red);
  background: rgba(12, 18, 29, .86);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .36);
  text-align: center;
  backdrop-filter: blur(10px);
}

.intro-card p,
.intro-card h2 {
  margin: 0;
}

.intro-kicker {
  color: #ffb5c8;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-shadow: 0 2px 5px #000;
}

.intro-card h2 {
  margin-top: 4px;
  color: #f4f6f7;
  font-family: Georgia, serif;
  font-size: clamp(21px, 2.2vw, 29px);
  font-weight: 400;
  letter-spacing: .05em;
  line-height: 1.18;
  text-shadow: 0 2px 7px #000;
}

#instruction-copy {
  margin-top: 7px;
  color: #f0f5f8;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 2px 5px #000;
}

.desk-scene {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  min-height: 590px;
  margin: 12px auto 0;
  padding: 34px 26px 112px;
}

.desk-scene::before {
  content: "";
  position: absolute;
  left: -6vw;
  right: -6vw;
  bottom: 0;
  height: 42%;
  z-index: -1;
  border-top: 1px solid rgba(205, 222, 229, .22);
  background:
    linear-gradient(180deg, rgba(22, 18, 24, .05), rgba(12, 7, 11, .86)),
    repeating-linear-gradient(90deg, rgba(107, 76, 75, .25) 0 2px, transparent 2px 150px),
    linear-gradient(100deg, #2e2329, #181319 48%, #322126);
  box-shadow: 0 -18px 45px rgba(0, 0, 0, .35);
  transform: perspective(650px) rotateX(4deg);
  transform-origin: bottom;
}

.object-tray {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 29px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  z-index: 10;
}

.audience-object {
  position: relative;
  display: grid;
  grid-template-columns: 34px 48px minmax(0, 1fr);
  align-items: center;
  min-height: 82px;
  padding: 10px 11px;
  overflow: hidden;
  border: 1px solid rgba(183, 207, 219, .52);
  border-bottom: 3px solid #4e6373;
  border-radius: 3px;
  color: #e9f0f3;
  background:
    linear-gradient(135deg, rgba(45, 57, 70, .97), rgba(16, 21, 31, .98)),
    #18202b;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .42), inset 0 0 22px rgba(132, 181, 207, .05);
  text-align: left;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, filter .22s ease;
  touch-action: manipulation;
}

.audience-object:not(:disabled):hover,
.audience-object:focus-visible {
  z-index: 3;
  outline: none;
  border-color: #e5d4dc;
  border-bottom-color: var(--red);
  transform: translateY(-5px);
  filter: brightness(1.12);
}

.audience-object:disabled {
  cursor: default;
}

.object-number {
  align-self: start;
  color: #c5d5de;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
}

.object-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(203, 225, 235, .34);
  border-radius: 50%;
  color: #f6d8e2;
  background: radial-gradient(circle, rgba(151, 35, 69, .62), rgba(33, 27, 40, .35));
  box-shadow: 0 0 18px rgba(170, 29, 72, .2);
  font-family: Georgia, serif;
  font-size: 23px;
}

.object-copy {
  display: grid;
  gap: 5px;
}

.object-label {
  font-family: Georgia, serif;
  font-size: 17px;
  letter-spacing: .06em;
  text-shadow: 0 2px 4px #000;
}

.object-copy small {
  color: #d3e1e8;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}

.object-result {
  position: absolute;
  inset: 0;
  display: none;
  align-content: center;
  padding: 9px 14px 9px 18px;
  color: white;
  background: linear-gradient(90deg, rgba(105, 15, 42, .98), rgba(36, 13, 28, .98));
}

.object-result .old-verdict,
.object-result b,
.object-result small {
  display: block;
}

.object-result .old-verdict {
  color: #ffc3d2;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}

.object-result b {
  display: none;
  margin-top: 2px;
  font-family: Georgia, serif;
  font-size: 17px;
  text-decoration: none;
}

.object-result small {
  display: none;
  margin-top: 4px;
  color: #eef8fc;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.audience-object.tested .object-result {
  display: grid;
}

.stage-complete .audience-object .object-copy,
.stage-complete .audience-object .object-number,
.stage-complete .audience-object .object-symbol {
  opacity: 0;
}

.stage-complete .audience-object .object-result {
  display: grid;
  background: linear-gradient(100deg, rgba(17, 67, 85, .98), rgba(16, 25, 39, .98));
  animation: card-flip .65s cubic-bezier(.2, .8, .2, 1) both;
}

.stage-complete .object-result .old-verdict {
  color: #87b4c8;
  text-decoration: line-through;
}

.stage-complete .object-result b {
  display: block;
  color: #d6fbff;
}

.stage-complete .object-result small {
  display: block;
}

.audience-object.feeding {
  animation: feed-object .72s ease both;
}

.meter-machine {
  position: relative;
  width: min(410px, 39vw);
  min-width: 340px;
  height: 418px;
  margin: 0 auto;
  padding: 18px 29px 22px;
  border: 2px solid #9ba8b2;
  border-radius: 24px 24px 15px 15px;
  background:
    linear-gradient(110deg, transparent 0 46%, rgba(255, 255, 255, .11) 49%, transparent 53%),
    linear-gradient(135deg, #73818b, #202a34 22%, #3c4852 59%, #15202b 100%);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, .65),
    inset 0 0 0 4px #17212a,
    inset 0 0 0 6px rgba(223, 235, 241, .28),
    inset 0 -20px 30px rgba(0, 0, 0, .38);
}

.machine-screws i {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid #1b242d;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d5dce0, #52606a 45%, #161d23 72%);
  box-shadow: 0 1px 1px #000;
}

.machine-screws i:nth-child(1) { top: 14px; left: 15px; }
.machine-screws i:nth-child(2) { top: 14px; right: 15px; }
.machine-screws i:nth-child(3) { bottom: 14px; left: 15px; }
.machine-screws i:nth-child(4) { bottom: 14px; right: 15px; }

.machine-brand {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  width: 84%;
  margin: 0 auto 10px;
  color: #e3e8eb;
  text-shadow: 0 1px 2px #000;
}

.machine-brand > span {
  grid-row: 1 / 3;
  color: #f488a4;
  font-size: 22px;
}

.machine-brand b {
  font-family: Georgia, serif;
  font-size: 19px;
  letter-spacing: .12em;
}

.machine-brand small {
  color: #edf4f7;
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}

.meter-face {
  position: relative;
  height: 188px;
  overflow: hidden;
  border: 4px solid #151d25;
  border-radius: 190px 190px 20px 20px;
  background:
    radial-gradient(circle at 50% 84%, rgba(173, 43, 70, .2), transparent 33%),
    repeating-conic-gradient(from 220deg at 50% 86%, rgba(20, 26, 34, .8) 0 1.2deg, transparent 1.2deg 6deg),
    radial-gradient(circle at 50% 84%, #d6dde0 0, #b5c0c6 44%, #66747e 74%, #1a232b 75%);
  box-shadow: inset 0 0 20px #000, 0 3px 0 rgba(220, 230, 234, .4);
}

.meter-face::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, .18), transparent 36%);
  pointer-events: none;
}

.meter-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 70%, transparent, rgba(163, 29, 60, .13));
  transition: background .3s ease;
}

.scale {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 9px 4px;
  border: 2px solid rgba(231, 242, 248, .92);
  border-radius: 4px;
  color: #fff;
  background: rgba(12, 19, 28, .94);
  box-shadow:
    0 2px 5px rgba(0, 0, 0, .72),
    inset 0 0 9px rgba(210, 233, 244, .09);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1;
  text-shadow: 0 1px 2px #000;
  white-space: nowrap;
}

.scale-low {
  left: 13px;
  bottom: 35px;
  border-color: #a9d9ef;
  color: #e9f9ff;
  transform: rotate(-50deg);
}

.scale-mid {
  left: 50%;
  top: 18px;
  border-color: #e9b7c8;
  color: #fff0f5;
  transform: translateX(-50%);
}

.scale-high {
  right: 12px;
  bottom: 36px;
  border-color: #ff6f91;
  color: #fff;
  background: rgba(89, 13, 38, .96);
  transform: rotate(49deg);
}

.needle-wrap {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 5;
  width: 0;
  height: 0;
}

.meter-needle {
  --needle-angle: -48deg;
  position: absolute;
  left: -2px;
  bottom: -2px;
  width: 4px;
  height: 122px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, #8e092b, #ff567b 48%, #5c071d);
  box-shadow: 0 0 4px rgba(135, 7, 39, .65);
  transform: rotate(var(--needle-angle));
  transform-origin: 50% 100%;
  transition: transform .55s cubic-bezier(.2, .9, .15, 1);
}

.meter-pin {
  position: absolute;
  left: 50%;
  bottom: 13px;
  z-index: 7;
  width: 23px;
  height: 23px;
  border: 2px solid #26313a;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #f1f3f4, #687782 39%, #131b22 75%);
  box-shadow: 0 2px 4px #000;
  transform: translateX(-50%);
}

.machine-display {
  display: grid;
  place-items: center;
  min-height: 53px;
  margin-top: 12px;
  padding: 7px 10px;
  border: 3px inset #76828a;
  color: #e8f8da;
  background:
    repeating-linear-gradient(0deg, rgba(140, 235, 150, .04) 0 1px, transparent 1px 3px),
    #111b17;
  box-shadow: inset 0 0 16px #050b07;
  font-family: "Courier New", monospace;
  text-align: center;
  text-shadow: 0 0 6px #70b66d;
}

.machine-display span {
  color: #b7dfb8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}

.machine-display b {
  font-size: 14px;
  letter-spacing: .07em;
}

.cartridge-bay {
  position: relative;
  height: 68px;
  margin: 10px auto 0;
}

.bay-label {
  position: absolute;
  left: 50%;
  top: 0;
  color: #f0f5f8;
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-shadow: 0 2px 4px #000;
  transform: translateX(-50%);
}

.bay-mouth {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 72%;
  height: 24px;
  border: 3px inset #65727c;
  border-radius: 4px;
  background: #080d12;
  box-shadow: inset 0 4px 10px #000;
  transform: translateX(-50%);
}

.cartridge {
  --drag-y: 0px;
  --insert-x: 0px;
  --insert-y: -80px;
  position: relative;
  display: grid;
  justify-items: center;
  width: 210px;
  min-height: 76px;
  padding: 12px 15px 9px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-radius: 5px 5px 13px 13px;
  color: white;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .56), inset 0 0 17px rgba(255, 255, 255, .1);
  text-align: center;
  touch-action: none;
  user-select: none;
}

.cartridge small,
.cartridge em {
  font-family: "Courier New", monospace;
  font-style: normal;
  letter-spacing: .1em;
}

.cartridge small { font-size: 10px; font-weight: 700; opacity: 1; }
.cartridge b { font-family: Georgia, serif; font-size: 17px; letter-spacing: .08em; text-shadow: 0 2px 5px #000; }
.cartridge em { margin-top: 3px; font-size: 9px; font-weight: 700; opacity: 1; }

.cartridge-grip {
  position: absolute;
  left: 50%;
  top: 3px;
  width: 48px;
  height: 5px;
  border-radius: 9px;
  background: rgba(10, 10, 15, .55);
  transform: translateX(-50%);
}

.old-cartridge {
  position: absolute;
  left: 50%;
  top: 20px;
  z-index: 4;
  display: none;
  min-height: 76px;
  border-color: #e36b85;
  background: linear-gradient(145deg, #aa2347, #4c0f24 62%, #210912);
  transform: translate(-50%, var(--drag-y));
  cursor: ns-resize;
}

.stage-filter .old-cartridge {
  display: grid;
  animation: cartridge-eject .75s cubic-bezier(.18, .88, .2, 1.15) both;
}

.old-cartridge.dragging,
.new-cartridge.dragging {
  transition: none;
  filter: brightness(1.2);
}

.hidden-rule {
  position: absolute;
  inset: 14px 2% auto;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 82px;
  padding: 12px;
  border: 1px solid #cf647e;
  color: #ffd6e0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px),
    #2c0c18;
  text-align: center;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .35s ease, transform .35s ease;
}

.hidden-rule[hidden],
.old-cartridge[hidden] {
  display: none !important;
}

.hidden-rule small {
  color: #ffc0d0;
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

.hidden-rule b {
  margin-top: 5px;
  font-family: "Courier New", monospace;
  font-size: 12px;
}

.hidden-rule strong {
  color: #ffb0c3;
  font-size: 16px;
}

.old-filter-removed .old-cartridge {
  pointer-events: none;
  animation: cartridge-remove .5s ease both;
}

.old-filter-removed .hidden-rule {
  opacity: 1;
  transform: scale(1);
}

.replacement-tray {
  position: absolute;
  top: 118px;
  right: 0;
  z-index: 8;
  display: none;
  width: 250px;
  padding: 12px 18px 17px;
  border: 1px solid rgba(154, 210, 226, .6);
  background: rgba(8, 24, 33, .94);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .5), inset 0 0 24px rgba(69, 173, 203, .1);
  text-align: center;
}

.old-filter-removed .replacement-tray {
  display: block;
  animation: replacement-arrive .65s ease both;
}

.replacement-tray p {
  margin: 0 0 10px;
  color: #d9f7ff;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
}

.new-cartridge {
  width: 100%;
  border-color: #7cc7d4;
  color: #dffcff;
  background: linear-gradient(145deg, #28677b, #123a4b 62%, #081f2d);
  transform: translateY(var(--drag-y));
  cursor: ns-resize;
}

.new-cartridge b {
  font-size: 16px;
}

.new-frame-inserting .new-cartridge {
  pointer-events: none;
  animation: insert-frame .85s cubic-bezier(.5, 0, .2, 1) both;
}

.diagnostic-slip {
  position: absolute;
  top: 164px;
  left: 0;
  z-index: 7;
  display: grid;
  width: 255px;
  min-height: 120px;
  align-content: center;
  padding: 18px 18px 19px;
  color: #262020;
  background:
    repeating-linear-gradient(0deg, transparent 0 21px, rgba(63, 63, 71, .1) 22px),
    #d9d2c8;
  box-shadow: 8px 12px 26px rgba(0, 0, 0, .45);
  font-family: "Courier New", monospace;
  transform: rotate(-2deg);
}

.diagnostic-slip::before,
.diagnostic-slip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(135deg, transparent 5px, #d9d2c8 0) 0 0 / 10px 10px repeat-x;
}

.diagnostic-slip::before { top: -7px; }
.diagnostic-slip::after { bottom: -7px; transform: rotate(180deg); }

.diagnostic-slip small {
  color: #514b47;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}

.diagnostic-slip b {
  margin-top: 8px;
  color: #3b0f1b;
  font-size: 14px;
  line-height: 1.35;
}

.diagnostic-slip span {
  margin-top: 9px;
  color: #403a38;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.bias-reveal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 30;
  display: none;
  width: min(520px, calc(100% - 36px));
  padding: 23px 27px;
  border: 1px solid #e95d7b;
  color: #ffe6ed;
  background: rgba(35, 8, 20, .96);
  box-shadow: 0 0 0 999px rgba(3, 5, 10, .45), 0 20px 65px rgba(0, 0, 0, .72);
  text-align: center;
  transform: translate(-50%, -50%);
}

.bias-reveal span,
.bias-reveal b {
  display: block;
  font-family: "Courier New", monospace;
  letter-spacing: .1em;
}

.bias-reveal span { color: #f2c8d3; font-size: 14px; font-weight: 700; }
.bias-reveal b { margin-top: 7px; color: #ffabc0; font-size: 22px; }
.bias-reveal p { margin: 14px 0 0; color: #fff2f6; font-family: Georgia, serif; font-size: 17px; line-height: 1.45; }

.stage-filter .bias-reveal {
  display: block;
  animation: bias-pop 2.7s ease both;
  pointer-events: none;
}

.final-reframe {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 40;
  display: none;
  width: min(700px, calc(100% - 34px));
  padding: 28px clamp(22px, 5vw, 54px);
  border: 1px solid rgba(155, 225, 235, .72);
  color: #e9f8fb;
  background:
    linear-gradient(135deg, rgba(15, 59, 73, .95), rgba(12, 18, 32, .98) 58%),
    #0d1720;
  box-shadow: 0 0 0 999px rgba(3, 7, 13, .72), 0 28px 90px #000, inset 0 0 45px rgba(95, 210, 224, .08);
  text-align: center;
  transform: translate(-50%, -50%);
}

.stage-complete .final-reframe {
  display: block;
  animation: final-reveal .85s .7s ease both;
}

.old-frame {
  margin: 0;
  color: #e8b8c6;
  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
}

.final-reframe h2 {
  margin: 8px 0 4px;
  color: #e8fbff;
  font-family: Georgia, serif;
  font-size: clamp(27px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: .05em;
  text-shadow: 0 0 22px rgba(128, 228, 239, .32);
}

.final-subtitle {
  margin: 0;
  color: #d8f5fa;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .08em;
}

.final-thesis {
  max-width: 570px;
  margin: 18px auto 13px;
  color: #f4fbfd;
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
}

.final-reframe > strong {
  display: block;
  color: #c8fbff;
  font-family: "Courier New", monospace;
  font-size: 14px;
  letter-spacing: .12em;
}

.final-reframe button {
  margin-top: 20px;
  padding: 11px 24px;
  border: 1px solid #9de7ec;
  border-bottom-width: 3px;
  color: #dffbfe;
  background: linear-gradient(#286c7c, #123b4b);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .4);
  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  cursor: pointer;
}

.final-reframe button:hover,
.final-reframe button:focus-visible {
  outline: none;
  filter: brightness(1.22);
  transform: translateY(-2px);
}

.machine-scanning .meter-machine {
  animation: machine-shake .12s linear infinite;
}

.machine-scanning .meter-glow {
  background: radial-gradient(circle at 50% 70%, rgba(216, 56, 92, .48), transparent 58%);
}

.verdict-flash .machine-display {
  animation: display-flash .48s steps(2) both;
}

.stage-filter .meter-machine {
  animation: fault-shake .5s ease 2;
}

.stage-filter .meter-face {
  box-shadow: inset 0 0 28px rgba(156, 6, 45, .74), 0 3px 0 rgba(220, 230, 234, .4);
}

.stage-complete .intro-card,
.stage-complete .room-header {
  opacity: .22;
}

@keyframes rain-fall {
  from { background-position: 0 -240px; }
  to { background-position: 40px 240px; }
}

@keyframes feed-object {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  48% { transform: translateY(-88px) scale(.82); opacity: .86; }
  100% { transform: translateY(-52px) scale(.68); opacity: 0; }
}

@keyframes machine-shake {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(2px); }
}

@keyframes fault-shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-.6deg); }
  75% { transform: rotate(.6deg); }
}

@keyframes display-flash {
  0%, 45% { filter: brightness(2); }
  46%, 70% { filter: brightness(.45); }
  71%, 100% { filter: brightness(1.3); }
}

@keyframes cartridge-eject {
  from { transform: translate(-50%, -52px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes cartridge-remove {
  from { transform: translate(-50%, 0); opacity: 1; }
  to { transform: translate(-50%, 120px) rotate(4deg); opacity: 0; }
}

@keyframes replacement-arrive {
  from { transform: translateX(70px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes insert-frame {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  70% { transform: translate(var(--insert-x), var(--insert-y)) scale(.84); opacity: 1; }
  100% { transform: translate(var(--insert-x), var(--insert-y)) scale(.72); opacity: 0; }
}

@keyframes bias-pop {
  0% { opacity: 0; transform: translate(-50%, -44%) scale(.9); }
  15%, 72% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -54%) scale(.96); visibility: hidden; }
}

@keyframes card-flip {
  from { transform: rotateX(90deg); opacity: 0; }
  to { transform: rotateX(0); opacity: 1; }
}

@keyframes final-reveal {
  from { opacity: 0; transform: translate(-50%, -45%) scale(.93); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 900px) {
  .desk-scene {
    min-height: 720px;
    padding-top: 40px;
  }

  .meter-machine {
    width: 380px;
    min-width: 0;
  }

  .diagnostic-slip {
    top: 420px;
    left: 3%;
    width: 43%;
    min-height: 105px;
  }

  .replacement-tray {
    top: 420px;
    right: 3%;
    width: 43%;
  }

  .object-tray {
    bottom: 22px;
  }

  .audience-object {
    grid-template-columns: 24px 34px minmax(0, 1fr);
    padding: 8px;
  }

  .object-symbol {
    width: 31px;
    height: 31px;
    font-size: 17px;
  }

  .object-label {
    font-size: 14px;
  }

}

@media (max-width: 620px) {
  .twilight-room {
    overflow-y: auto;
  }

  .room-header {
    min-height: 70px;
    padding: 12px 14px;
  }

  .persistent-mirror-return {
    top: 80px;
    right: 10px;
    padding: 8px 10px;
    font-size: 9px;
  }

  .eyebrow {
    font-size: 10px;
  }

  .room-header h1 {
    font-size: 21px;
  }

  .header-status {
    padding: 7px 8px;
  }

  .header-status span {
    font-size: 9px;
  }

  .header-status b {
    font-size: 11px;
  }

  .intro-card {
    margin-top: 10px;
    padding: 10px 13px;
  }

  .desk-scene {
    width: 100%;
    min-height: 970px;
    margin-top: 0;
    padding: 28px 10px 375px;
  }

  .meter-machine {
    width: min(360px, calc(100vw - 24px));
    height: 400px;
    padding-inline: 24px;
  }

  .meter-face {
    height: 176px;
  }

  .object-tray {
    left: 12px;
    right: 12px;
    bottom: 28px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .audience-object {
    min-height: 78px;
    grid-template-columns: 30px 42px minmax(0, 1fr);
  }

  .diagnostic-slip {
    top: 445px;
    left: 8%;
    width: 84%;
    min-height: 102px;
  }

  .replacement-tray {
    top: 572px;
    left: 8%;
    right: auto;
    width: 84%;
  }

  .final-reframe {
    max-height: calc(100vh - 30px);
    overflow-y: auto;
    padding: 22px 18px;
  }

}

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