/* ──────────────────────────────────────────────────────────
   vgt.rip
   spacing + sizing run on the fibonacci scale (≈ golden ratio):
   5 · 8 · 13 · 21 · 34 · 55 · 89 · 144 · 233 · 377

   two rules hold everywhere:
   - nothing sits in a box. everything lies directly on the light.
   - only transform and opacity ever animate, so the gpu does all
     the moving and the browser never has to repaint mid-motion.
   ────────────────────────────────────────────────────────── */

/* every colour here is sampled from the pfp: its near-black shadows, its bronze
   and gold light trails, and the pale cream at the hottest point of the lights.
   the gold and rust accents are lifted a little so they read at small sizes */
:root {
  --bg: #090603;
  --fg: #ede4ca;
  --fg-2: #b19c74;
  --fg-3: #91784e;
  --line: rgba(237, 228, 202, 0.14);
  --gold: #d4ae6c;
  --rust: #c07a3e;
  --tint: #d4ae6c;
  --warm: #f4ecd6;

  --s1: 5px; --s2: 8px; --s3: 13px; --s4: 21px; --s5: 34px; --s6: 55px; --s7: 89px; --s8: 144px;

  --gutter: clamp(16px, 4vw, 55px);
  /* one column: every left and right edge below the hero lands on the same x */
  --col: min(100vw - 2 * var(--gutter), clamp(987px, 61.8vw, 1597px));
  /* the cover is the golden share of the column, never shorter than the player beside it */
  --art: min(max(0.382 * var(--col), 352px), 44vw, 610px, 100svh - 110px);
  /* one root for the hero: the pfp, bio and icons all scale from the name */
  --name: min(33vw, 56svh);
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
[inert] { pointer-events: none; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  /* no scrollbar: it would be a box down the side, and shift the page on entry */
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }
/* the wheel glide moves the real scroll position itself, every frame */
html.has-smooth { scroll-behavior: auto; }
/* nothing scrolls, or is even drawn, until you've entered */
html.locked { overflow: hidden; }
html.locked main, html.locked .foot { visibility: hidden; }

body {
  position: relative;
  min-height: 100svh;
  overflow-x: clip;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

::selection { background: var(--gold); color: var(--bg); }
a { color: inherit; text-decoration: none; }
ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h2 { font: inherit; }
/* no grey tap flash on phones, and no double-tap-zoom delay on controls */
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 1.5px solid rgba(237, 228, 202, 0.55); outline-offset: 3px; border-radius: 4px; }

/* the shared pieces the build engine moves */
.mask { display: block; overflow: clip; overflow-clip-margin: 0; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mask > * { display: block; }
.hair {
  display: block;
  height: 1px;
  background: var(--line);
  transform-origin: left;
}
.b-mask, .b-rise, .b-line, .b-fade, .b-pop, .b-bar { backface-visibility: hidden; }

/* ── atmosphere ─────────────────────────────────────────── */
.bloom {
  position: fixed; left: 0; top: 0; z-index: -1;
  width: 100vw; height: 100lvh;
  pointer-events: none;
}
/* the fallback light: sits under the live one, only seen if that couldn't start */
.ambient {
  position: fixed; left: 0; top: 0; z-index: -3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.3s var(--ease-io);
}
.ambient.on { opacity: 1; }
.ambient.top { z-index: -2; }

/* ── enter ──────────────────────────────────────────────── */
/* see-through: the points of light twinkle behind it until you click */
.enter {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  cursor: pointer;
  transition: opacity 0.89s var(--ease-io), visibility 0.89s;
}
.enter-label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-2);
  user-select: none;
  /* fades in once, then breathes */
  animation: rise 0.89s var(--ease) 0.13s both, breathe 2.6s var(--ease-io) 1.02s infinite;
  transition: opacity 0.34s var(--ease), scale 0.55s var(--ease);
}
@keyframes rise { from { opacity: 0; translate: 0 5px; } }
@keyframes breathe { 50% { opacity: 0.45; } }
.is-in .enter { opacity: 0; visibility: hidden; }
.is-in .enter-label { opacity: 0; scale: 0.6; animation: none; }

