/* Unisonpad inner pages, in the scheme of the home page (ported from the EventyOn MCP landing):
 * a plum-black field with a violet glow, a thin top bar, huge outlined titles that fill in,
 * flat cards with a hairline border, mono labels, cream pills for what you press.
 * Instrument Sans for text, Geist Mono for labels. The page structure (rail, board, steps, dialog) stays. */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- shared ---------- */
.fig { font-variant-numeric: tabular-nums; }
.num, td.fig { text-align: right; }
.sub { margin-top: var(--space-sm); font-size: 13px; line-height: 1.45; color: var(--color-muted); }
.note { margin-top: var(--space-lg); font-size: 13px; color: var(--color-muted); }
.note a, .sub a, .plain a { color: var(--color-text-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font: 400 10.5px/1 var(--font-mono); color: var(--color-muted); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-mint); animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(94, 242, 200, .5); } 60% { box-shadow: 0 0 0 6px rgba(94, 242, 200, 0); } }

.panel { position: relative; border: 1px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-fill); }

.chip { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 99px; background: var(--tone); color: var(--cream); font: 400 10.5px/1 var(--font-mono); white-space: nowrap; }
.chip--done { background: rgba(94, 242, 200, .14); color: var(--color-mint); }
.chip[data-tone]::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.chip[data-tone="live"] { background: rgba(94, 242, 200, .14); color: var(--color-mint); }
.chip[data-tone="live"]::before { animation: pulse 1.8s var(--ease-out) infinite; }
.chip[data-tone="soon"] { background: var(--tone); color: var(--hot); }
.chip[data-tone="done"] { background: rgba(94, 242, 200, .1); color: var(--color-mint); }
.chip[data-tone="off"] { background: var(--color-fill-2); color: var(--color-muted); }

/* ---------- controls ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 22px; border: 1px solid transparent; border-radius: 99px; background: var(--cream); color: var(--dark); font: 600 15px/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease-out); }
.btn:hover { background: var(--magenta); color: #fff; transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn--sm { height: 34px; padding: 0 16px; font-size: 14px; }
.btn--primary { background: var(--cream); color: var(--dark); }
.btn--ghost, .btn--light { background: none; border-color: var(--color-line-2); color: var(--color-text); }
.btn--ghost:hover, .btn--light:hover { background: var(--color-fill-2); border-color: color-mix(in oklab, var(--color-text) 50%, transparent); color: var(--color-text); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; background: var(--cream); color: var(--dark); }
.btn .arrow { transition: transform .2s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 0; border-radius: 99px; background: var(--tone); color: var(--cream); font: 400 11px/1 var(--font-mono); text-decoration: none; cursor: pointer; }

label, legend, .label { display: block; padding: 0; margin: 0 0 8px; font: 400 10.5px/1.3 var(--font-mono); color: var(--color-muted); }
input[type="text"], input[type="number"], input[type="email"], textarea, select { width: 100%; min-width: 0; height: 44px; padding: 0 16px; border: 1px solid var(--color-line-2); border-radius: 10px; background: var(--color-fill); color: var(--color-text); font: 500 15px/1 var(--font-body); outline: 2px solid transparent; outline-offset: -1px; transition: border-color .2s, background-color .2s; }
textarea { height: auto; min-height: 92px; padding: 12px 16px; line-height: 1.45; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--color-faint); }
input:hover, textarea:hover, select:hover { border-color: color-mix(in oklab, var(--color-text) 40%, transparent); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 0; border-color: var(--hot); background: color-mix(in oklab, var(--magenta) 10%, transparent); }
input[aria-invalid] { border-color: var(--color-error); }
select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 19px, calc(100% - 15px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: var(--dark); }

/* ---------- the top bar ---------- */
.top { position: sticky; top: 0; z-index: var(--z-nav); display: flex; align-items: center; gap: 26px; height: var(--head); padding: 0 12px 0 18px; background: color-mix(in oklab, var(--color-bg) 82%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--color-line); color: var(--cream); font: 500 14px/1 var(--font-body); }
.brand { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 700 15px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.brand img { width: 26px; height: 26px; filter: drop-shadow(0 0 8px rgba(255, 199, 94, .8)); transition: transform .5s var(--ease-out); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.links { display: flex; gap: 22px; margin-left: 18px; }
.links a { text-decoration: none; opacity: .72; transition: opacity .2s; }
.links a:hover, .links a[aria-current="page"] { opacity: 1; }
.links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--hot); }
.top-addr { margin-left: auto; padding: 8px 10px; border: 0; border-radius: 99px; background: none; color: inherit; font: 400 11px/1 var(--font-mono); opacity: .72; cursor: pointer; transition: opacity .2s, background .2s; }
.top-addr[hidden] { display: none; }
.top-addr[hidden] ~ .nav-cta { margin-left: auto; }
.top-addr:hover { opacity: 1; background: var(--color-fill-2); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 18px; border: 0; border-radius: 99px; background: var(--cream); color: var(--dark); font: 600 14px/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease-out); }
.nav-cta:hover { background: var(--magenta); color: #fff; transform: translateY(-1px); }
.nav-cta.is-wallet::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-mint); box-shadow: 0 0 0 3px rgba(94, 242, 200, .2); }
.chip.net { height: 22px; }
.banner { max-width: var(--container); margin: 12px max(var(--gutter), calc((100% - var(--container)) / 2)) 0; padding: 10px 16px; border: 1px solid var(--color-line-2); border-radius: 8px; background: var(--color-fill); font-size: 13px; color: var(--color-text-2); }

