/* GLEEB. The app is the microscope: the brand's own SEM plates, a HUD frame, callouts pinned to the
   specimen, one sheet for anything that signs, and a living layer drawn with the brand's sprites. */

:root {
  --field: #000;
  --organism: #22d3ee;
  --organism-shade: #0ea5e9;
  --hypha: #ff2fb3;
  --text: #fff;
  --text-2: #b8c3d4;
  --text-3: #7d8aa0;
  --rule: #334155;
  --rule-soft: #1b2433;
  --panel: rgba(0, 0, 0, .86);
  --warn: #f5c451;
  --bad: #ff5a6e;
  --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --top: 56px;
  --bottom: 68px;
  --stage: 300px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; height: 100dvh; overflow: hidden; background: var(--field); color: var(--text); font: 400 16px/24px var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--organism); color: #000; }
:focus-visible { outline: 2px solid var(--organism); outline-offset: 2px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.caps { font-family: var(--mono); font-size: 12px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; }
.dim { color: var(--text-2); }
.faint { color: var(--text-3); }
.cyan { color: var(--organism); }
.pink { color: var(--hypha); }
.white { color: #fff; }
.sm { font-size: 13px; line-height: 18px; }
.sm0 { margin: 0; font-size: 14px; line-height: 20px; }
.small { font-size: 13px; line-height: 18px; margin: 4px 0 10px; }
.mt { margin-top: 12px; }
.mt8 { margin-top: 8px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* -- field: plate, living layer, scan -------------------------------------------------------- */

#plate { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #000; }
#plate .layer {
  position: absolute; background-size: 100% 100%; background-repeat: no-repeat;
  opacity: 0; transform: scale(1.18); filter: blur(8px);
  transition: opacity .6s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1), filter .8s ease;
}
#plate .layer.on { opacity: 1; transform: none; filter: none; }
#plate .layer.off { opacity: 0; transform: scale(.88); filter: blur(4px); }
#alive { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
/* one plate per pool on SPECIMEN and SLIDE: a focus-pull reveal from the organism, verdict tint on it only */
#plate .layer .tint { position: absolute; inset: 0; background-size: 100% 100%; opacity: 0; transition: opacity .6s ease, filter .6s ease; }
#plate .layer[data-state='candidate'] .tint { opacity: 1; filter: saturate(.06) brightness(1.3); }
#plate .layer[data-state='win'] .tint { opacity: 1; filter: hue-rotate(128deg) saturate(1.5) brightness(1.05); }
#plate .layer.swap { opacity: 1; transform: none; filter: brightness(1.35) contrast(1.08); clip-path: circle(0% at var(--cx) var(--cy)); transition: clip-path .9s cubic-bezier(.65, 0, .25, 1), filter 1s ease; }
#plate .layer.swap.on { clip-path: circle(150% at var(--cx) var(--cy)); filter: none; }
@media (prefers-reduced-motion: reduce) { #plate .layer.swap, #plate .layer.swap.on { transition: none; clip-path: none; filter: none; } }

.scan { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.scan::before {
  content: ''; position: absolute; left: 0; right: 0; top: -140px; height: 140px;
  background: linear-gradient(rgba(120, 170, 255, 0), rgba(120, 170, 255, .025) 75%, rgba(210, 238, 255, .09) 98%, rgba(210, 238, 255, 0));
  mix-blend-mode: screen;
  animation: scan 9s linear infinite;
}
@keyframes scan { to { transform: translateY(calc(100dvh + 140px)); } }
#leaders { position: fixed; inset: 0; z-index: 4; pointer-events: none; width: 100%; height: 100%; }
.path { margin: 12px 0 0; font-size: 14px; line-height: 20px; color: #fff; }
.path i { font-style: normal; color: var(--hypha); padding: 0 4px; }
#leaders line { stroke: rgba(255, 255, 255, .6); stroke-width: 1; }
#leaders circle { fill: none; stroke: #fff; stroke-width: 1; }

/* -- HUD ---------------------------------------------------------------------------------------- */

.hud-top {
  position: fixed; top: 0; left: 0; right: 0; height: var(--top); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px;
  background: repeating-linear-gradient(to bottom, rgba(30, 58, 255, .34) 0 1px, transparent 1px 7px) left 0 top 9px / 100% 38px no-repeat, linear-gradient(#000, rgba(0, 0, 0, .8));
}
.hud-top .tag { background: #000; padding: 4px 8px; }
.hud-left, .hud-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kv, .mag { font-family: var(--mono); font-size: 15px; letter-spacing: .08em; }
.status { display: inline-flex; align-items: center; gap: 6px; }
.status i { width: 7px; height: 7px; background: var(--text-3); display: inline-block; }
.status[data-s='prelaunch'] i { background: var(--hypha); box-shadow: 0 0 8px var(--hypha); animation: blink 2s steps(1) infinite; }
.status[data-s='live'] i { background: var(--organism); box-shadow: 0 0 8px var(--organism); }
.status[data-s='stale'] i { background: var(--warn); }
.status[data-s='error'] i { background: var(--bad); }
@keyframes blink { 50% { opacity: .35; } }
.phase {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 8px;
  background: #000; border: 1px solid rgba(255, 47, 179, .55); cursor: pointer;
  font: 400 12px/1 var(--mono); letter-spacing: .05em; white-space: nowrap;
}
.phase img { display: block; }
.phase b { color: var(--hypha); }
.phase em { font-style: normal; color: var(--text-2); }
.phase u { text-underline-offset: 3px; }
.phase:hover { border-color: var(--hypha); }
.wallet { height: 32px; padding: 0 12px; background: #000; border: 1px solid #fff; cursor: pointer; font: 400 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.wallet:hover { background: #fff; color: #000; }

.hud-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--bottom); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 24px;
  background: linear-gradient(rgba(0, 0, 0, 0), #000 40%);
}
.lockup { display: flex; align-items: flex-end; gap: 18px; background: #000; padding: 6px 10px 6px 0; }
.lockup b { font: 700 22px/1 var(--mono); letter-spacing: .14em; }
.scalebar { display: grid; justify-items: center; gap: 2px; font: 400 12px/1 var(--mono); }
.scalebar i { display: block; width: 92px; height: 9px; border: 2px solid #fff; border-top: 0; border-bottom: 0; position: relative; }
.scalebar i::after { content: ''; position: absolute; left: 0; right: 0; top: 3px; height: 2px; background: #fff; }
.turret { display: flex; height: 100%; }
.turret a { display: grid; align-content: center; gap: 2px; min-width: 128px; padding: 0 16px; text-decoration: none; border-top: 2px solid transparent; color: var(--text-2); }
.turret a b { font: 700 13px/16px var(--mono); letter-spacing: .08em; }
.turret a small { font: 400 12px/15px var(--sans); color: var(--text-3); }
.turret a:hover { color: #fff; }
.turret a[aria-current='page'] { color: #fff; border-top-color: #fff; background: linear-gradient(rgba(34, 211, 238, .1), transparent); }
.turret a[aria-current='page'] small { color: var(--organism); }

/* -- view, panels ------------------------------------------------------------------------------- */

#view { position: fixed; top: var(--top); bottom: var(--bottom); left: 0; right: 0; z-index: 10; pointer-events: none; }
#view > * { pointer-events: none; }
.page { position: absolute; inset: 0; }
.record { display: contents; }
.page .page-title, .page .callout, .page .c-action, .page .steps3, .page .doc, .page .tags .slab-tag, .page .hostlist, .page .eplist, .page .overlay .node { pointer-events: auto; }
.page-title { position: absolute; left: 32px; top: 20px; background: rgba(0, 0, 0, .8); padding: 6px 10px 8px 0; box-shadow: -32px 0 0 rgba(0, 0, 0, .8); }
.page-title h1 { margin: 0; font: 700 20px/28px var(--mono); letter-spacing: .08em; }
.page-title p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; line-height: 20px; max-width: 380px; }
.stage-lockup, .prestrip { display: none; }

.callout { position: absolute; background: var(--panel); border: 1px solid var(--rule); padding: 14px 16px 16px; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.callout > .caps:first-child { color: var(--text-2); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.big { font: 400 32px/38px var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mid { font: 400 22px/28px var(--mono); }
.unit { font-size: 12px; color: var(--text-2); margin-left: 8px; letter-spacing: .06em; }
.note { font-size: 13px; line-height: 18px; color: var(--text-2); margin: 8px 0 0; }
.note b { color: #fff; font-weight: 600; }
.rows { display: grid; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule-soft); }
.row:first-child { border-top: 0; }
.row > span:first-child { font: 400 12px/16px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); }
.row > span:last-child { font: 400 15px/20px var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.row a, .tbl a, .doc a, .sm a { color: #fff; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.chip { display: inline-block; font: 400 11px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px; border: 1px solid var(--rule); color: var(--text-2); white-space: nowrap; }
.chip.cyan { border-color: var(--organism); color: var(--organism); }
.chip.pink { border-color: var(--hypha); color: var(--hypha); }
.chip.white { border-color: #fff; color: #fff; }

.hint {
  position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 6px; padding: 0; vertical-align: 1px;
  border: 1px solid var(--rule); border-radius: 50%; background: #000; color: var(--text-2); cursor: help;
  font: 700 10px/1 var(--mono); letter-spacing: 0; text-transform: none;
}
.hint:hover, .hint:focus-visible { border-color: var(--organism); color: var(--organism); }
.hint:hover::after, .hint:focus::after {
  content: attr(data-tip); position: absolute; z-index: 80; bottom: calc(100% + 8px); left: -12px; width: 260px;
  background: #050a12; border: 1px solid var(--organism-shade); color: #e3eaf4; padding: 9px 11px; text-align: left; white-space: normal;
  font: 400 13px/18px var(--sans); letter-spacing: 0; text-transform: none;
}
.c-pay .hint:hover::after, .c-pay .hint:focus::after, .c-dossier .hint:hover::after, .c-dossier .hint:focus::after,
.c-record .hint:hover::after, .c-record .hint:focus::after, .c-compare .hint:hover::after, .c-compare .hint:focus::after { left: auto; right: -12px; }
.c-dossier .hint:hover::after, .c-dossier .hint:focus::after, .c-record .hint:hover::after, .c-record .hint:focus::after { bottom: auto; top: calc(100% + 8px); }
.sheet .hint:hover::after, .sheet .hint:focus::after { bottom: auto; top: calc(100% + 8px); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 20px; cursor: pointer; border: 1px solid #fff; background: #000; font: 700 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.btn:hover { background: #fff; color: #000; }
.btn.primary { background: var(--organism); border-color: var(--organism); color: #000; }
.btn.primary:hover { background: #fff; border-color: #fff; }
.btn.burn { border-color: var(--hypha); color: var(--hypha); }
.btn.burn:hover { background: var(--hypha); color: #000; }
.btn[disabled] { cursor: not-allowed; border-color: var(--rule); color: var(--text-3); background: #000; }
.btn.block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: inherit; font: inherit; }
.follow { color: #fff; text-underline-offset: 3px; }
.infoline { border-left: 2px solid var(--organism-shade); padding: 6px 0 6px 12px; font-size: 14px; line-height: 20px; color: var(--text-2); margin: 0 0 16px; }
.warnline { border-left: 2px solid var(--hypha); padding: 6px 0 6px 12px; font-size: 14px; line-height: 20px; color: var(--text-2); margin: 16px 0 0; }
.warnline b { color: var(--hypha); font-family: var(--mono); font-weight: 700; letter-spacing: .05em; }

/* -- 1 specimen --------------------------------------------------------------------------------- */
.page-specimen .c-host { left: 32px; top: 128px; width: 340px; }
.page-specimen .c-pay { right: 32px; top: 24px; width: 340px; }
.page-specimen .c-compare { right: 32px; top: 286px; width: 340px; }
.obs-switch { display: flex; align-items: center; gap: 6px; margin: 2px 0 12px; }
.obs-switch .arrow { flex: 0 0 30px; height: 32px; background: #000; border: 1px solid var(--rule); cursor: pointer; font-family: var(--mono); }
.obs-switch .arrow:hover { border-color: #fff; }
.obs-chips { display: flex; flex: 1; gap: 3px; justify-content: space-between; }
.obs-chips button { flex: 1; min-width: 0; height: 32px; padding: 0; background: #000; border: 1px solid var(--rule); cursor: pointer; font: 700 11px/1 var(--mono); color: var(--text-2); }
.obs-chips button:hover { border-color: #fff; color: #fff; }
.obs-chips button.cur { border-color: var(--organism); color: var(--organism); }
.obs-chips button.on { background: #fff; border-color: #fff; color: #000; }
.obs-chips button.cur.on { background: var(--organism); border-color: var(--organism); color: #000; }
.obs-name { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; font-family: var(--mono); }
.cmp { display: grid; gap: 9px; margin: 12px 0 6px; }
.cmp-row { display: grid; grid-template-columns: 52px 1fr 54px; gap: 10px; align-items: center; font: 400 12px/16px var(--mono); }
.cmp-row .num { color: #fff; }
.bar { position: relative; height: 10px; background: #0a121d; border: 1px solid var(--rule-soft); }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--text-2); transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.cmp-row.vault .bar i { background: var(--organism); box-shadow: 0 0 8px rgba(34, 211, 238, .6); }
.cmp-row.obs .bar i { background: #fff; }
.cmp-row.obs.win .bar i { box-shadow: 0 0 10px rgba(255, 255, 255, .8); }
.bar b { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--hypha); box-shadow: 0 0 6px var(--hypha); }
.cmp-key { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.cmp-key i { flex: 0 0 2px; height: 14px; background: var(--hypha); }
.cmp-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); font: 400 13px/18px var(--mono); }
.cmp-foot a { color: #fff; text-underline-offset: 3px; white-space: nowrap; }
.page-specimen .c-action { position: absolute; left: 32px; bottom: 24px; display: grid; justify-items: start; }
.page-specimen .c-action .btn { min-width: 260px; justify-content: space-between; box-shadow: 0 0 0 6px rgba(34, 211, 238, .12); animation: halo 3s ease-in-out infinite; }
.page-specimen .c-action .note { text-shadow: 0 0 6px #000, 0 0 12px #000; color: #dfe6f1; }
@keyframes halo { 50% { box-shadow: 0 0 0 12px rgba(34, 211, 238, 0); } }
.steps3 {
  position: absolute; right: 32px; bottom: 24px; display: flex; margin: 0; padding: 0; list-style: none;
  background: var(--panel); border: 1px solid var(--rule); backdrop-filter: blur(3px);
}
.steps3 li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-left: 1px solid var(--rule-soft); max-width: 230px; font-size: 14px; line-height: 19px; color: var(--text-2); }
.steps3 li:first-child { border-left: 0; }
.steps3 b { font: 700 13px/1 var(--mono); color: var(--organism); }
.steps3 em { font-style: normal; color: #fff; }

/* -- 2 slide ------------------------------------------------------------------------------------ */
.page-slide .page-title { left: auto; right: 32px; top: 12px; width: 344px; box-shadow: none; padding-left: 0; }
.page-slide .c-dossier { right: 32px; top: 92px; width: 344px; max-height: calc(100% - 92px - 236px); overflow-y: auto; }
.page-slide .c-legend { right: 32px; bottom: 16px; width: 344px; }
.page-slide .hostlist { display: none; }
.pay { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.pay .mono { font-size: 30px; line-height: 34px; color: var(--organism); }
.pay small { font-size: 13px; color: var(--text-2); }
.legend { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 7px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 17px; color: var(--text-2); }
.legend b { color: #fff; }
.legend i { flex: 0 0 26px; height: 10px; display: block; }
.lg-pay { border: 1px solid #fff; height: 14px !important; }
.lg-hypha { background: var(--hypha); border-radius: 5px; }
.lg-sweep { background: linear-gradient(90deg, rgba(34, 211, 238, 0), rgba(34, 211, 238, .7)); }
.lg-next { border-top: 2px dashed #fff; height: 0 !important; }
.tags { position: fixed; inset: 0; z-index: 11; pointer-events: none; }
.slab-tag {
  position: fixed; transform: translate(-50%, -50%); pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: #000; border: 0; padding: 3px 8px 3px 3px; cursor: pointer; font: 400 12px/16px var(--mono); letter-spacing: .04em; color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
}
.slab-tag b { background: #000; color: #fff; padding: 1px 4px; font-weight: 700; border: 1px solid #fff; }
.slab-tag .val { color: var(--organism); }
.slab-tag em { font-style: normal; font-size: 10px; letter-spacing: .08em; border: 1px solid #fff; padding: 0 4px; }
.slab-tag em.cyan { border-color: var(--organism); color: var(--organism); }
.slab-tag:hover, .slab-tag.on { box-shadow: 0 0 0 1px #fff; }
.slab-tag.cur b { background: var(--organism); color: #000; border-color: var(--organism); }

.overlay { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none !important; overflow: visible; }
.sweep { transform-box: view-box; animation: spin 7s linear infinite; }
.sweep-edge { stroke: rgba(34, 211, 238, .55); stroke-width: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.bracket { fill: none; stroke: #fff; stroke-width: 2; }
.nextpath { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 7 7; animation: march 1.2s linear infinite; opacity: .85; }
@keyframes march { to { stroke-dashoffset: -14; } }
.hypha .h-body, .hypha .h-speck { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: grow 1.8s cubic-bezier(.45, .05, .25, 1) .2s forwards; }
.hypha .h-body { stroke: var(--hypha); stroke-width: var(--w); filter: drop-shadow(0 0 6px rgba(255, 47, 179, .5)); }
.page-slide .hypha .h-speck { stroke: url(#speck); stroke-width: calc(var(--w) * .7); }
.page-trail .hypha .h-speck { stroke: url(#speck2); stroke-width: calc(var(--w) * .7); }
.hypha .h-branch { fill: none; stroke: var(--hypha); stroke-width: calc(var(--w) * .42); stroke-linecap: round; opacity: 0; animation: fade .5s 1.8s forwards; }
.hypha .h-spore { fill: var(--organism); stroke: #064e63; stroke-width: 2; opacity: 0; animation: fade .5s 1.9s forwards; }
@keyframes grow { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.overlay.static .h-body, .overlay.static .h-speck { animation: none; stroke-dashoffset: 0; }
.overlay.static .h-branch, .overlay.static .h-spore, .overlay.static .node { animation: none; opacity: 1; }

/* -- 3 culture ---------------------------------------------------------------------------------- */
.page-culture .c-cells { left: 32px; top: 120px; width: 340px; }
.page-culture .c-queue { left: 32px; top: 370px; width: 340px; }
.page-culture .c-actions { right: 32px; top: 24px; width: 400px; }
.act {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; width: 100%; text-align: left; cursor: pointer;
  background: #000; border: 1px solid var(--rule); padding: 14px 14px 14px 16px; margin-top: 10px;
}
.act b { font: 700 14px/18px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding-right: 76px; }
.act small { grid-column: 1; font-size: 13px; line-height: 18px; color: var(--text-2); }
.act i { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-family: var(--mono); }
.act .chip { position: absolute; right: 40px; top: 14px; }
.act:hover { border-color: #fff; }
.act.main { border-color: var(--organism); background: linear-gradient(90deg, rgba(34, 211, 238, .16), rgba(0, 0, 0, .9)); }
.act.main b { color: var(--organism); }

/* -- 4 trail ------------------------------------------------------------------------------------ */
.page-trail .c-summary { left: 32px; bottom: 24px; width: 380px; }
.page-trail .c-record { right: 0; top: 0; bottom: 0; width: 392px; border-width: 0 0 0 1px; overflow-y: auto; padding: 22px 28px; }
.page-trail .eplist { display: none; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duo small { display: block; font-size: 12px; line-height: 16px; color: var(--text-2); margin-bottom: 4px; }
.duo .mono { font-size: 26px; line-height: 30px; }
.result { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.result .mono { font-size: 28px; line-height: 32px; }
.result.up .mono { color: var(--organism); }
.result.down .mono { color: var(--hypha); }
.result small { color: var(--text-2); font-size: 13px; }
.pager { display: flex; gap: 8px; }
.pager .btn { padding: 0 14px; }
.pager .grow { flex: 1; }
.overlay .node { cursor: pointer; opacity: 0; animation: fade .45s forwards; }
.overlay .hit { fill: transparent; }
.overlay .dot { fill: #041018; stroke: var(--organism); stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(34, 211, 238, .9)); }
.overlay .node.on .dot { fill: var(--organism); }
.overlay .node.thin .dot { stroke-dasharray: 3 3; }
.overlay .lbl { fill: #fff; font: 400 11px var(--mono); letter-spacing: .05em; paint-order: stroke; stroke: #000; stroke-width: 4px; }

/* -- 5 protocol --------------------------------------------------------------------------------- */
.page-protocol .doc { position: absolute; left: 0; top: 0; bottom: 0; width: min(720px, 52vw); overflow-y: auto; padding: 100px 56px 64px 64px; background: linear-gradient(90deg, rgba(0, 0, 0, .96) 0 86%, rgba(0, 0, 0, 0)); }
.page-protocol .page-title { z-index: 2; }
.page-protocol .c-deploy { right: 32px; top: 24px; width: 300px; }
.doc section { margin: 0 0 40px; max-width: 600px; }
.doc h2 { display: flex; gap: 16px; align-items: baseline; margin: 0 0 12px; font: 700 18px/24px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.doc h2 span { color: var(--text-2); font-weight: 400; }
.doc p { margin: 0 0 12px; color: #dfe6f1; }
.doc p b { color: #fff; }
.tldr { border-left: 2px solid var(--organism); padding-left: 18px; }
.faq details { border-top: 1px solid var(--rule-soft); }
.faq details:last-child { border-bottom: 1px solid var(--rule-soft); }
.faq summary { cursor: pointer; padding: 12px 0; font: 700 14px/20px var(--mono); letter-spacing: .03em; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--organism); }
.faq details[open] summary::after { content: '–'; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--text-2); }
.formula { margin: 14px 0; padding: 14px 16px; border: 1px solid var(--rule); background: #03060b; font: 400 13px/20px var(--mono); color: #fff; white-space: pre-wrap; overflow-x: auto; }
.steps, .risks { margin: 0; padding: 0 0 0 20px; color: #dfe6f1; }
.steps li, .risks li { margin: 0 0 10px; padding-left: 4px; }
.steps li::marker { font-family: var(--mono); color: var(--organism); }
.risks li::marker { color: var(--hypha); }

/* -- sheet -------------------------------------------------------------------------------------- */
.sheet { position: fixed; top: var(--top); bottom: var(--bottom); right: 0; width: 480px; z-index: 30; background: #000; border-left: 1px solid var(--rule); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .7, .2, 1); visibility: hidden; }
.sheet.open { transform: none; visibility: visible; }
.sheet header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.sheet header h2 { margin: 0; font: 700 14px/20px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.x { width: 36px; height: 36px; background: #000; border: 1px solid var(--rule); cursor: pointer; font-family: var(--mono); }
.x:hover { border-color: #fff; }
.sheet .body { overflow-y: auto; padding: 20px; }
.sheet .body p { margin: 0 0 14px; font-size: 15px; line-height: 22px; }
.sheet footer { padding: 16px 20px; border-top: 1px solid var(--rule); display: grid; gap: 8px; }
.how { margin: 0 0 18px; padding: 0 0 0 22px; font-size: 15px; line-height: 22px; color: var(--text-2); }
.how li { margin-bottom: 8px; }
.how li::marker { font-family: var(--mono); color: var(--organism); }
.how b { color: #fff; }
.field { display: grid; gap: 6px; margin: 0 0 16px; }
.field label { font: 400 12px/16px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); display: flex; justify-content: space-between; gap: 8px; }
.amount { display: flex; border: 1px solid var(--rule); background: #000; }
.amount:focus-within { border-color: var(--organism); }
.amount input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 12px 14px; font: 400 22px/28px var(--mono); }
.amount span { display: grid; place-items: center; padding: 0 14px; font: 400 12px/1 var(--mono); color: var(--text-2); border-left: 1px solid var(--rule); }
.segs { display: flex; gap: 8px; }
.seg { flex: 1; height: 44px; background: #000; border: 1px solid var(--rule); cursor: pointer; font: 400 14px/1 var(--mono); }
.seg.on, .seg:hover { border-color: #fff; }
.sheet-h { margin: 24px 0 4px; color: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font: 400 11px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); padding: 6px 0; border-bottom: 1px solid var(--rule); }
.tbl td { padding: 8px 0; border-bottom: 1px solid var(--rule-soft); }
.tbl .num { text-align: right; }

/* -- guide -------------------------------------------------------------------------------------- */
.guide { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .72); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: fade .25s both; }
.guide-card { width: min(600px, 100%); background: #000; border: 1px solid var(--rule); }
.guide-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 18px; color: var(--hypha); background: repeating-linear-gradient(to bottom, rgba(30, 58, 255, .3) 0 1px, transparent 1px 7px); border-bottom: 1px solid var(--rule); }
.guide-body { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; padding: 26px 26px 10px; }
.guide-creature { width: 150px; height: auto; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(34, 211, 238, .35)); }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
.guide-k { color: var(--organism); font-size: 13px; }
.guide h2 { margin: 4px 0 10px; font: 700 22px/28px var(--mono); letter-spacing: .02em; }
.guide p { margin: 0; color: #dfe6f1; font-size: 16px; line-height: 24px; }
.guide-dots { display: flex; gap: 6px; padding: 12px 26px 0 200px; }
.guide-dots i { width: 22px; height: 3px; background: var(--rule); }
.guide-dots i.on { background: var(--organism); }
.guide-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 18px 26px 24px; }

/* -- toasts, misc ------------------------------------------------------------------------------- */
#toasts { position: fixed; top: calc(var(--top) + 12px); left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(520px, calc(100vw - 32px)); }
.toast { background: #000; border: 1px solid var(--rule); padding: 10px 14px; font-size: 14px; line-height: 20px; }
.toast b { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; margin-right: 8px; }
.toast.err { border-color: var(--bad); }
.toast.err b { color: var(--bad); }
.skip { position: fixed; left: 8px; top: -60px; z-index: 99; background: #fff; color: #000; padding: 8px 12px; }
.skip:focus { top: 8px; }

@media (min-width: 861px) and (max-height: 820px) {
  /* short laptop screens: the dossier and its Boost button come first, the legend's "?" tips remain */
  .page-slide .c-legend { display: none; }
  .page-slide .c-dossier { max-height: calc(100% - 92px - 16px); }
}
@media (min-width: 861px) and (max-height: 800px) {
  .page-specimen .c-compare { top: 262px; }
  .page-specimen .steps3 { display: none; }
  .page-specimen .c-host { top: 112px; }
  .page-culture .c-queue { top: 340px; }
  .steps3 li { padding: 9px 14px; }
}
@media (min-width: 861px) and (max-width: 1240px) {
  .phase em { display: none; }
  .steps3 { display: none; }
  .page-specimen .c-host, .page-culture .c-cells, .page-culture .c-queue { width: 300px; }
  .page-specimen .c-pay, .page-specimen .c-compare { width: 300px; }
  .turret a { min-width: 104px; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .scan::before, .sweep, .nextpath, .status i, .page-specimen .c-action .btn, .guide-creature { animation: none !important; }
  #plate .layer { transition: opacity .2s; transform: none; filter: none; }
  .hypha .h-body, .hypha .h-speck { animation: none; stroke-dashoffset: 0; }
  .hypha .h-branch, .hypha .h-spore, .overlay .node { animation: none; opacity: 1; }
}

/* -- phone -------------------------------------------------------------------------------------- */
@media (max-width: 860px) {
  :root { --bottom: 64px; }
  .hud-top { padding: 0 12px; gap: 8px; }
  .phase, .hud-left .chain-name, .hud-left .kv { display: none; }
  .hud-top .tag, .wallet { white-space: nowrap; }
  .kv, .mag { font-size: 13px; }
  .wallet { padding: 0 10px; font-size: 11px; }
  .hud-bottom { height: calc(var(--bottom) + env(safe-area-inset-bottom)); padding: 0 0 env(safe-area-inset-bottom); background: #000; border-top: 1px solid var(--rule-soft); }
  .hud-bottom .lockup { display: none; }
  .turret { width: 100%; }
  .turret a { flex: 1; min-width: 0; padding: 0 2px; justify-items: center; text-align: center; min-height: 44px; }
  .turret a b { font-size: 10px; letter-spacing: .02em; }
  .turret a small { font-size: 11px; line-height: 13px; }

  #view { bottom: calc(var(--bottom) + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; pointer-events: auto; }
  #view > * { pointer-events: auto; }
  #leaders { display: none; }
  .page { position: relative; inset: auto; padding-top: var(--stage); }
  .page-specimen, .page-culture, .page-trail { --stage: 300px; }
  .page-slide { --stage: 330px; }
  .page-protocol { --stage: 150px; }
  .record { display: flex; flex-direction: column; background: #000; padding: 0 16px 32px; min-height: calc(100dvh - var(--top) - var(--bottom) - var(--stage)); }
  .page-title { left: 12px; top: 10px; max-width: calc(100% - 24px); padding: 4px 8px; box-shadow: none; }
  .page-title h1 { font-size: 17px; line-height: 22px; }
  .page-title p { font-size: 12px; line-height: 16px; max-width: 250px; }
  .stage-lockup { display: flex; position: absolute; left: 12px; top: calc(var(--stage) - 42px); padding: 4px 8px; }
  .stage-lockup b { font-size: 16px; }
  .prestrip { display: block; margin: 0 -16px; padding: 10px 16px; font-size: 13px; line-height: 19px; color: var(--text-2); border-bottom: 1px solid var(--rule-soft); background: linear-gradient(90deg, rgba(255, 47, 179, .14), transparent 70%); }
  .prestrip b { color: var(--hypha); font-family: var(--mono); }
  .prestrip .linkbtn, .prestrip .follow { color: #fff; }
  .callout, .page-specimen .c-action, .steps3, .page-trail .c-record, .page-protocol .doc {
    position: static; width: auto !important; max-height: none; transform: none; border: 0; border-bottom: 1px solid var(--rule-soft);
    padding: 16px 0; background: #000; backdrop-filter: none; overflow: visible;
  }
  .big { font-size: 26px; line-height: 32px; }
  .hint:hover::after, .hint:focus::after { width: min(260px, 70vw); left: auto !important; right: -8px !important; }

  .page-specimen .c-host { order: 1; }
  .page-specimen .c-action { order: 2; display: grid; }
  .page-specimen .c-action .btn { width: 100%; }
  .page-specimen .c-compare { order: 3; }
  .page-specimen .steps3 { order: 4; display: grid; }
  .steps3 li { border-left: 0; border-top: 1px solid var(--rule-soft); max-width: none; padding: 10px 0; }
  .page-specimen .c-pay { order: 5; }
  .obs-chips button, .obs-switch .arrow { height: 40px; }

  .page-slide .page-title { left: 12px; right: auto; width: auto; top: calc(var(--stage) - 44px); }
  .page-slide .page-title p { display: none; }
  .page-slide .hostlist { display: grid; order: 1; }
  .page-slide .c-dossier { order: 2; }
  .page-slide .c-legend { order: 3; }
  .hostrow { display: grid; grid-template-columns: 30px 1fr auto 70px; gap: 8px; align-items: center; min-height: 48px; padding: 0 4px; background: #000; border: 0; border-bottom: 1px solid var(--rule-soft); cursor: pointer; text-align: left; }
  .hostrow .num { color: var(--organism); }
  .hostrow .flag { text-align: right; }
  .hostrow.on { background: #07121c; box-shadow: inset 2px 0 0 var(--organism); }
  .slab-tag { padding: 0; box-shadow: none; min-width: 44px; min-height: 44px; justify-content: center; background: none; }
  .slab-tag .sym, .slab-tag .val, .slab-tag em { display: none; }
  .slab-tag b { background: #000; }
  .slab-tag.on b { outline: 2px solid var(--organism); outline-offset: 2px; }
  .overlay, .tags { height: calc(var(--top) + var(--stage)) !important; bottom: auto; }
  .tags { overflow: hidden; }
  body.scrolled .tags, body.scrolled .overlay, body.sheet-open .tags { opacity: 0; pointer-events: none; transition: opacity .2s; }

  .page-culture .c-cells { order: 2; }
  .page-culture .c-actions { order: 1; }
  .page-culture .c-queue { order: 3; }
  .act b { padding-right: 0; }
  .act .chip { position: static; grid-column: 1; justify-self: start; margin-top: 4px; }
  .page-trail .c-summary { order: 1; }
  .page-trail .c-record { order: 2; }
  .page-trail .eplist { display: grid; order: 3; padding-top: 8px; }
  .eprow { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; align-items: center; min-height: 46px; padding: 0 4px; background: #000; border: 0; border-bottom: 1px solid var(--rule-soft); cursor: pointer; text-align: left; }
  .eprow.on { background: #07121c; box-shadow: inset 2px 0 0 var(--organism); }
  .page-protocol .c-deploy { order: 1; }
  .page-protocol .doc { order: 2; padding-top: 20px; }
  .sheet { top: var(--top); bottom: 0; width: 100%; border-left: 0; z-index: 45; }
  .guide-body { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 20px 18px 6px; gap: 12px; }
  .guide-creature { width: 110px; }
  .guide-dots { justify-content: center; padding: 10px 0 0; }
  .guide-foot { padding: 16px 18px 20px; }
  .guide-foot .btn { flex: 1; }
}

/* pre-launch trail: an empty, waiting rift and this week's live ranking */
.overlay .ghost { fill: none; stroke: rgba(255, 47, 179, .5); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 10; animation: march 2.6s linear infinite reverse; }
.overlay .seed .dot { fill: #041018; stroke: var(--hypha); stroke-width: 2.5; filter: drop-shadow(0 0 8px rgba(255, 47, 179, .8)); }
.overlay .seed-halo { fill: none; stroke: rgba(255, 47, 179, .45); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: seed 2.4s ease-out infinite; }
@keyframes seed { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.ranking { display: grid; margin-top: 10px; }
.rank-row { display: grid; grid-template-columns: 28px 86px 1fr 36px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--rule-soft); font: 400 13px/18px var(--mono); }
.rank-row .bar i { background: #fff; }
.rank-row.top .bar i { background: var(--organism); box-shadow: 0 0 8px rgba(34, 211, 238, .6); }
.rank-row.top span:nth-child(2) { color: var(--organism); }
@media (prefers-reduced-motion: reduce) { .overlay .ghost, .overlay .seed-halo { animation: none; } }

/* -- get in early ------------------------------------------------------------------------------ */
.xg { width: 16px; height: 16px; flex: 0 0 auto; }
.early-cta { gap: 12px; min-width: 310px; justify-content: space-between; }
.early-cta span:first-of-type { flex: 1; text-align: left; }
.early-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 14px 0 18px; }
.early-steps li { flex: 1; border-top: 2px solid var(--rule); padding-top: 7px; font: 400 12px/16px var(--mono); color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; }
.early-steps li b { color: inherit; margin-right: 6px; }
.early-steps li.active { border-color: #fff; color: #fff; }
.early-steps li.done { border-color: var(--organism); color: var(--organism); }
.amount button { background: #000; border: 0; border-left: 1px solid var(--rule); padding: 0 14px; cursor: pointer; font: 700 11px/1 var(--mono); letter-spacing: .08em; color: var(--text-2); }
.amount button:hover { color: #fff; }
.sheet #ew { font-size: 14px; line-height: 20px; padding: 14px; }
.early-chips { margin-top: 2px; }
.early-chips button { height: 36px; }
.tweet { border: 1px solid var(--rule); background: #05090f; padding: 14px; margin-top: 4px; }
.tweet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tweet-head img { width: 28px; height: auto; }
.tweet-head div { flex: 1; display: grid; }
.tweet-head b { font: 600 14px/18px var(--sans); }
.tweet-head span { font-size: 12px; line-height: 16px; color: var(--text-3); }
.tweet-head .xg { width: 18px; height: 18px; color: #fff; }
.sheet .body .tweet-text { margin: 0 0 12px; font: 400 14px/20px var(--sans); color: #e7edf5; overflow-wrap: anywhere; }
.tweet-card { display: block; width: 100%; height: auto; border: 1px solid var(--rule-soft); border-radius: 10px; }
.tweet-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font: 400 11px/15px var(--mono); color: var(--text-3); }
@media (max-width: 860px) { .early-cta { min-width: 0; width: 100%; } .tweet-meta { flex-direction: column; } }

/* -- the home call to action: big, alive, impossible to miss ----------------------------------- */
.page-specimen .c-action { gap: 0; }
.early-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 12px; background: #000; border: 1px solid var(--hypha); color: var(--hypha); padding: 6px 11px 5px; font: 700 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.early-kicker i { width: 8px; height: 8px; background: var(--hypha); box-shadow: 0 0 10px var(--hypha); animation: blink 1.1s steps(1) infinite; }
.page-specimen .c-action .btn.early-cta {
  position: relative; overflow: hidden; height: 70px; min-width: 410px; padding: 0 22px 0 26px; gap: 16px;
  font: 700 17px/1 var(--mono); letter-spacing: .1em;
  box-shadow: 0 0 0 0 rgba(34, 211, 238, .6), 0 0 34px rgba(34, 211, 238, .5);
  animation: ctaPulse 2.2s ease-out infinite; transition: transform .18s ease, background .18s ease;
}
.early-cta .xg { width: 24px; height: 24px; }
.early-cta .arrow { font-size: 24px; transition: transform .2s ease; }
.early-cta:hover .arrow { transform: translateX(5px); }
.page-specimen .c-action .btn.early-cta:hover { transform: translateY(-2px); background: #fff; border-color: #fff; }
.early-cta::after {
  content: ''; position: absolute; top: -10px; bottom: -10px; width: 34%; left: -50%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .65), rgba(255, 255, 255, 0));
  transform: skewX(-22deg); animation: ctaShine 3.4s ease-in-out infinite; pointer-events: none;
}
@keyframes ctaPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .65), 0 0 34px rgba(34, 211, 238, .5); }
  70% { box-shadow: 0 0 0 22px rgba(34, 211, 238, 0), 0 0 34px rgba(34, 211, 238, .5); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0), 0 0 34px rgba(34, 211, 238, .5); }
}
@keyframes ctaShine { 0%, 50% { left: -50%; } 100% { left: 130%; } }
.page-specimen .c-action .note { margin-top: 12px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .page-specimen .c-action .btn.early-cta, .early-cta::after, .early-kicker i { animation: none; } }
@media (max-width: 860px) {
  .page-specimen .c-action .btn.early-cta { min-width: 0; width: 100%; height: 64px; font-size: 15px; padding: 0 18px; }
  .early-kicker { align-self: flex-start; }
}
@media (max-width: 860px) {
  /* one line on phones: the label must never break before "X" */
  .page-specimen .c-action .btn.early-cta { font-size: 14px; letter-spacing: .05em; gap: 12px; }
  .early-cta span:first-of-type { white-space: nowrap; }
  .early-cta .xg { width: 20px; height: 20px; }
}