/* the moment of impact: one burst of light over everything, once */
.flash {
  position: fixed; inset: 0; z-index: 40;
  background: radial-gradient(circle at 50% 42%, rgba(244, 236, 214, 1) 0%, rgba(233, 224, 198, 0.75) 30%, rgba(212, 174, 108, 0.32) 62%, rgba(145, 120, 78, 0.12) 100%);
  opacity: 0;
  pointer-events: none;
}
.is-in .flash { animation: flash 0.95s var(--ease) 0.77s forwards; }
@keyframes flash { 0% { opacity: 0.95; } 100% { opacity: 0; } }

/* ── entrance (plays once, on the gpu, after the click) ─── */
[data-in] { opacity: 0; translate: 0 var(--s4); }
.is-in [data-in] {
  opacity: 1; translate: 0 0;
  transition: opacity 1s var(--ease), translate 1.1s var(--ease);
  transition-delay: calc(610ms + var(--i) * 89ms);
}

/* ── the first scene ────────────────────────────────────── */
.scene { position: relative; height: 162svh; }
.no-music .scene { height: 100svh; }
/* where "music" in the nav lands: the player, fully built and centred */
.anchor-music { position: absolute; left: 0; top: 62svh; width: 1px; height: 1px; }
.stage {
  position: sticky; top: 0;
  height: 100svh;
  overflow: clip;
}

.top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 10;
  padding: max(var(--s3), env(safe-area-inset-top)) var(--gutter) var(--s3);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  will-change: transform, opacity;
}
.top-in { display: flex; align-items: center; justify-content: space-between; }
.top-links { display: flex; gap: var(--s4); }
.top-links a, .top-mark {
  display: grid; place-items: center;
  height: var(--s5);
}
.top-links a { opacity: 0.62; transition: opacity 0.21s var(--ease); }
@media (hover: hover) {
  .top-links a:hover { opacity: 1; }
}
.no-music #nav-music { display: none; }

/* hero */
.hero {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--s7) var(--gutter) calc(var(--s7) + var(--name) * 0.04);
  text-align: center;
}
.name {
  display: flex; justify-content: center;
  font-size: var(--name);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.86;
  color: var(--warm);
  user-select: none;
  padding-bottom: 0.04em;
  will-change: transform; /* the whole word turns to face the cursor (build.js) */
}
.ltr { display: block; will-change: transform, opacity; }
.ltr-in {
  display: block;
  /* its glow is painted once, then only ever moved */
  text-shadow: 0 0 13px rgba(244, 236, 214, 0.3), 0 0 55px rgba(212, 174, 108, 0.2);
}
/* the letters are thrown in from off screen, picking up speed, and slam
   together. outer letters land first, the middle one last, on the flash */
.is-in .ltr-in {
  animation:
    slam 0.95s linear var(--d, 0s) both,
    slam-in 0.34s linear var(--d, 0s) both;
}
@keyframes slam {
  0% { translate: var(--fx, 0) var(--fy, 0); scale: 2.3; animation-timing-function: cubic-bezier(0.55, 0, 0.95, 0.4); }
  68% { translate: 0 0; scale: 0.92; animation-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1); }
  82% { translate: 0 0; scale: 1.035; animation-timing-function: cubic-bezier(0.4, 0, 0.3, 1); }
  100% { translate: 0 0; scale: 1; }
}
@keyframes slam-in { from { opacity: 0; } to { opacity: 1; } }

