/* bubblepons — the chrome.
   Deep black, one mint accent that glows, glass over it. The board does
   the shouting; everything around it stays quiet and precise. */
:root {
  --ink: #eef4f1;
  --ink-2: rgba(238, 244, 241, .62);
  --ink-3: rgba(238, 244, 241, .34);
  --void: #05070a;
  --panel: rgba(12, 17, 21, .82);

  --mint: #56f2ac;
  --mint-dim: rgba(86, 242, 172, .5);
  --mint-glow: rgba(86, 242, 172, .34);
  --up: #21d17f;
  --down: #ff4f61;

  --rim: inset 0 0 0 1px rgba(255, 255, 255, .07);
  --rim-hi: inset 0 0 0 1px rgba(255, 255, 255, .13);
  --lift: 0 30px 70px -32px rgba(0, 0, 0, .95);

  --sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .3, 1);
  --bar: 62px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; }
body {
  margin: 0; background: var(--void); color: var(--ink);
  font: 400 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: clip; scroll-behavior: smooth;
}
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 8px; }

/* ── the room ───────────────────────────────────────────────────────── */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg .glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.bg .glow.a { width: 62vmax; height: 62vmax; left: -14vmax; top: -22vmax;
  background: radial-gradient(circle, rgba(86,242,172,.16), transparent 66%); animation: float1 26s ease-in-out infinite; }
.bg .glow.b { width: 54vmax; height: 54vmax; right: -16vmax; bottom: -20vmax;
  background: radial-gradient(circle, rgba(64,140,255,.14), transparent 66%); animation: float2 32s ease-in-out infinite; }
.bg .grid {
  position: absolute; inset: 0; opacity: .32;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 78%);
}
@keyframes float1 { 50% { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); } }
@keyframes float2 { 50% { transform: translate3d(-5vmax, -3vmax, 0) scale(1.06); } }

/* ── the bar ────────────────────────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 20; height: var(--bar);
  display: flex; align-items: center; gap: 18px; padding: 0 18px;
  background: rgba(5,7,10,.72);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.06);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.logo {
  width: 36px; height: 36px; object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(86,242,172,.45));
  animation: bob 6s var(--ease) infinite;
}
@keyframes bob { 50% { transform: translateY(-2px) rotate(-3deg); filter: drop-shadow(0 0 22px rgba(86,242,172,.6)); } }
.wm { font: 800 16px/1 var(--sans); letter-spacing: .01em; }
.wm em { font-style: normal; color: var(--mint); margin-left: 5px; text-shadow: 0 0 18px var(--mint-glow); }

.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px;
  border-radius: 9px; background: rgba(255,255,255,.045); box-shadow: var(--rim);
  font: 600 10px/1 var(--mono); letter-spacing: .14em; color: var(--ink-2); white-space: nowrap;
  transition: background .22s, box-shadow .22s, color .22s;
}
.chip.chain { color: var(--mint); box-shadow: inset 0 0 0 1px rgba(86,242,172,.22); background: rgba(86,242,172,.07); }
.chip.ghost:hover { background: rgba(255,255,255,.1); color: var(--ink); }
.chip.ghost.on { color: #04140d; background: var(--mint); box-shadow: 0 0 22px -6px var(--mint-glow); }
.chip.ghost svg { width: 16px; height: 16px; }
.chip.live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3);
  box-shadow: 0 0 10px currentColor; transition: background .3s;
}
.chip.live[data-state="live"] i { background: var(--mint); animation: blip 1.9s steps(1) infinite; }
@keyframes blip { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .25; } }
.chip.live { gap: 8px; padding: 0 12px; }
.chip.live b { font: 700 10px/1 var(--mono); letter-spacing: .12em; color: var(--ink); }
.chip.live span { color: var(--ink-3); }
.chip.live[data-state="live"] span { color: var(--mint); }
.chip.live small { color: var(--ink-3); letter-spacing: .06em; font-size: 9.5px; }

/* the timeframe control: one pill that slides */
.tfs {
  margin: 0 auto; display: flex; gap: 2px; padding: 3px; border-radius: 11px;
  background: rgba(255,255,255,.035); box-shadow: var(--rim);
}
.tf {
  position: relative; height: 28px; padding: 0 15px; border-radius: 8px;
  font: 700 10.5px/1 var(--mono); letter-spacing: .16em; color: var(--ink-3);
  transition: color .22s var(--ease), background .22s var(--ease), transform .18s var(--ease);
}
.tf:hover { color: var(--ink); background: rgba(255,255,255,.055); }
.tf.on {
  color: #04140d;
  background: linear-gradient(180deg, #a6ffd8, var(--mint) 62%, #29d194);
  box-shadow: 0 0 30px -10px var(--mint-glow), inset 0 1px 0 rgba(255,255,255,.6);
}
.tf.on:hover { transform: translateY(-1px); }

.right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.find {
  display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px;
  border-radius: 9px; background: rgba(255,255,255,.045); box-shadow: var(--rim);
  transition: box-shadow .25s, background .25s;
}
.find:focus-within { box-shadow: inset 0 0 0 1px rgba(86,242,172,.4), 0 0 26px -12px var(--mint-glow); background: rgba(86,242,172,.05); }
.find svg { width: 14px; height: 14px; color: var(--ink-3); }
.find input {
  width: 128px; background: none; border: 0; outline: none;
  font: 500 12px/1 var(--sans); color: var(--ink);
}
.find input::placeholder { color: var(--ink-3); }
.find kbd {
  font: 600 9px/1 var(--mono); color: var(--ink-3); padding: 3px 5px;
  border-radius: 4px; background: rgba(255,255,255,.06);
}

/* ── the event line ─────────────────────────────────────────────────── */
.ticker {
  position: relative; z-index: 15; height: 26px; display: flex; align-items: center; gap: 10px;
  padding: 0 16px; overflow: hidden; font: 600 10px/1 var(--mono); letter-spacing: .16em; color: var(--mint);
}
.ticker .tick {
  opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease);
  padding: 4px 9px; border-radius: 7px; background: rgba(86,242,172,.08);
  box-shadow: inset 0 0 0 1px rgba(86,242,172,.2); white-space: nowrap;
}
.ticker .tick.in { opacity: 1; transform: none; }

