/* Pond page: XENEURO. The frog lives under water and so does the page: water gradient that deepens as you
   scroll (the depth gauge on the right), liquid-glass panels, Fraunces for the voice, Figtree for the work.
   Data colours (heat ramp, populations, good/bad) are unchanged: they encode, they do not decorate. */
:root {
  --bg: #071a21;
  --panel: rgba(214, 240, 232, 0.035);
  --glass: rgba(214, 240, 232, 0.045);
  --deep: #04131a;
  --line: rgba(200, 235, 225, 0.09);
  --line2: rgba(200, 235, 225, 0.2);
  --ink: #eaf4ec;
  --soft: #bcd0cb;
  --muted: #86a19c;
  --dim: #56706d;
  --ice: #9cc8ff;
  --lime: #c9f25b;
  --h1: #ffd166;
  --h2: #ff7a3d;
  --h3: #d63c7a;
  --good: #8fe3b0;
  --bad: #ff6f6f;
  --sensory: #9cc8ff;
  --relay: #7ee0c8;
  --inter: #b49cff;
  --motor: #ff7a3d;
  --mod: #ffd166;
  --gut: #e8609a;
  --r: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Figtree', system-ui, -apple-system, sans-serif;
  --mono: 'Figtree', system-ui, sans-serif;
  --code: 'Geist Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #040f14; }
body { margin: 0; background: linear-gradient(180deg, #0c2c36 0, #08202a 900px, var(--bg) 2400px, #040f14 100%); color: var(--ink); font: 15.5px/1.55 var(--sans); font-variant-numeric: tabular-nums; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
b { font-weight: 500; }
button { font: inherit; color: inherit; }
.pos-g { color: var(--good); } .pos-b { color: var(--bad); }
.dim { color: var(--dim); }

/* ---------- header: a floating glass pill ---------- */
.glass { background: rgba(12, 32, 38, 0.42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.16), 0 20px 50px -20px rgba(0, 10, 14, 0.6); }
.topbar { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; align-items: center; gap: 18px; padding: 6px 6px 6px 22px; border-radius: 999px; max-width: calc(100vw - 32px); }
.brand .logo { width: 28px; height: 28px; margin-right: 8px; vertical-align: -6px; border-radius: 50%; }
.brand { font: 300 22px/1 var(--serif); letter-spacing: -0.04em; text-decoration: none; white-space: nowrap; font-variation-settings: "SOFT" 100; }
.brand i, .mark i { font-weight: 100; }
.topbar nav { display: flex; gap: 2px; flex-wrap: nowrap; }
.topbar nav a { font: 500 14px var(--sans); color: var(--soft); text-decoration: none; padding: 8px 10px; border-radius: 999px; white-space: nowrap; }
.topbar nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.topbar .cta { font: 600 14px var(--sans); background: var(--lime); color: #0a1a12; text-decoration: none; padding: 10px 18px; border-radius: 999px; white-space: nowrap; transition: transform 0.3s var(--ease); }
.topbar .cta:hover { transform: scale(1.04); }
.sp { flex: 1; }
.live { display: flex; align-items: center; gap: 7px; font: 500 13px var(--sans); color: var(--muted); white-space: nowrap; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.live.on { color: var(--lime); }
.live.on i { background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: rec 1.6s infinite; }
@keyframes rec { 50% { opacity: 0.3; } }

/* ---------- hero: the frog, full-bleed, nothing between you and the water ---------- */
.hero { position: relative; }
.mark { position: absolute; left: 3.5vw; bottom: 64px; z-index: 2; pointer-events: none; font: 300 min(14vw, 250px)/0.8 var(--serif); letter-spacing: -0.065em; font-variation-settings: "SOFT" 100; color: var(--ink); text-shadow: 0 10px 60px rgba(2, 12, 18, 0.5); animation: rise 1.6s var(--ease) both 0.2s; }
.intro { position: absolute; right: 3.5vw; bottom: 64px; z-index: 3; width: min(430px, 40vw); padding: 24px 24px 20px; border-radius: 30px; display: flex; flex-direction: column; gap: 12px; animation: rise 1.4s var(--ease) both 0.5s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.series { display: flex; flex-wrap: wrap; gap: 2px 14px; font: 13px var(--sans); color: var(--muted); }
.series b { color: var(--ink); font-weight: 600; }
.intro h1 { font: 300 clamp(26px, 2.3vw, 34px)/1.05 var(--serif); letter-spacing: -0.035em; margin: 0; font-variation-settings: "SOFT" 100; }
.intro h1 em { font-style: italic; color: var(--lime); }
.intro .sub { margin: 0; font-size: 14px; color: var(--soft); }
.intro .sub b { color: var(--ink); }
.intro .now { margin: 0; padding: 12px 14px; border-radius: 16px; background: rgba(2, 14, 20, 0.35); font-size: 14px; color: var(--soft); min-height: 70px; display: flex; flex-direction: column; gap: 2px; }
.intro .now span { font: italic 300 14px var(--serif); color: var(--lime); }
.intro .now em { font-style: normal; }

/* the depth gauge: the page is a dive, the gauge says how deep you are */
.depth { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.depth i { position: relative; width: 2px; height: 34vh; background: rgba(214, 240, 232, 0.12); border-radius: 2px; }
.depth i::after { content: ''; position: absolute; left: -3px; top: calc(var(--p, 0) * 100%); width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.depth span { writing-mode: vertical-rl; font: 12.5px var(--sans); color: var(--muted); white-space: nowrap; }

.scan { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; border-bottom: 1px solid var(--line); }
.pane { position: relative; }
.ph { position: absolute; font-size: 13px; top: 84px; left: 18px; right: 18px; display: flex; justify-content: space-between; gap: 12px; font: 11px var(--mono); color: var(--muted); pointer-events: none; z-index: 2; }
.ph b { color: var(--ink); font-weight: 500; }
.vivo .ph, .vfoot { text-shadow: 0 1px 8px rgba(2, 10, 16, 0.9), 0 0 2px rgba(2, 10, 16, 0.9); }
.vivo .ph { color: var(--soft); }
.vivo { height: 100dvh; min-height: 560px; overflow: hidden; cursor: grab; background: #02111a; }
.vivo:active { cursor: grabbing; }
#specimen { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* soft scrims so the figure labels stay legible over bright water */
.vivo::before, .vivo::after { content: ''; position: absolute; left: 0; right: 0; pointer-events: none; z-index: 1; }
.vivo::before { top: 0; height: 140px; background: linear-gradient(rgba(2, 12, 18, 0.45), transparent); }
.vivo::after { bottom: 0; height: 260px; background: linear-gradient(transparent, rgba(7, 26, 33, 0.85)); }
.reg { display: none; position: absolute; inset: 44px 18px 58px; pointer-events: none; }
.reg i { position: absolute; width: 14px; height: 14px; border: 0 solid rgba(156, 200, 255, 0.45); }
.reg i:nth-child(1) { left: 0; top: 0; border-width: 1px 0 0 1px; }
.reg i:nth-child(2) { right: 0; top: 0; border-width: 1px 1px 0 0; }
.reg i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.reg i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.vfoot { position: absolute; left: 18px; right: 18px; bottom: 14px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; z-index: 2; pointer-events: none; }
.vinfo { display: flex; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; gap: 4px 16px; align-items: center; font: 11px var(--mono); color: var(--muted); }
.scalebar { display: inline-flex; align-items: center; gap: 8px; color: var(--ice); }
.scalebar i { display: block; width: var(--cm, 40px); height: 6px; border: 1px solid var(--ice); border-top: 0; }
.clock { color: var(--dim); }
.vbtns { display: flex; gap: 8px; align-items: stretch; pointer-events: auto; flex-wrap: wrap; justify-content: flex-end; }
.rbtn { border: 1px solid rgba(255, 122, 61, 0.5); background: rgba(5, 8, 13, 0.7); color: var(--h2); font: 11px var(--mono); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.rbtn:hover { background: rgba(255, 122, 61, 0.12); }
.ncard { position: absolute; left: 18px; top: 110px; width: 300px; z-index: 3; background: rgba(4, 9, 15, 0.9); border: 1px solid var(--line2); border-left: 2px solid var(--ice); padding: 12px 14px; font-size: 13px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 16px; }
.ncard .nx { position: absolute; right: 6px; top: 4px; border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.ncard .nt { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.ncard .nt i { width: 9px; height: 9px; border-radius: 50%; }
.ncard .ns { font: 11px var(--mono); color: var(--muted); margin-top: 2px; }
.ncard .nd { margin: 8px 0; color: var(--soft); line-height: 1.45; }
.nrate { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; font: 10.5px var(--mono); color: var(--muted); }
.nrate b { font: 300 20px var(--sans); color: var(--ink); letter-spacing: -0.02em; justify-self: end; }
.nrate canvas { grid-column: 1 / -1; width: 100%; height: 30px; }
.nio { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; font: 11px var(--mono); }
.nio .k { display: block; font-size: 10px; margin-bottom: 4px; }
.nio .k.out { color: var(--ice); } .nio .k.in { color: #ffb859; }
.nio .k b { color: var(--ink); font-weight: 500; }
.nio .pl { display: flex; flex-wrap: wrap; gap: 3px 10px; color: var(--muted); }
.nio .pl b { color: var(--ink); font-weight: 500; }
.replay { position: absolute; left: 3.5vw; right: 18px; max-width: 560px; bottom: auto; top: 110px; z-index: 3; background: rgba(4, 9, 15, 0.86); border: 1px solid rgba(255, 122, 61, 0.45); padding: 10px 14px 12px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 16px; }
.replay .rh { display: flex; justify-content: space-between; align-items: center; font: 11px var(--mono); color: var(--h2); }
.replay .rh b { color: var(--ink); font-weight: 500; }
.replay .rh button { border: 1px solid var(--line2); background: none; color: var(--muted); font: 10.5px var(--mono); padding: 3px 9px; cursor: pointer; }
.rbar { position: relative; height: 30px; margin: 10px 0 4px; border-bottom: 1px solid var(--line2); }
.rbar #replayCur { position: absolute; top: 0; bottom: -1px; width: 2px; background: var(--h2); box-shadow: 0 0 10px var(--h2); left: 0; }
.rbar .mk { position: absolute; bottom: 0; width: 1px; height: 10px; background: var(--ice); }
.rbar .mk em { position: absolute; bottom: calc(12px + var(--r, 0) * 12px); left: 0; transform: translateX(-50%); font: 10px var(--mono); font-style: normal; color: var(--ice); white-space: nowrap; }
.rbar .mk.gulp { background: var(--h1); height: 100%; } .rbar .mk.gulp em { color: var(--h1); bottom: 0; left: 6px; transform: none; }
.rnow { font-size: 14px; color: var(--ink); min-height: 22px; }
.frogpick { grid-area: pick; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 18px; font: 10.5px var(--mono); color: var(--muted); }
#frogPick { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line2); background: none; color: var(--soft); padding: 5px 10px; font: 11px var(--mono); cursor: pointer; border-radius: 999px; }
.fchip i { width: 7px; height: 7px; border-radius: 50%; }
.fchip small { font-size: 10.5px; }
.fchip:hover { border-color: var(--ice); color: var(--ink); }
.fchip.on { border-color: var(--lime); background: rgba(201, 242, 91, 0.12); color: var(--ink); }
.modes { display: flex; border: 1px solid var(--line2); border-radius: 999px; background: rgba(5, 8, 13, 0.7); pointer-events: auto; }
.modes button { border: 0; background: none; padding: 7px 12px; font: 11px var(--mono); color: var(--muted); cursor: pointer; }
.modes button + button { border-left: 1px solid var(--line2); }
.modes button.on { background: rgba(156, 200, 255, 0.14); color: var(--ink); }
.tags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tag { position: absolute; transform: translate(-50%, calc(-100% - 12px)); font: 10.5px var(--mono); color: var(--soft); padding: 2px 7px; border: 1px solid var(--line2); background: rgba(3, 10, 16, 0.72); white-space: nowrap; border-radius: 999px; }
.tag::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: 11px; background: currentColor; opacity: 0.5; }
.tag.good { color: var(--good); } .tag.bad { color: var(--bad); }
.tag.target { color: var(--h1); border-color: rgba(255, 209, 102, 0.55); }
.tag small { color: var(--muted); margin-left: 6px; }
.tip { position: absolute; z-index: 3; pointer-events: none; background: rgba(5, 8, 13, 0.94); border: 1px solid var(--line2); padding: 8px 11px; font: 11.5px/1.5 var(--mono); max-width: 270px; border-radius: 16px; }
.tip b { display: block; font-weight: 500; }
.tip i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }
.toasts { position: absolute; left: 50%; top: 110px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; z-index: 2; }
.toast { font: 11.5px var(--mono); padding: 5px 12px; background: rgba(5, 8, 13, 0.88); border: 1px solid var(--line2); animation: toast 3.4s ease forwards; white-space: nowrap; border-radius: 999px; }
.toast.gulp { color: var(--h1); border-color: rgba(255, 209, 102, 0.45); }
.toast.good { color: var(--good); border-color: rgba(143, 227, 176, 0.45); }
.toast.bad { color: var(--bad); border-color: rgba(255, 111, 111, 0.45); }
@keyframes toast { 0% { opacity: 0; transform: translateY(-6px); } 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.side { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 14px 28px; }
.side .axial { grid-row: span 2; }
.axial { padding: 0; position: relative; }
.axial .ph { position: static; margin-bottom: 10px; color: var(--muted); }
.axwrap { position: relative; border: 0; border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); overflow: hidden; background: var(--deep); }
#axial { width: 100%; display: block; aspect-ratio: 2.4; }
.axctl { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; margin-top: 10px; font: 10.5px var(--mono); color: var(--muted); }
.axctl .wl { color: var(--ice); }
.axctl .hint { color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.seg { display: flex; border: 1px solid var(--line2); border-radius: 999px; }
.seg button, .tog { border: 0; background: none; padding: 4px 9px; font: 10.5px var(--mono); color: var(--muted); cursor: pointer; border-radius: 999px; }
.seg button + button { border-left: 1px solid var(--line2); }
.seg button.on, .tog.on { background: rgba(156, 200, 255, 0.14); color: var(--ink); }
.tog { border: 1px solid var(--line2); }
#axial { cursor: crosshair; touch-action: none; }
.axlbl { display: flex; justify-content: space-between; font: 10.5px var(--mono); color: var(--dim); margin-top: 6px; }
.region { padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.zbig { font: 200 64px/1 var(--serif); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.zbig small { font: 13px var(--mono); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.rname { font: 500 17px var(--sans); margin-top: 8px; }
.rsub { color: var(--muted); font-size: 13px; }
.pops { font: 11.5px var(--mono); }
.pops .p { display: grid; grid-template-columns: 46px 1fr 30px; gap: 8px; align-items: center; padding: 2px 0; }
.pops .p span:first-child { color: var(--muted); }
.pops .bar { height: 4px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.pops .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--h3), var(--h2), var(--h1)); transition: width 0.25s; }
.pops .n { text-align: right; color: var(--muted); }
.pops .p.none { display: block; color: var(--dim); padding-top: 6px; border-top: 1px dashed var(--line); }
.sheet { padding: 0; align-self: end; }
.sheet .t { font: 11px var(--mono); color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.thumbs canvas { width: 100%; display: block; border-radius: 10px; border: 1px solid var(--line); background: var(--deep); cursor: pointer; transition: border-color 0.2s; }
.thumbs canvas:hover { border-color: var(--line2); }
.thumbs canvas.on { border-color: var(--ice); box-shadow: 0 0 0 1px var(--ice); }

.scrub { padding: 28px 0 10px; }
.ph2 { font: 11px var(--mono); color: var(--muted); margin-bottom: 10px; }
.ph2 b { color: var(--ink); font-weight: 500; }
.scrubrow { display: flex; align-items: flex-start; gap: 18px; }
.play { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); background: none; color: var(--ink); cursor: pointer; font: 13px var(--mono); flex: none; }
.play:hover { border-color: var(--ice); }
.track { position: relative; flex: 1; min-width: 0; padding-bottom: 28px; cursor: ew-resize; touch-action: none; }
#sag { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--line); background: var(--deep); }
.track .tick { position: absolute; bottom: 18px; width: 1px; height: 8px; background: var(--dim); }
.track .tl { position: absolute; bottom: 0; transform: translateX(-50%); font: 10.5px var(--mono); color: var(--muted); white-space: nowrap; }
.track .knob { position: absolute; top: 0; bottom: 28px; width: 2px; background: var(--ice); box-shadow: 0 0 12px var(--ice); transform: translateX(-1px); z-index: 1; pointer-events: none; }
.track .knob::before { content: attr(data-z); position: absolute; top: 4px; left: 6px; font: 10.5px var(--mono); color: var(--ice); white-space: nowrap; text-shadow: 0 0 6px #000; }

.stats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-top: 10px; }
.stats div { background: var(--glass); border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); padding: 16px 22px; }
.stats span { display: block; font: 10.5px var(--mono); color: var(--muted); }
.stats b { white-space: nowrap; font: 300 30px/1.2 var(--serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats b.pos { color: var(--good); } .stats b.neg { color: var(--bad); }

/* ---------- plates ---------- */
.plate { max-width: 1360px; margin: 0 auto; padding: 120px 28px 0; scroll-margin-top: -40px; }
.phead { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 470px); gap: 12px 32px; align-items: baseline; padding-top: 0; margin-bottom: 34px; }
.pno { font: italic 300 17px var(--serif); color: var(--lime); }
.phead h2 { font: 300 clamp(34px, 4.4vw, 64px)/0.95 var(--serif); letter-spacing: -0.045em; font-variation-settings: "SOFT" 100; margin: 0; }
.phead > p { margin: 0; color: var(--soft); font-size: 15px; }
.phead .chips { justify-content: flex-end; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-left: 232px; }
.cols p, .lead { color: var(--soft); font-size: 16.5px; line-height: 1.7; margin: 0; }
.lead { max-width: 860px; margin: 0 0 32px 232px; }
.csv { font: 12px var(--mono); color: var(--ice); text-decoration: none; margin-left: 6px; white-space: nowrap; }
.fig { margin: 0; }
figcaption { font: 12px/1.6 var(--mono); color: var(--muted); margin-top: 10px; }
figcaption b { font: italic 400 14px var(--serif); color: var(--lime); font-weight: 500; }
.fno { display: block; font: italic 300 15px var(--serif); color: var(--lime); margin-bottom: 4px; }

/* pond */
.pondwrap { position: relative; border: 0; border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); overflow: hidden; overflow: hidden; background: var(--deep); }
#pondCanvas { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 660px; cursor: crosshair; }
.hud { position: absolute; top: 14px; right: 14px; width: 272px; background: rgba(5, 8, 13, 0.92); border: 1px solid var(--line2); padding: 12px 14px; font: 11.5px/1.5 var(--mono); backdrop-filter: blur(6px); border-radius: 16px; }
.hud .hd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hud .hd img { width: 22px; height: 22px; border-radius: 50%; }
.hud .sym { font: 500 20px var(--sans); letter-spacing: -0.02em; }
.hud .lbl { color: var(--muted); font-size: 10.5px; }
.hud .hd .lbl { margin-left: auto; color: var(--h1); }
.hud .row { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 4px 8px; }
.hud .devline { color: var(--muted); margin: 6px 0; font-size: 11px; }
.hud .flags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.hud .flags span { color: var(--bad); border: 1px solid rgba(255, 111, 111, 0.35); padding: 0 5px; font-size: 10.5px; }
.hud .bars { display: grid; grid-template-columns: 92px 1fr; gap: 3px 8px; align-items: center; margin-top: 8px; font-size: 10.5px; color: var(--muted); }
.hud .bars i { display: block; height: 4px; background: rgba(255, 255, 255, 0.06); position: relative; overflow: hidden; }
.hud .bars i::after { content: ''; position: absolute; inset: 0; width: var(--w); background: var(--c); }

/* frogs */
.board { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.frogrow { display: grid; grid-template-columns: 34px minmax(170px, 1.2fr) 120px 130px 2.4fr 96px; gap: 18px; align-items: center; padding: 15px 10px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background 0.15s; }
.frogrow:hover { background: rgba(156, 200, 255, 0.035); }
.frogrow.on { background: linear-gradient(90deg, rgba(201, 242, 91, 0.08), transparent 60%); box-shadow: inset 2px 0 0 var(--lime); border-radius: 14px; }
.frogrow .rank { font: 200 30px var(--serif); color: var(--dim); font-variant-numeric: tabular-nums; }
.frogrow .who b { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.frogrow .who i { width: 8px; height: 8px; border-radius: 50%; }
.frogrow small { display: block; font: 11px var(--mono); color: var(--muted); }
.frogrow .eq { font: 300 26px var(--serif); letter-spacing: -0.02em; }
.frogrow .wl { font: 12px var(--mono); }
.frogrow .genes { display: flex; flex-wrap: wrap; gap: 3px 14px; font: 11px var(--mono); color: var(--muted); }
.frogrow .genes em { font-style: normal; }
.frogrow .genes b { color: var(--ink); font-weight: 500; }
.frogrow .watch { font: 11px var(--mono); color: var(--muted); text-align: right; }
.frogrow.on .watch { color: var(--lime); }
.evolog { margin-top: 18px; font: 12px/1.7 var(--mono); color: var(--muted); max-height: 180px; overflow: auto; }
.evolog .rule { color: var(--soft); font-family: var(--sans); font-size: 13.5px; margin-bottom: 10px; max-width: 900px; padding-left: 12px; border-left: 1px solid var(--line2); }

/* nerves */
.metrics { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-bottom: 18px; }
.metrics div { background: var(--glass); border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); padding: 14px 16px; }
.metrics span { display: block; font: 10.5px var(--mono); color: var(--muted); }
.metrics b { font: 300 32px var(--serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.metrics small { font: 11px var(--mono); color: var(--muted); margin-left: 4px; }
.rasterbox { border: 0; border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); overflow: hidden; background: var(--deep); padding: 10px 10px 10px 0; }
#raster { display: block; width: 100%; height: 380px; }
.legend { display: inline-flex; flex-wrap: wrap; gap: 4px 18px; margin-left: 8px; }
.legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.card { border: 0; border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); background: var(--glass); padding: 20px 22px; /* no backdrop blur: over the smooth water gradient it showed nothing and cost every scroll frame */ margin-bottom: 18px; }
.ch { margin-bottom: 16px; }
.ch.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ch h3 { font: 400 24px/1.1 var(--serif); letter-spacing: -0.03em; margin: 0 0 4px; }
.ch p { margin: 0; color: var(--muted); font-size: 13px; }
.taste h5 { font: 500 10.5px var(--mono); color: var(--muted); margin: 14px 0 6px; }
.taste .t { display: grid; grid-template-columns: 150px 1fr 54px; gap: 12px; align-items: center; font: 12px var(--mono); padding: 3px 0; }
.taste .t em { color: var(--dim); font-style: normal; }
.taste .track { position: relative; height: 6px; background: rgba(255, 255, 255, 0.05); }
.taste .mid { position: absolute; left: 33.33%; top: -4px; bottom: -4px; width: 1px; background: var(--ice); opacity: 0.5; }
.taste .fill { position: absolute; top: 0; bottom: 0; }
.taste .val { text-align: right; color: var(--muted); }
.stomach { display: flex; flex-direction: column; gap: 8px; }
.empty { color: var(--muted); font: 12.5px var(--mono); padding: 18px; border: 1px dashed var(--line2); text-align: center; border-radius: 16px; }
.stomach .pos { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); text-decoration: none; position: relative; border-radius: 16px; }
.stomach .pos:hover { border-color: var(--line2); }
.stomach .pos img, .stomach .pos .ph-img { width: 30px; height: 30px; border-radius: 50%; background: #111a26; }
.stomach .pos .s { font-weight: 500; }
.stomach .pos .m { font: 11px var(--mono); color: var(--muted); }
.stomach .pos .p { font: 300 24px var(--serif); letter-spacing: -0.02em; text-align: right; }
.stomach .pos .p small { display: block; font: 10.5px var(--mono); color: var(--muted); letter-spacing: 0; }
.stomach .pos .bar { grid-column: 1 / -1; position: relative; height: 3px; background: rgba(255, 255, 255, 0.05); }
.stomach .pos .bar b { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--muted); }
.stomach .pos .bar i { position: absolute; top: 0; bottom: 0; }
.badge { font: 10px var(--mono); border: 1px solid var(--line2); padding: 0 5px; color: var(--muted); margin-left: 4px; }
.badge.ok { color: var(--good); } .badge.bad { color: var(--bad); } .badge.hunt { color: var(--h1); border-color: rgba(255, 209, 102, 0.45); }

/* record */
.kpis { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.kpi { background: var(--glass); border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); padding: 18px 20px; }
.kpi label { display: block; font: 10.5px var(--mono); color: var(--muted); }
.kpi .v { font: 300 38px/1.2 var(--serif); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.kpi.main .v { font-size: 46px; }
.kpi .s { font: 11px/1.6 var(--mono); color: var(--muted); }
.kpi .dots { display: flex; gap: 3px; margin-top: 6px; flex-wrap: wrap; }
.kpi .dots i { width: 16px; height: 16px; font: 500 9px/16px var(--mono); text-align: center; font-style: normal; }
.kpi .dots i.w { background: rgba(143, 227, 176, 0.16); color: var(--good); }
.kpi .dots i.l { background: rgba(255, 111, 111, 0.15); color: var(--bad); }
#equity { display: block; width: 100%; height: 250px; }
.eqstats { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 12px; font: 10.5px var(--mono); color: var(--muted); }
.eqstats b { display: block; font: 300 26px var(--serif); letter-spacing: -0.02em; color: var(--ink); }
.streakwrap { position: relative; }
#streak { display: block; width: 100%; height: 220px; }
.stip { position: absolute; z-index: 2; pointer-events: none; background: rgba(5, 8, 13, 0.96); border: 1px solid var(--line2); padding: 10px 12px; font: 11px/1.6 var(--mono); min-width: 220px; border-radius: 16px; }
.stip .big { font: 400 19px var(--sans); letter-spacing: -0.02em; }
.stip .r { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.stip .r b { color: var(--ink); font-weight: 500; }
.tablewrap { overflow: auto; border: 0; border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); overflow: hidden; }
.tablewrap.short { max-height: 520px; }
table { border-collapse: collapse; width: 100%; font: 12px var(--mono); font-variant-numeric: tabular-nums; }
th { position: sticky; top: 0; background: #0b222a; color: var(--muted); font-weight: 400; font-size: 10.5px; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr:hover td { background: rgba(156, 200, 255, 0.03); }
td.sym { display: flex; align-items: center; gap: 8px; }
td.sym img { width: 18px; height: 18px; border-radius: 50%; background: #111a26; }
td.sym small { color: var(--dim); }
td a { color: var(--ice); text-decoration: none; }
td a b { color: var(--ink); font-weight: 500; }
td.num { text-align: right; }
.how-digested { color: var(--good); } .how-spat, .how-choked { color: var(--bad); } .how-passed, .how-fled, .how-gap { color: var(--muted); }
.streakcell { font-size: 11px; padding: 1px 6px; }
.streakcell.w { background: rgba(143, 227, 176, 0.13); color: var(--good); }
.streakcell.l { background: rgba(255, 111, 111, 0.12); color: var(--bad); }
tr.target td { background: rgba(255, 209, 102, 0.05); }
td.risk span { color: var(--bad); border: 1px solid rgba(255, 111, 111, 0.3); padding: 0 5px; margin-right: 4px; font-size: 10.5px; }
.smell { display: inline-flex; gap: 2px; vertical-align: middle; }
.smell i { width: 3px; display: block; }
.dotfrog { display: inline-block; width: 16px; height: 16px; border-radius: 50%; color: var(--bg); font: 600 9px/16px var(--mono); text-align: center; margin-right: 2px; }

/* erratum */
.etabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.etabs button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 1px solid var(--line2); background: var(--panel); color: var(--soft); padding: 10px 14px; cursor: pointer; text-align: left; min-width: 240px; border-radius: 16px; }
.etabs button small { font: 10.5px var(--mono); color: var(--muted); }
.etabs button b { font: 300 26px var(--serif); letter-spacing: -0.02em; color: var(--h1); }
.etabs button.on { border-color: var(--h1); background: linear-gradient(180deg, rgba(255, 209, 102, 0.08), transparent); color: var(--ink); }
.ehead { font: 12px var(--mono); color: var(--muted); margin-bottom: 14px; }
.ehead b { color: var(--ink); font-weight: 500; }
.ebig.e-scr b { color: var(--h1); text-shadow: 0 0 28px rgba(255, 209, 102, 0.25); }
.ebig .stamp { display: inline-block; font: 500 10px var(--mono); color: var(--bad); border: 1px solid rgba(255, 111, 111, 0.5); padding: 1px 6px; margin-left: 8px; transform: rotate(-3deg); vertical-align: 6px; }
#erEq { display: block; width: 100%; height: 240px; }
.etable td b { font-weight: 500; }
.etable tr.best td { background: rgba(255, 209, 102, 0.05); }
.eflag { border: 1px solid rgba(255, 122, 61, 0.35); border-left: 3px solid var(--h2); background: linear-gradient(90deg, rgba(255, 122, 61, 0.07), transparent 70%); padding: 12px 16px; color: var(--soft); font-size: 14px; margin-bottom: 18px; border-radius: 16px; }
.eflag b { color: var(--h2); font-weight: 500; }
.etop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.ebig { background: var(--glass); border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); padding: 18px 22px; }
.ebig label { display: block; font: 10.5px var(--mono); color: var(--muted); }
.ebig b { display: block; font: 300 52px/1.15 var(--serif); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ebig small { font: 11.5px/1.5 var(--mono); color: var(--muted); }
.ebig.e-rec b { color: var(--h2); }
.ebig.e-ch b { color: var(--ice); }
.ebig.e-gap b { color: var(--ink); }
.lk { display: inline-block; width: 18px; height: 0; border-top: 2px solid; vertical-align: middle; margin: 0 6px 0 14px; }
.lk.rec { border-color: var(--h2); border-top-style: dashed; } .lk.ch { border-color: var(--ice); } .lk.un { width: 7px; height: 7px; border: 0; border-radius: 50%; background: var(--muted); }
.ewrap { position: relative; }
#erChart { display: block; width: 100%; height: 280px; }
.ebars { display: flex; flex-direction: column; gap: 14px; }
.ebars .g { display: grid; grid-template-columns: 80px minmax(0, 1fr) 118px; gap: 6px 12px; align-items: center; font: 12px var(--mono); }
.ebars .g > span { color: var(--muted); grid-row: span 2; }
.ebars .b { position: relative; height: 18px; background: rgba(255, 255, 255, 0.03); }
.ebars .b i { position: absolute; top: 0; bottom: 0; }
.ebars .g > em { font-style: normal; font-size: 12px; white-space: nowrap; }
.ebars .g > em small { color: var(--dim); }
.ebars .b .z { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--line2); }
.ebars .note { font: 11px/1.6 var(--mono); color: var(--dim); }
.ewhy { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--soft); font-size: 14px; }
.ewhy b { color: var(--ink); font-weight: 500; }
.ewhy .fix { list-style: none; margin-left: -20px; padding: 10px 12px; border: 1px solid rgba(156, 200, 255, 0.25); background: rgba(156, 200, 255, 0.05); }
.ewhy .fix b { color: var(--ice); }

/* log */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 10.5px var(--mono); border: 1px solid var(--line2); padding: 3px 9px; cursor: pointer; color: var(--ink); border-radius: 999px; }
.chip.off { color: var(--dim); border-color: var(--line); text-decoration: line-through; }
.log { max-height: 460px; overflow: auto; border: 0; border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); overflow: hidden; font: 12px/1.6 var(--mono); }
.log .e { display: grid; grid-template-columns: 76px 92px 1fr; gap: 12px; padding: 7px 14px; border-bottom: 1px solid var(--line); }
.log .tm { color: var(--dim); }
.log .k { font-size: 10.5px; color: var(--muted); }
.log .k-trade { color: var(--h1); } .log .k-evolution { color: var(--gut); } .log .k-neural { color: var(--inter); } .log .k-learning { color: var(--mod); }
.log .k-behaviour { color: var(--relay); } .log .k-stimulus { color: var(--sensory); } .log .k-motor { color: var(--motor); } .log .k-system { color: var(--dim); }
.log .tx { color: var(--soft); white-space: normal; }

/* methods */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.grid4 article { background: var(--glass); border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); padding: 22px 24px; }
.grid4 h4 { font: 400 20px var(--serif); margin: 0 0 12px; display: flex; gap: 10px; align-items: baseline; }
.grid4 h4 span, .pipeline b span { font: italic 300 15px var(--serif); color: var(--lime); }
.grid4 p { margin: 0 0 10px; color: #a9b5c5; font-size: 14px; }
.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.pipeline div { background: var(--glass); border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); padding: 20px 24px; }
.pipeline b { display: flex; gap: 10px; align-items: baseline; font: 400 24px var(--serif); margin-bottom: 8px; }
.pipeline > div > span { font: 12px/1.8 var(--mono); color: var(--muted); }
.pipeline em { color: var(--h1); font-style: normal; }
.token { position: relative; }
.token .mascot { position: absolute; right: 4vw; top: 40px; width: clamp(120px, 16vw, 220px); height: auto; filter: drop-shadow(0 20px 40px rgba(0, 10, 14, 0.5)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.token h2 { font-size: clamp(56px, 10vw, 150px); font-weight: 200; }
.token .lead, .token .ca { margin-left: 232px; border-radius: 16px; }
.ca { font: 14px var(--code); border: 1px solid var(--line2); padding: 16px 20px; display: inline-block; color: var(--muted); word-break: break-all; }
footer { max-width: 1360px; margin: 140px auto 0; padding: 22px 28px 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font: 11px var(--mono); color: var(--dim); }

@media (max-width: 1420px) { .vinfo .clock { display: none; } }
@media (max-width: 1180px) {
  .topbar nav a:nth-child(n+6) { display: none; }
  .side { grid-template-columns: 1fr; } .side .axial { grid-row: auto; }
  .intro { width: min(400px, 46vw); }
  .stats, .metrics { grid-template-columns: repeat(4, 1fr); }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .frogrow { grid-template-columns: 30px 1.2fr 110px 120px 80px; }
  .frogrow .genes { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; } .kpi.main { grid-column: 1 / -1; }
  .phead { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } .phead .pno { grid-column: 1 / -1; }
  .cols, .lead, .token .lead, .token .ca { margin-left: 0; }
}
@media (max-width: 760px) {
  .topbar { top: 10px; gap: 10px; padding: 5px 5px 5px 16px; } .topbar nav, .live span { display: none; }
  .hero .vivo { height: 78dvh; }
  .mark { bottom: 110px; left: 16px; font-size: 22vw; }
  .intro { position: relative; right: auto; bottom: auto; width: auto; margin: 14px 12px 0; }
  .depth { display: none; }
  .ncard { left: 12px; right: 12px; top: auto; bottom: 96px; width: auto; }
  .replay { left: 12px; right: 12px; bottom: 96px; }
  .axctl .hint { display: none; }

  .intro .now { min-height: 0; }
  .plate { padding: 60px 16px 0; }
  .phead { grid-template-columns: 1fr; }
  .phead .chips { justify-content: flex-start; }
  .vivo { min-height: 420px; }
  .ph { left: 12px; right: 12px; font-size: 11px; }
  .ph span:last-child { display: none; }
  .reg { inset: 38px 12px 54px; }
  .vfoot { left: 12px; right: 12px; flex-direction: column; align-items: flex-start; }
  .vinfo #specSyn, .vinfo .clock { display: none; }
  .region { grid-template-columns: 1fr; }
  .zbig { font-size: 42px; }
  .track .tl.alt { display: none; }
  .play { width: 32px; height: 32px; }
  .stats, .metrics { grid-template-columns: 1fr 1fr; }
  .stats div { padding: 12px 16px; }
  .cols, .two, .grid4, .pipeline { grid-template-columns: 1fr; }
  .frogrow { grid-template-columns: 26px 1fr auto; } .frogrow .wl, .frogrow .watch { display: none; }
  .taste .t { grid-template-columns: 110px 1fr 48px; }
  .hud { position: static; width: auto; border-width: 1px 0 0; }
  .log .e { grid-template-columns: 64px 1fr; } .log .tx { grid-column: 1 / -1; }
  .kpis { grid-template-columns: 1fr; }
  .etop { grid-template-columns: 1fr; } .ebars .g { grid-template-columns: 64px minmax(0, 1fr) 96px; gap: 6px 8px; } .ebig b { font-size: 36px; }
  footer { padding: 22px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
/* experiment result in the hero card (demo.js) */
.intro .result { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(201, 242, 91, 0.08); border: 1px solid rgba(201, 242, 91, 0.25); }
.intro .result .rv { font: 400 clamp(34px, 3vw, 44px)/1 var(--serif); letter-spacing: -0.03em; color: var(--lime); white-space: nowrap; }
.intro .result .rt { display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--ink); }
.intro .result small { font-size: 12px; color: var(--soft); line-height: 1.35; }
@media (max-width: 760px) { .token .mascot { position: static; display: block; width: 120px; margin: 0 0 8px; } }
