:root {
  --bg: #0b2219;
  --bg-deep: #061510;
  --panel: rgba(7, 24, 17, .74);
  --panel-solid: #091d15;
  --text: #f1ead8;
  --text-2: rgba(241, 234, 216, .72);
  --text-3: rgba(241, 234, 216, .48);
  --line: rgba(241, 234, 216, .1);
  --line-2: rgba(241, 234, 216, .2);
  --brass: #d9b25f;
  --brass-line: rgba(217, 178, 95, .3);
  --brass-soft: rgba(217, 178, 95, .13);
  --no: rgba(241, 234, 216, .2);
  --radius: 6px;
  --gutter: clamp(16px, 4.5vw, 64px);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
html {
  scroll-behavior: smooth;
  /* felt: a lamp glow over the table, a vignette, and a fine fibre noise */
  background:
    radial-gradient(1200px 760px at 62% -8%, rgba(32, 74, 54, .55), transparent 70%),
    radial-gradient(140% 100% at 50% 40%, transparent 55%, rgba(2, 10, 7, .55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .92 0 0 0 0 .84 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--bg);
  background-attachment: fixed;
}
body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-variation-settings: "SOFT" 100; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dim { color: var(--text-3); }

/* the 3D layer; CSS clouds underneath when WebGL is off */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.4s ease-out; pointer-events: none; }
#bg.ready { opacity: 1; }
html.no-webgl body, html:not(.js) body {
  background:
    radial-gradient(420px 300px at 14% 78%, rgba(217, 178, 95, .16), transparent 70%),
    radial-gradient(420px 300px at 88% 22%, rgba(241, 234, 216, .08), transparent 70%);
  background-attachment: fixed;
}

/* header */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  height: 60px; padding: 0 var(--gutter);
  background: rgba(8, 26, 19, .96); border-bottom: 1px solid var(--line);
}
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 19px/1 var(--serif); letter-spacing: -.01em; font-variation-settings: "SOFT" 100; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text-2); font: 500 15px/1 var(--serif); transition: color .18s ease-out; }
.nav a:hover { color: var(--text); }
.top-actions { display: flex; gap: 8px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: var(--radius);
  font: 500 15px/1 var(--serif); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: opacity .18s ease-out, border-color .18s ease-out, color .18s ease-out;
}
.btn-primary { background: var(--text); color: #0b1a13; border: 1px solid var(--text); }
.btn-primary:hover { opacity: .88; }
.btn-secondary { border: 1px solid var(--line-2); color: var(--text); background: none; }
.btn-secondary:hover { border-color: var(--text); }
.btn-icon { min-width: 48px; padding: 0; }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.top-actions .btn-icon { min-height: 38px; min-width: 38px; }
.btn[aria-disabled="true"] { background: transparent; border: 1px solid var(--line-2); color: var(--text-2); cursor: default; opacity: 1; }
.link { color: var(--text-2); font: 500 14px var(--serif); align-self: center; padding: 0 4px; }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  align-items: start; gap: 32px clamp(32px, 4vw, 64px);
  padding: clamp(24px, 4vh, 48px) var(--gutter) 40px;
}
.hero-copy { padding-top: clamp(8px, 3vh, 36px); }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 24px; font: 500 13px/1 var(--serif); color: var(--text); }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 3px var(--brass-soft); flex: none; }
.js .status .led { animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .35; } }
h1 {
  font-size: clamp(44px, 5vw, 76px); line-height: .96; letter-spacing: -.025em;
  font-weight: 400; font-variation-settings: "SOFT" 100, "WONK" 0;
}
h1 em { display: block; font-style: italic; font-weight: 300; color: var(--text-2); }
.lede { margin: 22px 0 22px; font-size: 16px; color: var(--text-2); max-width: 30em; }
.ticker { margin: 0 0 10px; font: 600 14px/1 var(--serif); color: var(--brass); letter-spacing: .01em; }