.hero-sub {
  margin-top: calc(var(--s5) - var(--name) * 0.1);
  display: flex; flex-direction: column; align-items: center; gap: var(--s2);
}
.slot { flex: none; width: clamp(55px, var(--name) * 0.146, 89px); height: clamp(55px, var(--name) * 0.146, 89px); }
.slot-avatar { display: none; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hero-sub-text { will-change: transform, opacity; }
.bio {
  height: max(var(--s5), 1.3em);
  line-height: 1.3;
  display: grid; align-items: center; justify-items: center;
  font-size: clamp(18px, var(--name) * 0.0557, 34px);
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
#bio { display: inline-block; transition: opacity 0.34s var(--ease), translate 0.34s var(--ease); }
#bio.out { opacity: 0; translate: 0 -5px; }
#bio.pre { opacity: 0; translate: 0 5px; transition: none; }

.links-wrap { margin-top: var(--s4); will-change: transform, opacity; }
.links { display: flex; justify-content: center; gap: var(--s2); }
.link {
  position: relative;
  width: var(--s5); height: var(--s5);
  display: grid; place-items: center;
  color: var(--fg);
}
/* the icons land one by one, just after the hit */
.is-in .link { animation: link-in 0.89s cubic-bezier(0.2, 1.3, 0.4, 1) calc(1.14s + var(--n, 0) * 70ms) both; }
@keyframes link-in { from { opacity: 0; translate: 0 var(--s4); scale: 0.5; } }
.link i {
  display: block;
  width: clamp(16px, var(--name) * 0.035, 21px); height: clamp(16px, var(--name) * 0.035, 21px);
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  opacity: 0.62;
  transition: opacity 0.21s var(--ease), translate 0.34s var(--ease);
}
@media (hover: hover) {
  .link:hover i { opacity: 1; translate: 0 -2px; }
}

/* its name, floating under the icon with nothing around it */
.link::after {
  content: attr(data-label);
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  translate: -50% -3px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--fg);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.21s var(--ease), translate 0.21s var(--ease);
}
.link:focus-visible::after { opacity: 1; translate: -50% 0; }
@media (hover: hover) {
  .link:hover::after { opacity: 1; translate: -50% 0; }
}

.cue {
  position: absolute; left: 0; right: 0; bottom: var(--s7);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--fg-2);
  pointer-events: none;
  will-change: opacity;
}
.cue span { display: inline-block; }
@media (max-height: 800px) { .cue { display: none; } }
.is-in .cue span { animation: drift 2.6s var(--ease-io) 2s infinite; }
@keyframes drift { 50% { translate: 0 var(--s1); } }

/* player */
.player-layer {
  will-change: transform;
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center;
  padding: var(--s4) var(--gutter);
}
.player {
  width: var(--col);
  display: grid;
  grid-template-columns: var(--art) minmax(0, 1fr);
  gap: var(--s6);
  align-items: stretch;
}

