/* ============================================================
   nel labs — style.css
   A bioluminescent theme for a genome playground.
   Dark like the deep ocean, glowing like the things down there.
   ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/space-grotesk.woff2') format('woff2');
}

:root {
  --bg: #05070f;
  --bg-2: #0a0e1d;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #e9edff;
  --muted: #96a0c5;
  --faint: #5d6689;

  --cyan: #67e8f9;
  --cyan-dim: rgba(103, 232, 249, 0.14);
  --magenta: #f0abfc;
  --green: #86efac;
  --amber: #fcd34d;
  --red: #f87171;

  --base-A: #4ade80;   /* Sanger chromatogram colors: */
  --base-C: #60a5fa;   /* A green, C blue, G orange, T red. */
  --base-G: #fb923c;   /* Real sequencers print them like this. */
  --base-T: #f87171;

  --radius: 18px;
  --radius-sm: 12px;
  --mono: 'Space Grotesk', ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
  --sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background-image:
    radial-gradient(1100px 700px at 12% -8%, rgba(56, 189, 248, 0.10), transparent 60%),
    radial-gradient(900px 700px at 95% 108%, rgba(217, 70, 239, 0.10), transparent 55%),
    radial-gradient(600px 400px at 80% 5%, rgba(103, 232, 249, 0.05), transparent 60%);
  background-attachment: fixed;
}

::selection { background: rgba(103, 232, 249, 0.25); }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

.topnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 14px clamp(18px, 4vw, 44px);
  background: rgba(5, 7, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em;
  color: var(--text);
  display: flex; align-items: center; gap: 9px;
  white-space: nowrap; flex-shrink: 0;   /* "nel labs" never breaks */
}
.brand .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #bdf5ff, var(--cyan) 45%, #0e7490 100%);
  box-shadow: 0 0 12px rgba(103, 232, 249, 0.8);
  animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { box-shadow: 0 0 8px rgba(103,232,249,.55);} 50% { box-shadow: 0 0 18px rgba(103,232,249,.95);} }
.brand:hover { text-decoration: none; }
.navlinks { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.navlinks a {
  color: var(--muted); font-size: 0.86rem; font-weight: 500;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}
.navlinks a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.navlinks a[aria-current="page"] {
  color: var(--cyan); background: var(--cyan-dim); border-color: rgba(103, 232, 249, 0.25);
}
/* on phones, the links drop their long suffixes to stay on one row */
@media (max-width: 760px) {
  .navlinks .nl-full { display: none; }
}

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

.page { max-width: 1060px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(18px, 4vw, 44px) 90px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan);
  padding: 6px 12px; border-radius: 999px;
  background: var(--cyan-dim); border: 1px solid rgba(103, 232, 249, 0.22);
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.02em;
  margin: 18px 0 14px;
}
h1 .grad {
  background: linear-gradient(92deg, var(--cyan) 10%, var(--magenta) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); letter-spacing: -0.01em; margin-bottom: 10px; }
h3 { font-size: 1.02rem; margin-bottom: 6px; }

.lede { color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.13rem); max-width: 60ch; }
.lede strong { color: var(--text); font-weight: 600; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  color: var(--text);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(92deg, #22d3ee, #0ea5e9);
  color: #04121f;
  box-shadow: 0 4px 22px rgba(34, 211, 238, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 30px rgba(34, 211, 238, 0.55); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.3); color: #fca5a5; }

/* ---------------- creature stage (the petri dish) ---------------- */

.stage {
  position: relative;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 42%, rgba(103, 232, 249, 0.09), transparent 62%),
    repeating-radial-gradient(circle at 50% 42%, transparent 0 34px, rgba(255,255,255,0.028) 34px 35px);
  border: 1px solid var(--line);
  padding: clamp(10px, 2vw, 22px);
  display: flex; align-items: center; justify-content: center;
  min-height: 300px;
  overflow: hidden;
}
.stage::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent 30%);
}
.creature-holder { width: min(340px, 78%); position: relative; z-index: 1; }
.creature-svg { width: 100%; height: auto; overflow: visible; display: block; }
.floaty { animation: floaty 5.2s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(-6px);} 50% { transform: translateY(8px);} }
.creature-svg.pulse { animation: pulse 0.28s ease; }
@keyframes pulse { 0% { transform: scale(1);} 35% { transform: scale(1.025);} 100% { transform: scale(1);} }
.cv-eye { transform-box: fill-box; transform-origin: center; transition: transform 90ms ease-in; }
.cv-eye.blink { transform: scaleY(0.06); }

