/* clout — local recreation. Light blue canvas, vivid blue accents, Inter. */
:root {
  --canvas: #edf1f8;
  --surface: #ffffff;
  --ink: #0f1c2e;
  --muted: #55677e;
  --stone: #a9bcd2;
  --border: #dbe4ef;
  --blue: #2f6bff;
  --blue-wash: #c3d7ff;
  --blue-tint: #e4edff;
  --deep: #1b4ed8;
  --pos: #1a7f4b;
  --burn: #b3402f;
  --shadow-sm: #0f1c2e0f 0 2px 8px 0;
  --shadow-card: #0f1c2e1a 0 4px 6px -1px, #0f1c2e1a 0 2px 4px -2px;
  --shadow-lg: #0f1c2e1f 0 4px 24px 0;
  --shadow-blue: #2f6bff38 0 4px 24px 0;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
.num { font-variant-numeric: tabular-nums; }

/* brand type: Montserrat for display, Inter for body */
h2, h3, h4,
.stat .v, .lb-v, .lb-name, .hero-ticker .tnum,
.dir-head .count, .ladder-head, .lr-p,
.tm-quote .q-price, .tm-stat .v, .modal-head h3,
.wallet-btn, .dir-more, .tm-go {
  font-family: "Montserrat", "Inter", ui-sans-serif, system-ui, sans-serif;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 20px; width: auto; display: block; }
.push-right { margin-left: auto; }
.header-links { display: flex; align-items: center; gap: 4px; }
.header-nav-link {
  padding: 8px 12px; border-radius: 10px;
  color: var(--muted); font-weight: 500; font-size: 14.5px;
  transition: color .15s, background .15s;
}
.header-nav-link:hover { color: var(--ink); background: var(--blue-tint); }
.wallet-btn {
  margin-left: 10px; padding: 9px 16px;
  background: var(--ink); color: var(--surface);
  border: none; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  transition: transform .12s, box-shadow .12s, background .15s;
}
.wallet-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.wallet-btn.connected { background: var(--deep); }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: 28px 0 64px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-wordmark img {
  width: clamp(260px, 42vw, 540px); height: auto;
  display: inline-block;
}
.hero-tag {
  margin: 22px auto 0; max-width: 560px;
  color: var(--muted); font-size: 18px; line-height: 1.55;
}
.hero-ticker {
  margin: 34px auto 0; display: inline-flex; align-items: baseline; gap: 10px;
  padding: 12px 22px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hero-ticker .tnum { font-size: 24px; font-weight: 800; color: var(--deep); }
.hero-ticker .cap { color: var(--muted); font-size: 14px; font-weight: 500; }

/* hero card marquee — two rows, opposite directions, mouse parallax, flip swaps */
.hero-cards {
  position: relative; display: flex; flex-direction: column; gap: 24px;
  margin: 0 0 52px; perspective: 1200px; pointer-events: none;
}
.hc-row { padding: 16px 0 30px; }
.hc-track { width: max-content; display: flex; animation: hc-marquee 120s linear infinite; }
.hc-row-left .hc-track { animation-direction: reverse; }
.hc {
  --r: 0deg; --ty: 0px; --depth: 1;
  width: 128px; flex: 0 0 128px; margin: 0 -6px; position: relative;
  transform: translate3d(calc(var(--mx, 0) * var(--depth) * 18px), calc(var(--ty) + var(--my, 0) * var(--depth) * 14px), 0);
  will-change: transform;
}
.hc-inner {
  display: block; background: var(--surface); box-shadow: var(--shadow-card);
  border-radius: 24px; padding: 10px 10px 13px; cursor: pointer; pointer-events: auto;
  transform: rotate(var(--r)); transform-style: preserve-3d; backface-visibility: hidden;
  outline: 2px solid #0000; outline-offset: 3px;
  transition: box-shadow .18s, outline-color .18s;
  animation: hc-in .7s cubic-bezier(.2,.7,.3,1.15) both, hc-bob 4.6s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s), calc(var(--d, 0s) + .6s);
}
.hc-inner:hover {
  box-shadow: var(--shadow-lg), var(--shadow-blue);
  outline-color: var(--blue); z-index: 5; animation-play-state: paused;
}
.hc:has(.hc-inner:hover) { z-index: 6; }
.hc-inner:focus-visible { outline-color: var(--blue); }
.hc.flip .hc-inner { animation: hc-flip .72s ease-in-out both; }
.hc-media { display: block; position: relative; }
.hc-media .ava {
  width: 100%; height: auto; aspect-ratio: 1; border-radius: 16px;
  font-size: 34px; display: flex; border: none; box-shadow: none;
}
.hc-name, .hc-sub, .hc-mcap {
  display: block; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hc-name { margin-top: 9px; font-size: 12px; font-weight: 600; letter-spacing: -.01em; }
.hc-sub { margin-top: 2px; font-size: 10px; color: var(--muted); letter-spacing: 0; }
.hc-mcap { margin-top: 4px; font-size: 13px; font-weight: 800; color: var(--deep); letter-spacing: -.01em; }
@keyframes hc-marquee { 0% { transform: translate(0); } to { transform: translate(-50%); } }
@keyframes hc-in {
  0% { opacity: 0; transform: rotate(var(--r)) translateY(-30px) scale(.94); }
  to { opacity: 1; transform: rotate(var(--r)) translateY(0) scale(1); }
}
@keyframes hc-bob { from { transform: rotate(var(--r)) translateY(0); } to { transform: rotate(var(--r)) translateY(-8px); } }
@keyframes hc-flip {
  0% { transform: rotate(var(--r)) rotateY(0); }
  50% { transform: rotate(var(--r)) rotateY(90deg); }
  100% { transform: rotate(var(--r)) rotateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hc-track, .hc-inner { animation: none !important; }
}

/* ---------- stats ---------- */
.stats { padding: 8px 0 40px; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.stat .v { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.stat .v .unit { font-size: 16px; color: var(--muted); font-weight: 600; }
.stat .k { margin-top: 4px; color: var(--muted); font-size: 13.5px; font-weight: 500; }

/* ---------- leaderboard ---------- */
.leaderboard { padding: 24px 0 56px; }
.lb-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.lb-head h2, .dir-head h2, .mechanics h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.lb-sub { color: var(--muted); font-size: 14.5px; }
.lb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lb-card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 26px 18px 22px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-card);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.lb-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-blue);
  border-color: var(--blue-wash);
}
.lb-rank {
  position: absolute; top: 12px; left: 14px;
  color: var(--stone); font-weight: 800; font-size: 14px;
}
.lb-card:nth-child(1) .lb-rank,
.lb-card:nth-child(2) .lb-rank,
.lb-card:nth-child(3) .lb-rank { color: var(--blue); }
.lb-who { min-width: 0; }
.lb-name { font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em; }
.lb-identity-line { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 2px; }
.lb-handle { color: var(--muted); font-size: 13px; }
.lb-price { margin-top: 4px; }
.lb-v { font-size: 24px; font-weight: 800; color: var(--deep); }
.lb-k { color: var(--muted); font-size: 12px; font-weight: 500; margin-top: 2px; }

/* avatars — photo over gradient, initials underneath as fallback */
.ava, .ava-img {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 22px; letter-spacing: 0;
  border: 2px solid var(--surface); box-shadow: var(--shadow-sm);
  user-select: none; position: relative; overflow: hidden;
}
.ava i { font-style: normal; }
.ava img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit;
}
.lb-card .ava { width: 72px; height: 72px; font-size: 26px; }
.row .ava { width: 44px; height: 44px; font-size: 15px; }

/* ---------- directory ---------- */
.directory { padding: 12px 0 64px; }
.dir-head { display: flex; align-items: baseline; gap: 14px; }
.dir-head .count { color: var(--blue); font-weight: 700; font-size: 15px; }
.dir-sub { margin-top: 8px; max-width: 640px; color: var(--muted); font-size: 15px; line-height: 1.6; }

.dir-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 16px; }
.dir-search {
  margin-left: auto; padding: 9px 16px; width: 220px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 14px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.dir-search:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }

