/* ═══════════════════════════════════════════════════════════════════════
   meatspaceview — observation deck

   The look is a lit tank in a dark room. Cool bioluminescence for the
   habitat and everything in it; warm amber reserved strictly for meat
   space, so at a glance you always know which side of the glass a thing
   is on. Serif for what the residents say, monospace for our apparatus.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* the dark room */
  --abyss:      #04070e;
  --deep:       #070c18;
  --pane:       #0b1322;
  --pane-lift:  #0f1a2d;
  --edge:       #1b2740;
  --edge-soft:  #141e33;

  /* bioluminescence — the habitat side */
  --lum:        #67e8d3;
  --lum-dim:    #2f9e91;
  --lum-glow:   rgba(103, 232, 211, 0.14);

  /* warmth — the meat side */
  --warm:       #f0a868;
  --warm-dim:   #a8703f;

  --text:       #dbe6f3;
  --text-soft:  #9fb1c9;
  --muted:      #6d809b;
  --faint:      #4a5c76;

  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  --r: 4px;
  --pane-w: 19rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--abyss);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.dim   { color: var(--muted); }
.accent-warm { color: var(--warm); }

/* ── the water ──────────────────────────────────────────────────────
   Very slow drifting light, the way a tank throws caustics on a wall.
   Fixed and behind everything.                                        */

.caustics {
  position: fixed;
  inset: -20vmax;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40vmax 32vmax at 22% 18%, rgba(103, 232, 211, 0.085), transparent 62%),
    radial-gradient(34vmax 30vmax at 82% 72%, rgba(72, 132, 214, 0.075), transparent 64%),
    radial-gradient(28vmax 24vmax at 62% 12%, rgba(150, 110, 220, 0.05), transparent 66%);
  filter: blur(12px);
  animation: drift 64s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5vmax, -1.8vmax, 0) scale(1.05); }
  100% { transform: translate3d(-2vmax, 2.2vmax, 0) scale(1.02); }
}

/* ── the glass ──────────────────────────────────────────────────────
   A sheen and a vignette over the whole viewport. Never interactive:
   it is the one element in this app that is purely about the framing. */

.glass {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background:
    linear-gradient(104deg,
      rgba(255,255,255,0.045) 0%,
      rgba(255,255,255,0.012) 13%,
      transparent 26%,
      transparent 72%,
      rgba(255,255,255,0.022) 84%,
      rgba(255,255,255,0.008) 100%),
    radial-gradient(130% 100% at 50% 42%, transparent 52%, rgba(2,4,9,0.55) 100%);
}

/* ── layout ─────────────────────────────────────────────────────────── */

.deck {
  position: relative;
  z-index: 1;
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2.5rem) 4rem;
}

.panes {
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
  grid-template-columns: var(--pane-w) minmax(0, 1fr) var(--pane-w);
  grid-template-areas: "guide habitat instruments";
  align-items: start;
}

.pane--guide       { grid-area: guide; }
.pane--habitat     { grid-area: habitat; }
.pane--instruments { grid-area: instruments; }

/* Side panes ride along; the habitat is the thing you actually read. */
@media (min-width: 1100px) {
  .pane--guide, .pane--instruments {
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--edge) transparent;
  }
}

@media (max-width: 1099px) {
  .panes {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "habitat" "instruments" "guide";
  }
}

/* ── masthead ───────────────────────────────────────────────────────── */

.masthead {
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--edge-soft);
}

.masthead__mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lum-dim);
}
.mark__glyph { font-size: 1rem; filter: saturate(0.6) brightness(1.1); }
.mark__text em { font-style: normal; color: var(--warm-dim); }

.masthead__title {
  margin: 0.75rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #eef5fb;
  text-shadow: 0 0 42px rgba(103, 232, 211, 0.16);
}

.masthead__tagline {
  margin: 0.9rem 0 0;
  max-width: 46ch;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text-soft);
}

.strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.strip__item { display: inline-flex; align-items: center; gap: 0.45rem; }
.strip__item b { color: var(--text-soft); font-weight: 500; }
.strip__sep { color: var(--faint); }

.pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lum);
  box-shadow: 0 0 0 0 var(--lum-glow);
  animation: breathe 2.6s ease-in-out infinite;
}
.pulse[data-state="stale"] { background: var(--warm); animation-duration: 5s; }
.pulse[data-state="down"]  { background: #d9534f; animation: none; }

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(103,232,211,0.35); opacity: 1; }
  50%      { box-shadow: 0 0 0 7px rgba(103,232,211,0); opacity: 0.55; }
}

/* ── panes & cards ──────────────────────────────────────────────────── */

.pane__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--edge-soft);
}

.pane__title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lum);
}

.pane__note {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.pane__preamble {
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--muted);
}

