/* Vitro. True black, white type, and one material: liquid glass. The colour on the page comes from the
   real footage of liquid behind the glass, never from paint. White is the action; Apple's dark-mode green
   and red only ever mean buy, sell and vamp. One family (Instrument Sans), condensed a touch for headlines. */
:root {
  --bg: #000;
  --ink: #fff;
  --soft: rgba(255, 255, 255, .84);
  --muted: rgba(235, 238, 255, .58);
  --dim: rgba(235, 238, 255, .38);
  --line: rgba(255, 255, 255, .09);
  --edge: rgba(255, 255, 255, .16);
  --raised: rgba(255, 255, 255, .05);
  --surface: rgba(255, 255, 255, .08);
  --act: #fff;
  --act-hover: #e9eaf0;
  --up: #30d158;
  --vamp: #ff453a;
  --display: 'Instrument Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans: 'Instrument Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { visibility: visible; margin: 0; background: var(--bg); color: var(--ink);
       font: 400 16px/24px var(--sans); letter-spacing: -.011em;
       -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
h1, h2, h3, .section-sub { text-wrap: balance; }
p { text-wrap: pretty; }
/* Figures line up in columns; prose keeps its normal punctuation. */
.num, .price, .rows dd, .facts dd, .cap, .line-row, .curve, .ticker { font-variant-numeric: tabular-nums; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(0, 0, 0, .66); backdrop-filter: saturate(1.4) blur(14px);
       border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 21px; letter-spacing: -.03em; }
.brand svg { width: 24px; height: 24px; }
.nav .links { display: flex; gap: 24px; margin-right: auto; }
.nav .links a { font-weight: 500; font-size: 15px; color: var(--ink); opacity: .86; }
.nav .links a:hover { opacity: 1; }
.nav .actions { display: flex; gap: 10px; }

/* ---------- Buttons ----------
   Four kinds, told apart by shape as much as colour, so hierarchy reads at a glance:
   - the action: a flat pill. White, or green to buy, orange for vamps and sells. One per view.
   - tools: a flat dark key with small corners, for everything else you can do.
   - choices: a joined keypad, for picking an amount.
   - views: text tabs, underlined in the colour of what they show.
   No gradients, glows or glass; the backdrop art is where the page spends its boldness. */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
        border: 0; border-radius: 8px; background: var(--act); color: #000; font: 600 15px/1 var(--sans); letter-spacing: -.005em;
        cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color .15s, transform .1s; }
.pill:hover { background: var(--act-hover); }
.pill:active { transform: scale(.98); }
.pill.buy { background: var(--up); color: #000; }
.pill.buy:hover { background: #0bb874; }
.pill.vamp { background: var(--vamp); color: #000; }
.pill.vamp:hover { background: #e23a51; }
.pill.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.pill.block { width: 100%; }
.pill[disabled], .pill[aria-disabled="true"] { background: rgba(255,255,255,.06); color: rgba(255,255,255,.38); cursor: not-allowed; transform: none; }

/* Tools. .line and .green-line are older names for the same thing. */
.pill.line, .pill.green-line, .ghost { border-radius: 8px; background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.pill.line:hover, .pill.green-line:hover, .ghost:hover { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }
.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 14px; border: 0;
         font: 500 14px/1 var(--sans); cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color .15s; }
.ghost.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.ghost svg, .pill.line svg { width: 15px; height: 15px; color: var(--muted); }
/* The wallet key, once connected: its BNB, then whose it is. */
.pill.line.connected { gap: 0; padding: 0 4px 0 14px; }
.pill.line .bal { font-weight: 600; font-variant-numeric: tabular-nums; }
.pill.line .addr { margin-left: 10px; padding: 0 10px; color: var(--muted); font-weight: 500; box-shadow: inset 1px 0 0 rgba(255,255,255,.14); }

/* Choices: one joined keypad. */
.presets, .chips { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-radius: 8px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.presets button, .chips button { height: 38px; border: 0; border-radius: 0; background: none; color: var(--ink); font: 500 13px var(--sans);
  cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums; transition: background-color .15s; }
.presets button + button, .chips button + button { box-shadow: inset 1px 0 0 rgba(255,255,255,.10); }
.presets button:hover, .chips button:hover { background: rgba(255,255,255,.12); }
.chips button[aria-pressed="true"] { background: rgba(255,255,255,.16); box-shadow: none; }
.presets { margin: 10px 0 12px; }
.chips { max-width: 440px; margin: -4px 0 16px; }

/* Views. */
.tabs, .seg, .chart-foot { display: flex; align-items: center; gap: 24px; }
.tabs button, .seg button, .chart-foot button { position: relative; height: 40px; padding: 0; border: 0; border-radius: 0; background: none;
  color: var(--muted); font: 600 14px var(--sans); cursor: pointer; transition: color .15s; }
.tabs button:hover, .seg button:hover, .chart-foot button:hover { color: var(--ink); }
.tabs button[aria-pressed="true"], .seg button[aria-pressed="true"], .chart-foot button[aria-pressed="true"] { color: var(--ink); }
.tabs button[aria-pressed="true"]::after, .seg button[aria-pressed="true"]::after, .chart-foot button[aria-pressed="true"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--ink); }

.chart-foot { padding: 2px 0 10px; border-bottom: 1px solid var(--line); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 20px; border-bottom: 1px solid var(--line); }
.seg button { height: 54px; font-size: 15px; }
.seg button[aria-pressed="true"]::after { bottom: -1px; }
.seg button[data-side="buy"][aria-pressed="true"]::after { background: var(--up); }
.seg button[data-side="sell"][aria-pressed="true"]::after { background: var(--vamp); }

:where(.pill, .ghost, .tabs button, .seg button, .chart-foot button, .presets button, .chips button, .icon-btn):focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 13px;
        font-weight: 600; letter-spacing: -.005em; white-space: nowrap; }
.chip.original { gap: 5px; color: var(--act); background: rgba(255, 255, 255, .13); }
.chip.original svg { width: 13px; height: 13px; }
.chip.vamp { color: var(--vamp); background: rgba(246, 70, 93, .14); }
.chip.dead { color: var(--muted); background: rgba(145, 159, 166, .14); }
.chip.warn { color: #000; background: var(--act); }

/* ---------- Home: hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center;
        padding-block: clamp(56px, 11vh, 128px) clamp(56px, 10vh, 112px); }
.eyebrow-mark { display: flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 26px; }
.eyebrow-mark svg { width: 24px; height: 24px; }
.eyebrow-mark span { font-weight: 300; }
.hero h1 { font: 500 clamp(46px, 6.3vw, 80px)/1.06 var(--display); letter-spacing: -.038em; margin: 0 0 28px; }
.hero p { font-size: 18px; line-height: 28px; max-width: 30em; margin: 0 0 36px; color: var(--soft); }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* The receipt: one real tribute, drawn like an order confirmation. */
.receipt { border: 1px solid var(--edge); border-radius: 16px; padding: 24px; background: linear-gradient(180deg, #0b0d0f, #000 70%); }
.receipt .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font-weight: 600; font-size: 16px; }
.receipt .pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-bottom: 22px; }
.receipt figure { margin: 0; }
.receipt figure img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--raised); }
.receipt figcaption { margin-top: 10px; font-weight: 600; font-size: 17px; }
.receipt figcaption span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.receipt .arrow { text-align: center; color: var(--vamp); font-size: 13px; font-weight: 600; line-height: 18px; }
.receipt .arrow svg { display: block; margin: 0 auto 6px; width: 28px; height: 28px; }
.rows { margin: 0; }
.rows div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; font-weight: 500; text-align: right; }
.rows div.total { font-weight: 600; }
.rows div.total dt { color: var(--ink); }

/* ---------- Home: sections ---------- */
.section { padding: clamp(64px, 12vh, 128px) 0; border-top: 1px solid var(--line); }
.section-title { font: 500 clamp(38px, 4.6vw, 60px)/1.1 var(--display); letter-spacing: -.035em; text-align: center; margin: 0 auto 16px; max-width: 16em; }
.section-sub { text-align: center; color: var(--muted); font-size: 18px; line-height: 28px; max-width: 34em; margin: 0 auto 56px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { border: 1px solid var(--edge); border-radius: 16px; padding: 36px 28px 30px; text-align: center; display: flex; flex-direction: column; }
.card h3 { font-size: 26px; line-height: 32px; font-weight: 500; letter-spacing: -.025em; margin: 0 0 12px; }
.card p { color: var(--soft); font-size: 15px; line-height: 23px; margin: 0 auto; max-width: 22em; }
.card .visual { margin-top: auto; padding-top: 36px; display: flex; justify-content: center; gap: 10px; }
.slot { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--edge); display: grid; place-items: center;
        font-size: 13px; font-weight: 600; color: var(--muted); }
.slot.o { background: rgba(14, 203, 129, .14); border-color: var(--up); color: var(--up); }
.slot.v { background: rgba(246, 70, 93, .14); border-color: var(--vamp); color: var(--vamp); }
.slot.x { border-style: dashed; }
.slot svg { width: 44%; height: 44%; }

.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; max-width: 920px; margin: 0 auto; }
.checks div { padding: 22px 0; border-top: 1px solid var(--line); }
.checks h3 { font-size: 18px; line-height: 26px; font-weight: 600; margin: 0 0 4px; }
.checks p { margin: 0; color: var(--muted); font-size: 15px; line-height: 23px; }

/* ---------- Coin list ---------- */
.list-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.list-head h2 { font: 500 clamp(34px, 3.8vw, 48px)/1.1 var(--display); letter-spacing: -.030em; margin: 0; }
.coins { width: 100%; border-collapse: collapse; }
.coins th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); padding: 0 12px 12px; border-bottom: 1px solid var(--line); }
.coins th.num, .coins td.num { text-align: right; }
.coins td { padding: 0 12px; height: 72px; border-bottom: 1px solid var(--line); font-size: 15px; }
.coins tr.row { cursor: pointer; }
.coins tr.row:hover td { background: var(--raised); }
.coins tr.row td:first-child { border-radius: 12px 0 0 12px; }
.coins tr.row td:last-child { border-radius: 0 12px 12px 0; }
.coin-cell { display: flex; align-items: center; gap: 14px; min-width: 0; }
.coin-cell img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--raised); flex: none; }
.coin-cell b { display: block; font-weight: 600; }
.coin-cell span { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 16em; }
.dead .coin-cell img { filter: grayscale(1) brightness(.6); }
/* The top page: same table, numbered by CSS so row() stays shared. */
.top { padding-block: clamp(48px, 9vh, 96px); }
.top h1 { font: 500 clamp(38px, 4.6vw, 60px)/1.1 var(--display); letter-spacing: -.035em; margin: 0 0 8px; }
.top .list-head p { color: var(--muted); margin: 0; }
.ranked tbody { counter-reset: rank; }
.ranked .coin-cell::before { counter-increment: rank; content: counter(rank); min-width: 2ch; color: var(--muted); font-variant-numeric: tabular-nums; }
.curve { display: inline-flex; align-items: center; gap: 10px; }
.curve .track { width: 72px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.curve .track i { display: block; height: 100%; background: var(--act); }
.empty { color: var(--muted); padding: 32px 0; margin: 0; }
.empty a { color: var(--ink); text-decoration: underline; }

/* ---------- Coin page (after a stock page) ---------- */
.stock { display: grid; grid-template-columns: minmax(0, 1fr) 356px; gap: 56px; align-items: start; padding: 36px 0 104px; }
.coin-id { display: flex; align-items: center; gap: 14px; }
.coin-id img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid var(--edge); flex: none; }
.coin-id h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.02em; }
.coin-id p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.big { margin: 26px 0 6px; font-size: 48px; line-height: 54px; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.delta { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--up); }
.delta.down { color: var(--vamp); }
.delta span { margin-left: 4px; color: var(--muted); font-weight: 400; }
.grad { max-width: 440px; margin: 22px 0 0; }
.grad .bar { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.grad .bar i { display: block; height: 100%; border-radius: inherit; background: var(--act); transition: width .4s; }
.grad p { display: flex; justify-content: space-between; gap: 16px; margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.grad-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

.chart { position: relative; height: 380px; margin: 28px 0 0; }
.chart.framed { border-radius: 12px; overflow: hidden; background: var(--raised); }
.chart iframe { display: block; width: 100%; height: 100%; border: 0; }
.chart-box { position: absolute; inset: 0; }
.chart .none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); text-align: center; pointer-events: none; }
.chart .none[hidden] { display: none; }
.chart-foot span { margin-left: auto; color: var(--dim); font-size: 12px; }
.chart-foot a { color: inherit; }
.chart-foot a:hover { color: var(--muted); }