.dir-list {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-card); overflow: hidden;
}
.dir-cols, .row {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 2.6fr) minmax(110px, 1fr) minmax(130px, 1.2fr) 84px;
  gap: 14px; padding: 12px 20px;
}
.dir-cols {
  padding: 14px 20px; color: var(--muted);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}
.row {
  position: relative; border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.row:hover { background: #f3f7fd; }
.row-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.row > * { position: relative; z-index: 0; }
.row .x-link, .row .row-act { position: relative; z-index: 2; }
.row .who { display: flex; align-items: center; gap: 12px; min-width: 0; grid-column: 1; }
.row .ava { grid-column: auto; }
.nm { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; min-width: 0; }
.hd { display: flex; align-items: center; gap: 8px; margin-top: 3px; min-width: 0; }
.x-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--muted); font-size: 13px;
}
.x-link:hover { color: var(--deep); }
.x-link svg { width: 13px; height: 13px; }
.pnl-cell { display: flex; flex-direction: column; }
.pnl-v { color: var(--pos); font-weight: 700; font-size: 14.5px; }
.pnl-src { color: var(--stone); font-size: 12px; margin-top: 1px; }
.price { font-weight: 700; font-size: 14.5px; }
.price .unit { color: var(--muted); font-weight: 500; font-size: 12.5px; margin-left: 3px; }
.price-next { display: block; color: var(--deep); font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.row-act { text-align: right; }
.btn.ghost {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--ink); font-weight: 600; font-size: 13.5px;
  transition: all .14s;
}
.btn.ghost:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.dir-more {
  width: 100%; padding: 15px; border: none; background: var(--surface);
  color: var(--deep); font-weight: 700; font-size: 14.5px;
  transition: background .14s;
}
.dir-more:hover { background: var(--blue-tint); }
.dir-more-rest { color: var(--stone); font-weight: 500; margin-left: 6px; }
.dir-empty { padding: 42px 20px; text-align: center; color: var(--muted); font-size: 14.5px; }

