/* ============================================================
   LUCILLE — build deck
   Dark, warm-phosphor art direction taken from the app itself:
   near-black visor surfaces, #FAF8ED glow, mono labeling.
   ============================================================ */

:root {
  /* type scale */
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  --text-hero: clamp(3rem, 1rem + 8vw, 7.5rem);

  /* spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* surfaces */
  --bg: #07070a;
  --bg-deep: #040406;
  --surface: #0d0d11;
  --surface-2: #12121a;
  --border: rgba(250, 248, 237, 0.1);
  --border-strong: rgba(250, 248, 237, 0.22);

  /* text — the app's phosphorWhite */
  --text: #faf8ed;
  --muted: rgba(250, 248, 237, 0.6);
  --faint: rgba(250, 248, 237, 0.36);

  /* accents */
  --glow: #faf8ed;
  --cloud: #8fd3ff;
  --local: #a9e5c3;
  --warn: #e8b457;

  --radius: 14px;
  --radius-lg: 22px;

  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --font-sans: 'Geist', 'Helvetica Neue', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint scanline + vignette, straight from the app's overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.022) 0px,
    rgba(255, 255, 255, 0.022) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 59;
  background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.6) 100%);
}

a {
  color: var(--text);
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--glow);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

p {
  margin: 0;
}

/* ---------- layout ---------- */

.wrap {
  width: min(1180px, 100% - 2 * var(--space-6));
  margin-inline: auto;
}

section.slide {
  position: relative;
  padding-block: clamp(var(--space-16), 9vw, var(--space-24));
  border-top: 1px solid var(--border);
}

section.slide:first-of-type {
  border-top: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.eyebrow::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

.slide h2 {
  font-size: var(--text-xl);
  max-width: 22ch;
}

.lede {
  margin-top: var(--space-5);
  color: var(--muted);
  font-size: var(--text-base);
  max-width: 68ch;
}

.lede strong {
  color: var(--text);
  font-weight: 500;
}

/* ---------- nav ---------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) clamp(var(--space-4), 3vw, var(--space-8));
  background: linear-gradient(180deg, rgba(7, 7, 10, 0.92), rgba(7, 7, 10, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text);
}

.topbar .brand svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.topbar .meta {
  display: none;
}

@media (min-width: 720px) {
  .topbar .meta {
    display: block;
  }
}

.dots {
  position: fixed;
  right: clamp(10px, 2vw, 22px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: none;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 900px) {
  .dots {
    display: flex;
  }
}

.dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dots button[aria-current='true'] {
  background: var(--glow);
  border-color: var(--glow);
  box-shadow: 0 0 10px rgba(250, 248, 237, 0.7);
}

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--space-24) var(--space-16);
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(143, 211, 255, 0.07), transparent 70%),
    var(--bg-deep);
}

.hero-inner {
  display: grid;
  justify-items: center;
  gap: var(--space-8);
}

.hero h1 {
  font-size: var(--text-hero);
  letter-spacing: -0.045em;
  line-height: 0.88;
  text-shadow: 0 0 60px rgba(250, 248, 237, 0.22);
}

.hero .sub {
  color: var(--muted);
  max-width: 44ch;
  font-size: var(--text-lg);
  line-height: 1.45;
}

.hero .tagline {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
}

/* the visor + eyes, ported from ContentView.swift */
.visor {
  position: relative;
  width: min(340px, 78vw);
  aspect-ratio: 1.8 / 1;
  border-radius: 999px;
  border: 1px solid rgba(250, 248, 237, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 45%),
    linear-gradient(180deg, #0f0f14, #050507);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11%;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: float 2.8s ease-in-out infinite alternate;
}

@keyframes float {
  from {
    transform: translateY(2px);
  }
  to {
    transform: translateY(-4px);
  }
}

.eye {
  width: 21%;
  height: 62%;
  border-radius: 999px;
  background: linear-gradient(180deg, #faf8ed, rgba(250, 248, 237, 0.82));
  box-shadow: 0 0 14px rgba(250, 248, 237, 0.75), 0 0 34px rgba(250, 248, 237, 0.32);
  animation: blink 5.2s infinite;
  position: relative;
}

.eye::after {
  content: '';
  position: absolute;
  top: 12%;
  left: 28%;
  width: 44%;
  height: 15%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  filter: blur(1px);
}

@keyframes blink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  94%,
  96% {
    transform: scaleY(0.06);
  }
}

.waveform {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
}

.waveform span {
  width: 3px;
  background: rgba(250, 248, 237, 0.55);
  border-radius: 2px;
  animation: talk 1.1s ease-in-out infinite;
}

@keyframes talk {
  0%,
  100% {
    height: 15%;
    opacity: 0.4;
  }
  50% {
    height: 100%;
    opacity: 1;
  }
}

.scroll-cue {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  color: var(--faint);
  text-transform: uppercase;
}

/* ---------- stat strip ---------- */

.stats {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, 1fr);
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: var(--space-10);
}

@media (min-width: 780px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  background: var(--surface);
  padding: var(--space-5) var(--space-5) var(--space-6);
}

.stat .n {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  letter-spacing: -0.03em;
  display: block;
}

.stat .k {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: var(--space-2);
  display: block;
}

/* ---------- generic cards ---------- */

.grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.grid.two {
  grid-template-columns: 1fr;
}

.grid.three {
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .grid.two {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: var(--space-6);
}

.card h3 {
  font-size: var(--text-base);
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.card h3 .tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card p {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: var(--text-sm);
}

.card code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--text);
  background: rgba(250, 248, 237, 0.06);
  padding: 1px 5px;
  border-radius: 5px;
}

.card.accent-local {
  border-color: rgba(169, 229, 195, 0.3);
}

.card.accent-cloud {
  border-color: rgba(143, 211, 255, 0.3);
}

/* ---------- lists ---------- */

ul.ticks {
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-3);
}