.block-title { font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -.015em; margin: 48px 0 0; padding-bottom: 14px;
               border-bottom: 1px solid var(--line); }
.prose { font-size: 15px; line-height: 24px; margin: 18px 0 0; color: var(--soft); }
.prose a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: 3px; }
.prose a.quiet { font-weight: 500; }
a.quiet { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(255,255,255,.22); text-underline-offset: 3px; }
a.quiet:hover { text-decoration-color: var(--ink); }
a.quiet svg { width: 13px; height: 13px; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 24px; margin: 22px 0 0; }
.facts dt { font-size: 13px; font-weight: 500; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.facts dd .muted { color: var(--muted); font-weight: 400; }
.icon-btn { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 4px; vertical-align: -7px; border: 0; border-radius: 6px;
  background: none; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--ink); background: var(--raised); }
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn .copied { font-size: 12px; color: var(--up); }
.link-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }

/* Quiet secondary buttons: grey outline, white text. The coloured pill is only ever the main action. */

.family { list-style: none; margin: 8px 0 0; padding: 0; }
.family a { display: grid; grid-template-columns: 28px 40px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 10px;
            border-bottom: 1px solid var(--line); border-radius: 8px; }
.family a:hover { background: var(--raised); }
.family .here a { background: var(--raised); }
.family .rank { color: var(--muted); font-weight: 600; text-align: center; font-size: 14px; }
.family .rank svg { width: 18px; height: 18px; color: var(--act); display: block; margin: 0 auto; }
.family img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.family .who { min-width: 0; }
.family .who b, .family .who span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.family .who b { font-weight: 600; }
.family .who span { color: var(--muted); font-size: 13px; }
.family .cap { text-align: right; font-weight: 500; min-width: 84px; font-variant-numeric: tabular-nums; }
.family .cap span { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.family .dead img { filter: grayscale(1) brightness(.6); }
.slots-note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

/* The order ticket. */
.order { position: sticky; top: 88px; }
.ticket { border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(255, 255, 255, .06);
          backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); }