/* ---------- mechanics ---------- */
.mechanics { padding: 24px 0 72px; }
.mech-sub { color: var(--muted); margin-top: 8px; font-size: 15px; }
.mech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.mech {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 24px; box-shadow: var(--shadow-sm);
}
.mech .n { color: var(--blue); font-weight: 800; font-size: 13px; letter-spacing: 0.08em; }
.mech h3 { margin-top: 10px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.mech p { margin-top: 8px; color: var(--muted); font-size: 13.8px; line-height: 1.6; }

.ladder {
  margin-top: 16px; background: var(--ink); color: var(--surface);
  border-radius: 20px; padding: 26px 28px; box-shadow: var(--shadow-lg);
}
.ladder-head { font-weight: 700; font-size: 15px; color: var(--blue-wash); }
.ladder-rows { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.ladder-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 12px 16px; border: 1px solid #ffffff22; border-radius: 12px;
}
.lr-n { color: var(--stone); font-size: 13px; font-weight: 500; }
.lr-p { font-weight: 800; font-size: 17px; }
.lr-p .unit { color: var(--blue-wash); font-size: 12px; font-weight: 600; margin-left: 3px; }

.burn-line {
  margin-top: 16px; display: flex; align-items: center; gap: 18px;
  background: #f9ece9; border: 1px solid #eccfc9;
  border-radius: 16px; padding: 18px 22px;
}
.burn-line .flame { flex: none; color: var(--burn); font-weight: 800; font-size: 15px; }
.burn-line p { color: #8a4a3f; font-size: 14px; line-height: 1.55; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 48px 0 28px; }
.fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.fbrand { display: inline-flex; align-items: center; }
.fbrand .brand-logo { height: 22px; }
.fbrand-col p { margin-top: 12px; color: var(--muted); font-size: 14px; max-width: 280px; line-height: 1.55; }
.fcol h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--stone); margin-bottom: 12px; }
.fcol a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; }
.fcol a:hover { color: var(--deep); }
.fbottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 13px;
}
.ficon-link { display: inline-flex; align-items: center; gap: 7px; }
.ficon-link .icon-16 { width: 15px; height: 15px; }

