/*
  PROOFY design tokens. The ONLY file in the project allowed to hold colour literals.
  Provenance: every value below is a real pixel read from the supplied artwork.
    k-means (k=6, stride sample) over each asset, centroid snapped to the nearest real pixel,
    coordinates are (x,y) in the source file.
  brand/LOGO PROOFY PNG.png  (RGB 2000x2000, colortype 2)
    ink    0E0E10  (0,0)        background field, 85% of pixels
    gold   FBB83A  (532,938)    lower slabs
    white  F5F3EF  (1001,557)   top slab
  brand/LOGO PROOFY PNG...png (RGBA 2000x2000, colortype 6, alpha 0 on 3418246 px, all pure black RGB there)
    gold   FDB939  (1476,931)   cross-check of the slab gold, used as the bright gold
  reference/PROOFY 1.jpg.jpeg (RGB 1600x900)
    cream  F9F8F4  (72,0)       page field, 67% of pixels
    brand  F4AA15  (120,36)     wordmark gold
    paper  FFFFFD  brightest pixel in top slab
    mute   706F6B  mid grey in sub copy
    ink-2  454442  darkest pixel in footer line
    line   CCC8BD  slab edge cluster (1006,646)
  --color-mint is the pulse accent for the owned-token row. No green exists in the artwork, so it
  aliases the sampled gold instead of inventing a hue.
*/
:root {
  --ink: #0E0E10;
  --ink-2: #454442;
  --muted: #706F6B;
  --bg: #F9F8F4;
  --card: #FFFFFD;
  --sunk: #F5F3EF;
  --line: #CCC8BD;
  --gold: #FBB83A;
  --gold-bright: #FDB939;
  --gold-deep: #F4AA15;
  --color-mint: var(--gold-deep);
  --on-ink: #FFFFFD;
  color-scheme: light;
}

/* Layout values measured off the reference: rail 76, header pad 16/32, search 46h r14, btn 42h r12,
   h1 104/0.92 ls -0.045em, hero sub 18/1.55 max 470, strip tile pad 26/24, tape 44h r14, card r16,
   transitions .15s, tapeIn .5s ease-out, rowFlash 1.2s ease-out, fade .15s, pop .18s. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.45 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'tnum'; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: 'Inter Tight', 'Inter', ui-sans-serif, system-ui, sans-serif; letter-spacing: -0.02em; }
p { margin: 0; }
.mono { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

/* scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: transparent; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--gold-deep); transform-origin: 0 50%; transform: scaleX(0); }

/* rail */
.rail { position: fixed; inset: 0 auto 0 0; width: 76px; display: flex; flex-direction: column; align-items: center; padding: 18px 0; z-index: 30; }
.rail-logo { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; }
.rail-logo img { width: 40px; height: 40px; }
.rail-nav { display: flex; flex-direction: column; gap: 10px; margin: auto 0; }
.rail-i { position: relative; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--muted); transition: color .15s, background .15s; }
.rail-i:hover, .rail-i.on { color: var(--ink); background: var(--sunk); }
.rail-i[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 54px; top: 50%; transform: translateY(-50%); background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 8px; white-space: nowrap; pointer-events: none; }

.shell { margin-left: 76px; min-height: 100vh; display: flex; flex-direction: column; }

/* top bar */
.top { position: sticky; top: 0; z-index: 25; display: grid; grid-template-columns: 1fr minmax(280px, 520px) 1fr; align-items: center; gap: 16px; padding: 16px 32px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.top > * { min-width: 0; }
.top-logo { display: flex; align-items: center; gap: 10px; justify-self: start; min-height: 44px; min-width: 44px; }
.top-logo img { display: none; width: 32px; height: 32px; margin: 0 6px; }
.wordmark { font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.055em; font-size: 26px; line-height: 1; }
.wordmark b { color: var(--gold-deep); font-weight: 700; }
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; min-height: 44px; }
.search input::placeholder { color: var(--muted); }
.top-r { justify-self: end; display: flex; align-items: center; gap: 6px; }
.soc { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--ink); transition: background .15s, color .15s; }
a.soc:hover { background: var(--sunk); }
.soc[data-state="inert"] { color: var(--muted); opacity: .55; cursor: default; }
.soc svg { width: 20px; height: 20px; fill: currentColor; }

/* pill */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); position: relative; }
.pill[data-s="live"] .dot { background: var(--gold-deep); }
.pill[data-s="live"] .dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--gold-deep); animation: ping 1.6s ease-out infinite; }
.pill[data-s="retry"] .dot { background: var(--ink-2); }
.pill[data-s="down"] .dot { background: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 14px 22px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 15px; letter-spacing: -0.005em; white-space: nowrap; transition: background .15s, border-color .15s, transform .08s, color .15s; user-select: none; }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: var(--ink-2); }
.btn-line { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }

/* main */
main { padding: 4px 32px 48px; max-width: 1240px; width: 100%; margin: 0 auto; }
.mx { margin: 0 -32px; }