.ticket .body { padding: 20px; }
.ticket + .ticket { margin-top: 14px; }
.ticket-title { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.line-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; font-size: 14px; }
.line-row span:first-child { color: var(--muted); }
.line-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ticket .pill { margin-top: 16px; }
.amount { display: block; }
.amount > span:first-child { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.amount-box { display: flex; align-items: center; height: 58px; padding: 0 16px; border: 1px solid var(--edge); border-radius: 8px; background: var(--raised); cursor: text; }
.amount-box:focus-within { border-color: var(--ink); }
.amount-box input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: none; color: var(--ink); font: 500 24px var(--sans);
  letter-spacing: -.01em; outline: none; font-variant-numeric: tabular-nums; }
.amount-box input::placeholder { color: rgba(255,255,255,.22); }
.amount-box span { color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
.avail { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.order .more { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 0; }
.order-fine { margin: 16px 4px 0; color: var(--dim); font-size: 12px; line-height: 18px; text-align: center; }

/* Messages, on every page. */
.ticket .fine { color: var(--muted); font-size: 13px; line-height: 20px; margin: 0 0 4px; }
.ticket .status { font-size: 14px; margin: 14px 0 0; min-height: 20px; }
.status.err { color: var(--vamp); }
.status.ok { color: var(--up); }
.alert { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 20px;
         border: 1px solid var(--edge); background: var(--raised); color: var(--ink); text-align: left; }
.alert[hidden] { display: none; }
.alert svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--muted); }
.alert.err { border-color: rgba(246, 70, 93, .45); background: rgba(246, 70, 93, .08); }
.alert.err svg { color: var(--vamp); }
.alert.ok { border-color: rgba(14, 203, 129, .45); background: rgba(14, 203, 129, .08); }
.alert.ok svg { color: var(--up); }

