:root {
  --blue: #00AFF0;
  --blue-deep: #008CCF;
  --blue-press: #0098D1;
  --ink: #000;
  --ink-2: #242529;
  --gray: #8A96A3;
  --line: rgba(138, 150, 163, .25);
  --line-strong: rgba(138, 150, 163, .45);
  --hover: rgba(0, 175, 240, .08);
  --soft: #F4F7F9;
  --green: #3FD671;
  --like: #FF3B5C;
  --font: "Roboto", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --header: 64px;
  --main: 632px;
  --rail: 340px;
  --shell: 1160px;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 8px);
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { display: block; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Badge */
.badge { width: 18px; height: 18px; flex: none; color: var(--blue); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 1000px;
  font: 500 14px/1 var(--font); letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, opacity .2s, box-shadow .2s, transform .12s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--block { display: flex; width: 100%; }
.btn--sm { height: 40px; padding: 0 20px; font-size: 13px; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-press); box-shadow: 0 6px 18px rgba(0, 150, 210, .28); }
.btn--outline { background: #fff; border-color: var(--line-strong); color: var(--blue); }
.btn--outline:hover { border-color: var(--blue); }
.btn--text { background: none; color: var(--blue); padding: 0 16px; }
.btn--text:hover { background: var(--hover); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }
.btn--primary[aria-disabled="true"] { opacity: 1; }

.icon-btn {
  width: 44px; height: 44px; padding: 0; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: #fff; color: var(--blue); cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--hover); border-color: var(--blue); }
.icon-btn:disabled { color: var(--line-strong); cursor: default; background: #fff; border-color: var(--line); }
.icon-btn--sm { width: 40px; height: 40px; }
.icon-btn--sm svg { width: 19px; height: 19px; }

.label {
  margin: 0; font-size: 13px; font-weight: 500; line-height: 1.2;
  color: var(--gray); text-transform: uppercase; letter-spacing: .06em;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(15, 40, 60, .06); }
.site-header-inner {
  display: flex; align-items: center; gap: 28px;
  max-width: var(--shell);
  height: var(--header);
  margin: 0 auto; padding: 0 8px 0 20px;
}
.brand { flex: none; line-height: 0; }
.brand img { width: auto; height: 38px; }
.header-nav { display: flex; gap: 2px; }
.header-nav a {
  display: flex; align-items: center; height: 40px; padding: 0 14px;
  border-radius: 1000px; font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: background-color .15s, color .15s;
}
.header-nav a:hover { background: var(--hover); color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Layout */
.app {
  display: grid;
  grid-template-columns: minmax(0, var(--main)) var(--rail);
  justify-content: center;
  min-height: calc(100vh - var(--header));
}
.main {
  position: relative;
  min-width: 0;
  min-height: calc(100vh - var(--header));
  padding-bottom: 48px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* Avatars */
.avatar {
  position: relative; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--blue);
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar .avatar-logo { position: absolute; inset: 0; margin: auto; width: 74%; height: 74%; border-radius: 0; object-fit: contain; }
.avatar--48 { width: 48px; height: 48px; }
.avatar--64 { width: 64px; height: 64px; box-shadow: 0 0 0 3px #fff; }
.avatar--xl { width: 112px; height: 112px; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }
.presence {
  position: absolute; right: 6px; bottom: 6px; z-index: 1;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 3px #fff;
}

/* Brand watermark, drawn from the mark's alpha */
.cover-mark, .token-cover-mark {
  position: absolute; background: #fff; opacity: .16; pointer-events: none;
  -webkit-mask: url("assets/mark.png") center / contain no-repeat;
  mask: url("assets/mark.png") center / contain no-repeat;
}

/* Profile */
.cover {
  position: relative; overflow: hidden;
  height: 200px; background: var(--blue); color: #fff;
  --badge-check: var(--blue);
}
.cover::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0) 55%);
}
.cover-top { position: relative; z-index: 1; padding: 14px 20px; }
.cover-name { display: flex; align-items: center; gap: 4px; font-size: 19px; font-weight: 700; }
.cover-name .badge { color: #fff; }
.cover-stats { display: flex; gap: 18px; margin-top: 4px; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cover-stats > span { display: inline-flex; align-items: center; gap: 6px; }
.cover-stats svg { width: 18px; height: 18px; }
.cover-mark { right: -36px; bottom: -64px; width: 400px; height: 280px; }

.profile-row {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: -56px; padding: 0 20px;
}
.profile-actions { display: flex; gap: 8px; padding-bottom: 4px; }

.profile-info { padding: 14px 20px 0; }
.profile-name { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 21px; font-weight: 700; line-height: 1.3; }
.profile-name .badge { width: 21px; height: 21px; }
.profile-handle { margin: 2px 0 0; font-size: 15px; color: var(--gray); }
.profile-bio { margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.profile-more p { margin: 10px 0 0; color: var(--ink-2); }
.link-btn { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--blue); font-weight: 500; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

.subscribe { padding: 22px 20px 24px; border-bottom: 1px solid var(--line); }
.btn--sub { display: flex; width: 100%; height: 48px; margin-top: 10px; justify-content: space-between; padding: 0 24px; }

/* Tabs */
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tab {
  position: relative; flex: 1; height: 54px;
  border: 0; background: none; cursor: pointer;
  font-size: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--gray); transition: color .15s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink);
}

/* Posts */
.post { padding: 18px 20px 8px; border-bottom: 1px solid var(--line); }
.post-head { display: flex; align-items: center; gap: 12px; }
.post-who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.post-name { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 700; }
.post-name .badge { width: 17px; height: 17px; }
.post-handle { font-size: 14px; color: var(--gray); }
.post-time { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 3px; font-size: 14px; color: var(--gray); }
.post-time svg { width: 16px; height: 16px; }
.post-text { margin-top: 12px; font-size: 15px; line-height: 1.5; }
.post-text p { margin: 0; }
.post-media { margin: 14px -20px 0; }
.post-actions { display: flex; align-items: center; gap: 4px; margin: 6px -10px 0; padding: 2px 0; }
.act {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 10px; border: 0; border-radius: 1000px; background: none;
  font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--gray); cursor: pointer;
  transition: color .15s, background-color .15s;
}
.act svg { width: 24px; height: 24px; }
.act:hover { color: var(--blue); background: var(--hover); }
.act[data-like]:hover { color: var(--like); background: rgba(255, 59, 92, .08); }
.act[aria-pressed="true"] { color: var(--like); --heart-fill: currentColor; }
.act[aria-pressed="true"] svg { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.25); } }

.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.steps li { padding-left: 4px; }
.steps li::marker { color: var(--gray); font-variant-numeric: tabular-nums; }

/* Flow media */
.flow { background: var(--soft); padding: 40px 20px 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.flow-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.flow-icon {
  position: relative; z-index: 1;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 4px 12px rgba(0, 120, 180, .06);
}
.flow-icon svg { width: 26px; height: 26px; }
.flow-node:last-child .flow-icon { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(0, 150, 210, .3); }
.flow-label { font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.flow-label small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--gray); }
.flow-node:not(:last-child)::after {
  content: ""; position: absolute; top: 30px; left: calc(50% + 30px);
  width: calc(100% - 60px); height: 1px; background: var(--line-strong);
}
.flow-node:not(:last-child)::before {
  content: ""; position: absolute; z-index: 2; top: 27px; left: calc(50% + 30px);
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue); opacity: 0;
  animation: flow-x 2.6s cubic-bezier(.45, 0, .55, 1) infinite;
  animation-delay: calc(var(--i, 0) * .4s);
}
@keyframes flow-x {
  0% { left: calc(50% + 30px); opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { left: calc(150% - 37px); opacity: 0; }
}
@keyframes flow-y {
  0% { top: 60px; opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { top: 81px; opacity: 0; }
}

/* Locked post */
.locked {
  position: relative; overflow: hidden;
  height: 320px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 28% 38%, rgba(0, 175, 240, .38), transparent 42%),
    radial-gradient(circle at 72% 58%, rgba(0, 140, 207, .32), transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(0, 175, 240, .22), transparent 50%),
    #E8EEF3;
}
.locked::before {
  content: ""; position: absolute; inset: -20px;
  background: inherit; filter: blur(24px);
}
.locked-center { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: -40px; }
.locked-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .7); color: var(--gray);
}
.locked-icon svg { width: 34px; height: 34px; }
.locked-meta { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.locked-cta { position: absolute; left: 20px; right: 20px; bottom: 20px; }
.locked-cta:disabled { opacity: 1; }
.unlocked { padding: 24px 20px; background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); animation: reveal .4s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } }

/* CA field */
.ca {
  display: flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 6px 0 16px;
  border: 1px solid var(--line-strong); border-radius: 6px; background: #fff;
}
.ca-label { font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--gray); }
.ca-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 14px/1 var(--mono); color: var(--ink); }
.ca-value.is-empty { font-family: var(--font); color: var(--gray); }
.ca-copy {
  width: 40px; height: 40px; padding: 0; flex: none;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; background: none; color: var(--blue); cursor: pointer;
}
.ca-copy svg { width: 20px; height: 20px; }
.ca-copy:hover { background: var(--hover); }
.ca-copy:disabled { color: var(--line-strong); background: none; cursor: default; }
.ca--lg { height: auto; min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
.ca--lg .ca-value { font-size: 15px; line-height: 1.4; white-space: normal; word-break: break-all; }

/* Tips panel */
.totals { padding: 28px 20px 24px; border-bottom: 1px solid var(--line); }
.figure {
  display: block; margin-top: 8px;
  font-size: clamp(44px, 7vw, 64px); font-weight: 500; line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.totals-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0 0; }
.totals-grid dt { font-size: 13px; color: var(--gray); }
.totals-grid dd { margin: 4px 0 0; font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }

.tip-list { list-style: none; margin: 0; padding: 0; }
.tip {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.tip-amount { display: block; font-size: 24px; font-weight: 500; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tip-to { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 14px; color: var(--gray); min-width: 0; }
.tip-to strong { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-to .badge { width: 15px; height: 15px; }
.tip-path { display: flex; align-items: center; gap: 8px; color: var(--gray); }
.tip-path > svg { width: 18px; height: 18px; }
.tip-path .avatar { width: 40px; height: 40px; font-size: 15px; font-weight: 500; color: var(--blue); background: #E5F7FE; box-shadow: none; }
.tip-meta { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 84px; font-size: 13px; color: var(--gray); font-variant-numeric: tabular-nums; }
.tip-receipt { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); }
.tip-receipt:hover { background: var(--hover); }
.tip-receipt svg { width: 20px; height: 20px; }

.empty { padding: 64px 20px 72px; text-align: center; color: var(--gray); }
.empty svg { width: 48px; height: 48px; margin: 0 auto; color: var(--line-strong); }
.empty p { margin: 14px 0 0; font-size: 15px; }

/* Right rail */
.rail {
  position: sticky; top: var(--header); height: calc(100vh - var(--header));
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px 8px 28px 24px;
}
.rail-head { padding: 6px 0 2px; }
.token-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .04); }
.token-cover {
  position: relative; height: 120px; overflow: hidden;
  background: var(--blue); color: #fff;
  --badge-check: var(--blue);
}
.token-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .28));
}
.token-cover-mark { right: -28px; top: -26px; width: 200px; height: 140px; }
.token-id { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; display: flex; align-items: flex-end; gap: 12px; }
.token-names { display: flex; flex-direction: column; min-width: 0; padding-bottom: 4px; line-height: 1.25; }
.token-name { display: flex; align-items: center; gap: 4px; font-size: 17px; font-weight: 700; }
.token-name .badge { color: #fff; width: 17px; height: 17px; }
.token-handle { font-size: 14px; opacity: .9; }
.token-body { display: grid; gap: 10px; padding: 14px; }

.mini-links { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 4px 2px 0; font-size: 13px; color: var(--gray); }
.mini-links a:hover { color: var(--blue); }
.mini-note { margin: 0; padding: 0 2px; font-size: 13px; color: var(--gray); }
.main-footer { display: none; }

/* Mobile tab bar */
.tabbar { display: none; }

/* Modal */
.modal {
  width: min(420px, calc(100% - 32px)); padding: 0;
  border: 0; border-radius: 18px;
  box-shadow: 0 30px 80px rgba(10, 30, 50, .22), 0 0 0 1px rgba(0, 0, 0, .04);
  color: var(--ink);
}
.modal::backdrop { background: rgba(15, 23, 32, .38); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .32s cubic-bezier(.2, .8, .2, 1); }
.modal[open]::backdrop { animation: fade-in .32s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
.modal-inner { padding: 20px 20px 16px; }
.modal-head { display: flex; align-items: center; gap: 12px; }
.modal-x {
  align-self: flex-start; width: 36px; height: 36px; padding: 0; margin: -4px -6px 0 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--gray); cursor: pointer;
}
.modal-x:hover { background: var(--hover); color: var(--blue); }
.modal-x svg { width: 22px; height: 22px; }
.modal-title { margin: 20px 0 0; font-size: 20px; font-weight: 700; }
.modal-text { margin: 6px 0 16px; color: var(--ink-2); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 50;
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink-2); color: #fff; font-size: 14px; font-weight: 500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
  opacity: 0; transform: translate(-50%, 8px); pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Header states */
.header-nav a[aria-current="page"] { color: var(--blue); }
.site-header .btn { font-size: 14px; letter-spacing: 0; text-transform: none; }

/* Token button and menu */
.token-btn { gap: 8px; padding: 0 16px 0 8px; color: var(--ink); font-weight: 700; }
.token-btn:hover { border-color: var(--blue); color: var(--blue); }
.token-btn-mark { width: 26px; height: auto; }
.token-menu {
  position: fixed; z-index: 40; width: 320px; padding: 16px;
  display: grid; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 22px 56px rgba(16, 24, 40, .16);
  animation: modal-in .25s cubic-bezier(.2, .8, .2, 1);
}
.token-menu-head { display: flex; align-items: center; gap: 12px; }
.token-menu-head img { width: 46px; height: auto; }
.token-menu-head strong { display: block; font-size: 17px; font-weight: 700; }
.token-menu-sub { font-size: 13px; color: var(--gray); }

/* Wallet button */
.wallet-btn { gap: 8px; padding: 0 16px; border-color: var(--line-strong); background: #fff; color: var(--ink-2); }
.wallet-btn svg { width: 18px; height: 18px; color: var(--blue); }
.wallet-btn:hover { border-color: var(--blue); color: var(--blue); }
.wallet-btn.is-connected { padding-left: 8px; font: 500 13px/1 var(--mono); letter-spacing: 0; text-transform: none; }
.wallet-btn.is-connected svg { display: none; }
.wallet-avatar { display: none; width: 24px; height: 24px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.wallet-btn.is-connected .wallet-avatar { display: block; }
.wallet-btn.is-wrong { border-color: #F5A623; color: #B7700B; }
.wallet-btn.is-wrong svg { color: #F5A623; }

.wallet-menu {
  position: fixed; z-index: 40; min-width: 220px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
}
.wallet-menu [role="menuitem"] {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 42px; padding: 0 12px;
  border: 0; border-radius: 8px; background: none; cursor: pointer; text-align: left;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.wallet-menu [role="menuitem"]:hover { background: var(--hover); color: var(--blue); }
.wallet-menu svg { width: 18px; height: 18px; color: var(--gray); }

.wallet-modal .modal-inner { padding: 20px; }
.wallet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.wallet-head .modal-title { margin: 0; }
.wallet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wallet-row {
  display: flex; align-items: center; gap: 14px; width: 100%; height: 64px; padding: 0 14px 0 12px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; text-align: left;
  font-size: 15px; font-weight: 500;
  transition: border-color .2s, background-color .2s, transform .2s, box-shadow .2s;
}
.wallet-row:hover { border-color: rgba(0, 175, 240, .5); background: #FAFDFF; box-shadow: 0 6px 18px rgba(0, 120, 180, .08); transform: translateY(-1px); }
.wallet-row:active { transform: translateY(0); }
.wallet-row.is-busy { pointer-events: none; }
.wallet-icon {
  width: 40px; height: 40px; flex: none; overflow: hidden;
  display: grid; place-items: center; border-radius: 11px;
  background: var(--blue); color: #fff; font-weight: 700;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}
.wallet-icon img { width: 100%; height: 100%; object-fit: cover; }
.wallet-name { flex: 1; min-width: 0; color: var(--ink); }
.wallet-state { font-size: 13px; color: var(--gray); }
.wallet-state.is-detected {
  padding: 5px 10px; border-radius: 999px;
  background: rgba(0, 175, 240, .1); color: var(--blue); font-weight: 500;
}

/* Hearts loader */
.hearts { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); }
.hearts svg {
  width: 16px; height: 16px; opacity: .22; transform: scale(.84);
  animation: heart-row 2s cubic-bezier(.45, 0, .55, 1) infinite;
  will-change: opacity, transform;
}
.hearts svg:nth-child(2) { animation-delay: .2s; }
.hearts svg:nth-child(3) { animation-delay: .4s; }
.hearts svg:nth-child(4) { animation-delay: .6s; }
.hearts svg:nth-child(5) { animation-delay: .8s; }
.hearts--lg { gap: 16px; }
.hearts--lg svg { width: 44px; height: 44px; }
.hearts--sm { gap: 4px; }
.hearts--sm svg { width: 12px; height: 12px; }
@keyframes heart-row {
  0%, 100% { opacity: .22; transform: scale(.84); }
  45% { opacity: 1; transform: scale(1); }
}

.preloader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  transition: opacity .45s cubic-bezier(.2, .8, .2, 1), visibility .45s;
  animation: preloader-fallback .01s 6s forwards;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader.is-done .hearts { transform: scale(.96); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes preloader-fallback { to { opacity: 0; visibility: hidden; } }

/* Page heads */
.page-head { padding: 22px 20px 20px; border-bottom: 1px solid var(--line); }
.page-title { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.page-sub { margin: 6px 0 0; font-size: 15px; color: var(--gray); }

/* Launch form */
.launch-form { display: grid; gap: 18px; padding: 20px 20px 8px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.field-label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field-optional { margin-left: 4px; font-weight: 400; color: var(--gray); }
.field-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.input {
  display: flex; align-items: center; min-width: 0; min-height: 48px;
  border: 1px solid var(--line-strong); border-radius: 6px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 175, 240, .15); }
.input input, .input textarea {
  flex: 1 1 auto; width: 0; min-width: 0; height: 46px; padding: 0 14px;
  border: 0; outline: 0; background: none;
  font: 400 15px/1.4 var(--font); color: var(--ink);
}
.input textarea { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; }
.input--area { align-items: stretch; }
.input input::placeholder, .input textarea::placeholder { color: var(--gray); opacity: .8; }
.input-affix { padding-left: 14px; font-size: 15px; color: var(--gray); white-space: nowrap; }
.input--prefix input { padding-left: 2px; }
.input--suffix .input-affix { padding: 0 14px 0 0; font-weight: 500; }
.input--suffix input { font-variant-numeric: tabular-nums; }

.drop {
  position: relative; display: grid; place-items: center; height: 180px; overflow: hidden;
  border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--soft); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.drop:hover, .drop.is-over { border-color: var(--blue); background: rgba(0, 175, 240, .06); }
.drop:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 175, 240, .15); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-empty { display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--gray); }
.drop-empty svg { width: 32px; height: 32px; color: var(--blue); }
.drop-title { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.drop-hint { font-size: 13px; }
.drop.has-image .drop-empty { display: none; }
.drop-preview { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.field-error { margin: 0; font-size: 13px; color: #E0245E; }

.socials { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.socials summary {
  display: flex; align-items: center; justify-content: space-between; height: 48px;
  list-style: none; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--blue);
}
.socials summary::-webkit-details-marker { display: none; }
.socials summary::after { content: "+"; font-size: 22px; font-weight: 400; line-height: 1; color: var(--gray); }
.socials[open] summary::after { content: "−"; }
.socials .field { margin-bottom: 16px; }

.launch-submit { display: grid; gap: 12px; padding: 4px 0 12px; }
.launch-submit .btn--sub { justify-content: center; margin-top: 0; font-size: 15px; letter-spacing: 0; text-transform: none; }
.launch-submit .btn--split { justify-content: space-between; }
.launch-submit .btn--split:disabled { opacity: 1; cursor: default; }
[data-launch-note]:empty { display: none; }

/* Launch preview */
.pv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.pv-label { color: var(--gray); }
.pv-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--blue); }
.pv-desc { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.note { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.note-body { min-width: 0; }
.note-body p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
.note-body strong { font-weight: 500; color: var(--ink); }
.note-meta { display: block; margin-top: 4px; font-size: 13px; color: var(--gray); }

/* Docs */
.doc { padding: 0 20px 16px; }
.doc section { padding: 22px 0 20px; border-bottom: 1px solid var(--line); }
.doc section:last-child { border-bottom: 0; }
.doc h2 { margin: 0 0 10px; font-size: 19px; font-weight: 700; }
.doc p { margin: 0 0 10px; line-height: 1.6; color: var(--ink-2); }
.doc ol { display: grid; gap: 6px; margin: 0; padding-left: 22px; line-height: 1.55; color: var(--ink-2); }
.doc ol li::marker { color: var(--gray); }
.doc a { color: var(--blue); }
.doc .ca { max-width: 520px; margin-top: 12px; }
.doc-table { margin: 14px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.doc-table div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.doc-table div:first-child { border-top: 0; }
.doc-table dt { color: var(--gray); }
.doc-table dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.toc { display: grid; gap: 2px; margin: 4px 0 8px; }
.toc a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.toc a:hover { background: var(--hover); color: var(--blue); }
.toc a.is-active { background: var(--hover); color: var(--blue); }

/* Shared bits */
.btn--lg { height: 54px; padding: 0 30px; font-size: 16px; letter-spacing: 0; text-transform: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 5px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: #fff;
  font-size: .9em; font-weight: 500; color: var(--ink-2); vertical-align: 2px; white-space: nowrap;
}
.chip-dot { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 175, 240, .12); color: var(--blue); }
.chip-dot svg { width: 14px; height: 14px; }
.chip-dot--pons { background: #111; }
.chip-dot--pons img { width: 15px; height: 15px; }
.avatar--initials { color: #fff; font-weight: 700; box-shadow: none; }
.avatar--32 { width: 32px; height: 32px; }
.avatar--40 { width: 40px; height: 40px; font-size: 15px; }
.field-hint { margin: 0; font-size: 13px; color: var(--gray); }
.form-divider { margin: 2px 0; border: 0; border-top: 1px solid var(--line); }

/* Home */
/* ============ Variant A — Centerpiece emblem ============
   .hero-emblem (box = the mark, 800:558) holds, back → front:
     halo   – static radial light, z -3
     floor  – contact shadow that breathes with the float, z -2
     float  – z -1, bobs up and down:
                bloom – blurred copy of the mark = coloured glow under it
                body  – carries the drop shadows; contains
                          fill – white O-hole disc + white feather silhouette (vector),
                                 so the transparent cut-outs (hole, arrow, notch) read crisp white
                          mark – the untouched PNG
   All layers use negative z-index inside .home-hero (isolation: isolate), so the light
   always sits behind the title text. */

.home-hero--emblem { padding: 52px 20px 88px; overflow-x: clip; }
.home-hero--emblem::before { content: none; }               /* the emblem brings its own light */
.home-hero--emblem .hero-title { font-size: clamp(42px, 5.6vw, 72px); }

.hero-emblem {
  --w: clamp(240px, min(60vw, 55vh), 500px);
  position: relative;
  width: var(--w); aspect-ratio: 800 / 558;
  margin: 0 auto 44px;
}
.hero-emblem > *, .hero-emblem-float > *, .hero-emblem-body > * { position: absolute; pointer-events: none; }
.hero-emblem-float, .hero-emblem-body, .hero-emblem img, .hero-emblem-fill { inset: 0; width: 100%; height: 100%; max-width: none; }

/* soft blue halo the emblem sits in */
.hero-emblem-halo {
  left: 50%; top: 54%; z-index: -3;
  width: 190%; aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(0, 175, 240, .22) 0%,
    rgba(0, 175, 240, .12) 34%,
    rgba(0, 175, 240, .045) 62%,
    rgba(0, 175, 240, 0) 100%);
  animation: emblem-fade 1.6s ease-out both;
}

/* contact shadow under the mark's mass (ring + feather foot ≈ 42% across) */
.hero-emblem-floor {
  left: 42%; top: 100%; z-index: -2;
  width: 58%; height: 22px; margin-top: 12px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 92, 150, .20), rgba(0, 92, 150, .06) 60%, rgba(0, 92, 150, 0));
  animation: emblem-fade 1.6s ease-out both, emblem-floor 7s ease-in-out 1.1s infinite;
}

.hero-emblem-float {
  z-index: -1; will-change: transform;
  animation: emblem-in 1.1s cubic-bezier(.2, .8, .2, 1) both, emblem-float 7s ease-in-out 1.1s infinite;
}
.hero-emblem-bloom {                 /* coloured glow, dropped below the mark */
  filter: blur(26px) saturate(1.3);
  opacity: .45;
  transform: translateY(11%) scale(.9);
}
.hero-emblem-body {
  filter:
    drop-shadow(0 20px 26px rgba(0, 96, 160, .18))
    drop-shadow(0 3px 5px rgba(0, 96, 160, .16));
}
.hero-emblem-fill { fill: #fff; }

@keyframes emblem-in    { from { opacity: 0; scale: .94; translate: 0 16px; } }
@keyframes emblem-fade  { from { opacity: 0; } }
@keyframes emblem-float { 50% { transform: translateY(-10px); } }
@keyframes emblem-floor { 50% { transform: scale(.86); opacity: .6; } }

@media (max-width: 699px) {
  .home-hero--emblem { padding: 30px 16px 48px; }
  .hero-emblem { --w: min(250px, 68vw); margin-bottom: 30px; }
  .hero-emblem-body {
    filter:
      drop-shadow(0 12px 16px rgba(0, 96, 160, .18))
      drop-shadow(0 2px 3px rgba(0, 96, 160, .16));
  }
  .hero-emblem-bloom { filter: blur(16px) saturate(1.3); }
  .hero-emblem-floor { height: 14px; margin-top: 8px; }
  @keyframes emblem-float { 50% { transform: translateY(-6px); } }
}
@media (prefers-reduced-motion: reduce) {
  .hero-emblem * { animation: none !important; }
}

.home { overflow: hidden; }
.home-hero { position: relative; isolation: isolate; padding: 96px 20px 80px; text-align: center; }
.home-hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -220px;
  width: 1100px; height: 640px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 175, 240, .16), rgba(0, 175, 240, .05) 55%, rgba(0, 175, 240, 0));
}
.hero-title {
  max-width: 860px; margin: 0 auto;
  font-size: clamp(42px, 6.6vw, 80px); font-weight: 700; line-height: 1.02; letter-spacing: -.04em;
}
.hero-accent { color: var(--blue); }
.hero-logo { display: inline-block; width: auto; height: .86em; margin-left: .08em; vertical-align: -.1em; }
.title-logo { display: inline-block; width: auto; height: .86em; vertical-align: -.12em; }
.hero-sub { max-width: 640px; margin: 24px auto 0; font-size: clamp(16px, 1.7vw, 20px); line-height: 1.6; color: var(--gray); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.home-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px;
  max-width: var(--shell); margin: 0 auto; padding: 0 20px 96px;
}
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.board-title { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.025em; }
.board-title .hero-accent { font-weight: 700; }
.pager { display: flex; flex: none; white-space: nowrap; align-items: center; gap: 8px; font-size: 14px; color: var(--gray); font-variant-numeric: tabular-nums; }
.board--side .board-title { font-size: 22px; letter-spacing: -.02em; }
.pager button {
  width: 34px; height: 34px; padding: 0; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink-2); cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.pager button svg { width: 18px; height: 18px; }
.pager button:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.pager button:disabled { opacity: .35; cursor: default; }

.token-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tcard {
  display: block; padding: 10px; border: 1px solid var(--line); border-radius: 22px; background: #fff;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s;
  animation: card-in .5s cubic-bezier(.2, .8, .2, 1) both;
}
.tcard:hover { transform: translateY(-3px); border-color: rgba(0, 175, 240, .35); box-shadow: 0 16px 36px rgba(16, 24, 40, .08); }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }
.tcard-media { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: var(--soft); }
.tcard--own { border-color: rgba(0, 175, 240, .45); box-shadow: 0 0 0 4px rgba(0, 175, 240, .08); }
.tcard-own {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 25% 15%, #FFFFFF 0%, #EAF8FF 45%, #C9EDFF 100%);
}
.tcard-media .tcard-own img { width: 72%; height: auto; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0, 120, 180, .22)); }
.tcard-pin {
  position: absolute; top: 8px; left: 8px;
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 7px; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 600;
}
.tcard-pin svg { width: 13px; height: 13px; }
.tcard-own-avatar { background: #fff; }
.tcard-own-avatar img { width: 80%; height: auto; border-radius: 0; object-fit: contain; }
.tcard-media img { width: 100%; height: 100%; object-fit: cover; }
.tcard-tile { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.tcard-age {
  position: absolute; top: 8px; right: 8px; padding: 4px 9px; border-radius: 999px;
  background: rgba(0, 0, 0, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: 12px; font-weight: 500;
}
.tcard { position: relative; }
.tcard-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tcard-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.tcard-venue {
  position: absolute; top: 8px; left: 8px; width: 28px; height: 28px;
  display: grid; place-items: center; border-radius: 50%; background: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.tcard-media .tcard-venue img { width: 16px; height: 16px; object-fit: contain; }
.tcard-age { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.tcard-age.is-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(63, 214, 113, .25); }
.tcard-body { padding: 12px 6px 4px; }
.tcard-title { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.tcard-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 600; }
.tcard-ticker { flex: none; font: 500 12px var(--mono); color: var(--gray); }
.tcard-pair { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 8px; font-size: 13px; color: var(--gray); }
.tcard-pair .avatar { width: 20px; height: 20px; font-size: 10px; }
.tcard-pair-label { flex: none; }
.tcard-pair-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink); }
.tcard-pair .badge { width: 14px; height: 14px; }
.tcard-tipped {
  position: absolute; left: 8px; bottom: 8px;
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
  font-size: 13px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums;
}
.tcard-tipped svg { width: 14px; height: 14px; color: var(--like); }
.tcard-ca {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 3px 3px 3px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--soft);
}
.tcard-ca-label { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--gray); }
.tcard-ca-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 12px var(--mono); color: var(--ink-2); }
.tcard-copy {
  width: 26px; height: 26px; padding: 0; flex: none;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: #fff; color: var(--blue); cursor: pointer; box-shadow: 0 0 0 1px var(--line);
  transition: color .2s, background-color .2s;
}
.tcard-copy svg { width: 14px; height: 14px; }
.tcard-copy:hover:not(:disabled) { background: var(--blue); color: #fff; }
.tcard-copy:disabled { color: var(--line-strong); cursor: default; }
.tcard-copy.is-done { background: var(--green); color: #fff; }

.creator-list { display: grid; gap: 16px; }
.ccard {
  display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s;
  animation: card-in .5s cubic-bezier(.2, .8, .2, 1) both;
}
.ccard:hover { transform: translateY(-3px); border-color: rgba(0, 175, 240, .35); box-shadow: 0 16px 36px rgba(16, 24, 40, .08); }
.ccard-cover { position: relative; height: 112px; overflow: hidden; background: linear-gradient(135deg, #1BC1FF, #0092D6); }
.ccard-cover .ccard-cover-img {
  position: absolute; left: -20%; top: -60%; width: 140%; height: 220%;
  object-fit: cover; filter: blur(24px) saturate(1.3) brightness(1.02); transform: scale(1.05);
}
.ccard-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .22)); }
.ccard-cover img { width: 100%; height: 100%; object-fit: cover; }
.ccard-body { padding: 0 18px 18px; }
.ccard-avatar { width: 78px; height: 78px; margin-top: -39px; font-size: 28px; box-shadow: 0 0 0 4px #fff; }
.ccard-avatar img { border-radius: 50%; }
.ccard-name { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 19px; font-weight: 700; }
.ccard-name .badge { width: 19px; height: 19px; }
.ccard-handle { font-size: 15px; color: var(--gray); }
.ccard-stats { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 14px; font-size: 14px; color: var(--gray); }
.ccard-stats strong { margin-right: 4px; font-size: 18px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ccard-actions { display: flex; gap: 8px; margin-top: 16px; }
.ccard-actions .btn { flex: 1; height: 40px; padding: 0 12px; letter-spacing: 0; text-transform: none; font-size: 14px; }
.btn-logo { width: auto; height: 15px; }

.board-empty {
  display: grid; justify-items: center; gap: 10px; padding: 56px 24px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: 22px;
  background: linear-gradient(180deg, #fff, var(--soft));
}
.board-empty .empty-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 175, 240, .1); color: var(--blue); }
.board-empty .empty-icon svg { width: 26px; height: 26px; }
.board-empty h3 { margin: 6px 0 0; font-size: 18px; font-weight: 700; }
.board-empty p { max-width: 340px; margin: 0; color: var(--gray); }
.board-empty .btn { margin-top: 8px; }

/* Launch */
.launch-page { display: grid; gap: 20px; max-width: var(--shell); margin: 0 auto; padding: 28px 20px 40px; }
.launch-hero {
  position: relative; overflow: hidden; padding: 38px 40px;
  border-radius: 28px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #1BC1FF 0%, #00AFF0 45%, #0092D6 100%);
  box-shadow: 0 18px 44px rgba(0, 150, 210, .22);
}
.launch-hero h1 { position: relative; z-index: 1; margin: 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.03em; }
.launch-hero p { position: relative; z-index: 1; max-width: 600px; margin: 12px 0 0; font-size: 17px; line-height: 1.55; opacity: .92; }
.launch-hero-mark {
  position: absolute; right: -70px; top: 50%; width: 560px; height: 390px; transform: translateY(-50%);
  background: #fff; opacity: .2; pointer-events: none;
  -webkit-mask: url("assets/mark.png") center / contain no-repeat;
  mask: url("assets/mark.png") center / contain no-repeat;
}
.launch-card {
  display: grid; grid-template-columns: minmax(0, 1fr) 420px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 28px; background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 22px 56px rgba(16, 24, 40, .06);
}
.launch-page .launch-form { gap: 20px; padding: 32px; }
.launch-form-title { margin: 0 0 4px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.launch-preview { display: grid; align-content: start; gap: 20px; padding: 32px 28px; background: var(--soft); border-left: 1px solid var(--line); }
.launch-foot { display: flex; justify-content: center; gap: 8px; margin: 4px 0 0; font-size: 13px; color: var(--gray); }
.launch-foot a:hover { color: var(--blue); }

.recipient { position: relative; }
.field-label--logo { display: inline-flex; align-items: center; gap: 6px; }
.label-logo { width: auto; height: 17px; }
.recipient-hint { padding: 12px; font-size: 14px; color: var(--gray); }
.input--search { padding-left: 14px; }
.input-icon { width: 19px; height: 19px; flex: none; color: var(--gray); }
.input--search input { padding-left: 10px; }
.recipient-list {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(16, 24, 40, .12);
}
.recipient-option { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; cursor: pointer; }
.recipient-option[aria-selected="true"], .recipient-option:hover { background: var(--hover); }
.recipient-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.recipient-who strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.recipient-who span, .recipient-who a { font-size: 13px; color: var(--gray); }
.recipient-who a:hover { color: var(--blue); }
.recipient-chip {
  display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 10px;
  border: 1px solid rgba(0, 175, 240, .45); border-radius: 16px; background: #FAFDFF;
  animation: reveal .3s ease;
}
.recipient-clear {
  width: 34px; height: 34px; margin-left: auto; padding: 0; flex: none;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--gray); cursor: pointer;
}
.recipient-clear svg { width: 18px; height: 18px; }
.recipient-clear:hover { background: var(--hover); color: var(--blue); }

.picker {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 10px;
  border: 1px dashed var(--line-strong); border-radius: 16px; background: #fff; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.picker:hover, .picker.is-over { border-color: var(--blue); background: #FAFDFF; }
.picker:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 175, 240, .15); }
.picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.picker-thumb { width: 54px; height: 54px; flex: none; overflow: hidden; display: grid; place-items: center; border-radius: 12px; background: var(--soft); color: var(--gray); }
.picker-thumb svg { width: 22px; height: 22px; }
.picker-thumb img { width: 100%; height: 100%; object-fit: cover; }
.picker-text { display: flex; flex-direction: column; min-width: 0; }
.picker-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 500; color: var(--ink); }
.picker-hint { font-size: 13px; color: var(--gray); }


.notif {
  position: relative; padding: 16px 18px 14px;
  border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 32px rgba(16, 24, 40, .08);
  animation: notif-in .6s cubic-bezier(.2, .8, .2, 1) both;
}
.notif.is-new { animation: notif-new .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes notif-in { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
@keyframes notif-new { 0% { transform: translateY(-6px) scale(.985); opacity: .4; } 100% { transform: none; opacity: 1; } }
.notif-icons { display: flex; align-items: center; gap: 8px; }
.notif-tip { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 175, 240, .12); color: var(--blue); }
.notif-tip svg { width: 20px; height: 20px; }
.notif-bell { position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; color: var(--gray); }
.notif-text { margin: 10px 0 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.notif-text strong { font-weight: 700; color: var(--ink); }
.notif-time { display: block; margin-top: 2px; font-size: 13px; color: var(--gray); }

.pv-card { padding: 14px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: 0 12px 32px rgba(16, 24, 40, .06); }
.pv-image { position: relative; aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); }
.pv-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-empty { width: 18px; height: 3px; border-radius: 2px; background: var(--line-strong); }
.pv-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; margin: 16px 6px 0; }
.pv-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 19px; font-weight: 500; }
.pv-ticker { flex: none; font: 500 13px var(--mono); color: var(--gray); }
.pv-stats { display: flex; gap: 16px; margin: 8px 6px 0; font-size: 14px; color: var(--gray); }
.pv-stats strong { margin-right: 5px; font-size: 24px; font-weight: 700; color: var(--ink); }
.pv-rows { margin: 14px 6px 2px; }
.pv-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pv-rows dt { color: var(--gray); }
.pv-rows dd { max-width: 55%; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--ink); }

/* Site footer (home) */
.site-footer { border-top: 1px solid var(--line); }
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--shell); margin: 0 auto; padding: 24px 20px 32px; }
.site-footer .mini-links { padding: 0; }

