/* VALVE. One liquid (the creator fees, in the wheel's orange), one ruler, quiet surfaces. */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/inter-tight-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/inter-tight-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/assets/fonts/dm-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/assets/fonts/dm-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --page: #eef0ef;
  --surface: #fdfcf9;
  --row: #f6f4ef;
  --ink: #17171b;
  --slate: #565d65;
  --line: rgba(23, 23, 27, .11);
  --flow: #fb6413;
  --flow-deep: #a63c04;
  --dry: #a7acb1;
  --good: #1d6b41;
  --bad: #a8220f;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --decel: cubic-bezier(.05, .7, .1, 1);
  --accel: cubic-bezier(.3, 0, .8, .15);
  --md: cubic-bezier(.4, 0, .2, 1);
  --bar: 3.9rem;
  --gap: 1rem;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  /* tints */
  --ink-hover: #34343b;
  --flow-hover: #ff7d33;
  --flow-light: #ffab7a;
  --sky: #e4e9ec;
  --row-hover: #ebe7de;
  --blank: #dfe2e3;
  --cream-dim: #d9d5cb;
  --cream: #ede6d6;
  --cream-faint: #b4b0a7;
  --track: #e3e0d8;
  --good-wash: #e6f1e8;
  --bad-wash: #fbe7e1;
  --flow-pale: #ffb98f;
  --ink-09: rgba(23, 23, 27, .09);
  --ink-35: rgba(23, 23, 27, .35);
  --ink-50: rgba(23, 23, 27, .5);
  --paper-80: rgba(253, 252, 249, .8);
  --ink-40: rgba(23, 23, 27, .4);
  --paper-90: rgba(253, 252, 249, .9);
  --ink-55: rgba(23, 23, 27, .55);
  --ink-60: rgba(23, 23, 27, .6);
  --ink-70: rgba(23, 23, 27, .7);
  /* spacing scale, quarter rems */
  --s-half: 0.125rem; --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.25rem; --s6: 1.5rem; --s7: 1.75rem; --s8: 2rem; --s9: 2.25rem; --s10: 2.5rem; --s11: 2.75rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: clamp(15px, 7px + .55vw, 20.5px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 .95rem/1.5 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--flow-deep); text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--flow-deep); outline-offset: 2px; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-size: .92em; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: .6rem; z-index: 80; background: var(--ink); color: var(--surface); padding: var(--s2) var(--s4); border-radius: 99px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 2.5rem; padding: 0 var(--s5); border: 1px solid var(--ink); border-radius: 99px; background: var(--ink); color: var(--surface); font-weight: 600; font-size: .93rem; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s var(--md), color .2s var(--md), border-color .2s var(--md), transform .15s var(--md); }
.btn:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: transparent; border-color: var(--line); color: var(--slate); cursor: not-allowed; transform: none; }
.btn.big { min-height: 3.4rem; padding: 0 var(--s7); font-size: 1.05rem; }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.quiet:hover { border-color: var(--ink); background: transparent; }
.btn.flow { background: var(--flow); border-color: var(--flow); color: var(--ink); }
.btn.flow:hover { background: var(--flow-hover); border-color: var(--flow-hover); }
.btn.small { min-height: 2rem; padding: 0 var(--s3); font-size: .85rem; }
.textbtn { background: none; border: 0; padding: var(--s1) 0; color: var(--flow-deep); font-weight: 600; cursor: pointer; }

