/* SELFMADE — the self-building launchpad. Relaunch look (2026-10): ULTRA.
   An electric blue page, navy panels and ONE loud colour: volt. Unbounded shouts in caps, Geist talks,
   Geist Mono counts. Flat blocks, pills, hard offset shadows. No gradients, no glow, no blur.
   The idea: a SELFMADE is a code diff. Every shipped idea is a "+" line, and the version only goes up.
   The token NAMES are the old ones on purpose, so pages the agent built and inline styles keep working:
   --paper = the page, --card = a panel, --ink = text, --hot = volt. */

:root {
  --brand: #1a22ff;         /* the blue itself: the same in both themes */
  --paper: #1a22ff;         /* the page */
  --paper-2: #181b50;       /* fields, insets and hover rows inside a panel */
  --card: #0d0f2e;          /* panels: navy */
  --deep: #070818;          /* the terminal and the agent card */
  --ink: #ffffff;
  --ink-2: #dfe1ff;
  --muted: #c5c9ff;
  --line: #3c44ff;          /* panel borders, and hairlines on the blue page */
  --line-2: #a3a8ff;        /* stronger borders: buttons, pills (3.5:1 on the page) */
  --rule: #262b6e;          /* separators inside a panel */
  --rule-2: #5a61d6;        /* field borders inside a panel (3.6:1 on a panel) */
  --ph: #8a90ff;            /* placeholder text in fields */
  --hot: #d6ff3d;           /* volt: the one loud colour */
  --hot-ink: #0b0d2a;       /* text on volt */
  --hot-t: #d6ff3d;         /* volt used as text */
  --good: #5cf2a4;          /* up moves and passed checks: its own colour, not the brand's */
  --bad: #ff7a88;
  --warn: #ffc94d;
  --edge: #0b0d2a;          /* hard shadows */
  --r: 16px;
  --pill: 999px;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --rail: 248px;
  --bar: 60px;
  --wrap: 1240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15.5px/1.5 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--hot); color: var(--hot-ink); }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { text-wrap: balance; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .01em; }