ul.ticks li {
  position: relative;
  padding-left: var(--space-6);
  color: var(--muted);
  font-size: var(--text-sm);
}

ul.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--glow);
  box-shadow: 0 0 8px rgba(250, 248, 237, 0.6);
}

ul.ticks li strong {
  color: var(--text);
  font-weight: 500;
}

/* ---------- diagram wrapper ---------- */

.figure {
  margin-top: var(--space-10);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 50% 0%, rgba(143, 211, 255, 0.05), transparent 60%), var(--bg-deep);
  padding: clamp(var(--space-4), 3vw, var(--space-8));
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.figure svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 860px) {
  .figure svg {
    width: 820px;
    max-width: none;
  }
  .figure::after {
    content: "\2190  drag to pan  \2192";
    display: block;
    position: sticky;
    left: 0;
    width: 100%;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
    margin-top: var(--space-4);
  }
}

.figcaption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--faint);
  text-transform: uppercase;
  margin-top: var(--space-5);
}

/* svg diagram type */
svg text {
  font-family: var(--font-mono);
  fill: var(--text);
}

svg .t-label {
  font-size: 11px;
  letter-spacing: 0.05em;
}

svg .t-small {
  font-size: 9px;
  fill: rgba(250, 248, 237, 0.55);
  letter-spacing: 0.06em;
}

svg .t-tiny {
  font-size: 8.5px;
  fill: rgba(250, 248, 237, 0.45);
  letter-spacing: 0.1em;
}

svg .box {
  fill: #101018;
  stroke: rgba(250, 248, 237, 0.2);
}

svg .box-local {
  fill: rgba(169, 229, 195, 0.07);
  stroke: rgba(169, 229, 195, 0.45);
}

svg .box-cloud {
  fill: rgba(143, 211, 255, 0.07);
  stroke: rgba(143, 211, 255, 0.45);
}

svg .box-decide {
  fill: rgba(250, 248, 237, 0.05);
  stroke: rgba(250, 248, 237, 0.4);
}

svg .link {
  stroke: rgba(250, 248, 237, 0.28);
  fill: none;
}

svg .link-local {
  stroke: rgba(169, 229, 195, 0.55);
  fill: none;
}

svg .link-cloud {
  stroke: rgba(143, 211, 255, 0.55);
  fill: none;
}

svg .fill-local {
  fill: rgba(169, 229, 195, 0.9);
}

svg .fill-cloud {
  fill: rgba(143, 211, 255, 0.9);
}

/* ---------- tabs ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.tabs button {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: var(--space-2) var(--space-5);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tabs button:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.tabs button[aria-selected='true'] {
  color: var(--bg);
  background: var(--glow);
  border-color: var(--glow);
  box-shadow: 0 0 24px rgba(250, 248, 237, 0.28);
}

.panel[hidden] {
  display: none;
}

/* ---------- code block ---------- */

.code {
  margin-top: var(--space-8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-deep);
  overflow: hidden;
}

.code header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.code pre {
  margin: 0;
  padding: var(--space-5);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(250, 248, 237, 0.86);
}

.code .c {
  color: rgba(250, 248, 237, 0.38);
}

.code .k {
  color: var(--cloud);
}

.code .s {
  color: var(--local);
}

/* ---------- table ---------- */

.table-wrap {
  margin-top: var(--space-8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 560px;
}

th,
td {
  text-align: left;
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 400;
  background: var(--surface);
}

tbody tr:last-child td {
  border-bottom: 0;
}

td.mono,
th.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

td.muted {
  color: var(--muted);
}

/* ---------- timeline ---------- */

.timeline {
  margin-top: var(--space-10);
  display: grid;
  gap: 0;
}

.tl-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border);
}

.tl-row:last-child {
  border-bottom: 1px solid var(--border);
}

.tl-when {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--faint);
  padding-top: 3px;
}

