/* Loops – a quiet media / trading surface. The video is the only picture on the page;
   the chrome is white cards, hairlines, one petrol accent and tabular numbers. */
@font-face { font-family: 'Stack Sans Headline'; src: url(/fonts/stack-sans-headline.woff2) format('woff2'); font-weight: 200 700; font-display: swap; }
@font-face { font-family: 'Stack Sans Text'; src: url(/fonts/stack-sans-text.woff2) format('woff2'); font-weight: 200 700; font-display: swap; }

:root {
  --bg: #f3f4f1; --surface: #ffffff; --surface-2: #f7f8f6; --line: #e3e5e0; --line-2: #cfd2cc;
  --ink: #111513; --ink-2: #49514c; --ink-3: #7b827e;
  --stage: #0f1312; --stage-2: #1a201e;
  --brand: #0e5c56; --brand-2: #0b4b46; --brand-soft: #e4efed;
  --up: #16804a; --down: #c0392f;
  --text: 'Stack Sans Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Stack Sans Headline', 'Stack Sans Text', system-ui, sans-serif;
  --head: 64px; --top: var(--head);
  --t-xs: 12px; --t-sm: 13.5px; --t-md: 15px; --t-lg: 17px; --t-xl: 24px; --t-2xl: 34px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-md)/1.5 var(--text); -webkit-font-smoothing: antialiased; min-height: 100dvh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.num, .addr { font-variant-numeric: tabular-nums lining-nums; }