/* ---------- header ---------- */
.top { position: relative; z-index: 30; height: var(--bar); display: flex; align-items: center; gap: var(--s6); padding: 0 var(--gap); background: var(--surface); box-shadow: 0 1px 4px var(--ink-09); }
.brand { display: flex; align-items: center; gap: var(--s2); text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.02em; }
.brand img { width: 2.35rem; height: 2.35rem; border-radius: 50%; }
.brand.busy img { animation: turn 1.9s cubic-bezier(.66, 0, .34, 1) infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.nav { display: flex; gap: var(--s1); }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: var(--s2) var(--s3); border-radius: 99px; transition: background-color .15s var(--md); }
.nav a:hover { background: var(--row); }
.nav a[aria-current="page"] { background: var(--row); font-weight: 600; }
.actions { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
.ico { position: relative; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; color: var(--ink); transition: background-color .15s var(--md); }
.ico:hover { background: var(--row); }
.ico svg { width: 1.2rem; height: 1.2rem; }
.ca { display: inline-flex; align-items: center; gap: var(--s2); height: 2.5rem; padding: 0 var(--s4); border: 1px solid var(--line); border-radius: 99px; background: transparent; cursor: pointer; font-family: var(--mono); font-size: .82rem; white-space: nowrap; }
.ca:hover { border-color: var(--ink); }
#caSlot { display: flex; align-items: center; gap: var(--s2); }
.more { display: block; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.more:hover { background: var(--row); }
.more svg { margin: auto; width: 1.2rem; height: 1.2rem; }
.menu { position: fixed; z-index: 50; right: var(--gap); top: calc(var(--bar) + .4rem); min-width: 15rem; background: var(--surface); border-radius: 16px; padding: var(--s2); box-shadow: 0 18px 50px -18px var(--ink-35); animation: pop .2s var(--ease); }
.menu a, .menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s3) var(--s4); border: 0; border-radius: 8px; background: none; color: var(--ink); text-decoration: none; font-weight: 500; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--row); }
.menu.out { animation: pop-out .2s var(--ease) forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(-8px); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(-8px); } }
.scrim { position: fixed; inset: 0; z-index: 45; }
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + .4rem); transform: translateX(-50%); background: var(--ink); color: var(--surface); font: 500 .75rem/1.35 "Inter", sans-serif; padding: var(--s1) var(--s2); border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s var(--md); z-index: 40; }
[data-tip]:hover::after { opacity: 1; transition-delay: .8s; }
[data-tip]:focus-visible::after { opacity: 1; transition-delay: 0s; }
.actions [data-tip]:last-of-type::after { left: auto; right: 0; transform: none; }

.cover { position: fixed; inset: var(--bar) 0 0; z-index: 25; background: var(--page); pointer-events: none; opacity: 0; }
.cover.lift { animation: lift .28s var(--md) both; }
.cover.drop { animation: drop .2s var(--md) both; }
@keyframes lift { from { opacity: 1; } to { opacity: 0; } }
@keyframes drop { from { opacity: 0; } to { opacity: 1; } }
.toast { position: fixed; z-index: 70; left: 50%; bottom: 1.2rem; transform: translateX(-50%); max-width: min(34rem, calc(100vw - 2rem)); background: var(--ink); color: var(--surface); border-radius: 16px; padding: var(--s3) var(--s5); font-weight: 500; box-shadow: 0 18px 50px -18px var(--ink-50); animation: toast .4s var(--decel); }
.toast a { color: var(--flow-light); }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- the tank ---------- */
.tank { position: relative; overflow: hidden; background: var(--sky); isolation: isolate; }
.tank canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ruler { position: absolute; left: 0; top: 0; bottom: 0; width: 2.9rem; z-index: 2; background: var(--paper-80); border-right: 1px solid var(--line); }
.ruler i { position: absolute; right: 0; width: .45rem; height: 1px; background: var(--ink-40); }
.ruler i.major { width: .85rem; background: var(--ink); }
.ruler b { position: absolute; left: .3rem; transform: translateY(-50%); font: 400 .66rem/1 var(--mono); color: var(--ink); }
.base { position: absolute; left: 2.9rem; right: 0; height: 2px; background: var(--ink); z-index: 2; }
.level { position: absolute; top: 0; left: 2.9rem; right: 0; height: 0; z-index: 3; transition: transform .35s var(--decel); }
.level::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; border-top: 2px dashed var(--ink-50); }
.level .chip { position: absolute; left: 1.1rem; top: 0; transform: translateY(-50%); display: inline-flex; align-items: center; gap: var(--s2); height: 2.2rem; padding: 0 var(--s3); background: var(--surface); border: 1px solid transparent; border-radius: 8px; font-weight: 500; font-size: .87rem; white-space: nowrap; box-shadow: 0 6px 18px -10px var(--ink-50); transition: border-color .2s var(--md), transform .15s var(--md); }
.level .chip b { font-weight: 700; font-variant-numeric: tabular-nums; }
.level .chip svg { width: .85rem; height: .85rem; opacity: .6; }
button.chip { cursor: ns-resize; touch-action: none; }
button.chip:hover, button.chip.held { border-color: var(--ink); }
.level.fixed .chip { cursor: default; }
.tank.dragging .level { transition: none; }
.pause { position: absolute; z-index: 4; right: .9rem; bottom: .9rem; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--paper-90); cursor: pointer; }
.pause svg { width: .9rem; height: .9rem; }

