/* What Would They Think? · a night room lit by feeling.
   Pleasure is color, Arousal is light, Dominance is focus (Liu & Maes 2004, after Lakoff and McCloud). */

@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-latin-full-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-latin-full-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Hanken'; src: url('/fonts/hanken-grotesk-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --night: #0b0912;
  --velvet: #141020;
  --plum: #1d1730;
  --ivory: #f6efe2;
  --ivory-2: #d9d0c2;
  --muted: #9a92a9;
  --faint: #6b6479;
  --gold: #f2c45f;
  --gold-hi: #fff0b8;
  --gold-deep: #b3701f;
  --cold: #7f8fd6;
  --rose: #e2768f;
  --line: rgba(246, 239, 226, 0.11);
  --line-gold: rgba(242, 196, 95, 0.32);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Hanken', 'Helvetica Neue', system-ui, sans-serif;
  --mono: 'Plex Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ivory); font: 400 16px/1.55 var(--sans);
  font-variation-settings: 'wght' 400;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(242, 196, 95, 0.07), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(127, 143, 214, 0.06), transparent 60%),
    var(--night);
  overflow-x: hidden;
}
body::before { /* film grain: the room is printed in light, not rendered in flat color */
  content: ''; position: fixed; inset: -50%; pointer-events: none; z-index: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration-color: var(--line-gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); text-decoration-color: var(--gold); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
::selection { background: rgba(242, 196, 95, .3); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--velvet); padding: 8px 12px; }