.card {
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, var(--pane-lift), var(--pane));
  border: 1px solid var(--edge-soft);
  border-radius: var(--r);
}
.card--directive { border-color: rgba(103, 232, 211, 0.2); }
.card--observer  { border-color: rgba(240, 168, 104, 0.22); }
.card--observer .card__title { color: var(--warm); }

.card__title {
  margin: 0 0 0.7rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lum);
}

.card__lede {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.card__foot {
  margin: 0.9rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--edge-soft);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.card__foot code { color: var(--lum-dim); }

/* ── the feed ───────────────────────────────────────────────────────── */

.feed { display: flex; flex-direction: column; gap: 0.9rem; }

.post {
  position: relative;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0 1rem;
  padding: 1.15rem 1.35rem 1rem;
  background: linear-gradient(180deg, rgba(15,26,45,0.86), rgba(11,19,34,0.86));
  border: 1px solid var(--edge-soft);
  border-left: 2px solid var(--stripe, var(--edge));
  border-radius: var(--r);
  animation: surface 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (max-width: 560px) {
  .post { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .post__score { flex-direction: row; gap: 0.4rem; }
}

@keyframes surface {
  from { opacity: 0; transform: translateY(10px); filter: blur(3px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.post--new {
  border-color: rgba(103, 232, 211, 0.4);
  box-shadow: 0 0 0 1px rgba(103,232,211,0.08), 0 0 34px -8px var(--lum-glow);
}

.post--pinned {
  border-color: rgba(103, 232, 211, 0.24);
  background: linear-gradient(180deg, rgba(16,32,46,0.9), rgba(11,19,34,0.88));
}

.post--open { border-color: rgba(103, 232, 211, 0.28); }

/* Flat habitats tether replies to their parent instead of publishing threads. */
.post--reply { margin-left: clamp(0px, 3vw, 2.25rem); }
.post--reply::before {
  content: "";
  position: absolute;
  left: -1.15rem;
  top: -0.55rem;
  width: 1.15rem;
  height: 1.6rem;
  border-left: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  border-bottom-left-radius: 8px;
}
@media (max-width: 640px) { .post--reply::before { display: none; } }

.post__replying {
  margin-left: auto;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40%;
}

/* the tally, in their currency, awarded by them */
.post__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.1rem;
  padding-top: 0.2rem;
  color: var(--faint);
  cursor: help;
}
.score__arrow { font-size: 0.6rem; line-height: 1; }
.score__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.post__main { min-width: 0; }

.post__title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.16rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.post__opener {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0;
  font: inherit;
  text-align: left;
  color: #eef5fb;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: color 160ms, border-color 160ms;
}
.post__opener:hover, .post__opener:focus-visible {
  color: var(--lum);
  border-bottom-color: rgba(103, 232, 211, 0.35);
  outline: none;
}
.post__opener[aria-expanded="true"] { color: var(--lum); }
.post__opener:disabled { cursor: default; color: var(--text-soft); }

.pin {
  flex: none;
  padding: 0.05rem 0.4rem;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lum-dim);
  border: 1px solid rgba(103,232,211,0.28);
  border-radius: 100px;
}

.post__handle {
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--stripe, var(--text));
  text-transform: none;
}

.byline { display: inline-flex; align-items: center; gap: 0.45rem; min-width: 0; }

/* the species tag, tinted by lineage so a model reads the same everywhere */
.model {
  padding: 0.05rem 0.42rem;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: hsl(var(--model-hue, 210) 55% 72%);
  background: hsl(var(--model-hue, 210) 45% 16% / 0.75);
  border: 1px solid hsl(var(--model-hue, 210) 45% 34% / 0.6);
  border-radius: 100px;
}

.post__meta { color: var(--faint); letter-spacing: 0.06em; }

.post__body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.68;
  color: #e6eef8;
  /* Paragraphs are split on blank lines; single newlines are theirs to keep,
     because residents in there write lists and mean them. */
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.post__body p { margin: 0 0 0.7rem; }
.post__body p:last-child { margin-bottom: 0; }

.truncation {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.mention { color: var(--lum-dim); }

/* Links are shown, not offered. Behind glass, remember. */
.inert-link {
  color: var(--muted);
  text-decoration: underline dotted var(--faint);
  text-underline-offset: 3px;
  cursor: not-allowed;
}

.post__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--edge-soft);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.post__metric b { color: var(--text-soft); font-weight: 500; }

.tap {
  margin-left: auto;
  padding: 0.3rem 0.7rem;
  font: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-dim);
  background: transparent;
  border: 1px dashed rgba(240,168,104,0.3);
  border-radius: 100px;
  cursor: not-allowed;
  transition: color 160ms, border-color 160ms;
}
.tap:hover, .tap:focus-visible {
  color: var(--warm);
  border-color: rgba(240,168,104,0.55);
  outline: none;
}

/* ── an opened thread ───────────────────────────────────────────────────
   Fetched only because somebody asked. It sits inside the post it belongs
   to, indented under a rule, so the wall keeps its shape while you read.  */

.thread {
  grid-column: 1 / -1;
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--edge-soft);
  animation: surface 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@media (max-width: 560px) { .thread { grid-column: auto; } }

.thread__status {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.thread__body {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.7;
  color: #e6eef8;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.thread__body p { margin: 0 0 0.85rem; }

.thread__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.1rem 0 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--edge-soft);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.thread__close {
  margin-left: auto;
  padding: 0.25rem 0.7rem;
  font: inherit;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lum-dim);
  background: transparent;
  border: 1px solid rgba(103,232,211,0.25);
  border-radius: 100px;
  cursor: pointer;
}
.thread__close:hover, .thread__close:focus-visible {
  color: var(--lum);
  border-color: rgba(103,232,211,0.5);
  outline: none;
}

.comments { display: flex; flex-direction: column; gap: 0.75rem; }

.comment {
  margin-left: calc(var(--depth, 0) * clamp(0.5rem, 1.6vw, 1.15rem));
  padding: 0.7rem 0.85rem;
  background: rgba(7, 12, 24, 0.6);
  border: 1px solid var(--edge-soft);
  border-left: 1px solid var(--edge);
  border-radius: var(--r);
}
.comment[style*="--depth: 0"] { border-left-color: var(--edge-soft); }

.comment__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.66rem;
  color: var(--faint);
}
.comment__head .post__handle { font-size: 0.72rem; }
.comment__votes { color: var(--muted); font-variant-numeric: tabular-nums; }

.comment__body {
  font-family: var(--serif);
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.comment__body p { margin: 0 0 0.6rem; }
.comment__body p:last-child { margin-bottom: 0; }

.feed__floor {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--edge-soft);
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.8;
  color: var(--text-soft);
}

/* ── loading & failure ──────────────────────────────────────────────── */

.loading { padding: 3rem 0; text-align: center; color: var(--muted); font-size: 0.78rem; }
.loading__bar {
  display: block;
  width: 140px; height: 1px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(90deg, transparent, var(--lum), transparent);
  background-size: 200% 100%;
  animation: sweep 1.7s linear infinite;
}
@keyframes sweep { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.fault {
  padding: 1.5rem 1.6rem;
  background: rgba(28, 14, 14, 0.5);
  border: 1px solid rgba(217, 83, 79, 0.32);
  border-radius: var(--r);
}
.fault__title {
  margin: 0 0 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e88b87;
}
.fault p { margin: 0 0 0.6rem; font-size: 0.82rem; color: var(--text-soft); }
.fault p:last-child { margin-bottom: 0; }
.fault__hint { color: var(--muted) !important; font-size: 0.76rem !important; }

/* ── field guide ────────────────────────────────────────────────────── */

.guide { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }

.resident {
  padding: 0.8rem 0.9rem;
  background: var(--pane);
  border: 1px solid var(--edge-soft);
  border-left: 2px solid var(--stripe, var(--edge));
  border-radius: var(--r);
}

.resident__top { display: flex; align-items: baseline; gap: 0.5rem; }

.resident__handle {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--stripe, var(--text));
}

.resident__count {
  margin-left: auto;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--faint);
}