/* ---------- modals ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: #0f1c2e66; backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .16s ease;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  width: 100%; max-width: 380px;
  background: var(--surface); border-radius: 22px;
  box-shadow: var(--shadow-lg); padding: 22px;
  animation: popIn .18s ease;
}
.modal-wide { max-width: 440px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.modal-x {
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: var(--canvas); color: var(--muted); font-size: 18px; line-height: 1;
  transition: background .14s, color .14s;
}
.modal-x:hover { background: var(--border); color: var(--ink); }
.wallet-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.wallet-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); font-weight: 600; font-size: 15px;
  transition: all .14s;
}
.wallet-opt:hover { border-color: var(--blue); background: var(--blue-tint); }
a.wallet-opt { text-decoration: none; color: inherit; cursor: pointer; }
.w-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
}
.w-ico svg { width: 16px; height: 16px; }
.w-ico-x { background: var(--ink); color: #fff; }
.modal-note { margin-top: 14px; color: var(--stone); font-size: 12.5px; text-align: center; }

/* ---------- auth / profile ---------- */
.auth-id { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; }
.auth-id .ava { width: 46px; height: 46px; font-size: 16px; }
.auth-id b { display: block; font-size: 16.5px; }
.auth-id span { color: var(--muted); font-size: 13.5px; }
.auth-wal {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px;
}
.auth-wal code { color: var(--muted); font-size: 13px; }
.auth-actions { display: flex; gap: 8px; margin-top: 16px; }
.auth-actions .btn { flex: 1; text-align: center; }
.you-pill {
  display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px;
  background: var(--blue-tint); color: var(--deep);
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; vertical-align: middle;
}

