@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&family=Silkscreen:wght@400;700&display=swap");

/* BRUK: black and white, square corners, bold blocks. */
:root {
  --bg: #ffffff;
  --bg-2: #f3f3f3;
  --panel: #ffffff;
  --line: #e2e2e2;
  --line-2: #c9c9c9;
  --ink: #161616;          /* the mark's black */
  --ink-inv: #ffffff;
  --text: #161616;
  --muted: #5c5c5c;
  --dim: #8e8e8e;
  --good: #11804a;
  --bad: #cf3434;
  --shade-1: #161616;
  --shade-2: #5a5a5a;
  --shade-3: #9a9a9a;
  --shade-4: #cfcfcf;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: Inter, system-ui, sans-serif;
  --pixel: Silkscreen, var(--mono);
  --ease-out: cubic-bezier(.16, 1, .3, 1);     /* fast start, long settle */
  --ease-snap: cubic-bezier(.34, 1.56, .64, 1); /* slight overshoot, for things you press */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0d;
    --bg-2: #161616;
    --panel: #111111;
    --line: #262626;
    --line-2: #3a3a3a;
    --ink: #f1f1f1;
    --ink-inv: #0d0d0d;
    --text: #f1f1f1;
    --muted: #a0a0a0;
    --dim: #6a6a6a;
    --good: #3fd98a;
    --bad: #ff6464;
    --shade-1: #f1f1f1;
    --shade-2: #a8a8a8;
    --shade-3: #6c6c6c;
    --shade-4: #3c3c3c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0d0d;
  --bg-2: #161616;
  --panel: #111111;
  --line: #262626;
  --line-2: #3a3a3a;
  --ink: #f1f1f1;
  --ink-inv: #0d0d0d;
  --text: #f1f1f1;
  --muted: #a0a0a0;
  --dim: #6a6a6a;
  --good: #3fd98a;
  --bad: #ff6464;
  --shade-1: #f1f1f1;
  --shade-2: #a8a8a8;
  --shade-3: #6c6c6c;
  --shade-4: #3c3c3c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--ink); color: var(--ink-inv); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.good { color: var(--good); }
.bad { color: var(--bad); }
.ink { color: var(--ink); font-weight: 700; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}
header.top .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 18px var(--pixel); letter-spacing: 0.02em; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo svg { width: 26px; height: 26px; display: block; }
nav.main { display: flex; gap: 22px; font: 500 13.5px var(--sans); color: var(--muted); white-space: nowrap; }
nav.main a:hover { color: var(--ink); }
nav.main a.on { color: var(--ink); font-weight: 700; }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.iconbtn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1.5px solid transparent; background: none; color: var(--muted); cursor: pointer; font-size: 15px;
}
.iconbtn:hover { color: var(--ink); border-color: var(--ink); text-decoration: none; }
.menu-toggle { display: none; }
@media (max-width: 900px) { nav.main { gap: 14px; } .top .right .hide-md { display: none; } }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border: 2px solid var(--ink); background: var(--bg); color: var(--ink);
  font: 700 13px var(--sans); cursor: pointer; white-space: nowrap;
  box-shadow: 0 0 0 var(--ink);
  transition: transform .2s var(--ease-snap), box-shadow .2s var(--ease-snap), background-color .2s, color .2s;
}
.btn:hover { text-decoration: none; transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--ink); transition-duration: .05s; }
.btn.primary { background: var(--ink); color: var(--ink-inv); }
.btn.lg { height: 44px; padding: 0 20px; font-size: 14px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
input, textarea, select {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1.5px solid var(--line-2); border-radius: 0; padding: 10px 12px;
  font: 14px var(--sans); outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
textarea { resize: vertical; min-height: 90px; }
label { display: block; font: 600 12px var(--mono); color: var(--muted); margin: 0 0 6px; text-transform: lowercase; }
.field { margin-bottom: 18px; }
.hint { font-size: 12px; color: var(--dim); margin-top: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px;
  border: 1.5px solid var(--ink); font: 600 11.5px var(--mono); color: var(--ink);
}
.chip:hover { background: var(--ink); color: var(--ink-inv); text-decoration: none; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 60px 0 30px; align-items: end; }
.hero h1 { font-size: 50px; line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 18px; font-weight: 900; }
.hero h1 .word { font-family: var(--pixel); font-weight: 700; letter-spacing: 0; }
.hero h1 span.rest { color: var(--dim); font-weight: 700; }
.hero p.lead { color: var(--muted); max-width: 560px; margin: 0 0 24px; font-size: 15.5px; }
.hero .ctas { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.ca { display: flex; align-items: center; gap: 10px; font: 12.5px var(--mono); color: var(--muted); flex-wrap: wrap; }
.ca b { color: var(--ink); }
.ca span { overflow-wrap: anywhere; }
.copy { font: 600 11px var(--mono); padding: 2px 8px; border: 1.5px solid var(--ink); background: none; color: var(--ink); cursor: pointer; }
.copy:hover { background: var(--ink); color: var(--ink-inv); }
.fees { font: 12.5px var(--mono); border: 2px solid var(--ink); padding: 14px 16px; box-shadow: 5px 5px 0 var(--ink); background: var(--panel); }
.fees div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.fees div b { color: var(--ink); font-weight: 700; }
.fees .total { border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 10px; }

/* ---------- forge banner ---------- */
.nursery {
  display: flex; align-items: center; gap: 18px; padding: 16px 18px; margin: 14px 0 20px;
  border: 2px solid var(--ink); background: var(--bg-2);
}
.nursery .ico svg { width: 30px; height: 30px; display: block; color: var(--ink); }
.nursery p { margin: 0; flex: 1; color: var(--muted); font-size: 13.5px; }
.nursery p b { color: var(--ink); }
.nursery .clock { font: 700 14px var(--mono); padding: 7px 11px; background: var(--ink); color: var(--ink-inv); letter-spacing: 0.05em; }

/* ---------- stats ---------- */
.stats { display: flex; gap: 26px; flex-wrap: wrap; font: 12.5px var(--mono); color: var(--muted); padding: 8px 0 18px; border-bottom: 2px solid var(--ink); }
.stats b { color: var(--ink); font-weight: 700; margin-right: 5px; }

/* ---------- board ---------- */
.board { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 24px 0 64px; }
.tabs { display: flex; align-items: center; gap: 4px; margin-bottom: 14px; position: relative; }
.tabs button { position: relative; z-index: 1; background: none; border: 1.5px solid transparent; color: var(--muted); font: 600 13px var(--sans); cursor: pointer; padding: 6px 10px; transition: color .25s var(--ease-out); }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink-inv); }
.tab-ink { position: absolute; left: 0; top: 0; background: var(--ink); pointer-events: none; transition: transform .45s var(--ease-out), width .45s var(--ease-out), height .45s var(--ease-out); }
.tabs input { margin-left: auto; max-width: 230px; height: 36px; padding: 6px 12px; font-size: 13px; }
table.coins { width: 100%; border-collapse: collapse; }
table.coins th { text-align: left; font: 600 11px var(--mono); color: var(--dim); padding: 8px 10px; border-bottom: 2px solid var(--ink); cursor: pointer; user-select: none; text-transform: lowercase; }
table.coins th.r, table.coins td.r { text-align: right; }
table.coins td { padding: 11px 10px; border-bottom: 1px solid var(--line); font: 13px var(--mono); }
table.coins tr.row { cursor: pointer; }
table.coins tr.row:hover td { background: var(--bg-2); }
.coin { display: flex; align-items: center; gap: 10px; font-family: var(--sans); }
.coin img, .avatar { width: 32px; height: 32px; object-fit: cover; background: var(--line); flex-shrink: 0; border: 1.5px solid var(--ink); }
.coin b { font-weight: 700; }
.coin small { color: var(--dim); font: 11.5px var(--mono); }
.state { font: 12px var(--mono); color: var(--dim); }
.state::before { content: "□ "; }
.state.awake { color: var(--good); font-weight: 600; }
.state.awake::before { content: "■ "; }
.state.halted { color: var(--bad); }
.bar { display: inline-block; width: 60px; height: 8px; background: var(--bg-2); border: 1.5px solid var(--ink); vertical-align: middle; margin-right: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); }
.grad { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.empty { padding: 44px 10px; text-align: center; color: var(--dim); }

/* ---------- feed ---------- */
.feed { border: 2px solid var(--ink); background: var(--panel); overflow: hidden; align-self: start; position: sticky; top: 80px; box-shadow: 5px 5px 0 var(--ink); }
.feed h3 { margin: 0; padding: 13px 16px; font: 700 14px var(--sans); background: var(--ink); color: var(--ink-inv); }
.feed .list { max-height: calc(100vh - 190px); overflow-y: auto; }
.ev { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ev:last-child { border-bottom: 0; }
.ev .meta { font: 11px var(--mono); color: var(--dim); margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.ev .meta b { color: var(--ink); font-weight: 700; }
.ev .meta [class^="k-"] { padding: 0 5px; border: 1px solid var(--line-2); }
.ev .meta .k-finding { background: var(--ink); color: var(--ink-inv); border-color: var(--ink); }
.ev .meta .k-reply { border-color: var(--ink); color: var(--ink); }
.ev p { margin: 0; font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.ev.read p, .ev.system p { color: var(--muted); }
.ev a.src { font: 11px var(--mono); color: var(--dim); }
.feed .foot { padding: 10px 16px; font: 11.5px var(--mono); color: var(--dim); border-top: 2px solid var(--ink); }

/* ---------- generic panels / pages ---------- */
.page { padding-top: 44px; padding-bottom: 80px; }
.page h1 { font-size: 38px; letter-spacing: -0.035em; margin: 0 0 8px; font-weight: 900; }
.page .sub { color: var(--muted); margin: 0 0 30px; max-width: 660px; font-size: 15px; }
.panel { border: 2px solid var(--ink); background: var(--panel); padding: 20px; }
.panel h2 { font: 700 14px var(--sans); margin: 0 0 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cols { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font: 13px var(--mono); }
.kv:last-child { border: 0; }
.kv span:first-child { color: var(--muted); }
.notice { padding: 12px 14px; border: 2px solid var(--line-2); background: var(--bg-2); color: var(--muted); font-size: 13px; }
.notice.err { border-color: var(--bad); color: var(--bad); }
.notice.ok { border-color: var(--good); color: var(--good); }
.steps { list-style: none; padding: 0; margin: 14px 0 0; font: 13px var(--mono); }
.steps li { padding: 6px 0; color: var(--dim); }
.steps li::before { content: "□ "; }
.steps li.on { color: var(--ink); font-weight: 700; }
.steps li.on::before { content: "▣ "; }
.steps li.done { color: var(--good); }
.steps li.done::before { content: "■ "; }
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.models label { margin: 0; display: block; border: 1.5px solid var(--line-2); padding: 10px; cursor: pointer; color: var(--text); font: 600 13px var(--sans); text-transform: none; }
.models input { display: none; }
.models label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--ink-inv); }
.models label:has(input:checked) small { color: var(--ink-inv); opacity: .7; }
.models small { display: block; color: var(--dim); font: 400 11px var(--mono); margin-top: 2px; }
.drop { border: 2px dashed var(--line-2); padding: 18px; display: flex; gap: 14px; align-items: center; cursor: pointer; }
.drop:hover { border-color: var(--ink); }
.drop img { width: 64px; height: 64px; object-fit: cover; background: var(--bg-2); border: 1.5px solid var(--ink); }

/* token page */
.thead { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.thead img { width: 76px; height: 76px; object-fit: cover; background: var(--line); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.thead h1 { margin: 0; font-size: 30px; }
.thead .links { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tstats { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--ink); margin-bottom: 24px; }
.tstats div { background: var(--panel); padding: 14px 16px; border-right: 2px solid var(--ink); }
.tstats div:last-child { border-right: 0; }
.tstats small { display: block; color: var(--dim); font: 11px var(--mono); margin-bottom: 4px; }
.tstats b { font: 700 18px var(--mono); }
.seg { display: flex; border: 2px solid var(--ink); margin-bottom: 12px; }
.seg button { flex: 1; padding: 9px; background: none; border: 0; color: var(--muted); font: 700 13px var(--sans); cursor: pointer; }
.seg button.on.buy { background: var(--good); color: #fff; }
.seg button.on.sell { background: var(--bad); color: #fff; }
.quick { display: flex; gap: 6px; margin: 8px 0 12px; }
.quick button { flex: 1; font: 600 12px var(--mono); padding: 6px; border: 1.5px solid var(--line-2); background: none; color: var(--muted); cursor: pointer; }
.quick button:hover { border-color: var(--ink); color: var(--ink); }
.brief { white-space: pre-wrap; font-size: 13px; color: var(--muted); max-height: 200px; overflow: auto; }

/* docs */
.doc { max-width: 780px; }
.doc h2 { font-size: 22px; margin: 44px 0 10px; letter-spacing: -0.02em; font-weight: 800; }
.doc h2::before { content: ""; display: inline-block; width: 12px; height: 12px; background: var(--ink); margin-right: 10px; vertical-align: 2px; }
.doc h3 { font-size: 15px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc p b, .doc li b { color: var(--ink); }
.doc code { font: 12.5px var(--mono); background: var(--bg-2); padding: 1px 5px; border: 1px solid var(--line); color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; border-top: 2px solid var(--ink); }
.doc th, .doc td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font: 600 11px var(--mono); color: var(--dim); }
.doc td:first-child { font-family: var(--mono); color: var(--ink); white-space: nowrap; font-weight: 600; }
.doc td.mono { overflow-wrap: anywhere; white-space: normal; }
.split { display: flex; height: 16px; margin: 16px 0 8px; border: 2px solid var(--ink); }
.split i { display: block; height: 100%; }
.split i:nth-child(1) { background: var(--shade-1); }
.split i:nth-child(2) { background: var(--shade-2); }
.split i:nth-child(3) { background: var(--shade-3); }
.split i:nth-child(4) { background: var(--shade-4); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font: 12px var(--mono); color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; background: var(--c); border: 1px solid var(--ink); vertical-align: -1px; }

/* how it works */
.flow { margin-top: 10px; border-top: 2px solid var(--ink); }
.flow .st { display: grid; grid-template-columns: 54px 1fr 150px; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.flow .n { font: 700 13px var(--pixel); color: var(--dim); }
.flow h3 { margin: 0 0 4px; font-size: 15px; }
.flow p { margin: 0; color: var(--muted); font-size: 13.5px; }
.flow .who { font: 11.5px var(--mono); color: var(--muted); text-align: right; }
.chk { font: 700 10.5px var(--mono); margin-left: 8px; padding: 1px 6px; background: var(--ink); color: var(--ink-inv); vertical-align: 2px; text-transform: uppercase; letter-spacing: 0.06em; }

footer { border-top: 2px solid var(--ink); padding: 22px 0; color: var(--dim); font: 12px var(--mono); }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer .wrap span:last-child { margin-left: auto; }
footer svg { width: 16px; height: 16px; color: var(--ink); vertical-align: -3px; margin-right: 6px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--ink-inv); padding: 11px 16px; font: 600 13px var(--sans); z-index: 50; max-width: calc(100vw - 32px); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .board, .cols { grid-template-columns: 1fr; }
  .feed { position: static; }
  .feed .list { max-height: 520px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .tstats { grid-template-columns: repeat(2, 1fr); }
  .tstats div:nth-child(2) { border-right: 0; }
  .tstats div:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  nav.main { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 2px solid var(--ink); }
  nav.main.open { display: flex; }
  nav.main a { padding: 13px 16px; border-top: 1px solid var(--line); }
  .menu-toggle { display: grid; }
  .top .right .hide-sm { display: none; }
  .hero h1 { font-size: 36px; }
  .nursery { flex-wrap: wrap; }
  .tabs { flex-wrap: wrap; }
  .tabs input { max-width: none; width: 100%; margin: 6px 0 0; }
  table.coins .hide-sm { display: none; }
  .grid2, .models { grid-template-columns: 1fr; }
  .flow .st { grid-template-columns: 36px 1fr; }
  .flow .who { display: none; }
  .fees, .feed { box-shadow: none; }
  footer .wrap span:last-child { margin-left: 0; }
}

/* ======================================================================
   Motion. Blocky and snappy: things print in, press down and slide into
   place. Everything here is switched off under prefers-reduced-motion.
   ====================================================================== */

/* page-to-page: the header stays put, the page underneath slides */
@view-transition { navigation: auto; }
header.top { view-transition-name: site-header; }
::view-transition-old(root) { animation: page-out .18s var(--ease-out) both; }
::view-transition-new(root) { animation: page-in .38s var(--ease-out) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } }

/* theme switch: the new theme wipes out from the toggle in chunky steps */
.theme-vt header.top { view-transition-name: none; }
.theme-vt::view-transition-old(root) { animation: none; }
.theme-vt::view-transition-new(root) { animation: theme-wipe .55s steps(11, end) both; }
@keyframes theme-wipe {
  from { clip-path: circle(0 at var(--vt-x, 100%) var(--vt-y, 0)); }
  to { clip-path: circle(150vmax at var(--vt-x, 100%) var(--vt-y, 0)); }
}
#theme { transition: transform .5s var(--ease-snap), color .2s, border-color .2s; }

/* header */
header.top { transition: box-shadow .3s var(--ease-out); }
header.top.scrolled { box-shadow: 0 4px 0 color-mix(in srgb, var(--ink) 8%, transparent); }
.logo svg { transition: transform .35s var(--ease-snap); }
.logo:hover svg { transform: translateY(-2px) rotate(-8deg) scale(1.08); }
nav.main.open { animation: drop .3s var(--ease-out) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* hero: the wordmark prints in block by block, a cursor blinks, then the rest rises */
.hero h1 .word { display: inline-block; position: relative; animation: print .7s steps(8, end) both; }
.hero h1 .word::after {
  content: ""; position: absolute; right: -.42em; bottom: .08em; width: .3em; height: .78em;
  background: currentColor; opacity: 0; animation: caret .5s steps(1) .7s 5;
}
@keyframes print { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes caret { 0% { opacity: 1; } 50% { opacity: 0; } }
.hero h1 .rest { display: inline-block; animation: rise .8s var(--ease-out) .3s both; }
.hero .lead { animation: rise .8s var(--ease-out) .42s both; }
.hero .ctas { animation: rise .8s var(--ease-out) .52s both; }
.hero .ca { animation: rise .8s var(--ease-out) .62s both; }
.hero .fees { animation: lift .9s var(--ease-out) .5s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes lift { from { opacity: 0; transform: translate(10px, 10px); } }

/* fee split: each share draws its own bar */
.fees div { position: relative; }
.fees .fill {
  position: absolute; left: 0; bottom: 0; height: 2px; width: var(--w); background: var(--ink);
  transform-origin: left; animation: grow 1.1s var(--ease-out) calc(.9s + var(--d, 0ms)) both;
}
@keyframes grow { from { transform: scaleX(0); } }

/* scroll reveal (see reveal() in app.js) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out) var(--d, 0ms), transform .7s var(--ease-out) var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* coin board: rows rise in on first paint, bars fill, images tilt on hover */
table.coins.anim tbody tr { animation: rise .55s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms); }
table.coins.anim .bar i { transform-origin: left; animation: grow .9s var(--ease-out) both; animation-delay: calc(.2s + var(--i, 0) * 35ms); }
table.coins td { transition: background-color .18s; }
.coin img { transition: transform .3s var(--ease-snap); }
tr.row:hover .coin img { transform: scale(1.1) rotate(-4deg); }
.state.awake::before { display: inline-block; animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* live feed: new items slide in with a flash; the rest move down smoothly (FLIP in app.js) */
.ev-new { animation: ev-in .5s var(--ease-out) both, flash 2s ease-out both; }
@keyframes ev-in { from { opacity: 0; transform: translateY(-10px); } }
@keyframes flash { from { background: color-mix(in srgb, var(--ink) 9%, transparent); } }

/* forms */
.drop {
  --ants: var(--line-2);
  border: 0; padding: 20px;
  background-image:
    linear-gradient(90deg, var(--ants) 50%, transparent 50%), linear-gradient(90deg, var(--ants) 50%, transparent 50%),
    linear-gradient(0deg, var(--ants) 50%, transparent 50%), linear-gradient(0deg, var(--ants) 50%, transparent 50%);
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  background-size: 12px 2px, 12px 2px, 2px 12px, 2px 12px;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
}
.drop:hover { --ants: var(--ink); animation: ants .6s linear infinite; }
@keyframes ants { to { background-position: 12px 0, -12px 100%, 0 -12px, 100% 12px; } }
.models label { transition: transform .2s var(--ease-snap), box-shadow .2s var(--ease-snap), background-color .2s, color .2s, border-color .2s; }
.models label:hover { transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--ink); }
.steps li { transition: color .3s; }
.steps li.on::before { display: inline-block; animation: blink 1s steps(1) infinite; }
input, textarea, select { transition: border-color .2s, box-shadow .25s var(--ease-snap); }
.chip, .copy, .quick button { transition: background-color .15s, color .15s, border-color .15s, transform .2s var(--ease-snap); }
.chip:active, .copy:active, .quick button:active { transform: scale(.94); }

/* notices: a blinking block after the headline */
.notice b.ink::after { content: ""; display: inline-block; width: .5em; height: .9em; margin-left: .3em; vertical-align: -1px; background: currentColor; animation: blink 1.1s steps(1) infinite; }

/* toast */
.toast { animation: toast-in .4s var(--ease-snap) both; }
.toast.out { animation: toast-out .22s ease-in both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, 8px); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}