.tl-what h3 {
  font-size: var(--text-base);
  font-weight: 500;
}

.tl-what p {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--text-sm);
}

/* ---------- pull quote ---------- */

.quote {
  margin-top: var(--space-10);
  padding: var(--space-8);
  border-left: 2px solid var(--glow);
  background: linear-gradient(90deg, rgba(250, 248, 237, 0.05), transparent);
  font-size: var(--text-lg);
  line-height: 1.4;
  max-width: 46ch;
}

.quote span {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

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

footer.end {
  border-top: 1px solid var(--border);
  padding-block: var(--space-16);
  text-align: center;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- reveal ---------- */

/* Content is ALWAYS visible. Never gate content on JS or scroll position. */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

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

/* ============================================================
   ADDENDUM — dark web mode (Abyssal) and MCP reciprocity
   ============================================================ */

:root {
  --danger: #ff4a4a;
}

/* red visor state — .darkSearch */
.visor.is-dark {
  border-color: rgba(255, 74, 74, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 74, 74, 0.07), transparent 45%),
    linear-gradient(180deg, #14090b, #060305);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 60px rgba(255, 74, 74, 0.12),
    inset 0 1px 0 rgba(255, 120, 120, 0.08);
}

.visor.is-dark .eye {
  background: linear-gradient(180deg, #ff7a7a, #d21f1f);
  box-shadow: 0 0 16px rgba(255, 74, 74, 0.85), 0 0 46px rgba(255, 74, 74, 0.4);
  animation: blink 5.2s infinite, pulse-red 1.6s ease-in-out infinite alternate;
}

.visor.is-dark .eye::after {
  background: rgba(255, 226, 226, 0.5);
}

@keyframes pulse-red {
  from {
    filter: brightness(0.92);
  }
  to {
    filter: brightness(1.16);
  }
}

.visor,
.visor .eye {
  transition: border-color 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
}

/* the interactive demo panel */
.demo {
  margin-top: var(--space-10);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--bg-deep));
  padding: clamp(var(--space-5), 3vw, var(--space-8));
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 820px) {
  .demo {
    grid-template-columns: 300px 1fr;
  }
}

.demo-stage {
  display: grid;
  justify-items: center;
  gap: var(--space-5);
}

.demo-stage .visor {
  width: min(240px, 62vw);
  animation: none;
}

.btn {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: var(--space-3) var(--space-6);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  border-color: rgba(255, 74, 74, 0.6);
  color: #ffb4b4;
}

.btn[data-on='true'] {
  border-color: rgba(255, 74, 74, 0.7);
  color: #ff9c9c;
  background: rgba(255, 74, 74, 0.08);
}

.readout {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 2.1;
  color: var(--faint);
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 210px;
}

.readout li {
  display: flex;
  gap: var(--space-4);
  opacity: 0.25;
  transition: opacity 0.35s ease, color 0.35s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.readout li.on {
  opacity: 1;
  color: var(--muted);
}

.readout li.on .st {
  color: #ff8d8d;
}

.readout .st {
  color: var(--faint);
  flex: 0 0 4.5em;
}

.state-chip {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.state-chip[data-on='true'] {
  color: #ff8d8d;
}

/* red diagram vocabulary */
svg .box-dark {
  fill: rgba(255, 74, 74, 0.07);
  stroke: rgba(255, 74, 74, 0.45);
}

svg .link-dark {
  stroke: rgba(255, 74, 74, 0.55);
  fill: none;
}

.card.accent-dark {
  border-color: rgba(255, 74, 74, 0.32);
}

.tabs button[data-tone='dark'][aria-selected='true'] {
  background: rgba(255, 74, 74, 0.14);
  border-color: rgba(255, 74, 74, 0.6);
  color: #ffbdbd;
}

td .red,
.red {
  color: #ff8d8d;
}

@media (max-width: 819px) {
  .readout {
    line-height: 1.75;
    min-height: 0;
  }
  .readout li {
    white-space: normal;
    align-items: baseline;
  }
  .readout .st {
    flex: 0 0 4.2em;
  }
}

.sub-h {
  margin-top: var(--space-16);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 400;
}

/* ---------- the two face states (dark web section) ---------- */

.face-states {
  margin-top: var(--space-10);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.face-state {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--bg-deep));
}

.face-state.is-red {
  border-color: rgba(255, 74, 74, 0.22);
  background: linear-gradient(180deg, rgba(255, 74, 74, 0.05), var(--bg-deep));
}

.visor-sm {
  width: min(190px, 60vw);
  animation: none;
}

.face-state figcaption {
  display: grid;
  gap: 6px;
  text-align: center;
}

.fs-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.face-state.is-red .fs-label {
  color: var(--danger);
}

.fs-note {
  font-size: var(--text-sm);
  color: var(--faint);
  max-width: 34ch;
  margin: 0 auto;
  line-height: 1.55;
}