/* Plain pages (Tips, Capital flow) */
.page-flow { padding: 20px 0 8px; }
.page-flow .flow { border-radius: 0; }

@media (max-width: 1160px) {
  .token-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1039px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .creator-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .launch-card { grid-template-columns: minmax(0, 1fr); }
  .launch-preview { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 699px) {
  .home-hero { padding: 56px 16px 48px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .home-grid { padding: 0 16px 64px; gap: 32px; }
  .board-title { font-size: 22px; }
  .token-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tcard { padding: 8px; border-radius: 18px; }
  .tcard-ca { padding-left: 8px; }
  .tcard-ca-label { display: none; }
  .tcard-ca-value { font-size: 11px; }
  .tcard-pair { font-size: 12px; }
  .creator-list { grid-template-columns: minmax(0, 1fr); }
  .site-footer-inner { flex-direction: column; align-items: flex-start; padding: 20px 16px 24px; }
  .launch-page { padding: 16px 12px 32px; }
  .launch-hero { padding: 28px 22px; border-radius: 22px; }
  .launch-hero-mark { width: 220px; height: 150px; right: -50px; }
  .launch-card { border-radius: 22px; }
  .launch-page .launch-form { padding: 22px 18px; }
  .launch-preview { padding: 22px 16px; }
}

/* Responsive */
@media (max-width: 1039px) {
  .app { grid-template-columns: minmax(0, var(--main)); }
  .rail { display: none; }
  .site-header-inner { padding: 0 20px; }
  .header-nav { display: none; }
  .main-footer { display: block; padding: 24px 20px 40px; }
  .main-footer .mini-note { margin-top: 8px; }
  .app--stack .main { min-height: 0; }
  .app--stack .rail { display: flex; position: static; height: auto; padding: 24px 20px 40px; }
}

@media (max-width: 699px) {
  :root { --header: 56px; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .app { display: block; }
  .main { border: 0; }
  .site-header-inner { padding: 0 16px; gap: 16px; }
  .brand img { height: 30px; }
  .header-actions { gap: 8px; }
  .cover { height: 150px; }
  .cover-top { padding: 12px 16px; }
  .cover-mark { width: 290px; height: 200px; right: -30px; bottom: -46px; }
  .profile-row { margin-top: -46px; padding: 0 16px; }
  .avatar--xl { width: 92px; height: 92px; }
  .presence { right: 4px; bottom: 4px; width: 16px; height: 16px; }
  .profile-actions { gap: 6px; }
  .icon-btn { width: 40px; height: 40px; }
  .icon-btn svg { width: 20px; height: 20px; }
  .profile-info, .subscribe { padding-left: 16px; padding-right: 16px; }
  .post { padding: 16px 16px 6px; }
  .post-media { margin-left: -16px; margin-right: -16px; }
  .post-actions { margin-left: -8px; }
  .flow { padding: 28px 24px; }
  .flow-track { grid-template-columns: 1fr; gap: 22px; }
  .flow-node { flex-direction: row; gap: 16px; text-align: left; }
  .flow-node:not(:last-child)::after { top: 60px; left: 30px; width: 1px; height: 22px; }
  .flow-node:not(:last-child)::before { top: 60px; left: 27px; animation-name: flow-y; }
  .locked { height: 260px; }
  .locked-cta { left: 16px; right: 16px; bottom: 16px; }
  .totals { padding: 24px 16px 20px; }
  .tip { padding: 14px 16px; grid-template-columns: minmax(0, 1fr) auto; }
  .tip-path { display: none; }
  .main-footer { padding: 24px 16px 32px; }
  .wallet-btn { width: 40px; padding: 0; }
  .site-header .header-actions > .btn--primary { display: none; }
  .token-btn { padding: 0 12px 0 6px; }
  .token-menu { left: 12px !important; right: 12px !important; width: auto; }
  .wallet-btn .wallet-btn-label { display: none; }
  .page-head { padding: 18px 16px 16px; }
  .launch-form { padding: 16px 16px 8px; }
  .doc { padding: 0 16px 8px; }
  .app--stack .rail { padding: 20px 16px 32px; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; justify-content: space-around; align-items: center;
    height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: #fff; border-top: 1px solid var(--line);
  }
  .tabbar a { width: 48px; height: 48px; display: grid; place-items: center; color: var(--ink); }
  .tabbar svg { width: 27px; height: 27px; }
  .tabbar .tabbar-cta { color: var(--blue); }
  .tabbar a[aria-current="page"] { color: var(--blue); }
  .toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
}

@media (max-width: 379px) {
  .site-header .btn--primary { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .flow-node::before { display: none; }
}
