/* ============================================================
   LOWpad · one stylesheet for the launchpad

   Paper the colour of a product sheet, one ink, hairlines, legends
   set in a mono face, and a single hot colour. The three colours of
   the ladder (blue past 50k, amber past 100k, hot past 500k) appear
   only where a step is meant: on a token's card, its bar, its chart.
   ============================================================ */

@font-face { font-family: "Panchang"; src: url("assets/fonts/panchang-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Panchang"; src: url("assets/fonts/panchang-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("assets/fonts/geistmono-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #ECEAE4;
  --panel: #F3F1EB;
  --card: #FAF9F5;
  --ink: #121316;
  --ink-2: #44464C;
  --ink-3: #6E7076;
  --line: rgba(18, 19, 22, .13);
  --line-2: rgba(18, 19, 22, .26);
  --hot: #FF4A1C;
  --t0: #A9A59B;
  --t1: #2E6BFF;
  --t2: #F2B200;
  --t3: #FF4A1C;
  --up: #14844A;
  --down: #D63A12;
  --display: "Panchang", "Geist", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --tap: .16s;
  --pad-x: clamp(16px, 3.4vw, 44px);
  --max: 1380px;
  --bar-h: 62px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); scrollbar-width: thin; scrollbar-color: var(--ink) var(--paper); }
html::-webkit-scrollbar { width: 11px; }
html::-webkit-scrollbar-track { background: var(--paper); }
html::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid var(--paper); border-radius: 8px; }
body {
  margin: 0; color: var(--ink); background-color: var(--paper);
  background-image: radial-gradient(rgba(18, 19, 22, .09) 1px, transparent 1.25px);
  background-size: 22px 22px; background-position: 11px 11px;
  font-family: var(--sans); font-size: 16px; line-height: 1.55; font-weight: 400;
  -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 600; }
code { font-family: var(--mono); font-size: .92em; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; border-radius: 3px; }
.fig { font-variant-numeric: tabular-nums; }
.hot-o { font-style: normal; color: var(--hot); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 90; left: var(--pad-x); top: 10px; padding: 10px 14px; background: var(--ink); color: var(--paper); font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; transform: translateY(-260%); transition: transform var(--tap) var(--ease); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad-x); }
.lab { display: block; margin-bottom: 8px; font: 500 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.lab i { font-style: normal; letter-spacing: .04em; text-transform: none; opacity: .8; }
.fine { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); max-width: 74ch; }
.h-sm { font: 700 clamp(15px, 1.3vw, 18px)/1.15 var(--display); letter-spacing: -.005em; }
.chipline { font: 500 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.linkish { padding: 0; border: 0; background: none; cursor: pointer; font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--hot); }
.linkish:hover { color: var(--hot); }

/* ---------- the line above the bar ---------- */

.notice { display: flex; align-items: baseline; justify-content: center; gap: 12px; padding: 8px var(--pad-x); background: var(--ink); color: #D9D6CC; font: 500 12px/1.45 var(--mono); letter-spacing: .02em; }
.notice i { font-style: normal; }
.notice b { flex: none; padding: 2px 7px; border-radius: 4px; background: var(--hot); color: var(--ink); font-weight: 700; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- keys ---------- */

.key {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: 40px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 8px; background: transparent;
  font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; cursor: pointer;
  touch-action: manipulation; user-select: none;
  transition: transform var(--tap) var(--ease), background-color var(--tap) var(--ease), color var(--tap) var(--ease), box-shadow var(--tap) var(--ease), border-color var(--tap) var(--ease);
}
.key svg { width: 1.1em; height: 1.1em; }
.key.solid { background: var(--ink); color: var(--paper); box-shadow: 0 2px 0 rgba(18, 19, 22, .28); }
.key.solid:hover { background: var(--hot); border-color: var(--hot); color: var(--ink); }
.key.ghost { background: rgba(250, 249, 245, .75); }
.key.ghost:hover { background: var(--ink); color: var(--paper); }
.key:active { transform: translateY(1.5px); box-shadow: none; }
.key.lg { height: 48px; padding: 0 22px; font-size: 13px; }
.key.sm { height: 32px; padding: 0 11px; font-size: 11px; }
/*  the way to GMGN: their mark alone, nothing drawn around it  */
.gm { display: inline-flex; align-items: center; margin-left: 4px; border-radius: 6px; transition: transform var(--tap) var(--ease); }
.gm:hover { transform: translateY(-2px); }
.gm:active { transform: translateY(1px); }
.gm img { display: block; width: 28px; height: 28px; image-rendering: pixelated; }
.key.full { width: 100%; }
.key.icon { width: 40px; padding: 0; }
.key:disabled, .key[aria-disabled="true"] { opacity: .4; cursor: not-allowed; box-shadow: none; }
.key.solid:disabled:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.key.ghost:disabled:hover { background: rgba(250, 249, 245, .75); color: inherit; }
.wallet-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); transition: background-color var(--tap) var(--ease), border-radius var(--tap) var(--ease); }
.wallet-btn.is-on .wallet-dot { background: #1FA35A; border-radius: 2px; }
.wallet-btn.is-off .wallet-dot { background: var(--hot); }
.chip {
  height: 36px; min-width: 50px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--card); cursor: pointer;
  font: 600 12px/1 var(--mono); letter-spacing: .03em; font-variant-numeric: tabular-nums; touch-action: manipulation;
  transition: background-color var(--tap) var(--ease), color var(--tap) var(--ease), transform var(--tap) var(--ease), border-color var(--tap) var(--ease);
}
.chip:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.chip:active { transform: translateY(1px); }
.chips { display: inline-flex; gap: 6px; }
.chips.wide { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 8px; }
.chips.wide .chip { min-width: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); cursor: pointer;
  font: 600 11.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; touch-action: manipulation;
  transition: background-color var(--tap) var(--ease), color var(--tap) var(--ease), border-color var(--tap) var(--ease), transform var(--tap) var(--ease);
}
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab:active { transform: translateY(1px); }
.tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tab.t1::before, .tab.t2::before, .tab.t3::before { content: ""; width: 8px; height: 8px; border-radius: 2.5px; background: var(--t1); }
.tab.t2::before { background: var(--t2); }
.tab.t3::before { background: var(--t3); }
.tabs.under { padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }

/* ---------- fields ---------- */