.pl-art { position: relative; width: var(--art); height: var(--art); }
.morph {
  position: absolute; inset: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.morph-tilt {
  position: absolute; inset: 0;
  will-change: transform;
}
.morph-in { position: absolute; inset: 0; }
/* the pfp springs out of the blast, spinning into place */
.is-in .morph-in { animation: pfp-in 1.1s cubic-bezier(0.2, 1.35, 0.4, 1) 0.92s both; }
@keyframes pfp-in { from { opacity: 0; scale: 0; rotate: -70deg; } }
.m-cover { position: absolute; inset: 0; border-radius: var(--s3); overflow: hidden; }
.m-iris { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; will-change: transform; }
.m-iris-in { position: absolute; inset: 0; will-change: transform; }
.m-avatar, #pl-cover { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.m-avatar { will-change: opacity; }
#pl-cover { transition: opacity 0.34s var(--ease); }
.player.is-swapping #pl-cover { opacity: 0; }
/* a soft sheen that slides across the cover with the cursor */
.glare {
  position: absolute; left: -50%; top: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(closest-side, rgba(237, 228, 202, 0.16), rgba(237, 228, 202, 0.06) 45%, rgba(237, 228, 202, 0) 75%);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.pl-body { min-width: 0; display: flex; flex-direction: column; }
.pl-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--s3);
}
.pl-meta { min-width: 0; display: flex; flex-direction: column; transition: opacity 0.34s var(--ease), translate 0.34s var(--ease); }
.player.is-swapping .pl-meta { opacity: 0; translate: 0 3px; }
.pl-label { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--fg-2); will-change: transform; }
.pl-title-wrap { margin-top: var(--s2); }
.pl-title-in, .pl-artist-in { will-change: transform; }
.pl-title, .pl-artist { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-title { font-size: clamp(34px, 4.4vw, 55px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.12; color: var(--fg); padding-bottom: 0.06em; }
.pl-artist { font-size: 15px; line-height: 1.35; color: var(--fg-2); }
.pl-artist-wrap { margin-top: var(--s1); }

.ic {
  position: relative;
  flex: none;
  width: var(--s5); height: var(--s5);
  display: grid; place-items: center;
  color: var(--fg);
  will-change: transform, opacity;
}
.ic svg { width: 17px; height: 17px; opacity: 0.72; transition: opacity 0.21s var(--ease), scale 0.21s var(--ease); }
@media (hover: hover) {
  .ic:hover svg { opacity: 1; scale: 1.1; }
}
.ic:active svg { scale: 0.92; transition-duration: 0.08s; }
.tog { color: var(--fg); }
.tog[aria-pressed="true"] { color: var(--gold); }
.tog[aria-pressed="true"] svg { opacity: 1; }
.tog::after {
  content: "";
  position: absolute; bottom: 1px; left: 50%;
  width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0; scale: 0;
  transition: opacity 0.21s var(--ease), scale 0.21s var(--ease);
}
.tog[aria-pressed="true"]::after { opacity: 1; scale: 1; }

.pl-progress {
  margin-top: auto; /* title at the top, everything you touch at the bottom */
  padding-top: var(--s4);
  display: grid;
  grid-template-columns: var(--s5) minmax(0, 1fr) var(--s5);
  align-items: center;
  gap: var(--s2);
}
.pl-time {
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums; /* digits stay put as the time ticks */
  color: var(--fg-2);
  will-change: opacity;
}
.pl-time:first-child { text-align: left; }
.pl-time:last-child { text-align: right; }

.pl-bar {
  position: relative;
  height: var(--s3);
  display: flex; align-items: center;
  cursor: pointer;
  touch-action: pan-y;
}
.pl-track {
  position: relative;
  width: 100%; height: 3px;
  border-radius: 2px;
  background: rgba(237, 228, 202, 0.16);
  overflow: hidden;
  transform-origin: left;
  will-change: transform;
}
.pl-fill {
  position: absolute; inset: 0;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}
/* the knob rides on a rail as wide as the bar, so moving it never touches layout */
.pl-rail {
  position: absolute; inset: 0;
  pointer-events: none;
  will-change: transform;
}
/* the dot sits on the exact playhead, always */
.pl-knob {
  position: absolute; top: 50%; left: 0;
  width: 13px; height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  background: var(--fg);
  transition: scale 0.21s var(--ease);
}
.pl-bar.is-drag .pl-knob { scale: 1.25; }
@media (hover: hover) {
  .pl-bar:hover .pl-knob { scale: 1.25; }
}

.pl-ctrls {
  margin-top: var(--s3);
  display: flex; align-items: center; justify-content: center; gap: var(--s4);
}
/* the one big control: no disc around it, just bigger and brighter */
.pl-play {
  width: var(--s6); height: var(--s6);
  display: grid; place-items: center;
  color: var(--fg);
  will-change: transform, opacity;
}
.pl-play svg { width: 30px; height: 30px; transition: scale 0.21s var(--ease); }
@media (hover: hover) {
  .pl-play:hover svg { scale: 1.1; }
}
.pl-play:active svg { scale: 0.92; transition-duration: 0.08s; }

/* the tracklist */
.tracks { margin-top: var(--s3); }
.track { position: relative; }
.track .hair { will-change: transform; }
.track-btn {
  width: 100%;
  display: grid;
  grid-template-columns: var(--s4) var(--s5) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s3);
  padding: var(--s2) 0;
  text-align: left;
  will-change: transform, opacity;
}
.track-n {
  position: relative;
  height: var(--s3);
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--fg-3);
}
.track-btn img { display: block; width: var(--s5); height: var(--s5); border-radius: 4px; object-fit: cover; }
.track-text { min-width: 0; display: flex; flex-direction: column; transition: translate 0.34s var(--ease); }
@media (hover: hover) {
  .track-btn:hover .track-text { translate: var(--s1) 0; }
}
.track-title, .track-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-title { font-size: 15px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.track-artist { font-size: 13px; line-height: 1.3; color: var(--fg-2); }
.track-from { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--fg-2); }
.track.is-current .track-title { color: var(--gold); }