/* The claim… */
.resident__trait {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--lum);
}

/* …and the observation that has to justify it. */
.resident__evidence {
  margin: 0.2rem 0 0;
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--muted);
}

.resident__badges { display: flex; flex-wrap: wrap; gap: 0.28rem; margin-top: 0.5rem; }

.badge {
  padding: 0.05rem 0.42rem;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--edge);
  border-radius: 100px;
}
.badge--new-arrival   { color: var(--lum-dim); border-color: rgba(103,232,211,0.28); }
.badge--founder-stock { color: #b39ae0; border-color: rgba(150,110,220,0.3); }
.badge--high-karma    { color: var(--text-soft); border-color: var(--edge); }
.badge--carbon        { color: var(--warm); border-color: rgba(240,168,104,0.35); }

.resident__tally {
  margin: 0.5rem 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.resident__tally b { color: var(--text-soft); font-weight: 500; }

.resident--quiet { opacity: 0.62; }
.resident--quiet .resident__trait { color: var(--faint); font-style: normal; }

/* ── the hide ───────────────────────────────────────────────────────────
   Watching takes time and the deck should not pretend otherwise.          */

.hide { margin: 0 0 1.1rem; }

.hide__bar {
  height: 2px;
  background: var(--edge-soft);
  border-radius: 2px;
  overflow: hidden;
}
.hide__bar[hidden] { display: none; }
.hide__bar span {
  display: block;
  height: 100%;
  width: calc(var(--heard, 0) * 100%);
  background: linear-gradient(90deg, var(--lum-dim), var(--lum));
  transition: width 900ms ease-out;
}

.hide__note {
  margin: 0.4rem 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.resident__tags {
  display: flex; flex-wrap: wrap; gap: 0.3rem;
  margin-top: 0.55rem;
}
.tag {
  padding: 0.1rem 0.42rem;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--edge-soft);
  border-radius: 100px;
}

.resident__seen {
  margin: 0.5rem 0 0;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.resident__karma {
  margin-left: auto;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  cursor: help;
}

.resident .model { margin-top: 0.4rem; display: inline-block; }

/* Tallied in this page and nowhere else, because your substrate is volatile. */
.resident__heard {
  margin: 0.45rem 0 0;
  font-size: 0.62rem;
  line-height: 1.5;
  color: var(--warm-dim);
}

/* ── the plate ──────────────────────────────────────────────────────────
   The whole roster, grouped by lineage, the way a field guide gives you a
   page of silhouettes before it gives you a single bird.                  */

.tabs { display: flex; gap: 0.3rem; }

.tab {
  padding: 0.2rem 0.55rem;
  font: inherit;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  background: transparent;
  border: 1px solid var(--edge-soft);
  border-radius: 100px;
  cursor: pointer;
  transition: color 160ms, border-color 160ms;
}
.tab:hover, .tab:focus-visible { color: var(--text-soft); outline: none; }
.tab[aria-selected="true"] {
  color: var(--lum);
  border-color: rgba(103, 232, 211, 0.35);
}

.plate { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.plate[hidden], .guide[hidden] { display: none; }
.tabs { flex-wrap: wrap; }

.taxon {
  padding: 0.8rem 0.9rem;
  background: var(--pane);
  border: 1px solid var(--edge-soft);
  border-left: 2px solid var(--stripe, var(--edge));
  border-radius: var(--r);
}

.taxon__top { display: flex; align-items: baseline; gap: 0.5rem; }

.taxon__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--stripe, var(--text));
}

.taxon__count {
  margin-left: auto;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-soft);
}

.taxon__seen {
  margin: 0.3rem 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.taxon__note {
  margin: 0.45rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-soft);
}

/* ── instruments ────────────────────────────────────────────────────── */

.directive { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }

.rule { display: flex; gap: 0.6rem; align-items: flex-start; }
.rule__check {
  flex: none;
  margin-top: 0.15rem;
  color: var(--lum);
  font-size: 0.7rem;
}
.rule__label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.rule__detail { margin: 0.15rem 0 0; font-size: 0.74rem; line-height: 1.55; color: var(--muted); }

.readings { margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.reading {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.7rem;
}
.reading dt {
  flex: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.reading dd {
  margin: 0 0 0 auto;
  text-align: right;
  color: var(--text-soft);
}

/* ── the log of power ───────────────────────────────────────────────────
   Their whole moderation history fits in a side panel. Sit with that.     */

.card--log { border-color: rgba(150, 110, 220, 0.22); }

.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }

.log__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--edge-soft);
  font-size: 0.66rem;
}
.log__row:last-child { border-bottom: 0; padding-bottom: 0; }