/* CA slot */
.ca { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-top: 6px; }
.ca-l { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); flex: none; }
.ca-v { flex: 1 1 280px; min-width: 0; font-size: clamp(16px, 2.2vw, 26px); font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; word-break: break-all; text-align: left; border: 0; background: transparent; padding: 6px 0; min-height: 44px; color: var(--ink); }
.ca-v[data-state="inert"] { color: var(--muted); cursor: default; letter-spacing: .2em; }
.ca-v[data-state="stated"]:hover { color: var(--gold-deep); }
.ca-btn { display: inline-flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--sunk); font-weight: 600; font-size: 14px; transition: background .15s, border-color .15s; }
.ca-btn:hover { border-color: var(--ink); }
.ca-btn[disabled] { opacity: .5; cursor: default; pointer-events: none; }
.ca-btn svg { width: 18px; height: 18px; }
.ca.ok .ca-btn { background: var(--gold); border-color: var(--gold-deep); }

/* hero */
.hx { position: relative; min-height: 640px; overflow: hidden; margin: 0 -32px; isolation: isolate; }
.mesh { position: absolute; inset: 0; z-index: -2; pointer-events: none; background:
  radial-gradient(40% 40% at 78% 38%, color-mix(in srgb, var(--gold) 38%, transparent), transparent 70%),
  radial-gradient(34% 34% at 20% 74%, color-mix(in srgb, var(--gold-deep) 16%, transparent), transparent 70%),
  radial-gradient(30% 30% at 56% 16%, color-mix(in srgb, var(--card) 90%, transparent), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate; -webkit-mask-image: linear-gradient(180deg, var(--ink) 70%, transparent); mask-image: linear-gradient(180deg, var(--ink) 70%, transparent); }
.grid-lines { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(60% 60% at 70% 45%, var(--ink), transparent); mask-image: radial-gradient(60% 60% at 70% 45%, var(--ink), transparent); }
.hx-art { position: absolute; right: -40px; top: 50px; width: 640px; max-width: none; pointer-events: none; user-select: none; mix-blend-mode: multiply; will-change: transform; -webkit-mask-image: radial-gradient(closest-side, var(--ink) 82%, transparent); mask-image: radial-gradient(closest-side, var(--ink) 82%, transparent); }
.hx-layer { position: absolute; will-change: transform; pointer-events: none; }
.hx-chip { right: 14%; top: 18%; padding: 8px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.hx-chip2 { right: 4%; top: auto; bottom: 20%; }
.hx-copy { position: relative; z-index: 1; padding: 110px 0 60px 72px; max-width: 760px; }
.hx h1 { font: 700 104px/0.92 'Inter Tight', 'Inter', sans-serif; letter-spacing: -0.045em; }
.hx h1 span { color: var(--muted); display: block; }
.hx-sub { margin-top: 26px; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 470px; }
.hx-cta { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }

/* strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tile { position: relative; padding: 26px 24px; border-right: 1px solid var(--line); overflow: hidden; }
.tile:last-child { border-right: 0; }
.tile b { display: block; font: 600 30px 'Inter Tight', 'Inter', sans-serif; letter-spacing: -0.02em; min-height: 36px; }
.tile span { color: var(--muted); font-size: 13px; }

/* spotlight */
.spot { position: relative; --mx: 50%; --my: 50%; }
.spot::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .15s; background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%); }
.spot:hover::before { opacity: 1; }