/* ---------- page frame: a glow at the top, an outlined title that fills in ---------- */
.page { position: relative; isolation: isolate; padding-block: var(--space-3xl) var(--section-gap); }
.page::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -340px; width: 1200px; height: 900px; margin-left: -300px; background: radial-gradient(closest-side, rgba(247, 181, 59, .34), rgba(247, 181, 59, .1) 50%, transparent 74%); pointer-events: none; }
.page__head { display: grid; justify-items: start; gap: 18px; }
.page__head--row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.page__head--row > div { display: grid; justify-items: start; gap: 18px; }
.page__head--row > :last-child { justify-self: end; }
.page__head .lead { max-width: 54ch; }
.ch-title { position: relative; display: inline-block; margin: 0; font: 600 clamp(64px, 9vw, 132px)/.95 var(--font-body); letter-spacing: -.055em; color: transparent; -webkit-text-stroke: 1px color-mix(in oklab, var(--color-text) 46%, transparent); }
.ch-title::after { content: attr(data-t); position: absolute; inset: 0; color: var(--color-text); -webkit-text-stroke: 0 transparent; clip-path: inset(0 0 -.2em 0); animation: fill 1.4s var(--ease-out) .15s both; }
@keyframes fill { from { clip-path: inset(100% 0 -.2em 0); } }
.page__body { margin-top: var(--space-2xl); }
.plain h2 { font-size: var(--text-xl); letter-spacing: -.025em; }
.plain p { margin-top: 8px; max-width: 52ch; color: var(--color-muted); }

/* the Open card (peak-chart.js draws it) and the sample bid */
.peak { display: flex; justify-content: center; min-width: 0; filter: drop-shadow(0 40px 70px rgba(24, 18, 8, .6)); }
.bid { padding: var(--space-lg); }
.bid__row { display: flex; gap: 8px; }
.bid__row input { flex: 1 1 6rem; border-radius: 99px; font-variant-numeric: tabular-nums; }
.bid__help { min-height: 2.6em; margin-top: 12px; font-size: 13px; line-height: 1.4; color: var(--color-muted); }
.bid + .plain { margin-top: var(--space-2xl); }

/* ================================================================
   OPENS: a running rail of coins over the board
   ================================================================ */
