/* AlbedoVault. Everything comes from the avatar: a sky at first light and one white feather.
   Rule of the page: the top of every page is that sky, with the header on it in white; under the horizon the page
   is daylight, a pale warm ground with white sheets, hairlines and night-coloured ink. Scrolling down is the sun
   coming up. The colours are the avatar's own, read off it from top to bottom.
   One thing belongs to this product alone: a lock is drawn as a small piece of sky. A coin without a lock is night;
   a locked coin shows as much dawn as it has supply locked, 2% a thin glow, 10% full light.
   Corners are square; buttons and fields are eased by 3px. Green = a price that rose, red = one that fell. */

@font-face { font-family: 'Outfit'; src: url('fonts/outfit-latin.woff2') format('woff2'); font-weight: 100 900; font-display: block; }
@font-face { font-family: 'Hanken Grotesk'; src: url('fonts/hanken-grotesk-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  /* the sky, top to bottom */
  --indigo: #282679;
  --violet: #613A99;
  --magenta: #B64A97;
  --rose: #E25D8B;
  --coral: #F27188;
  --peach: #FCC29B;
  /* daylight */
  --day: #FFF7F0;                         /* the ground under the horizon */
  --card: #FFFFFF;
  --tint: #FFF0E4;                        /* a row under the pointer, a table's head */
  --night: #1F1657;                       /* ink */
  --sun: #F9744F;                         /* the one action on a screen */
  --sun-deep: #EA5A34;
  --green: #0B8A4B;
  --red: #D4264A;
  --soft: rgba(31, 22, 87, .70);
  --faint: rgba(31, 22, 87, .48);
  --line: rgba(31, 22, 87, .12);
  --line-strong: rgba(31, 22, 87, .28);
  --horizon: linear-gradient(90deg, var(--indigo), var(--magenta) 42%, var(--coral) 74%, var(--peach));
  --dawn-up: linear-gradient(to top, var(--peach), var(--coral) 38%, var(--magenta) 72%, var(--indigo));
  --display: 'Outfit', 'Hanken Grotesk', system-ui, sans-serif;      /* the name, headings and big numbers only */
  --text: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 3px;
  --sky-h: 168px;                         /* how far down the sky reaches on a page; Markets has a taller one */
}

* { box-sizing: border-box; }
html { background: var(--day); color: var(--night); font: 400 16px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
body { position: relative; margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
.page { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pic { display: block; flex: none; border-radius: 2px; }
.pic--photo { object-fit: cover; background: #F3E3DA; }      /* a coin's own picture */

/* ---- the sky: behind the header and the top of the page, fading into daylight at its lower edge */
.sky { position: absolute; z-index: 0; top: 0; left: 0; right: 0; height: var(--sky-h); overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, var(--indigo) 0%, #432F89 26%, var(--violet) 44%, var(--magenta) 60%, var(--rose) 72%, var(--coral) 81%, var(--peach) 91%, var(--day) 100%); }
/* film grain over the gradient, as on the avatar */
.sky::after { content: ''; position: absolute; inset: 0; opacity: .30; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* Markets: the painted sky with its bands of cloud, and a longer night at the top for the words */
body[data-page="board"] { --sky-h: 720px; }
body[data-page="board"] .sky { background: linear-gradient(180deg, rgba(40, 38, 121, .0) 0%, rgba(40, 38, 121, 0) 70%, var(--day) 100%), url('assets/sky.jpg') center top / cover no-repeat, var(--indigo); }
.top, main, .foot { position: relative; z-index: 1; }

/* ---- header (white, on the sky) and footer */
.top { color: #fff; }
.top__in { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: flex; align-items: center; gap: 8px; font: 300 27px/1 var(--display); letter-spacing: .005em; }
.brand img { display: block; }
.nav { display: flex; gap: 24px; align-self: stretch; }
.nav a { display: flex; align-items: center; color: rgba(255, 255, 255, .80); font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav a:hover { color: #fff; }
.nav a[aria-current] { color: #fff; font-weight: 600; box-shadow: inset 0 -2px 0 #fff; }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 14px; min-width: 0; }
.find { position: relative; flex: 0 1 250px; min-width: 150px; }      /* gives way first when the header is full */
.find input { display: block; width: 100%; height: 38px; padding: 0 12px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .38); border-radius: var(--r); outline: 0; color: #fff; font-size: 15px; -webkit-appearance: none; appearance: none; }
.find input::placeholder { color: rgba(255, 255, 255, .72); }
.find input::-webkit-search-cancel-button { -webkit-appearance: none; }
.find input:hover { border-color: rgba(255, 255, 255, .7); }
.find input:focus { border-color: #fff; background: #fff; color: var(--night); }
.find input:focus::placeholder { color: var(--faint); }
.find__list { position: absolute; top: 44px; right: 0; z-index: 20; width: 400px; max-width: calc(100vw - 48px); max-height: min(70vh, 540px); overflow: auto; padding: 4px 0 8px; background: var(--card); color: var(--night); border: 1px solid var(--line-strong); border-radius: var(--r); box-shadow: 0 14px 30px rgba(31, 22, 87, .16); }
.find__list h3 { padding: 12px 14px 4px; color: var(--faint); font: 500 13px/1.4 var(--text); }
.find__list a { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 14px; }
.find__list a:hover, .find__list a.is-at { background: var(--tint); }
.find__list b { display: block; overflow: hidden; font-weight: 600; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
.find__list small { display: block; color: var(--faint); font-size: 13px; }
.find__list .num { color: var(--soft); font-size: 15px; }
.find__list p { padding: 14px; color: var(--soft); font-size: 15px; }
.ca { flex: none; background: none; border: 0; padding: 0; color: rgba(255, 255, 255, .82); font-size: 15px; white-space: nowrap; cursor: pointer; }
.ca:hover { color: #fff; }
.foot { margin-top: 24px; border-top: 1px solid var(--line); }
.foot__in { display: flex; align-items: center; gap: 28px; height: 64px; }

/* ---- buttons and links */
.top__x { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; margin-left: -8px; border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--r); }
.top__x:hover { border-color: #fff; }
.top__x[hidden] { display: none; }
.top__x img { display: block; width: 16px; height: 16px; filter: brightness(0) invert(1); }
.btn-quiet { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--night); font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer; }
.btn-quiet:hover { border-color: var(--night); }
.btn-quiet img { width: 20px; height: 20px; margin-right: 8px; border-radius: 4px; }      /* the signed-in account's icon */
.top .btn-quiet { background: none; border-color: rgba(255, 255, 255, .62); color: #fff; }
.top .btn-quiet:hover { background: #fff; border-color: #fff; color: var(--night); }
.btn-dark { height: 44px; padding: 0 16px; background: var(--night); color: #fff; border: 0; border-radius: var(--r); font-weight: 600; font-size: 15px; cursor: pointer; }
.btn-dark:hover { background: var(--violet); }
.btn-main { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; background: var(--sun); color: var(--night); border: 0; border-radius: var(--r); font-weight: 700; font-size: 16px; cursor: pointer; }
.btn-main:hover { background: var(--sun-deep); color: #fff; }
.btn-main:disabled { background: var(--line); color: var(--faint); cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--soft); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.link:hover { color: var(--night); }

/* ---- the sheet that holds a page's action: white, with the horizon along its top edge */
.board { position: relative; }
.board__face { position: relative; padding: 24px 24px 26px; border: 1px solid var(--line); border-top: 4px solid transparent; border-radius: var(--r); color: var(--night);
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--horizon) border-box; box-shadow: 0 12px 30px rgba(31, 22, 87, .08); }
.board__title { font: 500 26px/1.1 var(--display); margin-bottom: 12px; }
.board__lead { margin-bottom: 18px; color: var(--soft); }
.board__note { margin: 14px 0 18px; font-size: 14px; line-height: 1.5; color: var(--soft); }
.board .facts { margin-bottom: 18px; }
.board .facts + .board__note { margin-top: -4px; }
.board__face > .btn-main { margin-top: 22px; }

/* label on the left, value on the right */
.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--soft); }
.facts dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
/* the same list on the ground, as a row of big numbers */
.facts--wide { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.facts--wide div { display: block; padding: 12px 0 0; border-top: 1px solid var(--line-strong); }
.facts--wide dt { color: var(--soft); font-size: 14px; }
.facts--wide dd { margin-top: 2px; text-align: left; font: 500 30px/1.15 var(--display); }

/* how much of a lock is sold */
.cells { display: inline-flex; gap: 2px; vertical-align: middle; }
.cells i { width: 8px; height: 12px; background: var(--line); }
.cells i.on { background: var(--coral); }
.sold { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 4px; font-size: 14px; color: var(--soft); }
.sold span:last-child { white-space: nowrap; }

/* ---- a lock, drawn as a piece of sky: night without one, and with one as much dawn as supply is locked
   (--dawn runs from 0.2 at 2% to 1 at 10%) */
.sunup { display: inline-block; flex: none; width: 24px; height: 15px; margin-right: 8px; vertical-align: -2px; border-radius: 2px;
  background: radial-gradient(circle at 70% 36%, rgba(255, 255, 255, .9) 0 1px, transparent 1.6px), var(--night); }
.sunup.is-on { background: linear-gradient(to top, var(--peach) 0%, var(--coral) calc(var(--dawn) * 60%), var(--magenta) calc(var(--dawn) * 110%), var(--indigo) calc(var(--dawn) * 170%)); }

/* ---- Markets: the words on the night part of the sky, the sheet with the coin on sale beside them reaching down
   over the horizon, then the groups in daylight */
.dawn { display: grid; grid-template-columns: minmax(0, 1fr) 404px; gap: 64px; align-items: end; padding-top: 58px; margin-bottom: 76px; }
.dawn__say { align-self: start; color: #fff; }
.dawn h1 { font: 300 clamp(42px, 5vw, 66px)/1.04 var(--display); letter-spacing: -.01em; margin-bottom: 22px; }
.dawn__say p { max-width: 46ch; margin-bottom: 18px; font-size: 18px; font-weight: 500; }
.dawn__say .link { color: #fff; }
.dawn__now .board__face { box-shadow: 0 18px 44px rgba(31, 22, 87, .20); }
.coin-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.coin-name { font: 500 26px/1.1 var(--display); overflow-wrap: anywhere; }
.coin-sub { margin-top: 2px; color: var(--soft); font-size: 14px; }
.list__empty { padding: 28px 18px; color: var(--soft); }
/* the page for an address that is not part of the site */
.lost { padding-top: 132px; padding-bottom: 110px; }
.lost__n { display: inline-block; font: 200 200px/.9 var(--display); letter-spacing: -.02em; margin-bottom: 30px; color: transparent; background: linear-gradient(to top, var(--sun) 12%, var(--rose) 38%, var(--magenta) 62%, var(--indigo) 90%); -webkit-background-clip: text; background-clip: text; }
.lost h1 { font: 400 44px/1.05 var(--display); margin-bottom: 14px; }
.lost p { max-width: 54ch; color: var(--soft); margin-bottom: 28px; }

.bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.bar h2 { font: 400 32px/1 var(--display); }
.bar p { max-width: 64ch; margin-top: 8px; color: var(--soft); font-size: 15px; }
.pick { display: flex; gap: 4px; padding: 3px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.pick button { background: none; border: 0; padding: 5px 12px; border-radius: 2px; color: var(--soft); font-weight: 500; font-size: 14px; cursor: pointer; }
.pick button:hover { color: var(--night); }
.pick button[aria-pressed="true"] { background: var(--night); color: #fff; }

/* ---- lists (groups, coins, options): one grid per kind on a white sheet, whole row is the link */
.list { margin-bottom: 88px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.list__head, .row { display: grid; align-items: center; gap: 16px; padding: 0 18px; }
.list__head { height: 42px; background: var(--tint); border-bottom: 1px solid var(--line); color: var(--soft); font-size: 13px; }
.row { min-height: 64px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
a.row:hover { background: var(--tint); }
.list--groups .list__head, .list--groups .row { grid-template-columns: minmax(200px, 1.6fr) 80px 110px 190px 170px; }

/* ---- group page: summary and sheet on top, then the coins as a full-width table */
.group__top { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; padding-top: 104px; margin-bottom: 52px; }
.group__top .title { margin-bottom: 28px; }
.facts--wide + .facts--wide { margin-top: 24px; }
/* how the group's market cap is split: one segment per coin; a locked coin is dawn, the leader night */
.share { display: flex; gap: 2px; height: 14px; margin-top: 28px; }
.share i { min-width: 2px; background: rgba(31, 22, 87, .16); }
.share i.is-lead { background: var(--night); }
.share i.is-locked { background: linear-gradient(90deg, var(--magenta), var(--coral) 60%, var(--peach)); }
.share__say { margin-top: 10px; color: var(--soft); font-size: 15px; }
.list--table .list__head, .list--table .row { grid-template-columns: 20px 22px minmax(150px, 1.4fr) 70px 90px 66px 90px 68px 78px minmax(150px, 1fr) 52px; gap: 12px; }
.list--table .row { position: relative; min-height: 58px; font-size: 15px; }
.list--table .row:hover { background: var(--tint); }
/* the whole row opens the coin: the link in the coin cell is stretched over it; the box sits above the link */
.row__go::after { content: ''; position: absolute; inset: 0; }
.c-pick { position: relative; z-index: 1; display: flex; }
.c-coin { display: flex; align-items: flex-end; gap: 8px; min-width: 0; }
.cp { position: relative; z-index: 1; flex: none; width: 18px; height: 18px; margin-bottom: 2px; padding: 0; background: none; border: 0; cursor: pointer; opacity: .45; }
.cp::before, .cp::after { content: ''; position: absolute; width: 10px; height: 10px; border: 1.5px solid var(--night); border-radius: 1px; }
.cp::before { left: 5px; top: 1px; }
.cp::after { left: 1px; top: 5px; background: var(--card); }
.cp:hover, .cp:focus-visible { opacity: 1; }
/* the box: an outline when free, dark with a tick when chosen, a grey filled square when the coin has no calls on sale */
.c-pick input { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid var(--faint); border-radius: 2px; background: var(--card); cursor: pointer; }
.c-pick input:hover { border-color: var(--night); }
.c-pick input:checked { border-color: var(--night); background: var(--night) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.2l3.2 3.2L14 5.6' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E") center / 16px no-repeat; }
.c-pick input:disabled { border-color: transparent; background: rgba(31, 22, 87, .16); cursor: default; }
.c-lock small { display: block; margin-top: 2px; color: var(--faint); font-size: 13px; }
.up { color: var(--green); }
.down { color: var(--red); }
.list--options .list__head, .list--options .row { grid-template-columns: minmax(170px, 1.2fr) 80px 120px 120px 70px minmax(200px, 1.3fr) 190px; }
.c-meme { display: flex; align-items: center; gap: 14px; min-width: 0; }
.c-meme b, .c-coin b { display: block; font-weight: 600; }
.c-meme small, .c-coin small { display: block; color: var(--faint); font-size: 13px; }
.rank { color: var(--faint); }
.lock, .stage { color: var(--faint); font-size: 15px; white-space: nowrap; }
.lock.on, .stage.on { color: var(--night); }
.stage { color: var(--soft); white-space: normal; }
.stage.on { font-weight: 600; }
.stage.on::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--sun); }
.act { text-align: right; }

/* ---- pages with the sheet on the right: coin, launch, lock. They start below the horizon. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; padding-top: 104px; padding-bottom: 40px; }
.split__side { position: sticky; top: 24px; }
.solo { padding-top: 104px; }            /* a page that is one list, without a sheet */
.split .list { margin-bottom: 56px; }
.title { display: flex; align-items: center; gap: 20px; margin-bottom: 36px; }
.title h1 { font: 400 50px/1.02 var(--display); letter-spacing: -.01em; margin-bottom: 10px; overflow-wrap: anywhere; }
.title p { max-width: 60ch; color: var(--soft); }
.title a { text-decoration: underline; text-underline-offset: 4px; }
.title a:hover { color: var(--night); }
.copy { margin-right: 12px; padding: 1px 8px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--night); cursor: pointer; }
.copy:hover { border-color: var(--night); }

/* the strike curve: the sold part is filled with dawn, and the next call is the sun on the curve */
.chart { margin: 36px 0 0; }
.chart svg { display: block; width: 100%; height: auto; }
.chart text { fill: var(--soft); font: 500 13px var(--text); }
.chart text.w { fill: var(--faint); }
.chart .g { stroke: var(--line); }
.chart .area { fill: rgba(242, 113, 136, .30); }
.chart .curve { fill: none; stroke: var(--night); stroke-width: 2.5; }
.chart .spot { stroke: var(--soft); stroke-width: 1.5; stroke-dasharray: 6 6; }
.chart .mark { fill: var(--sun); rx: 6px; }
.chart figcaption { max-width: 72ch; margin-top: 6px; color: var(--faint); font-size: 14px; }

/* what happens in order: a real sequence, so it is drawn as one */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); border-top: 1px solid var(--line-strong); }
.steps li { position: relative; padding: 16px 16px 0 0; }
.steps li::before { content: ''; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--day); border: 1px solid var(--faint); }
.steps li.done::before { background: var(--night); border-color: var(--night); }
.steps li.now::before { background: var(--sun); border-color: var(--sun); }
.steps b { display: block; font-weight: 600; }
.steps span { display: block; color: var(--soft); font-size: 14px; line-height: 1.45; }
.steps--plain { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; border-top: 0; }
.steps--plain li { padding: 14px 0 0; border-top: 1px solid var(--line-strong); }
.steps--plain li::before { display: none; }

/* the platform coin's page: the key numbers, then one block per topic */
.split__main > .facts--wide { margin-bottom: 8px; }
.flow { margin-top: 64px; }
.flow h2 { font: 400 30px/1.1 var(--display); margin-bottom: 8px; }
.flow__say { max-width: 62ch; color: var(--soft); }
.flow .steps--plain { margin-top: 22px; }
.flow .steps.loop { margin-top: 26px; }
/* where the money goes: a lane per flow, boxes joined by arrows; the last box of each lane carries the horizon */
.money { display: grid; gap: 26px; margin-top: 24px; }
.lane { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; align-items: center; }
.lane__title { grid-column: 1 / -1; margin-bottom: 10px; color: var(--soft); font-size: 14px; font-weight: 600; }
.node { position: relative; align-self: stretch; padding: 14px 15px 15px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; line-height: 1.4; color: var(--soft); }
.node b { display: block; margin-bottom: 3px; color: var(--night); font-size: 15px; }
.node--end { border-top: 3px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--horizon) border-box; }
.lane > .node:not(:last-child)::after, .lane > .node:not(:last-child)::before { content: ''; position: absolute; top: 50%; }
.lane > .node:not(:last-child)::after { right: -24px; width: 18px; height: 2px; margin-top: -1px; background: var(--line-strong); }
.lane > .node:not(:last-child)::before { right: -27px; margin-top: -5px; border-left: 7px solid var(--line-strong); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.fork { grid-column: span 2; display: grid; gap: 8px; }
.fork .node { align-self: auto; }
.ledger { max-width: 560px; margin-top: 20px; }
.ledger .facts div:last-child { border-bottom: 1px solid var(--line); }
.addr { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.calc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; align-items: end; margin-top: 22px; }
.calc .field { margin-bottom: 18px; }
.calc .field__box { height: 48px; }
.calc .field__box input { font: 500 20px/1 var(--display); }
.calc__note { margin-top: 12px; color: var(--faint); font-size: 14px; }
#calc .facts--wide dd { font-size: 28px; }

.dev { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.dev p { max-width: 58ch; color: var(--soft); font-size: 15px; }

/* ---- fields */
.field { display: block; margin-bottom: 16px; }
.field > span:first-child { display: block; margin-bottom: 6px; color: var(--soft); font-size: 14px; font-weight: 600; }
.field__box { display: flex; align-items: center; height: 52px; padding: 0 14px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r); }
.field__box:focus-within { border-color: var(--night); box-shadow: 0 0 0 1px var(--night); }
.field__box i { margin-right: 6px; font: 500 24px/1 var(--display); font-style: normal; }
.field__box input { flex: 1; min-width: 0; padding: 0; background: none; border: 0; outline: 0; color: var(--night); font: 500 24px/1 var(--display); }
.field__box input::-webkit-outer-spin-button, .field__box input::-webkit-inner-spin-button { -webkit-appearance: none; }
.field--range b { float: right; font: 500 24px/.9 var(--display); color: var(--night); }
.field--range input { display: block; width: 100%; margin: 12px 0 4px; accent-color: var(--sun); }
.choose { display: grid; gap: 8px; margin-bottom: 18px; }
.choose label { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; cursor: pointer; }
.choose label span { min-width: 0; }
/* what a ticked coin is: on sale now, or a pre-order (dawn-tinted: it waits for the dev to lock) */
.tag { padding: 2px 7px; border-radius: 2px; background: rgba(31, 22, 87, .08); color: var(--soft); font: 700 12px/1.5 var(--text); font-style: normal; white-space: nowrap; }
.tag--pre { background: linear-gradient(90deg, rgba(182, 74, 151, .16), rgba(249, 116, 79, .2)); color: var(--night); }
.choose input { width: 18px; height: 18px; margin: 0; accent-color: var(--night); }
.choose b { font-weight: 600; margin-right: 6px; }
/* the launch form sits on the ground */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-bottom: 40px; }
.form .field__box { height: 48px; }
.form .field__box input { font: 500 16px/1 var(--text); }
.form .field__box input::placeholder, .form .field__box textarea::placeholder { color: var(--faint); }
.field__file { display: flex; align-items: center; gap: 14px; color: var(--soft); font-size: 15px; }
.field__file img { width: 52px; height: 52px; object-fit: cover; border-radius: 2px; }
.field__file label { cursor: pointer; }
.field__file input { position: absolute; width: 1px; height: 1px; opacity: 0; }       /* the label is the button */
.field__file label:focus-within { outline: 2px solid var(--magenta); outline-offset: 2px; }
.form--one { grid-template-columns: minmax(0, 1fr); margin-bottom: 20px; }
.field--wide, .form__head { grid-column: 1 / -1; }
.field .hint { display: block; margin-top: 6px; color: var(--faint); font-size: 13px; }
.form .field__box--area { height: auto; padding: 12px 14px; }
.form .field__box textarea { flex: 1; min-width: 0; min-height: 72px; padding: 0; background: none; border: 0; outline: 0; resize: vertical; font: 500 16px/1.4 var(--text); }
.form__head { margin: 8px 0 16px; padding-top: 22px; border-top: 1px solid var(--line-strong); font-weight: 600; }
.form__head small { display: block; margin-top: 2px; color: var(--faint); font-weight: 400; font-size: 13px; }
/* the pair a coin is priced in: the one in use is framed, one that cannot be chosen stays in the row, dimmed */
.pair { display: flex; gap: 10px; }
.pair button { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 12px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r); font-weight: 600; font-size: 15px; cursor: pointer; }
.pair button img { width: 24px; height: 24px; border-radius: 50%; }
.pair button[aria-checked="true"] { border-color: var(--night); box-shadow: 0 0 0 1px var(--night); }
.pair button:disabled { border-color: transparent; background: rgba(31, 22, 87, .08); color: var(--faint); cursor: not-allowed; }
.pair button:disabled img { filter: grayscale(1); opacity: .45; }
/* under the Lock slider: what the wallet holds, and the button that sets the slider to it */
.max { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px 0 16px; color: var(--soft); font-size: 14px; }
.max__btn { flex: none; height: 30px; padding: 0 12px; background: var(--card); border: 1px solid var(--night); border-radius: var(--r); font-weight: 600; font-size: 14px; cursor: pointer; }
.max__btn:hover { background: var(--night); color: #fff; }
.max__btn:disabled { border-color: var(--line); background: none; color: var(--faint); cursor: not-allowed; }
/* the coin an address on the Lock page stands for */
.picked { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 16px; margin-bottom: 40px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.picked:hover { border-color: var(--line-strong); }
.picked b { display: block; font-weight: 600; }
.picked small { display: block; color: var(--faint); font-size: 13px; }
.board__note--end { margin: 14px 0 0; }
.board__note a { color: var(--night); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.copy--dark { margin: 0; font-weight: 600; }
.form__say { grid-column: 1 / -1; min-height: 24px; color: var(--red); font-weight: 600; }

/* ---- an empty page */
.empty { padding-top: 150px; padding-bottom: 150px; }
.empty h1 { font: 400 46px/1.05 var(--display); margin-bottom: 14px; }
.empty p { max-width: 52ch; margin-bottom: 26px; color: var(--soft); }

/* ---- rules window and toast */
.dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-top: 4px solid transparent; border-radius: 4px; overflow: auto; color: var(--night);
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--horizon) border-box; box-shadow: 0 24px 60px rgba(31, 22, 87, .30); }
.dialog::backdrop { background: rgba(31, 22, 87, .56); }
.dialog__in { padding: 26px 32px 34px; }
.dialog__top { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 4px; }
.dialog h2 { font: 400 30px/1.05 var(--display); }
.dialog h3 { margin: 16px 0 0; font-size: 16px; font-weight: 700; }
.dialog p { color: var(--soft); }
/* the Connect window (the wallets this browser has) and the Account window */
.dialog--narrow { width: min(420px, calc(100vw - 32px)); }
.signin__or, .signin__none { margin: 14px 0 0; color: var(--soft); font-size: 14px; }
.signin__or { text-align: center; }
.signin__wallets { list-style: none; margin: 12px 0 0; padding: 0; }
.signin__wallets li { border-top: 1px solid var(--line); }
.signin__wallets button, .signin__wallets a { display: flex; align-items: center; gap: 14px; width: 100%; height: 62px; padding: 0 6px; background: none; border: 0; text-align: left; cursor: pointer; }
.signin__wallets button:hover, .signin__wallets a:hover { background: var(--tint); }
.signin__wallets img { width: 34px; height: 34px; border-radius: 8px; }
.signin__wallets b { flex: 1; font-weight: 600; }
.signin__wallets small { color: var(--soft); font-size: 14px; }
.signin__wallets + .signin__or { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.signin__more { display: block; width: 100%; height: 46px; margin-top: 10px; background: none; border: 1px solid var(--night); border-radius: var(--r); font-weight: 600; font-size: 15px; cursor: pointer; }
.signin__more:hover { background: var(--night); color: #fff; }
.acct__who { display: flex; align-items: center; gap: 14px; margin: 16px 0 22px; }
.acct__who img { width: 44px; height: 44px; border-radius: 8px; }
.acct__who b { display: block; }
.acct__who span { display: block; color: var(--soft); font-size: 14px; word-break: break-all; }
.acct__do { display: flex; gap: 12px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 30; padding: 12px 18px; background: var(--night); color: #fff; border-radius: var(--r); font-weight: 600; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .15s, transform .15s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ---- narrow screens */
@media (max-width: 1000px) {
  .split, .group__top { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .dawn { grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
  body[data-page="board"] { --sky-h: 620px; }
  .list--table .list__head, .list--table .row { min-width: 1080px; }
  .nav { gap: 22px; }
  .split__side { position: static; }
  .board { max-width: 460px; }
  .list { overflow-x: auto; }
  .list__head, .row { min-width: 760px; }
  .facts--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lane { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .lane > .node::after, .lane > .node::before { display: none; }
  .fork { grid-column: auto; }
  .calc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --sky-h: 270px; }
  .top__in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 8px 24px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .nav a { padding: 10px 0; }
  .top__right { display: contents; }
  .top__right .btn-quiet { margin-left: auto; }
  .find { order: 4; width: 100%; flex-basis: 100%; }
  .find__list { left: 0; right: auto; width: 100%; max-width: none; }
  body[data-page="board"] { --sky-h: 640px; }
  .dawn { padding-top: 34px; }
  .split, .group__top, .solo { padding-top: 110px; }
  .title { align-items: flex-start; }
  .title h1 { font-size: 38px; }
  .form, .steps--plain { grid-template-columns: minmax(0, 1fr); }
  .dev { flex-direction: column; align-items: flex-start; }
}