/* ---------- header ---------- */
.top {
  position: relative; z-index: 5; display: flex; align-items: center; gap: 28px;
  padding: 22px var(--gutter) 0; flex-wrap: wrap;
}
.mark { font-family: var(--serif); font-size: 22px; text-decoration: none; letter-spacing: -.01em; font-variation-settings: 'opsz' 72, 'SOFT' 100, 'WONK' 1; white-space: nowrap; }
.mark-q { font-weight: 360; }
.mark-q2 { font-style: italic; font-weight: 300; color: var(--gold); }
.nav { display: flex; gap: 22px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.nav a:hover, .nav a[aria-current] { color: var(--ivory); border-bottom-color: var(--gold); }
.credit-chip {
  margin-left: auto; display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: 12px; letter-spacing: .04em; color: var(--ivory-2); text-decoration: none;
  padding: 7px 14px; border: 1px solid var(--line-gold); border-radius: 999px;
  background: linear-gradient(180deg, rgba(242, 196, 95, .08), rgba(242, 196, 95, .02));
}
.credit-chip i { color: var(--gold); font-style: normal; }
.credit-chip .dot { color: var(--gold); }

code { overflow-wrap: anywhere; }
.evo h4 { overflow-wrap: anywhere; }
main { position: relative; z-index: 1; padding: 0 var(--gutter); min-height: 60vh; outline: none; }
.noscript { max-width: 60ch; margin: 80px auto; color: var(--ivory-2); }

/* ---------- the room ---------- */
.room-head { max-width: 1240px; margin: clamp(28px, 6vh, 64px) auto 22px; display: grid; gap: 10px; }
.kicker { font: 500 11px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.room-title {
  margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 5.4vw, 76px); line-height: .98;
  letter-spacing: -.025em; font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 0; max-width: 22ch; text-wrap: balance;
}
.room-title em { font-style: italic; color: var(--gold); font-weight: 280; }
.room-lede { margin: 6px 0 0; max-width: 66ch; text-wrap: pretty; color: var(--ivory-2); font-size: 17px; }

.room {
  max-width: 1240px; margin: 0 auto; display: grid; gap: clamp(10px, 1.6vw, 22px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.face {
  --p: 0; --a: 0; --d: 0; --sat: 1; --bright: 1; --blur: 0px; --glow: 0;
  position: relative; display: grid; gap: 8px; justify-items: center; text-align: center;
  background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0;
}
.face-stage { position: relative; width: 100%; aspect-ratio: 1 / 1.08; border-radius: 22px; overflow: hidden; isolation: isolate; }
.face-stage::before { /* the spotlight: arousal is light */
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(70% 60% at 50% 42%, rgba(255, 240, 184, calc(.06 + var(--glow) * .3)), transparent 72%),
              linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  transition: background 1.4s var(--ease);
}
.face-stage::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--line); pointer-events: none; transition: border-color .6s; }
.face:hover .face-stage::after, .face[aria-pressed='true'] .face-stage::after { border-color: var(--line-gold); }
.face canvas {
  width: 100%; height: 100%; display: block;
  filter: saturate(var(--sat)) brightness(var(--bright)) blur(var(--blur)) drop-shadow(0 0 calc(var(--glow) * 18px) rgba(255, 224, 150, calc(var(--glow) * .55)));
  transition: filter 1.4s var(--ease), transform 1.4s var(--ease);
  transform: scale(calc(1 + var(--glow) * .035));
}
.face.thinking canvas { animation: breathe 2.4s var(--ease) infinite; }
@keyframes breathe { 50% { opacity: .78; } }
.face-name { font-family: var(--serif); font-size: clamp(15px, 1.35vw, 19px); font-weight: 400; letter-spacing: -.005em; font-variation-settings: 'opsz' 24; line-height: 1.1; }
.face-stance { min-height: 1.3em; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--gold); opacity: 0; transform: translateY(4px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.face.reacted .face-stance { opacity: 1; transform: none; }
.face-stance.neg { color: var(--rose); }
.face-stance.flat { color: var(--muted); }
.pad-row { display: flex; gap: 6px; font: 10px/1 var(--mono); color: var(--faint); letter-spacing: .02em; opacity: 0; transition: opacity .8s; }
.face.reacted .pad-row { opacity: 1; }
.pad-row b { font-weight: 400; color: var(--ivory-2); }
.layer { position: absolute; top: 10px; left: 10px; font: 9px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-2); background: rgba(11, 9, 18, .66); padding: 5px 7px; border-radius: 99px; opacity: 0; transition: opacity .6s; backdrop-filter: blur(6px); }
.face.reacted .layer { opacity: .9; }

/* ---------- the fodder box ---------- */
.fodder {
  max-width: 1240px; margin: clamp(22px, 4vh, 40px) auto 0; padding-top: 18px;
  position: sticky; bottom: 0; z-index: 4;
  background: linear-gradient(180deg, rgba(11, 9, 18, 0), rgba(11, 9, 18, .86) 26%, var(--night) 70%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.fodder form {
  display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 18px; border-bottom: 1px solid var(--line-gold); padding: 0 0 12px;
}
.fodder label { font: 12px/1 var(--mono); color: var(--gold); letter-spacing: .06em; padding-bottom: 14px; white-space: nowrap; }
.fodder textarea {
  width: 100%; resize: none; border: 0; outline: none; background: transparent; color: var(--ivory);
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.2;
  font-variation-settings: 'opsz' 96, 'SOFT' 100; padding: 6px 0; min-height: 1.3em; max-height: 6em; field-sizing: content;
}
.fodder textarea::placeholder { color: rgba(246, 239, 226, .28); }
.ask {
  appearance: none; border: 1px solid var(--line-gold); border-radius: 999px; padding: 12px 22px; cursor: pointer;
  font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--night);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 10px 30px -12px rgba(242, 196, 95, .6), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .3s var(--ease), box-shadow .3s; margin-bottom: 4px;
}
.ask:hover { transform: translateY(-1px); box-shadow: 0 16px 38px -12px rgba(242, 196, 95, .75), inset 0 1px 0 rgba(255,255,255,.5); }
.ask:disabled { opacity: .5; cursor: progress; }
.prompts { max-width: 1240px; display: flex; gap: 8px; flex-wrap: wrap; margin: 14px auto 0; }
.chip {
  border: 1px solid var(--line); background: rgba(246, 239, 226, .025); color: var(--ivory-2); border-radius: 999px;
  padding: 8px 14px; font: 13px/1.2 var(--serif); font-style: italic; cursor: pointer; transition: border-color .3s, color .3s, background .3s; text-decoration: none;
}
.chip:hover { border-color: var(--line-gold); color: var(--gold-hi); background: rgba(242, 196, 95, .06); }

.verdict { max-width: 1240px; margin: 26px auto 0; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; min-height: 52px; }
.verdict p { margin: 0; font-family: var(--serif); font-size: clamp(18px, 1.9vw, 24px); font-weight: 340; line-height: 1.35; font-variation-settings: 'opsz' 48; }
.verdict p b { font-weight: 500; color: var(--gold-hi); }
.verdict p .neg { color: var(--rose); font-weight: 500; }
.share { display: flex; gap: 10px; align-items: center; }
.ghost {
  appearance: none; border: 1px solid var(--line); background: transparent; color: var(--ivory-2); border-radius: 999px;
  padding: 10px 16px; font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; text-decoration: none;
  transition: border-color .3s, color .3s;
}
.ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.status { font: 11px/1.4 var(--mono); color: var(--muted); letter-spacing: .04em; }

.how { max-width: 1240px; margin: clamp(56px, 10vh, 120px) auto 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 48px); border-top: 1px solid var(--line); padding-top: 32px; }
.how h3 { margin: 0 0 8px; font: 400 22px/1.15 var(--serif); font-variation-settings: 'opsz' 48; }
.how h3 i { color: var(--gold); }
.how p { margin: 0; color: var(--ivory-2); font-size: 15px; }
.how .swatch { display: block; height: 4px; border-radius: 4px; margin-bottom: 16px; }
.sw-p { background: linear-gradient(90deg, #6d6a73, #f2c45f 60%, #ff9d5c); }
.sw-a { background: linear-gradient(90deg, #26212f, #fff3cf); }
.sw-d { background: linear-gradient(90deg, rgba(246,239,226,.15), var(--ivory)); filter: blur(.4px); }

/* ---------- the sheet ---------- */
.sheet {
  position: fixed; z-index: 30; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: rgba(16, 12, 26, .94);
  backdrop-filter: blur(22px) saturate(1.2); border-left: 1px solid var(--line-gold); overflow-y: auto;
  transform: translateX(104%); visibility: hidden; transition: transform .7s var(--ease), visibility 0s linear .7s; padding: 28px clamp(20px, 4vw, 40px) 60px;
  box-shadow: -40px 0 80px -20px rgba(0,0,0,.6);
}
.sheet[aria-hidden='false'] { transform: none; visibility: visible; transition: transform .7s var(--ease), visibility 0s; }
.sheet-close { position: sticky; top: 0; float: right; z-index: 2; }
.sheet-close { appearance: none; border: 1px solid var(--line); background: rgba(11,9,18,.7); color: var(--ivory-2); border-radius: 999px; padding: 8px 14px; font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.sheet h2 { margin: 6px 0 4px; font: 300 clamp(32px, 4vw, 44px)/1 var(--serif); letter-spacing: -.02em; font-variation-settings: 'opsz' 144, 'SOFT' 100; }
.sheet .stance { font: italic 400 20px/1.2 var(--serif); color: var(--gold); margin: 0 0 18px; }
.sheet .stance.neg { color: var(--rose); }
.reading { margin: 0 0 22px; padding: 16px 18px; border-left: 2px solid var(--gold); background: rgba(242,196,95,.05); border-radius: 0 12px 12px 0; }
.reading small { display: block; font: 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.reading p { margin: 0; font: 400 17px/1.45 var(--serif); font-variation-settings: 'opsz' 24; }

.meters { display: grid; gap: 12px; margin: 0 0 26px; }
.meter { display: grid; grid-template-columns: 92px 1fr 46px; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.meter .track { position: relative; height: 6px; border-radius: 6px; background: rgba(246,239,226,.07); }
.meter .track::before { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line); }
.meter .fill { position: absolute; top: 0; bottom: 0; border-radius: 6px; transition: all 1s var(--ease); }
.meter.p .fill { background: linear-gradient(90deg, #8b8597, var(--gold)); }
.meter.p.neg .fill { background: linear-gradient(90deg, var(--rose), #8b8597); }
.meter.a .fill { background: linear-gradient(90deg, #4a4359, #fff3cf); }
.meter.d .fill { background: var(--ivory); }
.meter output { font: 12px var(--mono); color: var(--ivory); text-align: right; }

.sheet h3, .section h3 { font: 500 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 30px 0 14px; }
.quote { margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.quote blockquote { margin: 0; font: 400 16.5px/1.5 var(--serif); font-variation-settings: 'opsz' 24; color: var(--ivory); }
.quote blockquote::before { content: '\201C'; color: var(--gold); margin-right: 2px; }
.quote blockquote::after { content: '\201D'; color: var(--gold); margin-left: 1px; }
.quote .why { display: block; margin-bottom: 6px; font-size: 13px; color: var(--ivory-2); }
.quote cite { display: block; margin-top: 8px; font: normal 11px/1.4 var(--mono); color: var(--muted); }
.concepts { display: flex; flex-wrap: wrap; gap: 8px; }
.concept {
  display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; text-decoration: none;
  background: rgba(246,239,226,.02);
}
.concept i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.open-mind { display: inline-block; margin-top: 18px; }

/* ---------- mind and concept pages ---------- */
.mind-hero { max-width: 1240px; margin: clamp(28px, 6vh, 64px) auto 0; display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; }
.mind-hero .face-stage { max-width: 360px; }
.mind-hero h1 { margin: 0; font: 300 clamp(44px, 6.4vw, 96px)/.95 var(--serif); letter-spacing: -.03em; font-variation-settings: 'opsz' 144, 'SOFT' 100; }
.mind-hero .sig { margin: 18px 0 0; font: 300 clamp(18px, 1.7vw, 23px)/1.45 var(--serif); font-style: italic; color: var(--ivory-2); max-width: 54ch; }
.mind-hero .facts { margin-top: 18px; font: 11px/1.6 var(--mono); color: var(--muted); letter-spacing: .04em; }
.section { max-width: 1240px; margin: 44px auto 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 64px); }
.belief { display: grid; grid-template-columns: 14px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.belief i { width: 10px; height: 10px; border-radius: 50%; margin-top: 8px; }
.belief p { margin: 0; font: 400 18px/1.4 var(--serif); font-variation-settings: 'opsz' 24; }
.belief details { margin-top: 6px; }
.belief summary { cursor: pointer; font-size: 12px; color: var(--muted); letter-spacing: .06em; list-style: none; }
.belief summary::-webkit-details-marker { display: none; }
.belief summary::before { content: '+ '; color: var(--gold); }
.belief details[open] summary::before { content: '\2212  '; }
.more > summary { margin-top: 18px; display: inline-block; cursor: pointer; list-style: none; font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); padding: 10px 16px; border: 1px solid var(--line-gold); border-radius: 999px; }
.more > summary::-webkit-details-marker { display: none; }
.more[open] > summary { display: none; }
.belief blockquote { margin: 10px 0 0; font: italic 15.5px/1.5 var(--serif); color: var(--ivory-2); }
.belief cite { display: block; margin-top: 6px; font: normal 11px var(--mono); color: var(--muted); }
.cloud { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.cloud a { text-decoration: none; font-family: var(--serif); line-height: 1.2; transition: color .3s; }
.realms { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.realm { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.realm b { display: block; font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.realm span { font: 16px/1.5 var(--serif); }
.episode { padding: 16px 0; border-bottom: 1px solid var(--line); }
.episode h4 { margin: 0 0 4px; font: 400 19px/1.25 var(--serif); }
.episode p { margin: 0 0 6px; color: var(--ivory-2); }
.sources { columns: 2; column-gap: 40px; font-size: 13px; color: var(--ivory-2); padding: 0; list-style: none; }
.sources li { break-inside: avoid; padding: 4px 0; }
.sources time { font: 11px var(--mono); color: var(--muted); margin-right: 8px; }
.timeline-x { position: relative; height: 140px; border-bottom: 1px solid var(--line); margin-top: 20px; }
.timeline-x .ex { position: absolute; bottom: 0; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, 50%); border: 1px solid rgba(255,255,255,.4); }
.back { display: inline-block; margin-top: 26px; font-size: 13px; color: var(--muted); text-decoration: none; letter-spacing: .06em; }

/* ---------- read with them ---------- */
.read-wrap { max-width: 1240px; margin: clamp(28px, 6vh, 64px) auto 0; }
.mini-room { position: sticky; top: 0; z-index: 4; display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; padding: 14px 0; background: linear-gradient(180deg, var(--night) 75%, transparent); }
.mini-room .face-stage { border-radius: 14px; }
.mini-room .face-name { font-size: 11px; }
.read-input textarea {
  width: 100%; min-height: 220px; border: 1px solid var(--line); border-radius: 18px; background: rgba(246,239,226,.025); color: var(--ivory);
  font: 300 19px/1.6 var(--serif); padding: 20px 22px; outline: none; resize: vertical;
}
.read-input textarea:focus { border-color: var(--line-gold); }
.read-actions { display: flex; gap: 12px; margin-top: 14px; align-items: center; flex-wrap: wrap; }
.reading-text { max-width: 70ch; margin: 30px auto 80px; font: 300 21px/1.75 var(--serif); font-variation-settings: 'opsz' 24; }
.reading-text .s { cursor: pointer; border-radius: 4px; transition: background .6s, box-shadow .6s; padding: 2px 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.reading-text .s.on { background: rgba(242,196,95,.12); box-shadow: 0 0 0 4px rgba(242,196,95,.12); }
.reading-text .s:hover { background: rgba(246,239,226,.05); }
.read-tip { font-size: 13px; color: var(--muted); }

/* ---------- origin and evolution ---------- */
.origin { max-width: 1100px; margin: clamp(28px, 6vh, 64px) auto 0; }
.origin h1 { margin: 0; font: 300 clamp(40px, 6vw, 84px)/.98 var(--serif); letter-spacing: -.03em; font-variation-settings: 'opsz' 144, 'SOFT' 100; max-width: 15ch; }
.origin h1 em { color: var(--gold); font-weight: 260; }
.citation { margin: 34px 0 0; padding: clamp(22px, 3vw, 34px); border-radius: 22px; border: 1px solid var(--line-gold); background: linear-gradient(160deg, rgba(242,196,95,.08), rgba(242,196,95,.015) 60%); }
.citation p { margin: 0; font: 300 clamp(19px, 2vw, 25px)/1.45 var(--serif); font-variation-settings: 'opsz' 48; }
.citation p b { font-weight: 500; }
.citation .meta { margin-top: 14px; font: 12px/1.6 var(--mono); color: var(--ivory-2); }
.citation .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line); image-rendering: auto; }
.shot figcaption { margin-top: 10px; font-size: 13px; color: var(--ivory-2); }
.shot figcaption b { font: 500 11px/1 var(--mono); color: var(--gold); letter-spacing: .08em; display: block; margin-bottom: 6px; }
.table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14.5px; }
.table th { text-align: left; font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line-gold); }
.table td { vertical-align: top; padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); color: var(--ivory-2); }
.table td:first-child { color: var(--muted); }
.table td:last-child { color: var(--ivory); }
.hack { margin: 20px 0 0; padding: 18px 20px; border-radius: 14px; background: #08060d; border: 1px solid var(--line); font: 13px/1.6 var(--mono); color: var(--ivory-2); overflow-x: auto; }
.hack mark { background: rgba(226,118,143,.18); color: #ffd3dc; padding: 1px 3px; border-radius: 3px; }
.evo { position: relative; margin: 26px 0 0; padding: 0 0 0 34px; list-style: none; }
.evo::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, var(--gold), var(--line) 30%, var(--line) 70%, var(--gold)); }
.evo li { position: relative; padding: 0 0 30px; }
.evo li::before { content: ''; position: absolute; left: -30px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--night); border: 1px solid var(--gold); }
.evo li.milestone::before { background: var(--gold); box-shadow: 0 0 14px rgba(242,196,95,.7); }
.evo li.hl { scroll-margin-top: 90px; }
.evo li.hl::before { background: var(--gold-hi); box-shadow: 0 0 0 6px rgba(242,196,95,.18), 0 0 22px rgba(242,196,95,.8); }
.evo time { font: 11px/1 var(--mono); color: var(--gold); letter-spacing: .06em; }
.evo h4 { margin: 6px 0 4px; font: 400 20px/1.3 var(--serif); font-variation-settings: 'opsz' 36; }
.evo h4 a { text-decoration: none; }
.evo .sha { font: 11px var(--mono); color: var(--muted); margin-left: 8px; }
.evo p { margin: 0; color: var(--ivory-2); font-size: 14.5px; max-width: 72ch; white-space: pre-line; }
.evo .stat { font: 11px var(--mono); color: var(--faint); margin-top: 6px; }
.evo li.hl p { color: var(--ivory); }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 1; max-width: 1240px; margin: 80px auto 0; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot p { margin: 0 0 10px; max-width: 95ch; }
.foot b { color: var(--ivory-2); font-weight: 500; }
.foot-stamp { font: 11px var(--mono); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .room { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .face-stage { border-radius: 14px; }
  .face-name { font-size: 12px; }
  .face-stance { font-size: 11px; }
  .pad-row { display: none; }
  .layer { display: none; }
  .how { grid-template-columns: 1fr; }
  .mind-hero { grid-template-columns: 1fr; }
  .mind-hero .face-stage { max-width: 260px; }
  .split, .shots { grid-template-columns: 1fr; }
  .sources { columns: 1; }
  .credit-chip { margin-left: 0; }
  .mini-room { gap: 4px; }
  .mini-room .face-name { display: none; }
}
@media (max-width: 560px) {
  .top { gap: 14px 20px; padding-top: 16px; }
  .nav { gap: 16px; font-size: 11px; }
  .room { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px 6px; }
  .room .face-stage { border-radius: 11px; }
  .room .face-name { font-size: 11.5px; }
  .room .face-stance { font-size: 10.5px; }
  .fn { display: none; }
  .credit-chip { font-size: 10.5px; padding: 5px 11px; gap: 6px; }
  .credit-chip .lab { display: none; }
  .fodder textarea { font-size: 21px; }
  .fodder form { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .fodder label { padding: 0; grid-column: 1 / -1; }
  .ask { padding: 11px 16px; letter-spacing: .14em; }
  .verdict { grid-template-columns: 1fr; }
  .sheet { top: auto; height: 86vh; width: 100vw; border-left: 0; border-top: 1px solid var(--line-gold); border-radius: 24px 24px 0 0; transform: translateY(104%); }
  .table { font-size: 13px; }
  .table th:nth-child(2), .table td:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01s !important; animation: none !important; }
}