.rail { margin-top: var(--space-2xl); }
.rail__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rail__head h2 { display: flex; align-items: center; gap: 10px; font: 600 20px/1 var(--font-body); letter-spacing: -.02em; }
.rail__ctl { display: flex; gap: 6px; }
.iconbtn { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--color-line-2); border-radius: 50%; background: none; color: var(--color-text-2); cursor: pointer; transition: background-color .2s; }
.iconbtn:hover { background: var(--color-fill-2); color: var(--color-text); }
.iconbtn svg { width: 14px; height: 14px; }
.rail__view { position: relative; margin-top: 16px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent); }
.rail__track { display: flex; gap: 16px; width: max-content; list-style: none; margin: 0; padding: 4px 0 8px; animation: rail var(--rail-dur, 40s) linear infinite; }
.rail--still .rail__track { animation: none; }
.rail--still [data-rail-toggle] { display: none; }
.rail.is-paused .rail__track, .rail__view:hover .rail__track, .rail__view:focus-within .rail__track { animation-play-state: paused; }
@keyframes rail { to { transform: translateX(calc(-50% - 8px)); } }
@media (prefers-reduced-motion: reduce) { .rail__view { overflow-x: auto; } .rail__track { animation: none; } }
.rcard { width: 196px; }
.rcard a { display: block; text-decoration: none; }
.rcard__pic { position: relative; aspect-ratio: 1; border: 1px solid var(--color-line); border-radius: 8px; overflow: hidden; background: var(--av, var(--tone)); transition: transform .5s var(--ease-out), border-color .3s; }
.rcard a:hover .rcard__pic { transform: translateY(-4px); border-color: var(--hot); }
.rcard__pic img { width: 100%; height: 100%; object-fit: cover; }
.rcard__pic .initials { position: absolute; inset: 0; display: grid; place-items: center; font: 800 52px/1 var(--font-body); letter-spacing: -.06em; color: rgba(255, 255, 255, .92); }
.rcard__pic .chip { position: absolute; left: 8px; bottom: 8px; background: rgba(11, 9, 6, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rcard__meta { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--color-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard__meta .rank { font: 400 10px/1 var(--font-mono); color: var(--color-faint); }
.rcard__meta b { font-weight: 600; color: var(--color-text); overflow: hidden; text-overflow: ellipsis; }
.rcard__big { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; font: 600 22px/1 var(--font-body); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rcard__big small { font: 400 10px/1 var(--font-mono); letter-spacing: 0; color: var(--color-muted); }
.rcard__big .up { color: var(--color-mint); }

.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; margin-top: var(--space-2xl); border-bottom: 1px solid var(--color-line); }
.tab { position: relative; padding: 12px 0; margin-bottom: -1px; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--color-muted); font: 500 14px/1 var(--font-body); cursor: pointer; transition: color .2s; }
.tab:hover { color: var(--color-text); }
.tab[aria-selected="true"] { color: var(--color-text); border-bottom-color: var(--color-text); }
.tab .count { margin-left: 5px; font: 400 10px/1 var(--font-mono); color: var(--color-faint); }
.tabs__end { margin-left: auto; display: flex; align-items: center; gap: 8px; font: 400 10.5px/1 var(--font-mono); color: var(--color-faint); }

.boardcard { margin-top: 16px; padding: 4px 16px; }
.board th, .board td { padding: 14px 12px; border-top: 1px solid var(--color-line); white-space: nowrap; }
.board thead th { padding-block: 14px 10px; border-top: 0; font: 400 10.5px/1 var(--font-mono); color: var(--color-faint); }
.board tbody tr { transition: background-color .2s; }
.board tbody tr:hover { background: var(--color-fill); }
.board tbody th { font-size: 15px; font-weight: 500; }
.board tbody th a { text-decoration: none; }
.board tbody th a:hover { text-decoration: underline; }
.board .tkr, .board .when { margin-left: 8px; font: 400 10.5px/1 var(--font-mono); color: var(--color-muted); }
.board tbody td.num { font-size: 15px; font-weight: 500; }
.coincell { display: flex; align-items: center; gap: 12px; }
.coincell .name { display: grid; gap: 4px; min-width: 0; }
.coincell .name a { font-weight: 600; letter-spacing: -.015em; }
.coincell .name small { font: 400 10px/1 var(--font-mono); color: var(--color-faint); }
.coincell .name small .tkr { margin: 0 6px 0 0; color: var(--color-muted); }
.avatar { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--av, var(--tone)); font: 800 14px/1 var(--font-body); letter-spacing: -.04em; color: #fff; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.avatar img:not([hidden]) + span { display: none; }
.goal { display: grid; gap: 6px; min-width: 150px; }
.goal__bar { height: 2px; background: var(--color-line); }
.goal__bar i { display: block; height: 100%; width: var(--w, 0%); background: var(--color-text); }
.goal.is-met .goal__bar i { background: var(--color-mint); }
.goal small { font: 400 10.5px/1.3 var(--font-mono); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.goal small b { font-weight: 500; color: var(--color-text); }
.empty { padding: var(--space-3xl) var(--space-lg); text-align: center; color: var(--color-muted); }
.empty h3 { color: var(--color-text); font-size: var(--text-xl); }
.empty p { margin-top: 6px; }
.empty .btn { margin-top: var(--space-lg); }

/* ================================================================
   LAUNCH: two steps on the left, the coin as bidders see it on the right
   ================================================================ */
.launch { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.composer { padding: 28px; }
.stepper { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0 0 28px; padding: 0 0 18px; border-bottom: 1px solid var(--color-line); }
.stepper button { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--color-faint); font: 400 11px/1 var(--font-mono); cursor: pointer; }
.stepper button span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--color-line-2); font: 600 12.5px/1 var(--font-body); transition: background-color .3s, color .3s, border-color .3s; }
.stepper [aria-current] button { color: var(--color-text); }
.stepper [aria-current] button span { background: var(--cream); border-color: var(--cream); color: var(--dark); }
.stepper .is-done button { color: var(--color-text-2); }
.stepper .is-done button span { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin: 0; padding: 0; border: 0; min-width: 0; animation: stepin .5s var(--ease-out); }
@keyframes stepin { from { opacity: 0; translate: 12px 0; } }
.step__title { grid-column: 1 / -1; float: left; width: 100%; margin: 0; font: 600 26px/1.1 var(--font-body); letter-spacing: -.035em; color: var(--color-text); }
.step__title + * { clear: both; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.count { margin-top: 6px; font: 400 10px/1 var(--font-mono); color: var(--color-faint); }
.pic { display: flex; align-items: center; gap: 22px; }
.pic__drop { position: relative; flex: none; display: grid; place-items: center; width: 92px; height: 92px; border: 1px dashed var(--color-line-2); border-radius: 8px; background: var(--color-fill); color: var(--color-muted); overflow: hidden; }
.pic__drop svg { width: 22px; height: 22px; }
.pic__drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pic__side { display: grid; gap: 10px; justify-items: start; }
.pic__side p { font-size: 13px; color: var(--color-muted); }
.pic input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pic label.btn { margin: 0; font: 600 14px/1 var(--font-body); color: var(--color-text); }
.pic input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.step__end, .composer__end { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 14px; padding-top: 18px; border-top: 1px solid var(--color-line); }
.step__end p { margin-right: auto; font-size: 13px; color: var(--color-error); }
.composer__end p { flex: 1 1 100%; order: 3; font-size: 13px; color: var(--color-muted); }
.composer__end .btn:not(.btn--ghost) { flex: 1 1 auto; }
.groove { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--color-line-2); border-radius: 99px; }
.groove input { position: absolute; opacity: 0; pointer-events: none; }
.groove label { display: flex; align-items: center; justify-content: center; height: 36px; margin: 0; border-radius: 99px; font: 500 14px/1 var(--font-body); color: var(--color-muted); cursor: pointer; transition: color .2s, background-color .2s; }
.groove label:hover { color: var(--color-text); }
.groove input:checked + label { background: var(--cream); color: var(--dark); }
.groove input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.hint { margin-top: 6px; font-size: 13px; color: var(--color-muted); }

.onboard { position: sticky; top: calc(var(--head) + var(--space-xl)); display: grid; gap: 10px; }
.preview { padding: 26px; }
.preview::before { content: ""; position: absolute; left: -17px; top: 34px; width: 16px; height: 1px; background: color-mix(in oklab, var(--color-text) 60%, transparent); }
.preview::after { content: ""; position: absolute; left: -20px; top: 31.5px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-text); }
.preview__top { display: flex; align-items: center; gap: 16px; }
.preview__top .avatar { width: 64px; height: 64px; border-radius: 8px; font-size: 22px; }
.preview__name { font: 600 26px/1.05 var(--font-body); letter-spacing: -.035em; overflow-wrap: anywhere; }
.preview__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.preview__tags .fig { margin-right: 4px; font: 400 11px/1 var(--font-mono); color: var(--color-muted); }
.preview__line { margin-top: 20px; color: var(--color-text-2); }
.preview #p-goal { margin-top: 6px; color: var(--color-text-2); }
.preview #p-goal:empty { display: none; }
.terms dt { font: 400 10.5px/1.3 var(--font-mono); color: var(--color-muted); }
.terms dd { margin-top: 5px; font: 600 16px/1.2 var(--font-body); letter-spacing: -.015em; }
.terms > div { padding-block: 14px; border-top: 1px solid var(--color-line); }
.terms > div:first-child { padding-top: 0; border-top: 0; }
.terms--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--color-line); }
.terms--grid > div, .terms--grid > div:first-child { padding: 0; border: 0; }
.onboard > .note { margin: 0; }

