:root {
  --bg: #050c0a;
  --bg2: #08130f;
  --panel: #0b1814;
  --panel2: #102019;
  --line: #1c3a2e;
  --text: #d9ebe2;
  --muted: #94b0a2;
  --o2: #2fe08f;
  --o2-deep: #0f9a5b;
  --o2-dark: #0a6b40;
  --mint: #a9d9c1;
  --steel: #b9cfc6;
  --amber: #e9b84a;
  --track: #12261e;
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(47, 224, 143, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(15, 154, 91, .08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--o2); text-underline-offset: .18em; }
a:hover { color: #7dffbd; }
:focus-visible { outline: 3px solid var(--o2); outline-offset: 3px; border-radius: 4px; }
code { font: .86em var(--mono); color: var(--mint); overflow-wrap: anywhere; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: .5rem; top: -4rem; z-index: 10; background: var(--o2); color: #031009; padding: .6rem 1rem; border-radius: 8px; font-weight: 700; }
.skip:focus { top: .5rem; }
.wrap { width: min(100% - 2rem, 1320px); margin-inline: auto; }
.null { color: var(--muted); }
.sub { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; line-height: 1.35; }
dd .sub, p .sub, li .sub, h4 .sub, h5 .sub, small .sub { display: inline; }

/* ---------- header ---------- */
.top { padding: 2.2rem 0 0; background: linear-gradient(180deg, rgba(16, 32, 25, .7), transparent); }
.hero { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.eyebrow { margin: 0 0 .4rem; font: 600 .75rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font-size: clamp(2.4rem, 7vw, 4.8rem); line-height: .98; letter-spacing: -.03em; font-weight: 800; }
h1 span { color: var(--o2); text-shadow: 0 0 28px rgba(47, 224, 143, .35); }
.lede { max-width: 56ch; font-size: 1.15rem; color: var(--steel); margin: .9rem 0 .5rem; }
.meta { color: var(--muted); font-size: .88rem; margin: 0 0 1.2rem; }
.meta strong { color: var(--text); font-weight: 600; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.nav a {
  display: inline-block; padding: .38rem .8rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); text-decoration: none; font-size: .86rem; background: var(--panel);
}
.nav a:hover { border-color: var(--o2); color: var(--o2); }
.hero { overflow-x: clip; }
.hero-art { display: flex; align-items: flex-end; gap: 1.4rem; padding-right: 1rem; overflow: clip; }

/* tubing */
.tube {
  position: relative; height: 12px; margin-top: 2rem; border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .35) 0 14%, transparent 14% 100%),
    linear-gradient(180deg, #17b46c 0, #0d7f4a 55%, #075a33 100%);
  box-shadow: 0 0 0 1px #052a19, 0 6px 18px rgba(15, 154, 91, .25);
}
.tube::before, .tube::after {
  content: ""; position: absolute; top: -5px; width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(180deg, #c7d8d0, #6e8a7d 60%, #43594f); box-shadow: 0 0 0 1px #0b1a14;
}
.tube::before { left: 8%; }
.tube::after { right: 8%; }

/* tank */
.tank {
  position: relative; width: 84px; height: 230px; border-radius: 42px 42px 12px 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .28) 0 10%, transparent 26%, rgba(0, 0, 0, .38) 100%),
    linear-gradient(180deg, #15a965, #0b7243);
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, .35), 0 0 0 1px #04281a, 0 12px 30px rgba(15, 154, 91, .2);
}
.tank::before { /* neck */
  content: ""; position: absolute; left: 50%; top: -22px; width: 26px; height: 26px; margin-left: -13px;
  border-radius: 6px 6px 0 0; background: linear-gradient(90deg, #8aa297, #dbe8e1 40%, #5c746a);
}
.tank .valve {
  position: absolute; left: 50%; top: -36px; width: 40px; height: 14px; margin-left: -20px; border-radius: 7px;
  background: linear-gradient(180deg, #e9f2ed, #7e978b);
}
.tank .valve::after {
  content: ""; position: absolute; right: -10px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--o2);
  box-shadow: 0 0 8px var(--o2);
}
.tank .collar { position: absolute; left: 0; right: 0; top: 52px; height: 9px; background: rgba(0, 0, 0, .35); }
.tank .label {
  position: absolute; left: 12px; right: 12px; top: 104px; padding: .5rem 0; text-align: center;
  font: 800 1.5rem/1 var(--sans); color: #e9fff4; letter-spacing: .02em; border-radius: 8px;
  background: rgba(3, 20, 12, .55); border: 1px solid rgba(255, 255, 255, .25);
}

/* gauges — --p/--q are the target fill (0..1 of the 270° arc); --fill animates 0→1 */
@property --fill {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}
.gauge {
  --size: 150px; --g: var(--o2); --g2: var(--steel); --fill: 1; --q: 0;
  position: relative; width: var(--size); aspect-ratio: 1; border-radius: 50%; flex: none;
  background:
    conic-gradient(from 225deg, var(--g) 0 calc(var(--p) * var(--fill) * 270deg), var(--track) 0 270deg, transparent 0);
  box-shadow: 0 0 0 4px #14281f, 0 0 0 5px #31574a, 0 10px 28px rgba(0, 0, 0, .5), 0 0 30px rgba(47, 224, 143, .12);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.gauge.md { --size: 118px; }
.gauge.xl { --size: 220px; }
.gauge .ticks {
  position: absolute; inset: -9px; border-radius: 50%;
  background: repeating-conic-gradient(from 225deg, var(--muted) 0 1deg, transparent 1deg 27deg);
  -webkit-mask: radial-gradient(closest-side, transparent 93%, #000 94%), conic-gradient(from 225deg, #000 0 271deg, transparent 0);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(closest-side, transparent 93%, #000 94%), conic-gradient(from 225deg, #000 0 271deg, transparent 0);
  mask-composite: intersect;
  opacity: .8;
}
.gauge .ring2 {
  position: absolute; inset: 13%; border-radius: 50%;
  background: conic-gradient(from 225deg, var(--g2) 0 calc(var(--q) * var(--fill) * 270deg), #0e1c16 0 270deg, transparent 0);
}
.gauge .face {
  position: absolute; inset: 21%; border-radius: 50%; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 4%; background: radial-gradient(circle at 50% 30%, #14291f, #070f0c 75%);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, .8);
}
.gauge .face b { font: 700 .95rem/1 var(--mono); color: var(--text); letter-spacing: -.02em; }
.gauge.xl .face b { font-size: 1.5rem; }
.gauge.md .face b { font-size: .72rem; }
.gauge.md .face { padding-bottom: 2%; }
.gauge.md .hub { width: 9%; margin: -4.5% 0 0 -4.5%; }
.gauge .needle {
  position: absolute; inset: 0;
  transform: rotate(calc(var(--p) * var(--fill) * 270deg - 135deg));
}
.gauge .needle::before {
  content: ""; position: absolute; left: 50%; top: 24%; width: 3px; height: 26%; margin-left: -1.5px; border-radius: 2px;
  background: linear-gradient(180deg, #ffd27a, #e1763a);
}
.gauge .hub { position: absolute; left: 50%; top: 50%; width: 11%; aspect-ratio: 1; margin: -5.5% 0 0 -5.5%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #7e978b 60%, #31453c); }

/* home hero fidget dial (clicker) */
.fidget-wrap { display: flex; flex-direction: column; align-items: center; gap: .7rem; overflow: clip; }
button.gauge.fidget {
  appearance: none; -webkit-appearance: none; border: 0; margin: 0; padding: 0;
  cursor: pointer; font: inherit; color: inherit;
  touch-action: manipulation;
  overflow: clip; /* ticks/needle must not spill the viewport at mid widths */
}
button.gauge.fidget:focus { outline: none; }
button.gauge.fidget:focus-visible {
  box-shadow: 0 0 0 4px #14281f, 0 0 0 5px #31574a, 0 0 0 8px var(--o2), 0 10px 28px rgba(0, 0, 0, .5);
}
button.gauge.fidget.is-pressurized {
  box-shadow: 0 0 0 4px #14281f, 0 0 0 5px #31574a, 0 10px 28px rgba(0, 0, 0, .5), 0 0 42px rgba(47, 224, 143, .28);
}
.fidget-hint {
  max-width: 16rem; margin: 0; text-align: center;
  font-size: .82rem; color: var(--muted); line-height: 1.35;
}

/* ---------- sections ---------- */
main { padding-bottom: 2rem; }
section { padding-top: 3.2rem; }
h2 {
  display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .8rem; margin: 0 0 1.2rem; font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -.01em;
}
h2 small { font-size: .82rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
h2 .fit {
  position: relative; display: inline-block; width: 46px; height: 12px; border-radius: 6px;
  background: linear-gradient(180deg, #17b46c, #075a33);
}
h2 .fit::after { content: ""; position: absolute; right: -6px; top: -4px; width: 14px; height: 20px; border-radius: 4px; background: linear-gradient(90deg, #dce9e2, #6e8a7d); }
h2::after { content: ""; flex: 1 1 40px; min-width: 40px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--o2-deep), transparent); order: 5; }
h3 { margin: 0 0 .3rem; font-size: 1.2rem; }
h3.sub { display: block; margin: 2.2rem 0 .9rem; color: var(--text); font-size: 1.1rem; font-weight: 700; }
h3.sub small { font-weight: 400; font-size: .8rem; color: var(--muted); margin-left: .5rem; }
h4 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
h4.mini, h5.mini { margin: 1.1rem 0 .5rem; font: 600 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h4.mini code, h5.mini code { text-transform: none; letter-spacing: 0; }
.intro { max-width: 80ch; color: var(--steel); margin: 0 0 1rem; }

.card {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 8px 24px rgba(0, 0, 0, .3);
}
.card-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .8rem; }
.card-h .eyebrow { font-size: .68rem; }

/* overview */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.stat { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--o2), var(--o2-dark)); }
.stat .k { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stat .v { font-size: 1.9rem; font-weight: 750; letter-spacing: -.02em; color: var(--o2); line-height: 1.15; }
.stat .v.ok { font-size: 1.4rem; }
.stat .s { color: var(--muted); font-size: .84rem; }
.stat.big { background: linear-gradient(135deg, #0f2a1f, var(--panel)); }
.stat.big .v { font-size: 2.6rem; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 1rem 0 0; padding: 0; color: var(--muted); font-size: .85rem; }
.legend li { display: flex; align-items: center; gap: .45rem; }
.sw { display: inline-block; width: 26px; height: 10px; border-radius: 5px; }
.sw.w { background: linear-gradient(90deg, var(--o2-deep), var(--o2)); }
.sw.a { background: repeating-linear-gradient(135deg, var(--steel) 0 4px, #5f776b 4px 8px); }
.sw.r { background: rgba(169, 217, 193, .35); border: 1px solid var(--mint); }

/* definition */
.def-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.def-card { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.formula { display: inline-flex; flex-direction: column; align-items: center; margin: .6rem 0 1rem; font-size: 1.05rem; }
.formula .div { width: 100%; height: 3px; background: var(--o2); margin: .35rem 0; border-radius: 2px; }
.formula .num { color: var(--o2); font-weight: 650; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.chips li { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg2); font-size: .85rem; color: var(--steel); }
.chips li b { color: var(--o2); }
.weight-demo { display: grid; gap: .5rem; margin: .5rem 0 .9rem; }
.weight-demo > div { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: .6rem; color: var(--muted); font-size: .85rem; }
.notes { margin: 0; padding-left: 1.4rem; display: grid; gap: .7rem; max-width: 100ch; }
.notes li::marker { color: var(--o2); font-weight: 700; }

/* bars */
.bar { display: block; position: relative; height: 12px; border-radius: 7px; background: var(--track); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); overflow: hidden; min-width: 40px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bar i { display: block; width: var(--w); height: 100%; border-radius: 7px; background: linear-gradient(180deg, #4df0a6, var(--o2-deep)); }
.bar.a i { background: repeating-linear-gradient(135deg, var(--steel) 0 5px, #6f877b 5px 10px); }
.bar.tall { height: 18px; margin: .3rem 0 .5rem; }
.bar::after { /* quarter ticks */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(5, 12, 10, .55) calc(25% - 1px) 25%);
}
.runtime { display: block; height: 10px; width: var(--rw); min-width: 6px; border-radius: 6px; background: #17382b; overflow: hidden; border: 1px solid #2b5a47; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.runtime i { display: block; height: 100%; width: var(--sw); min-width: 2px; background: var(--o2); }
.duo { display: grid; gap: 4px; min-width: 140px; }

/* tables */
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.scroll:focus-visible { outline-offset: 2px; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data caption { text-align: left; padding: .8rem 1rem; color: var(--muted); font-size: .84rem; caption-side: top; }
.data th, .data td { padding: .6rem .8rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.data thead th { position: static; font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg2); vertical-align: bottom; }
.data thead th code { text-transform: none; letter-spacing: 0; }
.data tbody th { font-weight: 600; min-width: 11rem; }
.data tbody tr:hover { background: rgba(47, 224, 143, .05); }
.data .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data .strong { color: var(--o2); font-weight: 700; }
.data .barcell { min-width: 150px; width: 22%; vertical-align: middle; }
.data .sub { margin-top: .1rem; }

.badge { display: inline-block; padding: .08rem .55rem; border-radius: 999px; font: 600 .72rem var(--mono); border: 1px solid var(--line); }
.badge.published { background: var(--o2-dark); color: #eafff4; border-color: var(--o2); }
.badge.ready { color: var(--o2); border-color: var(--o2-deep); background: transparent; }
.badge.dropped { color: var(--amber); border-color: #7a5d1f; background: rgba(233, 184, 74, .08); }

/* creator cards */
.creator-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 1rem; margin-top: 1.4rem; }
.creator .ranks { margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.ranks span { font: 600 .72rem var(--mono); padding: .12rem .5rem; border: 1px solid var(--line); border-radius: 999px; color: var(--steel); }
.pair { display: grid; gap: .6rem; }
.pair-row { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; align-items: baseline; }
.pair-row .bar { grid-column: 1 / -1; }
.pair-row .pl { font-size: .84rem; color: var(--muted); }
.pair-row .pv { font: 700 1.05rem var(--mono); color: var(--text); }
.range { position: relative; height: 22px; margin: .9rem 0 .2rem; }
.range .track { position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: var(--track); }
.range .span { position: absolute; top: 6px; height: 10px; left: var(--l); right: var(--r); border-radius: 5px; background: rgba(169, 217, 193, .3); border: 1px solid var(--mint); min-width: 6px; }
.range .mk { position: absolute; left: var(--x); top: 1px; width: 14px; height: 20px; margin-left: -7px; border-radius: 4px; }
.range .mk.w { background: var(--o2); box-shadow: 0 0 8px rgba(47, 224, 143, .7); }
.range .mk.a { background: var(--bg); border: 3px solid var(--steel); }
.range-cap { margin: .2rem 0 .8rem; color: var(--muted); font-size: .82rem; }
.kv { margin: .6rem 0 0; display: grid; gap: .5rem .9rem; }
.kv.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kv > div { min-width: 0; border-top: 1px dashed var(--line); padding-top: .4rem; }
.kv .wide { grid-column: 1 / -1; }
.kv dt { font: .7rem var(--mono); color: var(--muted); }
.kv dt code { color: var(--muted); font-size: 1em; }
.kv dd { margin: .05rem 0 0; overflow-wrap: anywhere; font-size: .9rem; }
.kv dd ul { margin: 0; padding-left: 1.1rem; }
.kv .flag { border-top-color: #7a5d1f; }
.kv .flag dt { color: var(--amber); font-family: var(--sans); font-size: .78rem; }
.path { font-size: .78rem; }

.phrases { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.phrases li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .6rem; align-items: baseline; }
.phrases .bar { grid-column: 1 / -1; height: 8px; }
.phrases .ph { overflow-wrap: anywhere; }
.phrases .pc { font: 700 .9rem var(--mono); color: var(--o2); }
.phrases li.like { color: var(--muted); }
.phrases li.like .bar i { background: repeating-linear-gradient(135deg, #496658 0 4px, #2c4439 4px 8px); }
.phrases li.like .pc { color: var(--muted); }
.phrases li.top .ph { color: var(--o2); font-weight: 700; }
.phrases li.like .ph::after { content: " (excluded from top phrase)"; font-size: .72rem; color: var(--muted); }
.phrases li.top .ph::after { content: " top"; font: .66rem var(--mono); text-transform: uppercase; margin-left: .3rem; padding: .02rem .35rem; border: 1px solid var(--o2-deep); border-radius: 6px; }

/* rankings */
.rank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.rank h3 { margin-bottom: .1rem; }
.ranklist { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .55rem; }
.ranklist li { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr) auto; gap: .1rem .5rem; align-items: baseline; }
.ranklist .rk { font: 800 1rem var(--mono); color: var(--o2); }
.ranklist .rv { font: 700 .9rem var(--mono); }
.ranklist .bar { grid-column: 2 / -1; height: 9px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.bignum { font-size: 3rem; margin: .3rem 0; font-weight: 800; color: var(--muted); letter-spacing: -.03em; }

/* timeline */
.timeline { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .5rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow-x: auto; }
.timeline .scale { display: flex; flex-direction: column; justify-content: space-between; height: 260px; font: .7rem var(--mono); color: var(--muted); }
.timeline .cols { display: grid; grid-template-columns: repeat(var(--n), minmax(46px, 1fr)); min-width: calc(var(--n) * 46px); background:
  repeating-linear-gradient(180deg, transparent 0 calc(25% - 1px), rgba(28, 58, 46, .8) calc(25% - 1px) 25%); }
.timeline .col { display: flex; flex-direction: column; align-items: center; }
.timeline .plot { position: relative; height: 260px; width: 100%; border-left: 1px solid rgba(28, 58, 46, .6); }
.timeline .dot {
  position: absolute; bottom: calc(var(--y) - 11px); left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font: 700 .58rem var(--mono); color: #03130b; background: var(--o2); border: 2px solid #b9ffd9; box-shadow: 0 0 10px rgba(47, 224, 143, .5);
}
.timeline .dot.ready { background: var(--bg); color: var(--o2); border-color: var(--o2); box-shadow: none; }
.timeline .dot.dropped { background: var(--bg); color: var(--amber); border: 2px dashed var(--amber); box-shadow: none; opacity: .8; }
.timeline .dot:nth-child(2) { margin-left: 14px; }
.timeline .dot:nth-child(3) { margin-left: -14px; }
.timeline .dot:nth-child(4) { margin-left: 28px; }
.timeline .d { font: .66rem var(--mono); color: var(--muted); margin-top: .35rem; }

/* streams */
.stream-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 1rem; }
.stream { position: relative; border-left: 4px solid var(--o2-deep); }
.stream.published { border-left-color: var(--o2); }
.stream.dropped { border-left-color: var(--amber); }
.big-pct { text-align: right; flex: none; }
.big-pct b { display: block; font: 800 1.8rem/1 var(--mono); color: var(--o2); letter-spacing: -.04em; }
.big-pct span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.chips.pub li { padding: .25rem .65rem; font-size: .8rem; }
.chips.pub li.on { border-color: var(--o2); background: rgba(47, 224, 143, .1); }
.chips.pub li.off { color: var(--muted); border-style: dashed; text-decoration: line-through; text-decoration-color: rgba(148, 176, 162, .4); }
.chips.pub a { text-decoration: none; font-weight: 600; }
.chips.pub a::after { content: " \2197"; }
.creator-h small { font-weight: 400; }

.foot { padding: 1rem 0 3rem; color: var(--muted); font-size: .85rem; }
.foot .tube { margin: 1rem 0; }

/* ---------- site nav ---------- */
.site { border-bottom: 1px solid var(--line); background: rgba(5, 12, 10, .85); }
.bar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; padding: .7rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.05rem; color: var(--text); text-decoration: none; padding: .3rem .1rem; border-bottom: 3px solid transparent; }
.brand b { color: var(--o2); font-weight: 800; }
.brand .mark { position: relative; width: 14px; height: 26px; border-radius: 7px 7px 3px 3px; background: linear-gradient(90deg, #5be6a6, #0d7f4a); box-shadow: 0 0 10px rgba(47, 224, 143, .5); }
.brand .mark::before { content: ""; position: absolute; left: 4px; top: -5px; width: 6px; height: 5px; border-radius: 2px; background: #cfe0d7; }
.brand[aria-current="page"] { border-bottom-color: var(--o2); }
.mainnav { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.mainnav a {
  display: inline-block; padding: .45rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 500;
}
.mainnav a:hover { border-color: var(--o2); color: var(--o2); }
.mainnav a[aria-current="page"] { background: var(--o2); border-color: var(--o2); color: #03130b; font-weight: 700; box-shadow: 0 0 14px rgba(47, 224, 143, .35); }
.top.slim { padding-top: 1.6rem; }
.pagehead h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.top.slim .lede { margin-bottom: .4rem; }
.top.slim .meta { margin-bottom: 0; }
.footnav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0 0 .8rem; }
.footnav a { color: var(--steel); }

/* ---------- home ---------- */
.statboxes { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.statbox {
  position: relative; display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.2rem 1.3rem 1.1rem; text-decoration: none; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, #123325, var(--panel) 60%); box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.statbox::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--o2), var(--o2-dark)); }
.statbox:hover, .statbox:focus-visible { border-color: var(--o2); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(47, 224, 143, .18); color: var(--text); }
.statbox .rk { font: 800 .8rem var(--mono); color: var(--o2); letter-spacing: .1em; }
.statbox .nm { font-size: 1.35rem; font-weight: 750; letter-spacing: -.01em; }
.statbox .k { margin-top: .5rem; font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.statbox .big { font-size: 2.8rem; font-weight: 800; line-height: 1.05; color: var(--o2); letter-spacing: -.03em; }
.statbox .tp { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.25rem; font-weight: 650; }
.statbox .tp.none { font-size: .95rem; font-weight: 400; color: var(--muted); }
.statbox .go { margin-top: .7rem; font-size: .85rem; color: var(--o2); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; }
.tile { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); text-decoration: none; }
.tile b { color: var(--o2); font-size: 1.1rem; }
.tile span { color: var(--muted); font-size: .9rem; }
.tile:hover { border-color: var(--o2); }

/* ---------- filters (no JavaScript) ---------- */
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1rem; padding: 0; border: 0; }
.filter legend { float: left; margin-right: .6rem; padding: 0; font: 600 .75rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); line-height: 2.4; }
.filter input, .toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.filter label, .toggle label { display: inline-block; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); cursor: pointer; font-size: .88rem; }
.filter label:hover, .toggle label:hover { border-color: var(--o2); }
.filter input:checked + label, .toggle input:checked + label { background: var(--o2); border-color: var(--o2); color: #03130b; font-weight: 700; }
.filter input:focus-visible + label, .toggle input:focus-visible + label { outline: 3px solid var(--o2); outline-offset: 3px; }
.toggle { position: relative; margin: 1.2rem 0 0; }
.toggle input:not(:checked) + label::before, .toggle input:checked + label::before { content: "\2713\00a0"; }
.toggle input:not(:checked) + label::before { content: "\2715\00a0"; }
.filterable { margin-top: .4rem; }
.filterable .scroll { margin-bottom: 0; }
main:has(#f-published:checked) .filterable [data-status]:not([data-status="published"]),
main:has(#f-ready:checked) .filterable [data-status]:not([data-status="ready"]),
main:has(#f-dropped:checked) .filterable [data-status]:not([data-status="dropped"]) { display: none; }
main:has(#f-published:checked) .group:not(:has([data-status="published"])),
main:has(#f-ready:checked) .group:not(:has([data-status="ready"])),
main:has(#f-dropped:checked) .group:not(:has([data-status="dropped"])) { display: none; }
main:has(#show-like:not(:checked)) .phrases li.like { display: none; }

/* ---------- details / summary ---------- */
details.more { margin: .9rem 0 .4rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(5, 12, 10, .4); }
details.more > summary { cursor: pointer; padding: .55rem .8rem; font: 600 .78rem var(--mono); letter-spacing: .04em; color: var(--steel); list-style: none; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; display: inline-block; width: 1rem; color: var(--o2); font-weight: 800; }
details.more[open] > summary::before { content: "\2212"; }
details.more > summary:hover { color: var(--o2); }
details.more > .kv { padding: 0 .8rem .8rem; margin: 0; }
.stream-fp > summary { font-family: var(--sans); font-size: .9rem; font-weight: 600; letter-spacing: 0; color: var(--text); }
.stream-fp .sm { font: 400 .75rem var(--mono); color: var(--muted); }
.fp-body { padding: 0 .9rem .8rem; }
.stream-fp { margin: .6rem 0; }
.gaplist { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--amber); font-size: .84rem; }

/* ---------- creators / filler pages ---------- */
.creator-grid.focusable { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.creator, .stream, .fcreator, .stream-fp { scroll-margin-top: 1rem; }
.creator:target, .stream:target, .fcreator:target, .stream-fp:target {
  border-color: var(--o2); background: linear-gradient(180deg, #14402e, #0c241b);
  box-shadow: 0 0 0 2px var(--o2), 0 0 44px rgba(47, 224, 143, .35);
}
.creator:target::after, .stream:target::after, .fcreator:target::after {
  content: "Selected"; position: absolute; right: 1rem; bottom: .7rem; font: 700 .68rem var(--mono); text-transform: uppercase; letter-spacing: .1em;
  padding: .1rem .5rem; border-radius: 999px; background: var(--o2); color: #03130b;
}
.creator, .fcreator { position: relative; }
.focusable:has(:target) .creator:not(:target) { opacity: .72; transition: opacity .15s; }
.focusable:has(:target) .creator:not(:target):hover, .focusable:has(:target) .creator:not(:target):focus-within { opacity: 1; }
.slist { list-style: none; margin: 0 0 .4rem; padding: 0; display: grid; gap: .4rem; font-size: .9rem; }
.slist li { border-left: 2px solid var(--o2-deep); padding-left: .6rem; }

.coming {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .9rem;
}
.coming-card {
  display: grid; gap: .35rem; padding: 1rem 1.05rem;
  border: 1px dashed rgba(47, 224, 143, .35); border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 40, 31, .55), rgba(8, 16, 12, .7));
}
.coming-card .eyebrow { margin: 0; color: var(--o2); letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; font-weight: 700; }
.coming-card .nm { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.coming-card .sub { color: var(--muted); font-size: .85rem; }
.support-actions { margin: 0 0 1.1rem; }
.bmc-btn, .contact-btn {
  --bmc: #40dca5;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .7rem 1.15rem; border-radius: 999px;
  background: var(--bmc); color: #03130b; font-weight: 800; text-decoration: none;
  border: 1px solid #9af5d2; box-shadow: 0 0 18px rgba(64, 220, 165, .28);
}
.bmc-btn:hover, .contact-btn:hover { filter: brightness(1.06); color: #03130b; }
.bmc-btn:focus-visible, .contact-btn:focus-visible { outline-color: var(--bmc); }
.contact-btn { background: transparent; color: var(--o2); border-color: var(--o2-deep); box-shadow: none; }
.contact-btn:hover { background: rgba(47, 224, 143, .1); filter: none; color: var(--o2); }
.contact-card { max-width: 40rem; }
#contact { scroll-margin-top: 1rem; }
.support-wallets {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .55rem; max-width: 58rem;
}
.support-wallets li {
  display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: .55rem .75rem;
  align-items: start; padding: .75rem .9rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
}
.support-wallets .wlab {
  font: 800 .78rem var(--mono); letter-spacing: .06em; color: #40dca5; padding-top: .15rem;
}
.support-wallets .waddr {
  display: block; font: 650 .82rem/1.45 var(--mono); color: var(--text);
  overflow-wrap: anywhere; user-select: all;
}
@media (max-width: 520px) {
  .support-wallets li { grid-template-columns: 1fr; }
}
.fcreators { display: grid; gap: 1.2rem; }
.fgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.6rem; }
.big-pct b.ph-big { font: 750 1.15rem/1.2 var(--sans); letter-spacing: 0; max-width: 16rem; }
.placeholder { border-style: dashed; border-color: var(--amber); }
.placeholder-line { color: var(--muted); font-style: italic; margin: .5rem 0; }
.ranklist.plain { margin-top: .6rem; }
.pagehead .meta { margin-top: .4rem; }
section[id] { scroll-margin-top: 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .statboxes { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; padding: 0; }
  .tank { width: 60px; height: 160px; }
  .tank .label { top: 70px; font-size: 1.1rem; left: 8px; right: 8px; }
  .tank .collar { top: 36px; }
  .gauge.xl { --size: 170px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .bar-row { flex-direction: column; align-items: flex-start; }
  .mainnav a { padding: .4rem .8rem; font-size: .88rem; }
  .statbox .big { font-size: 2.3rem; }
  .creator-grid.focusable { grid-template-columns: 1fr; }
  body { font-size: 15px; }
  section { padding-top: 2.4rem; }
  .kv.two { grid-template-columns: 1fr; }
  .card { padding: .95rem; }
  .card-h { flex-direction: column-reverse; align-items: stretch; }
  .big-pct { text-align: left; }
  .creator .gauge { align-self: flex-start; }
  .stat.big, .stat:last-child { grid-column: 1 / -1; }
  .stat { padding: .8rem .9rem; }
  .stat .v { font-size: 1.6rem; }
  .stat.big .v { font-size: 2.1rem; }
  .data tbody th { min-width: 9rem; }
}
@media (min-width: 1500px) {
  .wrap { width: min(100% - 4rem, 1480px); }
  body { font-size: 17px; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .bar i { animation: fill .9s cubic-bezier(.2, .7, .2, 1) both; transform-origin: left; }
  .runtime i { animation: fill .9s cubic-bezier(.2, .7, .2, 1) both; transform-origin: left; }
  .tank .valve::after { animation: pulse 2.6s ease-in-out infinite; }
  .statbox { animation: rise .5s ease both; }
  .statboxes li:nth-child(2) .statbox { animation-delay: .08s; }
  .statboxes li:nth-child(3) .statbox { animation-delay: .16s; }
  .creator:target, .stream:target, .fcreator:target { animation: glow 1.2s ease-out; }

  /* Dial fill-up as the gauge scrolls into view (CSS scroll-driven). Fidget excluded. */
  @supports (animation-timeline: view()) {
    .gauge:not(.fidget) {
      animation-name: gauge-fill;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
  /* Tiny JS fallback (gauges.js) only when scroll timelines are missing. */
  @supports not (animation-timeline: view()) {
    .gauge.js-dial:not(.fidget) { --fill: 0; }
    .gauge.js-dial.in-view:not(.fidget) { animation: gauge-fill .95s cubic-bezier(.2, .8, .2, 1) both; }
  }

  button.gauge.fidget.bump { animation: fidget-bump .18s ease-out; }
  button.gauge.fidget .needle { transition: transform .05s linear; }

  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
  @keyframes glow { from { box-shadow: 0 0 0 2px var(--o2), 0 0 90px rgba(47, 224, 143, .8); } }
  @keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes pulse { 50% { opacity: .35; } }
  @keyframes gauge-fill { from { --fill: 0; } to { --fill: 1; } }
  @keyframes fidget-bump { 50% { transform: scale(1.035); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gauge:not(.fidget), .gauge.js-dial, .gauge.js-dial.in-view { --fill: 1; animation: none !important; }
  button.gauge.fidget, button.gauge.fidget.bump { animation: none !important; }
  button.gauge.fidget .needle { transition: none; }
  .statbox { transition: none; }
  .statbox:hover, .statbox:focus-visible { transform: none; }
}
@media print {
  .gauge { --fill: 1; animation: none !important; }
}
@media (forced-colors: active) {
  .bar i, .runtime i, .gauge { forced-color-adjust: none; }
}

/* ---------- print ---------- */
@media print {
  :root { --bg: #fff; --bg2: #f2f6f4; --panel: #fff; --panel2: #fff; --line: #b7c9c1; --text: #0b1a13; --muted: #3c5247; --steel: #1d3328; --mint: #0a5a35; --track: #dfe9e4; --o2: #0a7a46; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #064d2c; }
  .mainnav, .footnav, .filter, .toggle, .skip, .tank, .tube { display: none; }
  .site { background: #fff; }
  .statboxes { grid-template-columns: repeat(3, 1fr); }
  .statbox { background: #fff; box-shadow: none; }
  .focusable:has(:target) .creator:not(:target) { opacity: 1; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
  .card, .stat, .scroll { box-shadow: none; break-inside: avoid; background: #fff; }
  .scroll { overflow: visible; }
  section { padding-top: 1.4rem; }
  h2 { break-after: avoid; }
  .gauge { box-shadow: none; border: 1px solid #999; }
  .gauge .face { background: #fff; }
  .gauge .face b { color: #000; }
  .big-pct b, .stat .v, .strong { color: #064d2c; }
  .creator-grid, .stream-grid, .rank-grid { grid-template-columns: 1fr 1fr; }
  .data { font-size: 8.5pt; }
  h1 span { text-shadow: none; }
}
