/* ==========================================================================
   VIGRA design tokens. PALETTE PROVENANCE: nothing below was invented.
   Every hex was sampled from the files in brand/ and reference/ with a
   per-pixel histogram (modal colour of the matching region):
     --bg      #060912  modal pixel of reference/SAMPUL VIGRA JPG (page field)
     --raise   #0c0e1a  banner pill fill, sampled at (200,360)
     --line    #11131f  banner pill border, sampled at (200,342)
     --fg      #f3f2f7  modal near-white pixel of the banner headline
     --muted   #a1a2b6  modal grey pixel of the banner sub-line
     --accent  #ad8bfb  modal fill of brand/LOGO VIGRA PNG...png (alpha=255)
     --glow    #833ff8  modal star-glow pixel of reference/VIGRA 1
     --deep    #100843  modal nebula shadow pixel of reference/VIGRA 1
   Everything else (faint, edge, accent-hi, accent-dim, up, down, warn) is
   derived from those with color-mix() or relative colour, never typed as hex.
   ========================================================================== */
:root {
  --bg: #060912;
  --raise: #0c0e1a;
  --line: #11131f;
  --fg: #f3f2f7;
  --muted: #a1a2b6;
  --accent: #ad8bfb;
  --glow: #833ff8;
  --deep: #100843;

  --color-accent: var(--accent);
  --faint: color-mix(in srgb, var(--muted) 62%, var(--bg));
  --edge: color-mix(in srgb, var(--line) 62%, var(--muted));
  --accent-hi: color-mix(in srgb, var(--accent) 58%, var(--fg));
  --accent-dim: color-mix(in srgb, var(--accent) 52%, var(--bg));
  --up: #16a34a;
  --down: #dc2626;
  --ease-ui: cubic-bezier(.4, 0, .2, 1);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --draw: cubic-bezier(.3, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--fg); color-scheme: dark; -webkit-font-smoothing: antialiased; text-rendering: optimizelegibility; scroll-behavior: smooth; scroll-padding-top: 150px; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh; font-family: var(--font-sans); font-feature-settings: "cv11", "ss01", "calt"; line-height: 1.5; overflow-x: clip;
  background:
    radial-gradient(1100px 600px at 85% -8%, color-mix(in srgb, var(--deep) 90%, transparent), transparent 70%),
    var(--bg);
}
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.faint { color: var(--faint); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-dim); }
.fine { margin-top: 14px; font-size: 12px; line-height: 1.6; color: var(--faint); }
.page { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .page { padding-inline: 32px; } }

/* ---------- scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--glow), var(--accent-hi)); pointer-events: none; }

/* ---------- top stack ---------- */
.topstack { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--edge); }
.ca-bar { border-bottom: 1px solid var(--line); }
.ca-inner { display: flex; align-items: center; gap: 14px; padding-block: 8px; }
.ca-label { flex: none; display: none; }
.ca-slot {
  flex: 1; min-width: 0; min-height: 52px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; text-align: left;
  padding: 8px 14px; border: 1px solid var(--edge); border-radius: 12px; background: color-mix(in srgb, var(--raise) 90%, transparent);
  transition: border-color .15s var(--ease-ui), background-color .15s var(--ease-ui), box-shadow .15s var(--ease-ui);
}
.ca-value { font-size: clamp(14px, 1.1vw + 10px, 22px); line-height: 1.3; color: var(--fg); word-break: break-all; font-weight: 500; flex: 1 1 260px; min-width: 0; }
.ca-value.is-slot { color: var(--faint); letter-spacing: .02em; }
.ca-meta { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.ca-action { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-hi); }
.ca-slot[data-state="stated"]:hover { border-color: var(--accent-dim); background: color-mix(in srgb, var(--accent) 7%, var(--raise)); }
.ca-slot[data-state="stated"] { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent), 0 12px 30px -18px color-mix(in srgb, var(--accent) 60%, transparent); }
.ca-slot:disabled { cursor: default; }
.ca-slot:disabled .ca-action { display: none; }
.ca-slot.is-copied { border-color: var(--accent); }
@media (min-width: 768px) { .ca-label { display: block; } .ca-inner { padding-block: 10px; } }