/* ── the board ──────────────────────────────────────────────────────── */
.stage { position: relative; z-index: 10; height: calc(100svh - var(--bar) - 26px); }

/* the way down to the table */
.scroll-cue {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 14;
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(10,14,18,.66); backdrop-filter: blur(10px); box-shadow: var(--rim);
  font: 600 9.5px/1 var(--mono); letter-spacing: .2em; color: var(--ink-2);
  text-decoration: none; transition: color .2s, background .2s, transform .25s var(--ease);
}
.scroll-cue svg { width: 13px; height: 13px; animation: nudge 2.2s var(--ease) infinite; }
.scroll-cue:hover { color: var(--mint); background: rgba(86,242,172,.1); transform: translateX(-50%) translateY(-2px); }
@keyframes nudge { 50% { transform: translateY(3px); } }
#glass, #board { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#glass { pointer-events: none; }
#board { touch-action: none; transition: opacity .3s; }

/* ── the table: every token, every window ──────────────────────────── */
.table { position: relative; z-index: 12; padding: 0 0 40px; }
.t-head, .row {
  display: grid;
  grid-template-columns: 52px minmax(210px, 1.5fr) 110px 120px 118px repeat(5, 92px) 78px;
  gap: 10px; align-items: center; padding: 10px 20px; text-align: right;
}
.t-head {
  position: sticky; top: var(--bar); z-index: 3;
  background: rgba(5,7,10,.93); backdrop-filter: blur(14px);
  font: 600 9px/1 var(--mono); letter-spacing: .18em; color: var(--ink-3);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.08);
}
.t-head .r, .t-head .s, .row .r, .row .s { text-align: left; }
.t-head .c.on { color: var(--mint); }
.row {
  width: 100%; font: 500 12.5px/1 var(--mono); color: var(--ink-2);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.04);
  transition: background .18s, color .18s, transform .18s var(--ease);
  animation: rowIn .45s var(--ease) backwards;
}
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }
.row:hover { background: rgba(86,242,172,.055); color: var(--ink); }
.row .s { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row .s b { font: 700 13px/1 var(--sans); color: var(--ink); }
.row .s i { font: 500 10.5px/1 var(--mono); font-style: normal; color: var(--ink-3); letter-spacing: .08em; }
.row .c { font-size: 12px; }
.row .c.on {
  border-radius: 7px; padding: 5px 0;
  background: rgba(86,242,172,.07); box-shadow: inset 0 0 0 1px rgba(86,242,172,.18);
}
.row .l { display: flex; gap: 6px; justify-content: flex-end; }
.row .l a {
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px;
  background: rgba(255,255,255,.05); box-shadow: var(--rim); color: var(--ink-3);
  font: 700 8px/1 var(--mono); text-decoration: none; transition: color .18s, background .18s;
}
.row .l a:hover { color: var(--mint); background: rgba(86,242,172,.12); }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--ink-3); }
.mk { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; background: #11161c; }
.mk.mono {
  display: grid; place-items: center; font: 700 8px/1 var(--mono); color: var(--mint);
  background: rgba(86,242,172,.12); box-shadow: inset 0 0 0 1px rgba(86,242,172,.25);
}

/* ── hover tag ──────────────────────────────────────────────────────── */
.tip {
  position: fixed; z-index: 40; transform: translate(-50%, -100%); pointer-events: none;
  display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 10px;
  background: rgba(8,11,15,.92); backdrop-filter: blur(10px); box-shadow: var(--rim-hi), var(--lift);
  font: 600 11px/1 var(--mono); white-space: nowrap;
  animation: tipIn .16s var(--ease);
}
@keyframes tipIn { from { opacity: 0; transform: translate(-50%, -94%); } }
.tip b { font: 700 12px/1 var(--sans); }

/* ── the detail panel ───────────────────────────────────────────────── */
.panel {
  position: fixed; z-index: 45; width: 420px; max-width: calc(100vw - 24px);
  border-radius: 18px; overflow: hidden;
  background: var(--panel); backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--rim-hi), var(--lift), 0 0 60px -30px var(--mint-glow);
  opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: top center;
  transition: opacity .22s var(--ease), transform .28s var(--ease);
}
.panel.in { opacity: 1; transform: none; }
.p-head { display: flex; align-items: center; gap: 11px; padding: 14px 14px 12px; }
.p-mark .mk { width: 26px; height: 26px; }
.p-name { display: grid; line-height: 1.15; min-width: 0; }
.p-name b { font: 800 15px/1.2 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-name i { font: 500 10px/1 var(--mono); font-style: normal; color: var(--ink-3); letter-spacing: .1em; }
.p-price { margin-left: auto; font: 700 15px/1 var(--mono); }
.p-x { width: 26px; height: 26px; border-radius: 8px; color: var(--ink-3); font-size: 12px; transition: background .2s, color .2s; }
.p-x:hover { background: rgba(255,255,255,.08); color: var(--ink); }

.p-tfs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 0 12px 12px; }
.p-tf {
  display: grid; gap: 4px; padding: 8px 4px; border-radius: 10px; text-align: center;
  background: rgba(255,255,255,.035); box-shadow: var(--rim);
  transition: background .2s, box-shadow .2s, transform .2s var(--ease);
}
.p-tf span { font: 600 9px/1 var(--mono); letter-spacing: .14em; color: var(--ink-3); }
.p-tf b { font: 700 11.5px/1 var(--mono); }
.p-tf:hover { background: rgba(255,255,255,.07); transform: translateY(-1px); }
.p-tf.on { background: rgba(86,242,172,.1); box-shadow: inset 0 0 0 1px rgba(86,242,172,.36); }
.p-tf.on span { color: var(--mint); }