/* ================================================================
   WALLET: one dialog to pick a Solana wallet
   ================================================================ */
.wm { width: min(400px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); margin: auto; padding: 0; border: 0; border-radius: 22px; background: transparent; color: var(--cream); overflow: visible; }
.wm::backdrop { background: rgba(8, 6, 4, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.wm[open] { animation: wmin .42s var(--ease-out); }
@keyframes wmin { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.wm__card { padding: 14px; border: 1px solid var(--color-line); border-radius: 22px; background: #17110a; box-shadow: 0 30px 80px -20px rgba(4, 3, 2, .95); }
.wm__head { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; padding: 4px 2px 14px; text-align: center; }
.wm__head h2 { font: 600 16px/1 var(--font-body); letter-spacing: -.01em; }
.wm__x, .wm__help { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--color-muted); cursor: pointer; }
.wm__x:hover, .wm__help:hover { background: var(--color-fill-2); color: var(--color-text); }
.wm__help svg, .wm__x svg { width: 16px; height: 16px; }
.wm__list { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
.wm__row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 10px 12px; border: 0; border-radius: 14px; background: transparent; color: var(--cream); text-align: left; text-decoration: none; cursor: pointer; font: 500 16px/1 var(--font-body); transition: background-color .2s; }
.wm__row:hover, .wm__row:focus-visible { background: var(--color-fill-2); }
.wm__row--muted { background: var(--color-fill); }
.wm__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; overflow: hidden; }
.wm__icon svg { width: 100%; height: 100%; }
.wm__name { font-size: 16px; font-weight: 500; }
.wm__badge { margin-left: auto; padding: 4px 9px; border-radius: 99px; font: 400 9.5px/1 var(--font-mono); background: rgba(94, 242, 200, .14); color: var(--color-mint); }
.wm__badge--off { background: var(--color-fill-2); color: var(--color-muted); }
.wm__badge + .wm__chev { margin-left: 4px; }
.wm__chev { margin-left: auto; color: var(--color-faint); font-size: 18px; line-height: 1; }
.wm__foot { padding: 14px 8px 4px; text-align: center; font-size: 13px; color: var(--color-faint); }
.wm__foot a { color: var(--color-muted); }
.wm__msg { margin: 8px 4px 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 110, 110, .12); color: #ffc4c4; font-size: 14px; }
.wm__msg:empty { display: none; }
.wm__me { display: grid; justify-items: center; gap: 10px; padding: 8px 8px 16px; text-align: center; }
.wm__me .avatar { width: 64px; height: 64px; font-size: 20px; }
.wm__addr { font: 400 13px/1 var(--font-mono); }
.wm__bal { font: 600 28px/1 var(--font-body); letter-spacing: -.03em; }
.wm__bal small { font-size: 14px; font-weight: 500; color: var(--color-muted); }
.wm__acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.wm__acts .btn { height: 42px; }
.wm__acts .btn:last-child { grid-column: 1 / -1; }

/* ================================================================
   ONE OPEN
   ================================================================ */
.cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: var(--space-3xl); align-items: start; }
.cols--card { grid-template-columns: minmax(0, 440px) minmax(0, 30rem); align-items: center; }
.open-live { align-items: start; }
.coin-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; }
.coin-head h1 { font: 600 clamp(40px, 5vw, 72px)/.98 var(--font-body); letter-spacing: -.05em; }
.coin-head > .coin-pic { grid-row: span 2; width: 76px; height: 76px; margin: 0; border-radius: 8px; }
.coin-head > :not(.coin-pic) { grid-column: 2; }
.coin-head .about { grid-column: 1 / -1; margin-top: 12px; color: var(--color-text-2); overflow-wrap: anywhere; }
.coin-pic { display: inline-block; width: 1.6em; height: 1.6em; margin-right: .5em; border-radius: 6px; object-fit: cover; vertical-align: middle; background: var(--tone); }
.act { margin-top: var(--space-lg); padding: 26px; }
.act > * + * { margin-top: 16px; }
.act h2 { display: flex; align-items: baseline; gap: 10px; font: 600 19px/24px var(--font-body); letter-spacing: -.02em; }
.act h2::before { content: ""; flex: none; width: 5px; height: 5px; border: 1px solid currentColor; border-radius: 50%; transform: translateY(-3px); }
.act hr { border: 0; border-top: 1px solid var(--color-line); margin-block: var(--space-lg); }
.act form { display: grid; gap: 16px; justify-items: start; }
.act form .field { width: 100%; }
.act__row { display: flex; flex-wrap: wrap; gap: 8px; }
.act .pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.act .pairs dt { font: 400 10.5px/1.3 var(--font-mono); color: var(--color-muted); }
.act .pairs dd { margin-top: 5px; font: 600 18px/1.2 var(--font-body); letter-spacing: -.02em; }
.msg { min-height: 1lh; margin-top: 12px; font-size: 13px; color: var(--color-text-2); }
.msg.is-bad { color: var(--color-error); }
.open-live .terms { margin-top: var(--space-xl); }
input[type="file"] { width: 100%; padding: 12px 0; color: var(--color-text-2); font: inherit; }
input[type="file"]::file-selector-button { margin-right: 16px; height: 34px; padding: 0 16px; border: 1px solid var(--color-line-2); border-radius: 99px; background: none; color: var(--color-text); font: 600 14px/1 var(--font-body); cursor: pointer; }

