/* Skits – comedy skits traded as coins. A calm dark trading board: graphite surfaces, one cobalt accent,
   numbers in tabular figures, green up / red down. Mozilla Headline for headings, Fustat for text, Saira for figures. */
@font-face { font-family: 'Mozilla Headline'; src: url(/fonts/mozilla-headline.woff2) format('woff2'); font-weight: 200 700; font-display: swap; }
@font-face { font-family: 'Fustat'; src: url(/fonts/fustat.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Figures'; src: url(/fonts/saira.woff2) format('woff2'); font-weight: 500 700; font-display: swap; }

:root {
  --bg: #0d0e10;
  --surface: #14161a;
  --raised: #1b1e23;
  --line: #262a31;
  --line-2: #343943;
  --ink: #eef0f3;
  --ink-2: #a4abb6;
  --ink-3: #6e7582;
  --accent: #4c6fff;        /* cobalt */
  --accent-hi: #6283ff;
  --accent-lo: #3553d6;
  --up: #2fbf71;
  --down: #f0505a;

  --f-head: 'Mozilla Headline', 'Fustat', system-ui, sans-serif;
  --f-text: 'Fustat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-num: 'Figures', 'Fustat', system-ui, sans-serif;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --t-xs: 12px; --t-sm: 13px; --t-md: 15px; --t-lg: 18px; --t-xl: 22px; --t-2xl: 28px; --t-3xl: 44px;
  --r: 12px; --r-s: 8px;
  --header-h: 68px;
  --gutter: 32px;
  --mic-line: #4c6fff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-md)/1.5 var(--f-text); -webkit-font-smoothing: antialiased; min-height: 100dvh; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 650; letter-spacing: -.01em; }
.num, .wallet-btn .bal, .amount input, .presets button, .code, .addr { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.num { font-weight: 600; }
.up { color: var(--up); } .down { color: var(--down); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tick { font-weight: 700; color: var(--ink-2); letter-spacing: .01em; }
.muted { color: var(--ink-3); font-size: var(--t-xs); white-space: nowrap; }
.chg { font-weight: 700; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { height: var(--header-h); max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: var(--s-5); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.mark { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; color: #101216; }
.mark svg { width: 30px; height: 30px; }
.word { font: 700 24px/1 var(--f-head); letter-spacing: -.02em; }
.nav { display: flex; gap: 2px; margin-left: var(--s-3); }
.nav a { font-weight: 600; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--raised); }
.search { position: relative; flex: 0 1 340px; min-width: 180px; }
.search input { width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 14px 0 38px; outline: none; font-size: 14px; }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { border-color: var(--line-2); background: var(--raised); }
.search svg { position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; color: var(--ink-3); }
.spacer { flex: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px; border: 0;
  font: 700 15px/1 var(--f-text); white-space: nowrap; transition: background .15s ease, transform .06s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(0,0,0,.4); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-light { background: var(--ink); color: #101216; box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.btn-light:hover { background: #fff; }
.btn-line, .btn-ghost { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-line:hover, .btn-ghost:hover { background: #23272d; }
.btn-buy { background: var(--up); color: #04210f; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.btn-buy:hover { background: #3ccd7f; }
.btn-sell { background: var(--down); color: #2a0507; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }
.btn-big { height: 50px; padding: 0 24px; font-size: 16px; }
.btn-s { height: 34px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.wallet-btn .bal { font-variant-numeric: tabular-nums; }
.wallet-btn .addr { color: #4a505a; font-weight: 600; margin-left: 2px; }
.btn-ghost.wallet-btn .addr, .btn-line.wallet-btn .addr { color: var(--ink-2); }

main { padding: 0 var(--gutter) 96px; max-width: 1360px; margin: 0 auto; }

/* ---------- board ---------- */
.intro { padding: 48px 0 8px; max-width: 760px; }
.intro h1 { font-size: var(--t-3xl); line-height: 1.05; margin: 0 0 14px; }
.intro p { font-size: 17px; color: var(--ink-2); margin: 0 0 24px; max-width: 60ch; }
.intro-act { display: flex; gap: 10px; flex-wrap: wrap; }

.sec { margin-top: 48px; }
.sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { font-size: var(--t-2xl); line-height: 1.1; margin: 0; }
.sec-note { color: var(--ink-3); font-size: var(--t-sm); font-weight: 600; }
#trend:empty { display: none; }

.by { display: flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: var(--t-sm); min-width: 0; }
.by svg { width: 15px; height: 15px; flex: none; }
.by > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* top by market cap */
.tops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.top-card { display: grid; grid-template-columns: 164px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tc-shot { display: block; position: relative; }
.tc-shot .shot { position: absolute; inset: 0; }
.tc-shot { min-height: 292px; }
.tc-body { padding: 16px 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tc-head { display: flex; align-items: center; gap: 10px; }
.rank { color: var(--ink-3); font-weight: 700; }
.tc-head .rank { width: 26px; height: 26px; border-radius: 7px; background: var(--raised); display: grid; place-items: center; font-size: 14px; color: var(--ink); }
.tc-name { font-weight: 700; font-size: var(--t-lg); line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tc-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.tc-data { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin: 4px 0 0; }
.tc-data .wide { grid-column: 1 / -1; }
dt { font-size: var(--t-xs); color: var(--ink-3); font-weight: 600; margin-bottom: 2px; }
dd { margin: 0; font-weight: 700; }
dd.big, .big { font-size: var(--t-2xl); line-height: 1.05; font-weight: 700; letter-spacing: -.01em; }
.curve-row { display: flex; align-items: center; gap: 10px; font-size: var(--t-sm); }
.cbar { flex: 1; height: 6px; border-radius: 3px; background: var(--raised); overflow: hidden; min-width: 40px; }
.cbar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.tc-act { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.tc-act .btn { flex: 1; height: 40px; padding: 0 10px; font-size: 14px; }

/* most traded 24h: a table */
.tbl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rows { list-style: none; margin: 0; padding: 0; }
.trow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 0 16px 0 0; border-top: 1px solid var(--line); }
.trow:hover { background: #171a1e; }
.row-link, .row-h { display: grid; grid-template-columns: 32px 40px minmax(0, 1fr) 110px 120px 80px 150px; align-items: center; gap: 16px; padding: 10px 0 10px 18px; }
.row-h { grid-template-columns: 32px 40px minmax(0, 1fr) 110px 120px 80px 150px 84px; padding: 10px 16px 10px 18px; border-top: 0; font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); }
.row-h > span:nth-child(n+4):nth-child(-n+6) { text-align: right; }
.rows .trow:first-child { border-top: 1px solid var(--line); }
.thumb { width: 40px; height: 54px; border-radius: 6px; overflow: hidden; background: var(--raised); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-name { display: grid; gap: 3px; min-width: 0; }
.row-name b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-name > span { display: flex; gap: 10px; min-width: 0; font-size: var(--t-sm); }
.row-name em { font-style: normal; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-name em.tick { color: var(--ink-2); flex: none; }
.r-mc { font-weight: 700; text-align: right; font-size: 16px; }
.r-vol { text-align: right; color: var(--ink-2); }
.r-chg { text-align: right; }
.r-curve { display: flex; align-items: center; gap: 8px; font-size: var(--t-sm); color: var(--ink-2); }
.trow .btn-s { width: 84px; }

/* new + trending: video cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.card-shot { display: block; position: relative; }
.card-shot .shot { aspect-ratio: 9 / 13; }
.card-meta { padding: 12px 14px 14px; display: grid; gap: 8px; flex: 1; align-content: start; }
.card-name { margin: 0; font-weight: 700; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.6em; }
a.card-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: var(--t-sm); }
.card-row .mc { font-size: var(--t-lg); font-weight: 700; }
.card .by .v { margin-left: auto; color: var(--ink); font-weight: 700; flex: none; font-variant-numeric: tabular-nums; }
.card-act { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.card-act .watch { font-size: var(--t-sm); }

.empty-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 48px 24px; text-align: center; color: var(--ink-2); }
.empty-panel h2 { font-size: var(--t-xl); color: var(--ink); margin: 0 0 6px; }
.empty-panel p { margin: 0 0 18px; }
.empty { padding: 80px 0; text-align: center; color: var(--ink-2); }
.empty h2 { font-size: var(--t-2xl); color: var(--ink); margin: 0 0 8px; }
.empty .btn { margin-top: 16px; }

/* ---------- video shots (official players) ---------- */
.shot { position: relative; background: #08090a; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.shot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .35s ease; }
.shot.live iframe { opacity: 1; }
.shot .catch { position: absolute; inset: 0; z-index: 2; }
.shot .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.35); }
.shot .noimg svg { width: 40px; height: 40px; }
.sound { position: absolute; z-index: 3; right: 8px; bottom: 8px; width: 32px; height: 32px; border-radius: 999px; border: 0; background: rgba(10,11,13,.72); color: #fff; display: grid; place-items: center; }
.sound svg { width: 17px; height: 17px; }
.bar { height: 6px; border-radius: 3px; background: var(--raised); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.flash { animation: flash 1.1s ease; }
@keyframes flash { 0% { background-color: #1d2330; } 100% { background-color: var(--surface); } }
.trow.flash { animation-name: flashrow; }
@keyframes flashrow { 0% { background-color: #1d2330; } 100% { background-color: transparent; } }
.ext-i { width: 10px; height: 10px; margin-left: 4px; vertical-align: 0; flex: none; }
.watch { display: inline-flex; align-items: center; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- feed ---------- */
body.feed-on main { padding: 0; max-width: none; }
.feed { height: calc(100dvh - var(--header-h) - 1px); overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.feed .empty-panel { max-width: 520px; margin: 64px auto; }
.slide { position: relative; height: calc(100dvh - var(--header-h) - 1px); scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-7); padding: 20px var(--gutter); overflow: hidden; }
.slide .gate { grid-column: 2; height: calc(100dvh - var(--header-h) - 40px); width: auto; }
.gate { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: calc(100vw - 2 * var(--gutter)); background: #08090a; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.gate .shot { height: 100%; width: 100%; }
.slide-info { grid-column: 3; align-self: end; max-width: 360px; padding: 20px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.slide-info .name { font-size: var(--t-2xl); line-height: 1.1; margin: 6px 0 16px; overflow-wrap: anywhere; }
.slide-info .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 0 0 18px; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.quick .btn { height: 42px; padding: 0 14px; }
.slide-info .by { margin-top: 16px; flex-wrap: wrap; }
.overlay-info { display: none; }
.feed-hint { position: fixed; left: var(--gutter); bottom: var(--gutter); color: var(--ink-3); font-size: var(--t-sm); }

/* ---------- coin page ---------- */
.coin { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) 340px; gap: var(--s-5); align-items: start; padding-top: 32px; }
.coin .gate { height: auto; width: 100%; aspect-ratio: 9 / 16; max-width: 360px; position: sticky; top: calc(var(--header-h) + 24px); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.coin-head { padding: var(--s-5); display: flex; gap: var(--s-5); align-items: flex-end; flex-wrap: wrap; justify-content: space-between; }
.ch-name { flex: 1 1 240px; min-width: 0; display: grid; gap: 6px; }
.coin-head h1 { font-size: 34px; line-height: 1.08; margin: 0; overflow-wrap: anywhere; }
.ch-data { display: flex; gap: 28px; margin: 0; }
.ch-data dd { font-size: var(--t-lg); }
.ch-data dd.big { font-size: var(--t-2xl); }
.chart-wrap { padding: 0 var(--s-3) var(--s-3); }
.tfs { display: flex; gap: 4px; padding: 0 var(--s-4) var(--s-2); }
.tfs button { border: 0; background: transparent; padding: 7px 11px; border-radius: 7px; font-weight: 700; font-size: 14px; color: var(--ink-3); }
.tfs button[aria-pressed="true"] { background: var(--raised); color: var(--ink); }
#chart { height: 340px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 var(--s-4); }
.tabs button { border: 0; background: none; padding: 14px 12px 12px; font-weight: 700; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--accent); }
.tabbody { padding: var(--s-4) var(--s-5) var(--s-5); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.list li:last-child { border-bottom: 0; }
.addr { font-size: var(--t-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.list .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.comment-form { display: flex; gap: 8px; margin-bottom: var(--s-3); }
.comment-form input { flex: 1; min-width: 0; height: 42px; border-radius: 10px; border: 1px solid var(--line); padding: 0 14px; background: var(--bg); outline: none; }
.comment-form input:focus { border-color: var(--line-2); }

.trade { padding: var(--s-4); position: sticky; top: calc(var(--header-h) + 24px); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 10px; padding: 4px; gap: 4px; }
.seg button { border: 0; height: 40px; border-radius: 7px; background: transparent; font-weight: 700; color: var(--ink-2); }
.seg button[aria-pressed="true"].b { background: var(--up); color: #04210f; }
.seg button[aria-pressed="true"].s { background: var(--down); color: #2a0507; }
.amount { margin: var(--s-4) 0 var(--s-2); position: relative; }
.amount input { width: 100%; height: 54px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); padding: 0 64px 0 16px; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; outline: none; }
.amount input:focus { border-color: var(--line-2); }
.amount span { position: absolute; right: 16px; top: 17px; font-weight: 700; color: var(--ink-2); }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--s-3); }
.presets button { border: 1px solid var(--line); background: var(--raised); border-radius: 8px; height: 32px; padding: 0 10px; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.presets button:hover { border-color: var(--line-2); }
.receive { font-size: var(--t-sm); color: var(--ink-2); min-height: 20px; margin-bottom: var(--s-3); }
.trade .btn { width: 100%; height: 50px; font-size: var(--t-lg); }
.feeline { margin: 10px 0 0; font-size: var(--t-xs); color: var(--ink-3); text-align: center; }
.curve { margin-top: var(--s-5); font-size: var(--t-sm); color: var(--ink-2); }
.curve .bar { height: 8px; border-radius: 4px; margin: 8px 0 6px; }
.creator { margin-top: var(--s-4); padding: var(--s-4); }
.creator h3 { margin: 0 0 6px; font-size: var(--t-md); font-family: var(--f-text); font-weight: 700; }
.creator p { margin: 0 0 var(--s-3); color: var(--ink-2); font-size: var(--t-sm); }
.creator .links { display: flex; gap: 8px; flex-wrap: wrap; }
.creator .addr { overflow-wrap: anywhere; line-height: 1.4; }
.creator .btn { height: 36px; font-size: var(--t-sm); padding: 0 12px; border-radius: 8px; }
.removed { display: grid; place-items: center; height: 100%; color: var(--ink-2); font-size: var(--t-sm); text-align: center; padding: 20px; }

/* ---------- launch ---------- */
.launch { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-7); align-items: start; padding-top: 40px; }
.launch form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px 30px 24px; }
.launch h1 { font-size: 36px; line-height: 1.05; margin: 0 0 var(--s-5); }
.field { display: block; margin-bottom: var(--s-4); }
.field > span { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.field small { color: var(--ink-3); font-weight: 500; }
.field input, .field textarea { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); padding: 0 14px; height: 50px; outline: none; font-size: 16px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field textarea { height: 92px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--line-2); }
.paste { position: relative; }
.paste input { height: 58px; font-size: 17px; padding-right: 104px; }
.paste .btn { position: absolute; right: 8px; top: 8px; height: 42px; }
.platforms { display: flex; gap: 14px; color: var(--ink-3); font-size: var(--t-sm); margin-top: 8px; align-items: center; flex-wrap: wrap; }
.platforms span { display: inline-flex; gap: 6px; align-items: center; }
.platforms span.on { color: var(--ink); font-weight: 700; }
.platforms svg { width: 16px; height: 16px; }
.two { display: grid; grid-template-columns: 1fr 160px; gap: var(--s-3); }
.launch .gate { height: auto; width: 100%; aspect-ratio: 9 / 16; position: sticky; top: calc(var(--header-h) + 24px); }
.launch .gate .blank { display: grid; place-items: center; height: 100%; color: var(--ink-3); font-size: 14px; text-align: center; padding: 24px; }
.msg { min-height: 22px; font-size: var(--t-sm); margin: 6px 0 var(--s-3); color: var(--ink-2); }
.msg.err { color: var(--down); }
.msg a { text-decoration: underline; }
.fine { color: var(--ink-3); font-size: var(--t-xs); margin: var(--s-4) 0 0; line-height: 1.6; }

/* ---------- dialog ---------- */
dialog { border: 1px solid var(--line-2); border-radius: 14px; padding: 0; width: min(440px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
dialog::backdrop { background: rgba(5,6,7,.72); }
.dlg { padding: var(--s-5); }
.dlg h2 { font-size: var(--t-xl); line-height: 1.15; margin: 0 0 var(--s-3); }
.dlg p { color: var(--ink-2); margin: 0 0 var(--s-4); font-size: var(--t-sm); }
.dlg .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: var(--s-4); flex-wrap: wrap; }
.wallets { display: grid; gap: 8px; }
.wallets button { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--raised); font-weight: 700; text-align: left; }
.wallets button:hover { border-color: var(--line-2); }
.wallets img { width: 28px; height: 28px; border-radius: 8px; }
.wallets > a.btn { display: flex; justify-content: center; margin-top: 8px; width: 100%; }
.code { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--bg); border: 1px solid var(--line-2); padding: 16px; border-radius: 10px; text-align: center; letter-spacing: .04em; user-select: all; }
.radio { display: grid; gap: 6px; margin-bottom: var(--s-3); }
.radio label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: var(--t-sm); }
.radio input { accent-color: var(--accent); }
.dlg textarea, .dlg input[type=text] { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); margin-bottom: 8px; outline: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #101216; padding: 12px 18px; border-radius: 10px; font-weight: 700; z-index: 100; box-shadow: 0 14px 30px -12px rgba(0,0,0,.7); max-width: calc(100vw - 24px); }
.toast.good b { color: #13753e; }
.foot { margin-top: 72px; padding-top: var(--s-5); border-top: 1px solid var(--line); color: var(--ink-3); font-size: var(--t-xs); display: flex; gap: var(--s-4); flex-wrap: wrap; justify-content: space-between; }
.foot a { text-decoration: underline; text-underline-offset: 2px; }
body.feed-on .foot { display: none; }
.mobile-nav { display: none; }
.short-l { display: none; }

/* CA strip (only when the coin exists) */
.castrip { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 36px; padding: 6px var(--gutter); background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; flex-wrap: wrap; }
.castrip .ca { border: 1px solid rgba(255,255,255,.4); background: transparent; color: inherit; font: inherit; padding: 4px 8px; border-radius: 6px; display: inline-flex; gap: 10px; cursor: pointer; }
.castrip .ca .short { display: none; }
.castrip a { text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; }
.castrip .bb { font-weight: 500; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .row-link { grid-template-columns: 32px 40px minmax(0, 1fr) 100px 110px 76px 120px; gap: 12px; }
  .row-h { grid-template-columns: 32px 40px minmax(0, 1fr) 100px 110px 76px 120px 84px; gap: 12px; }
}
@media (max-width: 1180px) {
  .tops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coin { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); }
  .coin .side { grid-column: 2; }
  .coin .trade { position: static; }
  .search { display: none; }
  .r-curve, .row-h > span:nth-child(7) { display: none; }
  .row-link { grid-template-columns: 32px 40px minmax(0, 1fr) 100px 110px 76px; }
  .row-h { grid-template-columns: 32px 40px minmax(0, 1fr) 100px 110px 76px 84px; }
}
@media (max-width: 860px) {
  :root { --header-h: 60px; --gutter: 16px; }
  .top-in { gap: 10px; }
  .mark { width: 30px; height: 30px; border-radius: 8px; }
  .mark svg { width: 26px; height: 26px; }
  .word { font-size: 22px; }
  .nav, .search { display: none; }
  .top-in .btn { height: 38px; padding: 0 13px; font-size: 14px; }
  .top-in .launch-btn .long { display: none; }
  .top-in .launch-btn .short-l { display: inline; }
  .wallet-btn .addr { display: none; }
  .intro { padding-top: 28px; }
  .intro h1 { font-size: 32px; }
  .intro p { font-size: 16px; }
  .intro-act .btn { flex: 1 1 auto; height: 46px; padding: 0 16px; font-size: 15px; }
  .sec { margin-top: 36px; }
  .sec-head h2 { font-size: 23px; }
  .sec-note { display: none; }
  .tops { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .top-card { grid-template-columns: 128px minmax(0, 1fr); }
  .tc-shot { min-height: 228px; }
  .tc-body { padding: 12px 12px 12px 14px; gap: 8px; }
  .tc-name { font-size: 16px; }
  .tc-data { gap: 8px 10px; }
  .tc-data dd.big { font-size: 22px; }
  .tc-act .btn { height: 38px; font-size: 13px; }
  .row-h { display: none; }
  .trow { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .trow .btn-s { display: none; }
  .row-link { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 12px; }
  .row-link .rank { display: none; }
  .row-link .thumb { grid-row: 1 / span 2; }
  .row-link .row-name { grid-row: 1 / span 2; }
  .r-mc { grid-column: 3; grid-row: 1; font-size: 15px; }
  .r-chg { grid-column: 3; grid-row: 2; font-size: 14px; }
  .r-vol { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-meta { padding: 10px; gap: 6px; }
  .card-name { font-size: 14px; }
  .card-row .mc { font-size: 16px; }
  .card .by .v { display: none; }
  .card-act .btn { flex: 1; }
  .coin { grid-template-columns: 1fr; gap: var(--s-3); padding-top: 16px; }
  .coin .mid { display: contents; }
  .coin .gate { order: 1; position: relative; top: 0; max-width: 100%; height: min(58dvh, 560px); width: auto; margin: 0 auto; }
  .coin .p-chart { order: 2; } .coin .side { order: 3; } .coin .p-tabs { order: 4; margin-top: 0 !important; }
  .coin .side { grid-column: 1; }
  .coin-head { padding: var(--s-4); gap: var(--s-4); }
  .coin-head h1 { font-size: 26px; }
  .ch-data { gap: 20px; flex-wrap: wrap; }
  .launch { grid-template-columns: 1fr; gap: var(--s-5); padding-top: 16px; }
  .launch form { padding: 20px 16px; }
  .launch h1 { font-size: 28px; }
  .launch .gate { position: relative; top: 0; width: 62%; margin: 0 auto; order: -1; }
  .launch .gate:has(.blank) { display: none; }
  .two { grid-template-columns: 1fr 120px; }
  .slide { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .feed .gate { grid-column: 1; height: 100%; width: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; border: 0; }
  .slide-info { display: none; }
  .overlay-info { display: block; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 70px 16px 16px; background: linear-gradient(transparent, rgba(8,9,10,.92)); color: #fff; }
  .overlay-info .name { font: 650 22px/1.15 var(--f-head); margin: 0; overflow-wrap: anywhere; }
  .overlay-info .meta { display: flex; gap: 12px; align-items: baseline; font-size: var(--t-sm); margin: 6px 0 12px; flex-wrap: wrap; }
  .overlay-info .meta .num { font-weight: 700; }
  .overlay-info .meta .src { color: #fff; text-decoration: underline; text-underline-offset: 3px; position: relative; z-index: 4; }
  .overlay-info .nocoin { color: var(--ink-2); font-size: 12px; }
  .overlay-info .quick .btn { height: 42px; padding: 0 12px; flex: 1; }
  .overlay-info .quick .btn-line { flex: 0 0 auto; }
  .gate .sound { bottom: auto; top: 12px; right: 12px; }
  .feed-hint { display: none; }
  .mobile-nav { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--bg); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .mobile-nav a { display: grid; justify-items: center; gap: 2px; font-size: 12px; font-weight: 700; color: var(--ink-3); padding: 4px; }
  .mobile-nav a svg { width: 22px; height: 22px; }
  .mobile-nav a[aria-current="page"] { color: var(--ink); }
  body.feed-on .feed, body.feed-on .slide { height: calc(100dvh - var(--header-h) - 1px - 62px - env(safe-area-inset-bottom)); }
  .castrip { gap: 10px; padding: 6px 12px; font-size: 12px; }
  .castrip .ca .full, .castrip .bb { display: none; }
  .castrip .ca .short { display: inline; }
}
@media (max-width: 400px) {
  .top-card { grid-template-columns: 112px minmax(0, 1fr); }
  .top-in .btn { padding: 0 11px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