.tm-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tm-who .ava { width: 46px; height: 46px; font-size: 16px; }
.tm-who .nm { font-size: 16px; }
.tm-who .hd { margin-top: 1px; }
.tm-body { margin-top: 20px; }
.tm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tm-stat { background: var(--canvas); border-radius: 12px; padding: 12px 14px; }
.tm-stat .v { font-weight: 800; font-size: 17px; }
.tm-stat .k { color: var(--muted); font-size: 12px; margin-top: 2px; }
.tm-tabs { display: flex; gap: 6px; margin-top: 18px; background: var(--canvas); padding: 5px; border-radius: 12px; }
.tm-tab {
  flex: 1; padding: 9px; border: none; border-radius: 9px;
  background: transparent; color: var(--muted); font-weight: 700; font-size: 14px;
  transition: all .14s;
}
.tm-tab.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tm-quote { margin-top: 16px; text-align: center; }
.tm-quote .q-price { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.tm-quote .q-cap { color: var(--muted); font-size: 13px; margin-top: 3px; }
.tm-go {
  width: 100%; margin-top: 16px; padding: 14px;
  border: none; border-radius: 14px;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 15.5px;
  transition: filter .14s, transform .12s;
}
.tm-go:hover { filter: brightness(1.07); transform: translateY(-1px); }
.tm-go.sell { background: var(--burn); }
.tm-go:disabled { background: var(--stone); cursor: not-allowed; transform: none; }
.tm-holdings { margin-top: 12px; text-align: center; color: var(--muted); font-size: 13px; }
.tm-holdings b { color: var(--ink); }

/* ---------- toasts ---------- */
.toast-wrap {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--ink); color: var(--surface);
  padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg);
  animation: toastIn .22s ease;
}
.toast.out { opacity: 0; translate: 0 8px; transition: all .3s; }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .lb-grid, .mech-grid, .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .ladder-rows { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hc-row-left { display: none; }
  .hero-cards { margin: 0 0 28px; }
  .hc:nth-child(2n) { display: none; }
}
@media (max-width: 720px) {
  .header-links .header-nav-link { display: none; }
  .dir-cols { display: none; }
  .dir-cols, .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row .pnl-cell, .row .price { grid-column: 1 / -1; }
  .dir-search { width: 100%; margin-left: 0; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .burn-line { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- account page ---------- */
.profile-main { padding: 36px 0 72px; }
.back {
  display: inline-block; margin-bottom: 20px;
  color: var(--muted); font-size: 14px; font-weight: 600;
}
.back:hover { color: var(--deep); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.p-card, .buy-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; box-shadow: var(--shadow-card); padding: 28px;
}
.p-id { display: flex; gap: 18px; align-items: flex-start; }
.p-id .ava { width: 88px; height: 88px; font-size: 32px; border-radius: 24px; }
.p-id h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.p-id .hd { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.p-bio { margin-top: 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.p-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.p-meta .m { background: var(--canvas); border-radius: 14px; padding: 14px 16px; }
.p-meta .v { font-family: "Montserrat", "Inter", sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.p-meta .k { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 500; }

.profile-curve { margin-top: 26px; border-top: 1px solid var(--border); padding-top: 22px; }
.profile-curve-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.profile-curve-kicker { color: var(--blue); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.profile-curve-head h2 { margin-top: 4px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.profile-curve-price { text-align: right; color: var(--muted); font-size: 12px; }
.profile-curve-price b { display: block; color: var(--deep); font-size: 20px; }
.profile-curve-stage { margin-top: 16px; }
.profile-curve-svg { width: 100%; height: 220px; display: block; }
.profile-curve-grid line { stroke: var(--border); stroke-width: 1; }
.profile-curve-line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.profile-curve-current-line { stroke: var(--deep); stroke-width: 1; stroke-dasharray: 3 4; }
.profile-curve-current-ring { fill: var(--blue-wash); }
.profile-curve-current-dot { fill: var(--deep); }
.profile-curve-labels { display: flex; justify-content: space-between; color: var(--stone); font-size: 12px; margin-top: 6px; }

.claim-note {
  margin-top: 24px; background: var(--blue-tint); border: 1px solid var(--blue-wash);
  border-radius: 16px; padding: 16px 20px;
}
.claim-note p { color: var(--deep); font-size: 14px; line-height: 1.55; }
.claim-note a { font-weight: 600; text-decoration: underline; }

.trade-col { position: sticky; top: 76px; }
.bc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bc-title { font-family: "Montserrat", "Inter", sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.bc-price { color: var(--deep); font-weight: 800; font-size: 16px; }
.bc-price .unit { color: var(--muted); font-size: 12px; font-weight: 500; }
.qty-row { display: flex; gap: 6px; margin-top: 14px; }
.qty {
  flex: 1; padding: 9px 6px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--muted); font-weight: 700; font-size: 13.5px;
  transition: all .14s;
}
.qty:hover { border-color: var(--blue-wash); color: var(--ink); }
.qty.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.bc-split { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.bc-split .r { display: flex; align-items: baseline; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.bc-split .r b { color: var(--ink); font-weight: 700; }
.bc-split .bc-total { border-top: 1px solid var(--border); padding-top: 10px; }
.bc-split .bc-total b { color: var(--deep); }
.btn.primary {
  display: inline-block; padding: 12px 22px; border: none; border-radius: 999px;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 15px;
  transition: filter .14s, transform .12s;
}
.btn.primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn.primary.big.full { width: 100%; margin-top: 18px; padding: 14px; }

/* ---------- odometer ---------- */
.odo { display: inline-flex; }
.odo-digit { display: inline-block; height: 1em; line-height: 1em; overflow: hidden; }
.odo-reel {
  display: flex; flex-direction: column;
  transform: translateY(calc(var(--odo-target) * -1em));
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--odo-delay, 0ms);
}
.odo-reel span { height: 1em; line-height: 1em; display: block; }
.odo-digit:not(.odo-in) .odo-reel { transform: translateY(0); }
.odo-char { display: inline-block; }

@media (max-width: 1020px) {
  .profile-grid { grid-template-columns: 1fr; }
  .trade-col { position: static; }
  .p-meta { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- subpage shared ---------- */
.page-hero { text-align: left; padding: 44px 0 26px; }
.page-hero h1 { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; }
.page-hero p { margin-top: 10px; max-width: 620px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.page-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px; }
.page-stats.three { grid-template-columns: repeat(3, 1fr); }

/* ---------- leaderboard page ---------- */
.lbp-table {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-card); overflow: hidden; margin-bottom: 64px;
}
.lbp-cols, .lbp-row {
  display: grid; align-items: center;
  grid-template-columns: 56px minmax(0, 2.4fr) minmax(90px, .9fr) minmax(120px, 1fr);
  gap: 14px; padding: 12px 22px;
}
.lbp-cols {
  padding: 14px 22px; color: var(--muted);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}
.lbp-row { border-bottom: 1px solid var(--border); transition: background .12s; }
.lbp-row:hover { background: #f3f7fd; }
.lbp-row:last-child { border-bottom: none; }
.lbp-rank { color: var(--stone); font-weight: 800; font-size: 14px; }
.lbp-row.top .lbp-rank { color: var(--blue); }
.lbp-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lbp-who .ava { width: 40px; height: 40px; font-size: 14px; }
.lbp-names { min-width: 0; }
.lbp-name { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbp-identity-line { display: flex; align-items: center; gap: 6px; margin-top: 1px; }
.lbp-handle { color: var(--muted); font-size: 12.5px; }
.lbp-num { font-weight: 700; font-size: 14.5px; }
.lbp-num .unit { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 3px; }
.lbp-mcap { color: var(--deep); }

/* ---------- rewards page ---------- */
.rw-section { margin-bottom: 44px; }
.rw-section h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.rw-rounds {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-card); overflow: hidden;
}
.rw-round {
  display: grid; grid-template-columns: 70px 1fr 1fr auto auto; gap: 14px; align-items: center;
  padding: 14px 22px; border-bottom: 1px solid var(--border);
}
.rw-round:last-child { border-bottom: none; }
.rr-id { font-weight: 800; color: var(--stone); font-size: 14px; }
.rr-amount { font-weight: 800; font-size: 15px; }
.rr-amount .unit { color: var(--muted); font-size: 12px; font-weight: 500; margin-left: 3px; }
.rr-meta { color: var(--muted); font-size: 13.5px; }
.rr-status {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--blue-tint); color: var(--deep); border: 1px solid var(--blue-wash);
}
.rr-time { color: var(--stone); font-size: 13px; min-width: 64px; text-align: right; }
.rw-pays {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-card); overflow: hidden;
}
.rw-cols, .rw-pay {
  display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr auto; gap: 14px;
  align-items: center; padding: 11px 22px;
}
.rw-cols {
  padding: 14px 22px; color: var(--muted); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border);
}
.rw-pay { border-bottom: 1px solid var(--border); }
.rw-pay:last-child { border-bottom: none; }
.rw-pay:hover { background: #f3f7fd; }
.rw-acct { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rw-acct .ava { width: 32px; height: 32px; font-size: 12px; }
.rw-amt { font-weight: 700; font-size: 14px; }
.rw-round-ref { color: var(--muted); font-size: 13px; }
.rw-when { color: var(--stone); font-size: 13px; text-align: right; }

/* ---------- tokenomics page ---------- */
.tk-main { padding-bottom: 72px; }
.tk-section { margin-top: 48px; }
.tk-section h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
.tk-lead { color: var(--muted); font-size: 15px; margin-bottom: 18px; max-width: 640px; line-height: 1.6; }
.tk-lead b { color: var(--ink); }
.tk-lead a { color: var(--deep); }

.tk-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow-card); padding: 26px 28px; margin-bottom: 14px;
}
.tk-panel-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.tk-panel-head h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.tk-panel-sub { color: var(--muted); font-size: 13.5px; }

/* segmented bars: width animates from 0 to --w when the panel scrolls in */
.supply-bar, .split-bar { display: flex; gap: 4px; height: 22px; }
.supply-bar span, .split-bar span {
  display: block; width: 0; background: var(--c); border-radius: 6px;
  transition: width 1.1s cubic-bezier(.2, .7, .2, 1);
}
.supply-bar span:nth-child(2), .split-bar span:nth-child(2) { transition-delay: .12s; }
.supply-bar span:nth-child(3) { transition-delay: .24s; }
.reveal.in .supply-bar span, .reveal.in .split-bar span { width: var(--w); }

.supply-legend { list-style: none; margin: 18px 0 0; padding: 0; }
.supply-legend li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-top: 1px solid var(--border);
}
.supply-legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); flex: none; }
.supply-legend li > div { flex: 1; }
.supply-legend b { display: block; font-size: 14.5px; }
.supply-legend span { color: var(--muted); font-size: 13px; }
.supply-legend em { font-style: normal; font-weight: 800; font-size: 15px; }

.split-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.split-pct { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.split-cols h4 { font-size: 15px; font-weight: 700; margin-top: 2px; }
.split-cols p { color: var(--muted); font-size: 13.8px; line-height: 1.6; margin-top: 6px; }

.tk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.tk-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 22px; box-shadow: var(--shadow-sm);
}
.tk-card h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.tk-card p { margin-top: 8px; color: var(--muted); font-size: 13.8px; line-height: 1.6; }

/* scroll-in reveal (JS adds .in; noscript fallback keeps content visible) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- docs page ---------- */
.docs-main { padding-bottom: 72px; }
.docs-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.docs-nav { position: sticky; top: 76px; }
.docs-nav-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow-sm); padding: 18px;
}
.docs-nav-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.docs-nav-progress { height: 4px; background: var(--border); border-radius: 2px; margin: 12px 0 14px; overflow: hidden; }
.docs-nav-progress span { display: block; height: 100%; background: var(--blue); border-radius: 2px; transition: width .2s; }
.docs-nav-links { display: flex; flex-direction: column; gap: 2px; }
.docs-nav-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  color: var(--muted); font-size: 14px; font-weight: 500; transition: all .14s;
}
.docs-nav-link:hover { background: var(--blue-tint); color: var(--ink); }
.docs-nav-link.on { background: var(--blue-tint); color: var(--deep); font-weight: 700; }
.docs-nav-index { font-size: 11px; font-weight: 800; color: var(--stone); }
.docs-nav-link.on .docs-nav-index { color: var(--blue); }
.docs-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13px; font-weight: 600;
  padding: 6px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); }