/* sections */
.sec { margin-top: 56px; scroll-margin-top: 90px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sec-h h2 { font-size: 20px; font-weight: 600; }
.tape { display: flex; align-items: center; gap: 14px; height: 44px; margin: 0 0 14px; padding: 0 6px 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tape-l { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; flex: none; padding-right: 14px; border-right: 1px solid var(--line); }
.tape-l i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-deep); }
.tape-view { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, var(--ink) 88%, transparent); mask-image: linear-gradient(90deg, var(--ink) 88%, transparent); }
.tape-track { display: inline-flex; align-items: center; white-space: nowrap; animation: marquee 48s linear infinite; }
.tape-view:hover .tape-track { animation-play-state: paused; }
.tape-i { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 16px; font-size: 13px; border-left: 1px solid var(--line); animation: tapeIn .5s ease-out both; }
.tape-i b { font-weight: 600; }
.tape-i em { font-style: normal; color: var(--muted); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--sunk); border-radius: 12px; }
.tab { min-height: 44px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 14px; color: var(--muted); transition: background .15s, color .15s; }
.tab[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.board { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 28px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr) 44px; align-items: center; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 14px; background: transparent; }
.row.head { color: var(--muted); font-size: 12px; font-weight: 600; padding: 10px 8px; }
.row.head > * { white-space: nowrap; }
.row .r { text-align: right; }
.row .rk { color: var(--muted); font-size: 12.5px; }
.tk { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tk > div { min-width: 0; }
.tk b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av { position: relative; flex: none; width: 36px; height: 36px; border-radius: 10px; overflow: hidden; background: var(--sunk); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 6%, transparent); display: grid; place-items: center; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av.letter { background: var(--gold); }
.av.letter b { font: 700 16px 'Inter Tight', sans-serif; color: var(--ink); }
.up { color: var(--ink); font-weight: 600; }
.up::before { content: '\25B2\00a0'; color: var(--gold-deep); font-size: .8em; }
.dn { color: var(--muted); font-weight: 600; }
.dn::before { content: '\25BC\00a0'; font-size: .8em; }
.cp { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); transition: color .15s, background .15s; }
.cp:hover { color: var(--ink); background: var(--sunk); }
.cp.ok { color: var(--gold-deep); }
.cp[disabled] { opacity: .4; pointer-events: none; }
.cp svg { width: 18px; height: 18px; }
.row.flash { animation: rowFlash 1.2s ease-out; }
.row.own { border-left: 2px solid var(--color-mint); animation: ownPulse 2s ease-in-out infinite; }
.row.own .nm { color: var(--ink); }
.row.sk .sk-b { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--sunk), var(--line), var(--sunk)); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.row.sk .sk-a { width: 36px; height: 36px; border-radius: 10px; }
.row.fade-in { animation: fade .15s ease-out both; }
.err { padding: 14px 8px; color: var(--ink-2); font-size: 14px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; overflow: hidden; }
.card .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--gold); font: 700 15px 'Inter Tight', sans-serif; }
.card h3 { margin-top: 16px; font-size: 18px; font-weight: 700; }
.card p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* register panel */
.reg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rec { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; min-height: 64px; }
.rec > div { min-width: 0; }
.rec b { display: block; font-weight: 600; }
.rec small { display: block; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.chip { flex: none; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); background: var(--sunk); color: var(--muted); }
.chip[data-state="stated"] { background: var(--gold); border-color: var(--gold-deep); color: var(--ink); }

/* footer */
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; padding: 22px 32px 30px; max-width: 1240px; width: 100%; margin: 0 auto; border-top: 1px solid var(--line); font-size: 13.5px; }
.foot .wordmark { font-size: 20px; }
.foot-ca { display: flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; min-height: 44px; min-width: 0; max-width: 100%; }
.foot-ca span.mono { overflow-wrap: anywhere; min-width: 0; font-size: 12.5px; }

/* tabbar (mobile) */
.tabbar { display: none; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; animation: toastIn .25s ease-out; pointer-events: none; }

/* reveal */
.rv { opacity: 0; will-change: transform, opacity; }

@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes tapeIn { from { transform: translateX(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rowFlash { 0% { background: color-mix(in srgb, var(--gold) 28%, transparent); } 100% { background: transparent; } }
@keyframes ownPulse { 0%, 100% { background: color-mix(in srgb, var(--color-mint) 3%, transparent); } 50% { background: color-mix(in srgb, var(--color-mint) 12%, transparent); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes toastIn { from { transform: translate(-50%, 8px); opacity: 0; } }

@media (max-width: 1100px) {
  .hx-art { width: 520px; right: -120px; opacity: .8; }
  .hx-chip, .hx-chip2 { display: none; }
  .cards, .reg { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .tile:nth-child(2) { border-right: 0; }
  .tile:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .rail { display: none; }
  .shell { margin-left: 0; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .top { grid-template-columns: auto 1fr auto; padding: 10px 16px; gap: 8px; }
  .top-logo img { display: block; }
  .top-logo .wordmark { display: none; }
  .search { height: 46px; padding: 0 12px; border-radius: 12px; }
  .search input { font-size: 16px; }
  .top-pill { display: none; }
  main { padding: 4px 16px 40px; }
  .mx, .hx { margin: 0 -16px; }
  .hx { min-height: 560px; }
  .hx-copy { padding: 52px 16px 40px; }
  .hx h1 { font-size: 56px; }
  .hx-sub { font-size: 16px; }
  .hx-art { width: 440px; right: -190px; top: 150px; opacity: .45; }
  .tile { padding: 18px 14px; }
  .tile b { font-size: 24px; }
  .tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 44px; font-size: 11px; font-weight: 600; color: var(--muted); }
  .tabbar a.on { color: var(--ink); }
  .tabbar svg { width: 20px; height: 20px; }
  .row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .8fr) 44px; gap: 8px; }
  .row .rk, .row .c-liq, .row .c-vol { display: none; }
  .row.head .rk { display: none; }
  .foot { padding: 20px 16px 24px; flex-direction: column; align-items: flex-start; }
  .toast { bottom: 86px; }
}
@media (max-width: 480px) {
  .hx h1 { font-size: 48px; }
  .ca { padding: 12px; }
  .ca-v { flex-basis: 100%; }
  .btn { padding: 12px 18px; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1 !important; transform: none !important; }
  .tape-track { transform: none; }
}