.head-inner { display: flex; align-items: center; gap: 8px; height: 64px; }
@media (min-width: 768px) { .head-inner { gap: 24px; } }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex: none; }
.brand img { width: 32px; height: 32px; }
.wordmark { font-weight: 500; letter-spacing: .26em; font-size: 15px; line-height: 1; color: var(--fg); }
@media (min-width: 640px) { .wordmark { font-size: 16px; } }
.nav { display: none; align-items: center; gap: 4px; margin-left: 8px; }
@media (min-width: 768px) { .nav { display: flex; } }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .15s var(--ease-ui); }
.nav a:hover { color: var(--accent-hi); }
.socials { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.social { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); transition: color .15s var(--ease-ui), background-color .15s var(--ease-ui), transform .1s; }
.social svg { width: 20px; height: 20px; }
a.social:hover { color: var(--fg); background: color-mix(in srgb, var(--accent) 10%, transparent); }
a.social:active { transform: translateY(1px); }
.social.is-inert { opacity: .45; cursor: not-allowed; }

.subnav-wrap { padding-top: 12px; }
.subnav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.subnav a { flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--edge); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); }
@media (min-width: 768px) { .subnav-wrap { display: none; } }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding-inline: 16px; border-radius: 10px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color .15s var(--ease-ui), border-color .15s var(--ease-ui), color .15s var(--ease-ui), transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-solid { color: var(--bg); background: linear-gradient(var(--accent-hi), var(--accent)); box-shadow: inset 0 1px color-mix(in srgb, var(--fg) 35%, transparent), 0 10px 26px -12px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-solid:hover { background: linear-gradient(color-mix(in srgb, var(--accent-hi) 70%, var(--fg)), var(--accent-hi)); }
.btn-ghost { border: 1px solid var(--edge); background: color-mix(in srgb, var(--fg) 2%, transparent); color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent-dim); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 16px; border: 1px solid var(--edge); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .15s var(--ease-ui), border-color .15s var(--ease-ui), background-color .15s var(--ease-ui); }
.chip:hover { color: var(--fg); }
.chip[aria-pressed="true"] { color: var(--accent-hi); background: color-mix(in srgb, var(--accent) 9%, transparent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.tag { display: inline-flex; align-items: center; height: 20px; padding-inline: 7px; border: 1px solid var(--edge); border-radius: 5px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.ca-slot[data-state="stated"] .tag { color: var(--accent-hi); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.field { width: 100%; height: 44px; padding-inline: 14px; border: 1px solid var(--edge); border-radius: 10px; font-size: 14px; background: color-mix(in srgb, var(--bg) 70%, transparent); transition: border-color .15s var(--ease-ui), box-shadow .15s var(--ease-ui); }
.field::placeholder { color: var(--faint); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }

.pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding-inline: 11px; border: 1px solid var(--edge); border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.pill-flat { border: 0; padding-inline: 0; height: auto; }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1s cubic-bezier(0,0,.2,1) infinite; }
.pill[data-state="live"] { color: var(--fg); }
.pill[data-state="live"] .dot { background: var(--up); }
.pill[data-state="retry"] .dot { background: var(--accent-hi); }
.pill[data-state="error"] .dot { background: var(--down); }
.pill[data-state="error"] .dot::after, .pill[data-state="loading"] .dot::after { animation-duration: 1.6s; }

.panel { position: relative; border: 1px solid var(--edge); border-radius: 18px; background: linear-gradient(color-mix(in srgb, var(--raise) 86%, transparent), color-mix(in srgb, var(--bg) 82%, var(--raise))); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--fg) 3%, transparent), 0 30px 60px -40px rgb(0 0 0 / .9); }
.panel-accent::before { content: ""; position: absolute; inset: -1px -1px auto; height: 1px; border-radius: 18px 18px 0 0; pointer-events: none; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 55%, transparent) 22% 78%, transparent); }