.p-chart { padding: 0 12px 10px; }
.p-chart svg { width: 100%; height: 150px; display: block; }
.p-chart .grid { stroke: rgba(255,255,255,.07); stroke-width: 1; stroke-dasharray: 3 4; }
.p-chart .ax { fill: var(--ink-3); font: 500 8.5px var(--mono); stroke: none; }
.p-chart .ax.t { font-size: 8px; }
.p-chart .ax.end { text-anchor: end; }
.p-load { height: 150px; display: grid; place-items: center; font: 500 10px/1 var(--mono); letter-spacing: .18em; color: var(--ink-3); }

.p-stats { margin: 0; padding: 2px 12px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(255,255,255,.05); border-radius: 12px; overflow: hidden; margin: 0 12px 12px; }
.p-stats > div { background: rgba(10,14,18,.92); padding: 9px 11px; }
.p-stats dt { font: 600 8.5px/1 var(--mono); letter-spacing: .16em; color: var(--ink-3); }
.p-stats dd { margin: 5px 0 0; font: 600 12px/1 var(--mono); }
.p-stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }

.p-ca { display: flex; align-items: center; gap: 8px; padding: 0 12px 13px; }
.p-ca code {
  flex: 1; min-width: 0; padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.04);
  box-shadow: var(--rim); font: 500 10.5px/1 var(--mono); color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.p-copy, .p-link {
  padding: 8px 11px; border-radius: 9px; font: 700 9.5px/1 var(--mono); letter-spacing: .14em;
  background: rgba(255,255,255,.05); box-shadow: var(--rim); color: var(--ink-2);
  text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, transform .2s var(--ease);
}
.p-copy:hover, .p-link:hover { background: rgba(86,242,172,.12); color: var(--mint); transform: translateY(-1px); }

