@font-face { font-family: 'Hedvig Serif'; src: url(/fonts/hedvig-serif.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Google Sans Flex'; src: url(/fonts/google-sans-flex.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  /* a registry: quiet paper, fine rules, figures set in tabular numbers; cobalt only on the mark */
  --bg: #f6f4ef;            /* page */
  --surface: #ffffff;       /* header, panels, inputs */
  --ink: #16181b;
  --ink-2: #53565c;
  --ink-3: #8a8c91;
  --rule: #e1ddd4;          /* hairlines */
  --rule-2: #ece9e2;
  --wash: #f1eee8;          /* pressed tabs, input fill */
  --accent: #2340c9;        /* cobalt: the dot of the mark */
  --up: #12704a;
  --down: #b63a2b;

  --f-display: 'Hedvig Serif', Georgia, 'Times New Roman', serif;
  --f-text: 'Google Sans Flex', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --t-xs: 12.5px; --t-sm: 14px; --t-md: 15.5px; --t-lg: 18px;
  --r: 10px;
  --header-h: 68px;
  --gutter: 32px;
  --max: 1360px;
}

* { 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(--f-text); min-height: 100dvh; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.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); }
.ul { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter) - 8px));
  background: var(--surface); border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand svg { width: 28px; height: 28px; flex: none; color: var(--ink); --mark-dot: var(--accent); }