.token { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.ca {
  display: flex; align-items: center; gap: 10px; flex: 1 1 100%; min-width: 0;
  min-height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: rgba(6, 20, 14, .9); color: var(--text); font: inherit; cursor: pointer; text-align: left;
}
.ca:not(.is-set) { cursor: default; }
.ca-label { font: 500 13px var(--serif); color: var(--text-3); }
.ca-value { flex: 1; min-width: 0; font: 13px/1 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-copy { font: 500 14px var(--serif); color: var(--text-2); }
.ca:not(.is-set) .ca-copy { display: none; }
.ca.is-copied .ca-copy { color: var(--brass); }
.token .btn { flex: 1; }
.token .chart { flex: none; }

/* the odds machine */
.machine {
  position: relative; min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  grid-template-areas: "ask stack" "chips stack" "answer stack" "console stack";
  grid-template-rows: auto auto 1fr auto;
  background: var(--panel); border: 1px solid var(--brass-line); border-radius: 10px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.ask { grid-area: ask; display: flex; gap: 8px; padding: 20px 24px 0; }
.ask input {
  flex: 1; min-width: 0; min-height: 50px; padding: 0 16px;
  background: rgba(3, 14, 9, .7); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius);
  font: 400 18px/1 var(--serif); font-variation-settings: "SOFT" 100; outline: none;
  transition: border-color .18s ease-out;
}
.ask input::placeholder { color: var(--text-3); }
.ask input:focus { border-color: var(--brass); }
.ask input::-webkit-search-cancel-button { filter: invert(.8); }
.btn-ask { min-height: 50px; min-width: 76px; background: var(--brass); color: #10200f; border: 1px solid var(--brass); }
.btn-ask:hover { opacity: .88; }
.chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 24px 0; }
.chips button {
  min-height: 34px; padding: 0 12px; border-radius: var(--radius);
  border: 1px solid var(--line); background: none; color: var(--text-2);
  font: italic 400 14px/1 var(--serif); cursor: pointer; transition: color .18s ease-out, border-color .18s ease-out;
}
.chips button:hover, .chips button.on { color: var(--text); border-color: var(--line-2); }

.answer { grid-area: answer; padding: 22px 24px 18px; min-width: 0; }
.answer { scroll-margin-top: 64px; }
.a-kicker { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 17px; margin: 0 0 8px; font: 500 13px/1.3 var(--serif); color: var(--brass); }
.a-try {
  flex: none; margin: -8px 0 -8px auto; min-height: 34px; padding: 0 12px; border-radius: var(--radius);
  border: 1px solid var(--brass-line); background: none; color: var(--text); font: italic 400 14px/1 var(--serif); cursor: pointer;
  transition: border-color .18s ease-out;
}
.a-try:hover { border-color: var(--brass); }
.answer[data-state="nomatch"] .a-q, .answer[data-state="nomatch"] .a-row, .answer[data-state="nomatch"] .split,
.answer[data-state="nomatch"] .split-labels, .answer[data-state="nomatch"] .a-meta { opacity: .32; }
.a-label { flex: none; }
.a-event { color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.a-q {
  margin: 0; min-height: 2.5em;
  font: 400 clamp(19px, 1.65vw, 25px)/1.24 var(--serif); font-variation-settings: "SOFT" 100;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-wrap: pretty;
}
.a-row { display: flex; align-items: flex-end; gap: clamp(16px, 2.4vw, 32px); margin-top: 14px; }
.a-num {
  display: flex; align-items: flex-start; margin: 0; flex: none;
  font: 300 clamp(92px, 9.6vw, 156px)/.8 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 0;
  color: var(--brass); letter-spacing: -.045em; font-variant-numeric: lining-nums tabular-nums;
}
.a-tail { display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; margin-left: .06em; padding: .04em 0 .02em; font-size: .34em; letter-spacing: 0; line-height: 1; }
.a-frac { font-weight: 400; }
.a-pct { font-weight: 400; color: var(--text-2); }
.a-side { flex: 1; min-width: 0; padding-bottom: 4px; }
.a-out { margin: 0 0 6px; font: italic 400 22px/1.1 var(--serif); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spark { display: block; width: 100%; height: 52px; overflow: visible; }
.spark-base { stroke: var(--line-2); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.spark-line { stroke: var(--brass); stroke-width: 1.6; fill: none; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spark-dot { fill: var(--brass); }
.a-chg { margin: 6px 0 0; font: 400 13px/1.2 var(--serif); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-chg b { font-weight: 600; color: var(--text); }
.split { position: relative; height: 10px; margin: 20px 0 9px; background: var(--no); border-radius: 2px; overflow: hidden; }
.split-yes { position: absolute; inset: 0; background: var(--brass); transform-origin: 0 50%; transform: scaleX(.5); }
.split-labels { display: flex; justify-content: space-between; gap: 12px; margin: 0; font: 400 15px/1.2 var(--serif); }
.split-labels > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-yes { color: var(--brass); }
.l-no { color: var(--text-2); text-align: right; }
.split-labels b { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.a-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 14px 0 0; font-size: 13.5px; color: var(--text-3); }
.a-link { display: inline-block; padding: 13px 0; margin: -13px 0; color: var(--text-2); font: 500 14px/18px var(--serif); }
.a-link:hover { color: var(--text); }
.a-noscript { margin: 10px 0 0; color: var(--text-2); }
.answer[data-state="loading"] .a-num, .answer[data-state="loading"] .split, .answer[data-state="loading"] .split-labels,
.answer[data-state="loading"] .a-side { opacity: .22; }
.answer[data-state="busy"] .a-q, .answer[data-state="busy"] .a-num { opacity: .55; transition: opacity .2s ease-out; }
.answer .a-q, .answer .a-num { transition: opacity .3s ease-out; }

.console { grid-area: console; padding: 12px 24px 16px; border-top: 1px solid var(--line); min-width: 0; }
.console-head { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; font: 500 13px/1 var(--serif); color: var(--text-2); }
.console-head .dim { font-weight: 400; font-style: italic; text-align: right; }
.log {
  list-style: none; margin: 0; padding: 0; height: 132px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 1px;
  font: 400 11.5px/18px var(--mono); color: var(--text-2);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 34px); mask-image: linear-gradient(to bottom, transparent, #000 34px);
}
.log li { display: flex; gap: 10px; min-width: 0; flex: none; }
.log .who { width: 40px; flex: none; color: var(--text-3); }
.log .fn { color: var(--text); flex: none; }
.log .args { color: var(--text-3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log .ret { margin-left: auto; padding-left: 10px; flex: none; color: var(--text-2); white-space: nowrap; }
.log .ret.err { color: #e9a08a; }
.log .ms { color: var(--brass); }
.log .say { color: var(--text); white-space: normal; min-width: 0; }
.log .l-you .say { color: var(--brass); }
.log .l-call.pending .ret { color: var(--text-3); }

.stack { grid-area: stack; display: flex; flex-direction: column; min-width: 0; padding: 18px 0 14px; border-left: 1px solid var(--line); }
.stack-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px 12px; }
.stack-title { font: 500 17px/1.1 var(--serif); }
.live { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font: 400 12.5px/1.2 var(--serif); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-led { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); flex: none; }
.live[data-state="live"] .live-led { background: var(--brass); box-shadow: 0 0 0 3px var(--brass-soft); }
.live[data-state="live"] .live-text { color: var(--text-2); }
.live[data-state="stale"] .live-led, .live[data-state="down"] .live-led { background: #e9a08a; }
.js .live[data-state="connecting"] .live-led { animation: blink 1s steps(1) infinite; }
.rows { list-style: none; margin: 0; padding: 0; flex: 1; }
.row { border-top: 1px solid var(--line); }
.row button {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 7px 10px; align-items: center;
  width: 100%; padding: 10px 20px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer;
  font: inherit; transition: background .18s ease-out;
}
.row button:hover, .row button.on { background: var(--brass-soft); }
.r-n { grid-row: 1 / span 2; align-self: start; padding-top: 1px; font: 400 12px/1.4 var(--serif); color: var(--text-3); font-variant-numeric: tabular-nums lining-nums; }
.r-q { font: 400 14px/1.3 var(--sans); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-p { grid-column: 3; grid-row: 1 / span 2; min-width: 4.2ch; text-align: right; font: 400 23px/1 var(--serif); color: var(--brass); font-variant-numeric: tabular-nums lining-nums; font-variation-settings: "SOFT" 100; }
.r-bar { grid-column: 2; display: flex; align-items: center; gap: 8px; min-width: 0; font: italic 400 12.5px/1 var(--serif); color: var(--text-3); }
.r-out { flex: none; max-width: 46%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-track { position: relative; flex: 1; height: 3px; background: var(--no); border-radius: 2px; overflow: hidden; }
.r-track i { position: absolute; inset: 0; background: var(--brass); transform-origin: 0 50%; transform: scaleX(0); }
.r-d { flex: none; width: 3.4em; text-align: right; font: 500 11px/1 var(--mono); font-style: normal; color: var(--brass); opacity: 0; transition: opacity .4s ease-out; }
.r-d.down { color: var(--text-2); }
.r-d.show { opacity: 1; }
.row.skel span { display: block; height: 58px; margin: 0 20px; background: linear-gradient(90deg, transparent, rgba(241, 234, 216, .05) 30%, transparent 60%) 0 0 / 200% 100%, linear-gradient(var(--line), var(--line)) 0 18px / 70% 10px no-repeat, linear-gradient(var(--line), var(--line)) 0 36px / 45% 4px no-repeat; }
.js .row.skel span { animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0, 0 18px, 0 36px; } }
.stack-foot { margin: 0; padding: 12px 20px 0; border-top: 1px solid var(--line); font: 400 12px/1.5 var(--sans); color: var(--text-3); }

/* scroll beats over the 3D layer */
.beats { padding: 4vh var(--gutter) 0; scroll-margin-top: 0; }
.beat { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; max-width: min(44%, 620px); }
.kicker { margin: 0 0 14px; font: 500 14px/1 var(--serif); color: var(--brass); }
.beat-line { margin: 0; font: 400 clamp(34px, 4.8vw, 72px)/1.02 var(--serif); letter-spacing: -.025em; font-variation-settings: "SOFT" 100; text-wrap: balance; }

/* sections */
.tools, .connect { position: relative; padding: clamp(72px, 10vw, 128px) var(--gutter) 0; scroll-margin-top: 60px; }
.section-head { max-width: 560px; }
h2 { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.02; letter-spacing: -.025em; margin-bottom: 16px; }
.section-head > p:not(.kicker) { margin: 0; color: var(--text-2); font-size: 16px; }

table { width: 100%; border-collapse: collapse; margin-top: 36px; background: rgba(8, 26, 19, .84); }
th { text-align: left; font: 500 13px/1 var(--serif); color: var(--text-3); padding: 0 16px 12px 0; }
td { padding: 16px 16px 16px 0; border-top: 1px solid var(--line); vertical-align: top; font-size: 15px; }
td.n { font: 400 13px/1.7 var(--serif); color: var(--text-3); width: 48px; font-variant-numeric: lining-nums; }
td.t { font: 500 13px/1.75 var(--mono); white-space: nowrap; }
td.s { font: 500 14px/1.6 var(--serif); white-space: nowrap; color: var(--text); }
/* status as an odds track, like the stack: full brass = live, half = buildable, empty = needs something */
td.s::before {
  content: ""; display: inline-block; width: 30px; height: 3px; border-radius: 2px; margin-right: 10px; vertical-align: 4px;
  background: linear-gradient(var(--brass), var(--brass)) 0 0 / var(--fill, 100%) 100% no-repeat, var(--no);
}
td.s.build { --fill: 50%; color: var(--text-2); }
td.s.wait { color: var(--text-3); }
td.s.wait::before { background: none; box-shadow: inset 0 0 0 1px var(--text-3); }

.connect { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
.rules { margin: 28px 0 0; padding: 0; list-style: none; }
.rules li { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; }
.rules .ix { font: 400 13px var(--serif); color: var(--text-3); padding-top: 1px; font-variant-numeric: lining-nums; }
.code-wrap { background: rgba(7, 22, 16, .94); border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); font: 400 12px var(--mono); color: var(--text-3); }
.copy-code { min-height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: none; color: var(--text); font: 500 14px var(--serif); cursor: pointer; }
.copy-code:hover { border-color: var(--text); }
.code { margin: 0; padding: 18px 20px; font: 400 12px/1.75 var(--mono); color: var(--text-3); overflow-x: auto; }
.code .k { color: var(--text); }
.code .v { color: var(--brass); }

.foot { padding: clamp(80px, 12vw, 140px) var(--gutter) 40px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.mark-small { font: 600 16px var(--serif); }
.foot-links { display: flex; gap: 8px; margin-right: -10px; }
.foot-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 10px; font: 500 15px var(--serif); color: var(--text-2); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot p { margin: 16px 0 0; font: 400 13px/1.6 var(--sans); color: var(--text-3); }

/* reveals */
.js .hero-copy > *, .js .machine { animation: rise .8s cubic-bezier(.2, .7, .2, 1) backwards; }
.js .hero-copy > :nth-child(2) { animation-delay: .07s; }
.js .hero-copy > :nth-child(3) { animation-delay: .14s; }
.js .hero-copy > :nth-child(4), .js .hero-copy > :nth-child(5) { animation-delay: .2s; }
.js .machine { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease-out, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* narrow desktop and tablet: copy above, machine full width */
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-top: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; align-items: end; }
  .hero-copy .status, .hero-copy h1 { grid-column: 1; }
  .hero-copy .lede, .hero-copy .ticker, .hero-copy .token { grid-column: 2; }
  .hero-copy .lede { grid-row: 1 / span 2; align-self: end; margin: 0 0 4px; }
  .hero-copy .ticker { grid-row: 3; margin-top: 14px; }
  .hero-copy .token { grid-row: 4; }
  .hero-copy h1 { grid-row: 2 / span 3; }
  .connect { grid-template-columns: 1fr; }
}

/* phone */
@media (max-width: 760px) {
  .top { gap: 12px; height: 56px; padding-right: 10px; }
  .nav { display: none; }
  .top-actions { margin-left: auto; }
  .top-actions .btn-icon { min-height: 44px; min-width: 44px; }
  .hide-phone { display: none; }
  .hero { padding-top: 22px; gap: 18px; }
  .hero-copy { display: block; }
  .status { margin-bottom: 14px; font-size: 12.5px; }
  h1 { font-size: clamp(38px, 11vw, 50px); }
  h1 em { display: inline; }
  .lede { font-size: 15px; margin: 16px 0 0; }
  .ticker { display: none; }
  .token {
    position: fixed; z-index: 20; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    flex-wrap: nowrap; padding: 6px; gap: 6px; background: rgba(6, 21, 15, .96); border: 1px solid var(--line-2); border-radius: 10px;
  }
  .token .ca { flex: 1 1 auto; }
  .token .btn { flex: none; }
  .token .ca, .token .btn { min-height: 46px; }
  .token .chart { display: none; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .hero { margin: 0; }
  .machine {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "ask" "chips" "answer" "console" "stack";
    grid-template-rows: none;
    margin: 0 calc(var(--gutter) * -1 + 6px);
  }
  .ask { padding: 14px 14px 0; }
  .ask input { font-size: 17px; min-height: 48px; padding: 0 12px; }
  .btn-ask { min-height: 48px; min-width: 64px; }
  .chips { padding: 10px 14px 0; }
  .chips button { min-height: 44px; padding: 0 11px; }
  .a-try { min-height: 44px; margin: -12px 0 -12px auto; }
  .answer { padding: 16px 14px 14px; }
  .a-q { font-size: 19px; }
  .a-row { gap: 14px; margin-top: 10px; }
  .a-num { font-size: clamp(76px, 24vw, 104px); }
  .a-out { font-size: 18px; }
  .spark { height: 40px; }
  .split { margin-top: 16px; }
  .console { padding: 12px 14px 14px; }
  .console-head .dim { display: none; }
  .log { height: 150px; font-size: 11px; }
  .log .who { width: 34px; }
  .log .args { display: none; }
  .stack { border-left: 0; border-top: 1px solid var(--line); }
  .stack-head { padding: 0 14px 10px; }
  .row button { padding: 10px 14px; }
  .stack-foot { padding: 12px 14px 0; }
  .beat { max-width: none; justify-content: flex-start; padding-top: 14svh; }
  .beat-line { font-size: clamp(32px, 9vw, 44px); }
  table, thead, tbody, tr, td, th { display: block; }
  thead { display: none; }
  tr { border-top: 1px solid var(--line); padding: 14px 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 12px; }
  td { border: 0; padding: 0; }
  td.n { width: auto; grid-column: 1; grid-row: 1; }
  td.t { grid-column: 2; grid-row: 1; overflow: hidden; text-overflow: ellipsis; }
  td.s { grid-column: 3; grid-row: 1; }
  td:nth-child(3) { grid-column: 1 / -1; color: var(--text-2); font-size: 14px; }
  .code { font-size: 11px; padding: 16px; }
  .foot-row { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