/* spotlight */
[data-spot] { --sx: 50%; --sy2: 50%; position: relative; }
[data-spot]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(240px circle at var(--sx) var(--sy2), color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
@media (hover: hover) { [data-spot]:hover::after { opacity: 1; } }

/* entrance */
.rise { animation: rise .5s var(--ease) both; animation-delay: var(--rd, 0ms); }
.js [data-reveal] { opacity: 0; transform: translateY(14px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease) calc(var(--i, 0) * 70ms), transform .6s var(--ease) calc(var(--i, 0) * 70ms); }

/* ---------- hero ---------- */
.hero { --mx: 0; --my: 0; --sy: 0; position: relative; isolation: isolate; overflow: clip; padding-block: 48px 0; }
@media (min-width: 768px) { .hero { padding-top: 64px; } }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mesh { position: absolute; inset: -10% -5%; transform: translate3d(calc(var(--mx) * 26px), calc(var(--sy) * .07px + var(--my) * 18px), 0); }
.mesh i { position: absolute; width: min(620px, 90vw); aspect-ratio: 1; border-radius: 50%; filter: blur(46px); opacity: .5; animation: drift 24s ease-in-out infinite alternate; }
.mesh i:nth-child(1) { top: 0; left: 4%; background: radial-gradient(circle, color-mix(in srgb, var(--glow) 55%, transparent), transparent 66%); }
.mesh i:nth-child(2) { top: 6%; right: -6%; background: radial-gradient(circle, var(--deep), transparent 70%); animation-duration: 30s; animation-delay: -8s; opacity: .9; }
.mesh i:nth-child(3) { bottom: -22%; left: 30%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 66%); animation-duration: 36s; animation-delay: -14s; opacity: .32; }
.hero-star { position: absolute; top: 2%; right: -12%; width: min(640px, 78vw); height: auto; opacity: .42; -webkit-mask-image: radial-gradient(closest-side, black 55%, transparent 100%); mask-image: radial-gradient(closest-side, black 55%, transparent 100%); transform: translate3d(calc(var(--mx) * -44px), calc(var(--sy) * -.14px + var(--my) * -28px), 0); will-change: transform; }
@media (min-width: 1024px) { .hero-star { right: -4%; top: -6%; opacity: .62; width: min(720px, 52vw); } }
.hero-fade { position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, var(--bg)); }
.hero-grid { display: grid; gap: 40px; align-items: end; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.25fr 1fr; } }
.hero h1 { margin-top: 14px; font-size: 42px; line-height: 1.02; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
@media (min-width: 640px) { .hero h1 { font-size: 56px; } }
@media (min-width: 768px) { .hero h1 { font-size: 68px; } }
.acc { color: var(--accent-hi); }
@media (min-width: 640px) { .acc { display: block; } }
.lede { margin-top: 20px; max-width: 36rem; font-size: 16px; line-height: 1.625; color: var(--muted); }
@media (min-width: 768px) { .lede { font-size: 17px; } }
.cta { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cta .btn-solid { grid-column: 1 / -1; height: 48px; }
.cta .btn-ghost { padding-inline: 12px; font-size: 13px; }
@media (min-width: 640px) { .cta { display: flex; flex-wrap: wrap; gap: 12px; } .cta .btn-solid { height: 44px; } .cta .btn-ghost { padding-inline: 16px; font-size: 14px; } }

.hero .panel { padding: 20px; }
@media (min-width: 768px) { .hero .panel { padding: 24px; } }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.big { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.big-n { font-size: 40px; line-height: 1; font-weight: 500; }
.big-cap { font-size: 14px; color: var(--muted); }
.meter { margin-top: 12px; display: flex; gap: 2px; height: 6px; border-radius: 999px; overflow: hidden; }
.meter .seg { display: block; border-radius: 999px; height: 100%; transition: width 1.1s var(--draw); }
.meter .s1 { width: 0; background: var(--accent); }
.meter .s2 { width: 0; background: var(--accent-dim); }
.meter .s3 { flex: 1; background: var(--edge); }
.meter[data-ready] .s1 { width: var(--w1); }
.meter[data-ready] .s2 { width: var(--w2); }
.legend { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend b { font-weight: 500; color: var(--fg); }
.sw { width: 8px; height: 8px; border-radius: 50%; }
.sw.s1 { background: var(--accent); } .sw.s2 { background: var(--accent-dim); } .sw.s3 { background: var(--edge); }
.tiles { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (min-width: 640px) { .tiles { gap: 0 24px; } }
.tiles dt { font-size: 12px; color: var(--faint); white-space: nowrap; }
.tiles dd { margin-top: 6px; font-size: 18px; line-height: 1; font-weight: 500; white-space: nowrap; }
@media (min-width: 640px) { .tiles dd { font-size: 20px; } }
.panel-foot { margin-top: 20px; padding-top: 4px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; font-size: 13px; }
.inline-copy { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); transition: color .15s var(--ease-ui); }
.inline-copy:hover, .inline-copy.is-copied { color: var(--accent-hi); }
.mini { font-family: var(--font-sans); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }

/* flash on change */
.flash-up, .flash-down { border-radius: 6px; }
.flash-up { animation: flashUp 1s ease-out; }
.flash-down { animation: flashDown 1s ease-out; }

/* ---------- ticker ---------- */
.ticker { position: relative; margin-top: 20px; border-block: 1px solid var(--line); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent); mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 56s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick-group { display: flex; flex: none; }
.tick { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding-inline: 20px; font-size: 13px; white-space: nowrap; color: var(--muted); }
.tick .logo { width: 20px; height: 20px; }
.tick .tile { font-size: 10px; }
.tick b { font-weight: 500; color: var(--fg); }
.sk-tick { gap: 10px; }

/* ---------- sections ---------- */
.section { margin-top: 48px; }
#board.section { margin-top: 40px; }
#lens.section { margin-top: 64px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.sec-head h2, .lens h2 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.sub { margin-top: 4px; max-width: 42rem; font-size: 14px; line-height: 1.6; color: var(--muted); }
.stream { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12px; }
.tools { width: 100%; max-width: 320px; }
@media (max-width: 639px) { .tools { max-width: none; } }
.chips { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- board ---------- */
.board { margin-top: 16px; overflow: hidden; }
.board-grid { display: grid; grid-template-columns: 36px minmax(210px, 1fr) 100px 96px 128px 100px 64px; align-items: center; column-gap: 12px; }
.board-head { height: 44px; padding-inline: 20px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.board-head span:nth-child(n+3):nth-child(-n+6), .board-row .v { text-align: right; }
.board-row { position: relative; min-height: 68px; padding-inline: 20px; border-top: 1px solid var(--line); transition: background-color .15s var(--ease-ui); }
.board-rows > .board-row:first-child, .board-rows > .skel-set > .board-row:first-child { border-top: 0; }
.board-row::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: transparent; transition: background-color .15s var(--ease-ui); }
.board-row[data-kind="market"]:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.board-row[data-kind="market"]:hover::before { background: var(--accent); }
.c-rank { font-size: 12px; color: var(--faint); }
.c-token { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--raise); border: 1px solid var(--line); display: grid; place-items: center; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo-brand { background: transparent; border-color: transparent; border-radius: 0; overflow: visible; }
.logo-brand img { object-fit: contain; }
.logo-host { display: contents; }
.tile { width: 100%; height: 100%; display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--accent-hi); background: color-mix(in srgb, var(--accent) 16%, var(--raise)); }
.tk-name { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nm { font-size: 14px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sym { font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v { font-size: 13px; color: var(--fg); white-space: nowrap; padding: 2px 4px; margin: -2px -4px; }
.v.is-slot { color: var(--faint); letter-spacing: .08em; }
.chg[data-dir="up"] { color: var(--up); }
.chg[data-dir="down"] { color: var(--down); }
.chg[data-dir="up"]::before { content: "\25B2\00a0"; font-size: .68em; vertical-align: .12em; }
.chg[data-dir="down"]::before { content: "\25BC\00a0"; font-size: .68em; vertical-align: .12em; }
.copy { position: relative; justify-self: center; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--faint); transition: color .15s var(--ease-ui), background-color .15s var(--ease-ui); }
.copy .ico { width: 16px; height: 16px; fill: currentColor; }
.copy:hover:not(:disabled), .copy.is-copied { color: var(--accent-hi); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.copy:disabled { opacity: .35; cursor: not-allowed; }

.board-row.is-enter { animation: rise .5s var(--ease) var(--d, 0ms) both; }

/* own token row: pinned, accent edge, pulsing */
.board-row[data-kind="own"] { border-left: 2px solid var(--color-accent); padding-left: 18px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 58%); animation: ownPulse 2.6s ease-in-out infinite; }
.board-row[data-kind="own"]::before { display: none; }
.board-row[data-kind="own"] .c-rank { color: var(--accent-hi); }
.board-row[data-kind="own"][aria-disabled="true"] { cursor: default; }

/* skeleton */
.sk { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--line) 20%, color-mix(in srgb, var(--line) 55%, var(--muted)) 50%, var(--line) 80%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
.sk-n { width: 18px; } .sk-c { width: 32px; height: 32px; border-radius: 50%; flex: none; } .sk-w { width: 96px; } .sk-v { width: 64px; justify-self: end; }
.tick .sk-c { width: 20px; height: 20px; } .tick .sk-w { width: 70px; }
.skel-set .board-row { animation: fade .5s var(--ease) both; }

.board-msg { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14px; display: grid; justify-items: center; gap: 12px; }
.msg-dash { font-size: 28px; color: var(--faint); }

/* ---------- approach ---------- */
.steps { margin-top: 28px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; scrollbar-width: none; }
.steps li { position: relative; flex: none; width: 76%; scroll-snap-align: start; padding: 16px 16px 20px; border-top: 1px solid var(--edge); border-radius: 0 0 14px 14px; }
.steps .rule { position: absolute; top: -1px; left: 0; width: 40px; height: 1px; background: var(--accent); }
.step-h { display: flex; align-items: baseline; gap: 10px; }
.step-h .n { font-size: 12px; font-weight: 600; color: var(--accent-dim); }
.step-h h3 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.steps p { margin-top: 6px; font-size: 13px; line-height: 1.65; color: var(--muted); }
@media (min-width: 640px) { .steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; overflow: visible; margin-inline: 0; padding-inline: 0; } .steps li { width: auto; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

@media (max-width: 639px) { .steps { -webkit-mask-image: linear-gradient(90deg, black calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, black calc(100% - 44px), transparent); } }

/* ---------- lens ---------- */
.lens { padding: 24px 20px; }
@media (min-width: 768px) { .lens { padding: 32px; } }
.lens-list { margin-top: 20px; }
.lens-list li { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; min-height: 56px; border-top: 1px solid var(--line); }
.lens-list .n { font-size: 12px; color: var(--accent-dim); font-weight: 600; }
.lt { font-size: 15px; font-weight: 500; }
.slot { display: inline-grid; place-items: center; min-width: 64px; height: 28px; padding-inline: 10px; border: 1px dashed var(--edge); border-radius: 8px; font-size: 12px; color: var(--faint); letter-spacing: .06em; }

/* ---------- network (inside footer) ---------- */
.chain-list { margin-top: 8px; }
.chain-list > div { padding-block: 6px; }
.chain-list dt { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.chain-list dd { margin-top: 2px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.row-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-copy .num { min-width: 0; overflow-wrap: anywhere; }
.link { color: var(--accent-hi); display: inline-flex; align-items: center; min-height: 44px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sq { flex: none; min-width: 44px; padding-inline: 14px; }

/* ---------- footer ---------- */
.foot { margin-top: 112px; border-top: 1px solid var(--edge); padding-block: 40px 48px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px 48px; } }
@media (min-width: 1100px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1.3fr 1fr; } }
.foot-brand p { margin-top: 14px; max-width: 28rem; font-size: 13px; line-height: 1.7; color: var(--muted); }
.flinks { margin-top: 8px; }
.flinks a, .flinks .plain { display: flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); }
.flinks a { transition: color .15s var(--ease-ui); }
.flinks a:hover { color: var(--accent-hi); }
.flinks .plain { color: var(--faint); flex-wrap: wrap; gap: 0 6px; font-size: 13px; }

/* ---------- keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ping { 75%, to { opacity: 0; transform: scale(2); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(7%, 6%, 0) scale(1.14); } }
@keyframes flashUp { 0% { background: color-mix(in srgb, var(--up) 30%, transparent); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: color-mix(in srgb, var(--down) 30%, transparent); } 100% { background: transparent; } }
@keyframes ownPulse { 0%, 100% { box-shadow: inset 0 0 0 0 transparent; } 50% { box-shadow: inset 18px 0 32px -22px color-mix(in srgb, var(--accent) 55%, transparent); } }

/* ---------- board: card layout below 900px ---------- */
@media (max-width: 899px) {
  .board-head { display: none; }
  .board-grid { grid-template-columns: 28px minmax(0, 1.5fr) minmax(0, .85fr) minmax(0, .85fr) 44px; column-gap: 8px; row-gap: 2px; }
  .board-row { padding: 12px 12px 14px; min-height: 0; align-items: center; }
  .board-row[data-kind="own"] { padding-left: 10px; }
  .board-row > :nth-child(1) { grid-column: 1; grid-row: 1; }
  .board-row > :nth-child(2) { grid-column: 2 / 4; grid-row: 1; }
  .board-row > :nth-child(3) { grid-column: 2; grid-row: 2; }
  .board-row > :nth-child(4) { grid-column: 4; grid-row: 1; text-align: right; }
  .board-row > :nth-child(5) { grid-column: 3; grid-row: 2; }
  .board-row > :nth-child(6) { grid-column: 4; grid-row: 2; }
  .board-row > :nth-child(7) { grid-column: 5; grid-row: 1; }
  .board-row .v { text-align: left; font-size: 11.5px; letter-spacing: -.03em; margin-top: 8px; }
  .board-row .v.chg { text-align: right; margin-top: -2px; }
  .board-row .v::before { content: attr(data-label); display: block; font-family: var(--font-sans); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
  .board-row .v.chg::before { display: none; }
  .board-row .v.chg[data-dir="up"]::before { display: inline; content: "\25B2\00a0"; margin: 0; font-size: .68em; letter-spacing: 0; text-transform: none; color: inherit; }
  .board-row .v.chg[data-dir="down"]::before { display: inline; content: "\25BC\00a0"; margin: 0; font-size: .68em; letter-spacing: 0; text-transform: none; color: inherit; }
  .is-skel .sk-v { justify-self: start; }
  .is-skel > :nth-child(4) { justify-self: end; }
  .is-skel > :nth-child(7) { width: 28px; height: 28px; justify-self: center; }
}

/* ---------- reduced motion: no motion whatsoever ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .progress { display: none; }
  [data-spot]::after { display: none; }
  .hero-star, .mesh, .mesh i { transform: none !important; will-change: auto; }
  .ticker { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ticker-track { width: max-content; }
  .ticker-track .tick-group:nth-child(2) { display: none; }
  .meter[data-ready] .s1 { width: var(--w1); }
  .meter[data-ready] .s2 { width: var(--w2); }
  .flash-up, .flash-down { background: transparent; }
}