.addr { font-size: var(--t-xs); color: var(--ink-3); overflow-wrap: anywhere; }
.muted { color: var(--ink-3); }
.up { color: var(--up); } .down { color: var(--down); }
.fine { font-size: var(--t-xs); line-height: 1.55; color: var(--ink-3); }
.tick { font: 600 var(--t-sm)/1.1 var(--text); color: var(--brand); letter-spacing: .01em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid transparent; font: 600 var(--t-md)/1 var(--text); white-space: nowrap; transition: background-color .12s ease, border-color .12s ease, transform .06s ease; user-select: none; font-variant-numeric: tabular-nums; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-pri { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(14,92,86,.35), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-pri:hover:not(:disabled) { background: var(--brand-2); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.1); }
.btn-ink:hover:not(:disabled) { background: #26302c; }
.btn-red { background: var(--down); color: #fff; box-shadow: 0 1px 2px rgba(192,57,47,.35); }
.btn-red:hover:not(:disabled) { background: #a83128; }
.btn-sell { background: var(--surface); color: var(--down); border-color: #e2b8b3; }
.btn-sell:hover:not(:disabled) { background: #fbf1f0; border-color: var(--down); }
.btn-plain { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: 0 1px 1px rgba(17,21,19,.05); }
.btn-plain:hover:not(:disabled) { border-color: var(--ink-3); }
.wide { width: 100%; }
.big { height: 52px; font-size: var(--t-lg); }
.ext-i { width: 10px; height: 10px; margin-left: 4px; flex: none; }

/* ---------- header ---------- */
header.top { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 24px; padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; flex: none; }
.brand svg { width: 32px; height: 32px; }
.brand b { font: 600 23px/1 var(--display); letter-spacing: -.02em; }
.nav { display: flex; gap: 2px; align-self: stretch; }
.nav a { display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; font-weight: 500; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nav a svg { width: 17px; height: 17px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current=page] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.search { position: relative; display: flex; align-items: center; width: 320px; }
.search svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; height: 40px; padding: 0 12px 0 36px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); outline: none; }
.search input:focus { border-color: var(--brand); background: var(--surface); }
.spacer { flex: 1; }
.launch-btn .shorter { display: none; }
.wallet-btn { min-width: 112px; }
.wallet-btn .bal { font-weight: 600; }
.wallet-btn .addr { font-size: var(--t-xs); color: var(--ink-3); }

/* ---------- players (shared) ---------- */
.shot { position: relative; overflow: hidden; background: var(--stage-2); }
.shot > img { width: 100%; height: 100%; object-fit: cover; }
.shot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .35s ease; z-index: 1; }
.shot.live iframe { opacity: 1; }
.shot .catch { position: absolute; inset: 0; z-index: 2; }
.sound { position: absolute; z-index: 4; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(15,19,18,.6); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.sound svg { width: 18px; height: 18px; }
.noimg { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.4); }
.noimg svg { width: 40px; height: 40px; }
.blank { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.5); font-size: var(--t-sm); text-align: center; padding: 20px; }
.removed { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: #fff; font-size: var(--t-sm); }

/* ---------- watch (home) ---------- */
body.on-watch { overflow: hidden; }
body.on-watch .castrip { display: none; }
.watch { display: grid; grid-template-columns: 248px minmax(0, 1fr) 372px; gap: 24px; height: calc(100dvh - var(--top)); max-width: 1640px; margin: 0 auto; padding: 20px 24px 24px; }
.upnext { display: flex; flex-direction: column; min-height: 0; }
.upnext h2 { font: 600 var(--t-sm)/1 var(--text); color: var(--ink-2); margin: 4px 2px 12px; }
.strip { list-style: none; margin: 0; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.strip button { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; padding: 8px; background: none; border: 0; border-radius: var(--r-sm); text-align: left; align-content: center; }
.strip button:hover { background: var(--surface-2); }
.strip .thumb { grid-row: span 2; width: 44px; aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; background: var(--stage-2); display: grid; place-items: center; color: rgba(255,255,255,.5); }
.strip .thumb img { width: 100%; height: 100%; object-fit: cover; }
.strip .thumb svg { width: 18px; height: 18px; }
.strip .t { font-weight: 500; font-size: var(--t-sm); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; align-self: end; }
.strip .s { font-size: var(--t-xs); color: var(--ink-3); align-self: start; display: flex; gap: 8px; }
.strip .s b { font-weight: 600; color: var(--brand); }
.strip-end { padding: 14px 10px; font-size: var(--t-sm); color: var(--ink-3); }
.strip-end a { color: var(--brand); font-weight: 600; }
.upnext .fine { margin-top: 12px; padding: 0 2px; }

.stage { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 0; background: var(--stage); }
.reel { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.reel::-webkit-scrollbar { display: none; }
.slide { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; padding: 20px 0; }
.slide .shot { height: 100%; aspect-ratio: 9 / 16; max-width: calc(100% - 150px); border-radius: var(--r-md); }
.cap { display: none; }
.steps { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); display: grid; gap: 8px; z-index: 5; }
.steps button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: background-color .12s ease; }
.steps button:hover:not(:disabled) { background: rgba(255,255,255,.18); }
.steps button:disabled { opacity: .3; cursor: default; }
.steps svg { width: 20px; height: 20px; }
.keys { position: absolute; left: 18px; bottom: 16px; z-index: 5; font-size: var(--t-xs); color: rgba(255,255,255,.5); }
.end-card { width: min(420px, calc(100% - 48px)); background: var(--surface); border-radius: var(--r-lg); padding: 32px 28px; text-align: center; }
.end-card svg { width: 44px; height: 44px; margin: 0 auto 16px; display: block; }
.end-card h2 { font: 600 22px/1.25 var(--display); letter-spacing: -.01em; margin-bottom: 8px; }
.end-card p { color: var(--ink-2); font-size: var(--t-sm); }
.end-act { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 20px 0 18px; }
.end-card .fine { color: var(--ink-3); }

/* cards */
.label { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.panel { min-height: 0; overflow-y: auto; scrollbar-width: none; }
.panel .label { display: flex; flex-direction: column; }
.p-state { font: 500 var(--t-sm)/1 var(--text); color: var(--ink-3); margin-bottom: 10px; }
.p-name { font: 600 var(--t-xl)/1.2 var(--display); letter-spacing: -.015em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.p-tick { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; }
.p-tick .tick { font-size: var(--t-md); }
.p-tick a { font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.p-tick a:hover { color: var(--ink); text-decoration-color: currentColor; }
.p-stats { margin: 20px 0 12px; }
.p-stats div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: var(--t-sm); padding: 9px 0; border-top: 1px solid var(--line); }
.p-stats dt { color: var(--ink-2); }
.p-stats dd { margin: 0; font-weight: 600; }
.p-stats div:first-child { display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 0 0 14px; border-top: 0; }
.p-stats div:first-child dt { grid-column: 1 / -1; font-size: var(--t-xs); color: var(--ink-3); margin-bottom: 4px; }
.p-stats div:first-child dd { font: 600 38px/1 var(--display); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.p-stats div:first-child dd.p-chg { font: 500 var(--t-sm)/1 var(--text); color: var(--ink-3); letter-spacing: 0; align-self: end; text-align: right; padding-bottom: 3px; }
.p-stats .p-chg .num { font-size: var(--t-md); font-weight: 600; }
.curve { height: 4px; border-radius: 2px; background: #e9ebe7; overflow: hidden; }
.curve i { display: block; height: 100%; background: var(--brand); border-radius: 2px; }
.buys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.buys .btn { height: 56px; padding: 0 6px; flex-direction: column; gap: 4px; font-size: var(--t-md); }
.buys small { font-size: 11px; font-weight: 500; opacity: .75; }
.sells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.hold { font-size: var(--t-sm); color: var(--ink-2); margin: 14px 0 4px; min-height: 20px; }
.panel .fine { margin-top: 6px; }
.p-video { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.panel .p-video { margin-top: 18px; }
.p-by { display: flex; align-items: center; gap: 7px; font-size: var(--t-sm); font-weight: 600; flex-wrap: wrap; }
.p-by svg { width: 16px; height: 16px; flex: none; }
.p-by a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.p-video .muted { font-size: var(--t-xs); }
.p-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.p-links .btn { height: 34px; padding: 0 12px; font-size: var(--t-sm); font-weight: 500; }
.label .btn-ink.big { margin-top: 20px; }
.buybar { display: none; }

/* ---------- board ---------- */
.board { max-width: 1440px; margin: 0 auto; padding: 32px 24px 10px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sec-head h1 { font: 600 var(--t-2xl)/1.1 var(--display); letter-spacing: -.02em; }
.sec-head h2 { font: 600 var(--t-xl)/1.15 var(--display); letter-spacing: -.015em; }
.sec-sub { color: var(--ink-2); font-size: var(--t-sm); margin: -10px 0 20px; }
.tabs-plain { display: flex; gap: 2px; flex-wrap: wrap; background: #e9ebe7; padding: 3px; border-radius: 10px; }
.tabs-plain button { height: 32px; padding: 0 12px; background: none; border: 0; border-radius: 7px; font-weight: 500; font-size: var(--t-sm); color: var(--ink-2); }
.tabs-plain button:hover { color: var(--ink); }
.tabs-plain button[aria-pressed=true] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(17,21,19,.12); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.tile { display: block; background: var(--surface); border-radius: var(--r-md); padding: 8px; border: 1px solid var(--line); transition: border-color .15s ease, box-shadow .15s ease; }
a.tile:hover { border-color: var(--line-2); box-shadow: 0 6px 20px -10px rgba(17,21,19,.25); }
.tile .shot { aspect-ratio: 9 / 16; border-radius: var(--r-sm); }
.tile .sound { top: auto; bottom: 8px; right: 8px; width: 32px; height: 32px; }
.tile.lead { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.tile.tick-flash { animation: flash .9s ease; }
@keyframes flash { 0% { background: var(--brand-soft); } 100% { background: var(--surface); } }
.t-body { padding: 10px 4px 4px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.t-name { font-weight: 500; font-size: var(--t-sm); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.t-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: var(--t-sm); }
.t-row .mc { font-weight: 600; margin-left: auto; }
.t-row .chg { font-size: var(--t-xs); font-weight: 600; }
.t-by { display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--ink-3); min-width: 0; }
.t-by svg { width: 13px; height: 13px; flex: none; }
.t-by span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-count { font-size: var(--t-xs); color: var(--ink-2); }
.t-act { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.t-act .btn { height: 34px; padding: 0 12px; font-size: var(--t-sm); }
.t-act .srclink { white-space: nowrap; }
.srclink { font-size: var(--t-xs); color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; display: inline-flex; align-items: center; }
.tile .curve { height: 3px; margin-top: 2px; }
.tiles-empty { padding: 34px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-md); text-align: center; color: var(--ink-2); background: var(--surface); }
.tiles-empty a { color: var(--brand); font-weight: 600; }
.trend-sec { margin-top: 48px; }

/* ---------- coin page ---------- */
.coin { display: grid; grid-template-columns: 330px minmax(0, 1fr) 340px; gap: 24px; max-width: 1440px; margin: 0 auto; padding: 24px 24px 0; align-items: start; }
.c-video { position: sticky; top: calc(var(--top) + 24px); display: grid; gap: 12px; }
.frame { padding: 12px; border-radius: var(--r-lg); background: var(--stage); }
.frame .shot { aspect-ratio: 9 / 16; border-radius: var(--r-sm); }
.c-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.c-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.c-head h1 { font: 600 32px/1.12 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.c-sub { display: flex; gap: 12px; align-items: baseline; margin-top: 8px; }
.c-sub .tick { font-size: var(--t-md); }
.c-mc { text-align: right; display: grid; gap: 4px; }
.c-mc b { font: 600 38px/1 var(--display); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.c-mc > span { font-size: var(--t-sm); color: var(--ink-3); }
.c-chart { padding: 16px 18px 14px; }
.c-chart .tabs-plain { display: inline-flex; }
.chart-wrap { height: 340px; margin-top: 12px; }
#chart { width: 100%; height: 100%; }
.c-tabs { padding: 8px 20px 16px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.tabs button { height: 44px; padding: 0 12px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; color: var(--ink-3); }
.tabs button[aria-selected=true] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.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; }
.list .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.list .muted { font-size: var(--t-xs); white-space: nowrap; }
.comment-form { display: flex; gap: 8px; margin: 12px 0 6px; }
.comment-form input { flex: 1; min-width: 0; height: 42px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 12px; background: var(--surface); outline: none; }
.comment-form input:focus { border-color: var(--brand); }
.c-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.trade { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #e9ebe7; border-radius: 10px; padding: 3px; }
.seg button { height: 38px; border: 0; border-radius: 7px; background: none; font-weight: 600; color: var(--ink-2); }
.seg .b[aria-pressed=true] { background: var(--brand); color: #fff; }
.seg .s[aria-pressed=true] { background: var(--down); color: #fff; }
.amount { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); padding: 0 14px; }
.amount input { flex: 1; min-width: 0; width: 100%; height: 56px; border: 0; outline: none; background: none; font: 600 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.amount span { font-weight: 600; color: var(--ink-3); }
.amount:focus-within { border-color: var(--brand); }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.presets button { height: 32px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface-2); font-size: var(--t-xs); font-weight: 600; font-variant-numeric: tabular-nums; }
.presets button:hover { border-color: var(--ink-3); }
.receive { font-size: var(--t-sm); color: var(--ink-2); min-height: 20px; }
.c-curve { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.c-curve p:first-child { display: flex; justify-content: space-between; font-size: var(--t-sm); font-weight: 600; }
.creator { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.creator .muted { font-size: var(--t-sm); }
.creator .ca { margin-top: 2px; }

/* ---------- launch ---------- */
.launch { display: grid; grid-template-columns: minmax(0, 560px) 320px; gap: 32px; justify-content: center; max-width: 1100px; margin: 0 auto; padding: 32px 24px 0; align-items: start; }
.launch h1 { font: 600 30px/1.15 var(--display); letter-spacing: -.02em; }
.l-lead { color: var(--ink-2); margin: 8px 0 24px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span { font-weight: 600; font-size: var(--t-sm); }
.field small { font-weight: 400; color: var(--ink-3); margin-left: 6px; }
.field input, .field textarea { width: 100%; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 14px; background: var(--surface); outline: none; }
.field textarea { height: 84px; padding: 12px 14px; resize: vertical; }
.field input[type=file] { height: auto; padding: 10px; }
.field input:focus, .field textarea:focus { border-color: var(--brand); }
.paste { display: flex; gap: 8px; }
.paste input { flex: 1; }
.paste .btn { height: 46px; }
.platforms { display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--t-xs); color: var(--ink-3); margin: -6px 0 6px; }
.platforms span { display: inline-flex; align-items: center; gap: 5px; }
.platforms svg { width: 14px; height: 14px; }
.platforms .on { color: var(--ink); font-weight: 600; }
.two { display: grid; grid-template-columns: 1fr 160px; gap: 12px; }
.msg { min-height: 20px; font-size: var(--t-sm); color: var(--ink-2); margin: 4px 0 8px; }
.msg.err { color: var(--down); }
.msg a { text-decoration: underline; color: var(--brand); }
.launch .fine { margin-top: 4px; }
.l-preview { position: sticky; top: calc(var(--top) + 24px); }

/* ---------- footer ---------- */
.foot { max-width: 1440px; margin: 56px auto 0; padding: 22px 24px 40px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--ink-3); }
.foot p { max-width: 720px; }
.foot nav { display: flex; gap: 18px; }
.foot nav a:hover { color: var(--ink); }
.empty { max-width: 520px; margin: 80px auto; text-align: center; display: grid; gap: 12px; justify-items: center; padding: 0 20px; }
.empty h2 { font: 600 24px/1.2 var(--display); }

/* ---------- dialog, toast, CA line ---------- */
dialog { border: 0; padding: 0; width: min(440px, calc(100vw - 24px)); background: transparent; color: var(--ink); }
dialog::backdrop { background: rgba(15,19,18,.45); }
.dlg { background: var(--surface); border-radius: var(--r-lg); padding: 26px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); }
.dlg h2 { font: 600 22px/1.2 var(--display); letter-spacing: -.01em; margin-bottom: 12px; }
.dlg p { color: var(--ink-2); font-size: var(--t-sm); margin-bottom: 14px; }
.dlg p.addr { color: var(--ink-3); }
.dlg .row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.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-2); background: var(--surface); font-weight: 600; text-align: left; }
.wallets button:hover { border-color: var(--brand); }
.wallets img { width: 28px; height: 28px; border-radius: 7px; }
.wallets > a.btn { display: flex; width: 100%; margin-top: 6px; }
.code { font: 600 26px/1 var(--display); letter-spacing: .04em; background: var(--stage); color: #fff; padding: 18px; border-radius: var(--r-md); text-align: center; user-select: all; font-variant-numeric: tabular-nums; }
.radio { display: grid; gap: 6px; margin-bottom: 12px; }
.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); background: var(--surface); }
.radio label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radio input { accent-color: var(--brand); }
.dlg textarea, .dlg input[type=text] { width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; background: var(--surface); margin-bottom: 8px; outline: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; max-width: calc(100vw - 24px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 500; font-size: var(--t-sm); box-shadow: 0 14px 40px -10px rgba(0,0,0,.45); font-variant-numeric: tabular-nums; }
.toast.good { background: var(--brand-2); }
.toast b { font-weight: 700; }
.castrip { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; min-height: 36px; padding: 6px 24px; background: var(--ink); color: #fff; font-size: var(--t-sm); }
.castrip > b { font-weight: 700; }
.castrip .ca { border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; padding: 4px 8px; border-radius: 6px; display: inline-flex; gap: 10px; font-variant-numeric: tabular-nums; }
.castrip .ca b { color: #9fd3cb; }
.castrip .ca .short { display: none; }
.castrip a { text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; }
.castrip .bb { opacity: .75; }

/* ---------- mid widths ---------- */
@media (max-width: 1240px) {
  .watch { grid-template-columns: 210px minmax(0, 1fr) 340px; gap: 20px; padding: 18px 20px 20px; }
  .search { width: 220px; }
  .coin { grid-template-columns: 300px minmax(0, 1fr); }
  .c-side { grid-column: 2; }
}
@media (max-width: 1020px) {
  .watch { grid-template-columns: minmax(0, 1fr) 340px; }
  .upnext { display: none; }
  .search { display: none; }
  .launch { grid-template-columns: minmax(0, 1fr) 260px; }
}

/* ---------- phones: the reel goes full screen, one-tap buy bar at the bottom ---------- */
@media (max-width: 760px) {
  :root { --head: 56px; }
  header.top { gap: 8px; padding: 0 12px; }
  .brand svg { width: 28px; height: 28px; }
  .brand b { font-size: 20px; }
  .brand { gap: 7px; }
  .nav { gap: 0; }
  .nav a { padding: 0 9px; }
  .nav a span { display: none; }
  .nav a[href="/"] { display: none; }
  .nav a svg { width: 20px; height: 20px; }
  .launch-btn { height: 38px; padding: 0 12px; }
  .launch-btn .long { display: none; }
  .launch-btn .shorter { display: inline; }
  .wallet-btn { min-width: 0; height: 38px; padding: 0 12px; font-size: var(--t-sm); }
  .wallet-btn .addr { display: none; }

  body.on-watch #view { height: calc(100dvh - var(--top)); display: flex; flex-direction: column; }
  .watch { display: block; flex: 1; min-height: 0; height: auto; padding: 0; }
  .panel { display: none; }
  .stage { height: 100%; border-radius: 0; }
  .slide { padding: 0; }
  .slide .shot { height: 100%; width: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; }
  .steps, .keys { display: none; }
  .cap { display: grid; gap: 6px; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 56px 14px 14px; color: #fff; background: linear-gradient(transparent, rgba(10,13,12,.85)); pointer-events: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .cap a { pointer-events: auto; }
  .cap-name { font-weight: 600; font-size: 16px; line-height: 1.3; grid-column: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cap-meta { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: var(--t-sm); color: rgba(255,255,255,.85); }
  .cap-meta .tick { color: #9fd3cb; }
  .cap-meta .up { color: #7fd6a3; } .cap-meta .down { color: #ff9b90; }
  .cap-meta a { display: inline-flex; align-items: center; gap: 5px; }
  .cap-meta svg { width: 14px; height: 14px; }
  .cap-chart { grid-column: 2; grid-row: 1 / span 2; align-self: end; height: 36px; padding: 0 14px; border-radius: var(--r-sm); display: inline-flex; align-items: center; font-weight: 600; font-size: var(--t-sm); background: #fff; color: var(--ink); }
  .buybar { display: grid; gap: 8px; position: relative; flex: none; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .bar-buys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .bar-buys .btn { height: 50px; flex-direction: column; gap: 3px; padding: 0 4px; font-size: var(--t-md); }
  .bar-buys small { font-size: 11px; font-weight: 500; opacity: .8; }
  .bar-sells { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
  .bar-sells[hidden] { display: none; }
  .bar-sells > span { font-size: var(--t-xs); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bar-sells .btn { height: 38px; padding: 0 12px; font-size: var(--t-sm); }
  .buybar > .btn { height: 50px; }
  body.on-watch .toast { bottom: 150px; }
  .end-card { padding: 26px 20px; }

  .board { padding: 20px 14px 0; }
  .sec-head h1 { font-size: 26px; }
  .sec-head h2 { font-size: 20px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 6px; }
  .t-row { flex-wrap: wrap; gap: 2px 8px; }
  .t-act { flex-wrap: wrap; }
  .coin { display: block; padding: 16px 14px 0; }
  .c-video { position: static; margin-bottom: 18px; }
  .frame { padding: 10px; max-width: 290px; margin: 0 auto; width: 100%; }
  .c-video > .btn { max-width: 290px; margin: 0 auto; }
  .c-head { align-items: flex-start; }
  .c-head h1 { font-size: 26px; }
  .c-mc { text-align: left; }
  .c-mc b { font-size: 30px; }
  .chart-wrap { height: 260px; }
  .c-side { margin-top: 20px; }
  .label { padding: 20px 18px 18px; }
  .launch { grid-template-columns: 1fr; padding: 20px 14px 0; gap: 22px; }
  .l-preview { position: static; max-width: 260px; margin: 0 auto; width: 100%; }
  .l-preview:has(.blank) { display: none; }
  .two { grid-template-columns: 1fr 120px; }
  .foot { padding: 20px 14px 32px; margin-top: 32px; }
  .castrip { gap: 10px; padding: 6px 12px; font-size: var(--t-xs); }
  .castrip .ca .full, .castrip .bb { display: none; }
  .castrip .ca .short { display: inline; }
}