.banner { border: 1px solid var(--edge); border-radius: 16px; padding: 28px; margin: 48px 0; }
.banner.warn { border-color: var(--act); }
.banner h2 { font-size: 24px; line-height: 32px; font-weight: 500; margin: 12px 0 8px; }
.banner p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- Launch ---------- */
.launch { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 72px; align-items: start; padding-block: 56px 112px; }
.launch-head { margin-bottom: 36px; }
.launch h1 { font: 500 clamp(40px, 4.6vw, 56px)/1.06 var(--display); letter-spacing: -.035em; margin: 0 0 14px; }
.launch .lede { color: var(--muted); font-size: 16px; line-height: 25px; margin: 0; max-width: 36em; }
.launch .lede b { color: var(--ink); font-weight: 500; }
.group { padding: 28px 0 12px; border-top: 1px solid var(--line); }
.group-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 18px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.group-title small { color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.identity { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; align-items: start; }
.pic-drop { position: relative; width: 140px; aspect-ratio: 1; border-radius: 12px; background: var(--raised); border: 1px solid var(--edge);
  display: grid; place-items: center; overflow: hidden; cursor: pointer; color: var(--muted); transition: border-color .15s, color .15s; }
.pic-drop:hover, .pic-drop.over { border-color: var(--ink); color: var(--ink); }
.empty-pic { display: grid; justify-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.empty-pic svg { width: 22px; height: 22px; }
.pic-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pic-drop .change { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 4px 10px; border-radius: 6px;
  background: rgba(0, 0, 0, .7); color: var(--ink); font-size: 12px; opacity: 0; transition: opacity .15s; }
.pic-drop:hover .change { opacity: 1; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.78); margin-bottom: 8px; }
.field > span em { font-style: normal; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.input { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border: 1px solid var(--edge); border-radius: 8px;
  background: var(--raised); transition: border-color .15s; }
.input:focus-within { border-color: var(--ink); }
.input > svg { flex: none; width: 16px; height: 16px; color: var(--muted); }
.input .pre { color: var(--muted); font-weight: 500; }
.input input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: none; outline: none; color: var(--ink); font-size: 16px; }
.field textarea { display: block; width: 100%; min-height: 108px; padding: 12px 14px; border: 1px solid var(--edge); border-radius: 8px;
  background: var(--raised); outline: none; resize: vertical; color: var(--ink); font-size: 16px; line-height: 24px; transition: border-color .15s; }
.field textarea:focus { border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field small { display: block; color: var(--muted); font-size: 13px; line-height: 19px; margin-top: 8px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 14px; }
.two.even { grid-template-columns: 1fr 1fr; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }

/* The right column: the coin as it will look, what the pad decided, what it costs. */
.summary { position: sticky; top: 88px; }
.summary .ticket .body { padding: 24px; }
.preview { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 14px; align-items: center; padding-bottom: 20px; }
.pv-pic { width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--edge); background: var(--raised) center / cover no-repeat; }
.preview b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verdict { padding: 18px 0 6px; border-top: 1px solid var(--line); }
.verdict h2 { font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -.015em; margin: 12px 0 6px; }
.verdict p { color: var(--muted); font-size: 14px; line-height: 21px; margin: 0 0 14px; }
.verdict a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.summary .pill { margin-top: 20px; }
.summary .fine { color: var(--muted); font-size: 12px; line-height: 18px; margin: 14px 0 0; text-align: center; }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 4px 0 16px; }
.versus figure { margin: 0; text-align: center; }
.versus img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--raised); }
.versus figcaption { margin-top: 8px; font-weight: 600; font-size: 14px; }
.versus figcaption span { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.versus .arrow { color: var(--vamp); font-size: 12px; font-weight: 700; text-align: center; line-height: 16px; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: center; padding: 7px 0; color: var(--muted); font-size: 14px; counter-increment: s; }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--edge); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.steps li.now { color: var(--ink); }
.steps li.now::before { border-color: var(--ink); }
.steps li.done { color: var(--ink); }
.steps li.done::before { content: '✓'; background: var(--act); border-color: var(--act); color: #000; }
.steps li.bad { color: var(--vamp); }
.steps li.bad::before { border-color: var(--vamp); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 48px 0 64px; }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
footer .brand { font-size: 18px; }
footer p { color: var(--muted); font-size: 12px; line-height: 19px; max-width: 60em; margin: 16px 0 0; }
footer nav { display: flex; gap: 22px; font-size: 14px; font-weight: 500; }


@media (max-width: 1000px) {
  .hero, .stock, .launch { grid-template-columns: 1fr; }
  .hero { gap: 48px; }
  .order, .summary { position: static; }
  /* On a phone the ticket comes straight after the chart, before the details. */
  .stock { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .stock .main-col { display: contents; }
  .stock .head { order: 0; } .stock .chart, .stock .chart-foot { order: 1; } .stock .order { order: 2; margin-top: 28px; } .stock .position, .stock .details { order: 3; }
  .stock.admin .order { order: 1; } .stock.admin .block-title, .stock.admin .coins { order: 2; } /* /admin: the claim before the long list */
  .cards { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coins .hide-md { display: none; }
}
@media (max-width: 640px) {
  .identity { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
  .pic-drop { width: 104px; border-radius: 14px; }
  .nav .links { display: none; }
  .nav .wrap { gap: 12px; justify-content: space-between; }
  .nav .actions .pill.line:not(.connected) { display: none; }
  .nav .actions .pill.line .addr { display: none; }
  .pill.line.connected { padding: 0 14px; }
  .checks { grid-template-columns: 1fr; }
  .two, .two.even { grid-template-columns: 1fr; }
  .list-head { flex-direction: column; align-items: start; }
  .coins .hide-sm { display: none; }
  .coins td { padding: 0 6px; }
  .coin-cell span { max-width: 9em; }
  .chart { height: 300px; }
  .big { font-size: 40px; line-height: 46px; }
  .coin-id h1 { font-size: 24px; line-height: 30px; }
  .family a { gap: 10px; grid-template-columns: 22px 40px minmax(0, 1fr) auto auto; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Cinematic sections (the renders) ---------- */
.stage { position: relative; min-height: min(86vh, 880px); display: flex; align-items: flex-end; overflow: hidden; background: #000; }
.stage-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.stage::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.74) 34%, rgba(0,0,0,0) 64%),
              linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 26%); }
.stage-copy { position: relative; z-index: 1; width: 100%; padding-block: 0 clamp(64px, 11vh, 120px); }
.stage-copy h1 { font: 500 clamp(52px, 7.4vw, 104px)/1.02 var(--display); letter-spacing: -.040em; margin: 0 0 26px; max-width: 8.5em; }
.stage-copy p { font-size: 19px; line-height: 29px; max-width: 29em; margin: 0 0 36px; color: var(--soft); }
.stage-copy .cta { display: flex; gap: 12px; flex-wrap: wrap; }

.media-card { padding: 40px 32px 0; overflow: hidden; }
.media-card img { width: calc(100% + 64px); max-width: none; margin: 18px -32px 0; aspect-ratio: 4 / 3; object-fit: cover; transform: scale(1.06);
  /* The renders sit on near-black; fading their edges drops them straight into the card. */
  -webkit-mask-image: radial-gradient(ellipse 58% 52% at 50% 58%, #000 42%, transparent 100%);
          mask-image: radial-gradient(ellipse 58% 52% at 50% 58%, #000 42%, transparent 100%); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.split h2 { font: 500 clamp(40px, 4.8vw, 64px)/1.06 var(--display); letter-spacing: -.038em; margin: 0 0 22px; }
.split p { font-size: 18px; line-height: 28px; color: var(--soft); margin: 0 0 32px; max-width: 28em; }

.band { margin: 0 0 56px; }
.band img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; display: block; }
.checks.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; column-gap: 48px; }


@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; }
  .checks.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .stage { min-height: 92vh; }
  .stage-media { object-position: 97% 50%; }
  .stage::after { background: linear-gradient(0deg, #000 8%, rgba(0,0,0,.75) 45%, rgba(0,0,0,.1) 75%); }
  .checks.three { grid-template-columns: 1fr; }
  .band img { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) { .stage video { display: none; } }

/* The launch card's notice while launches are closed. */
.gate { margin: 0 0 18px; padding: 12px 14px; border-radius: 8px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38);
        color: var(--soft); font-size: 14px; line-height: 21px; }
.gate[hidden] { display: none; }
.gate b { color: var(--ink); font-weight: 600; }
.gate a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Docs ---------- */
.docs { display: grid; grid-template-columns: 200px minmax(0, 760px); gap: 72px; padding-block: 56px 120px; }
.docs-nav { position: sticky; top: 96px; align-self: start; display: grid; gap: 2px; }
.docs-nav a { padding: 7px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.docs-nav a:hover { color: var(--ink); }
.docs-nav a[aria-current] { color: var(--ink); background: var(--surface); }
.docs-body { min-width: 0; }
.docs-body section { padding-top: 56px; scroll-margin-top: 72px; }
.docs-head { scroll-margin-top: 96px; }
.docs h1 { font: 500 clamp(44px, 5vw, 64px)/1.04 var(--display); letter-spacing: -.040em; margin: 0 0 16px; }
.docs .lede { font-size: 18px; line-height: 28px; color: var(--soft); margin: 0 0 28px; max-width: 34em; }
.docs h2 { font-size: 26px; line-height: 32px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 16px; }
.docs p, .docs li { font-size: 15px; line-height: 25px; color: rgba(255,255,255,.78); }
.docs p b, .docs li b, .docs td b { color: var(--ink); font-weight: 600; }
.docs p { margin: 0 0 14px; max-width: 42em; }
.docs code { font: 500 13.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); }
.docs p code, .docs li code, .docs td code { padding: 1px 6px; border-radius: 5px; background: var(--surface); }
.base { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 10px 10px 10px 16px; border-radius: 8px;
        background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.base span { color: var(--muted); font-size: 13px; }
.base code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code { margin: 0 0 18px; padding: 16px 18px; border-radius: 8px; background: rgba(0,0,0,.5); box-shadow: inset 0 0 0 1px #24211c;
        overflow-x: auto; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--soft); }
.code code { font: inherit; color: inherit; white-space: pre; }
.code .k { color: var(--muted); }
.code .s { color: var(--ink); }
.code .n { color: var(--act); }
.code .status { color: var(--act); }
.code .more { color: var(--muted); }
.route { display: flex; align-items: center; gap: 12px; margin: 24px 0 10px; }
.route .verb { font: 700 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--act); letter-spacing: .02em; }
.route code { font-size: 16px; }
.try { margin: 14px 0 8px; }
.try-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 8px;
           background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.try-bar code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.try .out { margin-top: 8px; max-height: 420px; overflow: auto; }
.params, .fields { width: 100%; border-collapse: collapse; margin: 6px 0 18px; }
.params th, .fields th { width: 34%; padding: 12px 16px 12px 0; text-align: left; vertical-align: top; font: 600 13.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); }
.params td, .fields td { padding: 12px 0; font-size: 14px; line-height: 22px; color: rgba(255,255,255,.78); }
.params tr + tr, .fields tr + tr { box-shadow: inset 0 1px 0 var(--line); }
.params th { width: 120px; font-family: var(--sans); }
.flow { margin: 0 0 20px; padding-left: 22px; display: grid; gap: 10px; }
.plain { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 10px; }
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 0; padding-top: 36px; }
  .docs-nav { display: none; }
  .params th, .fields th { width: 40%; }
}