/* ================================================================
   DOCS: a document with an index on the left
   ================================================================ */
.docs__grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--space-3xl); align-items: start; margin-top: var(--space-2xl); }
.toc { position: sticky; top: calc(var(--head) + 24px); display: grid; font: 400 11px/1 var(--font-mono); }
.toc a { display: flex; align-items: center; height: 26px; text-decoration: none; color: var(--color-text); transition: opacity .2s; opacity: .55; }
.toc a::before { content: ""; flex: none; width: 5px; height: 5px; margin-right: 10px; border: 1px solid currentColor; border-radius: 50%; transition: background .2s, transform .3s var(--ease-out); }
.toc a:hover, .toc a[aria-current] { opacity: 1; }
.toc a[aria-current]::before, .toc a:hover::before { background: currentColor; }
.toc a:hover::before { transform: scale(1.3); }
.docs__body { max-width: 800px; }
.doc { padding-block: var(--space-2xl); border-top: 1px solid var(--color-line); scroll-margin-top: calc(var(--head) + 16px); }
.doc:first-child { padding-top: 0; border-top: 0; }
.doc > * + * { margin-top: var(--space-lg); }
.doc h2 { display: flex; align-items: baseline; gap: 12px; font: 600 clamp(28px, 2.6vw, 40px)/1.05 var(--font-body); letter-spacing: -.04em; }
.doc h2::before { content: ""; flex: none; width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; transform: translateY(-6px); }
.doc > p, .doc > ul { max-width: 64ch; font-size: 16px; line-height: 24px; color: var(--color-text-2); }
.doc > h2 + p { margin-top: 14px; }
.doc ul { padding-left: 1.15em; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--hot); }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.figures > div { padding: 18px 18px 20px; border: 1px solid var(--color-line); border-radius: var(--radius-card); }
.figures dt { font: 600 clamp(22px, 2vw, 30px)/1 var(--font-body); letter-spacing: -.04em; }
.figures dd { margin-top: 8px; font: 400 10.5px/1.3 var(--font-mono); color: var(--color-muted); }
.steps { list-style: none; margin-inline: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 38px; }
.steps li + li { margin-top: var(--space-lg); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--cream); color: var(--dark); font: 600 12.5px/24px var(--font-body); text-align: center; }
.steps h3 { font-size: 17px; }
.steps p { margin-top: 4px; color: var(--color-muted); max-width: 52ch; }
.sheet { padding: 18px 20px; border: 1px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-fill); }
.sheet__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-bottom: 12px; }
.sheet__name { font: 400 11px/1 var(--font-mono); color: var(--color-muted); }
.sheet__bids th { padding-block: 10px; border-top: 1px solid var(--color-line); font: 400 10.5px/1 var(--font-mono); color: var(--color-faint); }
.sheet__bids td { padding-block: 10px; border-top: 1px solid var(--color-line); }
.sheet__bids th + th, .sheet__bids td + td { padding-left: 16px; }
.sheet__bids td.fig { white-space: nowrap; }
.scroll { overflow-x: auto; }
.sheet__bids .is-out td { color: var(--color-muted); }
.sheet__bids .is-out td:nth-child(-n+3) { text-decoration: line-through; text-decoration-color: var(--color-line-2); }
.sheet__pool { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 12px; border-top: 1px solid var(--color-line-2); font-weight: 600; }
.sheet .sub { margin-top: 12px; }
.fees th, .fees td { padding-block: 12px; border-top: 1px solid var(--color-line); font-weight: 400; }
.fees th { color: var(--color-text-2); padding-right: 16px; }
.fees td { font-weight: 600; text-align: right; }
.fees tr:last-child th, .fees tr:last-child td { border-bottom: 1px solid var(--color-line); }
.versus thead th { padding-block: 10px; font: 400 10.5px/1 var(--font-mono); color: var(--color-faint); }
.versus tbody th, .versus tbody td { padding: 14px 16px 14px 0; border-top: 1px solid var(--color-line); vertical-align: baseline; }
.versus tbody th { width: 30%; font-weight: 500; }
.versus tbody td { width: 35%; color: var(--color-muted); }
.versus tbody td:last-child { color: var(--color-text); font-weight: 600; }
.qa h3 { display: flex; align-items: baseline; gap: 10px; margin-top: var(--space-lg); font-size: 17px; }
.qa h3::before { content: ""; flex: none; width: 5px; height: 5px; border: 1px solid currentColor; border-radius: 50%; transform: translateY(-3px); }
.qa h3:first-child { margin-top: 0; }
.qa p { margin-top: 6px; padding-left: 15px; color: var(--color-muted); max-width: 60ch; }