/* ---------- home: one split screen ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: calc(100svh - var(--bar) - 5.6rem); min-height: 34rem; }
.split .tank { height: 100%; }
.pitch { background: var(--surface); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--s6); padding: var(--s8) var(--s8) var(--s11) clamp(1.5rem, 5vw, 6.5rem); }
.pitch h1 { font-size: clamp(2.3rem, 3.85vw, 6rem); line-height: 1.05; letter-spacing: -.025em; max-width: 9.6em; }
.pitch p { max-width: 31rem; color: var(--slate); font-size: 1.03rem; }
.pitch .row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); }
.pitch .hint { font-size: .8rem; }

/* ---------- bottom panel: the last 48 hours ---------- */
.panel { position: relative; z-index: 5; margin: calc(-1 * var(--s4)) var(--gap) 0; background: var(--surface); border-radius: 16px; padding: var(--s4) var(--s5) var(--s4); box-shadow: 0 10px 40px -28px var(--ink-55); }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s4); }
.panel-head h2 { font-size: 1.05rem; }
.panel-head .sum { font-variant-numeric: tabular-nums; color: var(--slate); }
.panel-head .expand { margin-left: auto; }
.hours { position: relative; display: grid; grid-template-columns: repeat(48, minmax(0, 1fr)); gap: 2px; align-items: end; height: 3.6rem; margin-top: var(--s3); }
.hours span { position: relative; height: 100%; display: flex; align-items: flex-end; border-radius: 3px; background: var(--row); }
.hours span i { display: block; width: 100%; height: 100%; background: var(--flow); clip-path: inset(100% 0 0 0); transition: clip-path .4s var(--decel); }
.hours span:hover { background: var(--row-hover); }
.hours span.now::after { content: ""; position: absolute; right: -3px; top: -.35rem; bottom: -.35rem; width: 2px; background: var(--bad); }
.hours-axis { display: flex; justify-content: space-between; gap: var(--s4); margin-top: var(--s2); font-size: .76rem; color: var(--slate); }
.hourtip { position: absolute; bottom: calc(100% + .35rem); transform: translateX(-50%); background: var(--ink); color: var(--surface); font-size: .75rem; padding: var(--s1) var(--s2); border-radius: 8px; white-space: nowrap; pointer-events: none; z-index: 6; }
.drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--accel); }
.drawer > div { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s linear .3s; }
.drawer.open { grid-template-rows: 1fr; transition: grid-template-rows .4s var(--decel); }
.drawer.open > div { visibility: visible; transition: none; }
.moves { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s1); }
.moves li { display: grid; grid-template-columns: 2.2rem minmax(0, 1.4fr) minmax(0, 1.4fr) auto auto; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3); background: var(--row); border-radius: 8px; }
.moves img, .moves .ph { width: 2.2rem; height: 2.2rem; border-radius: 50%; object-fit: cover; background: var(--blank); }
.moves a.coinlink { color: var(--ink); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moves .what { color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moves .amt { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
.moves .proof { font-size: .82rem; white-space: nowrap; text-align: right; min-width: 6.5rem; }
.empty { padding: var(--s4) 0 var(--s1); color: var(--slate); max-width: 68ch; }
.panel .empty { padding-top: var(--s3); }

/* ---------- sections below the fold ---------- */
.block { padding: clamp(3.2rem, 7vw, 7rem) var(--gap) 0; }
.block > header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s6); }
.block h2.title { font-size: clamp(1.9rem, 3vw, 3.4rem); line-height: 1.08; letter-spacing: -.025em; }
.coinrows { display: grid; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.coinrows a { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) minmax(0, 2fr) minmax(7rem, auto); align-items: center; gap: var(--s4); padding: var(--s3) var(--s4) var(--s3) var(--s3); background: var(--surface); border-radius: 16px; color: var(--ink); text-decoration: none; transition: transform .25s var(--ease); }
.coinrows a:hover { transform: translateX(.4rem); }
.coinrows img { width: 3.2rem; height: 3.2rem; border-radius: 50%; object-fit: cover; background: var(--row); }
.coinrows .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coinrows .nm small { display: block; font-weight: 400; color: var(--slate); font-size: .83rem; }
.coinrows .num { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.coinrows .num small { display: block; font-weight: 400; color: var(--slate); font-size: .83rem; }
.stack { display: flex; height: 1.1rem; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--surface); }
.stack i { display: block; height: 100%; }
.stack-key { display: flex; flex-wrap: wrap; gap: var(--s-half) var(--s4); margin-top: var(--s2); font-size: .8rem; color: var(--slate); }
.void { background: var(--surface); border-radius: 16px; padding: clamp(1.6rem, 4vw, 3rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s6); }
.void p { max-width: 34rem; font-size: 1.08rem; }
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s8); }
.columns h3 { font-size: 1.07rem; color: var(--slate); margin-bottom: var(--s3); }
.columns p + p { margin-top: var(--s3); }
.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) var(--s3); border-radius: 8px; }
.facts div:nth-child(odd) { background: var(--row); }
.facts dt { color: var(--slate); }
.facts dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }

/* the five taps, one row each: what it does, and who moves the money */
.kinds { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; border-radius: 16px; overflow: hidden; }
.kinds li { display: grid; grid-template-columns: 3.25rem minmax(0, 14rem) minmax(0, 1fr) minmax(0, 17rem); align-items: center; gap: var(--s2) var(--s6); background: var(--surface); padding: var(--s5) var(--s6); }
.kinds svg { width: 3.25rem; height: 3.25rem; }
.kinds h3 { font-size: 1.15rem; }
.kinds p { color: var(--slate); font-size: .95rem; max-width: 60ch; }
.kinds .how b { display: block; color: var(--ink); font-weight: 600; }
.kinds .line { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.kinds .wet { fill: var(--flow); }
.kinds .node { fill: var(--surface); stroke: var(--ink); stroke-width: 4; }
.kinds .node.wet { fill: var(--flow); }
.kinds .wet.edged { stroke: var(--ink); stroke-width: 4; }

footer.foot { margin-top: clamp(4rem, 8vw, 8rem); background: var(--ink); color: var(--cream-dim); padding: clamp(2rem, 4vw, 3.5rem) var(--gap) var(--s8); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s8); align-items: end; }
.foot strong { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 2.8vw, 3rem); line-height: 1.1; letter-spacing: -.025em; color: var(--cream); max-width: 18em; }
.foot p { margin-top: var(--s4); max-width: 68ch; font-size: .86rem; color: var(--cream-faint); }
.foot nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s2) var(--s6); }
.foot nav a { color: var(--cream); }

/* ---------- valve dials ---------- */
.dial { width: 5.2rem; height: 5.2rem; flex: none; }
.dial .track { fill: none; stroke: var(--track); stroke-width: 7; }
.dial .arc { fill: none; stroke: var(--flow); stroke-width: 7; stroke-linecap: butt; transition: stroke-dasharray .4s var(--decel); }
.dial .wheel { transform-origin: 50px 50px; fill: none; stroke: var(--dry); stroke-width: 5; stroke-linecap: round; }
.dial.on .wheel { stroke: var(--ink); animation: turn 9s linear infinite; }
.paused .dial.on .wheel { animation-play-state: paused; }