/* The tokenomics page: $VITRO's supply, what burns it, and every burn. */
.tok { max-width: 980px; padding-block: clamp(48px, 9vh, 96px) 96px; }
.tok-eyebrow { font-size: 14px; font-weight: 500; color: var(--muted); margin: 0 0 12px; }
.tok h1 { font: 500 clamp(56px, 8vw, 104px)/1 var(--display); letter-spacing: -.045em; margin: 0 0 18px; }
.tok .lede { font-size: 19px; line-height: 29px; color: var(--soft); max-width: 32em; margin: 0 0 32px; }
.ca { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px; border: 1px solid var(--edge); border-radius: 12px; background: var(--raised); }
.ca .label { font-size: 13px; font-weight: 500; color: var(--muted); }
.ca code { flex: 1 1 260px; font: 500 14px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.ca p { flex: 1 1 260px; margin: 0; font-size: 15px; color: rgba(255,255,255,.78); }
.tok-stats { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.tok-stats dd { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.tok-block { margin-top: 56px; }
.supply-bar { display: flex; justify-content: flex-end; height: 10px; border-radius: 5px; background: rgba(255,255,255,.9); overflow: hidden; }
.supply-bar i { display: block; height: 100%; background: var(--vamp); }
.supply-legend { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.supply-legend b { color: var(--ink); font-weight: 600; }
.supply-legend .burn b { color: var(--vamp); }
.burn-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.burn-cards > div { border: 1px solid var(--edge); border-radius: 12px; padding: 22px 22px 20px; }
.burn-cards h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.burn-cards p { margin: 0; font-size: 15px; line-height: 23px; color: var(--muted); }
.burn-cards .big { margin-top: 20px; font-size: 26px; line-height: 32px; font-weight: 600; color: var(--vamp); font-variant-numeric: tabular-nums; }
.tok-foot { margin-top: 48px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .burn-cards { grid-template-columns: 1fr; } }
.tok .coins td:last-child { white-space: nowrap; }

/* Choosing a wallet when there is more than one. */
.picker { width: min(380px, calc(100vw - 32px)); padding: 22px; border: 1px solid var(--edge); border-radius: 14px; background: var(--raised); color: var(--ink); }
.picker::backdrop { background: rgba(5, 4, 3, .72); backdrop-filter: blur(4px); }
.picker h2 { margin: 0 0 14px; font-size: 18px; font-weight: 600; }
.picker button { display: flex; align-items: center; gap: 12px; width: 100%; height: 52px; margin-top: 8px; padding: 0 14px; border: 0; border-radius: 8px;
  background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: var(--ink); font: 500 15px var(--sans); cursor: pointer; }
.picker button:hover { background: rgba(255,255,255,.12); }
.picker button img { width: 28px; height: 28px; border-radius: 6px; }
.picker .ghost { justify-content: center; height: 40px; margin-top: 14px; box-shadow: none; background: none; color: var(--muted); }

.lost { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding-block: 96px; }
.lost h1 { font: 600 clamp(48px, 6vw, 88px)/1 var(--display); letter-spacing: -.045em; margin: 0 0 18px; }
.lost p { color: var(--muted); font-size: 18px; margin: 0 0 30px; }

@media (max-width: 1000px) {
  .steps3 { grid-template-columns: 1fr; }
  .lead { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .film { min-height: 92vh; }
  .film video, .film .poster { object-position: 70% 50%; }
  .film::after { background: linear-gradient(0deg, var(--bg) 6%, rgba(0,0,0,.78) 46%, rgba(0,0,0,.12) 78%); }
}


/* ==================================================================================================
   Vitro: liquid glass
   One recipe at three sizes. Capsules for controls, 24px sheets for content, a 40px pane for the hero.
   The glass is a frosted fill, a bright rim that catches light at the top-left and bottom-right, and
   (Chromium only, see app.js) a displacement filter that bends what's behind it at the edges.
   ================================================================================================== */
html { background: #000; }
body { font: 400 16px/24px var(--sans); letter-spacing: -.006em; }
/* Every page sits over the same liquid, deeply dimmed, so its glass always has colour to catch. */
/* ambient.jpg is the hero poster already blurred, darkened and saturated (200px wide): no filter to run on scroll. */
body::before { content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: url(/assets/vitro/ambient.jpg) center / cover no-repeat; }
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.6)); }

.glass, .nav .wrap, .ticket, .sheet, .picker, .receipt, .pill.line, .ghost, .presets, .chips, .alert, .banner, .ca, .base, .try-bar {
  background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.34), inset 0 -1px 0 rgba(255,255,255,.06),
              inset 0 0 0 1px rgba(255,255,255,.09), 0 18px 48px -18px rgba(0,0,0,.75);
  border: 0;
}
/* Live blur only where something moves behind the glass: the nav (the page scrolls under it), the hero pane
   (video behind it) and the wallet picker. Every other sheet sits over the still, pre-blurred liquid, where a
   translucent fill looks the same and costs nothing per frame. */
.nav .wrap, .glass, .picker { -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); }
/* The rim: light caught along the edge, brightest where the light comes from. */
.glass, .nav .wrap, .ticket, .sheet, .picker, .receipt { position: relative; isolation: isolate; }
.glass::before, .nav .wrap::before, .ticket::before, .sheet::before, .picker::before, .receipt::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: linear-gradient(140deg, rgba(255,255,255,.7), rgba(255,255,255,.12) 22%, rgba(255,255,255,0) 45%,
                                      rgba(255,255,255,0) 60%, rgba(255,255,255,.14) 82%, rgba(255,255,255,.42));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* Where the bending filter runs, the frost can be lighter: the glass reads from the refraction. */
.lens-on [data-lens] { -webkit-backdrop-filter: var(--lens) blur(10px) saturate(1.7); backdrop-filter: var(--lens) blur(10px) saturate(1.7); }

/* ---------- Nav: a floating capsule ---------- */
.nav { position: sticky; top: 0; z-index: 20; padding: 14px var(--gutter) 0; background: none; border: 0;
       -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none; }
.nav .wrap { pointer-events: auto; max-width: 1040px; height: 60px; padding: 0 9px 0 20px; border-radius: 999px; gap: 26px; }
.brand { gap: 10px; }
.brand .mark { width: 24px; height: 24px; color: var(--ink); flex: none; }
.wordmark { font: italic 400 28px/1 'Instrument Serif', Georgia, serif; letter-spacing: -.01em; padding-right: 2px; }
.nav .links { gap: 22px; }
.nav .links a { font-size: 15px; font-weight: 500; opacity: .78; }
.nav .actions .pill { height: 42px; }

/* ---------- Buttons ---------- */
.pill { height: 50px; padding: 0 24px; border-radius: 999px; background: var(--act); color: #000;
        font: 600 15px/1 var(--sans); letter-spacing: -.01em;
        box-shadow: inset 0 1px 0 #fff, inset 0 -2px 6px rgba(0,0,0,.12), 0 10px 30px -12px rgba(255,255,255,.35); }
.pill:hover { background: var(--act-hover); }
.pill.sm { height: 40px; padding: 0 18px; font-size: 14px; }
.pill.buy { background: var(--up); color: #00230b; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 30px -14px rgba(48,209,88,.6); }
.pill.buy:hover { background: #3ee06a; }
.pill.vamp { background: var(--vamp); color: #2a0300; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 30px -14px rgba(255,69,58,.6); }
.pill.vamp:hover { background: #ff5a50; }
.pill[disabled], .pill[aria-disabled="true"] { background: rgba(255,255,255,.08); color: var(--dim); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.pill.line, .ghost { color: var(--ink); border-radius: 999px; font-weight: 500; }
.pill.line:hover, .ghost:hover { background: linear-gradient(180deg, rgba(255,255,255,.17), rgba(255,255,255,.06)); }
.pill.line .addr { box-shadow: inset 1px 0 0 rgba(255,255,255,.14); }
.presets, .chips { border-radius: 14px; }
.presets button + button, .chips button + button { box-shadow: inset 1px 0 0 rgba(255,255,255,.08); }
.presets button:hover, .chips button:hover { background: rgba(255,255,255,.08); }
.chips button[aria-pressed="true"] { background: rgba(255,255,255,.16); }
.tabs button[aria-pressed="true"]::after, .seg button[aria-pressed="true"]::after { background: var(--ink); }

/* ---------- Chips ---------- */
.chip { height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.chip.original { gap: 6px; color: var(--ink); background: rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 0 0 1px rgba(255,255,255,.1); }
.chip.original svg { width: 12px; height: 12px; }
.chip.vamp { color: #ff8a82; background: rgba(255,69,58,.16); box-shadow: inset 0 0 0 1px rgba(255,69,58,.25); }
.chip.dead { background: rgba(255,255,255,.06); }

/* ---------- Home: the film and its pane ---------- */
.film { position: relative; min-height: 100svh; margin-top: -74px; display: grid; place-items: center; overflow: hidden; background: #000; }
.film video, .film .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 70% at 50% 45%, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 100%), linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 22%); }
.film-copy { position: relative; z-index: 2; width: 100%; display: grid; place-items: center; padding: 120px var(--gutter) 96px; }
.pane { width: min(760px, 100%); border-radius: 40px; padding: clamp(32px, 5vw, 56px); animation: settle 1.2s var(--ease) both .15s; }
.pane h1 { font: 600 clamp(44px, 6.4vw, 88px)/.96 var(--display); font-stretch: 82%; letter-spacing: -.04em; margin: 0 0 22px; text-wrap: balance; }
.pane p { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; color: var(--soft); max-width: 30em; margin: 0 0 32px; }
.pane .cta { display: flex; gap: 10px; flex-wrap: wrap; }
@keyframes settle { from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Home: sections ---------- */
.section { padding: clamp(72px, 12vh, 132px) 0; border: 0; }
.sheet { border-radius: 28px; padding: clamp(24px, 3.6vw, 44px); }
.lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 36px; }
.lead h2, .list-head h2, .split h2 { font: 600 clamp(36px, 4.4vw, 60px)/1.02 var(--display); font-stretch: 84%; letter-spacing: -.035em; margin: 0; }
.lead p { color: var(--muted); font-size: 18px; line-height: 28px; margin: 0; max-width: 30em; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rules > div { padding: 6px clamp(18px, 2.4vw, 32px); }
.rules > div + div { box-shadow: inset 1px 0 0 var(--line); }
.rules h3 { font: 600 26px/1.15 var(--display); font-stretch: 86%; letter-spacing: -.025em; margin: 0 0 12px; }
.rules p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 24px; }
.rules .figure { display: block; font: 600 clamp(40px, 4vw, 56px)/1 var(--display); font-stretch: 80%; letter-spacing: -.04em; margin-bottom: 18px; }
.split p { color: var(--muted); }
.receipt { border-radius: 28px; }
.receipt figure img { border-radius: 18px; }
.coins th { border-bottom-color: var(--line); }
.coins td { border-bottom-color: var(--line); }
.coins tr.row:hover td { background: rgba(255,255,255,.05); }
.sheet .coins tr:last-child td { border-bottom: 0; }
.coin-cell img, .family img, .coin-id img { box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.curve .track { background: rgba(255,255,255,.12); }
.grad .bar { background: rgba(255,255,255,.12); }

footer { border-top: 0; padding: 56px 0 72px; }
footer p { color: var(--dim); }

/* ---------- App pages ---------- */
.ticket { border-radius: 26px; }
.order .more .ghost { border-radius: 999px; }
.input, .amount-box, .field textarea, .pic-drop {
  background: rgba(0,0,0,.28); border: 0; border-radius: 14px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.1); }
.input:focus-within, .amount-box:focus-within, .field textarea:focus { box-shadow: inset 0 1px 2px rgba(0,0,0,.45), inset 0 0 0 1.5px rgba(255,255,255,.55); }
.pic-drop { border-radius: 20px; }
.chart.framed { border-radius: 22px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.family a:hover, .family .here a { background: rgba(255,255,255,.05); }
.alert { border-radius: 14px; }
.alert.err { background: rgba(255,69,58,.12); box-shadow: inset 0 0 0 1px rgba(255,69,58,.35); }
.alert.ok { background: rgba(48,209,88,.10); box-shadow: inset 0 0 0 1px rgba(48,209,88,.35); }
.gate { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); color: var(--soft); }
.launch h1, .top h1, .docs h1 { font-stretch: 84%; font-weight: 600; }
.tok h1 { font-stretch: 80%; font-weight: 600; }
.big { font-weight: 600; font-stretch: 86%; letter-spacing: -.035em; }
.supply-bar { background: rgba(255,255,255,.85); }
.picker { border: 0; border-radius: 26px; }
.picker button { border-radius: 14px; }

@media (max-width: 1000px) {
  .lead { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; gap: 28px; }
  .rules > div { padding: 0; }
  .rules > div + div { box-shadow: none; padding-top: 28px; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .nav { padding-top: 10px; }
  .nav .wrap { height: 54px; padding: 0 7px 0 16px; }
  .film { margin-top: -64px; }
  .film-copy { padding: 104px 14px 64px; }
  .pane { border-radius: 30px; }
}
@media (prefers-reduced-motion: reduce) { .film video { display: none; } .pane { animation: none; } }
.receipt .blank { aspect-ratio: 1; border-radius: 18px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
/* The hero pane darkens what it shows a little, so its type stays readable over the brightest liquid. */
.pane { background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02)), rgba(0,0,0,.24); }
body { background: transparent; } /* html paints the black; the body has to let the liquid layer through */
.split h2 { margin-bottom: 18px; }

/* ---------- Home hero: type straight on the liquid, centred ----------
   A soft dark pool behind the words keeps them readable over the brightest parts of the bubble. */
.film::after { background: radial-gradient(48% 42% at 50% 50%, rgba(0,0,0,.5), rgba(0,0,0,0) 100%),
                           radial-gradient(90% 70% at 50% 45%, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 100%),
                           linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 22%); }
.hero-copy { width: min(880px, 100%); text-align: center; animation: settle 1.2s var(--ease) both .15s;
             text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero-copy h1 { font: 600 clamp(58px, 9.6vw, 140px)/.92 var(--display); font-stretch: 80%; letter-spacing: -.045em; margin: 0 0 26px; }
.hero-copy p { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--soft); max-width: 30em; margin: 0 auto 36px; text-wrap: balance; }
.hero-copy .cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; text-shadow: none; }
@media (max-width: 640px) { .hero-copy .cta { flex-direction: column; align-items: center; } }
@media (prefers-reduced-motion: reduce) { .hero-copy { animation: none; } }

/* ---------- Chinese ----------
   Chinese glyphs come from the system's own fonts (PingFang, YaHei); they read best untracked and a touch taller. */
/* The language bubble: two round flags in a small capsule of glass; the one in use sits bright and ringed. */
.langs { display: flex; gap: 3px; padding: 3px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), inset 0 0 0 1px rgba(255,255,255,.1), 0 6px 18px -8px rgba(0,0,0,.7); }
.langs a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; opacity: .5; transition: opacity .2s, transform .2s; }
.langs a:hover { opacity: .85; }
:lang(zh) .langs a[hreflang^="zh"], html:not(:lang(zh)) .langs a[hreflang="en"] {
  opacity: 1; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
/* A Chinese reader's page stays hidden for the instant it takes to swap the Chinese in (never more than 1.2s). */
html.zh-pending body { visibility: hidden; animation: show 0s 1.2s forwards; }
/* Chinese punctuation hangs half-empty at a line's end; trim it so centred lines really sit centred. */
:lang(zh) body { text-spacing-trim: trim-both; }
.langs svg { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 2px 6px rgba(0,0,0,.4); }
.langs a:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
@media (max-width: 640px) { .langs a { width: 30px; height: 30px; } .langs svg { width: 20px; height: 20px; } }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) .figure, :lang(zh) .big, :lang(zh) .wordmark { letter-spacing: 0; }
:lang(zh) .hero-copy h1 { font-weight: 700; line-height: 1.04; }
:lang(zh) .lead h2, :lang(zh) .list-head h2, :lang(zh) .split h2 { font-weight: 700; line-height: 1.15; }
:lang(zh) .hero-copy p, :lang(zh) .lead p, :lang(zh) .split p, :lang(zh) .rules p { line-height: 1.75; }
