@font-face { font-family: 'Gasoek'; src: url(/fonts/gasoek.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'BVP'; src: url(/fonts/bvp-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'BVP'; src: url(/fonts/bvp-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'BVP'; src: url(/fonts/bvp-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'BVP'; src: url(/fonts/bvp-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'BVP'; src: url(/fonts/bvp-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Victor'; src: url(/fonts/victor-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Victor'; src: url(/fonts/victor-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }

:root {
  /* light table + contact sheet */
  --table: #eef0ea;          /* backlit opal glass */
  --table-2: #e3e6de;
  --paper: #fbfbf8;
  --ink: #15140f;
  --ink-2: #57564e;
  --ink-3: #8b8a80;
  --rebate: #17130f;         /* film base */
  --rebate-2: #241e18;
  --edge: #e8a33d;           /* edge print */
  --edge-dim: #a57a3c;
  --marker: #f05a0e;         /* china marker */
  --marker-ink: #c94300;
  --up: #12985a;
  --down: #d8352a;
  --line: #d3d6cc;
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 10px 30px -18px rgba(30,28,20,.45);

  --f-display: 'Gasoek', 'BVP', system-ui, sans-serif;
  --f-text: 'BVP', system-ui, -apple-system, sans-serif;
  --f-mono: 'Victor', ui-monospace, Menlo, monospace;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;
  --t-xs: 12px; --t-sm: 13px; --t-md: 15px; --t-lg: 18px; --t-xl: 24px; --t-2xl: 34px;
  --r: 10px;
  --header-h: 76px;
  --sprocket: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12'%3E%3Crect x='3' y='3' width='9' height='6.5' rx='1.6' fill='%23eef0ea'/%3E%3C/svg%3E");
  --sprocket-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='16'%3E%3Crect x='3' y='3' width='6.5' height='9' rx='1.6' fill='%23eef0ea'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--table); color: var(--ink);
  font: 400 var(--t-md)/1.45 var(--f-text);
  background-image: radial-gradient(120% 80% at 50% 0%, #f7f8f3 0%, var(--table) 55%, var(--table-2) 100%);
  background-attachment: fixed;
  min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.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); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  display: flex; align-items: center; gap: var(--s-5); padding: 0 var(--s-6);
  background: rgba(238,240,234,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 38px; height: 46px; flex: none; }
.brand b { font: 400 34px/1 var(--f-display); letter-spacing: -.02em; transform: translateY(-1px); }
.nav { display: flex; gap: var(--s-1); }
.nav a { padding: 9px 14px; border-radius: 999px; font-weight: 600; color: var(--ink-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.search { flex: 1; max-width: 380px; position: relative; }
.search input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); padding: 0 16px 0 40px; outline: none; }
.search input:focus { border-color: var(--ink-3); }
.search svg { position: absolute; left: 14px; top: 12px; width: 18px; height: 18px; color: var(--ink-3); }
.top .spacer { flex: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px; border: 0; font-weight: 700; font-size: var(--t-md);
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-marker { background: var(--marker); color: #fff; box-shadow: 0 2px 0 var(--marker-ink), 0 8px 18px -10px rgba(240,90,14,.9); }
.btn-marker:hover { background: #ff6a1d; }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 0 2px 0 #000; }
.btn-ink:hover { background: #2a2820; }
.btn-ghost { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 2px 0 var(--line); }
.btn-ghost:hover { box-shadow: 0 0 0 1px var(--ink-3), 0 2px 0 var(--line); }
.btn-buy { background: var(--up); color: #fff; box-shadow: 0 2px 0 #0b6b3e; }
.btn-sell { background: var(--down); color: #fff; box-shadow: 0 2px 0 #9b2018; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.wallet-btn .bal { font-family: var(--f-mono); font-weight: 600; color: var(--ink); }
.wallet-btn .addr { font-family: var(--f-mono); font-size: var(--t-sm); color: var(--ink-3); font-weight: 400; }

main { padding: var(--s-5) var(--s-6) 96px; max-width: 1480px; margin: 0 auto; }

/* ---------- board ---------- */
.board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin: var(--s-3) 0 var(--s-5); flex-wrap: wrap; }
.board-head h1 { font: 400 var(--t-2xl)/1.05 var(--f-display); margin: 0; letter-spacing: -.01em; max-width: 16ch; }
.sorts { display: flex; gap: 6px; background: var(--table-2); padding: 4px; border-radius: 999px; }
.sorts button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--ink-2); }
.sorts button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

/* the contact sheet: rows of film strips */
.sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); row-gap: 26px; column-gap: 0; }
.frame { position: relative; background: var(--rebate); color: var(--edge); padding: 22px 7px 0; min-width: 0; }
.frame::before, .frame::after { content: ''; position: absolute; left: 0; right: 0; height: 12px; background: var(--sprocket) repeat-x; background-size: 16px 12px; opacity: .92; }
.frame::before { top: 4px; }
.frame::after { bottom: 4px; }
.frame .shot { position: relative; aspect-ratio: 9 / 16; background: #0c0a08; border-radius: 3px; overflow: hidden; }
.frame .shot img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.frame .shot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .35s ease; }
.frame .shot.live iframe { opacity: 1; }
.frame .shot .catch { position: absolute; inset: 0; z-index: 2; }
.frame .edge { display: flex; justify-content: space-between; gap: 8px; font: 600 var(--t-xs)/1 var(--f-mono); padding: 9px 3px 26px; color: var(--edge); white-space: nowrap; }
.frame .edge .tick { overflow: hidden; text-overflow: ellipsis; }
.frame .edge .mc { color: #f4e7c9; }
.frame .no { position: absolute; top: 6px; left: 10px; right: 10px; display: flex; justify-content: space-between; font: 400 10px/1 var(--f-mono); color: var(--edge-dim); z-index: 1; pointer-events: none; }
.frame .no span { background: var(--rebate); padding: 0 3px; }
.frame-meta { padding: 10px 2px 0; }
.frame-meta .name { font-weight: 700; font-size: var(--t-md); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.frame-meta .by { color: var(--ink-2); font-size: var(--t-sm); display: flex; gap: 6px; align-items: center; margin-top: 2px; white-space: nowrap; overflow: hidden; }
.frame-meta .by svg { width: 14px; height: 14px; flex: none; }
.frame-meta .row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; font-size: var(--t-sm); }
.cell { min-width: 0; display: block; }
.cell + .cell .frame { border-left: 1px solid #2c241c; }
.bar { height: 4px; border-radius: 2px; background: var(--table-2); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: 2px; }
.sound { position: absolute; z-index: 3; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 999px; border: 0; background: rgba(15,12,9,.66); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.sound svg { width: 18px; height: 18px; }

/* china-marker pick around the top frame */
.cell.pick { position: relative; z-index: 2; }
.cell.pick .marker-ring { position: absolute; left: -12px; top: -14px; width: calc(100% + 24px); height: calc(100% + 26px); pointer-events: none; z-index: 4; overflow: visible; }
.cell.pick .marker-ring path { fill: none; stroke: var(--marker); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .92; }
.flash { animation: flash 1.1s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--edge); } 100% { box-shadow: 0 0 0 0 transparent; } }

.empty { padding: 80px 0; text-align: center; color: var(--ink-2); }
.empty h2 { font: 400 var(--t-xl)/1.2 var(--f-display); color: var(--ink); margin: 0 0 var(--s-3); }
.more { display: flex; justify-content: center; margin-top: var(--s-6); }

/* ---------- feed ---------- */
body.feed-on main { padding: 0; max-width: none; }
.feed { height: calc(100dvh - var(--header-h)); overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.slide { height: calc(100dvh - var(--header-h)); scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-6); padding: 18px var(--s-6); }
.slide .gate { grid-column: 2; height: calc(100dvh - var(--header-h) - 36px); width: auto; }
.gate { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: calc(100vw - 2 * var(--s-6)); background: var(--rebate); padding: 0 22px; border-radius: 4px; }
.gate::before, .gate::after { content: ''; position: absolute; top: 0; bottom: 0; width: 12px; background: var(--sprocket-v) repeat-y; background-size: 12px 16px; }
.gate::before { left: 5px; } .gate::after { right: 5px; }
.gate .shot { position: relative; height: 100%; width: 100%; background: #0c0a08; overflow: hidden; border-radius: 3px; }
.gate .shot img { width: 100%; height: 100%; object-fit: cover; }
.gate .shot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .35s ease; }
.gate .shot.live iframe { opacity: 1; }
.gate .shot .catch { position: absolute; inset: 0; z-index: 2; }
.gate .edge-v { position: absolute; right: -2px; top: 50%; transform: translate(100%, -50%) rotate(90deg); transform-origin: left center; font: 600 11px/1 var(--f-mono); color: var(--edge-dim); white-space: nowrap; }
.slide-info { grid-column: 3; align-self: end; max-width: 340px; padding-bottom: 12px; }
.slide-info .name { font: 400 var(--t-2xl)/1.05 var(--f-display); margin: 0 0 6px; overflow-wrap: anywhere; }
.slide-info .tick { font: 600 var(--t-md)/1 var(--f-mono); color: var(--ink-2); }
.slide-info .stats { display: grid; grid-template-columns: auto auto; gap: 6px 18px; margin: var(--s-4) 0; font-size: var(--t-md); justify-content: start; }
.slide-info .stats dt { color: var(--ink-2); } .slide-info .stats dd { margin: 0; font-weight: 600; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.quick .btn { height: 46px; padding: 0 16px; }
.slide-info .by { margin-top: var(--s-4); color: var(--ink-2); font-size: var(--t-sm); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.slide-info .by a { text-decoration: underline; text-underline-offset: 3px; }
.overlay-info { display: none; }
.feed-hint { position: fixed; left: var(--s-6); bottom: var(--s-6); color: var(--ink-3); font: 400 var(--t-xs)/1.4 var(--f-mono); }

/* ---------- coin page ---------- */
.coin { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr) 340px; gap: var(--s-5); align-items: start; }
.coin .gate { height: auto; width: 100%; aspect-ratio: 9 / 16; max-width: 400px; position: sticky; top: calc(var(--header-h) + 20px); }
.coin .gate .shot { height: 100%; }
.panel { background: var(--paper); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.coin-head { padding: var(--s-5); display: flex; gap: var(--s-4); align-items: flex-start; }
.coin-head h1 { font: 400 30px/1.05 var(--f-display); margin: 0; overflow-wrap: anywhere; }
.coin-head .tick { font: 600 var(--t-md)/1 var(--f-mono); color: var(--ink-2); margin-top: 6px; }
.coin-head .mc { margin-left: auto; text-align: right; }
.coin-head .mc b { display: block; font: 600 28px/1.1 var(--f-mono); letter-spacing: -.02em; }
.coin-head .mc span { font-size: var(--t-sm); white-space: nowrap; }
.coin-head .mc { flex: none; }
.chart-wrap { padding: 0 var(--s-3) var(--s-3); }
.tfs { display: flex; gap: 4px; padding: 0 var(--s-3) var(--s-2); }
.tfs button { border: 0; background: transparent; padding: 6px 10px; border-radius: 8px; font: 600 var(--t-sm)/1 var(--f-mono); color: var(--ink-2); }
.tfs button[aria-pressed="true"] { background: var(--table-2); 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(--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 #ecede6; font-size: var(--t-sm); }
.list li:last-child { border-bottom: 0; }
.addr { font: 400 var(--t-sm)/1 var(--f-mono); color: var(--ink-2); }
.list .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.list .muted { color: var(--ink-3); font-size: var(--t-xs); white-space: nowrap; }
.comment-form { display: flex; gap: 8px; margin-bottom: var(--s-3); }
.comment-form input { flex: 1; min-width: 0; height: 44px; border-radius: 10px; border: 1px solid var(--line); padding: 0 14px; background: var(--table); outline: none; }

.trade { padding: var(--s-4); position: sticky; top: calc(var(--header-h) + 20px); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--table-2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { border: 0; height: 42px; border-radius: 9px; background: transparent; font-weight: 800; 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: 56px; border-radius: 12px; border: 1px solid var(--line); background: var(--table); padding: 0 70px 0 16px; font: 600 22px/1 var(--f-mono); outline: none; }
.amount input:focus { border-color: var(--ink-2); background: var(--paper); }
.amount span { position: absolute; right: 16px; top: 18px; font: 600 var(--t-md)/1 var(--f-mono); 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(--paper); border-radius: 8px; height: 32px; padding: 0 10px; font: 600 var(--t-sm)/1 var(--f-mono); }
.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: 54px; font-size: var(--t-lg); }
.curve { margin-top: var(--s-5); font-size: var(--t-sm); color: var(--ink-2); }
.curve .bar { height: 10px; border-radius: 5px; margin: 8px 0 6px; }
.curve .bar i { background: linear-gradient(90deg, var(--edge), var(--marker)); }
.creator { margin-top: var(--s-4); padding: var(--s-4); }
.creator h3 { margin: 0 0 6px; font-size: var(--t-md); }
.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: 38px; font-size: var(--t-sm); padding: 0 14px; }
.removed { display: grid; place-items: center; height: 100%; color: var(--edge); font: 600 var(--t-sm)/1.4 var(--f-mono); text-align: center; padding: 20px; }

/* ---------- launch ---------- */
.launch { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-6); align-items: start; }
.launch h1 { font: 400 40px/1.05 var(--f-display); margin: var(--s-3) 0 var(--s-5); }
.field { display: block; margin-bottom: var(--s-4); }
.field > span { display: block; font-weight: 700; margin-bottom: 6px; }
.field small { color: var(--ink-3); font-weight: 500; }
.field input, .field textarea { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); padding: 0 16px; height: 52px; outline: none; font-size: 16px; }
.field textarea { height: 92px; padding: 12px 16px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink-2); }
.paste { position: relative; }
.paste input { height: 60px; font-size: 17px; padding-right: 120px; }
.paste .btn { position: absolute; right: 8px; top: 8px; height: 44px; }
.platforms { display: flex; gap: 14px; color: var(--ink-3); font-size: var(--t-sm); margin-top: 8px; align-items: center; }
.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) + 20px); }
.launch .gate .shot { height: 100%; }
.launch .gate .blank { display: grid; place-items: center; height: 100%; color: var(--edge-dim); font: 400 var(--t-sm)/1.5 var(--f-mono); text-align: center; padding: 24px; }
.msg { min-height: 22px; font-size: var(--t-sm); margin: 6px 0 var(--s-3); }
.msg.err { color: var(--down); }
.msg a { text-decoration: underline; }
.fine { color: var(--ink-3); font-size: var(--t-xs); margin-top: var(--s-4); line-height: 1.5; }

/* ---------- dialog ---------- */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(440px, calc(100vw - 24px)); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
dialog::backdrop { background: rgba(23,19,15,.45); backdrop-filter: blur(3px); }
.dlg { padding: var(--s-5); }
.dlg h2 { font: 400 var(--t-xl)/1.15 var(--f-display); 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); }
.wallets { display: grid; gap: 8px; }
.wallets button { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); font-weight: 700; text-align: left; }
.wallets button:hover { border-color: var(--ink-2); }
.wallets img { width: 28px; height: 28px; border-radius: 8px; }
.code { font: 600 22px/1 var(--f-mono); background: var(--rebate); color: var(--edge); padding: 16px; border-radius: 10px; text-align: center; letter-spacing: .02em; 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(--ink); }
.dlg textarea, .dlg input[type=text] { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--table); margin-bottom: 8px; outline: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 100; box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); max-width: calc(100vw - 32px); }
.toast.good b { color: #7ee2a8; }
.foot { margin-top: 64px; 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; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .coin { grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); }
  .coin .side { grid-column: 2; }
  .coin .trade { position: static; }
}
@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .top { padding: 0 14px; gap: 10px; }
  .brand svg { width: 30px; height: 36px; }
  .brand b { font-size: 27px; }
  .nav, .search { display: none; }
  .top .btn { height: 40px; padding: 0 14px; font-size: 14px; }
  .top .launch-btn .long { display: none; }
  .top .launch-btn .short-l { display: inline; }
  .wallet-btn .addr { display: none; }
  .brand { flex: none; }
  html, body { overflow-x: hidden; }
  main { padding: var(--s-4) 12px 110px; }
  .board-head h1 { font-size: 26px; }
  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .frame { padding: 20px 5px 0; }
  .frame .edge { font-size: 11px; padding: 8px 2px 24px; }
  .frame-meta { padding: 8px 4px 0; }
  .coin { grid-template-columns: 1fr; }
  .coin { gap: var(--s-3); }
  .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); }
  .coin-head h1 { font-size: 24px; }
  .coin-head .mc b { font-size: 22px; }
  #chart { height: 260px; }
  .launch { grid-template-columns: 1fr; }
  .launch h1 { font-size: 30px; }
  .launch .gate { position: relative; top: 0; width: 62%; margin: 0 auto; order: -1; }
  .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; padding: 0 16px; border-radius: 0; }
  .gate::before { left: 2px; } .gate::after { right: 2px; }
  .feed .gate .edge-v { display: 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(10,8,6,.86)); color: #fff; }
  .overlay-info .name { font: 400 22px/1.1 var(--f-display); 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: 600; }
  .overlay-info .up { color: #5ee39a; } .overlay-info .down { color: #ff7b70; }
  .overlay-info .quick .btn { height: 42px; padding: 0 12px; flex: 1; }
  .overlay-info .quick .btn-ghost { flex: 0 0 auto; background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
  .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: rgba(251,251,248,.94); backdrop-filter: blur(14px); 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: 11px; 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 .mobile-nav { background: rgba(15,12,9,.92); border-color: #2a231c; }
  body.feed-on .mobile-nav a { color: #9a917f; } body.feed-on .mobile-nav a[aria-current="page"] { color: #fff; }
  body.feed-on .feed, body.feed-on .slide { height: calc(100dvh - var(--header-h) - 64px - env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* link to the original video */
.ext-i { width: 10px; height: 10px; margin-left: 4px; vertical-align: 0; flex: none; }
.watch { display: inline-flex; align-items: center; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.overlay-info .meta .src { color: #fff; text-decoration: underline; text-underline-offset: 3px; position: relative; z-index: 4; }

/* trending shorts that are not a coin yet: frames on the sheet that were never developed */
.trend { margin-top: var(--s-6, 40px); }
.trend:empty { display: none; }
.trend-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; border-top: 2px dashed rgba(21,20,15,.18); padding-top: 22px; }
.trend-head h2 { font: 400 26px/1.05 var(--f-display); margin: 0 0 6px; }
.trend-head p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.sheet-empty + .trend .trend-head { border-top: 0; padding-top: 0; }
.sheet-empty { padding: 4px 0 8px; color: var(--ink-2); }
.sheet-empty a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.trend-cell .frame { background: #2a2520; }
.trend-cell .frame .edge .tick { color: var(--edge); letter-spacing: .08em; }
.trend-cell .shot .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.5); }
.trend-cell .shot .noimg svg { width: 40px; height: 40px; }
.trend-act { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.trend-act .btn { height: 36px; padding: 0 14px; font-size: var(--t-sm); }
.trend-act .watch { font-size: var(--t-sm); }
.nocoin { color: var(--edge); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; }
.overlay-info .nocoin { color: #ffc36b; }
.overlay-info .quick .btn-marker { flex: 1; }

.wallets > a.btn { display: flex; justify-content: center; margin-top: 8px; width: 100%; }
.sorts[hidden] { display: none; }


.feeline { margin: 8px 0 0; font-size: var(--t-xs); color: var(--ink-2); text-align: center; }