/* ── foot ───────────────────────────────────────────────────────────── */
.foot {
  position: relative; z-index: 15; height: 30px; display: flex; align-items: center; gap: 12px;
  padding: 0 16px; font: 500 9.5px/1 var(--mono); letter-spacing: .1em; color: var(--ink-3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.foot .sep { flex: 1; height: 1px; background: rgba(255,255,255,.07); }

@media (max-width: 1240px) {
  .t-head, .row { grid-template-columns: 40px minmax(150px, 1.4fr) 92px 104px repeat(3, 84px) 66px; }
  .t-head .v, .row .v, .t-head .c[data-col="1m"], .row .c.m1, .t-head .c[data-col="1y"], .row .c.y1 { display: none; }
}
@media (max-width: 1040px) {
  .foot span:last-child { display: none; }
  .find input { width: 92px; }
}
@media (max-width: 760px) {
  .bar { flex-wrap: wrap; height: auto; padding: 10px 12px; gap: 9px; }
  .tfs { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .tf { flex: 1; padding: 0; }
  .stage { height: calc(100svh - 150px); }
  .panel { width: calc(100vw - 20px); }
  .t-head, .row { grid-template-columns: 28px 1.3fr 82px 78px; padding: 9px 12px; }
  .t-head .m, .row .m, .t-head .l, .row .l, .t-head .c:not(.on), .row .c:not(.on) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ── grouping, stars, badges, snapshot ──────────────────────────────── */
.grps { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: rgba(255,255,255,.035); box-shadow: var(--rim); }
.grp {
  height: 28px; padding: 0 11px; border-radius: 8px;
  font: 700 9.5px/1 var(--mono); letter-spacing: .16em; color: var(--ink-3);
  transition: color .2s, background .2s;
}
.grp:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.grp.on { color: #04140d; background: linear-gradient(180deg, #a6ffd8, var(--mint) 62%, #29d194); box-shadow: 0 0 24px -10px var(--mint-glow); }

.star {
  cursor: pointer; font-size: 13px; line-height: 1; color: rgba(255,255,255,.16);
  transition: color .2s, transform .2s var(--ease);
}
.star:hover { color: rgba(255,214,90,.75); transform: scale(1.18); }
.star.on { color: #ffd65a; text-shadow: 0 0 14px rgba(255,214,90,.55); }

.bdg {
  font: 700 8px/1 var(--mono); font-style: normal; letter-spacing: .12em;
  padding: 3px 5px; border-radius: 5px; color: #ffcf7a;
  background: rgba(255,176,32,.1); box-shadow: inset 0 0 0 1px rgba(255,176,32,.22);
}

.p-star {
  width: 26px; height: 26px; border-radius: 8px; color: rgba(255,255,255,.28); font-size: 14px;
  transition: color .2s, background .2s;
}
.p-star:hover { background: rgba(255,255,255,.08); color: #ffd65a; }
.p-star.on { color: #ffd65a; text-shadow: 0 0 14px rgba(255,214,90,.5); }

.p-flags { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 12px 11px; }
.p-flags span {
  font: 700 8.5px/1 var(--mono); letter-spacing: .14em; padding: 6px 8px; border-radius: 6px;
  color: #ffcf7a; background: rgba(255,176,32,.09); box-shadow: inset 0 0 0 1px rgba(255,176,32,.2);
}

@media (max-width: 1240px) { .grps { display: none; } }