/* ---------- scene pages (launch, coin) ---------- */
.scene { position: relative; display: grid; min-height: calc(100svh - var(--bar)); }
.launch { grid-template-columns: minmax(0, 1fr) minmax(24rem, 36rem); background: var(--sky); }
.launch .stage { position: relative; }
.launch .tank { position: sticky; top: 0; height: calc(100svh - var(--bar)); min-height: 34rem; }
.scene-title { position: absolute; z-index: 4; left: 4.1rem; top: 1.1rem; right: 1rem; pointer-events: none; }
.scene-title h1 { font-size: clamp(1.9rem, 3vw, 3.6rem); line-height: 1.05; letter-spacing: -.025em; overflow-wrap: anywhere; }
.scene-title p { color: var(--slate); margin-top: var(--s1); font-weight: 500; }
.card { background: var(--surface); border-radius: 16px; margin: var(--gap); padding: var(--s5); box-shadow: 0 20px 55px -38px var(--ink-60); align-self: start; }
.card h2 { font-size: 1.15rem; margin-bottom: var(--s3); }
.card section + section { margin-top: var(--s7); }
.field { display: grid; gap: var(--s1); margin-bottom: var(--s3); }
.field > span { font-weight: 500; font-size: .88rem; }
.field input, .field textarea, .tapline input[type=text] { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--line); background: var(--row); border-radius: 8px; padding: var(--s3) var(--s3); transition: border-color .15s, background-color .15s; }
.field input:focus, .field textarea:focus, .tapline input:focus { border-color: var(--ink); background: var(--surface); }
.field textarea { resize: vertical; min-height: 4.2rem; }
.two { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--s3); }
.two.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.drop { display: flex; align-items: center; gap: var(--s4); padding: var(--s3); border: 1px dashed var(--ink-35); border-radius: 16px; cursor: pointer; margin-bottom: var(--s3); transition: border-color .15s, background-color .15s; }
.drop:hover, .drop.over { border-color: var(--ink); background: var(--row); }
.drop .shot { width: 4.4rem; height: 4.4rem; flex: none; border-radius: 50%; background: var(--row) center / cover; display: grid; place-items: center; }
.drop .shot svg { width: 1.4rem; height: 1.4rem; }
.drop b { display: block; font-weight: 600; }
.drop small { color: var(--slate); }
.drop:focus-within { outline: 2px solid var(--flow-deep); outline-offset: 2px; }
.tapline { display: grid; grid-template-columns: .55rem minmax(0, 1fr) auto auto; gap: var(--s1) var(--s3); align-items: center; padding: var(--s3) var(--s2) var(--s3) var(--s2); background: var(--row); border-radius: 8px; }
.tapline + .tapline { margin-top: var(--s1); }
.tapline .swatch { grid-column: 1; grid-row: 1; align-self: start; width: .55rem; height: .55rem; margin-top: var(--s2); border-radius: 50%; }
.tapline .nm { font-weight: 600; line-height: 1.3; }
.tapline .nm small { display: block; font-weight: 400; color: var(--slate); font-size: .79rem; line-height: 1.4; }
.tapline input[type=text] { grid-column: 2 / -1; background: var(--surface); font-family: var(--mono); font-size: .82rem; }
.stepper { display: flex; align-items: center; background: var(--surface); border-radius: 99px; padding: 2px; }
.stepper button { width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.stepper button:hover { background: var(--row); }
.stepper input { width: 2.5rem; border: 0; background: transparent; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; padding: 0; appearance: textfield; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper span { padding: 0 var(--s1) 0 var(--s-half); font-weight: 600; }
.rm { width: 2rem; height: 2rem; border: 0; background: transparent; border-radius: 50%; cursor: pointer; }
.rm:hover { background: var(--surface); }
.rm svg { margin: auto; width: .75rem; height: .75rem; }
.adders { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s3); }
.total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: var(--s3); padding: var(--s3) var(--s3); border-radius: 8px; background: var(--good-wash); color: var(--good); font-weight: 600; }
.total.off { background: var(--bad-wash); color: var(--bad); }
.total button { color: inherit; text-decoration: underline; }
.fine { font-size: .82rem; color: var(--slate); }
.card .go { width: 100%; margin-top: var(--s4); }
.formerr { min-height: 1lh; margin-top: var(--s2); color: var(--bad); font-weight: 500; }
.steps { grid-column: 1 / -1; }
.steps ol { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.steps li { background: var(--row); border-radius: 8px; padding: var(--s3) var(--s3) var(--s3); border-top: 4px solid var(--dry); transition: border-color .4s var(--decel); }
.steps li b { display: block; font-weight: 600; }
.steps li span { font-size: .83rem; color: var(--slate); }
.steps li.doing { border-color: var(--flow); }
.steps li.doing b::after { content: ""; display: inline-block; width: .75rem; height: .75rem; margin-left: var(--s2); border: 2px solid var(--flow); border-right-color: transparent; border-radius: 50%; animation: turn 1s linear infinite; }
.steps li.done { border-color: var(--good); }
.steps li.fail { border-color: var(--bad); }

/* coin scene: tank, pipes, taps */
.coin { grid-template-columns: minmax(0, 40fr) minmax(5rem, 20fr) minmax(21rem, 40fr); background: var(--sky); }
.coin .tank { position: relative; height: 100%; min-height: 36rem; background: transparent; }
.coin .tankwrap { position: relative; }
.coin .tankwrap .tank { position: absolute; inset: 0; }
.coin .scene-title { display: grid; gap: var(--s-half); }
.who { display: flex; align-items: center; gap: var(--s3); }
.who img { width: 3.4rem; height: 3.4rem; border-radius: 50%; object-fit: cover; background: var(--surface); pointer-events: auto; }
.routed { margin-top: var(--s3); font-family: var(--display); font-weight: 600; font-size: clamp(2.8rem, 5.4vw, 7rem); line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.routed small { font-size: .36em; letter-spacing: -.01em; margin-left: .25em; }
.scene-title p.routed { color: var(--ink); font-weight: 600; margin-top: var(--s3); }
.coin .scene-title .routed + p { margin-top: var(--s1); }
.title-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s3); pointer-events: auto; }
.title-links .btn { background: var(--surface); color: var(--ink); border-color: transparent; }
.title-links .btn:hover { border-color: var(--ink); }
.crank { position: absolute; z-index: 5; left: 4.1rem; bottom: 1.4rem; right: 4.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
.crank p { background: var(--surface); border-radius: 8px; padding: var(--s2) var(--s3); font-size: .82rem; max-width: 24rem; }
.pipes { position: relative; }
.pipes svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; }
.pipes .shell { fill: none; stroke: var(--surface); stroke-linejoin: round; }
.pipes .liquid { fill: none; stroke: var(--flow); stroke-linejoin: round; }
.pipes .stream { fill: none; stroke: var(--flow-pale); stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 10 22; animation: run 1.4s linear infinite; }
.pipes .dryline { fill: none; stroke: var(--dry); stroke-width: 2; stroke-dasharray: 3 6; }
.paused .pipes .stream { animation-play-state: paused; }
@keyframes run { to { stroke-dashoffset: -32; } }
.taps { position: relative; z-index: 4; display: flex; flex-direction: column; justify-content: center; gap: var(--s2); padding: var(--gap) var(--gap) var(--gap) 0; list-style: none; margin: 0; }
.taps li { display: flex; align-items: center; gap: var(--s4); background: var(--surface); border-radius: 16px; padding: var(--s3) var(--s4) var(--s3) var(--s3); box-shadow: 0 20px 45px -36px var(--ink-70); }
.taps .body { min-width: 0; flex: 1; }
.taps h3 { font-size: 1.08rem; display: flex; justify-content: space-between; gap: var(--s3); }
.taps h3 span:last-child { font-variant-numeric: tabular-nums; }
.taps .got { font-weight: 600; font-variant-numeric: tabular-nums; }
.taps .got.none { color: var(--slate); font-weight: 400; }
.taps p { font-size: .83rem; color: var(--slate); }
.taps p a { white-space: nowrap; }
.notice { grid-column: 1 / -1; margin: var(--gap) var(--gap) 0; padding: var(--s4) var(--s4); border-radius: 16px; background: var(--ink); color: var(--cream); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s6); justify-content: space-between; }
.coin-panel { margin-top: var(--gap); }