/* the little bars next to the current song, only moving while it plays */
.eq { display: none; align-items: flex-end; justify-content: center; gap: 2px; height: 12px; }
.track.is-current .eq { display: flex; }
.track.is-current .track-num { display: none; }
.eq i { display: block; width: 2px; height: 100%; border-radius: 1px; background: var(--gold); transform-origin: bottom; transform: scaleY(0.35); }
.is-playing .eq i { animation: eq 0.89s var(--ease-io) infinite alternate; }
.eq i:nth-child(2) { animation-delay: -0.34s !important; }
.eq i:nth-child(3) { animation-delay: -0.62s !important; }
@keyframes eq { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }

/* ── sections further down ──────────────────────────────── */
.markets, .elsewhere {
  position: relative;
  width: var(--col);
  margin: 0 auto;
  padding: var(--s8) 0 0;
}
.markets { padding-top: var(--s7); }
.h2 {
  font-size: clamp(89px, 10vw, 144px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: var(--s6);
}

/* ── markets ────────────────────────────────────────────── */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.mk-note { font-size: 13px; color: var(--fg-2); font-variant-numeric: tabular-nums; }

.coins { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s6); }
.coin-head { margin-top: var(--s3); display: flex; align-items: baseline; justify-content: space-between; }
.coin-name { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.coin-sym { font-size: 13px; font-weight: 500; color: var(--fg-2); }
.coin-price-wrap { margin-top: var(--s3); }
.coin-price {
  font-size: clamp(34px, 3.8vw, 55px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  min-height: 1.1em;
  white-space: nowrap;
}
.coin-change {
  margin-top: var(--s1);
  display: flex; align-items: baseline; gap: var(--s1);
  min-height: 1.55em;
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.coin-arrow { font-size: 10px; }
.coin-arrow[data-dir="up"] { color: var(--gold); }
.coin-arrow[data-dir="down"] { color: var(--rust); }
.coin-span { color: var(--fg-2); margin-left: 2px; }

.spark {
  position: relative;
  margin-top: var(--s4);
  height: var(--s7);
  touch-action: pan-y;
  cursor: crosshair;
}
/* the clip for the left-to-right reveal, with room around the line for its glow */
.spark-clip {
  position: absolute; inset: -13px -8px;
  overflow: clip;
  pointer-events: none;
}
.spark-clip-in { position: absolute; inset: 0; padding: 13px 8px; }
.spark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.spark path { fill: none; stroke: var(--tint); stroke-linecap: round; stroke-linejoin: round; }
.spark .line-core { stroke-width: 2px; }
/* a wide faint copy under the line instead of a blur filter: same glow, no repaint */
.spark .line-glow { stroke-width: 5px; opacity: 0.12; }
.spark-end, .spark-dot {
  position: absolute;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--tint);
  pointer-events: none;
}
.spark-end { left: 100%; }
.spark-hair {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 1px;
  background: rgba(237, 228, 202, 0.28);
  pointer-events: none;
}
.spark-dot { background: var(--fg); left: 0; top: 0; }
.spark-hair, .spark-dot { opacity: 0; transition: opacity 0.13s var(--ease); }
.spark.is-hover .spark-hair, .spark.is-hover .spark-dot { opacity: 1; }

.coin-range {
  margin-top: var(--s3);
  min-height: 1.55em;
  display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  font-variant-numeric: tabular-nums;
}

.tvl {
  margin-top: var(--s7);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s6);
  align-items: start;
}
.tvl-head { display: flex; flex-direction: column; }
.tvl-label { margin-top: var(--s3); font-size: 15px; font-weight: 500; color: var(--fg-2); letter-spacing: -0.01em; }
.tvl-head .mask { margin-top: var(--s2); }
.tvl-total {
  font-size: clamp(55px, 5.4vw, 89px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  min-height: 1.05em;
}
.tvl-list { grid-column: span 2; min-height: 210px; }
.chain { position: relative; }
.chain-row {
  display: grid;
  grid-template-columns: var(--s7) minmax(0, 1fr) var(--s6) var(--s5);
  align-items: center;
  gap: var(--s3);
  height: var(--s5);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.chain-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chain-bar { display: block; }
.chain-clip { display: block; width: var(--w); min-width: 6px; overflow: clip; }
.chain-clip i {
  display: block;
  height: 6px;
  border-radius: 0 3px 3px 0;
  background: var(--tint);
}
.chain-val { text-align: right; font-weight: 500; }
.chain-share { text-align: right; color: var(--fg-2); }

.mk-source { margin-top: var(--s5); font-size: 13px; color: var(--fg-2); }
.mk-source a { color: var(--fg); text-underline-offset: 2px; text-decoration: underline; text-decoration-color: var(--line); }

/* ── elsewhere ──────────────────────────────────────────── */
.row-wrap { position: relative; }
.row {
  width: 100%;
  display: grid;
  grid-template-columns: var(--s5) minmax(0, 1fr) auto var(--s5);
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) 0;
  text-align: left;
}
.row-icon, .row-icon-svg { display: block; width: clamp(21px, 2.6vw, 34px); height: clamp(21px, 2.6vw, 34px); }
.row-icon {
  background: var(--fg);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.row-icon-svg svg { display: block; width: 100%; height: 100%; }
.row-side { opacity: 0.62; transition: opacity 0.21s var(--ease), translate 0.55s var(--ease); }
.row-label-wrap { display: block; }
.row-label {
  display: block;
  font-size: clamp(34px, 5.4vw, 89px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-bottom: 0.06em;
}
.row-label-in { display: block; transition: translate 0.55s var(--ease); }
.row-handle { font-size: 15px; font-weight: 500; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.row-go { display: block; width: clamp(21px, 2.6vw, 34px); height: clamp(21px, 2.6vw, 34px); justify-self: end; transition: opacity 0.21s var(--ease), translate 0.34s var(--ease); opacity: 0.5; }
.row-go svg { display: block; width: 100%; height: 100%; }
a.row .row-go svg { translate: 25% 0; }
@media (hover: hover) {
  .row:hover .row-label-in { translate: var(--s3) 0; }
  .row:hover .row-side { opacity: 1; }
  .row:hover .row-go { opacity: 1; translate: 2px -2px; }
}
.rows-end { margin-top: 0; }

/* ── mini player ────────────────────────────────────────── */
/* no pill: it fades up out of the page itself */
.mini {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: center;
  padding: var(--s6) var(--gutter) max(var(--s3), env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(9, 6, 3, 0.97) 30%, rgba(9, 6, 3, 0));
  pointer-events: none;
  will-change: transform, opacity;
  transition: opacity 0.55s var(--ease), translate 0.55s var(--ease), visibility 0.55s;
}
/* slides all the way off the bottom edge and back, rather than fading in place */
.mini.is-away { translate: 0 100%; visibility: hidden; }
.mini-in {
  width: var(--col);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.5fr) auto;
  align-items: center;
  gap: var(--s4);
  pointer-events: auto;
}
.is-in .mini-in { animation: mini-in 1.1s var(--ease) 1.56s both; }
@keyframes mini-in { from { translate: 0 calc(100% + var(--s6)); } }
.mini-info { min-width: 0; display: flex; align-items: center; gap: var(--s3); }
.mini-info img { flex: none; display: block; width: var(--s5); height: var(--s5); border-radius: var(--s1); object-fit: cover; }
.mini-ctrls { display: flex; align-items: center; gap: var(--s1); }
.mini-play svg { width: 22px; height: 22px; opacity: 1; }
.mini-progress {
  min-width: 0;
  display: grid;
  grid-template-columns: var(--s5) minmax(0, 1fr) var(--s5);
  align-items: center;
  gap: var(--s2);
}
.mini-time { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--fg-2); }
.mini-time:first-child { text-align: left; }
.mini-time:last-child { text-align: right; }
.mini-bar {
  position: relative;
  height: var(--s4);
  display: flex; align-items: center;
  cursor: pointer;
  touch-action: pan-y;
}
.mini-track {
  position: relative;
  width: 100%; height: 3px;
  border-radius: 2px;
  background: rgba(237, 228, 202, 0.16);
  overflow: hidden;
}
.mini-rail { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.mini-knob {
  position: absolute; top: 50%; left: 0;
  width: 11px; height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--fg);
  transition: scale 0.21s var(--ease);
}
.mini-bar.is-drag .mini-knob { scale: 1.25; }
@media (hover: hover) {
  .mini-bar:hover .mini-knob { scale: 1.25; }
}
.mini-text { min-width: 0; display: flex; flex-direction: column; }
.mini-title, .mini-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.mini-title { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.mini-artist { font-size: 13px; color: var(--fg-2); }
.mini-fill {
  position: absolute; inset: 0;
  display: block;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* ── footer ─────────────────────────────────────────────── */
.foot {
  width: var(--col);
  margin: 0 auto;
  padding: var(--s7) 0 var(--s8);
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--fg-2);
}
.foot span { display: inline-block; }

/* the youtube player that streams audio — out of sight */
.yt-host {
  position: fixed; left: 0; bottom: 0; z-index: -10;
  width: 200px; height: 200px;
  opacity: 0;
  pointer-events: none;
}
.yt-host iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; } /* both players stacked */

/* ── narrower screens ───────────────────────────────────── */
@media (max-width: 900px) {
  .coins { grid-auto-flow: row; grid-auto-columns: auto; gap: var(--s6); }
  .tvl { grid-template-columns: 1fr; gap: var(--s5); margin-top: var(--s6); }
  .tvl-list { grid-column: auto; }
  .player { gap: var(--s5); }
}
@media (min-width: 641px) and (orientation: portrait) { .scene { height: 134svh; } .anchor-music { top: 34svh; } }
@media (min-width: 641px) and (max-width: 900px) and (orientation: portrait) { :root { --name: min(56vw, 36svh); } }
@media (min-width: 641px) and (orientation: landscape) and (max-aspect-ratio: 3/2) { .scene { height: 144svh; } .anchor-music { top: 44svh; } }

/* ── phones get their own layout ────────────────────────── */
@media (max-width: 640px) {
  /* the name is the phone's whole first screen; the cover spans the column */
  :root {
    --name: min(70vw, 36svh);
    --art: min(100vw - 2 * var(--gutter), 100svh - 355px);
  }
  .hero { padding: var(--s7) var(--gutter) clamp(var(--s6), 16svh, var(--s8)); }
  .hero-sub { margin-top: calc(var(--s4) - var(--name) * 0.1); }
  .cue { display: none; }
  .top-links { gap: var(--s3); }

  .player {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s3);
  }
  .pl-art { margin: 0 auto; }
  .pl-title { font-size: min(34px, 9vw); }
  .pl-progress { margin-top: var(--s1); padding-top: 0; }
  .pl-ctrls { margin-top: 0; gap: var(--s3); }
  .tracks { margin-top: var(--s1); }

  .markets, .elsewhere { padding-top: var(--s7); }
  .h2 { margin-bottom: var(--s4); font-size: min(20.8vw, 89px); }
  .sec-head { flex-direction: column; gap: 0; align-items: flex-start; }
  .mk-note { margin: calc(var(--s3) * -1) 0 var(--s4); }
  .chain-row { grid-template-columns: var(--s7) minmax(0, 1fr) var(--s6) var(--s5); gap: var(--s2); font-size: 13px; }
  /* each coin is a compact row: price on the left, its line on the right */
  .coins { gap: var(--s5); }
  .coin { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 34fr); column-gap: var(--s3); }
  .coin > .hair, .coin-head { grid-column: 1 / -1; }
  .coin-price-wrap { grid-column: 1; grid-row: 3; }
  .coin-change { grid-column: 1; grid-row: 4; }
  .spark { grid-column: 2; grid-row: 3 / span 2; margin-top: var(--s3); height: var(--s6); }
  .coin-range { grid-column: 1 / -1; grid-row: 5; flex-wrap: nowrap; }
  .row { grid-template-columns: var(--s4) minmax(0, 1fr) var(--s4); }
  .row-handle { display: none; }
  .row-label { font-size: 34px; }

  /* mini player: song + controls on top, the full-width seek bar under them */
  .mini-in {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0;
  }
  .mini-info { gap: var(--s2); }
  .mini-ctrls { gap: 0; }
  .mini-progress { grid-column: 1 / -1; }
  .mini-vol { display: none; }
}

/* ── touch screens: finger-sized targets (44px, apple's minimum) ─ */
@media (pointer: coarse) {
  .top-links a, .top-mark { height: 44px; }
  .links { gap: var(--s1); }
  .link { width: 44px; height: 44px; }
  .link i { width: 18px; height: 18px; }
  .ic { width: 44px; height: 44px; }
  .ic svg { width: 18px; height: 18px; }
  .pl-ctrls { gap: 0; justify-content: space-between; margin-inline: -13px; }
  #pl-vol { margin-right: -13px; }
  .pl-bar, .mini-bar { height: 44px; margin-block: -5px; } /* tall invisible grab area, same thin track */
  .pl-bar.is-drag .pl-knob, .mini-bar.is-drag .mini-knob { scale: 1.3; }
  .mini-info { min-height: 44px; }
  .mk-source a { padding-block: 14px; }
  .track-btn { min-height: 44px; }
  .row { min-height: 66px; }
}

@media (pointer: coarse) and (max-width: 640px) { .mini-ctrls { margin-right: -13px; } }

/* ── laid out in full ───────────────────────────────────── */
/* motion turned off, or a screen too short to hold the player: no pinning,
   nothing to build, every piece simply sits in place */
.flat .scene { height: auto; }
.flat .stage { position: static; height: auto; overflow: visible; }
.flat .top { position: absolute; }
.flat .hero { position: relative; inset: auto; min-height: 100svh; overflow: clip; }
.flat .player-layer { position: relative; inset: auto; padding-top: var(--s7); will-change: auto; }
.flat .slot-avatar { display: block; }
.flat .m-avatar { display: none; }
.flat .m-iris { border-radius: 0; }
.flat .cue { display: none; }
.flat .morph-in { animation: none; }
.flat .anchor-music { top: 100svh; }
.flat.no-music .scene { height: auto; }
.flat.no-music .player-layer { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .eq i { transform: scaleY(0.6); }
}
