:root {
  /* Hyperliquid tokens: panels sit 3px apart on the darker frame */
  --frame: #1B2429; --bg: #1B2429; --s1: #0F1A1F; --s2: #172429; --s3: #273035; --line: #273035; --line2: #273035;
  --text: #F6FEFD; --muted: #949E9C; --dim: #6B7775; --hi: #97FCE4;
  --accent: #50D2C1; --accent-2: #66DACB; --accent-ink: #04060C; --accent-soft: rgba(80, 210, 193, .12);
  --up: #1FA67D; --up-t: #1FA67D; --down: #ED7088; --gold: #E8B44A;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif; --mono: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --r: 5px;
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
img { display: block; }
.mono { font-family: var(--mono); }
::selection { background: var(--accent); color: var(--accent-ink); }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 12px 24px; background: rgba(0, 0, 0, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; margin-right: 18px; }
.brand img { height: 26px; width: auto; mix-blend-mode: screen; }
.top nav { display: flex; gap: 2px; flex: 1; }
.top nav a { padding: 8px 12px; color: var(--muted); font-weight: 500; border-radius: 8px; position: relative; }
.top nav a:hover { color: var(--text); }
.top nav a.on { color: var(--text); }
.top nav a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 2px; background: #fff; }
.search-btn { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--s1); color: var(--muted); cursor: pointer; min-width: 170px; }
.search-btn kbd { margin-left: auto; font: 500 10px var(--mono); border: 1px solid var(--line2); border-radius: 5px; padding: 2px 5px; color: var(--dim); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: 10px; background: var(--s1); color: var(--muted); }
.icon-btn:hover, .search-btn:hover { color: var(--text); border-color: #3a3a40; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line2); background: var(--s2); color: var(--text); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .08s; }
.btn:hover { background: var(--s3); border-color: #3a3a40; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.accent { background: #fff; border-color: #fff; color: #000; }
.btn.accent:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.sell { background: var(--down); border-color: var(--down); color: #fff; }
.btn.buy { background: var(--up); border-color: var(--up); color: #04150d; }

main { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 24px 24px 80px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.foot div { display: flex; gap: 12px; align-items: baseline; }
.foot b { color: var(--text); font-size: 15px; letter-spacing: -.03em; }
.foot a { color: var(--muted); margin-left: 8px; }
.foot a:hover { color: var(--text); }

/* hero */
.hero { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(60% 120% at 0% 50%, #262626 0%, transparent 60%), radial-gradient(60% 120% at 100% 50%, #2e2e2e 0%, transparent 60%), #050505; min-height: 330px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-l { padding: 44px 48px; position: relative; z-index: 2; }
.hero h1 { font-size: 58px; line-height: .98; letter-spacing: -.045em; font-weight: 800; max-width: 560px; }
.hero h1 { font-size: 64px; font-weight: 700; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: #fff; text-shadow: -1px 1px 0 #bdbdbd, -2px 2px 0 #8c8c8c, -3px 3px 0 #5c5c5c, -4px 5px 14px rgba(0,0,0,.7); }
.hero p { color: var(--muted); font-size: 16px; max-width: 470px; margin: 18px 0 26px; }
.hero .cta { display: flex; gap: 10px; }
.hero-r { position: relative; }
.hero-r svg.curve { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.hero-r .mark3d { position: absolute; right: 16%; top: 50%; width: 50%; max-width: 400px; transform: translateY(-60%); mix-blend-mode: screen; }
.feature { position: absolute; right: 48px; bottom: 32px; width: 360px; background: rgba(18, 18, 20, .82); backdrop-filter: blur(10px); border: 1px solid var(--line2); border-radius: 16px; padding: 16px 18px; z-index: 2; transition: border-color .15s; }
.feature:hover { border-color: #44444a; }
.feature .fh { display: flex; gap: 12px; align-items: center; }
.feature .fh > img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--s3); }
.feature .fh b { font-size: 16px; letter-spacing: -.02em; }
.feature .fh small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 5px; margin-top: 2px; white-space: nowrap; }
.feature .fb { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line2); margin-top: 14px; padding-top: 12px; }
.feature .fb b { font-size: 22px; letter-spacing: -.03em; }
.feature .fb span { color: var(--muted); font-size: 12px; }

/* stat strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); margin-top: 16px; }
.strip > div { padding: 16px 20px; border-right: 1px solid var(--line); }
.strip > div:last-child { border-right: 0; }
.strip small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.strip b { font: 600 20px var(--mono); letter-spacing: -.02em; }
.strip b.accent { color: var(--accent); }

/* list controls */
.controls { display: flex; align-items: center; gap: 12px; margin: 28px 0 14px; }
.field-search { flex: 0 0 380px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--s1); color: var(--dim); }
.field-search input { flex: 1; border: 0; background: none; outline: none; color: var(--text); }
.field-search:focus-within { border-color: #4a4a50; }
.sort { margin-left: auto; display: flex; align-items: center; gap: 4px; color: var(--muted); }
.sort > span { margin-right: 6px; }
.seg button { border: 0; background: none; color: var(--muted); padding: 8px 12px; border-radius: 9px; cursor: pointer; font-weight: 500; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--s3); color: var(--text); }
.chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.chips > span { color: var(--muted); margin-right: 4px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 9px; background: none; color: var(--muted); cursor: pointer; font-weight: 500; }
.chip img { width: 16px; height: 16px; border-radius: 50%; }
.chip:hover { color: var(--text); }
.chip.on { background: #fff; border-color: #fff; color: #000; }
.chips .sep { width: 1px; height: 22px; background: var(--line2); margin: 0 6px; }
h2.section { font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin: 22px 0 14px; display: flex; align-items: baseline; gap: 10px; }
h2.section small { color: var(--dim); font-weight: 500; font-size: 13px; }

/* coin cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; overflow: hidden; display: block; background: var(--s1); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 16px; transition: border-color .15s, background .15s; isolation: isolate; }
.card:hover { border-color: #3a3a40; background: #141416; }
.card .qwm { position: absolute; right: -34px; bottom: -34px; width: 190px; height: 190px; border-radius: 50%; z-index: -1; opacity: .9; }
.card .qwm::before { content: ''; position: absolute; inset: -16px; border-radius: 50%; border: 1px solid var(--line2); }
.card .qwm::after { content: ''; position: absolute; inset: -34px; border-radius: 50%; border: 1px solid var(--line); }
.card .qwm img { width: 100%; height: 100%; border-radius: 50%; filter: saturate(.7) brightness(.55); opacity: .75; mask-image: radial-gradient(circle at 30% 30%, #000 40%, rgba(0,0,0,.35) 75%); }
.card .ct { display: flex; justify-content: space-between; align-items: flex-start; }
.coin-img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--s3); border: 1px solid var(--line2); }
.card .acts { display: flex; gap: 6px; }
.mini-btn { height: 28px; min-width: 28px; padding: 0 9px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line2); border-radius: 999px; background: rgba(18, 18, 20, .7); color: var(--muted); font: 600 11px var(--mono); cursor: pointer; }
.mini-btn:hover { color: var(--text); }
.card .tk { margin-top: 16px; color: var(--muted); font: 600 13px var(--mono); }
.card .nm { color: var(--muted); font-size: 15px; margin-top: 1px; max-width: 62%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .mc { font: 700 34px/1.1 var(--sans); letter-spacing: -.04em; margin-top: 8px; }
.pairline { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; margin-top: 8px; }
.pairline img { width: 18px; height: 18px; border-radius: 50%; }
.pairline b { color: var(--text); font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; font: 600 10px var(--mono); letter-spacing: .04em; text-transform: uppercase; background: var(--s3); color: var(--muted); border: 1px solid var(--line2); }
.badge.stock { color: var(--gold); border-color: rgba(232, 180, 74, .35); background: rgba(232, 180, 74, .08); }
.badge.usd { color: #7DB8FF; border-color: rgba(125, 184, 255, .3); background: rgba(125, 184, 255, .07); }
.badge.owed { color: #fff; border-color: #5a5a5e; background: rgba(255, 255, 255, .06); }
.badge.paid { color: var(--up); border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .08); }
.badge.grad { color: #C9B8FF; border-color: rgba(201, 184, 255, .35); background: rgba(201, 184, 255, .07); }
.card .owe { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; max-width: 64%; }
.card .owe img { width: 20px; height: 20px; border-radius: 50%; }
.card .owe span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .owe b { font-family: var(--mono); font-weight: 600; }
.card .ft { display: flex; align-items: center; gap: 10px; margin-top: 10px; font: 500 12px var(--mono); color: var(--muted); max-width: 64%; }
.card .spark { margin-left: auto; width: 84px; height: 26px; }
.up { color: var(--up); } .down { color: var(--down); }
.prog { height: 4px; border-radius: 4px; background: var(--s3); overflow: hidden; margin-top: 10px; max-width: 64%; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, #555, #fff); border-radius: 4px; }
.empty { border: 1px dashed var(--line2); border-radius: 16px; padding: 56px 24px; text-align: center; color: var(--muted); background: var(--s1); }
.empty b { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; letter-spacing: -.02em; }
.empty .btn { margin-top: 18px; }
.skel { background: linear-gradient(90deg, var(--s1), var(--s2), var(--s1)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 16px; height: 230px; border: 1px solid var(--line); }
@keyframes sk { to { background-position: -200% 0; } }

/* token page */
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); margin: 4px 0 16px; }
.back:hover { color: var(--text); }
.panel { background: var(--s1); border: 1px solid var(--line); border-radius: 16px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-h h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.panel-h p { color: var(--muted); font-size: 12px; }
.panel-b { padding: 18px; }
.tkhead { display: flex; align-items: center; gap: 18px; padding: 22px 24px; }
.tkhead .coin-img { width: 64px; height: 64px; }
.tkhead h1 { font-size: 28px; letter-spacing: -.035em; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.tkhead .sub { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--muted); }
.tkhead .sub img { width: 18px; height: 18px; border-radius: 50%; }
.tkhead .sub b { color: var(--text); font-weight: 600; }
.tkhead .links { margin-left: auto; display: flex; gap: 8px; }
.ca { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border: 1px solid var(--line2); border-radius: 7px; font: 500 12px var(--mono); color: var(--muted); cursor: pointer; background: var(--s2); }
.ca:hover { color: var(--text); }
.kv { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.kv > div { padding: 16px 24px; border-right: 1px solid var(--line); }
.kv > div:last-child { border-right: 0; }
.kv small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.kv b { font: 600 17px var(--mono); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; margin-top: 16px; align-items: start; }
.chart-wrap { height: 470px; position: relative; }
.chart-wrap .none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); text-align: center; padding: 20px; }
.tfbar { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tfbar .seg button { padding: 5px 10px; font: 500 12px var(--mono); }
.trades { width: 100%; border-collapse: collapse; font: 500 12px var(--mono); }
.trades th { text-align: left; color: var(--dim); font-weight: 500; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.trades td { padding: 10px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.trades tr:last-child td { border-bottom: 0; }
.trades .b { color: var(--up); } .trades .s { color: var(--down); }
.side { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; }
.side button { height: 38px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 700; cursor: pointer; }
.side button.on.b { background: var(--up); color: #04150d; }
.side button.on.s { background: var(--down); color: #fff; }
.paywith { display: flex; gap: 6px; margin-bottom: 10px; }
.paywith button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 8px; background: none; color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer; }
.paywith button img { width: 15px; height: 15px; border-radius: 50%; }
.paywith button.on { color: var(--text); border-color: #6a6a6e; background: var(--accent-soft); }
.amount { display: flex; align-items: center; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg); padding: 0 14px; height: 56px; }
.amount:focus-within { border-color: #4a4a50; }
.amount input { flex: 1; border: 0; background: none; outline: none; font: 600 20px var(--mono); min-width: 0; }
.amount span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 600; }
.amount span img { width: 20px; height: 20px; border-radius: 50%; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.quick button { height: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--s2); color: var(--muted); font: 500 12px var(--mono); cursor: pointer; }
.quick button:hover { color: var(--text); }
.out { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin: 14px 0; min-height: 20px; }
.out b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.rowline { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.rowline:last-child { border-bottom: 0; }
.rowline b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.dev { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.dev img { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); }
.dev b { font-weight: 600; }
.dev p { color: var(--muted); font-size: 12px; }
.bigowed { font: 700 30px var(--mono); letter-spacing: -.03em; color: var(--accent); margin: 10px 0 2px; }
.hint { color: var(--dim); font-size: 12px; }
.stack > * + * { margin-top: 16px; }

/* forms (launch) */
.page-h { padding: 20px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.page-h h1 { font-size: 30px; letter-spacing: -.035em; font-weight: 700; }
.page-h p { color: var(--muted); max-width: 680px; margin-top: 6px; font-size: 15px; }
.narrow { max-width: 1120px; margin: 0 auto; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.fsec { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.fsec:last-child { border-bottom: 0; }
.fsec > label, .lbl { display: block; font-weight: 600; margin-bottom: 10px; }
.fsec .desc { color: var(--muted); font-size: 13px; margin: -4px 0 12px; }
.input, .textarea { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 11px; background: var(--bg); outline: none; }
.textarea { height: 86px; padding: 12px 14px; resize: vertical; }
.input:focus, .textarea:focus { border-color: #4a4a50; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opt { display: grid; gap: 8px; }
.opt.c3 { grid-template-columns: repeat(3, 1fr); }
.opt.c5 { grid-template-columns: repeat(5, 1fr); }
.opt button { text-align: left; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg); cursor: pointer; display: flex; flex-direction: column; gap: 3px; position: relative; }
.opt button:hover { border-color: #44444a; }
.opt button.on { border-color: #fff; background: var(--accent-soft); }
.opt button:disabled { opacity: .4; cursor: not-allowed; }
.opt button b { font-weight: 600; display: flex; align-items: center; gap: 7px; }
.opt button b img { width: 20px; height: 20px; border-radius: 50%; }
.opt button span { color: var(--muted); font-size: 12px; }
.opt button .soon { position: absolute; top: 10px; right: 10px; }
.ghcard { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding: 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg); }
.ghcard img { width: 46px; height: 46px; border-radius: 50%; }
.ghcard b { font-weight: 600; }
.ghcard p { color: var(--muted); font-size: 12px; margin-top: 2px; }
.ghcard .facts { display: flex; gap: 14px; margin-top: 6px; font: 500 12px var(--mono); color: var(--muted); }
.err { color: var(--down); font-size: 12px; margin-top: 6px; display: block; }
.drop { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px dashed var(--line2); border-radius: 12px; cursor: pointer; }
.drop:hover { border-color: #4a4a50; }
.drop img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: var(--s3); }
.summary .rowline { padding: 11px 0; }
.summary .notes { padding: 14px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 12px; color: var(--muted); }
.summary .notes div { display: flex; gap: 9px; }
.summary .notes svg { flex: none; margin-top: 2px; color: var(--dim); }
.steps { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 6px; font-size: 13px; }
.steps li { color: var(--muted); }
.steps li.on { color: var(--text); }
.steps li.done { color: var(--up); }
.sticky { position: sticky; top: 84px; }

/* claim + how */
.claim-hero { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
.how3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how3 .panel { padding: 22px; }
.how3 .n { font: 600 12px var(--mono); color: var(--muted); }
.how3 b { display: block; font-size: 18px; letter-spacing: -.02em; margin: 10px 0 6px; }
.how3 p { color: var(--muted); }
.faq { max-width: 780px; margin-top: 32px; }
.faq h3 { font-size: 16px; margin: 24px 0 6px; letter-spacing: -.01em; }
.faq p { color: var(--muted); }

/* palette + toast */
.palette { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); z-index: 60; display: flex; justify-content: center; padding-top: 12vh; }
.palette[hidden] { display: none; }
.pal-box { width: 620px; max-height: 60vh; overflow: auto; background: var(--s1); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.pal-box input { width: 100%; height: 56px; padding: 0 18px; border: 0; border-bottom: 1px solid var(--line); background: none; outline: none; font-size: 16px; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 10px 18px; cursor: pointer; }
.pal-item:hover, .pal-item.on { background: var(--s2); }
.pal-item img { width: 32px; height: 32px; border-radius: 50%; }
.pal-item span { color: var(--muted); font-size: 12px; }
.pal-item .r { margin-left: auto; font: 600 13px var(--mono); }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 16px); background: var(--s2); border: 1px solid var(--line2); border-radius: 12px; padding: 12px 18px; opacity: 0; pointer-events: none; transition: .2s; max-width: 520px; z-index: 80; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { border-color: rgba(247, 86, 106, .6); color: #ffc1c9; }

/* docs */
.docs { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 48px; max-width: 1060px; margin: 0 auto; padding-top: 16px; }
.docs nav { position: sticky; top: 84px; align-self: start; display: grid; gap: 2px; }
.docs nav small { color: var(--dim); font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px 10px; }
.docs nav a { padding: 7px 10px; border-radius: 8px; color: var(--muted); font-weight: 500; }
.docs nav a:hover { color: var(--text); background: var(--s1); }
.docs nav a.on { color: var(--text); background: var(--s2); }
.doc h1 { font-size: 34px; letter-spacing: -.04em; font-weight: 700; }
.doc .lead { color: var(--muted); font-size: 16px; margin: 8px 0 8px; }
.doc section { padding: 34px 0 6px; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.doc section:last-child { border-bottom: 0; }
.doc h2 { font-size: 22px; letter-spacing: -.03em; font-weight: 700; margin-bottom: 12px; }
.doc h3 { font-size: 15px; font-weight: 600; margin: 20px 0 6px; }
.doc p, .doc li { color: #c9c8c3; line-height: 1.65; }
.doc p + p { margin-top: 10px; }
.doc ol, .doc ul { padding-left: 20px; display: grid; gap: 6px; margin: 10px 0; }
.doc b { color: var(--text); font-weight: 600; }
.doc code { font: 500 12.5px var(--mono); background: var(--s2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--text); word-break: break-all; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.doc th { text-align: left; color: var(--muted); font-weight: 500; background: var(--s1); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.doc td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: #c9c8c3; }
.doc tr:last-child td { border-bottom: 0; }
.doc .callout { display: flex; gap: 10px; background: var(--accent-soft); border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; margin: 14px 0; color: #dededb; font-size: 13px; }

/* recipients, token search, logins */
.plats { display: flex; flex-wrap: wrap; gap: 8px; }
.plats button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg); color: var(--muted); font-weight: 600; cursor: pointer; }
.plats button:hover { color: var(--text); }
.plats button.on { background: #fff; border-color: #fff; color: #000; }
.plat { width: 20px; height: 20px; border-radius: 50%; background: var(--s3); display: inline-grid; place-items: center; color: var(--text); flex: none; }
.plat svg { width: 12px; height: 12px; }
.plat.big { width: 46px; height: 46px; }
.plat.big svg { width: 22px; height: 22px; }
.dev .plat { width: 44px; height: 44px; }
.dev .plat svg { width: 20px; height: 20px; }
.tlist { margin-top: 8px; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; }
.tlist button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); background: var(--bg); cursor: pointer; text-align: left; }
.tlist button:last-child { border-bottom: 0; }
.tlist button:hover { background: var(--s2); }
.tlist img { width: 24px; height: 24px; border-radius: 50%; }
.tlist span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tlist .r { margin-left: auto; font-family: var(--mono); color: var(--text); }
.logins { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.logins .btn { justify-content: flex-start; }
.tg-login { display: flex; align-items: center; min-height: 40px; }
select.input { appearance: none; color: var(--text); background: var(--s1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 34px; cursor: pointer; }
select.input option { background: var(--s1); color: var(--text); }

.fsec > label.drop { display: flex; margin-bottom: 0; }

/* hero: the final stone, with every pair and every fee route in orbit */
.hero2 { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; min-height: 640px; margin: -24px -24px 0; padding: 0 48px; overflow: hidden;
  background: radial-gradient(50% 70% at 72% 50%, #1a1a1a 0%, transparent 70%), radial-gradient(40% 90% at 0% 50%, #141414 0%, transparent 70%), #000; border-bottom: 1px solid var(--line); }
.h2l { position: relative; z-index: 3; }
.hero2 h1 { font-size: 62px; line-height: 1; letter-spacing: -.04em; font-weight: 700; }
.hero2 h1 span { color: #fff; text-shadow: -1px 1px 0 #bdbdbd, -2px 2px 0 #8c8c8c, -3px 3px 0 #5c5c5c, -4px 5px 14px rgba(0,0,0,.7); }
.hero2 .final { margin-top: 22px; font: 500 13px var(--mono); letter-spacing: .32em; text-transform: uppercase; color: #fff; display: flex; align-items: center; gap: 12px; }
.hero2 .final::before { content: ''; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, #fff); }
.hero2 .sub { color: var(--muted); font-size: 17px; max-width: 480px; margin: 18px 0 30px; }
.hero2 .cta { display: flex; gap: 10px; }
.stage { position: relative; height: 640px; perspective: 1200px; }
.stage .glow { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), rgba(255,255,255,.04) 40%, transparent 70%); filter: blur(10px); animation: breathe 6s ease-in-out infinite; }
.stone { position: absolute; left: 50%; top: 50%; width: 400px; transform: translate(-50%, -50%); z-index: 2; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 0 40px rgba(255,255,255,.14)); }
.orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 1; transform-style: preserve-3d; transform: rotateX(72deg) rotateY(-8deg); }
.ring { position: absolute; left: 0; top: 0; transform-style: preserve-3d; animation: spin 46s linear infinite; }
.ring.r2 { animation-duration: 70s; animation-direction: reverse; }
.ring i { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.ring b { display: block; width: 46px; height: 46px; margin: -23px 0 0 -23px; animation: counter 46s linear infinite; transform-style: preserve-3d; }
.ring.r2 b { animation-duration: 70s; animation-direction: reverse; width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.ring b img { width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 0 24px rgba(255,255,255,.12); }
.ring b .pi { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: rgba(20,20,22,.85); border: 1px solid rgba(255,255,255,.22); color: #fff; }
.ring b .pi svg { width: 17px; height: 17px; }
.orbit::before, .orbit::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); }
.orbit::before { width: 500px; height: 500px; left: -250px; top: -250px; }
.orbit::after { width: 660px; height: 660px; left: -330px; top: -330px; border-style: dashed; border-color: rgba(255,255,255,.06); }
@keyframes spin { to { transform: rotateZ(360deg); } }
@keyframes counter { from { transform: rotateZ(0deg) rotateX(-72deg); } to { transform: rotateZ(-360deg) rotateX(-72deg); } }
@keyframes float { 0%, 100% { transform: translate(-50%, -52%) rotate(-2deg); } 50% { transform: translate(-50%, -47%) rotate(2deg); } }
@keyframes breathe { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ring, .ring b, .stone, .stage .glow { animation: none; } }
.aio { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 16px; margin-top: 24px; background: var(--s1); }
.aio > div { padding: 22px 24px; border-right: 1px solid var(--line); }
.aio > div:last-child { border-right: 0; }
.aio span { font: 500 12px var(--mono); color: var(--dim); }
.aio b { display: block; font-size: 20px; letter-spacing: -.02em; margin: 8px 0 6px; }
.aio p { color: var(--muted); }

/* fee splits */
.splits { margin-top: 12px; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; }
.srow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg); }
.splits .srow:last-of-type { border-bottom: 0; }
.splits > .hint { padding: 8px 12px; border-top: 1px solid var(--line); }
.srow b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow img { width: 24px; height: 24px; border-radius: 50%; }
.srow .pct { margin-left: auto; display: flex; align-items: center; gap: 4px; color: var(--muted); }
.srow .pct input { width: 52px; height: 32px; text-align: right; border: 1px solid var(--line2); border-radius: 8px; background: var(--s1); padding: 0 8px; outline: none; font-family: var(--mono); }
.srow button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.srow button:hover { color: var(--text); background: var(--s2); }
.srow.view { border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; background: none; }
.srow.view .r { margin-left: auto; text-align: right; font: 600 13px var(--mono); }
.stack-av { display: inline-flex; }
.stack-av > * { margin-left: -6px; border: 2px solid var(--s1); border-radius: 50%; }
.stack-av > *:first-child { margin-left: 0; }

/* ---------- handmade pass: square corners, hairlines, no glow, text over chrome ---------- */

.top nav a.on::after { bottom: -13px; height: 1px; }
.btn { font-weight: 600; box-shadow: none; }
.btn.lg { height: 46px; padding: 0 20px; }
.tlink { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #555; font-weight: 500; }
.tlink:hover { text-decoration-color: var(--text); }
.quiet { color: var(--muted); }
#toast { box-shadow: none; }

.hero2 { background: #000; min-height: 600px; border-bottom: 1px solid var(--line); }
.hero2 h1 { font-size: 64px; letter-spacing: -.045em; font-weight: 600; }
.hero2 .sub { font-size: 17px; line-height: 1.55; color: #B5B2AC; max-width: 470px; margin: 22px 0 28px; }
.hero2 .cta { align-items: center; gap: 22px; }
.hero2 .final { margin-top: 44px; font: 400 12px var(--mono); letter-spacing: .06em; text-transform: none; color: var(--dim); }
.hero2 .final::before { content: none; }
.stage .glow { display: none; }
.stone { filter: none; }
.ring b img, .ring b .pi { box-shadow: none; }

.tally { font: 400 12px var(--mono); color: var(--muted); margin: 18px 0 0; min-height: 18px; }
.controls { display: flex; align-items: baseline; gap: 24px; margin: 40px 0 10px; }
.controls h2.section { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.controls h2.section small { font: 400 12px var(--mono); color: var(--dim); }
.search-line { flex: 0 1 340px; height: 34px; border: 0; border-bottom: 1px solid var(--line2); background: none; outline: none; color: var(--text); font: 400 13px var(--mono); padding: 0 2px; }
.search-line:focus { border-bottom-color: var(--text); }
.sort, .chips { font: 400 12px var(--mono); color: var(--dim); }
.sort { margin-left: auto; }
.sort button, .chips .chip { all: unset; cursor: pointer; color: var(--muted); padding: 2px 3px; font: inherit; }
.sort button:hover, .chips .chip:hover { color: var(--text); }
.sort button.on, .chips .chip.on { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.chips { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; padding: 10px 0 14px; border-top: 0; border-bottom: 1px solid var(--line); }
.chips .gap { width: 22px; }

.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th { text-align: left; font: 400 11px var(--mono); color: var(--dim); padding: 12px 10px 10px; border-bottom: 1px solid var(--line); }
.ledger td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.ledger tbody tr { cursor: pointer; }
.ledger tbody tr:hover td { background: #0B0B0B; }
.ledger .n { text-align: right; font-family: var(--mono); font-size: 13px; }
.ledger .lc { display: flex; align-items: center; gap: 10px; }
.ledger .lc img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--s3); }
.ledger .lc b { font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.ledger .lc span { font: 400 12px var(--mono); color: var(--muted); }
.ledger .qi { width: 16px; height: 16px; border-radius: 50%; vertical-align: -3px; margin-right: 6px; }
.ledger .who { display: flex; align-items: center; gap: 8px; }
.ledger .who img { width: 18px; height: 18px; border-radius: 50%; }
.ledger .who em { font: normal 400 11px var(--mono); color: var(--up); }
.ledger .pg { display: block; height: 2px; margin-top: 5px; background: linear-gradient(90deg, var(--text) var(--p), #222 var(--p)); }

/* calmer inner pages */
.page-h { border-bottom: 1px solid var(--line); }
.page-h h1 { font-weight: 600; letter-spacing: -.035em; }
.panel-h { border-bottom: 1px solid var(--line); }
.panel-h h3 { font-weight: 600; }
.kv > div, .strip > div { border-color: var(--line); }
.opt button.on, .plats button.on { background: #fff; border-color: #fff; color: #000; }
.opt button.on span { color: #444; }
.badge { text-transform: lowercase; letter-spacing: 0; font-size: 11px; }
.foot { font-size: 12px; }
.skel { animation: none; background: none; border: 0; height: 40px; }
.fsec > label.field-search { display: flex; margin-bottom: 0; }

.lang-btn { height: 40px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 3px; background: none; color: var(--muted); font: 500 13px var(--sans); cursor: pointer; }
.lang-btn:hover { color: var(--text); border-color: #3a3a3a; }
html[lang="zh-CN"] body { font-family: 'Outfit', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; }

details.adv > summary { cursor: pointer; list-style: none; }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary h3::after { content: ' +'; color: var(--dim); }
details.adv[open] > summary h3::after { content: ' −'; }
details.adv:not([open]) > summary { border-bottom: 0; }

/* hyperliquid panel */
.seg.block { display: flex; padding: 3px; border: 1px solid var(--line2); border-radius: 11px; background: var(--bg); }
.seg.block button { flex: 1; }
#hlBox .steps li { position: relative; padding-left: 18px; }
#hlBox .steps li::before { content: ''; position: absolute; left: 0; top: 6px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--dim); }
#hlBox .steps li.done::before { background: var(--up); border-color: var(--up); }
#hlBox .steps li.now { color: var(--text); }
#hlBox .steps li.now::before { border-color: var(--text); background: var(--text); animation: hlpulse 1.2s ease-in-out infinite; }
@keyframes hlpulse { 50% { opacity: .3; } }
#hlBox .panel-h p a { color: var(--muted); }

/* phones */
@media (max-width: 900px) {
  main { padding: 16px 16px 60px; }
  .top { padding: 10px 16px; flex-wrap: wrap; }
  .top nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .top nav a.on::after { bottom: -4px; }
  .search-btn kbd, .lang-btn, .top .icon-btn { display: none; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout > .stack:last-child { order: -1; }
  .tkhead { flex-wrap: wrap; padding: 18px 16px; }
  .tkhead .sub { flex-wrap: wrap; }
  .tkhead .links { margin-left: 0; flex-wrap: wrap; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-l { padding: 28px 20px; }
  .hero h1 { font-size: 40px; }
  .hero-r { display: none; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .claim-hero { grid-template-columns: minmax(0, 1fr); }
  .controls { flex-wrap: wrap; }
  .field-search { flex: 1 1 100%; }
  table { display: block; overflow-x: auto; }
  .foot { flex-direction: column; align-items: flex-start; }
}


/* ===== hypad: Hyperliquid elements ===== */
html, body { background: var(--frame); }
body { font: 400 12px/1.4 var(--sans); font-variant-numeric: tabular-nums; color: var(--text); }
.mono { font-family: var(--sans); }
b, strong { font-weight: 500; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* header: logo, 12px nav with light-teal active, teal Connect, square icon buttons */
.top { height: 56px; padding: 0 20px; gap: 8px; background: var(--s1); border-bottom: 0; backdrop-filter: none; }
.brand { gap: 8px; margin-right: 22px; font: 500 20px var(--sans); letter-spacing: -.02em; }
.brand img { height: 26px; width: 26px; mix-blend-mode: normal; }
.top nav { gap: 0; }
.top nav a { padding: 8px 10px; font-size: 12px; color: var(--text); font-weight: 400; border-radius: 0; }
.top nav a:hover { color: var(--hi); }
.top nav a.on { color: var(--hi); }
.top nav a.on::after { display: none; }
.search-btn { height: 33px; min-width: 260px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; padding: 0 10px; }
.search-btn kbd { border-color: var(--line); color: var(--muted); font: 400 10px var(--sans); }
.search-btn:hover { border-color: #3a474d; color: var(--text); }

/* buttons */
.btn { height: 33px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent; background: var(--s3); color: var(--text); font: 400 12px var(--sans); }
.btn:hover { background: #313d43; border-color: transparent; }
.btn.accent, .btn.buy { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.accent:hover, .btn.buy:hover { background: var(--accent-2); }
.btn.sell { background: var(--down); color: #2a0a12; border-color: transparent; }
.btn.lg { height: 33px; font-size: 12px; border-radius: 8px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.icon-btn { width: 33px; height: 33px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text); }

/* panels: 5px corners on the frame, 3px apart */
main { max-width: none; padding: 3px 3px 34px; }
.panel, .box { background: var(--s1); border: 0; border-radius: 5px; }
.panel-h, .box-h { border-bottom: 1px solid var(--line); padding: 0 12px; height: 40px; font-size: 12px; font-weight: 400; }
.panel-h h3 { font-size: 12px; font-weight: 400; }
.panel-b { padding: 12px; }
.badge { height: 18px; border-radius: 4px; font: 400 11px var(--sans); text-transform: none; letter-spacing: 0; background: var(--accent-soft); color: var(--accent); border: 0; }
.badge.grad { background: var(--accent-soft); color: var(--accent); }
.up { color: var(--up); } .down { color: var(--down); }
.quiet, .hint { color: var(--muted); }
.tlink { color: var(--accent); }
.input, .textarea { height: 33px; border: 1px solid var(--line); border-radius: 8px; background: transparent; font-size: 12px; padding: 0 12px; }
.textarea { height: 90px; padding: 8px 12px; }
.input:focus, .textarea:focus { border-color: var(--accent); }

/* tabs: equal width, muted until active, teal underline */
.tabs { display: flex; border-bottom: 1px solid var(--line); height: 40px; flex: none; }
.tabs button { flex: 1; border: 0; background: none; color: var(--muted); font: 400 12px var(--sans); cursor: pointer; position: relative; padding: 0 12px; white-space: nowrap; }
.tabs.left button { flex: none; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); }
.tabs button.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent); }
.tabs button:disabled { opacity: .4; cursor: not-allowed; }

/* segmented Buy / Sell */
.segx { display: flex; padding: 4px; gap: 0; background: var(--s3); border-radius: 8px; }
.segx button { flex: 1; height: 25px; border: 0; border-radius: 5px; background: none; color: var(--text); font: 400 12px var(--sans); cursor: pointer; }
.segx button.on { background: var(--accent); color: #02231E; }
.segx button.on.s { background: var(--down); color: #2a0a12; }
.gray3 { display: flex; gap: 8px; }
.gray3 button { flex: 1; height: 33px; border: 1px solid transparent; border-radius: 8px; background: var(--s3); color: var(--muted); font: 400 12px var(--sans); cursor: pointer; }
.gray3 button.on { color: var(--text); border-color: #3c4a50; }
.gray3 button:disabled { opacity: .45; cursor: not-allowed; }

/* order form */
.of { padding: 0 10px 12px; display: grid; gap: 10px; }
.kvr { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.kvr b { color: var(--text); font-weight: 400; text-align: right; }
.kvr .dot-u { text-decoration: underline dotted; text-underline-offset: 3px; }
.sz { display: flex; align-items: center; gap: 8px; height: 33px; padding: 0 12px 0 10px; border: 1px solid var(--line); border-radius: 8px; }
.sz span { color: var(--muted); }
.sz input { flex: 1; min-width: 0; text-align: right; border: 0; background: none; outline: none; color: var(--text); font: 400 12px var(--sans); }
.sz select { border: 0; background: none; color: var(--text); font: 400 12px var(--sans); outline: none; cursor: pointer; }
.sz select option { background: var(--s1); }
.sz:focus-within { border-color: var(--accent); }
.sl { display: flex; align-items: center; gap: 10px; }
.sl .trk { flex: 1; position: relative; height: 18px; display: flex; align-items: center; }
.sl .trk::before { content: ''; position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--s3); }
.sl .trk i { position: absolute; left: 0; height: 4px; border-radius: 2px; background: var(--accent); }
.sl .trk .d { position: absolute; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #56636a; }
.sl .trk .k { position: absolute; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 2px solid var(--accent); background: var(--s1); }
.sl input[type=range] { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; margin: 0; }
.sl .pc { width: 60px; height: 33px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; }
.sl .pc input { width: 100%; border: 0; background: none; outline: none; color: var(--text); font: 400 12px var(--sans); text-align: right; }
.of .go { height: 33px; width: 100%; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font: 400 12px var(--sans); cursor: pointer; }
.of .go.s { background: var(--down); color: #2a0a12; }
.of .go:disabled { opacity: .5; cursor: not-allowed; }
.of hr { border: 0; border-top: 1px solid var(--line); margin: 2px 0; }
.of .note { color: var(--muted); font-size: 11px; line-height: 1.5; }

/* status bar */
.foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: 28px; padding: 0 10px; border: 0; background: var(--frame); display: flex; flex-direction: row; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text); }
.foot div { gap: 14px; align-items: center; }
.foot a { color: var(--text); margin: 0; }
.foot a:hover { color: var(--hi); }
.online { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 2px 8px; border: 1px solid var(--accent); border-radius: 5px; background: rgba(10, 153, 129, .2); color: var(--accent); font-size: 10px; }
.online::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ===== coin page: the trade terminal ===== */
.term { display: grid; gap: 3px; grid-template-columns: minmax(0, 1fr) 266px 290px; grid-template-rows: 64px 560px auto; grid-template-areas: "bar mid ord" "chart mid ord" "bot bot ord"; }
.t-bar { grid-area: bar; display: flex; align-items: center; gap: 28px; padding: 0 14px; overflow-x: auto; white-space: nowrap; }
.t-chart { grid-area: chart; display: flex; flex-direction: column; min-width: 0; }
.t-mid { grid-area: mid; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.t-ord { grid-area: ord; display: flex; flex-direction: column; gap: 3px; }
.t-ord > .panel { padding-top: 10px; }
.t-bot { grid-area: bot; min-height: 220px; }
.mkt { display: flex; align-items: center; gap: 10px; cursor: pointer; border: 0; background: none; color: var(--text); padding: 0; }
.mkt img, .mkt .ph { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--s3); }
.mkt b { font: 400 20px var(--sans); }
.mkt svg { color: var(--muted); }
.chip { height: 22px; padding: 0 6px; display: inline-flex; align-items: center; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.st2 small { display: block; color: var(--muted); font-size: 12px; text-decoration: underline dotted; text-underline-offset: 3px; text-decoration-color: #4b585e; }
.st2 b { display: block; font-weight: 400; font-size: 12px; margin-top: 4px; }
.st2 .ca { cursor: pointer; }
.tf2 { display: flex; align-items: center; gap: 2px; height: 36px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.tf2 button { border: 0; background: none; color: var(--muted); font: 400 12px var(--sans); padding: 4px 7px; cursor: pointer; border-radius: 4px; }
.tf2 button.on { color: var(--hi); }
.tf2 .o { margin-left: auto; color: var(--muted); }
.t-chart .chart-wrap { flex: 1; height: auto; min-height: 0; border: 0; border-radius: 0; background: none; }
.t-chart .about { padding: 14px; overflow: auto; display: grid; gap: 10px; align-content: start; }
.ob-h { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 8px 10px 4px; color: var(--muted); font-size: 12px; }
.ob-h span:not(:first-child), .ob-r span:not(:first-child) { text-align: right; }
.ob { overflow: auto; flex: 1; }
.ob-r { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 0 10px; height: 25px; align-items: center; font-size: 12px; }
.ob-r i { position: absolute; top: 0; bottom: 0; right: 0; opacity: .22; }
.ob-r.b span:first-child { color: var(--up); } .ob-r.b i { background: var(--up); }
.ob-r.s span:first-child { color: var(--down); } .ob-r.s i { background: var(--down); }
.ob-r span { position: relative; }
.ob-r a { color: inherit; }
.ob .none, .t-bot .none { padding: 14px 12px; color: var(--muted); }
.steps2 { padding: 10px 12px; display: grid; gap: 10px; }
.steps2 li { list-style: none; display: flex; gap: 10px; align-items: center; color: var(--muted); }
.steps2 li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1px solid #56636a; }
.steps2 li.done { color: var(--text); } .steps2 li.done::before { background: var(--accent); border-color: var(--accent); }
.steps2 li.now { color: var(--hi); } .steps2 li.now::before { border-color: var(--hi); background: var(--hi); animation: hlpulse 1.2s ease-in-out infinite; }
@keyframes hlpulse { 50% { opacity: .3; } }
.bar2 { height: 4px; border-radius: 2px; background: var(--s3); overflow: hidden; }
.bar2 i { display: block; height: 100%; background: var(--accent); }
table.bt { width: 100%; border-collapse: collapse; }
.bt th { text-align: left; font-weight: 400; color: var(--muted); padding: 8px 12px 6px; white-space: nowrap; }
.bt td { padding: 6px 12px; white-space: nowrap; }
.bt th.r, .bt td.r { text-align: right; }
.bt a { color: var(--accent); }

/* ===== home: same structure, Hyperliquid elements ===== */
.hx { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 24px; align-items: end; padding: 28px 22px 24px; background: var(--s1); border-radius: 5px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.eyebrow .tag { border-radius: 4px; padding: 1px 6px; color: var(--accent); background: var(--accent-soft); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.hx h1 { font-size: 40px; line-height: 1.08; letter-spacing: -.03em; font-weight: 500; margin: 12px 0 10px; }
.hx h1 em { font-style: normal; color: var(--accent); }
.hx p { color: var(--muted); font-size: 13px; max-width: 560px; }
.ca-box { display: flex; gap: 8px; }
.ca-box label { flex: 1; display: flex; align-items: center; gap: 8px; height: 33px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.ca-box label:focus-within { border-color: var(--accent); }
.ca-box input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--text); font-size: 12px; }
.hx .actions { display: flex; gap: 8px; margin-top: 8px; justify-content: flex-end; }
.ticker { position: sticky; top: 56px; z-index: 19; display: flex; align-items: center; height: 28px; background: var(--s1); border-top: 3px solid var(--frame); font-size: 12px; overflow: hidden; }
.ticker[hidden] { display: none; }
.tk-live { display: flex; align-items: center; gap: 6px; padding: 0 12px 0 16px; color: var(--accent); flex: none; }
.tk-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tk-track { flex: 1; overflow: hidden; }
.tk-run { display: inline-flex; gap: 26px; white-space: nowrap; animation: tk 60s linear infinite; }
.tk-run a { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.tk-run a b { color: var(--text); font-weight: 400; }
.tk-run img { width: 14px; height: 14px; border-radius: 50%; object-fit: cover; }
@keyframes tk { to { transform: translateX(-50%); } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 3px; margin-top: 3px; background: none; border: 0; }
.stats[hidden] { display: none; }
.stats > div { background: var(--s1); border-radius: 5px; padding: 12px 14px; min-width: 0; }
.stats small { display: block; color: var(--muted); font-size: 12px; text-decoration: underline dotted; text-underline-offset: 3px; text-decoration-color: #4b585e; }
.stats b { display: block; font: 400 18px var(--sans); margin: 6px 0 2px; }
.stats b i { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 4px; }
.stats span { font-size: 11px; color: var(--muted); }
.stats .meter { height: 4px; border-radius: 2px; background: var(--s3); margin-top: 8px; overflow: hidden; }
.stats .meter i { display: block; height: 100%; background: var(--accent); }
.sec-gap { margin-top: 3px; }
.box-h { display: flex; align-items: center; justify-content: space-between; }
.box-h small { color: var(--muted); font-size: 12px; }
.box-h .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.box-h a { color: var(--accent); }
.box .none { padding: 14px 12px; color: var(--muted); }
.mmap { position: relative; height: 230px; margin: 3px; }
.mmap a { position: absolute; padding: 8px 10px; border: 2px solid var(--s1); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; gap: 2px; }
.mmap a b { font-size: 12px; display: flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 500; }
.mmap a b img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.mmap a span { font-size: 12px; }
.mmap a small { font-size: 11px; color: var(--muted); }
.mmap a.big b { font-size: 16px; } .mmap a.big span { font-size: 16px; }
.tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.mini { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 12px; }
.mini:hover { background: var(--s2); }
.mini img, .mini .ph { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--s3); }
.mini b { font-size: 12px; font-weight: 500; } .mini .sub { font-size: 12px; color: var(--muted); margin-left: 4px; }
.mini .bar { height: 3px; border-radius: 2px; background: var(--s3); margin-top: 5px; overflow: hidden; }
.mini .bar i { display: block; height: 100%; background: var(--accent); }
.mini .r { text-align: right; font-size: 12px; }
.mini .r small { display: block; font-size: 11px; }
.mini .meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 3px; }
.mk { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 3px; align-items: start; }
.mk-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mk-bar label { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px; height: 33px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.mk-bar label:focus-within { border-color: var(--accent); }
.mk-bar input { flex: 1; border: 0; background: none; outline: none; color: var(--text); font-size: 12px; }
.pills { display: flex; gap: 0; padding: 4px; background: var(--s3); border-radius: 8px; border: 0; }
.pills button { border: 0; background: none; color: var(--text); padding: 0 10px; height: 25px; border-radius: 5px; cursor: pointer; font-size: 12px; }
.pills button.on { background: var(--accent); color: #02231E; }
.mk-bar .count { font-size: 12px; color: var(--muted); padding: 0 4px; }
table.mt { width: 100%; border-collapse: collapse; }
.mt th { font: 400 12px var(--sans); color: var(--muted); text-align: right; padding: 9px 12px 6px; white-space: nowrap; }
.mt th:first-child { text-align: left; }
.mt th[data-k] { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; text-decoration-color: #4b585e; }
.mt th.on { color: var(--text); }
.mt td { padding: 7px 12px; text-align: right; font-size: 12px; white-space: nowrap; vertical-align: middle; }
.mt tr:hover td { background: var(--s2); cursor: pointer; }
.mt td:first-child { text-align: left; }
.mt .coin { display: flex; align-items: center; gap: 10px; }
.mt .coin img, .mt .coin .ph { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--s3); flex: none; }
.mt .coin b { display: block; font-size: 12px; font-weight: 500; }
.mt .coin small { color: var(--muted); font-size: 11px; }
.mt svg.sp { display: block; margin-left: auto; }
.stg { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 110px; }
.stg .bar { width: 110px; height: 3px; border-radius: 2px; background: var(--s3); overflow: hidden; }
.stg .bar i { display: block; height: 100%; background: var(--accent); }
.stg small { font-size: 11px; color: var(--muted); }
.stg .chip2 { font-size: 11px; padding: 1px 6px; border-radius: 4px; color: var(--accent); background: var(--accent-soft); }
.stg .chip2.core { color: #02231E; background: var(--accent); }
.mt .go { display: inline-flex; height: 25px; align-items: center; padding: 0 12px; border-radius: 5px; background: var(--s3); color: var(--text); font-size: 12px; }
.mt tr:hover .go { background: var(--accent); color: var(--accent-ink); }
.side-col { display: grid; gap: 3px; position: sticky; top: 90px; }
.feed { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 12px; font-size: 12px; }
.feed b { font-weight: 500; }
.feed .st { color: var(--accent); }
.feed .t { color: var(--muted); }
.rank { display: grid; grid-template-columns: 20px 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 12px; }
.rank .n { color: var(--muted); font-size: 12px; text-align: center; }
.rank img, .rank .ph { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--s3); }
.rank b { font-weight: 500; }
.rank .bar { height: 3px; border-radius: 2px; background: var(--s3); margin-top: 5px; overflow: hidden; }
.rank .bar i { display: block; height: 100%; background: var(--accent); }
.rank .r { font-size: 12px; text-align: right; }

/* other pages pick up the same elements */
.narrow { max-width: 1120px; margin: 0 auto; background: var(--s1); border-radius: 5px; padding: 24px; }
.page-h h1 { font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.page-h p { color: var(--muted); font-size: 13px; }
.how3 .panel, .form-layout .panel, .summary { background: var(--frame); }
.how3 .panel { padding: 16px; } .how3 .n { color: var(--accent); font-size: 12px; }
.fsec { border-bottom: 1px solid var(--line); }
.lbl { font-size: 12px; font-weight: 400; color: var(--muted); }
.plats button, .opt button { border-radius: 8px; border: 1px solid var(--line); background: transparent; font-size: 12px; }
.plats button.on, .opt button.on { background: var(--accent); color: #02231E; border-color: var(--accent); }
.opt button.on span { color: #0b3d36; }
.amount { border: 1px solid var(--line); border-radius: 8px; height: 40px; background: transparent; }
.amount input { font-size: 14px; }
.drop { border-radius: 8px; border-color: var(--line); }
.docs { max-width: 1120px; margin: 0 auto; background: var(--s1); border-radius: 5px; padding: 24px; }
.doc h1 { font-weight: 500; } .doc h2 { font-weight: 500; }
.doc table { font-size: 12px; } .doc code { font-family: ui-monospace, Menlo, monospace; font-size: 11px; }
.palette { background: rgba(4, 6, 12, .6); }
.pal-box { border-radius: 8px; border: 1px solid var(--line); }
#toast { font-size: 12px; }

@media (max-width: 1200px) {
  .term { grid-template-columns: minmax(0, 1fr) 290px; grid-template-rows: auto 480px auto auto; grid-template-areas: "bar bar" "chart ord" "mid ord" "bot bot"; }
  .t-mid { max-height: 360px; }
}
@media (max-width: 1100px) {
  .hx { grid-template-columns: minmax(0, 1fr); }
  .hx .actions { justify-content: flex-start; }
  .mk { grid-template-columns: minmax(0, 1fr); }
  .side-col { position: static; }
  .tri { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .top { height: auto; padding: 8px 12px; flex-wrap: wrap; }
  .top nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .search-btn { min-width: 0; flex: 1; }
  .search-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ticker { position: relative; top: 0; }
  .hx { padding: 20px 14px; } .hx h1 { font-size: 30px; }
  .term { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 380px auto auto auto; grid-template-areas: "bar" "chart" "ord" "mid" "bot"; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt .hide-m { display: none; }
  .stg { min-width: 76px; } .stg .bar { width: 76px; }
  .mmap { height: 200px; }
  .narrow, .docs { padding: 16px; }
  .foot div span, .foot > span { display: none; }
}
.t-chart .about[hidden] { display: none; }
.drop img:not([src]), .drop img[src=""] { visibility: hidden; }
@media (max-width: 900px) { .search-btn { flex: none; min-width: 33px; width: 33px; justify-content: center; padding: 0; } .search-btn span, .search-btn kbd { display: none; } .top .btn:not(.accent) { margin-left: auto; } }

/* inverse flows */
.top .pills.mode { margin: 0 4px; }
.top .pills.mode button { height: 25px; }
body.practice .top .pills.mode button.on { background: var(--gold); color: #2a1d00; }
.chip.paper { background: rgba(232, 180, 74, .14); color: var(--gold); }
.bt .coin { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.bt .coin img, .bt .coin .ph, .bigwin .coin img, .bigwin .coin .ph { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: var(--s3); }
.bt .coin b { font-weight: 500; }
.bt tr:hover td { background: var(--s2); }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 3px; padding: 3px; }
.rgrid .none { grid-column: 1 / -1; }
.rcard { display: grid; gap: 10px; padding: 12px; border-radius: 5px; background: var(--frame); }
.rsides { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rsides > div { padding: 8px 10px; border-radius: 5px; }
.rsides .up { background: rgba(31, 166, 125, .12); } .rsides .down { background: rgba(237, 112, 136, .12); }
.rsides small { display: block; font-size: 11px; color: var(--muted); }
.rsides b { font-weight: 400; font-size: 16px; }
.rsides .up b { color: var(--up); } .rsides .down b { color: var(--down); }
.rcard .segx button.on { background: var(--up); color: #02231E; }
.rcard .segx button.on.s { background: var(--down); color: #2a0a12; }
.bigwin { display: flex; align-items: center; gap: 20px; padding: 16px 14px; flex-wrap: wrap; }
.bigwin .coin { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.bigwin .btn { margin-left: auto; }
@media (max-width: 900px) { .top .pills.mode { order: 2; } }
.rcpt { display: grid; gap: 7px; padding: 10px; border-radius: 8px; border: 1px solid var(--line); }
.rcpt.confirmed { border-color: rgba(31, 166, 125, .5); }
.rcpt.failed { border-color: rgba(237, 112, 136, .5); }
.rcpt a { color: var(--accent); }