.field { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 9px; background: #FFFFFF; color: var(--ink); font: 500 15px/1.3 var(--sans); transition: border-color var(--tap) var(--ease), box-shadow var(--tap) var(--ease); }
textarea.field { height: auto; padding: 12px 14px; resize: vertical; min-height: 86px; line-height: 1.45; }
.field:hover { border-color: var(--ink); }
.field:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 74, 28, .3); }
input[type="number"].field { font: 600 19px/1 var(--mono); -moz-appearance: textfield; appearance: textfield; }
input[type="number"].field::-webkit-outer-spin-button, input[type="number"].field::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--panel); }
.seg-key { height: 40px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font: 600 12.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); touch-action: manipulation; transition: background-color var(--tap) var(--ease), color var(--tap) var(--ease), transform var(--tap) var(--ease); }
.seg-key:hover { color: var(--ink); }
.seg-key:active { transform: translateY(1px); }
.seg-key[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: 0 2px 0 rgba(18, 19, 22, .25); }
.seg-key[data-side="sell"][aria-pressed="true"] { background: var(--down); color: #FFFFFF; }
.f-err { margin-top: 12px; padding: 10px 13px; border-left: 3px solid var(--down); background: rgba(214, 58, 18, .08); border-radius: 0 8px 8px 0; font-size: 14px; line-height: 1.45; color: #8E2409; }
.why { font: 500 11px/1.45 var(--mono); letter-spacing: .04em; color: var(--ink-3); max-width: 46ch; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; }

/* ---------- the bar ---------- */

.bar {
  position: sticky; top: 0; z-index: 50; min-height: var(--bar-h); padding: 10px var(--pad-x);
  display: flex; align-items: center; gap: clamp(12px, 2vw, 26px);
  border-bottom: 1px solid transparent; transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.bar.moved { background: rgba(236, 234, 228, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: var(--line); }
/*  the name and its four pads: the owner's own drawing, set so that the pads stand 24 pixels
    high. The file carries air around the drawing; the margins take it back.  */
.brand { --bh: 41px; display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; width: auto; height: var(--bh); margin: calc(var(--bh) * -.206) calc(var(--bh) * -.138) calc(var(--bh) * -.206) calc(var(--bh) * -.146); }
.links { display: flex; gap: clamp(12px, 1.6vw, 24px); font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.links a { position: relative; padding: 9px 0; white-space: nowrap; color: var(--ink-2); transition: color var(--tap) var(--ease); }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; background: var(--hot); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); }
.links a:hover::after, .links a[aria-current="page"]::after { transform: scaleX(1); }
.search { position: relative; flex: 1 1 200px; max-width: 380px; margin-left: auto; }
.search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; translate: 0 -50%; color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; height: 40px; padding: 0 12px 0 36px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(250, 249, 245, .8); font-size: 14.5px; transition: border-color var(--tap) var(--ease), box-shadow var(--tap) var(--ease), background-color var(--tap) var(--ease); }
.search input:hover { border-color: var(--ink); }
.search input:focus-visible { outline: none; border-color: var(--ink); background: #FFFFFF; box-shadow: 0 0 0 3px rgba(255, 74, 28, .3); }
.keys { display: flex; align-items: center; gap: 8px; flex: none; }
.key.menu { display: none; flex-direction: column; gap: 5px; }
.key.menu span { width: 16px; height: 2px; background: currentColor; transition: transform .25s var(--ease); }
.key.menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.key.menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- the chains: one open, the others listed and shut ---------- */

.chain { position: relative; }
.chain-key {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 11px 0 10px; border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--ink); color: #F4F1E8; cursor: pointer; font: 600 13.5px/1 var(--sans); white-space: nowrap; touch-action: manipulation;
  transition: transform var(--tap) var(--ease), box-shadow var(--tap) var(--ease), background-color var(--tap) var(--ease);
}
.chain-key:hover { background: #26282D; }
.chain-key:active { transform: translateY(1.5px); }
.chain-key .chev { width: 12px; height: 12px; opacity: .7; transition: rotate .2s var(--ease); }
.chain-key[aria-expanded="true"] .chev { rotate: 180deg; }
.ch-ic { width: 20px; height: 20px; flex: none; }
.chain-menu {
  position: absolute; z-index: 60; right: 0; top: calc(100% + 8px); width: 248px; padding: 6px;
  background: var(--ink); color: #F4F1E8; border: 1px solid rgba(244, 241, 232, .16); border-radius: 12px;
  box-shadow: 0 22px 40px -14px rgba(18, 19, 22, .6);
}
.chain-it { display: grid; grid-template-columns: 18px 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 8px; font-size: 14.5px; }
.chain-it b { font-weight: 500; }
.chain-it .box { width: 16px; height: 16px; border: 1.5px solid rgba(244, 241, 232, .45); border-radius: 4px; }
.chain-it em { font: 600 9.5px/1 var(--mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; padding: 4px 6px; border-radius: 4px; background: rgba(244, 241, 232, .12); color: #C9C6BD; }
.chain-it.on { background: rgba(244, 241, 232, .08); }
.chain-it.on b { font-weight: 600; color: #FFFFFF; }
.chain-it.on .box { border-color: #F4F1E8; background: #F4F1E8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.3l3 3 6-6.4' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.chain-it.on em.first { background: var(--hot); color: var(--ink); }
.chain-it.off { cursor: not-allowed; }
.chain-it.off b, .chain-it.off .box { opacity: .45; }
.chain-it.off .ch-ic { opacity: .8; }
.chain-foot { margin-top: 4px; padding: 10px 10px 8px; border-top: 1px solid rgba(244, 241, 232, .14); font-size: 12px; line-height: 1.45; color: #A9A69D; }

/* ---------- heads ---------- */

.tag { display: inline-flex; align-items: center; gap: 10px; font: 500 11.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 3px rgba(255, 74, 28, .2); flex: none; }
h1 { font: 700 clamp(28px, 3.6vw, 52px)/1.04 var(--display); letter-spacing: -.012em; text-wrap: balance; }
h2 { font: 700 clamp(20px, 2.2vw, 30px)/1.1 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.lede { margin-top: 18px; max-width: 58ch; font-size: clamp(15.5px, 1.15vw, 17.5px); line-height: 1.58; color: var(--ink-2); text-wrap: pretty; }
.lede b { color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.page-head { padding-top: clamp(22px, 4vh, 44px); padding-bottom: clamp(20px, 3vh, 34px); }
.page-head h1 { margin-top: 14px; }
.card { padding: clamp(16px, 1.8vw, 24px); background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 1px 0 #FFFFFF inset, 0 22px 36px -30px rgba(18, 19, 22, .38); }

/* ---------- home: the head and where the 1% goes ---------- */

.top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-top: clamp(22px, 4vh, 46px); padding-bottom: clamp(26px, 4vh, 44px); }
.top h1 { margin-top: 16px; }
.top h1 span { display: block; margin-top: .3em; color: var(--ink-3); }
.fees { padding: clamp(18px, 2vw, 26px); background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 1px 0 #FFFFFF inset, 0 26px 40px -30px rgba(18, 19, 22, .4); }
.fees-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.fees-h b { font: 700 16px/1.1 var(--display); }
.fees-h span { font: 500 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.fees-rows li { display: grid; grid-template-columns: 92px minmax(0, 1fr) 46px 46px; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.fr-cap { font: 600 12px/1.2 var(--mono); letter-spacing: .04em; }
.fr-bar { position: relative; height: 18px; border: 1px solid var(--ink); border-radius: 5px; overflow: hidden; background: repeating-linear-gradient(135deg, rgba(18, 19, 22, .13) 0 2px, transparent 2px 7px); }
.fr-bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--ten) * 100%); background: var(--t0); border-right: 1px solid var(--ink); }
.s0 .fr-bar i { border-right: 0; }
.s1 .fr-bar i { background: var(--t1); }
.s2 .fr-bar i { background: var(--t2); }
.s3 .fr-bar i { background: var(--t3); }
.fr-ten, .fr-pad { text-align: right; font: 700 13.5px/1 var(--mono); }
.fr-pad { color: var(--ink-3); font-weight: 500; }
.fees-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font: 500 11px/1.3 var(--mono); color: var(--ink-2); }
.fees-key span { display: inline-flex; align-items: center; gap: 7px; }
.fees-key i { width: 14px; height: 10px; border: 1px solid var(--ink); border-radius: 3px; }
.k-ten { background: linear-gradient(90deg, var(--t1) 0 34%, var(--t2) 34% 67%, var(--t3) 67%); }
.k-pad { background: repeating-linear-gradient(135deg, rgba(18, 19, 22, .18) 0 2px, transparent 2px 5px); }
.fees-f { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.fees-f b { color: var(--ink); }

/* ---------- home: the tokens ---------- */

.feed { padding-top: 8px; }
.feed-bar { position: sticky; top: var(--bar-h); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 0; margin-bottom: 4px; background: linear-gradient(var(--paper) 78%, rgba(236, 234, 228, 0)); }
.feed-bar h2 { font-size: clamp(18px, 1.7vw, 24px); }
.feed-n { margin-left: auto; font: 500 11.5px/1 var(--mono); letter-spacing: .06em; color: var(--ink-3); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 12px; }
.empty { padding: 42px 20px; border: 1px dashed var(--line-2); border-radius: 16px; text-align: center; color: var(--ink-2); }

.tk {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 13px; min-width: 0;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 0 #FFFFFF inset;
  transition: transform var(--tap) var(--ease), border-color var(--tap) var(--ease), box-shadow var(--tap) var(--ease);
}
.tk::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--t0); }
.tk.s1::before { background: var(--t1); }
.tk.s2::before { background: var(--t2); }
.tk.s3::before { background: var(--t3); }
.tk:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 1px 0 #FFFFFF inset, 0 16px 26px -18px rgba(18, 19, 22, .5); }
.tk:active { transform: translateY(0); }
.tk-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pic { width: 46px; height: 46px; flex: none; border-radius: 11px; object-fit: cover; display: block; }
.pic.big { width: 76px; height: 76px; border-radius: 17px; }
img.pic.own { background: #FFFFFF; box-shadow: 0 0 0 1px var(--line-2); }
.pic-l { font-family: var(--display); font-weight: 800; font-size: 30px; }
.tk-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.tk-name b { font: 700 15.5px/1.15 var(--display); letter-spacing: -.005em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-sub { font: 500 11px/1.3 var(--mono); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-sub i { font-style: normal; font-weight: 700; color: var(--ink); }
.tk-flag { flex: none; padding: 3px 7px; border-radius: 4px; background: var(--ink); color: var(--paper); font: 600 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.tk-mid { display: flex; align-items: flex-end; gap: 10px; }
.tk-cap { display: flex; flex-direction: column; gap: 5px; }
.tk-cap small { font: 500 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tk-cap b { font: 800 23px/1 var(--display); }
.tk-move { padding-bottom: 2px; font: 600 12px/1 var(--mono); }
.tk-move.up { color: var(--up); }
.tk-move.down { color: var(--down); }
.spark { width: 92px; height: 30px; margin-left: auto; stroke: var(--ink-2); flex: none; }
.tk-foot { display: flex; justify-content: space-between; gap: 10px; font: 500 11px/1.3 var(--mono); color: var(--ink-3); }
.tk-now { color: var(--ink); font-weight: 600; }
.tk-next { text-align: right; }
.tk-open { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 700; }
.tk-open i { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); animation: pulse 1s var(--ease) infinite alternate; }
@keyframes pulse { from { opacity: .3; } to { opacity: 1; } }

.feed-bar h2 { display: inline-flex; align-items: center; gap: 10px; }
.feed-note { margin: 0 0 14px; max-width: 110ch; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.more { margin-top: 16px; text-align: center; }
.tk.real::before { background: var(--ink); }
.tk.real .tk-sub { font-size: 10.5px; }
.tk-stats { display: grid; grid-template-columns: 1.25fr 1fr .8fr; gap: 10px; padding-top: 11px; border-top: 1px solid var(--line); }
.tk-stats > span { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tk-stats small { font: 500 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tk-stats b { font: 600 13px/1 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chipline.live { display: inline-flex; align-items: center; gap: 7px; }
.chipline.live .led { width: 6px; height: 6px; background: #1FA35A; box-shadow: 0 0 0 3px rgba(31, 163, 90, .2); }
.x-addr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.x-addr code { padding: 6px 10px; background: var(--ink); color: #F4F1E8; border-radius: 7px; font-size: 12.5px; letter-spacing: .01em; overflow-wrap: anywhere; min-width: 0; }
.t-stats.x-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.flat .tbl td a { border-bottom: 1px solid var(--line-2); transition: border-color var(--tap) var(--ease), color var(--tap) var(--ease); }
.flat .tbl td a:hover { color: var(--down); border-bottom-color: var(--down); }
.flat .tbl .what { font-family: var(--sans); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; max-width: 22ch; }
.t-side .key.full { margin-top: 14px; }
.fees-rows.mini { margin-top: 12px; border-top: 1px solid var(--line-2); }
.fees-rows.mini li { grid-template-columns: 84px minmax(0, 1fr) 42px; padding: 8px 0; opacity: .5; }
.fees-rows.mini li.at { opacity: 1; }
.fees-rows.mini li.at .fr-cap { font-weight: 700; }
.fees-rows.mini li:last-child { border-bottom: 0; }

/* the ladder as a bar of four stretches */
.lad { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr; gap: 3px; }
.lad i { height: 6px; border-radius: 3px; background: rgba(18, 19, 22, .11); overflow: hidden; }
.lad b { display: block; height: 100%; border-radius: 3px; background: var(--ink-3); transition: width .5s var(--ease); }
.lad .r1 b { background: var(--t1); }
.lad .r2 b { background: var(--t2); }
.lad .r3 b { background: var(--t3); }
.lad.wide { width: clamp(150px, 22vw, 280px); }
.lad.wide i { height: 8px; }

/* ---------- home: how a launch goes ---------- */

.how { padding-top: clamp(56px, 9vh, 104px); }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.how-steps li { padding: clamp(18px, 2vw, 26px); background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.how-steps b { display: inline-grid; place-items: center; width: 32px; height: 32px; background: var(--ink); color: var(--paper); border-radius: 8px; font: 800 14px/1 var(--display); }
.how-steps h3 { margin-top: 16px; font: 700 clamp(16px, 1.5vw, 20px)/1.15 var(--display); }
.how-steps p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.risks { margin-top: 12px; padding: clamp(18px, 2vw, 28px); background: var(--ink); color: #E9E6DD; border-radius: 16px; }
.risks h3 { font: 700 clamp(16px, 1.5vw, 20px)/1.15 var(--display); color: #FFFFFF; }
.risks ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 4vw, 56px); margin-top: 14px; }
.risks li { padding: 13px 0; border-top: 1px solid rgba(244, 241, 232, .16); font-size: 14.5px; line-height: 1.55; color: #C9C6BD; text-wrap: pretty; }
.risks li b { color: #FFFFFF; }
.risks .key { margin-top: 16px; border-color: #F4F1E8; background: transparent; color: #F4F1E8; }
.risks .key:hover { background: #F4F1E8; color: var(--ink); }

/* ---------- the foot ---------- */

.foot { margin-top: clamp(60px, 10vh, 120px); padding-top: 24px; padding-bottom: 36px; border-top: 2px solid var(--ink); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 24px; font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.foot-links a { padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color var(--tap) var(--ease); }
.foot-links a:hover { border-bottom-color: var(--hot); }
.ca { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 22px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; }
.ca-k { font: 500 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ca code { flex: 1 1 220px; min-width: 0; padding: 7px 11px; background: var(--ink); color: #F4F1E8; border-radius: 7px; font-size: 13px; letter-spacing: .02em; overflow-wrap: anywhere; }
.legal { margin-top: 14px; max-width: 96ch; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.legal b { font-weight: 600; color: var(--ink-2); }

/* ---------- create ---------- */

.create-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.form { display: grid; gap: 18px; }
.f-pic { display: flex; align-items: center; gap: 16px; }
.f-pic-box { flex: none; }
.f-pic .key { height: 36px; }
.f-pic .linkish { margin-left: 12px; font-size: 13px; }
.f-two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; }
.field-pre { position: relative; }
.field-pre span { position: absolute; left: 14px; top: 50%; translate: 0 -50%; font: 700 15px/1 var(--mono); color: var(--ink-3); pointer-events: none; }
.field-pre .field { padding-left: 28px; font: 700 15px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.count { float: right; letter-spacing: .04em; }
.f-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
legend.lab { padding: 0; }
.f-links .field { font-size: 13.5px; height: 42px; }
.size-row { display: grid; grid-template-columns: minmax(120px, 1fr) auto; gap: 8px; align-items: center; }
.size-row .chip { height: 46px; }
.form .f-err { margin-top: 0; }
.form .send { margin-top: 2px; }
.create-side { display: grid; gap: 10px; }
.create-side > .lab { margin: 4px 0 0; }
.next-list { margin-top: 14px; counter-reset: n; border-top: 2px solid var(--ink); }
.next-list li { position: relative; padding: 11px 0 11px 34px; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; color: var(--ink-2); counter-increment: n; }
.next-list li::before { content: counter(n); position: absolute; left: 0; top: 11px; width: 22px; height: 22px; display: grid; place-items: center; background: var(--ink); color: var(--paper); border-radius: 6px; font: 700 11px/1 var(--mono); }
.next-list b { color: var(--ink); }
.facts { margin-top: 16px; border-top: 2px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.facts dt { font: 500 10.5px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.facts.tight { margin-top: 12px; border-top-width: 1px; }
.facts.tight > div { padding: 8px 0; font-size: 13.5px; }
.facts.tight > div:last-child { border-bottom: 0; }
.facts dd { overflow-wrap: anywhere; }

/* ---------- one token ---------- */

.token { padding-top: 14px; }
.crumb a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; font: 600 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.crumb a:hover { color: var(--hot); }
.crumb svg { width: 14px; height: 14px; }
.missing { max-width: 640px; margin-top: 20px; }
.missing .key { margin-top: 20px; }
.t-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px clamp(16px, 2vw, 26px); align-items: center; padding: 14px 0 20px; }
.t-id h1 { font-size: clamp(24px, 3vw, 42px); overflow-wrap: anywhere; }
.t-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 8px; font: 500 12.5px/1.3 var(--mono); color: var(--ink-3); }
.t-sub b { font-weight: 700; font-size: 14px; color: var(--ink); }
.t-sub .chipline { padding: 3px 7px; border: 1px solid var(--line-2); border-radius: 4px; }
.t-desc { margin-top: 10px; max-width: 62ch; font-size: 15px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.t-links { display: flex; gap: 14px; margin-top: 8px; font: 600 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.t-links a { border-bottom: 2px solid var(--hot); padding-bottom: 2px; }
.t-cap { text-align: right; }
.t-cap .lab { margin-bottom: 6px; }
.t-cap b { display: block; font: 800 clamp(30px, 4vw, 54px)/1 var(--display); }
.t-step { display: inline-block; margin-top: 10px; padding: 5px 9px; border-radius: 5px; background: var(--t0); font: 700 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.t-step.s1 { background: var(--t1); color: #FFFFFF; }
.t-step.s2 { background: var(--t2); }
.t-step.s3 { background: var(--t3); }
.t-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 14px; align-items: start; }
.t-main, .t-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.ch-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; }
.ch-lad { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ch-words { font: 500 11.5px/1.3 var(--mono); color: var(--ink-3); }
.ch-words b { color: var(--ink); font-weight: 700; }
.chart { display: block; width: 100%; height: clamp(230px, 34vh, 350px); margin-top: 12px; touch-action: pan-y; cursor: crosshair; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-y, .ch-x { font: 500 10.5px var(--mono); fill: var(--ink-3); }
.ch-gate { stroke-width: 1.4; stroke-dasharray: 5 5; stroke: var(--t1); }
.ch-gate.g2 { stroke: var(--t2); }
.ch-gate.g3 { stroke: var(--t3); }
.ch-gate-t { font: 600 10.5px var(--mono); fill: #1E4FCC; paint-order: stroke; stroke: var(--card); stroke-width: 4px; }
.ch-gate-t.g2 { fill: #8A6400; }
.ch-gate-t.g3 { fill: #C2330C; }
.ch-draw { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 4; }
.ch-area { fill: rgba(18, 19, 22, .06); }
.ch-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-dot { fill: var(--ink-3); stroke: var(--card); stroke-width: 2.5; }
.ch-dot.s1 { fill: var(--t1); }
.ch-dot.s2 { fill: var(--t2); }
.ch-dot.s3 { fill: var(--t3); }
.ch-rule { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
.ch-tdot { fill: var(--ink); stroke: var(--card); stroke-width: 2; }
.ch-tt { font: 700 11.5px var(--mono); fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 4px; }

/* the candles of a real token */
.cd-title { display: inline-flex; align-items: baseline; gap: 12px; }
.cd-move { font: 700 13px/1 var(--mono); }
.cd-move.up, .cd-read .up, .cd-flow .up b { color: var(--up); }
.cd-move.dn, .cd-read .dn, .cd-flow .dn b { color: var(--down); }
.cd-keys { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tabs.tight { flex-wrap: nowrap; gap: 0; padding: 3px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel); }
.tabs.tight .tab { height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; font-size: 11px; }
.tabs.tight .tab[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cd-read { display: flex; flex-wrap: wrap; gap: 2px 14px; min-height: 18px; margin-top: 12px; font: 600 11.5px/1.5 var(--mono); }
.cd-read small { margin-right: 5px; font: 500 10px/1 var(--mono); letter-spacing: .08em; color: var(--ink-3); }
.cd-read .at { color: var(--ink-3); font-weight: 500; }
.cd-read .at small { display: none; }
.cd-box { position: relative; }
.cd-box .chart { height: clamp(260px, 40vh, 400px); margin-top: 6px; transition: opacity .2s var(--ease); }
.cd-box .chart.off { opacity: .22; }
.cd-say { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 16px; text-align: center; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.cd-w { fill: none; stroke-width: 1; }
.cd-w.up { stroke: var(--up); }
.cd-w.dn { stroke: var(--down); }
.cd-b.up, .cd-v.up, .cd-tag.up { fill: var(--up); }
.cd-b.dn, .cd-v.dn, .cd-tag.dn { fill: var(--down); }
.cd-v { opacity: .26; }
.cd-last { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 4; opacity: .5; }
.cd-tag-t { font: 700 10.5px var(--mono); fill: #FFFFFF; }
.cd-flow { display: grid; grid-template-columns: auto minmax(60px, 1fr) auto; align-items: center; gap: 5px 12px; margin-top: 14px; font: 500 11.5px/1.3 var(--mono); color: var(--ink-3); }
.cd-flow b { font-weight: 700; }
.cd-flow-bar { height: 6px; border-radius: 3px; background: var(--down); overflow: hidden; }
.cd-flow-bar i { display: block; width: 50%; height: 100%; background: var(--up); border-right: 2px solid var(--card); }
.cd-flow small { grid-column: 1 / -1; font: 500 10px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.t-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 12px; border-top: 1px solid var(--line-2); }
.t-stats > div { padding: 12px 10px 0 0; }
.t-stats > div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.t-stats dt { font: 500 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.t-stats dd { margin-top: 6px; font: 700 15px/1 var(--mono); }
.t-stats .hot dd { color: var(--down); }

.tbl-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); }
.tbl-wrap.flat { margin-top: 4px; border: 0; border-radius: 0; background: none; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl caption { padding: 12px 16px; text-align: left; font: 500 10.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line-2); }
.tbl th { padding: 10px 14px; text-align: left; font: 500 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-family: var(--mono); font-weight: 500; }
.tbl tfoot td { border-top: 1px solid var(--ink); font-weight: 600; }
.tbl i.sw { display: inline-block; width: 10px; height: 10px; margin-right: 9px; border-radius: 3px; background: var(--t0); }
.tbl .s1 i.sw { background: var(--t1); }
.tbl .s2 i.sw { background: var(--t2); }
.tbl .s3 i.sw { background: var(--t3); }
.flat .tbl { font: 500 13px/1.3 var(--mono); }
.flat .tbl th:first-child, .flat .tbl td:first-child { padding-left: 0; }
.flat .tbl th:last-child, .flat .tbl td:last-child { padding-right: 0; }
.flat .tbl td { white-space: nowrap; color: var(--ink-2); }
.flat .tbl .side { font-weight: 700; }
.flat .tbl .buy .side { color: var(--up); }
.flat .tbl .sell .side { color: var(--down); }
.flat .tbl .is-you td { color: var(--ink); font-weight: 700; }
.flat .tbl .pool td { color: var(--ink-3); }
.flat .tbl .seat { font-size: 11.5px; letter-spacing: .04em; color: var(--ink); }
.flat .tbl .none { padding: 26px 0; text-align: center; font-family: var(--sans); color: var(--ink-3); }

.trade { display: grid; gap: 0; }
.trade .lab { margin-top: 16px; }
.amt { position: relative; }
.amt .field { height: 54px; padding-right: 66px; font-size: 22px; }
.amt span { position: absolute; right: 14px; top: 50%; translate: 0 -50%; font: 600 12px/1 var(--mono); letter-spacing: .08em; color: var(--ink-3); pointer-events: none; }
.receipt { margin-top: 16px; border-top: 1px solid var(--ink); }
.receipt > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.receipt dt { color: var(--ink-2); }
.receipt dd { font: 600 13.5px/1.3 var(--mono); text-align: right; }
.receipt .sub { padding: 6px 0 6px 16px; font-size: 13px; border-bottom-style: dashed; }
.receipt .sub dt::before { content: "↳ "; color: var(--ink-3); }
.receipt .sub dd { font-weight: 500; }
.receipt .ten dd { color: var(--down); font-weight: 700; }
.trade .key.full { margin-top: 16px; }
.trade .fine { transition: color .3s var(--ease); }
.trade .fine.done { color: var(--ink); font-weight: 500; font-size: 13.5px; }
.owed { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.owed .lab { margin-bottom: 6px; }
.owed b { font: 800 24px/1 var(--display); }
.owed span { font: 500 11px/1 var(--mono); color: var(--ink-3); }
.ten-say { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.ten-h { margin-top: 16px; padding-bottom: 7px; border-bottom: 1px solid var(--ink); font: 700 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.ten-h span { display: block; margin-top: 3px; font-weight: 500; font-size: 10.5px; letter-spacing: .04em; text-transform: none; color: var(--ink-3); }
.seats li { display: grid; grid-template-columns: 22px minmax(0, auto) minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line); font: 500 12.5px/1.3 var(--mono); }
.seats li:last-child { border-bottom: 0; }
.seats i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: var(--paper); font-style: normal; font-weight: 700; font-size: 11px; }
.seats b { font-weight: 700; white-space: nowrap; }
.seats span { color: var(--ink-3); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
.seats em { font-style: normal; font-weight: 700; color: var(--up); }
.seats .is-you i { background: var(--hot); color: var(--ink); }
.seats .is-you b { color: var(--down); }
.seats .is-empty i, .seats .is-lost i, .seats .is-wait i { background: transparent; border: 1px dashed var(--line-2); color: var(--ink-3); }
.seats .is-empty b, .seats .is-lost b, .seats .is-wait b { font-weight: 500; color: var(--ink-3); }
.seats .is-lost b { text-decoration: line-through; }
.seats .is-wait i { animation: pulse 1s var(--ease) infinite alternate; }

/* ---------- how it works: the rules ---------- */

.strip { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 22px; padding-block: 12px; border-block: 1px solid var(--line-2); font: 500 12px/1.4 var(--mono); letter-spacing: .05em; color: var(--ink-2); }
.law-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: clamp(28px, 6vw, 96px); align-items: start; padding-top: 10px; }
.toc { position: sticky; top: calc(var(--bar-h) + 22px); max-height: calc(100vh - var(--bar-h) - 44px); overflow: auto; scrollbar-width: none; padding: 16px 0 6px; border-top: 2px solid var(--ink); }
.toc::-webkit-scrollbar { display: none; }
.toc p { font: 500 10.5px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.toc ol { margin-top: 10px; }
.toc a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px; padding: 7px 0; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); border-bottom: 1px solid var(--line); transition: color var(--tap) var(--ease); }
.toc a b { font: 500 11px/1.65 var(--mono); color: var(--ink-3); }
.toc a:hover, .toc a.at { color: var(--ink); }
.toc a.at b { color: var(--hot); }
.toc a.at { font-weight: 600; }
.art { padding: clamp(28px, 5vh, 46px) 0; border-top: 1px solid var(--line-2); }
.art:first-child { padding-top: 0; border-top: 0; }
.art .n { display: block; font: 600 11.5px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--hot); }
.art h2 { margin-top: 12px; font-size: clamp(21px, 2.3vw, 32px); }
.art p, .art li { font-size: 16px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.art p { margin-top: 16px; max-width: 68ch; }
.art p b, .art li b { color: var(--ink); }
.art ul { margin-top: 16px; max-width: 68ch; }
.art ul li { position: relative; padding: 9px 0 9px 22px; border-bottom: 1px solid var(--line); }
.art ul li::before { content: ""; position: absolute; left: 2px; top: 1.1em; width: 8px; height: 8px; border-radius: 2px; background: var(--ink); }
.art code { padding: .08em .38em; background: rgba(18, 19, 22, .07); border-radius: 4px; overflow-wrap: anywhere; }
.setat { color: var(--down); font-weight: 600; white-space: nowrap; }
.callout { margin-top: 20px; padding: 16px 18px; background: var(--ink); color: #F4F1E8; border-radius: 12px; max-width: 68ch; }
.art .callout p { margin: 0; color: #F4F1E8; font-size: 15px; }
.art .callout b { color: #FFFFFF; }
.qa { margin-top: 18px; border-top: 2px solid var(--ink); max-width: 760px; }
.qa details { border-bottom: 1px solid var(--line-2); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 16px; line-height: 1.4; transition: color var(--tap) var(--ease); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat; transition: rotate .25s var(--ease); }
.qa details[open] summary::after { rotate: 45deg; }
.qa summary:hover { color: var(--hot); }
.qa details p { margin: 0 0 18px; }

/* ---------- the entrance ---------- */

.js .rise { opacity: 0; translate: 0 14px; transition: opacity .52s var(--ease) var(--d, 0ms), translate .52s var(--ease) var(--d, 0ms); }
.js .rise.in { opacity: 1; translate: 0 0; }

/* ---------- the key to X, kept in the corner ---------- */

/*  it stays at the bottom right of the window wherever the page is scrolled  */
.x-fab { position: fixed; z-index: 45; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--ink); border-radius: 16px; background: var(--ink); color: #FFFFFF; box-shadow: 0 3px 0 rgba(18, 19, 22, .28), 0 16px 28px -12px rgba(18, 19, 22, .6); transition: transform var(--tap) var(--ease), background-color var(--tap) var(--ease), box-shadow var(--tap) var(--ease); }
.x-fab:hover { transform: translateY(-2px); background: #000000; box-shadow: 0 5px 0 var(--hot), 0 18px 30px -12px rgba(18, 19, 22, .6); }
.x-fab:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(18, 19, 22, .28); }
.x-fab svg { width: 20px; height: 20px; fill: currentColor; }
/*  and at the bottom left, the launch: not yet, or the contract's address once it is given  */
.launch { position: fixed; z-index: 45; left: max(18px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; height: 52px; max-width: calc(100vw - 112px); padding: 0 14px; border: 1px solid var(--ink); border-radius: 16px; background: var(--ink); color: #FFFFFF; box-shadow: 0 3px 0 rgba(18, 19, 22, .28), 0 16px 28px -12px rgba(18, 19, 22, .6); animation: arrive .5s var(--ease) .25s both; }
.launch-dot { width: 9px; height: 9px; flex: none; margin: 0 2px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 4px rgba(255, 74, 28, .26); animation: pulse 1s var(--ease) infinite alternate; }
.launch.is-live .launch-dot { background: #2BD576; box-shadow: 0 0 0 4px rgba(43, 213, 118, .26); }
.launch-t { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.launch-t small { font: 500 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 241, 232, .62); white-space: nowrap; }
.launch-t b { font: 700 13px/1 var(--mono); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.launch-key { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border: 1px solid rgba(244, 241, 232, .3); border-radius: 8px; background: transparent; color: #FFFFFF; cursor: pointer; transition: border-color var(--tap) var(--ease), color var(--tap) var(--ease), transform var(--tap) var(--ease); }
.launch-key:hover { border-color: var(--hot); color: var(--hot); }
.launch-key:active { transform: translateY(1px); }
.launch-key svg { width: 14px; height: 14px; }
.launch-key + .launch-key { margin-left: -6px; }
/*  the last lines of the page stay clear of it  */
.foot { padding-bottom: 92px; }
@media print { .x-fab, .launch { display: none; } }

/* ---------- while the page reads the chain ---------- */

/*  one thin line along the top of the window, for as long as something is being read  */
.loadbar { position: fixed; z-index: 95; left: 0; right: 0; top: 0; height: 3px; overflow: hidden; pointer-events: none; opacity: 0; background: rgba(255, 74, 28, .22); transition: opacity .25s var(--ease); }
.loadbar.on { opacity: 1; }
.loadbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 36%; background: var(--hot); border-radius: 0 3px 3px 0; box-shadow: 0 0 10px rgba(255, 74, 28, .7); animation: load-run 1.1s cubic-bezier(.5, .1, .3, 1) infinite; }
@keyframes load-run { from { translate: -100% 0; } to { translate: 280% 0; } }
.loadbar.done { opacity: 0; transition: opacity .3s var(--ease) .16s; }
.loadbar.done i { width: 100%; translate: 0 0; animation: none; border-radius: 0; }

/*  the four pads of the mark, lit one after the other. Still, they are the mark itself.  */
.pads { width: 26px; height: 26px; flex: none; }
.pads rect { fill: var(--ink); animation: pad-turn 1.2s linear infinite; }
.pads rect:nth-child(2) { fill: var(--hot); animation-delay: -.9s; }
.pads rect:nth-child(3) { animation-delay: -.6s; }
.pads rect:nth-child(4) { animation-delay: -.3s; }
@keyframes pad-turn { 0%, 22% { fill: var(--hot); } 34%, 100% { fill: var(--ink); } }

/*  the outline of what is coming: blocks the size of the things they stand for  */
.sk-b { display: block; height: 12px; border-radius: 6px; background: rgba(18, 19, 22, .085) linear-gradient(100deg, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, 0) 64%) 0 0 / 240% 100% no-repeat; animation: sk-run 1.3s linear infinite; }
@keyframes sk-run { from { background-position: 140% 0; } to { background-position: -100% 0; } }
.tk.sk { pointer-events: none; }
.tk.sk::before { background: var(--line-2); }
.sk-pic { width: 46px; height: 46px; flex: none; border-radius: 11px; }
.sk-pic.big { width: 76px; height: 76px; border-radius: 17px; }
.sk-n1 { width: 62%; height: 17px; }
.sk-n2 { width: 44%; height: 11px; margin-top: 2px; }
.sk-c1 { width: 70px; height: 9px; }
.sk-c2 { width: 132px; height: 23px; }
.sk-s1 { width: 60%; height: 9px; }
.sk-s2 { width: 78%; height: 13px; }
.feed-note.busy { display: flex; align-items: center; gap: 10px; }
.feed-note.busy .pads { width: 18px; height: 18px; }
.x-skel .t-id { display: grid; gap: 10px; }
.sk-h1 { width: min(320px, 70%); height: clamp(26px, 3vw, 40px); border-radius: 9px; }
.sk-sub { width: min(240px, 56%); height: 16px; }
.sk-addr { width: min(440px, 100%); height: 32px; border-radius: 7px; }
.x-skel .t-cap { display: grid; gap: 8px; justify-items: end; }
.sk-lab { width: 86px; height: 10px; }
.sk-capbig { width: clamp(150px, 18vw, 260px); height: clamp(30px, 4vw, 54px); border-radius: 10px; }
.sk-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sk-h2 { width: 150px; height: 18px; }
.sk-keys { width: min(300px, 46%); height: 34px; border-radius: 9px; }
.sk-chart { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: clamp(260px, 40vh, 400px); margin-top: 14px; border-radius: 12px; background: repeating-linear-gradient(to bottom, transparent 0 calc(25% - 1px), var(--line) calc(25% - 1px) 25%); font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.sk-chart .pads, .cd-say .pads { width: 34px; height: 34px; }
.sk-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.sk-stats .sk-b { height: 30px; }
.sk-list, .sk-side { display: grid; gap: 14px; }
.sk-list .sk-b:not(.sk-h2) { height: 18px; }
.sk-w70 { width: 70%; }
.sk-btn { height: 44px; margin-top: 6px; border-radius: 10px; }
.cd-say .pads { display: none; }
.cd-say.busy .pads { display: block; }
.cd-say.busy { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
/*  what was read arrives once, a few pixels up  */
.arrive { animation: arrive .4s var(--ease) both; }
@keyframes arrive { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
#chain-block { white-space: nowrap; }

/* ---------- the box at the end of creating ---------- */

.pop { width: min(460px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); margin: auto; padding: 30px 28px 26px; border: 1px solid var(--ink); border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: 0 30px 70px rgba(18, 19, 22, .4); overflow: auto; }
.pop::backdrop { background: rgba(18, 19, 22, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pop[open] { animation: pop-in .28s var(--ease); }
@keyframes pop-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
.pop-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 9px; background: transparent; color: var(--ink-2); cursor: pointer; transition: border-color var(--tap) var(--ease), color var(--tap) var(--ease); }
.pop-x:hover { border-color: var(--ink); color: var(--ink); }
.pop-x svg { width: 14px; height: 14px; }
.pop-pic { display: block; margin-bottom: 18px; }
.pop-tag { display: inline-block; margin-bottom: 10px; padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 5px; font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.pop-tag.hot { border-color: var(--hot); background: var(--hot); color: var(--ink); }
.pop h2 { font: 800 clamp(21px, 5vw, 26px)/1.1 var(--display); letter-spacing: -.01em; }
.pop p { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.pop p b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.pop p b.fig { white-space: nowrap; font-family: var(--mono); font-size: .92em; }
.pop p.fine { font-size: 12.5px; color: var(--ink-3); }
.pop p.pop-tag { margin-top: 0; font-size: 10.5px; line-height: 1; }
.pop p.pop-tag.hot { color: var(--ink); }
.pop-keys { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pop-keys .key { flex: 1 1 auto; justify-content: center; }
.pv-note { margin-top: 8px; }

/* ---------- narrower screens ---------- */

/*  before the search box gets too narrow to type in, it takes a row of its own  */
@media (max-width: 1180px) {
  .bar { flex-wrap: wrap; }
  .search { order: 5; flex-basis: 100%; max-width: none; margin-left: 0; }
  .keys { margin-left: auto; }
  .feed-bar { position: static; }
}
@media (max-width: 1060px) {
  /*  one column: the box to buy and sell comes straight after the chart, the long lists last  */
  .t-grid { grid-template-columns: minmax(0, 1fr); }
  .t-main, .t-side { display: contents; }
  .chart-card { order: 1; }
  .trade { order: 2; }
  .mine { order: 3; }
  .ten { order: 4; }
  .t-main > section:not(.chart-card) { order: 5; }
  #real .t-side > section { order: 3; }
  .info { order: 6; }
  .law-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; }
  .toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
@media (max-width: 940px) {
  /*  on a narrow screen the tokens come before the table of fees  */
  main#main:has(> .top) { display: flex; flex-direction: column; }
  .top { display: contents; }
  .top-copy { order: 1; padding: 22px var(--pad-x) 20px; }
  .feed { order: 2; }
  .fees { order: 3; margin: 36px var(--pad-x) 0; }
  .how { order: 4; }
  .create-grid { grid-template-columns: minmax(0, 1fr); }
  .links { position: fixed; z-index: 49; left: 0; right: 0; top: 0; flex-direction: column; gap: 0; padding: 70px var(--pad-x) 18px; background: var(--paper); border-bottom: 1px solid var(--ink); font-size: 13px; translate: 0 -8px; opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), translate .22s var(--ease), visibility 0s linear .22s; }
  .links a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .links a::after { display: none; }
  body.menu-open .links { translate: 0 0; opacity: 1; visibility: visible; transition-delay: 0s; }
  body.menu-open .brand, body.menu-open .keys { position: relative; z-index: 51; }
  .key.menu { display: inline-flex; }
  .feed-bar { top: 0; position: static; }
  .how-steps { grid-template-columns: minmax(0, 1fr); }
  .risks ul { grid-template-columns: minmax(0, 1fr); }
  .t-stats, .t-stats.x-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 4px; }
  .t-stats > div:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 720px) {
  .t-head { grid-template-columns: auto minmax(0, 1fr); }
  .t-cap { grid-column: 1 / -1; text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
  .x-skel .t-cap { display: grid; justify-items: start; }
  .t-cap .lab { width: 100%; margin: 0; }
  .t-step { margin-top: 0; }
  .pic.big { width: 60px; height: 60px; border-radius: 14px; }
  .f-links { grid-template-columns: minmax(0, 1fr); }
  .notice { justify-content: flex-start; font-size: 11px; }
  .notice i { display: none; }
}
@media (max-width: 560px) {
  :root { --bar-h: 58px; }
  .bar { gap: 8px; }
  .bar .key.solid { display: none; }
  .brand { --bh: 34px; }
  .keys { gap: 6px; }
  .bar .key { height: 36px; }
  .bar .key.icon { width: 36px; }
  .wallet-btn { padding: 0 9px; font-size: 11px; letter-spacing: .05em; }
  .x-fab { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); width: 46px; height: 46px; border-radius: 14px; }
  .x-fab svg { width: 18px; height: 18px; }
  .launch { left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); height: 46px; max-width: calc(100vw - 88px); gap: 10px; padding: 0 12px; border-radius: 14px; }
  .launch-t b { font-size: 12.5px; }
  .chain-key { height: 36px; padding: 0 7px; gap: 4px; }
  .chain-key .ch-ic { width: 18px; height: 18px; }
  .chain-key > span { display: none; }
  .chain-menu { right: auto; left: 0; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .fees-rows li { grid-template-columns: 78px minmax(0, 1fr) 40px 40px; gap: 8px; }
  .f-two { grid-template-columns: minmax(0, 1fr); }
  .size-row { grid-template-columns: minmax(0, 1fr); }
  .size-row .chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .size-row .chip { min-width: 0; padding: 0 4px; }
  .send .key { flex: 1 1 100%; }
  .toc ol { grid-template-columns: minmax(0, 1fr); }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .t-stats, .t-stats.x-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-stats > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .t-stats > div:nth-child(4) { padding-left: 12px; border-left: 1px solid var(--line); }
  .tbl th, .tbl td { padding: 9px 10px; }
  .flat .tbl { font-size: 11.5px; }
  .flat .tbl th, .flat .tbl td { padding-inline: 5px; }
  .flat .tbl th { font-size: 9.5px; letter-spacing: .06em; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad-x) * -1); padding-inline: var(--pad-x); }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs.under { margin-inline: 0; padding-inline: 0; }
  .tabs.tight { margin-inline: 0; padding-inline: 3px; overflow: visible; }
  .sk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs.tight .tab { padding: 0 8px; }
  .cd-keys { width: 100%; justify-content: space-between; }
  .feed-n { display: none; }
  .seats li { grid-template-columns: 22px minmax(0, auto) minmax(0, 1fr) auto; gap: 7px; font-size: 12px; }
}

/* ---------- less motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rise { opacity: 1; translate: none; }
}
