/* Feeds – the market for short video. Every short is a coin, every coin runs in one feed.
   Motif: a rotary press hall. The paper web runs between two steel rollers, each frame printed on it is one coin,
   set with crop marks and a caption like a proof. Elsewhere it stays calm: concrete-grey hall, white sheets, ink type,
   process cyan for the main action. League Gothic (newspaper headline gothic) for headings, Noto Sans Display for
   text and tabular figures. Sharp corners on every frame: this is print, not a screen. */
@font-face { font-family: 'League Gothic'; src: url(/fonts/league-gothic.woff2) format('woff2'); font-weight: 400; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: 'Noto Sans Display'; src: url(/fonts/noto-sans-display.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62.5% 100%; font-display: swap; }

:root {
  --bg: #e6e8e4;            /* press hall: pale concrete */
  --surface: #ffffff;
  --paper: #fbfaf6;         /* the web: uncoated newsprint */
  --raised: #f3f4f1;
  --line: #d6d9d4;
  --line-2: #bfc3bd;
  --ink: #101214;           /* process black */
  --ink-2: #4a5056;
  --ink-3: #7b8187;
  --accent: #0b74ad;        /* process cyan, deepened for white type */
  --accent-hi: #0a6699;
  --steel: #16191c;         /* machine frame */
  --steel-2: #2a2f33;
  --screen: #0d0f10;
  --up: #13794b;
  --down: #c0392b;

  --f-head: 'League Gothic', 'Oswald', 'Arial Narrow', sans-serif;
  --f-text: 'Noto Sans Display', system-ui, -apple-system, 'Segoe 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: 13.5px; --t-md: 15px; --t-lg: 18px; --t-xl: 24px;
  --r: 6px; --r-s: 4px;
  --header-h: 68px;
  --gutter: 32px;
  --max: 1360px;
}

* { 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; overflow-x: hidden; }
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 { font-family: var(--f-head); font-weight: 400; letter-spacing: .004em; }
h3 { font-family: var(--f-text); font-weight: 700; }
.num, .wallet-btn .bal, .amount input, .presets button, .code, .addr { font-variant-numeric: tabular-nums lining-nums; }
.num { font-weight: 650; }
.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; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); font-size: var(--t-xs); white-space: nowrap; }
.chg { font-weight: 700; }
.feedtag { color: var(--accent); font-weight: 650; font-size: var(--t-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feedtag:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(246,247,244,.95); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { height: var(--header-h); max-width: var(--max); 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: 30px; height: 30px; color: var(--ink); }
.word { font: 400 36px/1 var(--f-head); letter-spacing: .01em; padding-top: 3px; }
.nav { display: flex; gap: 2px; margin-left: var(--s-2); }
.nav a { font-weight: 650; color: var(--ink-2); padding: 8px 12px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.find { flex: 0 1 340px; min-width: 200px; margin: 0; }
.find label { position: relative; display: block; }
.find svg { position: absolute; left: 13px; top: 12px; width: 17px; height: 17px; color: var(--ink-3); pointer-events: none; }
.find input { width: 100%; height: 42px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 14px 0 40px; outline: none; font-size: 14px; }
.find input::placeholder { color: var(--ink-3); }
.find input:focus { border-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: var(--r); border: 0;
  font: 700 15px/1 var(--f-text); white-space: nowrap; transition: background .15s ease, transform .06s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18), 0 1px 0 rgba(16,18,20,.2); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-dark, .btn-light { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(16,18,20,.25); }
.btn-dark:hover, .btn-light:hover { background: #262a2e; }
.btn-line, .btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 0 rgba(16,18,20,.06); }
.btn-line:hover, .btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink-3), 0 1px 0 rgba(16,18,20,.06); }
.btn-buy { background: var(--up); color: #fff; box-shadow: 0 1px 0 rgba(16,18,20,.2); }
.btn-buy:hover { background: #0f6640; }
.btn-sell { background: var(--down); color: #fff; box-shadow: 0 1px 0 rgba(16,18,20,.2); }
.btn-sell:hover { background: #a82f23; }
.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; }
.follow[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.wallet-btn .addr { color: #aeb4b9; font-weight: 600; margin-left: 2px; font-size: 14px; }
.btn-ghost.wallet-btn { background: var(--surface); color: var(--ink); }
.btn-ghost.wallet-btn .addr { color: var(--ink-3); }

main { padding: 0 0 96px; }

/* ---------- home: hero + feeds directory ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px; align-items: start; padding-top: 56px; padding-bottom: 48px; }
.hero-text { padding-top: 12px; }
.hero-text h1 { font-size: 112px; line-height: .9; margin: 0 0 28px; }
.hero-text p { font-size: 18px; line-height: 1.55; color: var(--ink-2); margin: 0 0 30px; max-width: 54ch; }
.hero-act { display: flex; gap: 10px; flex-wrap: wrap; }
.dir { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 8px; }
.dir:empty { display: none; }
.dir-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.dir-head h2 { font-size: 30px; line-height: 1; margin: 0; }
.dir-list { list-style: none; margin: 0; padding: 0; }
.dir-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto 76px; gap: 14px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.dir-list li:first-child a { border-top: 0; }
.dir-list a:hover .d-name { text-decoration: underline; text-underline-offset: 3px; }
.d-name { font-weight: 700; font-size: 15px; }
.d-n { color: var(--ink-3); font-weight: 600; }
.d-mc { text-align: right; font-weight: 700; }

/* ---------- the press: the paper web between two steel rollers ---------- */
.press { background: var(--steel); color: #fff; padding: 34px 0 44px; border-top: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.press:empty { display: none; }
.press-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.press-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.press-head h2 { font-size: 44px; line-height: 1; margin: 0; }
.press-note { color: #9aa2a8; font-size: var(--t-sm); font-weight: 600; }
.press-nav { margin-left: auto; display: flex; gap: 8px; }
.pn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid #3b4247; background: var(--steel-2); color: #e9edef; display: grid; place-items: center; }
.pn:hover { background: #353b40; }
.pn svg { width: 18px; height: 18px; }
.machine { position: relative; display: flex; align-items: stretch; }
/* steel rollers, lit from the upper left; the web wraps around them */
.roller { flex: none; width: 30px; margin: -16px 0; border-radius: 15px / 9px; position: relative; z-index: 2;
  background: linear-gradient(90deg, #15181b 0%, #4c545b 16%, #b9c1c7 34%, #f2f5f7 44%, #a7b0b6 58%, #49525a 80%, #121518 100%);
  box-shadow: 0 14px 22px -8px rgba(0,0,0,.6); }
.roller::before, .roller::after { content: ''; position: absolute; left: 3px; right: 3px; height: 8px; border-radius: 50%; background: #0b0d0e; opacity: .55; }
.roller::before { top: 3px; } .roller::after { bottom: 3px; }
.web { flex: 1; min-width: 0; background: var(--paper); color: var(--ink); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; overscroll-behavior-x: contain; position: relative; }
.web::-webkit-scrollbar { display: none; }
/* the paper curves away where it meets each roller */
.machine::before, .machine::after { content: ''; position: absolute; top: 0; bottom: 0; width: 34px; z-index: 1; pointer-events: none; }
.machine::before { left: 30px; background: linear-gradient(90deg, rgba(16,18,20,.34), rgba(16,18,20,0)); }
.machine::after { right: 30px; background: linear-gradient(270deg, rgba(16,18,20,.34), rgba(16,18,20,0)); }
.web-run { list-style: none; margin: 0; padding: 26px 44px 24px; display: flex; gap: 30px; width: max-content; }
.web-run .frame { width: 200px; scroll-snap-align: start; scroll-margin-left: 44px; }
.web-run .cap-name { font-size: 15px; }

/* a frame: the short with crop marks, its caption set beneath */
.frame { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.plate { --m: rgba(16,18,20,.72); position: relative; display: block; padding: 9px;
  background:
    linear-gradient(var(--m), var(--m)) left 0 top 9px / 6px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) left 9px top 0 / 1px 6px no-repeat,
    linear-gradient(var(--m), var(--m)) right 0 top 9px / 6px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) right 9px top 0 / 1px 6px no-repeat,
    linear-gradient(var(--m), var(--m)) left 0 bottom 9px / 6px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) left 9px bottom 0 / 1px 6px no-repeat,
    linear-gradient(var(--m), var(--m)) right 0 bottom 9px / 6px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) right 9px bottom 0 / 1px 6px no-repeat; }
.plate .shot { aspect-ratio: 9 / 16; box-shadow: 0 0 0 1px rgba(16,18,20,.12); }
.cap { display: grid; gap: 3px; padding: 0 9px; min-width: 0; }
.cap-name { margin: 0; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap-name.two { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; }
a.cap-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cap-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: var(--t-sm); min-width: 0; }
.cap-row .mc { font-size: var(--t-lg); font-weight: 700; }
.cap-row .v { color: var(--ink); font-weight: 700; flex: none; font-variant-numeric: tabular-nums; }
.cap-act { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.cap-act .watch { font-size: var(--t-sm); }

/* ---------- sections ---------- */
.sec { margin-top: 56px; }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.sec-head h2 { font-size: 40px; line-height: 1; margin: 0; }
.sec-note { color: var(--ink-3); font-size: var(--t-sm); font-weight: 600; }
.sec-link { margin-left: auto; font-size: var(--t-sm); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
#trend:empty, #rows:empty { display: none; }
.frow-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 6px 22px; margin-bottom: 14px; }
.frow-head h2 { font-size: 48px; line-height: 1; margin: 0; }
.frow-head h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.frow-line { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--ink-2); font-size: var(--t-sm); }
.frow-line > span:not(:last-child)::after { content: ''; display: inline-block; width: 1px; height: .9em; background: var(--line-2); margin: 0 12px; vertical-align: -1px; }
.frow-act { display: flex; align-items: center; gap: 16px; }
.sheet { list-style: none; margin: 0; padding: 22px 22px 24px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: 0 1px 0 rgba(16,18,20,.04); }
.sheet.grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.sorts { margin-left: auto; display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 3px; }
.sorts button { border: 0; background: transparent; height: 32px; padding: 0 12px; border-radius: 4px; font-weight: 700; font-size: 14px; color: var(--ink-3); }
.sorts button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.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, .by > a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by a, .creator h3 a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

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: 26px; line-height: 1.05; font-weight: 700; letter-spacing: -.01em; }
.cbar { flex: 1; height: 6px; border-radius: 1px; background: #e8eae6; overflow: hidden; min-width: 40px; }
.cbar i { display: block; height: 100%; background: var(--ink); }

/* coin tables */
.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, .frow-t:hover { background: #fafbf9; }
.row-link, .row-h { display: grid; grid-template-columns: 34px 36px minmax(0, 1fr) 92px 66px 96px 112px 40px; align-items: center; gap: 14px; padding: 10px 0 10px 16px; }
.row-h { grid-template-columns: 34px 36px minmax(0, 1fr) 92px 66px 96px 112px 40px 84px; padding: 10px 16px; font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); }
.row-h > span:nth-child(n+4):nth-child(-n+6), .row-h > span:nth-child(8) { text-align: right; }
.r-i { color: var(--ink-3); font-size: var(--t-sm); }
.thumb { width: 36px; height: 50px; overflow: hidden; background: var(--screen); flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-name { display: grid; gap: 2px; 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-chg, .r-vol, .r-age { text-align: right; }
.r-vol { color: var(--ink-2); font-weight: 600; }
.r-age { color: var(--ink-3); font-weight: 600; font-size: var(--t-sm); }
.r-curve { display: flex; align-items: center; gap: 8px; font-size: var(--t-sm); color: var(--ink-2); }
.trow .btn-s { width: 84px; }

/* all feeds table */
.frow-t { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding-right: 16px; border-top: 1px solid var(--line); }
.f-link, .f-h { display: grid; grid-template-columns: 34px minmax(0, 1fr) 70px 110px 120px minmax(0, 280px); align-items: center; gap: 16px; padding: 12px 0 12px 16px; }
.f-h { grid-template-columns: 34px minmax(0, 1fr) 70px 110px 120px minmax(0, 280px) 96px; padding: 10px 16px; font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); }
.f-h > span:nth-child(n+3):nth-child(-n+5) { text-align: right; }
.f-name { font: 400 30px/1 var(--f-head); }
.f-link:hover .f-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.f-n, .f-mc, .f-vol { text-align: right; }
.f-mc { font-size: 16px; font-weight: 700; }
.f-vol { color: var(--ink-2); font-weight: 600; }
.f-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.f-top .thumb { width: 28px; height: 40px; }
.f-topn { display: grid; min-width: 0; font-size: var(--t-sm); }
.f-topn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-topn em { font-style: normal; }
.frow-t .follow { width: 96px; }

/* one feed */
.fhead { padding-top: 40px; padding-bottom: 8px; }
.crumb { font-size: var(--t-sm); font-weight: 700; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.fhead h1 { font-size: 124px; line-height: .88; margin: 14px 0 16px; }
.big-line { font-size: 16px; }
.fhead-act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.empty-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 44px 24px; text-align: center; color: var(--ink-2); }
.empty-panel h2, .empty-panel h3 { font: 400 32px/1.05 var(--f-head); color: var(--ink); margin: 0 0 8px; }
.empty-panel p { margin: 0 0 18px; }
.empty { padding: 80px 0; text-align: center; color: var(--ink-2); }
.empty h2 { font-size: 44px; color: var(--ink); margin: 0 0 8px; }
.empty .btn { margin-top: 16px; }

.page-head { padding-top: 48px; padding-bottom: 24px; }
.page-head h1 { font-size: 84px; line-height: .92; margin: 0 0 14px; }
.page-head p { color: var(--ink-2); font-size: 17px; margin: 0; max-width: 680px; }
.find-page { max-width: var(--max); }
.find-page label { max-width: 560px; }
.find-page input { height: 50px; font-size: 16px; }
.find-page svg { top: 16px; }

/* ---------- video shots (official players) ---------- */
.shot { position: relative; background: var(--screen); 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(13,15,16,.72); color: #fff; display: grid; place-items: center; }
.sound svg { width: 17px; height: 17px; }
.bar { height: 6px; border-radius: 1px; background: #e8eae6; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); }
.flash { animation: flash 1.1s ease; }
@keyframes flash { 0% { background-color: #d7ecf7; } 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; }

/* ---------- watch ---------- */
body.feed-on { background: #dfe2de; }
body.feed-on main { padding: 0; }
.watch-wrap { display: grid; grid-template-columns: 210px minmax(0, 1fr); max-width: var(--max); margin: 0 auto; }
.pick { display: flex; flex-direction: column; gap: 2px; padding: 24px 0 24px var(--gutter); height: calc(100dvh - var(--header-h) - 1px); overflow-y: auto; scrollbar-width: none; }
.pick a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 12px; border-radius: var(--r-s); font-weight: 650; color: var(--ink-2); font-size: 15px; }
.pick a:hover { color: var(--ink); background: rgba(16,18,20,.04); }
.pick a[aria-current="true"] { background: var(--ink); color: #fff; }
.pick .num { font-size: var(--t-xs); color: var(--ink-3); }
.pick a[aria-current="true"] .num { color: #aeb4b9; }
.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: auto minmax(0, 380px); justify-content: center; align-items: center; gap: var(--s-7); padding: 20px var(--gutter); overflow: hidden; }
.slide .gate { 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: var(--screen); overflow: hidden; box-shadow: 0 0 0 1px rgba(16,18,20,.2), 0 30px 60px -36px rgba(16,18,20,.7); }
.gate .shot { height: 100%; width: 100%; }
.slide-info { align-self: end; max-width: 380px; padding: 20px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.si-top { display: flex; align-items: baseline; gap: 12px; }
.si-top .muted { margin-left: auto; }
.slide-info .name { font-size: 40px; line-height: .98; margin: 8px 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); max-width: 190px; }

/* ---------- coin page ---------- */
.crumbs { display: flex; align-items: center; gap: 10px; padding-top: 22px; font-size: var(--t-sm); font-weight: 650; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.crumbs span:last-child { color: var(--ink); }
.coin { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) 340px; gap: var(--s-5); align-items: start; padding-top: 16px; }
.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; }
.ch-name .line1 { display: flex; align-items: baseline; gap: 14px; }
.coin-head h1 { font-size: 56px; line-height: .95; margin: 0; overflow-wrap: anywhere; }
.ch-data { display: flex; gap: 28px; margin: 0; }
.ch-data dd { font-size: var(--t-lg); }
.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: 4px; font-weight: 700; font-size: 14px; color: var(--ink-3); }
.tfs button[aria-pressed="true"] { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
#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(--ink); }
.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); }
.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: var(--r); border: 1px solid var(--line); padding: 0 14px; background: var(--raised); outline: none; }
.comment-form input:focus { border-color: var(--ink-3); background: var(--surface); }

.trade { padding: var(--s-4); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); padding: 3px; gap: 3px; }
.seg button { border: 0; height: 40px; border-radius: 4px; background: transparent; font-weight: 700; color: var(--ink-2); }
.seg button[aria-pressed="true"].b { background: var(--up); color: #fff; }
.seg button[aria-pressed="true"].s { background: var(--down); color: #fff; }
.amount { margin: var(--s-4) 0 var(--s-2); position: relative; }
.amount input { width: 100%; height: 54px; border-radius: var(--r); border: 1px solid var(--line); background: var(--raised); padding: 0 64px 0 16px; font-size: 22px; font-weight: 700; outline: none; }
.amount input:focus { border-color: var(--ink-3); background: var(--surface); }
.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(--surface); border-radius: var(--r-s); height: 32px; padding: 0 10px; font-weight: 700; font-size: 14px; }
.presets button:hover { border-color: var(--ink-3); }
.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; margin: 8px 0 6px; }
.creator, .more { margin-top: var(--s-4); padding: var(--s-4); }
.creator h3 { margin: 0 0 6px; font-size: var(--t-md); }
.creator p, .more 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; }
.more-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.more-head h3 { margin: 0; font-size: var(--t-md); }
.mini { list-style: none; margin: 0; padding: 0; }
.mini a { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.mini li:first-child a { border-top: 0; }
.mini .thumb { width: 28px; height: 40px; }
.mini a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.removed { display: grid; place-items: center; height: 100%; color: #aeb4b9; 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: var(--r); padding: 28px 30px 24px; }
.launch h1 { font-size: 64px; line-height: .95; margin: 0 0 var(--s-2); }
.launch .lead { margin: 0 0 var(--s-5); color: var(--ink-2); font-size: var(--t-md); }
.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, .field select { width: 100%; border-radius: var(--r); border: 1px solid var(--line); background: var(--raised); padding: 0 14px; height: 50px; outline: none; font-size: 16px; }
.field select { appearance: none; -webkit-appearance: none; font-weight: 650; cursor: pointer;
  background: var(--raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23101214' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 16px center; }
.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, .field select:focus { border-color: var(--ink-3); background-color: var(--surface); }
.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: #858c92; 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); border-radius: var(--r); padding: 0; width: min(440px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -24px rgba(16,18,20,.45); }
dialog::backdrop { background: rgba(16,18,20,.45); }
.dlg { padding: var(--s-5); }
.dlg h2 { font-size: 40px; line-height: 1; 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: var(--r); border: 1px solid var(--line); background: var(--surface); font-weight: 700; text-align: left; }
.wallets button:hover { border-color: var(--ink-3); }
.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: 22px; font-weight: 700; background: var(--raised); border: 1px dashed var(--line-2); padding: 16px; border-radius: var(--r); text-align: center; letter-spacing: .03em; 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: var(--r); cursor: pointer; font-size: var(--t-sm); }
.radio input { accent-color: var(--ink); }
.dlg textarea, .dlg input[type=text] { width: 100%; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; background: var(--raised); margin-bottom: 8px; outline: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r); font-weight: 600; z-index: 100; box-shadow: 0 14px 30px -12px rgba(16,18,20,.5); max-width: calc(100vw - 24px); }
.toast.good b { color: #7fd0f5; }
.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(--ink); color: #fff; font-size: 13px; font-weight: 700; flex-wrap: wrap; }
.castrip .live { color: #7fd0f5; }
.castrip .ca { border: 1px solid rgba(255,255,255,.3); background: transparent; color: inherit; font: inherit; padding: 4px 8px; border-radius: 4px; display: inline-flex; gap: 10px; cursor: pointer; font-variant-numeric: tabular-nums; }
.castrip .ca b { color: #7fd0f5; }
.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; color: #c7ccd0; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .r-curve, .row-h > span:nth-child(7) { display: none; }
  .row-link { grid-template-columns: 34px 36px minmax(0, 1fr) 92px 66px 96px 40px; }
  .row-h { grid-template-columns: 34px 36px minmax(0, 1fr) 92px 66px 96px 40px 84px; }
  .sheet { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sheet:not(.grid) > li:nth-child(n+6) { display: none; }
}
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .dir { max-width: 640px; }
  .coin { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); }
  .coin .side { grid-column: 2; }
  .find { flex-basis: 240px; min-width: 160px; }
  .sheet { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet:not(.grid) > li:nth-child(n+5) { display: none; }
  .f-link { grid-template-columns: 34px minmax(0, 1fr) 70px 110px 120px; }
  .f-h { grid-template-columns: 34px minmax(0, 1fr) 70px 110px 120px 96px; }
  .f-top, .f-h > span:nth-child(6) { display: none; }
  .watch-wrap { grid-template-columns: 170px minmax(0, 1fr); }
}
.find-m { display: none; }
@media (max-width: 960px) { .find:not(.find-page) { display: none; } .find-m { display: grid; place-items: center; width: 38px; height: 38px; color: var(--ink); flex: none; } .find-m svg { width: 20px; height: 20px; } }
@media (max-width: 860px) {
  :root { --header-h: 60px; --gutter: 16px; }
  .top-in { gap: 10px; }
  .mark { width: 26px; height: 26px; }
  .word { font-size: 32px; }
  .nav { 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; }
  .hero { padding-top: 28px; padding-bottom: 32px; gap: 24px; }
  .hero-text { padding-top: 0; }
  .hero-text h1 { font-size: 68px; margin-bottom: 18px; }
  .hero-text p { font-size: 16px; margin-bottom: 20px; }
  .hero-act .btn { flex: 1 1 auto; height: 46px; padding: 0 16px; font-size: 15px; }
  .dir { padding: 14px 16px 6px; }
  .press { padding: 24px 0 30px; }
  .press-head { margin-bottom: 16px; }
  .press-head h2 { font-size: 34px; }
  .press-note { flex-basis: 100%; order: 3; }
  .press-nav { display: none; }
  .press-in { padding: 0; }
  .press-head { padding: 0 var(--gutter); }
  .roller { width: 16px; margin: -10px 0; border-radius: 8px / 6px; }
  .machine::before { left: 16px; width: 20px; } .machine::after { right: 16px; width: 20px; }
  .web-run { padding: 18px 20px 18px; gap: 18px; }
  .web-run .frame { width: 150px; scroll-margin-left: 20px; }
  .web-run .cap-row .mc { font-size: 16px; }
  .sec { margin-top: 40px; }
  .sec-head h2 { font-size: 34px; }
  .sec-note { display: none; }
  .frow-head { grid-template-columns: minmax(0, 1fr) auto; }
  .frow-head h2 { font-size: 40px; }
  .frow-line { grid-column: 1 / -1; grid-row: 2; }
  .frow-act { grid-column: 2; grid-row: 1; gap: 12px; }
  .frow-act .sec-link { display: none; }
  .sheet { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 16px; gap: 14px; margin: 0 calc(-1 * var(--gutter)); border-radius: 0; border-left: 0; border-right: 0; }
  .sheet::-webkit-scrollbar { display: none; }
  .sheet > li, .sheet:not(.grid) > li:nth-child(n+5) { display: flex; flex: 0 0 44%; scroll-snap-align: start; }
  .sheet.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .sheet.grid > li { flex: none; }
  .cap-name { font-size: 14px; }
  .cap-row .mc { font-size: 16px; }
  .cap-act .btn { flex: 1; }
  .cap-act .watch { display: none; }
  .sorts { margin-left: 0; width: 100%; }
  .sorts button { flex: 1 1 auto; padding: 0 4px; font-size: 13px; white-space: nowrap; }
  .row-h, .f-h { display: none; }
  .trow { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .trow .btn-s { display: none; }
  .row-link { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 12px; }
  .r-i, .r-vol, .r-age, .r-curve { display: none; }
  .row-link .thumb, .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; }
  .frow-t { padding-right: 12px; }
  .f-link { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0 12px 12px; }
  .f-link .r-i { display: block; grid-row: 1 / span 2; }
  .f-name { grid-row: 1 / span 2; font-size: 26px; }
  .f-n { display: none; }
  .f-mc { grid-column: 3; grid-row: 1; font-size: 15px; }
  .f-vol { grid-column: 3; grid-row: 2; font-size: 13px; }
  .frow-t .follow { width: auto; }
  .fhead { padding-top: 24px; }
  .fhead h1 { font-size: 84px; }
  .fhead-act .btn { flex: 1 1 auto; }
  .page-head { padding-top: 28px; padding-bottom: 18px; }
  .page-head h1 { font-size: 58px; }
  .page-head p { font-size: 15px; }
  .crumbs { padding-top: 14px; }
  .coin { grid-template-columns: 1fr; gap: var(--s-3); padding-top: 12px; }
  .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: 44px; }
  .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: 50px; }
  .launch .gate { position: relative; top: 0; width: 60%; margin: 0 auto; order: -1; }
  .launch .gate:has(.blank) { display: none; }
  .two { grid-template-columns: 1fr 120px; }
  .watch-wrap { grid-template-columns: 1fr; }
  .pick { flex-direction: row; height: 52px; padding: 8px var(--gutter); overflow-x: auto; overflow-y: hidden; gap: 4px; border-bottom: 1px solid var(--line); background: var(--surface); }
  .pick::-webkit-scrollbar { display: none; }
  .pick a { flex: none; padding: 7px 12px; font-size: 14px; }
  .slide { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .feed .gate { height: 100%; width: 100%; max-width: none; aspect-ratio: auto; box-shadow: none; }
  .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(13,15,16,.92)); color: #fff; }
  .overlay-info .name { font: 400 32px/1 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 .up { color: #4fd49a; } .overlay-info .meta .down { color: #ff8a7d; }
  .overlay-info .meta .src { color: #fff; text-decoration: underline; text-underline-offset: 3px; position: relative; z-index: 4; }
  .overlay-info .nocoin { color: #c7ccd0; 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(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); 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 - 52px - 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-in .btn { padding: 0 11px; }
  .hero-text h1 { font-size: 60px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-width: 860px) { .toast { bottom: calc(76px + env(safe-area-inset-bottom)); } }
