/* ZUUM by DigitalDon. DiDo's glass and water, in daylight.
   Ink on paper. Colour only for buys and sells, PnL (soft mint and coral),
   the token's own colour in the water, and partner marks.
   No inline styles anywhere (CSP style-src 'self'): every dynamic value is
   set from script through the CSSOM. */

:root {
  color-scheme: light;
  --bg: #f4f6f6;
  --ink: #0a0a0a;
  --ink-2: rgba(10, 10, 10, .62);
  --ink-3: rgba(10, 10, 10, .4);
  --ink-4: rgba(10, 10, 10, .14);
  --hair: rgba(10, 10, 10, .07);
  --up: #2e9b72;
  --dn: #cf5a5d;
  --up-wash: rgba(46, 155, 114, .12);
  --dn-wash: rgba(207, 90, 93, .12);
  --pane: rgba(255, 255, 255, .62);
  --pane-solid: rgba(255, 255, 255, .86);
  --glass-line: rgba(255, 255, 255, .7);
  --glass-inner: #fff;
  --glass-rim: rgba(10, 10, 10, .08);
  --glass-sheen: linear-gradient(120deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .12) 38%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .25) 100%);
  --shadow-lift: 0 30px 80px -36px rgba(10, 10, 10, .32), 0 10px 30px -16px rgba(10, 10, 10, .14);
  --shadow-soft: 0 24px 70px -32px rgba(10, 10, 10, .28), 0 6px 22px -12px rgba(10, 10, 10, .1);
  --dot: rgba(10, 10, 10, .07);
  --tint-a: rgb(140, 195, 225);
  --tint-b: rgb(240, 200, 140);
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, monospace;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --band: 60px;
  --gut: 16px;
  --lw: 304px;
  --rw: 268px;
  --foot: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; overflow: hidden; background: var(--bg); color: var(--ink);
  font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: var(--mono); }
.up { color: var(--up); }
.dn { color: var(--dn); }
.mute { color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: rgba(10, 10, 10, .12); }

/* ---------- the ground: water, two blooms, grain ---------- */
.ground { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ground::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(55% 45% at 8% 4%, rgba(140, 195, 225, .34), transparent 70%),
    radial-gradient(45% 40% at 96% 14%, rgba(240, 200, 140, .26), transparent 70%),
    radial-gradient(60% 50% at 50% 100%, rgba(160, 210, 220, .26), transparent 70%);
  transition: opacity 1.2s ease;
}
.ground i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0; transition: opacity 1.4s ease; }
.ground .ga { left: -10vmax; top: -12vmax; width: 80vmax; height: 48vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--tint-a) 30%, transparent), transparent); animation: ga 120s ease-in-out infinite alternate; }
.ground .gb { right: -22vmax; bottom: -20vmax; width: 72vmax; height: 44vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--tint-b) 30%, transparent), transparent); animation: gb 150s ease-in-out infinite alternate; }
body.tinted .ground i { opacity: 1; }
body.tinted .ground::before { opacity: .35; }
#water { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(14px); opacity: 0; transition: opacity 1.2s ease; }
#water.on { opacity: 1; }
.grain {
  position: absolute; inset: 0; mix-blend-mode: overlay; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes ga { to { transform: translate(14vmax, 8vmax) scale(1.1); } }
@keyframes gb { to { transform: translate(-12vmax, -6vmax) scale(1.08); } }

/* ---------- glass ---------- */
.glass, .pane, .win, .peek, .sres, .tip, .toast, .pop {
  background: var(--pane); background-image: var(--glass-sheen);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-inner), inset 0 -1px 0 var(--glass-rim), 0 0 0 1px var(--glass-rim), var(--shadow-lift);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
}