/* ---------- reading pages ---------- */
.lead { background: var(--surface); padding: clamp(2.5rem, 6vw, 6rem) var(--gap) clamp(2rem, 4vw, 3.5rem); }
.lead h1 { font-size: clamp(2.4rem, 5vw, 6rem); line-height: 1.04; letter-spacing: -.03em; max-width: 14em; }
.lead p { margin-top: var(--s5); max-width: 42rem; color: var(--slate); font-size: 1.08rem; }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: var(--s5) var(--s8); padding: var(--s10) var(--gap); border-top: 1px solid var(--line); }
.doc:first-of-type { border-top: 0; }
.doc h2 { font-size: clamp(1.5rem, 2.1vw, 2.3rem); letter-spacing: -.02em; line-height: 1.15; }
.doc .text { max-width: 68ch; }
.doc .text > * + * { margin-top: var(--s3); }
.doc ul, .doc ol { padding-left: var(--s5); margin: 0; }
.doc li + li { margin-top: var(--s2); }
.table { width: 100%; border-collapse: separate; border-spacing: 0 .3rem; font-size: .9rem; }
.table th { text-align: left; font-weight: 600; color: var(--slate); padding: var(--s1) var(--s3); }
.table td { background: var(--surface); padding: var(--s3) var(--s3); vertical-align: top; }
.table td:first-child { border-radius: 8px 0 0 8px; font-weight: 600; }
.table td:last-child { border-radius: 0 8px 8px 0; }
.big-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; border-radius: 16px; overflow: hidden; }
.big-numbers div { background: var(--surface); padding: var(--s5) var(--s5) var(--s6); }
.big-numbers b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 4vw, 4.6rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-bottom: var(--s2); }
.big-numbers span { color: var(--slate); font-size: .9rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.checks li { display: grid; grid-template-columns: .8rem minmax(0, 14rem) minmax(0, 1fr); gap: var(--s4); align-items: center; background: var(--surface); border-radius: 8px; padding: var(--s3) var(--s4); }
.checks i { width: .8rem; height: .8rem; border-radius: 50%; background: var(--dry); }
.checks i.up { background: var(--good); }
.checks i.down { background: var(--bad); }
.checks b { font-weight: 600; }
.checks span { color: var(--slate); }

.lead .row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s6); }
.lead.missing { min-height: calc(100svh - var(--bar) - 14rem); display: flex; flex-direction: column; justify-content: center; }
.resume { background: var(--ink); color: var(--cream); border-radius: 8px; padding: var(--s3) var(--s4); margin-bottom: var(--s5); }
.resume a { color: var(--flow-light); font-weight: 600; }
#sealNote { color: var(--slate); font-weight: 500; }
.crank .btn { background: var(--surface); border-color: var(--surface); color: var(--ink); }
.crank .btn:hover { border-color: var(--ink); }
.crank .btn:disabled { background: var(--paper-80); border-color: transparent; color: var(--slate); }
.facts + p, .columns .facts p { color: var(--slate); }