.brand b { font: 400 29px/1 var(--f-display); letter-spacing: -.01em; transform: translateY(-1px); }
.nav { display: flex; gap: 26px; align-self: stretch; }
.nav a { display: flex; align-items: center; font-weight: 500; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; padding-top: 2px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.search { flex: 1; max-width: 340px; position: relative; }
.search input { width: 100%; height: 40px; border-radius: 8px; border: 1px solid var(--rule); background: var(--bg); padding: 0 14px 0 38px; outline: none; font-size: var(--t-sm); }
.search input:focus { border-color: var(--ink-3); background: #fff; }
.search svg { position: absolute; left: 13px; top: 12px; width: 16px; height: 16px; color: var(--ink-3); }
.top .spacer { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 8px; border: 0; font-weight: 600; font-size: var(--t-md);
  transition: background .15s ease, box-shadow .15s ease, transform .08s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(22, 24, 27, .25); }
.btn-ink:hover { background: #2c2f34; }
.btn-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #cdc8be, 0 1px 1px rgba(22, 24, 27, .05); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink-2), 0 1px 1px rgba(22, 24, 27, .05); }
.btn-buy { background: var(--up); color: #fff; box-shadow: 0 1px 2px rgba(18, 112, 74, .35); }
.btn-buy:hover { background: #0e623f; }
.btn-sell { background: var(--down); color: #fff; box-shadow: 0 1px 2px rgba(182, 58, 43, .35); }
.btn-sell:hover { background: #a03224; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.wallet-btn { gap: 10px; }
.wallet-btn .bal { font-weight: 600; font-variant-numeric: tabular-nums; }
.wallet-btn .addr { font-size: var(--t-sm); color: var(--ink-3); font-weight: 500; }

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

/* ---------- board ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: end; padding: 56px 0 40px; }
.intro h1 { font: 400 58px/1.02 var(--f-display); letter-spacing: -.02em; margin: 0; max-width: 14em; }
.intro .lead { margin: 18px 0 0; color: var(--ink-2); font-size: var(--t-lg); line-height: 1.5; max-width: 36em; }
.owner { border-top: 1px solid var(--ink); padding-top: 14px; }
.owner h2 { font: 400 21px/1.25 var(--f-display); margin: 0 0 6px; }
.owner p { margin: 0; color: var(--ink-2); font-size: var(--t-sm); }
.owner b { color: var(--ink); font-weight: 600; }

.filters { display: flex; align-items: stretch; justify-content: space-between; gap: 24px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); height: 52px; }
.tabs-a, .sorts { display: flex; gap: 28px; align-items: stretch; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.tabs-a::-webkit-scrollbar, .sorts::-webkit-scrollbar { display: none; }
.tabs-a a { display: flex; align-items: center; font-weight: 500; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs-a a:hover { color: var(--ink); }
.tabs-a a[aria-current="true"] { color: var(--ink); border-color: var(--ink); }
.sorts { gap: 20px; font-size: var(--t-sm); }
.sorts a { display: flex; align-items: center; color: var(--ink-3); }
.sorts a:hover { color: var(--ink); }
.sorts a[aria-current="true"] { color: var(--ink); font-weight: 600; }

/* the register: one row per coin */
.register { margin-top: 8px; }
.rec-head, .rec { display: grid; grid-template-columns: 40px 68px minmax(0, 1fr) 150px 110px 210px; grid-template-areas: "no shot id mc chg curve"; column-gap: 24px; align-items: center; }
.rec-head { height: 40px; font-size: var(--t-xs); color: var(--ink-3); border-bottom: 1px solid var(--rule); }
.rec-head .r { text-align: right; }
.rec { padding: 14px 0; border-bottom: 1px solid var(--rule-2); transition: background .15s ease; }
.rec:hover { background: rgba(255, 255, 255, .7); }
.rec:hover .name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.rec-no { grid-area: no; color: var(--ink-3); font-size: var(--t-sm); padding-left: 2px; }
.rec-shot { grid-area: shot; }
.rec-shot .shot { border-radius: 6px; }
.rec-id { grid-area: id; min-width: 0; }
.rec-id .name { font: 400 21px/1.2 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-id .sub { display: flex; gap: 10px; margin-top: 4px; font-size: var(--t-sm); color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.rec-id .sub .tk { color: var(--ink); font-weight: 600; }
.rec-id .kind-s { font-size: var(--t-xs); color: var(--ink-3); margin-top: 3px; }
.rec-mc { grid-area: mc; text-align: right; font-size: 17px; font-weight: 600; }
.rec-chg { grid-area: chg; text-align: right; font-size: var(--t-md); font-weight: 500; }
.rec-curve { grid-area: curve; display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 12px; align-items: center; font-size: var(--t-sm); color: var(--ink-2); }
.rec-curve .pg { text-align: right; }
.bar { height: 4px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: 2px; }
.bar.big { height: 6px; border-radius: 3px; }
.flash { animation: flash 1.2s ease; }
@keyframes flash { 0% { background: #fff3d6; } 100% { background: transparent; } }
.reg-empty { margin: 0; padding: 22px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.reg-empty a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* video frames */
.shot { position: relative; aspect-ratio: 9 / 16; background: #1a1b1e; border-radius: 8px; 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, .45); }
.shot .noimg svg { width: 36px; height: 36px; }
.sound { position: absolute; z-index: 3; right: 8px; bottom: 8px; width: 32px; height: 32px; border-radius: 999px; border: 0; background: rgba(16, 17, 19, .62); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.sound svg { width: 17px; height: 17px; }
.rec .sound { display: none; }

/* not launched yet: a numbered catalogue of real trending shorts */
.trend:empty { display: none; }
.trend { margin-top: 64px; }
.trend-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.trend-head h2 { font: 400 34px/1.1 var(--f-display); margin: 0; letter-spacing: -.01em; }
.trend-head p { margin: 4px 0 0; color: var(--ink-3); font-size: var(--t-sm); }
.plain-tabs { display: flex; gap: 20px; }
.plain-tabs button { border: 0; background: none; padding: 4px 0; font-size: var(--t-sm); font-weight: 500; color: var(--ink-3); border-bottom: 2px solid transparent; }
.plain-tabs button:hover { color: var(--ink); }
.plain-tabs button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.cand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 44px 24px; padding-top: 28px; }
.cand { min-width: 0; display: flex; flex-direction: column; }
.cand-meta { display: flex; justify-content: space-between; gap: 8px; font-size: var(--t-xs); color: var(--ink-3); padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--rule); }
.cand-meta .n { color: var(--ink); font-weight: 600; }
.cand-title { font: 500 var(--t-md)/1.35 var(--f-text); margin: 12px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.cand-by { display: flex; gap: 6px; align-items: center; font-size: var(--t-sm); color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.cand-by svg { width: 14px; height: 14px; flex: none; }
.cand-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 8px 0 14px; font-size: var(--t-sm); }
.cand-foot .num { font-weight: 600; }
.cand .btn { width: 100%; height: 40px; font-size: var(--t-sm); margin-top: auto; }

/* ---------- 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: 56px; padding: 28px var(--gutter); }
.slide .gate { grid-column: 2; height: calc(100dvh - var(--header-h) - 56px); width: auto; }
.gate { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: calc(100vw - 2 * var(--gutter)); border-radius: 12px; overflow: hidden; background: #1a1b1e; }
.gate .shot { position: relative; height: 100%; width: 100%; aspect-ratio: auto; border-radius: 0; }
.gate .shot img { width: 100%; height: 100%; object-fit: cover; }
.slide-info { grid-column: 3; align-self: center; max-width: 340px; }
.kind { display: block; font-size: var(--t-sm); color: var(--ink-3); margin-bottom: 6px; }
.slide-info .name { font: 400 36px/1.08 var(--f-display); margin: 0 0 4px; overflow-wrap: anywhere; letter-spacing: -.01em; }
.slide-info .stats { display: grid; grid-template-columns: auto auto; gap: 0; margin: 20px 0; border-top: 1px solid var(--rule); }
.slide-info .stats dt, .slide-info .stats dd { padding: 9px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.slide-info .stats dt { color: var(--ink-2); font-size: var(--t-sm); }
.slide-info .stats dd { font-weight: 600; text-align: right; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.quick .btn { height: 42px; padding: 0 14px; }
.slide-info .by { margin-top: 18px; 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; }
.pi { width: 15px; height: 15px; vertical-align: -2px; flex: none; }
.overlay-info { display: none; }
.nocoin { color: var(--ink-3); font-size: var(--t-sm); }
.feed-hint { position: fixed; left: var(--gutter); bottom: 20px; color: var(--ink-3); font-size: var(--t-xs); }
.feed .empty { max-width: 420px; margin: 80px auto; }

.empty { padding: 80px 0; text-align: center; color: var(--ink-2); }
.empty h2 { font: 400 30px/1.2 var(--f-display); color: var(--ink); margin: 0 0 10px; }
.empty .btn { margin-top: 12px; }

/* ---------- coin page ---------- */
.coin { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-top: 32px; }
.coin .gate { height: auto; width: 100%; aspect-ratio: auto; max-width: 360px; position: sticky; top: calc(var(--header-h) + 32px); }
.coin .gate .shot { aspect-ratio: 9 / 16; height: auto; }
.panel { background: var(--surface); border-radius: var(--r); border: 1px solid var(--rule); }
.p-tabs { margin-top: 20px; }
.coin-head { padding: 22px 24px 18px; display: flex; gap: 20px; align-items: flex-start; border-bottom: 1px solid var(--rule-2); }
.coin-head h1 { font: 400 38px/1.05 var(--f-display); margin: 0; overflow-wrap: anywhere; letter-spacing: -.015em; }
.coin-head .tick { font-weight: 600; color: var(--ink-2); margin-top: 8px; }
.coin-head .mc { margin-left: auto; text-align: right; flex: none; }
.coin-head .mc b { display: block; font: 600 30px/1.1 var(--f-text); letter-spacing: -.01em; }
.coin-head .mc span { font-size: var(--t-sm); white-space: nowrap; }
.coin-head .lbl { color: var(--ink-3); }
.chart-wrap { padding: 0 12px 12px; }
.tfs { display: flex; gap: 2px; padding: 12px 16px 8px; }
.tfs button { border: 0; background: transparent; padding: 5px 10px; border-radius: 6px; font-weight: 500; font-size: var(--t-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tfs button[aria-pressed="true"] { background: var(--wash); color: var(--ink); font-weight: 600; }
#chart { height: 340px; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--rule); padding: 0 24px; }
.tabs button { border: 0; background: none; padding: 15px 0 13px; font-weight: 500; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); font-weight: 600; }
.tabbody { padding: 14px 24px 22px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule-2); font-size: var(--t-sm); }
.list li:last-child { border-bottom: 0; }
.addr { font: 500 var(--t-sm)/1.3 var(--f-text); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.list .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.list .muted { color: var(--ink-3); font-size: var(--t-xs); white-space: nowrap; }
.list .side-w { width: 34px; text-transform: capitalize; font-weight: 600; }
.list .rank { width: 22px; }
.comment-form { display: flex; gap: 8px; margin-bottom: 10px; }
.comment-form input { flex: 1; min-width: 0; height: 42px; border-radius: 8px; border: 1px solid var(--rule); padding: 0 14px; background: var(--bg); outline: none; }
.comment-form input:focus { background: #fff; border-color: var(--ink-3); }

.trade { padding: 18px; }
.coin .side { position: sticky; top: calc(var(--header-h) + 32px); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--wash); border-radius: 9px; padding: 3px; gap: 3px; }
.seg button { border: 0; height: 40px; border-radius: 7px; background: transparent; font-weight: 600; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(22, 24, 27, .14); }
.seg button[aria-pressed="true"].b { color: var(--up); }
.seg button[aria-pressed="true"].s { color: var(--down); }
.amount { margin: 16px 0 8px; position: relative; }
.amount input { width: 100%; height: 56px; border-radius: 9px; border: 1px solid var(--rule); background: #fff; padding: 0 64px 0 16px; font: 600 24px/1 var(--f-text); outline: none; font-variant-numeric: tabular-nums; }
.amount input:focus { border-color: var(--ink-2); }
.amount span { position: absolute; right: 16px; top: 18px; font-weight: 500; color: var(--ink-3); }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.presets button { border: 1px solid var(--rule); background: #fff; border-radius: 6px; height: 32px; padding: 0 10px; font-weight: 500; font-size: var(--t-sm); 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; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.trade .btn { width: 100%; height: 52px; 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: 20px; padding-top: 16px; border-top: 1px solid var(--rule-2); font-size: var(--t-sm); color: var(--ink-2); }
.curve-top { display: flex; justify-content: space-between; }
.curve-top b { color: var(--ink); font-weight: 600; }
.curve .bar { margin: 9px 0 8px; }
.creator { margin-top: 16px; padding: 18px; }
.creator h3 { margin: 0 0 6px; font: 400 20px/1.3 var(--f-display); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.creator h3 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.creator p { margin: 0 0 14px; color: var(--ink-2); font-size: var(--t-sm); }
.creator .links { display: flex; gap: 8px; flex-wrap: wrap; }
.creator .ca-line { margin: 14px 0 0; overflow-wrap: anywhere; font-size: var(--t-xs); color: var(--ink-3); }
.creator .btn { height: 36px; font-size: var(--t-sm); padding: 0 12px; }
.removed { display: grid; place-items: center; height: 100%; color: #d9d6cf; font-size: var(--t-sm); text-align: center; padding: 20px; }

/* ---------- launch ---------- */
.launch { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; padding-top: 48px; }
.launch h1 { font: 400 48px/1.04 var(--f-display); margin: 0 0 28px; letter-spacing: -.02em; }
.field { display: block; margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field > span, .field > legend { display: block; font-weight: 600; font-size: var(--t-sm); margin-bottom: 7px; padding: 0; }
.field small { color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.field input, .field textarea { width: 100%; border-radius: 8px; border: 1px solid var(--rule); background: #fff; padding: 0 14px; height: 48px; outline: none; font-size: 16px; }
.field input[type=file] { padding-top: 12px; }
.field textarea { height: 92px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink-2); }
.caps { text-transform: uppercase; }
.paste { position: relative; }
.paste input { height: 56px; font-size: 16px; padding-right: 110px; }
.paste .btn { position: absolute; right: 7px; top: 7px; height: 42px; }
.platforms { display: flex; gap: 16px; 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: 600; }
.platforms svg { width: 15px; height: 15px; }
.two { display: grid; grid-template-columns: 1fr 160px; gap: 12px; }
.btn.big { width: 100%; height: 54px; font-size: var(--t-lg); }
.preview { position: sticky; top: calc(var(--header-h) + 48px); padding-top: 6px; }
.launch .gate { height: auto; width: 100%; aspect-ratio: auto; max-width: none; }
.launch .gate .shot { aspect-ratio: 9 / 16; height: auto; }
.launch .gate .shot img { width: 100%; height: 100%; object-fit: cover; }
.launch .gate .blank { display: grid; place-items: center; height: 100%; color: #8f9196; font-size: var(--t-sm); text-align: center; padding: 24px; }
.pv-cap { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px 0; font-size: var(--t-sm); color: var(--ink-3); border-bottom: 1px solid var(--rule); padding-bottom: 10px; }
.pv-cap b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg { min-height: 22px; font-size: var(--t-sm); margin: 6px 0 12px; 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-top: 18px; line-height: 1.6; }

/* ---------- dialog ---------- */
dialog { border: 0; border-radius: 12px; padding: 0; width: min(460px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .35); }
dialog::backdrop { background: rgba(22, 24, 27, .4); backdrop-filter: blur(2px); }
.dlg { padding: 26px; }
.dlg h2 { font: 400 28px/1.15 var(--f-display); margin: 0 0 12px; letter-spacing: -.01em; }
.dlg p { color: var(--ink-2); margin: 0 0 16px; font-size: var(--t-sm); }
.dlg p.after { margin-top: 14px; }
.dlg .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.wal-bal b { font-size: 24px; color: var(--ink); margin-right: 10px; font-weight: 600; }
.wal-bal span { color: var(--ink-3); }
.wallets { display: grid; gap: 8px; }
.wallets button { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--rule); background: #fff; font-weight: 600; text-align: left; }
.wallets button:hover { border-color: var(--ink-2); }
.wallets img { width: 28px; height: 28px; border-radius: 8px; }
.wallets > a.btn { display: flex; justify-content: center; margin-top: 8px; width: 100%; }
.code { font: 600 30px/1 var(--f-text); letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--ink); padding: 18px; border-radius: 8px; text-align: center; user-select: all; background: var(--bg); border: 1px solid var(--rule); }
.radio { display: grid; gap: 6px; margin-bottom: 12px; }
.radio label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; cursor: pointer; font-size: var(--t-sm); background: #fff; }
.radio label:has(input:checked) { border-color: var(--ink); }
.radio input { accent-color: var(--ink); }
.dlg textarea, .dlg input[type=text] { width: 100%; border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; background: #fff; margin-bottom: 8px; outline: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #f3f1ec; padding: 12px 18px; border-radius: 8px; font-weight: 500; z-index: 100; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); max-width: calc(100vw - 32px); }
.toast.good b { color: #9bdcb8; }
.foot { margin-top: 88px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: var(--t-xs); display: flex; gap: 16px; 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; }

/* 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: 500; color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: nowrap; }
.watch:hover { color: var(--ink); }

/* brand coin strip above the header */
.castrip { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 36px; padding: 6px var(--gutter); background: var(--ink); color: #dedad2; font-size: 13px; flex-wrap: wrap; }
.castrip .tk { font-weight: 700; color: #e2c27d; font-variant-numeric: tabular-nums; }
.castrip .ca { border: 0; background: rgba(255, 255, 255, .08); color: #ece9e2; font: 500 13px/1 var(--f-text); padding: 6px 10px; border-radius: 6px; display: inline-flex; gap: 10px; cursor: pointer; font-variant-numeric: tabular-nums; }
.castrip .ca b { color: #e2c27d; font-weight: 600; }
.castrip .ca .short { display: none; }
.castrip a { color: #fff; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; }
.castrip .bb { color: rgba(222, 218, 210, .7); }
body.feed-on .castrip { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .coin { grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); }
  .coin .side { grid-column: 2; position: static; }
  .rec-head, .rec { grid-template-columns: 34px 60px minmax(0, 1fr) 130px 90px 170px; column-gap: 18px; }
}
@media (max-width: 1020px) {
  .intro { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 40px; }
  .intro h1 { font-size: 46px; }
  .owner { max-width: 520px; }
  .rec-head, .rec { grid-template-columns: 60px minmax(0, 1fr) 120px 80px; grid-template-areas: "shot id mc chg"; }
  .rec-no, .rec-curve, .rec-head .h-no, .rec-head .h-curve { display: none; }
}
@media (max-width: 860px) {
  :root { --header-h: 60px; --gutter: 16px; }
  .top { padding: 0 16px; gap: 12px; }
  .brand svg { width: 24px; height: 24px; }
  .brand b { font-size: 25px; }
  .nav, .search { display: none; }
  .top .btn { height: 38px; padding: 0 14px; font-size: 14px; }
  .top .launch-btn .long { display: none; }
  .top .launch-btn .short-l { display: inline; }
  .wallet-btn .addr { display: none; }
  html, body { overflow-x: hidden; }
  main { padding: 0 16px 110px; }
  .intro { padding: 28px 0 24px; gap: 20px; }
  .intro h1 { font-size: 36px; }
  .intro .lead { font-size: var(--t-md); margin-top: 12px; }
  .owner h2 { font-size: 19px; }
  .filters { height: auto; flex-direction: column; gap: 0; }
  .tabs-a { height: 48px; gap: 22px; }
  .sorts { height: 40px; border-top: 1px solid var(--rule-2); }
  .rec-head { display: none; }
  .rec { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "shot id id" "shot mc chg"; column-gap: 14px; row-gap: 6px; padding: 12px 0; align-items: start; }
  .rec-id .name { font-size: 19px; }
  .rec-mc { text-align: left; font-size: var(--t-md); }
  .rec-chg { font-size: var(--t-sm); }
  .trend { margin-top: 44px; }
  .trend-head h2 { font-size: 27px; }
  .cand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; padding-top: 20px; }
  .cand-title { font-size: var(--t-sm); }
  .cand-foot { flex-direction: column; gap: 2px; }
  .coin { grid-template-columns: 1fr; gap: 14px; padding-top: 20px; }
  .coin .mid { display: contents; }
  .coin .gate { order: 1; position: relative; top: 0; max-width: 100%; width: min(100%, 320px); margin: 0 auto 6px; }
  .coin .p-chart { order: 2; } .coin .side { order: 3; } .coin .p-tabs { order: 4; margin-top: 0; }
  .coin .side { grid-column: 1; position: static; }
  .coin-head { padding: 18px; flex-wrap: wrap; }
  .coin-head h1 { font-size: 30px; }
  .coin-head .mc { margin-left: 0; text-align: left; }
  .coin-head .mc b { font-size: 24px; }
  .tabs { padding: 0 18px; } .tabbody { padding: 12px 18px 18px; }
  #chart { height: 260px; }
  .launch { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .launch h1 { font-size: 36px; margin-bottom: 20px; }
  .preview { position: relative; top: 0; width: 60%; margin: 0 auto; order: -1; }
  .preview:has(.blank) { display: none; }
  .two { grid-template-columns: 1fr 120px; }
  .slide { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .feed .gate { grid-column: 1; height: 100%; width: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; }
  .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(12, 13, 15, .86)); color: #fff; }
  .overlay-info .name { font: 400 26px/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: #7fdcaa; } .overlay-info .down { color: #ff9a8a; }
  .overlay-info .nocoin { color: rgba(255, 255, 255, .75); }
  .overlay-info .src { color: #fff; text-decoration: underline; text-underline-offset: 3px; position: relative; z-index: 4; }
  .overlay-info .quick .btn { height: 42px; padding: 0 12px; flex: 1; }
  .overlay-info .quick .btn-line { flex: 0 0 auto; background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
  .overlay-info .quick .btn-ink { background: #fff; color: var(--ink); }
  .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(255, 255, 255, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--rule); 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: 500; color: var(--ink-3); padding: 4px; }
  .mobile-nav a svg { width: 22px; height: 22px; }
  .mobile-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
  body.feed-on .feed, body.feed-on .slide { height: calc(100dvh - var(--header-h) - 64px - env(safe-area-inset-bottom)); }
  .castrip { gap: 10px; padding: 8px 12px; font-size: 12px; }
  .castrip .ca .full, .castrip .bb { display: none; }
  .castrip .ca .short { display: inline; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