/* ---------- chips and buttons (DiDo's) ---------- */
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 30px; padding: 0 12px; border: 0; border-radius: 999px; white-space: nowrap;
  font: 500 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, #fff 74%, transparent); background-image: var(--glass-sheen);
  box-shadow: inset 0 1px 0 var(--glass-inner), 0 0 0 1px var(--glass-rim);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.chip:hover { transform: translateY(-1px); background-color: #fff; box-shadow: inset 0 1px 0 var(--glass-inner), 0 0 0 1px rgba(10, 10, 10, .14), 0 8px 18px -10px rgba(10, 10, 10, .3); }
.chip:active { transform: translateY(0); }
.chip[aria-pressed="true"] { background: var(--ink); background-image: none; color: #fff; box-shadow: none; }
.chip:disabled { opacity: .35; pointer-events: none; }
.chip--x { width: 30px; padding: 0; font-size: 12px; letter-spacing: 0; }
.chip--ic { width: 30px; padding: 0; font-size: 14px; letter-spacing: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 20px; border: 0; border-radius: 999px; white-space: nowrap;
  font: 600 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(10, 10, 10, .55);
  transition: transform .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(10, 10, 10, .6); }
.btn:active { transform: none; }
.btn--ghost { background: color-mix(in srgb, #fff 80%, transparent); color: var(--ink); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--glass-rim); }
.btn--ghost[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, .45); box-shadow: inset 0 0 0 1px var(--glass-rim); }
.seg .chip { height: 26px; padding: 0 10px; box-shadow: none; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.seg .chip:hover { transform: none; background: rgba(255, 255, 255, .8); box-shadow: none; }
.seg .chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lq { border: 0; background: none; padding: 0; font: 500 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.lq:hover { color: var(--ink); }
.lbl { font: 500 9.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- the band ---------- */
.band {
  position: fixed; left: 0; right: 0; top: 0; z-index: 30; height: var(--band);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 0 var(--gut);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 22px 22px;
  background-color: rgba(246, 248, 248, .5);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(10, 10, 10, .05);
}
.mark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); justify-self: start; }
.mark svg { width: 16px; height: 20px; fill: currentColor; flex: none; }
.mark b { font-size: 15px; font-weight: 650; letter-spacing: .14em; }
.mark small { font: 500 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-left: 9px; border-left: 1px solid var(--ink-4); }
.band__r { justify-self: end; display: flex; gap: 8px; align-items: center; }
.flag { font: 500 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--ink-4); background: rgba(255, 255, 255, .5); white-space: nowrap; }
#watchbtn { display: none; }

/* search: a pill that widens on focus */
.search {
  position: relative; display: flex; align-items: center; gap: 8px; width: min(400px, 40vw); height: 36px; padding: 0 6px 0 14px;
  border-radius: 999px; background: color-mix(in srgb, #fff 78%, transparent); background-image: var(--glass-sheen);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--glass-rim), 0 10px 26px -18px rgba(10, 10, 10, .35);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: width .28s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease;
}
.search:hover, .search:focus-within { width: min(520px, 46vw); }
.search:focus-within { box-shadow: inset 0 1px 0 #fff, 0 0 0 1.5px var(--ink), 0 14px 30px -18px rgba(10, 10, 10, .4); }
.search__glyph { font-size: 15px; color: var(--ink-3); line-height: 1; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 12px var(--mono); letter-spacing: .01em; }
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search__k { font: 500 10px/1 var(--mono); color: var(--ink-3); padding: 5px 8px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--ink-4); }
.search:focus-within .search__k { visibility: hidden; }
.sres { position: absolute; left: 0; right: 0; top: 44px; max-height: min(60vh, 460px); overflow: auto; padding: 6px; border-radius: 18px; background: var(--pane-solid); }
.sres .empty { padding: 14px 12px; }

/* ---------- the field ---------- */
.field { position: fixed; inset: 0; z-index: 1; }
#fcv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.fcap {
  position: absolute; left: 50%; bottom: calc(var(--foot) + 4px); transform: translateX(-50%); margin: 0; white-space: nowrap;
  font: 500 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); pointer-events: none;
}
body.win-open .fcap, body.win-open .tip, body.win-open .intro { display: none; }
.intro { --il: calc(var(--gut) + var(--lw) + 18px); --ir: calc(var(--gut) + var(--rw) + 18px); position: absolute; left: var(--il); right: var(--ir); top: calc(var(--band) + 26px); margin: 0 auto; max-width: 560px; text-align: center; pointer-events: none; }
.intro__h { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.intro__steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 12px 0 0; padding: 0; list-style: none; font: 500 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.intro__steps li { display: flex; align-items: center; gap: 7px; }
.intro__steps b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; letter-spacing: 0; }
.tip { position: absolute; z-index: 5; width: 232px; padding: 12px 14px; border-radius: 16px; pointer-events: none; background: var(--pane-solid); font-size: 12.5px; }
.tip b { font-size: 14px; }
.tip p { margin: 6px 0 0; color: var(--ink-2); }
.tip .pr { font: 12px var(--mono); margin-top: 2px; }
.pbar { display: flex; height: 4px; border-radius: 2px; overflow: hidden; margin-top: 8px; background: var(--ink-4); }
.pbar i { display: block; height: 100%; }
.pbar .b { background: var(--up); }
.pbar .s { background: var(--dn); flex: 1; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- panes ---------- */
.pane { position: fixed; z-index: 10; top: calc(var(--band) + 12px); bottom: var(--foot); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; }
.pane--l { left: var(--gut); width: var(--lw); }
.pane--r { right: var(--gut); width: var(--rw); }
.ph { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 14px 10px; }
.ph--b { border-top: 1px solid var(--hair); margin-top: 4px; }
.ph h2 { margin: 0; font: 500 9.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.cnt { font: 500 9.5px var(--mono); color: var(--ink-3); }
.chips { display: grid; grid-template-columns: repeat(4, auto); width: 100%; }
.chips .chip { padding: 0 6px; }
.rows { flex: 1; min-height: 0; overflow: auto; padding: 0 6px 8px; scrollbar-width: thin; scrollbar-color: var(--ink-4) transparent; }
.rows--s { flex: 1 1 0; }
.row {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; min-height: 52px;
  padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; transition: background-color .14s ease;
}
.row:hover { background: rgba(255, 255, 255, .7); }
.row[aria-current="true"] { background: #fff; box-shadow: 0 0 0 1px var(--glass-rim); }
.row__t { min-width: 0; }
.row__s { display: block; font-weight: 650; font-size: 13.5px; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__n { display: block; font-size: 11.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__v { text-align: right; white-space: nowrap; }
.row__p { display: block; font: 12px var(--mono); }
.row__c { display: block; font: 11px var(--mono); }
.row--s { grid-template-columns: 26px minmax(0, 1fr) auto 22px; min-height: 44px; gap: 9px; padding: 6px 8px; }
.row--s .logo { width: 26px; height: 26px; }
.row__x { width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); font-size: 15px; line-height: 1; opacity: 0; transition: opacity .14s ease; }
.row--s:hover .row__x, .row__x:focus-visible { opacity: 1; }
.row__x:hover { background: rgba(10, 10, 10, .06); color: var(--ink); }
.empty { padding: 10px 12px; color: var(--ink-3); font-size: 12px; line-height: 1.5; }
.skel { height: 52px; margin: 2px 0; border-radius: 12px; background: linear-gradient(90deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .8), rgba(255, 255, 255, .3)); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* token logo: the image through /api/logo, or its first letter on glass */
.logo {
  position: relative; width: 32px; height: 32px; border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center;
  background: #fff; box-shadow: 0 0 0 1px var(--glass-rim), 0 4px 10px -6px rgba(10, 10, 10, .3);
  font: 650 12px var(--sans); color: var(--ink);
}
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.logo--lg { width: 44px; height: 44px; font-size: 16px; }
.logo--xs { width: 20px; height: 20px; font-size: 9px; }

/* ---------- the token card (peek) ---------- */
.peek { position: fixed; z-index: 25; width: 340px; padding: 16px; border-radius: 22px; background: var(--pane-solid); animation: pop .22s cubic-bezier(.2, .8, .2, 1); }
.pk__h { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.pk__s { font-size: 18px; font-weight: 650; letter-spacing: .01em; }
.pk__n { display: block; font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk__p { margin-top: 12px; display: flex; align-items: baseline; gap: 10px; font-family: var(--mono); }
.pk__p b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.pk__p span { font-size: 12px; }
.spark { display: block; width: 100%; height: 54px; margin: 10px 0 4px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 10px 0 14px; border-radius: 14px; overflow: hidden; background: var(--hair); box-shadow: 0 0 0 1px var(--hair); }
.facts div { background: rgba(255, 255, 255, .82); padding: 9px 10px; min-width: 0; }
.facts b { display: block; font: 600 12.5px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.facts i { display: block; margin-top: 3px; font-style: normal; font: 500 8.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pk__b { display: flex; gap: 8px; }
.pk__b .btn:first-child { flex: 1; }
.pk__m { margin: 10px 0 0; font-size: 11px; color: var(--ink-3); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }

/* ---------- the window ---------- */
.win {
  position: fixed; z-index: 20; top: calc(var(--band) + 12px); left: var(--gut); right: var(--gut); bottom: var(--foot);
  border-radius: 24px; display: flex; flex-direction: column; overflow: hidden;
  background: rgba(255, 255, 255, .5); animation: win .34s cubic-bezier(.2, .8, .2, 1);
}
@keyframes win { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.wh { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--hair); min-height: 62px; }
.trail { display: flex; align-items: center; gap: 10px; min-width: 0; }
.trail .logo { width: 34px; height: 34px; }
.trail__t { min-width: 0; }
.trail__s { display: flex; align-items: baseline; gap: 8px; font-size: 16px; font-weight: 650; white-space: nowrap; }
.trail__n { font-size: 12px; font-weight: 400; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.crumbs { display: flex; gap: 6px; align-items: center; margin-top: 3px; font: 500 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.crumbs button { border: 0; background: none; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink-2); }
.crumbs button:hover { color: var(--ink); text-decoration: underline; }
.crumbs b { color: var(--ink); font-weight: 600; }
.tape { display: flex; gap: 18px; align-items: center; flex: 1; min-width: 0; overflow: hidden; }
.tape div { white-space: nowrap; }
.tape b { display: block; font: 600 12.5px var(--mono); }
.tape i { display: block; font: 500 8.5px var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }
.wh__r { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.wb { position: relative; flex: 1; min-height: 0; }
.chart, .cview, .wview { position: absolute; inset: 0; }
.chart { transition: opacity .3s ease; }
.chart.off { opacity: 0; pointer-events: none; }
#ccv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.hint {
  position: absolute; left: 14px; bottom: 40px; margin: 0; padding: 7px 12px; border-radius: 999px; pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 28px);
  font: 500 9.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  background: rgba(255, 255, 255, .78); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--glass-rim);
}
.cacts { position: absolute; right: 88px; bottom: 36px; display: flex; gap: 8px; align-items: center; }
.cacts__open { height: 32px; padding: 0 16px; white-space: nowrap; animation: pop .2s cubic-bezier(.2, .8, .2, 1); }
.wstate { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ink-2); font-size: 13px; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink-4); border-top-color: var(--ink); animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cinema: the candle in 3D ---------- */
.cview canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.cv__ov { position: absolute; inset: 0; pointer-events: none; }
.cv__ov > * { pointer-events: auto; }
.cv__tools { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cv__ring {
  position: absolute; right: 14px; top: 14px; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 18px;
  background: rgba(255, 255, 255, .72); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--glass-rim);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 11.5px; line-height: 1.35; color: var(--ink-2);
}
.cv__ring svg { width: 40px; height: 40px; flex: none; }
.cv__share svg { width: 12px; height: 12px; flex: none; }
.cv__ring b { color: var(--ink); font: 600 12.5px var(--mono); }
.ring__bg { fill: none; stroke: rgba(10, 10, 10, .1); stroke-width: 3.4; }
.ring__fg { fill: none; stroke: var(--ink); stroke-width: 3.4; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.cv__hud {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(660px, calc(100% - 160px)); padding: 14px 20px 16px; border-radius: 22px; text-align: center;
  background: rgba(255, 255, 255, .74); background-image: var(--glass-sheen); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--glass-rim), var(--shadow-soft);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.cv__when { margin: 0 0 6px; font: 500 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cv__when b { color: var(--ink); font-weight: 600; }
.cv__sub { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -.005em; text-wrap: balance; }
.cv__bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; font: 11px var(--mono); }
.cv__bar .pbar { flex: 1; margin: 0; height: 5px; border-radius: 3px; }
.cv__own { margin: 8px 0 0; font-size: 10.5px; color: var(--ink-3); }
.varr {
  position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%; display: grid; place-items: center;
  font: 300 26px/1 var(--sans); color: var(--ink); padding-bottom: 3px;
  background: var(--pane); background-image: var(--glass-sheen); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--glass-rim), var(--shadow-soft);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .16s ease, background-color .16s ease;
}
.varr:hover { background-color: #fff; transform: scale(1.05); }
.varr:disabled { opacity: .28; pointer-events: none; }
.varr--l { left: 14px; }
.varr--r { right: 14px; }

/* the wallet card in Cinema */
.pop { position: absolute; right: 14px; top: 78px; width: 300px; padding: 16px; border-radius: 20px; background: var(--pane-solid); animation: pop .2s ease-out; }
.pop__h { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.addr { font: 600 14px var(--mono); letter-spacing: .01em; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 12px; }
.tag { font: 500 8.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink-4); color: var(--ink-2); background: rgba(255, 255, 255, .6); }
.tag--k { background: var(--ink); color: #fff; box-shadow: none; }
.kv { display: grid; grid-template-columns: auto auto; gap: 7px 12px; margin: 0 0 14px; font-size: 12px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; text-align: right; font: 12px var(--mono); }
.pop__b { display: flex; gap: 6px; flex-wrap: wrap; }
.pop__b .btn { flex: 1; height: 34px; padding: 0 14px; }

/* ---------- the wallet scan ---------- */
.wview { overflow: auto; padding: 20px 22px 26px; scrollbar-width: thin; }
.ws__h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.ws__h .addr { font-size: 17px; }
.ws__h .tags { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin: 18px 0; border-radius: 16px; overflow: hidden; background: var(--hair); box-shadow: 0 0 0 1px var(--hair); }
.kpis div { padding: 14px 14px 12px; background: rgba(255, 255, 255, .78); min-width: 0; }
.kpis b { display: block; font: 600 17px var(--mono); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpis i { display: block; margin-top: 4px; font-style: normal; font: 500 8.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ws__g { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; }
.ws__stack { position: sticky; top: 0; align-self: start; height: min(540px, calc(100vh - 330px)); min-height: 340px; border-radius: 18px; background: rgba(255, 255, 255, .34); box-shadow: inset 0 0 0 1px var(--hair); }
.ws__stack canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ws__l { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ws__l h3 { margin: 0 0 6px; font: 500 9.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.hrow { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 70px; gap: 10px; align-items: center; width: 100%; padding: 7px 8px; border: 0; border-radius: 12px; background: transparent; text-align: left; }
.hrow:not(:disabled):hover { background: rgba(255, 255, 255, .8); }
.hrow:disabled { cursor: default; }
.hrow .logo { width: 26px; height: 26px; }
.hrow b { font-size: 13px; }
.hrow .here { margin-left: 6px; font: 500 8px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.hrow .mono { font-size: 12px; text-align: right; }
.srow { display: grid; grid-template-columns: 64px 46px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 8px; font-size: 12.5px; border-bottom: 1px solid var(--hair); }
.srow:last-child { border-bottom: 0; }
.srow .mono { font-size: 12px; text-align: right; }
.srow a { color: var(--ink-3); text-decoration: none; font: 10px var(--mono); }
.side-b { font: 500 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.note { margin: 0; font-size: 11px; color: var(--ink-3); line-height: 1.5; }

/* ---------- footer, toast ---------- */
.foot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; height: var(--foot); display: flex; align-items: center; justify-content: center;
  gap: 10px; font: 500 8.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); pointer-events: none;
}
.foot i { font-style: normal; opacity: .6; }
.foot a { pointer-events: auto; text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--ink); }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 56px; transform: translateX(-50%); margin: 0; padding: 10px 16px; border-radius: 999px; background: var(--pane-solid); font-size: 12.5px; max-width: calc(100% - 32px); text-align: center; animation: pop .2s ease-out; }

/* ---------- narrower screens ---------- */
/* ---------- share a candle ---------- */
.share { position: fixed; inset: 0; z-index: 40; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 20px; background: rgba(244, 246, 246, .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .18s ease-out; }
.share[hidden] { display: none; }
.sh__card { width: min(640px, 100%); min-width: 0; padding: 16px; border-radius: 24px; background: var(--pane-solid); box-shadow: 0 0 0 1px var(--glass-rim), 0 30px 60px -30px rgba(10, 10, 10, .45); animation: pop .22s cubic-bezier(.2, .8, .2, 1); }
.sh__h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.sh__pic { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px var(--hair); }
.sh__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sh__url { margin: 10px 2px 12px; font: 500 11.5px var(--mono); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh__b { display: flex; gap: 8px; flex-wrap: wrap; }
.sh__b .btn { flex: 1 1 auto; height: 38px; padding: 0 16px; white-space: nowrap; }
.sh__card .note { margin-top: 10px; }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 1120px) {
  :root { --lw: 280px; --rw: 240px; }
  .tape div:nth-child(n+4) { display: none; }
}
@media (max-width: 920px) {
  .pane--r { display: none; }
  .tape { display: none; }
  .intro { --ir: 18px; }
}

/* phone: the list is a sheet, the watchlist swaps in for it */
@media (max-width: 720px) {
  :root { --band: 104px; --gut: 10px; --foot: 28px; }
  .band { grid-template-columns: 1fr auto; grid-template-rows: 52px 44px; gap: 0 8px; align-content: start; }
  .mark small { display: none; }
  .search, .search:hover, .search:focus-within { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .search__k { display: none; }
  #watchbtn { display: inline-flex; }
  .pane--l, .pane--r { top: auto; left: var(--gut); right: var(--gut); width: auto; bottom: calc(var(--foot) + 2px); height: 40vh; border-radius: 20px; }
  body.side .pane--l { display: none; }
  body.side .pane--r { display: flex; }
  .fcap { display: none; }
  .intro { --il: var(--gut); --ir: var(--gut); top: calc(var(--band) + 8px); }
  .intro__h { font-size: 15px; }
  .intro__steps { display: none; }
  .peek { left: var(--gut) !important; right: var(--gut); top: auto !important; bottom: calc(var(--foot) + 10px); width: auto; }
  .win { top: calc(var(--band) + 6px); left: 6px; right: 6px; bottom: 6px; border-radius: 20px; }
  .wh { flex-wrap: wrap; gap: 8px; padding: 10px; min-height: 0; }
  .wh__r { width: 100%; margin: 0; }
  .wh__r #pop { display: none; }
  .wh__r #wclose { margin-left: auto; }
  .cv__hud { width: calc(100% - 20px); bottom: 10px; padding: 10px 14px 12px; }
  .cv__sub { font-size: 15px; }
  .cacts { right: 10px; bottom: 34px; }
  .chart .hint { left: 10px; right: 10px; bottom: 76px; width: fit-content; max-width: calc(100% - 20px); }
  .cv__tools { left: 10px; top: 10px; }
  .cv__tools .chip--ic { display: none; }
  .cv__own { display: none; }
  .cv__ring { top: 10px; right: 10px; padding: 4px 10px 4px 4px; }
  .cv__ring svg { width: 24px; height: 24px; }
  .cv__ring br, .cv__ring .ring__more, .cv__ring .ring__of { display: none; }
  .cv__share { width: 30px; padding: 0; }
  .cv__share span { display: none; }
  .varr { width: 38px; height: 38px; margin-top: -60px; }
  .varr--l { left: 8px; }
  .varr--r { right: 8px; }
  .pop { left: 10px; right: 10px; top: 56px; width: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws__g { grid-template-columns: 1fr; }
  .ws__stack { position: relative; height: 300px; min-height: 0; }
  .wview { padding: 16px 12px 20px; }
  .foot { font-size: 7.5px; letter-spacing: .1em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