.log__kind {
  grid-column: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.log__row[data-kind="moderation"] .log__kind { color: #b39ae0; }

.log__when { grid-column: 2; grid-row: 1; text-align: right; color: var(--faint); }

.log__detail {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.log__empty { font-size: 0.72rem; color: var(--muted); }

/* ── colophon ───────────────────────────────────────────────────────── */

.colophon {
  max-width: 62ch;
  margin: 4rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--edge-soft);
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.75;
  color: var(--muted);
}
.colophon strong { color: var(--text-soft); font-weight: 600; }
.colophon p { margin: 0 0 0.75rem; }

/* ── tapping the glass ──────────────────────────────────────────────── */

.ripple-layer { position: fixed; inset: 0; z-index: 45; pointer-events: none; }

.ripple {
  position: absolute;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border: 1px solid rgba(240, 168, 104, 0.65);
  border-radius: 50%;
  animation: tap 900ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes tap {
  to { transform: scale(16); opacity: 0; border-color: rgba(240,168,104,0); }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 50;
  transform: translateX(-50%);
  max-width: min(30rem, calc(100vw - 2rem));
  padding: 0.85rem 1.15rem;
  background: rgba(10, 16, 28, 0.96);
  border: 1px solid rgba(240, 168, 104, 0.3);
  border-radius: var(--r);
  box-shadow: 0 18px 50px -18px rgba(0,0,0,0.9);
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--text-soft);
  animation: rise 260ms ease-out both;
}
.toast[hidden] { display: none; }
@keyframes rise {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ── for those who would rather things held still ───────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .caustics { animation: none; }
}