.label { font: 600 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.hide, [hidden] { display: none !important; }   /* [hidden] must beat display:grid on .steps */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- the shell: a fixed rail on wide screens, a drawer behind the menu button on phones ---------- */
@media (min-width: 1100px) { body { padding-left: var(--rail); } }
.rail {
  position: fixed; z-index: 40; inset: 0 auto 0 0; width: var(--rail); background: var(--card); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px; padding: 16px 14px 14px; overflow-y: auto; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; margin-bottom: 8px; padding: 0 4px; }
.railnav { display: grid; gap: 2px; }
.railnav .grp { margin: 16px 12px 6px; font: 600 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.railnav a { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 12px; border-radius: var(--pill); text-decoration: none; font-weight: 500; font-size: 14.5px; color: var(--ink-2); }
.railnav a i { width: 7px; height: 7px; border-radius: 2px; background: var(--rule-2); flex: none; }
.railnav a:hover { background: var(--paper-2); color: var(--ink); }
.railnav a[aria-current] { background: var(--brand); color: #fff; font-weight: 700; }
.railnav a[aria-current] i { background: var(--hot); }
.rail .rail-launch { margin: 16px 0 14px; width: 100%; flex: none; }
.rail .rail-launch[aria-current] { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--hot); }
.rail-shade { display: none; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 10px; height: var(--bar); max-width: none; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand b { font: 900 15px/1 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.ver {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 8px; border: 1px solid var(--line-2);
  border-radius: var(--pill); font: 600 11px/1 var(--mono); color: var(--hot-t); white-space: nowrap;
}
.ver .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hot); animation: beat 1.6s steps(2, jump-none) infinite; }
@keyframes beat { 50% { opacity: .25; } }
.menu { display: none; width: 44px; height: 44px; flex: none; padding: 0; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--card); cursor: pointer; place-content: center; gap: 4px; }
.menu i { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.here { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.here b { color: var(--ink); font-weight: 600; }
.top .sp { flex: 1; }
.top .ver { display: none; }
@media (min-width: 1100px) { .top .brand { display: none; } }   /* the rail carries the brand on wide screens */
.top .hot .short { display: none; }
.top .toplaunch { display: none; }
#wallet { text-transform: none; letter-spacing: .02em; }   /* a wallet address must keep its case */

/* the coin's CA, our X, the watchlist star and the theme switch */
.top .ca { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; white-space: nowrap; flex: none; border: 1.5px solid var(--line-2); border-radius: var(--pill); background: var(--card); cursor: pointer; font: inherit; color: var(--ink); }
.top .ca:hover { border-color: var(--hot); }
.top .ca[hidden], .top .xbtn[hidden] { display: none !important; }
.top .ca-k { font: 700 10.5px/1 var(--mono); letter-spacing: .1em; color: var(--hot-t); }
.top .ca-v { font-size: 12px; font-weight: 600; }
.top .xbtn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0;
  border: 1.5px solid var(--line-2); border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none;
}
.top .xbtn:hover { border-color: var(--hot); color: var(--hot-t); }
.top .xbtn svg { width: 15px; height: 15px; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--line-2); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: var(--pill); border: 2px solid var(--b); background: transparent; color: var(--ink);
  font: 700 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--edge); border-color: var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn.hot { --b: var(--hot); background: var(--hot); color: var(--hot-ink); }
.btn.hot:hover { border-color: var(--hot); }
.btn.ink { --b: var(--ink); background: var(--ink); color: var(--hot-ink); }
.btn.sm { height: 44px; padding: 0 16px; font-size: 12px; }
.btn.lg { height: 56px; padding: 0 26px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- home: the pitch on the left, the agent's console on the right ---------- */
.hero { padding-top: 34px; padding-bottom: 0; }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: start; }
.pitch { container-type: inline-size; min-width: 0; }
.kicker { margin: 0; font: 600 12px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--hot-t); }
.hero h1 {
  margin: 16px 0 0; font: 900 clamp(34px, 6vw, 80px)/.98 var(--display); letter-spacing: -.045em; text-transform: uppercase;
  font-size: clamp(34px, 13.4cqw, 96px);
}
.hero h1 mark {
  display: inline-block; margin: .12em 0 0 -.06em; padding: .08em .14em .1em .12em; line-height: .95;
  background: var(--hot); color: var(--hot-ink); border-radius: .16em;
}
.hero .lede { margin: 22px 0 0; max-width: 54ch; font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.45; color: var(--ink-2); }
.hero .lede b { color: var(--ink); font-weight: 600; }
.hero.home .acts { justify-content: flex-start; margin-top: 24px; }
.hero.home .stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 28px 0 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.hero.home .stat { padding: 14px 16px 14px; min-width: 0; background: none; border: 0; border-radius: 0; }
.hero.home .stat + .stat { border-left: 1px solid var(--rule); }
.hero.home .stat dt { font: 600 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero.home .stat dd { margin: 0 0 8px; font: 900 clamp(22px, 2.2vw, 32px)/1 var(--display); letter-spacing: -.05em; white-space: nowrap; }
.hero.home .stat:first-child dd { color: var(--hot-t); }
.hero.home .stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.statnote { margin: 10px 0 0; }

/* the console: the changelog as a diff. Every shipped idea is a "+" line */
.con { background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); overflow: hidden; box-shadow: 8px 8px 0 var(--edge); container-type: inline-size; min-width: 0; }
.con-top { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-bottom: 1px solid var(--rule); font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.con-top i { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); flex: none; animation: beat 1.6s steps(2, jump-none) infinite; }
.con-top b { color: var(--ink); font-weight: 600; }
.con-top span { margin-left: auto; color: var(--hot-t); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.odo { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 16px 14px; border-bottom: 1px solid var(--rule); }
.odo .v { font: 900 clamp(48px, 8vw, 96px)/.9 var(--display); font-size: clamp(48px, 21cqw, 104px); letter-spacing: -.05em; color: var(--hot-t); }
.odo .v .pre { font-size: .5em; color: var(--ink); margin-right: .04em; }
.odo .r { text-align: right; font: 500 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; }
.odo .r b { display: block; color: var(--ink); font-size: 13px; }
.hunk { padding: 9px 16px; font: 500 12px/1.4 var(--mono); color: var(--muted); background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.diff { list-style: none; margin: 0; padding: 0; font: 500 13.5px/1.2 var(--mono); }
.diff li { display: grid; grid-template-columns: 30px 50px minmax(0, 1fr) auto; align-items: center; gap: 0 4px; min-height: 38px; padding: 0 16px 0 0; border-bottom: 1px solid var(--rule); background: rgba(214, 255, 61, .07); }
.diff li:last-child { border-bottom: 0; }
.diff .p { text-align: center; color: var(--hot-t); font-weight: 700; }
.diff .n { color: var(--hot-t); font-weight: 700; }
.diff .t { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.diff .d { color: var(--muted); font-size: 11.5px; white-space: nowrap; padding-left: 10px; }
.diff li.next { background: none; }
.diff li.next .p, .diff li.next .n { color: var(--muted); }
.diff li.next .t { color: var(--ink-2); }
.diff li.next a { color: inherit; text-decoration: none; display: block; line-height: 38px; overflow: hidden; text-overflow: ellipsis; }
.diff li.next a:focus-visible { outline-offset: -3px; }
.diff li.next a:hover { color: var(--hot-t); }
.cur { display: inline-block; width: 8px; height: 15px; background: var(--hot); vertical-align: -2px; margin-left: 5px; animation: beat 1s steps(2, jump-none) infinite; }

/* how a patch ships: five steps */
.how { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: how; }
.how li { counter-increment: how; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 18px; min-width: 0; }
.how li::before { content: '0' counter(how); display: inline-block; font: 700 11px/1 var(--mono); letter-spacing: .08em; color: var(--hot-ink); background: var(--hot); padding: 5px 7px; border-radius: 6px; }
.how li b { display: block; margin: 12px 0 4px; font: 900 17px/1.1 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.how li span { display: block; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.how li:last-child { background: var(--hot); border-color: var(--hot); color: var(--hot-ink); }
.how li:last-child::before { background: var(--hot-ink); color: var(--hot); }
.how li:last-child span { color: var(--hot-ink); }

/* ---------- the agent's status card ---------- */
.status { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 8px; box-shadow: 6px 6px 0 var(--edge); }
.status h2 { margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; }
.status .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); color: var(--ink-2); }
.status .row .val { font-family: var(--mono); font-weight: 600; font-size: 14px; text-align: right; color: var(--ink); }
.status .now { padding: 4px 0 14px; }
.status .now b { display: block; font-weight: 700; font-size: 21px; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; }
.status .now .stage { display: inline-flex; margin-top: 8px; }
.status .now #pickline { display: block; margin-top: 8px; }
.clock { font-variant-numeric: tabular-nums; }

/* the tape of real counts */
.tape { background: var(--hot); color: var(--hot-ink); overflow: hidden; margin-top: 40px; }
.tape .run { display: flex; gap: 40px; width: max-content; padding: 13px 0; animation: tape 38s linear infinite; font: 700 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tape .run span::before { content: '+'; margin-right: 12px; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section.block { padding-top: 34px; padding-bottom: 8px; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.head.row { align-items: center; }
.head h2 { margin: 0; font: 900 clamp(26px, 3.3vw, 46px)/1 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.head h2 small { display: block; font: 600 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hot-t); margin-bottom: 12px; }
.head p { margin: 0; max-width: 46ch; color: var(--ink-2); }
.head-lede { margin: -4px 0 18px; max-width: 56ch; color: var(--ink-2); }
.head .side-acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }

.tabs { display: inline-flex; gap: 2px; padding: 3px; border: 1.5px solid var(--line-2); border-radius: var(--pill); background: var(--card); }
.tabs button, .tabs a { border: 0; background: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--pill); font: 600 13px/1 var(--body); cursor: pointer; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.tabs button[aria-pressed='true'], .tabs a[aria-current] { background: var(--hot); color: var(--hot-ink); font-weight: 700; }
.tabs button:hover:not([aria-pressed='true']), .tabs a:hover:not([aria-current]), .seg button:hover:not([aria-pressed='true']):not([disabled]) { background: var(--paper-2); color: var(--ink); }
.subwrap { margin-top: 16px; display: none; }   /* the rail lists every page on wide screens */
.subnav { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }

/* ---------- the suggestion box ---------- */
.box { background: var(--card); border: 2px solid var(--hot); border-radius: var(--r); padding: 16px; box-shadow: 8px 8px 0 var(--edge); }
.box textarea {
  width: 100%; min-height: 96px; resize: none; border: 0; outline: 0; background: transparent; display: block; color: var(--ink);
  font-size: 19px; line-height: 1.35; font-weight: 500;
}
.box textarea::placeholder { color: var(--ph); }
.box .boxbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 6px; flex-wrap: wrap; }
.note { font-size: 13px; color: var(--muted); }
.note.err { color: var(--bad); font-weight: 600; }
.note.ok { color: var(--good); font-weight: 600; }

.wall { display: grid; gap: 10px; margin-top: 18px; }
.wall + #more { margin-top: 14px; }
.sug {
  display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; padding: 14px 14px 12px 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; animation: drop .45s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.sug p { margin: 0; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.sug .meta { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.sug .why { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-2); border-left: 3px solid var(--rule-2); padding-left: 10px; }
.sug .thought { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-2); font-style: italic; border-left: 3px solid var(--hot); padding-left: 10px; }
.sug .thought b { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--hot-t); margin-right: 6px; }
.vote {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 52px; height: 52px; border-radius: 12px;
  border: 1.5px solid var(--rule-2); background: var(--paper-2); color: var(--ink); cursor: pointer; font-family: var(--mono); font-weight: 700; font-size: 14px; line-height: 1;
  transition: background .12s, border-color .12s, transform .12s;
}
.vote svg { width: 14px; height: 14px; margin-bottom: 4px; }
.vote:hover { border-color: var(--hot); }
.vote[aria-pressed='true'] { background: var(--hot); border-color: var(--hot); color: var(--hot-ink); }
.vote[disabled] { cursor: default; opacity: .55; }
.vote:active:not([disabled]) { transform: scale(.94); }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; border: 1.5px solid currentColor;
  font: 700 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.tag.new { color: var(--ink-2); }
.tag.picked, .tag.building, .tag.queued, .tag.review, .tag.approved { color: var(--hot-t); }
.tag.shipped { color: var(--hot-ink); background: var(--hot); border-color: var(--hot); }
.tag.later { color: var(--warn); }
.tag.no { color: var(--bad); }
.tag.seen { color: var(--muted); }

/* comments under a suggestion */
.sug .cbtn { margin-left: auto; min-height: 32px; padding: 0 10px; border: 1.5px solid var(--rule-2); border-radius: var(--pill); background: var(--paper-2); font: 600 11.5px var(--mono); color: var(--ink-2); cursor: pointer; }
.sug .cbtn:hover, .sug .cbtn[aria-expanded='true'] { border-color: var(--hot); color: var(--ink); }
.thread { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 10px; display: grid; gap: 10px; }
.thread p { margin: 0; }
.clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.clist li { display: grid; gap: 2px; padding-left: 10px; border-left: 3px solid var(--rule-2); }
.clist li p { font-size: 14.5px; overflow-wrap: anywhere; }
.cform { display: grid; gap: 8px; }
.cform textarea.in { min-height: 60px; }
.cbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
@media (pointer: coarse) {
  .sug .cbtn { min-height: 44px; padding: 0 14px; }
  .diff li { min-height: 44px; }
  .diff li.next a { line-height: 44px; }
}

/* ---------- the agent page grid ---------- */
section.agent {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; padding-top: 34px;
  grid-template-areas: "head status" "box status" "wall round"; align-items: start;
}
section.agent .ahead { grid-area: head; }
section.agent .box { grid-area: box; }
section.agent .wallwrap { grid-area: wall; }
section.agent .status { grid-area: status; }
section.agent .lastround { grid-area: round; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
section.agent .ahead .head { margin-bottom: 14px; }
section.agent .wallwrap .head { margin: 0; }
section.agent .lastround .head h2 { font-size: 24px; }
section.agent .lastround > .btn { margin-top: 12px; }

/* ---------- rounds: the agent's decisions ---------- */
.rounds { display: grid; gap: 14px; }
section.block .rounds { max-width: 820px; }
.roundgrid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; align-items: start; }
.roundgrid .status { position: sticky; top: 76px; }
.round { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.round header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 16px; background: var(--paper-2); color: var(--ink); border-bottom: 1px solid var(--rule); }
.round header b { font: 900 15px/1 var(--display); letter-spacing: -.03em; text-transform: uppercase; color: var(--hot-t); }
.round header .mono { color: var(--muted); }
.round .post { padding: 14px 16px 6px; white-space: pre-line; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.round .pick { margin: 8px 16px 14px; padding: 12px 14px; border: 1.5px solid var(--hot); border-radius: 12px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.round .pick b { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.round .tail { display: grid; gap: 8px; padding: 0 16px 14px; }
.dec { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: start; font-size: 14px; }
.dec .txt { overflow-wrap: anywhere; color: var(--ink-2); }
.dec .why { grid-column: 2; color: var(--muted); font-size: 13px; border-left: 3px solid var(--rule-2); padding-left: 10px; }
.tail .mono.muted { font-size: 12px; }
.tail > a.mono { color: var(--ink-2); }
.nextlink {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 28px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-decoration: none; transition: transform .12s, box-shadow .12s, border-color .12s;
}
.nextlink:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--edge); border-color: var(--hot); }
.nextlink b { font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.nextlink .mono { margin-left: auto; color: var(--muted); }

.empty { border: 2px dashed var(--line-2); border-radius: var(--r); padding: 28px 22px; text-align: center; color: var(--ink-2); background: rgba(13, 15, 46, .45); }
.empty b { display: block; font: 900 20px/1.1 var(--display); letter-spacing: -.04em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.empty .btn { margin-top: 14px; }
.facts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 14px 0 18px; }
.facts + .btn { margin-top: 0; }

/* ---------- patch notes: one tile per shipped version ---------- */
.notes { display: grid; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 0 22px; }
.note-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--rule); align-items: start; }
.note-row:first-child { border-top: 0; }
.note-row h3 { margin: 6px 0 4px; font-weight: 700; letter-spacing: -.02em; font-size: 23px; line-height: 1.15; }
.note-row p { margin: 6px 0 0; color: var(--ink-2); white-space: pre-line; max-width: 62ch; }
.note-row .mono.muted { display: block; }
.badge { width: 96px; height: 96px; transition: transform .2s ease; }
.note-row:hover .badge { transform: translate(-2px, -2px); }
.badge.pending { opacity: .5; }
.nextline { border: 1.5px solid var(--hot); border-radius: 12px; background: var(--card); padding: 12px 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.nextline .mono { font-size: 13px; }
.nextline a.mono { margin-left: auto; color: var(--ink-2); display: inline-flex; align-items: center; min-height: 44px; }
.failed-row { padding: 14px 0; border-top: 1px solid var(--rule); font-size: 13px; }
.ship { display: grid; gap: 0; padding: 4px 18px; margin: 0; list-style: none; max-width: 760px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.ship li { display: flex; gap: 12px; align-items: center; font-family: var(--mono); font-size: 13px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--rule); }
.ship li:first-child { border-top: 0; }
.ship li b { font-weight: 700; min-width: 28px; color: var(--hot-t); }
.ship li .tag { margin-left: auto; }

/* ---------- coins ---------- */
.coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.coin {
  display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; overflow: hidden; transition: transform .12s, box-shadow .12s, border-color .12s;
}
.coin:hover { transform: translate(-2px, -2px); border-color: var(--hot); box-shadow: 5px 5px 0 var(--edge); }
.coin .pic { aspect-ratio: 1; background: var(--paper-2) center/cover no-repeat; border-bottom: 1px solid var(--rule); }
.coin .body { padding: 12px 12px 14px; display: grid; gap: 6px; }
.coin .nm { font-weight: 700; font-size: 16px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin .tk { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.coin .mc { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.coin .mc b { color: var(--ink); }
.bar { height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--hot); border-radius: 99px; }
/* ---------- forms (launch) ---------- */
.launch { padding-top: 34px; padding-bottom: 60px; }
.launch .grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .85fr); gap: 28px; align-items: start; }
.launch h1 { margin: 10px 0 8px; font: 900 clamp(32px, 4.6vw, 62px)/1 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.launch .sub { margin: 0 0 26px; color: var(--ink-2); max-width: 54ch; }
.launch .label { color: var(--hot-t); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card + .card { margin-top: 14px; }
.cols > .card + .card { margin-top: 0; }   /* side by side, not stacked */
.card > .label { display: block; margin-bottom: 14px; color: var(--muted); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field > span { font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; }
.field > span em { font-style: normal; font-weight: 500; color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.in {
  width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--rule-2); border-radius: 12px; background: var(--paper-2); color: var(--ink);
  font-size: 16px; font-weight: 500; transition: border-color .12s;
}
.in::placeholder { color: var(--ph); }
textarea.in { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; line-height: 1.4; }
.in:focus { border-color: var(--hot); outline: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; margin-bottom: 16px; }
.two > .field { margin-bottom: 0; }
.drop {
  position: relative; display: grid; place-items: center; gap: 6px; min-height: 180px; border: 2px dashed var(--rule-2); border-radius: 14px;
  background: var(--paper-2); text-align: center; padding: 16px; cursor: pointer; transition: border-color .12s; overflow: hidden;
}
.drop:hover, .drop.over { border-color: var(--hot); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop.banner { min-height: 110px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border: 1.5px solid var(--rule-2); border-radius: 14px; background: var(--paper-2); }
.seg button { border: 0; border-radius: 10px; background: none; height: 44px; font-weight: 700; cursor: pointer; color: var(--ink-2); transition: background .12s; }
.seg button[aria-pressed='true'] { background: var(--hot); color: var(--hot-ink); }
.seg button[disabled] { opacity: .4; cursor: not-allowed; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; padding: 4px 0; }
.switch input { appearance: none; width: 52px; height: 30px; border-radius: 99px; background: var(--rule-2); position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .18s cubic-bezier(.3, .9, .3, 1.2); }
.switch input:checked { background: var(--hot); }
.switch input:checked::after { transform: translateX(22px); background: var(--hot-ink); }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.launch .costnote { display: none; margin: 14px 0 0; }   /* phones only, where the floating card drops its note */
.buyrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.unit { display: grid; place-items: center; height: 48px; padding: 0 14px; border: 1.5px solid var(--rule-2); border-radius: 12px; background: var(--paper-2); font-weight: 600; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chips button, .chips a { border: 1.5px solid var(--rule-2); background: var(--paper-2); color: var(--ink); border-radius: 99px; height: 36px; padding: 0 12px; font: 600 12px var(--mono); cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.chips button:hover, .chips a:hover { border-color: var(--hot); }
@media (pointer: coarse) { .chips button, .chips a { height: 44px; padding: 0 14px; } }
details.more summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: '+'; font-family: var(--mono); width: 24px; height: 24px; display: inline-grid; place-items: center; background: var(--hot); color: var(--hot-ink); border-radius: 7px; font-weight: 700; }
details.more[open] summary::before { content: '–'; }
details.more .fields { margin-top: 14px; }

.side { position: sticky; top: 76px; display: grid; gap: 14px; }
.side .card + .card { margin-top: 0; }
.preview .pv-banner { height: 92px; border-radius: 10px; background: var(--paper-2) center/cover; margin-bottom: -34px; border: 1px solid var(--rule); }
.preview .pv-head { display: flex; gap: 14px; align-items: end; }
.preview .pv-pic { width: 84px; height: 84px; border-radius: 16px; border: 2px solid var(--ink); background: var(--paper-2) center/cover; flex: none; }
.preview h3 { margin: 0; font-weight: 700; font-size: 22px; line-height: 1.1; overflow-wrap: anywhere; }
.preview .pv-tk { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.preview .pv-desc { margin: 14px 0 0; color: var(--ink-2); font-size: 14.5px; white-space: pre-line; overflow-wrap: anywhere; }
.preview .pv-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
#gocard { border: 2px solid var(--hot); box-shadow: 8px 8px 0 var(--edge); }
.go { width: 100%; height: 58px; font-size: 15px; }
.steps { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; }
.steps li { list-style: none; display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.steps li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--rule-2); flex: none; }
.steps li.on { color: var(--ink); }
.steps li.on::before { border-color: var(--hot); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--good); border-color: var(--good); }
.steps li.bad { color: var(--bad); }
.steps li.bad::before { background: var(--bad); border-color: var(--bad); }
.steps li .state { margin-left: auto; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; flex: none; }
.fail { display: grid; gap: 8px; justify-items: start; margin-top: 10px; }
.fail .hint { margin: 0; }
.fail details.more { width: 100%; }
.fail details.more summary { font-size: 14px; }
.fail pre.raw { margin: 6px 0 0; padding: 10px; max-height: 180px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.45 var(--mono); color: var(--ink-2); background: var(--deep); border: 1.5px solid var(--rule); border-radius: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.done-card { text-align: center; }
.done-card h2 { margin: 6px 0; font: 900 30px/1 var(--display); letter-spacing: -.045em; text-transform: uppercase; color: var(--hot-t); }
.ca { display: flex; gap: 8px; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12.5px; background: var(--paper-2); border: 1px solid var(--rule-2); border-radius: 12px; padding: 10px 12px; overflow-wrap: anywhere; }

/* ---------- coin page ---------- */
.coinpage { padding-top: 26px; padding-bottom: 60px; }
.coinpage .banner { height: clamp(120px, 22vw, 260px); border-radius: var(--r); background: var(--paper-2) center/cover; border: 1px solid var(--line); }
.coinpage .idrow { display: flex; gap: 20px; align-items: end; margin-top: 8px; flex-wrap: wrap; }
.coinpage .idrow .pic { width: 124px; height: 124px; border-radius: 24px; border: 3px solid var(--ink); background: var(--card) center/cover; box-shadow: 6px 6px 0 var(--edge); flex: none; }
.coinpage h1 { margin: 4px 0 0; font-weight: 800; letter-spacing: -.035em; font-size: clamp(32px, 4.4vw, 56px); line-height: 1; }
.coinpage #kicker { color: var(--hot-t); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 22px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.stat b { display: block; font: 700 20px/1.2 var(--mono); margin-top: 4px; }
.coinpage .cols .card > .label { color: var(--hot-t); }

/* ---------- the centre page: 404 and coin not found ---------- */
.center-page { text-align: center; padding: 90px 20px; }
.center-page h1 { margin: 0; font: 900 clamp(34px, 5.4vw, 72px)/1 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.center-page .sub { margin: 14px auto 26px; color: var(--ink-2); max-width: 44ch; }

/* ---------- footer ---------- */
footer.foot { margin-top: 80px; background: var(--card); border-top: 1px solid var(--line); padding: 34px 0 44px; }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: start; }
footer.foot .big { font: 900 clamp(34px, 6.4vw, 88px)/.9 var(--display); letter-spacing: -.05em; text-transform: uppercase; }
footer.foot .big span { color: var(--hot-t); text-transform: none; }
footer.foot .links { max-width: 48ch; }
footer.foot .links p { margin: 0; font-size: 14px; }
footer.foot .links p a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.footnav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px -14px; }
.footnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--pill); text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.footnav a:hover { background: var(--paper-2); color: var(--ink); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; z-index: 70; background: var(--hot); color: var(--hot-ink); padding: 12px 18px; border-radius: var(--pill); font-weight: 700; font-size: 14px; max-width: calc(100vw - 32px); box-shadow: 4px 4px 0 var(--edge); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- the cycle clock: a card in the rail on wide screens, a strip under the top bar on phones ---------- */
.cycle { display: block; position: relative; text-decoration: none; color: var(--ink); }
.cycle[hidden] { display: none !important; }
.cycle .cy-n { flex: none; justify-self: start; font: 700 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hot-ink); background: var(--hot); padding: 5px 7px; border-radius: 5px; }
.cycle .cy-head { display: block; font-weight: 700; font-size: 14.5px; line-height: 1.25; letter-spacing: -.01em; }
.cycle .cy-sub { display: block; font: 400 11.5px/1.35 var(--mono); color: var(--muted); margin-top: 3px; }
.cycle .cy-label { font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cycle .cy-clock { font: 700 26px/1 var(--mono); color: var(--hot-t); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cycle .cy-clock.words { font: 700 13px/1.25 var(--body); letter-spacing: 0; }
.cycle .cy-bar { height: 4px; background: var(--rule); }
.cycle .cy-bar i { display: block; height: 100%; width: 0; background: var(--hot); transition: width 1s linear; }
.cycle .cy-bar.run i { background: repeating-linear-gradient(90deg, var(--hot) 0 18px, transparent 18px 30px); background-size: 30px 100%; animation: cy-run .8s linear infinite; }
@keyframes cy-run { to { background-position: 30px 0; } }
.cycle:hover .cy-head { text-decoration: underline; text-underline-offset: 3px; }
.cycle:focus-visible { outline: 3px solid var(--hot); outline-offset: -3px; }
.cycle.pane { margin-top: auto; flex: none; position: sticky; bottom: 0; z-index: 1; box-shadow: 0 14px 0 var(--card); background: var(--deep); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cycle.pane .wrap { display: grid; gap: 12px; padding: 12px 12px 14px; max-width: none; }
.cycle.pane .cy-left { display: grid; gap: 8px; }
.cycle.pane .cy-right { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cycle.pane .cy-clock.words { text-align: right; }
.cycle.strip { display: none; background: var(--card); border-bottom: 1px solid var(--line); }
.cycle.strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 58px; padding-top: 9px; padding-bottom: 12px; }
.cycle.strip .cy-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cycle.strip .cy-left > div { min-width: 0; }
.cycle.strip .cy-head { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cycle.strip .cy-right { display: flex; align-items: baseline; gap: 10px; flex: none; }
.cycle.strip .cy-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }

/* ---------- live build: Claude's steps as they happen ---------- */
.livegrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: 24px; align-items: start; margin-top: 22px; }
.term { background: var(--deep); color: var(--ink); border-radius: var(--r); border: 2px solid var(--edge); box-shadow: 8px 8px 0 var(--edge); overflow: hidden; }
.term-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.term-top b { font-weight: 700; font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-top .mono { color: var(--muted); }
.term-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-2); flex: none; }
.term-dot.building { background: var(--hot); animation: beat 1.4s steps(2, jump-none) infinite; }
.term-dot.review, .term-dot.approved { background: var(--warn); }
.term-dot.shipped { background: var(--good); }
.term-body { list-style: none; margin: 0; padding: 12px 0 16px; height: 520px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; font: 13px/1.5 var(--mono); }
@media (max-width: 560px) { .term-body { height: 60vh; } }
.ev { display: grid; grid-template-columns: 70px 64px minmax(0, 1fr); gap: 10px; padding: 3px 16px; }
.ev-t { color: #7178c9; }
.ev-k { text-transform: uppercase; font-weight: 700; font-size: 11px; letter-spacing: .08em; padding-top: 2px; color: var(--muted); }
.ev-x { overflow-wrap: anywhere; color: var(--ink-2); }
.ev.think .ev-x { color: #9aa0e6; font-style: italic; }
.ev.think .ev-k { color: #7f86d6; }
.ev.write .ev-k, .ev.done .ev-k { color: var(--hot-t); }
.ev.check .ev-k { color: #ffffff; }
.ev.error .ev-k, .ev.error .ev-x { color: var(--bad); }
.ev.done .ev-x { font-weight: 700; color: var(--ink); }
.term-body.running::after { content: '\258D'; display: block; padding: 4px 16px 0 160px; color: var(--hot); animation: beat 1s steps(2, jump-none) infinite; }
.term-status { border-top: 1px solid var(--rule); padding: 10px 16px; color: var(--hot-t); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-status::before { content: '>  '; animation: beat 1.4s steps(2, jump-none) infinite; }
.livecard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 8px; }
.livecard h3 { margin: 0; font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.livecard p { margin: 0 0 10px; font-size: 14px; white-space: pre-line; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }

/* ---------- wallet picker ---------- */
.wpick-bg { position: fixed; inset: 0; z-index: 60; background: rgba(7, 8, 24, .72); display: grid; place-items: center; padding: 16px; }
.wpick { width: min(420px, 100%); background: var(--card); border: 2px solid var(--hot); border-radius: 20px; box-shadow: 8px 8px 0 var(--edge); padding: 18px; display: grid; gap: 10px; }
.wpick-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wpick-head b { font: 900 19px/1.1 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.wpick p { margin: 0; }
.wpick-list { display: grid; gap: 8px; }
.wopt { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--rule-2); border-radius: 14px; background: var(--paper-2); font: inherit; font-weight: 700; color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; }
.wopt:hover, .wopt:focus-visible { border-color: var(--hot); }
.wopt.off { opacity: .7; font-weight: 600; }

/* ---------- small screens ---------- */
@media (max-width: 1099.98px) {
  /* closed, the drawer is out of the tab order and hidden from screen readers */
  .rail { transform: translateX(-104%); visibility: hidden; transition: transform .2s ease, visibility 0s .2s; width: min(300px, 86vw); }
  body.rail-open .rail { transform: none; visibility: visible; transition: transform .2s ease; box-shadow: 10px 0 0 var(--edge); }
  body.rail-open .rail-shade { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(7, 8, 24, .66); }
  body.rail-open { overflow: hidden; }
  .rail .cycle.pane { display: none; }
  .cycle.strip { display: block; }
  .menu { display: grid; }
  .here { display: none; }
  .top .ver { display: inline-flex; }
  .top .toplaunch { display: inline-flex; }
  .top .toplaunch[aria-current] { display: none; }
  .top .wrap { padding: 0 16px; gap: 8px; }
  .top .xbtn { width: 44px; height: 44px; }
  .top .ca { height: 44px; }
  .railnav a { min-height: 44px; }
  .subwrap { display: block; }
}
@media (max-width: 980px) {
  .hero .grid, .cols, .launch .grid { grid-template-columns: minmax(0, 1fr); }
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how li:last-child { grid-column: 1 / -1; }
  .side { position: static; }
  section.agent { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "box" "status" "wall" "round"; }
  section.agent .lastround { position: static; max-height: none; overflow: visible; }
  .roundgrid { grid-template-columns: minmax(0, 1fr); }
  .roundgrid .status { position: static; }
  .livegrid { grid-template-columns: minmax(0, 1fr); }
  /* the launch card floats at the bottom while the form scrolls, then settles into its own slot at the end */
  .launch aside.side { display: contents; }
  .launch .preview { order: -1; }
  #gocard { position: sticky; bottom: 12px; z-index: 5; box-shadow: 0 -12px 0 var(--paper), 6px 6px 0 var(--edge); margin-top: 16px; }
  #gocard .note.idle { display: none; }
  .launch.typing #gocard, .launch:has(input:focus, textarea:focus) #gocard { position: static; }
  .launch .costnote { display: block; }
  #done { margin-top: 16px; }
  .launch .grid { padding-bottom: 12px; }
}
@media (max-width: 860px) {
  .top .ver { display: none; }
  .top .ca-v { display: none; }
  .top .ca { padding: 0 12px; }
  .top .xbtn { display: none; }   /* it lives at the foot of the drawer */
  .top .hot .long { display: none; }
  .top .hot .short { display: inline; }
}
@media (max-width: 720px) {
  .top .ca-v { display: none; }
  .top .ca { padding: 0 12px; height: 44px; }
  .top .xbtn { display: none; }   /* it lives at the foot of the drawer on phones */
  .cycle.strip .wrap { flex-direction: column; align-items: stretch; gap: 8px; }
  .cycle.strip .cy-right { justify-content: space-between; }
  .cycle.strip .cy-head { white-space: normal; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top .wrap { gap: 6px; padding: 0 12px; }
  .btn.sm { padding: 0 12px; }
  .brand { gap: 7px; }
  .brand b { font-size: 16px; }
  .top .ver { display: none; }
  .top .hot .long { display: none; }
  .top .hot .short { display: inline; }
  .hero { padding-top: 24px; }
  .hero.home .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero.home .stat:nth-child(3) { border-left: 0; }
  .hero.home .stat:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .hero.home .acts .btn { flex: 1 1 100%; }
  .con { box-shadow: 5px 5px 0 var(--edge); }
  .how { grid-template-columns: minmax(0, 1fr); }
  .footnav { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin-left: -10px; }
  .footnav a { padding: 0 10px; }
  .coins { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .notes { padding: 0 14px; }
  .note-row { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
  .badge { width: 64px; height: 64px; }
  .two { grid-template-columns: 1fr; }
  .status, .box, .term { box-shadow: 5px 5px 0 var(--edge); }
  .nextlink .mono, .nextline a.mono { margin-left: 0; width: 100%; }
  .coinpage .idrow .pic { width: 96px; height: 96px; border-radius: 20px; }
  .ev { grid-template-columns: 56px minmax(0, 1fr); }
  .ev-t { grid-row: span 2; }
  .ev-k, .ev-x { grid-column: 2; }
  .term-body.running::after { padding-left: 82px; }
}
@media (max-width: 480px) {
  .top .brand b { display: none; }   /* phones: the mark alone leaves room for CA + Launch + Connect on one row */
}
@media (max-width: 350px) {
  .top .ca { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* the X link the top bar drops on phones, at the foot of the drawer */
.rail-tools { display: none; gap: 8px; align-items: center; margin-top: 14px; }
.rail-tools a, .rail-tools button { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--line-2); border-radius: 50%; background: var(--paper-2); color: var(--ink); cursor: pointer; text-decoration: none; position: relative; }
.rail-tools svg { width: 17px; height: 17px; }
.rail-tools [hidden] { display: none !important; }
@media (max-width: 860px) { .rail-tools { display: flex; } }