/* ---------- footer ---------- */
.foot { padding-block: var(--space-xl); border-top: 1px solid var(--color-line); font: 400 11px/1.4 var(--font-mono); color: var(--color-muted); }
.signup { max-width: 30rem; }
.signup__row { display: flex; flex-wrap: wrap; gap: 8px; }
.signup__row input { flex: 1 1 12rem; }
.signup__help { margin-top: 12px; }
.signup__help:empty { display: none; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot .brand { font-size: 13px; color: var(--color-text); }
.foot .brand img { width: 22px; height: 22px; }
.foot__legal { flex: 1 1 22rem; max-width: 52ch; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.foot__links a { padding-block: 8px; text-decoration: none; }
.foot__links a:hover { color: var(--color-text); }

/* ================================================================
   sizes
   ================================================================ */
@media (max-width: 62.5rem) {
  .cols, .launch { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2xl); }
  .onboard { position: static; }
  .preview::before, .preview::after { display: none; }
  .docs__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .toc { position: static; display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; border-bottom: 1px solid var(--color-line); }
  .toc a { flex: none; white-space: nowrap; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board .hide-md { display: none; }
  .top-addr { display: none; }
  .links { margin-right: auto; }
}
@media (max-width: 40rem) {
  .bid, .composer, .act, .preview { padding: 20px 16px; }
  .page__head--row { grid-template-columns: minmax(0, 1fr); }
  .page__head--row > :last-child { justify-self: start; }
  .step { grid-template-columns: minmax(0, 1fr); }
  .bid__row { flex-wrap: wrap; }
  .bid__row .btn { flex: 1 1 100%; }
  .board .hide-sm { display: none; }
  .board th, .board td { padding-inline: 8px; }
  .goal { min-width: 110px; }
  .rcard { width: 156px; }
  .sheet__bids { font-size: 13px; }
  .sheet__bids th:nth-child(3), .sheet__bids td:nth-child(3) { display: none; }
  .versus, .versus tbody, .versus tr, .versus th, .versus td { display: block; width: auto; }
  .versus thead { display: none; }
  .versus tbody tr { padding-block: 12px; border-top: 1px solid var(--color-line); }
  .versus tbody th, .versus tbody td { width: auto; border: 0; padding-block: 3px; }
  .versus tbody td::before { content: attr(data-label) ": "; font: 400 10.5px/1 var(--font-mono); color: var(--color-muted); }
  .top { gap: 12px; padding: 0 8px 0 14px; }
  .brand span { display: none; }
  .links { gap: 14px; margin-left: 4px; font-size: 13px; }
  .nav-cta { height: 34px; padding: 0 13px; font-size: 13px; }
  .ch-title { font-size: clamp(56px, 18vw, 80px); }
  [data-live]:not([data-live="mainnet"]) .links a[href^="docs"] { display: none; }
}

/* Two wordings where the rules differ by chain: `goal` in chain/config.mjs, set on <html> by chain/live.mjs. */
html:not([data-goal="on"]) [data-goal="on"], html[data-goal="on"] [data-goal="off"] { display: none !important; }