.stage-caption {
  position: absolute; bottom: 12px; left: 0; right: 0;
  text-align: center; font-size: 0.78rem; color: var(--faint);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------------- gene editor ---------------- */

.gene-cards { display: flex; flex-direction: column; gap: 12px; }

.gene-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.gene-card.active { border-color: rgba(103, 232, 249, 0.45); background: rgba(103, 232, 249, 0.06); }
.gene-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.gene-key {
  font-family: var(--mono); font-size: 0.92rem; font-weight: 600; color: var(--cyan);
}
.gene-label { font-size: 0.9rem; color: var(--text); font-weight: 500; }
.gene-value {
  margin-left: auto; font-family: var(--mono); font-size: 0.82rem; color: var(--amber);
  background: rgba(252, 211, 77, 0.08); border: 1px solid rgba(252, 211, 77, 0.22);
  padding: 2px 9px; border-radius: 999px; white-space: nowrap;
}
.gene-hint { font-size: 0.8rem; color: var(--faint); margin-top: 3px; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 26px; background: transparent; cursor: pointer; margin-top: 10px;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px;
  background: var(--track, rgba(255,255,255,0.12));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff;
  border: 3px solid var(--thumb, #67e8f9);
  box-shadow: 0 0 12px 0 var(--thumb-glow, rgba(103,232,249,0.65));
  margin-top: -6px;
  transition: transform 0.12s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-track {
  height: 8px; border-radius: 999px; background: var(--track, rgba(255,255,255,0.12));
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--thumb, #67e8f9);
  box-shadow: 0 0 12px 0 var(--thumb-glow, rgba(103,232,249,0.65));
}
input[type="range"].track-hue {
  --track: linear-gradient(90deg, #ff5c5c, #ffc94d, #7bff6e, #4de1ff, #7b6bff, #ff5cf0, #ff5c5c);
}
input[type="range"].track-fill {
  --track: linear-gradient(90deg, var(--cyan) var(--fill, 50%), rgba(255,255,255,0.12) var(--fill, 50%));
}

.choice-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.choice-btn {
  font-family: var(--mono); font-size: 0.84rem; font-weight: 600;
  padding: 7px 16px; border-radius: 999px; cursor: pointer;
  color: var(--muted); background: var(--surface);
  border: 1px solid var(--line-2);
  transition: all 0.15s ease;
}
.choice-btn:hover { color: var(--text); }
.choice-btn.selected {
  color: #04121f; background: var(--cyan); border-color: var(--cyan);
  box-shadow: 0 2px 14px rgba(103, 232, 249, 0.4);
}

/* ---------------- DNA ticker ---------------- */

.dna-band {
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.32);
  padding: 13px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.dna-string {
  font-family: var(--mono); font-size: 0.92rem; letter-spacing: 0.14em;
  white-space: nowrap; display: inline-block;
  padding: 0 26px; line-height: 1.6;
}
.dna-string .b { display: inline-block; min-width: 0.68em; text-align: center; }
.b-A { color: var(--base-A); } .b-C { color: var(--base-C); }
.b-G { color: var(--base-G); } .b-T { color: var(--base-T); }
.b.mut {
  animation: mutflash 0.9s ease;
  text-shadow: 0 0 14px currentColor;
}
@keyframes mutflash {
  0% { transform: translateY(3px) scale(1.35); filter: brightness(2); }
  100% { transform: none; filter: none; }
}

/* ---------------- code panel ---------------- */

.code-panel {
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.code-panel header {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.code-panel .cdots { display: flex; gap: 5px; }
.code-panel .cdots i { width: 9px; height: 9px; border-radius: 50%; opacity: 0.8; }
.code-panel .fname { font-family: var(--mono); font-size: 0.76rem; color: var(--faint); margin-left: 4px; }
.code-panel pre {
  font-family: var(--mono); font-size: 0.85rem; line-height: 1.7;
  padding: 14px 16px; overflow-x: auto;
  color: #c9d2ff;
}
.tok-key { color: var(--magenta); }
.tok-var { color: var(--cyan); }
.tok-num { color: var(--amber); }
.tok-str { color: var(--green); }
.tok-punc { color: #7c88b3; }
.tok-com { color: var(--faint); font-style: italic; }

/* ---------------- lab header / steps ---------------- */

.lab-head { margin-bottom: 26px; }
.lab-lead { color: var(--muted); max-width: 68ch; margin-top: 8px; }
.lab-lead code, .inline-code {
  font-family: var(--mono); font-size: 0.88em;
  background: rgba(103, 232, 249, 0.09); color: var(--cyan);
  padding: 2px 7px; border-radius: 6px; border: 1px solid rgba(103, 232, 249, 0.16);
}

.lesson-note {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid rgba(240, 171, 252, 0.25);
  background: rgba(240, 171, 252, 0.06);
  border-radius: var(--radius-sm); padding: 13px 16px;
  margin-top: 22px;
}
.lesson-note .ico { font-size: 1.05rem; line-height: 1.4; }
.lesson-note p { font-size: 0.88rem; color: #d9d2ef; }
.lesson-note p strong { color: var(--magenta); }

.divider { border: none; border-top: 1px solid var(--line); margin: 34px 0; }

.next-lab {
  margin-top: 40px; text-align: center;
}

/* ---------------- lab 2: the cell & operon ---------------- */

.cell-creature {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -52%);
  width: 175px; pointer-events: none;
}
.cell-creature .creature-svg { width: 100%; }

.enzyme {
  position: absolute; width: 20px; height: 20px;
  background: conic-gradient(from 55deg, #86efac 0deg 250deg, transparent 250deg 360deg);
  border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(134, 239, 172, 0.7));
  animation: enzfloat 3.4s ease-in-out infinite, enzspin 9s linear infinite;
  transition: opacity 0.4s ease;
}
@keyframes enzfloat { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-14px);} }
@keyframes enzspin { from { rotate: 0deg; } to { rotate: 360deg; } }

.meter > i.cool {
  background: linear-gradient(90deg, #e2f3ff, #9bd8f0);
}
.statusline {
  font-family: var(--mono); font-size: 0.82rem; margin-top: 12px;
  color: var(--muted); min-height: 1.4em;
}
.statusline .on { color: var(--green); font-weight: 700; }
.statusline .off { color: var(--faint); font-weight: 700; }

.funfact {
  margin-top: 22px;
  border: 1px solid rgba(252, 211, 77, 0.3);
  background: rgba(252, 211, 77, 0.05);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.88rem; color: #efe6c9;
}
.funfact strong { color: var(--amber); }
.funfact .ff-title {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber);
  display: block; margin-bottom: 6px;
}

.cell-world {
  position: relative;
  border-radius: 50% / 42%;
  border: 2px solid rgba(103, 232, 249, 0.25);
  background:
    radial-gradient(circle at 50% 46%, rgba(103, 232, 249, 0.10), rgba(103, 232, 249, 0.03) 55%, transparent 75%),
    rgba(8, 12, 26, 0.5);
  min-height: 340px;
  overflow: hidden;
}
.membrane-label {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(103, 232, 249, 0.5);
}
.sugar {
  position: absolute; width: 15px; height: 15px;
  border-radius: 4px; transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(190, 200, 255, 0.9);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
  animation: drift 7s ease-in-out infinite;
}
@keyframes drift { 0%,100% { margin-top: 0;} 50% { margin-top: 10px;} }

.operon-strip {
  display: flex; align-items: stretch; gap: 4px;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
}
.operon-strip .seg { padding: 10px 8px; text-align: center; letter-spacing: 0.04em; }
.seg-promoter { flex: 0 0 88px; background: rgba(255,255,255,0.05); color: var(--muted); transition: all .3s; }
.seg-promoter.on { background: rgba(134, 239, 172, 0.18); color: var(--green); box-shadow: inset 0 0 18px rgba(134,239,172,.25); }
.seg-gene { flex: 1; background: rgba(103, 232, 249, 0.08); color: var(--cyan); }
.seg-gene.on { background: rgba(103, 232, 249, 0.2); }
.seg-status { flex: 0 0 96px; display: flex; align-items: center; justify-content: center; }

.meter {
  height: 12px; border-radius: 999px; background: rgba(255,255,255,0.08);
  overflow: hidden; border: 1px solid var(--line);
}
.meter > i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--amber), #fbbf24);
  transition: width 0.25s ease;
}
.meter-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.meter-row .m-label { font-size: 0.78rem; color: var(--muted); flex: 0 0 74px; font-family: var(--mono); }
.meter-row .m-val { font-family: var(--mono); font-size: 0.78rem; color: var(--amber); flex: 0 0 44px; text-align: right; }

.code-line { display: block; padding: 1px 8px; border-radius: 6px; white-space: pre; }
.code-line.lit {
  background: rgba(134, 239, 172, 0.12);
  box-shadow: inset 2px 0 0 var(--green);
}

/* ---------------- lab 3: twins & epigenetics ---------------- */

.twins-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .twins-grid { grid-template-columns: 1fr; } }
.twin-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
}
.twin-card.env-b { border-color: rgba(240, 171, 252, 0.35); }
.twin-tag {
  align-self: flex-start; font-family: var(--mono); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.1em; padding: 4px 12px; border-radius: 999px;
}
.twin-tag.a { color: var(--cyan); background: var(--cyan-dim); border: 1px solid rgba(103,232,249,.3); }
.twin-tag.b { color: var(--magenta); background: rgba(240,171,252,.1); border: 1px solid rgba(240,171,252,.3); }
.twin-stage { position: relative; min-height: 210px; display: flex; align-items: center; justify-content: center; }
.twin-stage .creature-holder { width: min(240px, 80%); }

.methyl {
  position: absolute; top: 10px; right: 12px; display: flex; flex-direction: column; gap: 6px;
}
.methyl-tag {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 700;
  color: #04121f; background: var(--magenta);
  padding: 3px 9px; border-radius: 999px;
  box-shadow: 0 0 14px rgba(240, 171, 252, 0.55);
  animation: tagpop 0.3s ease;
}
@keyframes tagpop { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.env-list { display: flex; flex-direction: column; gap: 10px; }
.expr-list {
  font-family: var(--mono); font-size: 0.8rem; color: var(--muted);
  line-height: 1.95;
}
.expr-list .arrow { color: var(--magenta); font-weight: 700; }
.expr-list .k { color: var(--cyan); }
.expr-list .v { color: var(--amber); }
.expr-list .skipped { color: var(--faint); text-decoration: line-through; }

.terminal-card {
  background: #0b0a17;
  border: 1px solid rgba(134, 239, 172, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.terminal-card .thead {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: rgba(134, 239, 172, 0.05);
  border-bottom: 1px solid rgba(134, 239, 172, 0.15);
}
.terminal-card .thead .tname {
  font-family: var(--mono); font-size: 0.78rem; color: var(--green);
}
.terminal-card pre {
  font-family: var(--mono); font-size: 0.85rem; line-height: 1.75;
  padding: 16px 18px; color: #b9f5c9; overflow-x: auto;
}
.tok-envkey { color: var(--cyan); }
.tok-envval { color: var(--amber); }

/* ---------------- landing ---------------- */

.truth-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.truth-table th {
  text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-2);
  color: var(--faint); font-weight: 600; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.truth-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.truth-table tr:last-child td { border-bottom: none; }
.truth-table td:first-child { color: var(--magenta); font-family: var(--mono); white-space: nowrap; }
.truth-table td.mid { color: var(--muted); }
.truth-table td:last-child { color: var(--cyan); font-family: var(--mono); white-space: nowrap; }
@media (max-width: 560px) {
  .truth-table th:nth-child(2), .truth-table td.mid { display: none; }
}

.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px;
  align-items: center;
  padding: clamp(20px, 4vw, 44px) 0 30px;
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero .stage { order: -1; } }

.lab-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
@media (max-width: 860px) { .lab-cards { grid-template-columns: 1fr; } }
.lab-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.lab-card:hover {
  transform: translateY(-4px); text-decoration: none;
  border-color: rgba(103, 232, 249, 0.4);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(103, 232, 249, 0.12);
}
.lab-card .num {
  font-family: var(--mono); font-weight: 700; font-size: 0.78rem; color: var(--cyan);
  letter-spacing: 0.12em;
}
.lab-card h3 { font-size: 1.2rem; }
.lab-card p { color: var(--muted); font-size: 0.9rem; }
.lab-card .go { margin-top: auto; color: var(--cyan); font-weight: 600; font-size: 0.88rem; }

.truthbar {
  margin-top: 40px; padding: 18px 22px;
  border: 1px dashed var(--line-2); border-radius: var(--radius);
  text-align: center; color: var(--muted); font-size: 0.92rem;
}
.truthbar .mono { font-family: var(--mono); color: var(--cyan); }

footer.site {
  border-top: 1px solid var(--line); margin-top: 70px;
  padding: 30px clamp(18px, 4vw, 44px) 44px;
  color: var(--faint); font-size: 0.84rem;
  text-align: center;
}
footer.site .heart { color: var(--magenta); }

/* ---------------- utils ---------------- */

.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spread { justify-content: space-between; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.small { font-size: 0.82rem; }

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #101a2e; border: 1px solid var(--line-2); color: var(--text);
  font-size: 0.88rem; padding: 11px 20px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: all 0.25s ease; z-index: 100;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