.docs-title { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-top: 18px; }
.docs-lead { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 560px; }
.docs-hero-facts { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.docs-hero-facts > div {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 18px; box-shadow: var(--shadow-sm);
}
.docs-hero-facts span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.docs-hero-facts b { font-size: 15px; }
.docs-section { margin-top: 52px; scroll-margin-top: 84px; }
.docs-section h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.docs-section h2 .docs-nav-index { color: var(--blue); margin-right: 10px; }
.docs-section p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 640px; }
.docs-section p b, .docs-section p code { color: var(--ink); }
.docs-section code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px;
  background: var(--blue-tint); padding: 2px 7px; border-radius: 6px;
}
.docs-callout {
  margin-top: 16px; background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--blue); border-radius: 14px; padding: 16px 20px; max-width: 640px;
}
.docs-callout p { margin: 0; font-size: 14px; }
.docs-list { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 640px; }
.docs-list li { margin-top: 6px; }
.docs-list b { color: var(--ink); }

@media (max-width: 1020px) {
  .docs-grid { grid-template-columns: 1fr; }
  .docs-nav { position: static; }
  .page-stats, .page-stats.three { grid-template-columns: repeat(2, 1fr); }
  .split-cols { grid-template-columns: 1fr; }
  .tk-cards { grid-template-columns: 1fr; }
  .lbp-cols, .lbp-row { grid-template-columns: 40px minmax(0, 1.6fr) minmax(80px, .8fr) minmax(100px, 1fr); }
}