/* ---------- states, wrapping and focus on dark surfaces ---------- */
html, body { overflow-x: clip; }
h1, h2, h3 { min-width: 0; }
.nav a, .foot nav a, .menu a, .menu button, .pitch .textbtn { white-space: nowrap; }
:is(.textbtn, .ico, .more, .ca, .menu a, .menu button, .nav a, .stepper button, .rm, .pause, button.chip, .coinrows a, .foot a, .doc a, .taps a, .moves a):active { opacity: .65; }
button:disabled:not(.btn) { opacity: .55; cursor: not-allowed; }
.resume .textbtn, .notice .textbtn, .notice a { color: var(--flow-light); }
:is(.foot, .notice, .resume, .toast) :focus-visible { outline-color: var(--flow-light); }
:is(.tank, .crank) :focus-visible { outline: 2px solid var(--surface); box-shadow: 0 0 0 5px var(--ink); }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .columns { grid-template-columns: minmax(0, 1fr); }
  .big-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .split .tank { height: 42svh; min-height: 19rem; }
  .pitch { padding: var(--s8) var(--gap) var(--s9); gap: var(--s5); }
  .panel { margin-top: var(--gap); }
  .launch { grid-template-columns: minmax(0, 1fr); }
  .launch .tank { position: relative; height: 62svh; min-height: 24rem; }
  .coin { grid-template-columns: minmax(0, 1fr); }
  .coin .tankwrap { height: 78svh; min-height: 31rem; }
  .coin .tank { min-height: 0; }
  .pipes { height: 3.4rem; }
  .taps { padding: 0 var(--gap) var(--gap) var(--s9); }
  .taps li { position: relative; }
  .taps li::before { content: ""; position: absolute; left: -1.25rem; top: -.55rem; bottom: -.1rem; border-left: 4px solid var(--surface); }
  .taps li::after { content: ""; position: absolute; left: -1.25rem; width: 1.25rem; top: 50%; border-top: 4px solid var(--surface); }
  .taps li.on::before, .taps li.on::after { border-color: var(--flow); }
  .taps li:last-child::before { bottom: 50%; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .steps ol { grid-template-columns: minmax(0, 1fr); }
  .kinds li { grid-template-columns: 2.75rem minmax(0, 1fr); align-items: start; padding: var(--s5) var(--s4); }
  .kinds svg { width: 2.75rem; height: 2.75rem; grid-row: 1 / span 3; }
  .kinds li > :not(svg) { grid-column: 2; }
  footer.foot { grid-template-columns: minmax(0, 1fr); }
  .foot nav { justify-content: flex-start; }
}
@media (max-width: 640px) {
  :root { --gap: .75rem; }
  .top { gap: var(--s2); }
  .top:has(.has-ca) .brand span { display: none; }
  .actions { gap: var(--s-half); }
  .ico { width: 2.25rem; height: 2.25rem; }
  .actions #walletBtn { padding: 0 var(--s3); min-height: 2.25rem; font-size: .83rem; }
  .ca { padding: 0 var(--s2); font-size: .74rem; height: 2.25rem; }
  .ca .long { display: none; }
  .two, .two.even { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hours { gap: 1px; }
  .moves li { grid-template-columns: 2.2rem minmax(0, 1fr) auto; row-gap: var(--s-half); }
  .moves li > :first-child { grid-row: span 2; }
  .moves .what { grid-column: 2; grid-row: 2; font-size: .82rem; white-space: normal; line-height: 1.35; }
  .moves .amt { grid-column: 3; grid-row: 1; }
  .moves .proof { grid-column: 3; grid-row: 2; min-width: 0; }
  .coinrows a { grid-template-columns: 2.8rem minmax(0, 1fr) auto; }
  .coinrows img { width: 2.8rem; height: 2.8rem; }
  .coinrows .split-cell { grid-column: 1 / -1; }
  .checks li { grid-template-columns: .8rem minmax(0, 1fr); }
  .checks span { grid-column: 2; }
  .table thead { display: none; }
  .table tr, .table td { display: block; }
  .table tr { margin-bottom: var(--s2); }
  .table td:first-child { border-radius: 8px 8px 0 0; padding-bottom: 0; }
  .table td:last-child { border-radius: 0 0 8px 8px; }
  .table td:nth-child(2)::before { content: "Paid to: "; color: var(--slate); }
  .table td:nth-child(3)::before { content: "Then: "; color: var(--slate); }
  .scene-title, .crank { left: 3.7rem; }
  .crank { right: .75rem; bottom: 4rem; }
}
@media (max-width: 420px) {
  .ca span.addr { display: none; }
  .ca .long { display: inline; }
  .actions.has-ca #walletBtn { display: none; }
  .big-numbers { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

@media (hover: none) { .hint .keys { display: none; } }