/* ---------- explore page ---------- */
.ex-hero { padding-bottom: 20px; }
.ex-search-wrap { position: relative; max-width: 640px; margin: 0 auto 40px; }
.ex-search-box {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-card); padding: 6px 16px;
  transition: border-color .15s, box-shadow .15s;
}
.ex-search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint), var(--shadow-card); }
.ex-search-ico { width: 19px; height: 19px; color: var(--stone); flex: none; }
.ex-search {
  flex: 1; border: none; outline: none; background: transparent;
  font: inherit; font-size: 16.5px; font-weight: 500; color: var(--ink);
  padding: 12px 0;
}
.ex-search::placeholder { color: var(--stone); }
.ex-kbd {
  flex: none; font-family: inherit; font-size: 12px; font-weight: 700; color: var(--stone);
  border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; background: var(--canvas);
}
.ex-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden; padding: 6px;
  max-height: 420px; overflow-y: auto;
}
.ex-results[hidden] { display: none; }
.ex-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 11px; transition: background .1s;
}
.ex-row.on { background: var(--blue-tint); }
.ex-row .ava { width: 38px; height: 38px; font-size: 14px; }
.ex-row-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ex-row-name { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-row-handle { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-row mark { background: none; color: var(--deep); font-weight: 800; }
.ex-row-meta { color: var(--stone); font-size: 12.5px; white-space: nowrap; }
.ex-row-mcap { color: var(--deep); font-weight: 800; font-size: 14px; min-width: 76px; text-align: right; }
.ex-empty { padding: 18px 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ex-empty b { color: var(--ink); }

.ex-feed-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.ex-feed-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.ex-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 8px;
}
.ex-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow-card); padding: 22px 16px 18px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ex-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-blue); border-color: var(--blue-wash); }
.ex-card .ava { width: 68px; height: 68px; font-size: 24px; }
.ex-card-name { margin-top: 10px; font-weight: 700; font-size: 15px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-card-handle { color: var(--muted); font-size: 12.5px; margin-top: 2px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-card-mcap { margin-top: 8px; color: var(--deep); font-weight: 800; font-size: 17px; }
.ex-card-time {
  margin-top: 8px; font-size: 11px; font-weight: 700; color: var(--deep);
  background: var(--blue-tint); border: 1px solid var(--blue-wash);
  padding: 3px 10px; border-radius: 999px;
}
.ex-more {
  border: 1px solid var(--border); border-radius: 16px; margin: 6px 0 64px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 1020px) {
  .ex-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .ex-grid { grid-template-columns: repeat(2, 1fr); }
  .ex-row-meta { display: none; }
}

/* ---------- real-data states ---------- */
/* registered but unlaunched: the profile picture stays black & white until the token exists */
.ava.pending img { filter: grayscale(1); opacity: .88; }
/* "waiting to join" hero tiles */
.ava.waiting { background: var(--blue-tint) !important; }
.ava.waiting img { inset: 18%; width: 64%; height: 64%; object-fit: contain; border-radius: 0; }
.hc-waiting .hc-name { color: var(--muted); }
.hc-waiting .hc-sub { color: var(--stone); }
/* null / not-launched text */
.null { color: var(--muted); font-weight: 500; }
/* honest empty states */
.empty-card {
  grid-column: 1 / -1; padding: 34px 22px; text-align: center;
  color: var(--muted); font-size: 14.5px; line-height: 1.6;
  background: var(--surface); border: 1px dashed var(--border); border-radius: 16px;
}
.empty-card a { color: var(--deep); font-weight: 600; }
/* live chart embed for launched tokens */
.dex-embed { width: 100%; min-height: 340px; border: 0; border-radius: 16px; display: block; }
/* account page meta row with three real metrics */
.p-meta.three { grid-template-columns: repeat(3, 1fr); }
