/* HypeWatch — mint on deep green. */

:root {
  color-scheme: dark;

  /* Surfaces: deep sea green, so mint only appears where something is moving. */
  --page: #04120f;
  --card: #081b18;
  --card-top: #0b231f;
  --card-2: #0c2420; /* tiles, inset panels */
  --card-3: #143430; /* raised: tags, icons */
  --card-border: rgba(151, 252, 228, 0.09);
  --card-edge: rgba(151, 252, 228, 0.06);
  --hairline: rgba(151, 252, 228, 0.1);
  --grid: rgba(151, 252, 228, 0.07);
  --axis: rgba(151, 252, 228, 0.22);
  --hover: rgba(151, 252, 228, 0.06);
  --selected: rgba(151, 252, 228, 0.11);

  /* Two text colours only. --ink-2 is kept as an alias of --muted for older rules. */
  --ink: #eefcf8;
  --muted: #9cb5af;
  --ink-2: var(--muted);

  /* Mint: the glow ramp, bar ramp and tip, plus one accent for links and focus. */
  --accent: #97fce4;
  --glow: 80, 210, 193;
  --g1: #f2fffc;
  --g2: #c8fff2;
  --g3: #97fce4;
  --g4: #3fbfae;
  --b1: #0e3a33;
  --b2: #2a9d8f;
  --b3: #97fce4;
  --tip: #c8fff2;
  --bar: #50d2c1;
  --flame: #97fce4;
  --flame-2: #c8fff2;
  --mint: var(--accent);
  --mint-2: var(--accent);
  --on-accent: #04211c; /* text on a mint fill */

  --up: #6fe3a5;
  --down: #f0788e;

  /* Categorical chart slots, fixed order, checked against the card surface (all above 4:1). */
  --s1: #50d2c1;
  --s2: #6f8cff;
  --s3: #e6c36a;
  --s4: #d784c7;
  --s5: #6c8781; /* "other": neutral, never a fifth hue */
  --rest: #1d3a35;
  /* HYPE that isn't circulating, in two close dark tones so the circulating slices read first. */
  --held: #1f423c; /* Assistance Fund */
  --locked: #163430; /* Hyper Labs, future emissions */

  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --display-weight: 400;
  --serif: var(--display); /* legacy name */

  /* Motion: three speeds (enter / exit), transform and opacity only. */
  --fast: 80ms;
  --fast-out: 60ms;
  --moderate: 160ms;
  --moderate-out: 120ms;
  --slow: 240ms;
  --slow-out: 160ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 8px;
  z-index: 100;
  background: var(--card);
  padding: 8px 12px;
  border-radius: 8px;
}

.shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  /* Sides only: main and the footer set their own top and bottom space. */
  padding-inline: 16px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ------------------------------------------------------------------ Top bar */

/* Solid, with no backdrop blur: blurring what scrolls underneath (the wave canvas, the rolling
   digit counters, each its own masked layer) made the bar flicker and glitch while scrolling. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--page);
  border-bottom: 1px solid var(--hairline);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}
/* The wordmark: the display face, so it matches the page titles and numbers. */
.brand-name {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.01em;
}
.brand:hover {
  text-decoration: none;
}
.brand-name b {
  color: var(--accent);
  font-weight: 700;
}
.brand-mascot svg {
  display: block;
  width: 34px;
  height: 34px;
}

.tabs {
  position: relative;
  isolation: isolate;
  display: flex;
  gap: 2px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tabs a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 13px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform var(--fast) var(--ease);
}
/* The hover background is glide.js's single highlight, not each tab's own. */
.tabs a:hover {
  color: var(--ink);
  text-decoration: none;
}
.tabs a.active {
  color: var(--ink);
  background: var(--selected);
  font-weight: 600;
}
.tabs.is-gliding a.active {
  background: transparent;
}

.price-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  flex-shrink: 0;
}
.price-chip:hover {
  text-decoration: none;
  background: var(--card-top);
}
.price-chip-sym {
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
}
.price-chip .delta {
  font-size: 14px;
}

/* LitWatch, the sister site for Lighter, in the header's top-right corner. It wears LitWatch's
   own colours (near-black, orange, its mascot and wordmark) so it reads as a door to another
   site, not as part of HypeWatch: just the mascot and the name. */
.litchip {
  --lw-page: #0c0c0e;
  --lw-ink: #f3f2f0;
  --lw-muted: #a6a5ad;
  --lw-accent: #ff9a52;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  height: 36px;
  padding: 0 13px 0 10px;
  border-radius: 999px;
  background: var(--lw-page);
  border: 1px solid rgba(255, 154, 82, 0.42);
  box-shadow: 0 0 16px -6px rgba(255, 98, 30, 0.55);
  color: var(--lw-muted);
  font-size: 13px;
  white-space: nowrap;
  transition: border-color var(--moderate) var(--ease), background-color var(--moderate) var(--ease);
}
.litchip:hover {
  text-decoration: none;
  background-color: #151518;
  border-color: rgba(255, 154, 82, 0.8);
}
.litchip:focus-visible {
  outline-color: var(--lw-accent);
  border-radius: 999px;
}
.litchip-mark {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  transition: transform var(--moderate) var(--ease);
}
.litchip:hover .litchip-mark {
  transform: rotate(-8deg);
}
.litchip-name {
  font-family: 'Sofia Sans Extra Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--lw-ink);
}
.litchip-name b {
  color: var(--lw-accent);
  font-weight: 700;
}
.litchip-go {
  color: var(--lw-accent);
  font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
  .litchip-mark {
    transition: none;
  }
}

/* Ten tabs and the search box don't fit on one row beside the brand, so the tabs always take a
   row of their own, and the search box the middle of the first. */
.topbar-inner {
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 10px;
}
.tabs {
  order: 3;
  margin: 0 -16px;
  padding: 0 16px 8px;
  width: calc(100% + 32px);
}
/* Centred while they fit. Where they don't (phones), the auto margins come to nothing, so the
   row starts at the left edge and scrolls instead of being cut off on both sides. */
.tabs a:first-of-type {
  margin-left: auto;
}
.tabs a:last-of-type {
  margin-right: auto;
}

/* Account search */
.search {
  position: relative;
  flex: 1 1 260px;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px 0 40px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-border);
  transition: border-color var(--moderate) var(--ease), box-shadow var(--moderate) var(--ease);
}
.search:focus-within {
  border-color: rgba(var(--glow), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--glow), 0.14);
}
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 500 15px/1 var(--font);
}
.search input::placeholder {
  color: var(--muted);
}
.search input::-webkit-search-cancel-button {
  display: none;
}
.search-ico {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.search kbd {
  font: 600 12px/1 var(--font);
  color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 4px 7px;
}
.search-open {
  display: none;
}
@media (max-width: 680px) {
  .search {
    display: none;
  }
  .search-open {
    position: relative;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-left: auto;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--card-border);
    color: var(--ink);
    cursor: pointer;
  }
  .search-open .search-ico {
    position: static;
  }
  .topbar.searching .search {
    display: flex;
    order: 2;
    flex-basis: 100%;
    max-width: none;
    margin: 2px 0 4px;
  }
  .search kbd {
    display: none;
  }
}
/* Phones: keep the price chip on the brand's row (the chip keeps its "HYPE price" label for screen readers). */
@media (max-width: 420px) {
  .topbar-inner {
    column-gap: 10px;
  }
  .brand-name {
    font-size: 24px;
  }
  .price-chip {
    padding: 0 12px;
    gap: 6px;
  }
  .price-chip-sym {
    display: none;
  }
}
/* Keep the LitWatch chip in the top-right corner at every width. Tablets: the search box gives
   up width so both chips fit beside it. Phones: the price chip moves to the next row instead. */
@media (min-width: 681px) and (max-width: 860px) {
  .search {
    flex-basis: 120px;
    min-width: 0;
  }
  .search kbd {
    display: none;
  }
}
@media (max-width: 590px) {
  .price-chip {
    order: 1;
  }
}
@media (max-width: 360px) {
  .litchip-name {
    display: none;
  }
}

/* ------------------------------------------------------------------ Ticker */

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.015);
  font-size: 14px;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track {
  display: inline-flex;
  padding: 9px 0;
  animation: ticker 60s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-item {
  display: inline-flex;
  gap: 6px;
  padding: 0 14px;
  color: var(--muted);
}
.ticker-item b {
  color: var(--ink);
  font-weight: 600;
}
.ticker-sep {
  color: var(--axis);
}
/* Drawn by CSS: a decorative divider, not text to read (or to hold to a contrast ratio). */
.ticker-sep::before {
  content: '/';
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
  .ticker {
    overflow-x: auto;
  }
}

/* ------------------------------------------------------------------ Page */

main {
  padding-top: 28px;
  padding-bottom: 48px;
  outline: none;
}
@media (max-width: 520px) {
  main {
    padding-top: 20px;
  }
}

/* Page titles: the quieter heat glow, with a hairline that fades at both ends. */
.page-head {
  position: relative;
  isolation: isolate;
  text-align: center;
  margin: 10px auto 30px;
  max-width: 720px;
  padding-bottom: 22px;
}
.page-head::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(760px, 100vw);
  height: 240px;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--glow), 0.12), rgba(var(--glow), 0));
}
.page-head::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--glow), 0), rgba(var(--glow), 0.45) 30%, rgba(var(--glow), 0.45) 70%, rgba(var(--glow), 0));
}
.page-head h1 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(48px, 7vw, 68px);
  line-height: 1;
  margin: 0 0 12px;
}
.page-head h1 em {
  font-style: normal;
  color: var(--accent);
}
.page-head p {
  color: var(--muted);
  margin: 0;
}

/* ------------------------------------------------------------------ Dashboard hero: the full glow */

.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 4px 0 18px;
}
.hero-fx {
  position: absolute;
  top: -28px;
  bottom: -40px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-fx::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(1040px, 140vw);
  height: 480px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(var(--glow), 0.3), rgba(var(--glow), 0.08) 55%, rgba(var(--glow), 0));
}
/* A fill swells the glow for a moment, under the waves (an opacity change, so it stays under
   reduced motion). */
.hero-fx::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(1040px, 140vw);
  height: 480px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(var(--glow), 0.34), rgba(var(--glow), 0.1) 50%, rgba(var(--glow), 0));
  opacity: 0;
}
.hero.is-flaring .hero-fx::after {
  animation: swell 1400ms both;
}
@keyframes swell {
  0% {
    opacity: 0;
    animation-timing-function: var(--ease);
  }
  14% {
    opacity: 1;
    animation-timing-function: ease-in-out;
  }
  100% {
    opacity: 0;
  }
}
.hero-fx canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 78%, transparent 100%);
}
.hero-mascot svg {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto 6px;
}
.hero-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-burn {
  margin: 4px 0 0;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: min(204px, 20vw);
  line-height: 0.95;
  padding-bottom: 0.04em;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--g1) 0%, var(--g2) 42%, var(--g3) 78%, var(--g4) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(var(--glow), 0.4));
}
.hero-burn .skeleton {
  display: inline-block;
  min-width: 4.2em;
  line-height: 0.9;
}
.hero-sub {
  margin: 8px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
}
/* One sentence per line, each balanced if a phone has to wrap it. */
.hero-sub .hero-line {
  display: block;
  text-wrap: balance;
}
.tagline {
  color: var(--muted);
  max-width: 620px;
  margin: 10px auto 0;
  font-size: 16px;
  text-wrap: balance;
}
/* The dot sea passes behind these lines: a soft halo in the page color keeps the letters whole. */
.hero-sub,
.tagline {
  text-shadow: 0 0 6px var(--page), 0 0 14px var(--page), 0 0 2px var(--page);
}
@media (max-width: 520px) {
  .hero-mascot svg {
    width: 52px;
    height: 52px;
  }
  .hero-sub {
    font-size: 16px;
  }
}

/* Supply breakdown under the hero */
.supply {
  margin-top: 30px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.donut-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 1;
}
.donut-wrap .chart-host {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
}
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}
.donut-center small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
/* Only the circulating supply sits in the ring, sized to leave air inside the band. */
.donut-center strong {
  font-family: var(--display);
  font-size: clamp(28px, 4.2vw, 34px);
  font-weight: var(--display-weight);
  line-height: 1.05;
  margin: 4px 0 2px;
  white-space: nowrap;
}
.donut-center > span {
  color: var(--muted);
  font-size: 13px;
}
/* Decimals of the supply figures: smaller and muted, so the whole number reads first. */
.donut-center .dec,
.max-line .dec {
  color: var(--muted);
  font-size: 0.55em;
  font-weight: 600;
  margin-left: 1px;
}
/* Max supply: one line under the ring. */
.max-line {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  text-wrap: balance;
}
.max-line strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: var(--display-weight);
  margin: 0 4px;
  white-space: nowrap;
}
.max-line .dec {
  font-size: 0.7em; /* 14px: the smaller size would drop under 13px here */
}
/* The supply figures roll like an odometer (components.js rollTo): one clipped column per changed
   digit, its strip of digits sliding by whole steps. Every character is a box of the same height,
   so nothing moves when the plain number comes back. */
.roll {
  display: inline-block;
  white-space: nowrap;
}
.roll .rd,
.roll .rc {
  display: inline-block;
  height: 1.05em;
  line-height: 1.05em;
  vertical-align: top;
}
.roll .rc {
  overflow: hidden;
  /* Digits fade at the column's edges as they pass, rather than being cut off sharp. */
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}
.roll .rs {
  display: block;
  will-change: transform;
}
.roll .rs > span {
  display: block;
  height: 1.05em;
}

.legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 2px;
}
.legend-list li {
  display: grid;
  grid-template-columns: 12px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 15px;
}
.legend-list li:hover {
  background: var(--hover);
}
.legend-list .key {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
/* The darkest swatch would vanish on the page, so it gets a faint edge. */
.legend-list .key.outlined {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.legend-list .v {
  font-weight: 600;
}
.legend-list .p {
  color: var(--muted);
  min-width: 56px;
  text-align: right;
}
.legend-list a {
  color: inherit;
}
.legend-list li.note {
  display: block;
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.legend-list li.note:hover {
  background: none;
}

.live-strip {
  margin: 26px auto 0;
  max-width: 980px;
  background: linear-gradient(180deg, var(--card-top), var(--card));
  border: 1px solid var(--card-border);
  box-shadow: inset 0 1px 0 var(--card-edge);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}
.live-strip b {
  color: var(--ink);
}
/* The live dot is a glowing tip: a hot core with a ring that breathes out. */
.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--g3);
  box-shadow: 0 0 8px rgba(var(--glow), 0.9);
  flex-shrink: 0;
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(var(--glow), 0.55);
  opacity: 0;
  animation: breathe 1.8s var(--ease) infinite;
}
@keyframes breathe {
  0% {
    transform: scale(0.4);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* Today, live: USDC spent on buybacks since 00:00 UTC beside the HYPE bought back, with this visit underneath.
   Both big figures roll their digits (components.js rollTo). Stacks on phones. */
.live-strip.today {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  gap: 14px;
  text-align: center;
  padding: 18px 18px 14px;
}
.today-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.today-pair > div {
  padding: 2px 20px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.today-pair > div + div {
  border-left: 1px solid var(--hairline);
}
.today-cap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.today-big {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(30px, 4.4vw, 40px);
  line-height: 1.05;
  color: var(--ink);
  margin: 4px 0 2px;
  white-space: nowrap;
}
.today-big small {
  font-size: 0.55em;
  color: var(--muted);
  margin-left: 6px;
}
.today-sub {
  font-size: 14px;
  color: var(--muted);
}
.today-visit {
  border-top: 1px solid var(--hairline);
  padding-top: 10px;
  font-size: 14px;
  text-align: center;
}
/* Even-width digits, so the line doesn't shuffle as the clock ticks. */
.visit-clock {
  font-variant-numeric: tabular-nums;
}
.card-visit {
  border-top: 1px solid var(--hairline);
  margin: 12px 0 0;
  padding-top: 10px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.card-visit b {
  color: var(--ink);
}
@media (max-width: 560px) {
  .today-pair {
    grid-template-columns: 1fr;
  }
  .today-pair > div {
    padding: 2px;
  }
  .today-pair > div + div {
    border-left: 0;
    border-top: 1px solid var(--hairline);
    margin-top: 10px;
    padding-top: 12px;
  }
}

/* ------------------------------------------------------------------ Cards: soot surfaces */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.span-2 {
  grid-column: span 2;
}
.span-3 {
  grid-column: 1 / -1;
}
@media (max-width: 900px) {
  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .grid,
  .grid.three {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .span-2 {
    grid-column: auto;
  }
}

.card {
  background: linear-gradient(180deg, var(--card-top), var(--card) 160px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px 24px 20px;
  position: relative;
  min-width: 0;
  box-shadow: inset 0 1px 0 var(--card-edge), 0 20px 40px -26px rgba(0, 0, 0, 0.7);
}
@media (max-width: 520px) {
  .card {
    padding: 18px 16px 16px;
    border-radius: 16px;
  }
}

.card-head {
  text-align: center;
  position: relative;
  padding: 0 64px;
  min-height: 64px;
}
.card-head.left {
  text-align: left;
  padding: 0;
  min-height: 0;
}
.card-title {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}
.card-title a {
  color: inherit;
}
.card-title a:hover {
  color: var(--ink);
}
/* Headline values: the display face with a soft glowing tip. */
.card-value {
  font-family: var(--display);
  font-size: clamp(38px, 4.4vw, 46px);
  font-weight: var(--display-weight);
  line-height: 1.05;
  margin-top: 4px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 4px 10px;
  flex-wrap: wrap;
}
.card-value .v {
  position: relative;
  filter: drop-shadow(0 0 14px rgba(var(--glow), 0.2));
}
/* A value that just changed on a live update glows warm for a moment (glowChanged() in
   components.js lays this copy over it). Opacity only. */
.v-hot {
  position: absolute;
  inset: 0;
  color: var(--g2);
  white-space: nowrap;
  pointer-events: none;
  filter: drop-shadow(0 0 16px rgba(var(--glow), 0.75));
  animation: tick 900ms both;
}
@keyframes tick {
  0% {
    opacity: 0;
    animation-timing-function: var(--ease);
  }
  27% {
    opacity: 1;
    animation-timing-function: ease-in-out;
  }
  100% {
    opacity: 0;
  }
}
.card-head.left .card-value {
  justify-content: flex-start;
}
.card-sub {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}
.seg {
  white-space: nowrap;
}
.card-corner {
  position: absolute;
  top: -4px;
  width: 50px;
  height: 50px;
}
.card-corner.l {
  left: 0;
}
.card-corner.r {
  right: 0;
  transform: scaleX(-1);
}
.card-corner svg {
  width: 100%;
  height: 100%;
}
@media (max-width: 520px) {
  .card-head {
    padding: 0 44px;
  }
  .card-corner {
    width: 38px;
    height: 38px;
  }
}

.delta {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
}
.delta.up {
  color: var(--up);
}
.delta.down {
  color: var(--down);
}
.delta.flat {
  color: var(--muted);
}

.card-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 16px 0 8px;
  flex-wrap: wrap;
}
.card-tools .hint {
  color: var(--muted);
  font-size: 13px;
}

/* Segmented control: 28px compact buttons, selected = +10% white. */
.pills {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.pills button {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  height: 28px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  cursor: pointer;
  transition: transform var(--fast) var(--ease);
}
.pills button:hover {
  color: var(--ink);
}
.pills button[aria-pressed='true'] {
  background: var(--selected);
  color: var(--ink);
}
.pills.is-gliding button[aria-pressed='true'] {
  background: transparent;
}

/* glide.js: one highlight per list, shaped by clip-path so it glides and resizes without layout.
   Hover moves at the fast speed; the selection slides at the moderate one. */
.glide {
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
}
.glide-hover {
  background: var(--hover);
  transition: clip-path var(--fast) var(--ease), opacity var(--fast-out) linear;
}
.glide-hover.on {
  opacity: 1;
  transition: clip-path var(--fast) var(--ease), opacity var(--fast) linear;
}
.glide-select {
  background: var(--selected);
  transition: clip-path var(--moderate) var(--ease);
}
.glide-select.on {
  opacity: 1;
}
.glide.glide-now {
  transition: none;
}
/* Table rows: the highlight sits on top of the row, so the pinned name column (which is opaque)
   lights up with the rest of the row. It never takes clicks. */
.table-wrap > .glide-hover {
  z-index: 2;
  background: rgba(255, 255, 255, 0.03);
}
/* Press: tabs and pills give a little. */
.tabs a:active,
.pills button:active {
  transform: scale(0.97);
}
@media (prefers-reduced-motion: reduce) {
  .tabs a:active,
  .pills button:active {
    transform: none;
  }
}

.chart-host {
  width: 100%;
  min-height: 40px;
  position: relative;
}
.chart {
  display: block;
  overflow: visible;
  touch-action: pan-y;
}
.chart .grid {
  stroke: var(--grid);
  stroke-width: 1;
}
.chart .baseline {
  stroke: var(--axis);
  stroke-width: 1;
}
.chart .axis-label {
  fill: var(--muted);
  font-size: 13px;
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
}
.chart .axis-label.is-day {
  fill: var(--ink);
}
.chart .crosshair {
  stroke: var(--axis);
  stroke-width: 1;
}
.chart .bar > * {
  transition: opacity var(--fast-out) linear;
}
.chart .bar.is-partial > * {
  opacity: 0.5;
}
.chart.has-active .bar > * {
  opacity: 0.4;
  transition-duration: var(--fast);
}
.chart.has-active .bar.is-active > * {
  opacity: 1;
}
.chart.donut .seg {
  transition: opacity var(--fast-out) linear;
}
.chart.donut.has-active .seg {
  opacity: 0.45;
}
.chart.donut.has-active .seg.is-active {
  opacity: 1;
}
.chart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  border: 1px dashed var(--hairline);
  border-radius: 12px;
  text-align: center;
  padding: 0 16px;
}

.chart-tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  pointer-events: none;
  background: rgba(8, 27, 24, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 14px;
  color: var(--muted);
  min-width: 150px;
  max-width: 300px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity var(--fast-out) linear;
}
.chart-tip.show {
  opacity: 1;
  transition-duration: var(--fast);
}
.tip-title {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}
.tip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.6;
}
.tip-row b {
  margin-left: auto;
  color: var(--ink);
  font-weight: 600;
}
.key {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend {
  display: flex;
  gap: 6px 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
/* Keys shaped like their marks: a line, a dashed line, a dot, a marker. */
.key.k-line {
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
}
.key.k-dash {
  width: 18px;
  height: 0;
  border-radius: 0;
  background: none;
  border-top: 2px dashed var(--accent);
}
.key.k-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--g2);
}
.key.k-flag {
  position: relative;
  width: 7px;
  height: 14px;
  border-radius: 0;
  background: none;
}
.key.k-flag::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 5px;
  bottom: 0;
  border-left: 1.5px dashed var(--muted);
}
.key.k-flag::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}
.card-title .live-dot {
  display: inline-block;
  margin-right: 9px;
  vertical-align: 1px;
}
.tip-note {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 2px;
}

/* Last hour of buybacks: the HYPE price with the Assistance Fund's orders on it. */
.chart.orders .orders-band {
  fill: var(--accent);
  opacity: 0.08;
}
.chart.orders .orders-next {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 6 4;
}
.chart.orders .orders-price {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart.orders .orders-end {
  fill: var(--ink);
  stroke: var(--card);
  stroke-width: 2;
}
.chart.orders .orders-fill {
  fill: var(--g2);
  stroke: var(--card);
  stroke-width: 2;
}
.chart.orders .orders-set {
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
}
.chart.orders .orders-set-dot {
  fill: var(--muted);
}
.chart.orders .orders-usdc {
  fill: none;
  stroke: var(--bar);
  stroke-width: 2;
  stroke-linejoin: round;
}
.chart.orders .orders-usdc-area {
  fill: var(--bar);
  opacity: 0.14;
}
/* Names on the chart: muted words, values in ink. */
.chart.orders .orders-label {
  fill: var(--muted);
  font-size: 13px;
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
}
.chart.orders .orders-label tspan {
  fill: var(--ink);
  font-weight: 600;
}
.chart.orders .halo {
  paint-order: stroke;
  stroke: var(--card);
  stroke-width: 5px;
  stroke-linejoin: round;
}

/* Rows like "USDC 2,563,476,734$ (-1.41%)" */
.rows {
  margin-top: 10px;
}
.rows .row-total {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--hairline);
  font-size: 16px;
}
.rows .row-total b {
  font-size: 18px;
}
.row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  font-size: 16px;
}
.row .ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--card-3);
  color: var(--ink);
}
/* Chain logo over the letter badge; the letter shows through only if the logo fails to load. */
.row .chain-ico {
  position: relative;
  overflow: hidden;
}
.row .chain-ico img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.row .name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row .name small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Phones: let two-column rows' detail lines wrap (between their " · " parts) instead of cutting off. */
@media (max-width: 520px) {
  .row.plain .name small {
    white-space: normal;
  }
}
.row .v,
.rows .row-total .v {
  font-weight: 700;
  text-align: right;
}
.row .d,
.rows .row-total .d {
  min-width: 84px;
  text-align: right;
}
/* Phones: the change sits under the value so the chain name keeps its room. */
@media (max-width: 520px) {
  .row:not(.plain):not(.three) {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    row-gap: 0;
  }
  .row:not(.plain):not(.three) .ico,
  .row:not(.plain):not(.three) .name {
    grid-row: span 2;
  }
  .row:not(.plain):not(.three) .v,
  .row:not(.plain):not(.three) .d {
    grid-column: 3;
    min-width: 0;
  }
  .row:not(.plain):not(.three) .d {
    font-size: 14px;
  }
}

/* Stat tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.tile {
  background: var(--card-2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-width: 0;
}
.tile .label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.tile .value {
  position: relative;
  font-family: var(--display);
  font-size: 26px;
  font-weight: var(--display-weight);
  line-height: 1.15;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile .sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 1px;
}
.tiles.big .value {
  font-size: 30px;
}
@media (max-width: 520px) {
  .tiles.big .value {
    font-size: 26px;
  }
}

/* Tables: plain, two text colours, no glow. */
.table-wrap {
  position: relative;
  overflow-x: auto;
  margin: 10px -4px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
  padding: 8px 8px;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}
td {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}
td.num,
th.num {
  text-align: right;
}
/* A heading over a group of rows; it stays in view while a wide table scrolls sideways. */
tr.group-row th {
  padding: 18px 8px 8px;
  white-space: normal;
}
tbody:first-of-type tr.group-row th {
  padding-top: 12px;
}
tr.group-row th span {
  position: sticky;
  left: 8px;
}
tr.group-row th b {
  color: var(--ink);
  font-weight: 600;
}
/* Sortable headings: the whole cell is the button; the arrow shows on the sorted column (and on hover). */
th.sortable {
  padding: 0;
}
.th-sort {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: 100%;
  padding: 8px;
  font: inherit;
  color: inherit;
  text-align: inherit;
  white-space: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
th.num .th-sort {
  justify-content: flex-end;
}
.th-sort:hover,
.th-sort.on {
  color: var(--ink);
}
.sort-arrow {
  flex: none;
  width: 10px;
  height: 10px;
  margin-bottom: 3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.th-sort:hover .sort-arrow {
  opacity: 0.5;
}
.th-sort.on .sort-arrow {
  opacity: 1;
}
.table-more {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.more-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  height: 32px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  cursor: pointer;
}
.more-btn:hover {
  background: var(--hover);
}
/* A table too wide for its card first tightens up (main.js adds .tight): smaller text, less
   padding, and column labels may wrap. Tables that fit keep their normal size. */
.table-wrap.tight table {
  font-size: 14px;
}
.table-wrap.tight th {
  padding: 8px 5px;
  white-space: normal;
  vertical-align: bottom;
}
.table-wrap.tight td {
  padding: 9px 5px;
}
.table-wrap.tight th.sortable {
  padding: 0;
}
.table-wrap.tight .th-sort {
  padding: 8px 5px;
}
.table-wrap.tight .pin .cell-wrap {
  white-space: normal;
}
.table-wrap.tight .pin .holder-label,
.table-wrap.tight .pin .cell-sub {
  display: block;
  white-space: normal;
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.3;
}
/* Tables still wider than their card scroll sideways. main.js marks them: the column that names
   each row stays pinned (.scrolls), gets a hairline once the rest slides under it (.scrolled), and
   the right edge fades until the reader reaches the end (.more). None of these change widths. */
.table-wrap.scrolls .pin {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--card);
}
.table-wrap.scrolls thead .pin {
  background: var(--pin-head, var(--card));
}
.table-wrap.scrolled .pin {
  box-shadow: inset -1px 0 0 var(--hairline);
}
.table-wrap.more {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
}
/* Keyboard focus: drop the fade, which would clip the ring (drawn just outside the box, where the
   pinned column can't cover it). */
.table-wrap:focus-visible {
  -webkit-mask-image: none;
  mask-image: none;
}
@media (max-width: 520px) {
  table {
    font-size: 14px;
  }
  /* Column labels may wrap, so a long label ("API rate limit") doesn't set the column's width. */
  th {
    padding: 8px 5px;
    white-space: normal;
    vertical-align: bottom;
  }
  td {
    padding: 9px 5px;
  }
  th.sortable {
    padding: 0;
  }
  .th-sort {
    padding: 8px 5px;
  }
  /* Secondary text in the pinned column drops to its own line, so the column stays narrow. */
  .pin .cell-wrap {
    white-space: normal;
  }
  .pin .holder-label,
  .pin .cell-sub {
    display: block;
    white-space: normal;
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.3;
  }
}
/* A cell's secondary line that always sits under the main text (keeps narrow tables narrow). */
.cell-sub.below {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.3;
}
td .muted,
.muted {
  color: var(--muted);
}
.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--card-3);
  color: var(--muted);
  vertical-align: 1px;
}
.tag.long,
.tag.up {
  background: color-mix(in srgb, var(--up) 14%, transparent);
  color: var(--up);
}
.tag.short,
.tag.down {
  background: color-mix(in srgb, var(--down) 14%, transparent);
  color: var(--down);
}
.tag.burn {
  background: rgba(var(--glow), 0.16);
  color: var(--g2);
}
.tag.protocol {
  background: var(--selected);
  color: var(--ink);
}
.share-bar {
  display: inline-block;
  height: 6px;
  border-radius: 3px;
  background: var(--bar);
  vertical-align: middle;
  margin-left: 8px;
  min-width: 2px;
}

.tool-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* P/E comparison: one bar per protocol. HYPE's bar wears the mint ramp with a glowing tip;
   the peers stay neutral and every row is named. */
.pe-bars {
  display: grid;
  gap: 12px;
  margin: 18px 0 8px;
}
.pe-bar {
  display: grid;
  grid-template-columns: minmax(92px, 150px) minmax(0, 1fr) 64px;
  align-items: center;
  gap: 14px;
}
.pe-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.pe-name b {
  font-weight: 600;
}
.pe-name small {
  color: var(--muted);
  font-size: 13px;
}
.pe-track {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}
.pe-fill {
  position: relative;
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--s5);
}
.pe-bar.own .pe-fill {
  background: linear-gradient(90deg, var(--b1), var(--b2) 55%, var(--b3));
}
.pe-bar.own .pe-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 10px;
  height: 100%;
  border-radius: 6px;
  background: var(--tip);
  filter: blur(3px);
  opacity: 0.85;
}
/* The × after a big P/E figure: lighter and smaller than the digits. */
.unit-x {
  font-family: var(--font);
  font-weight: 400;
  font-size: 0.55em;
  color: var(--muted);
  margin-left: 0.02em;
  /* Lifts it to the middle of the digits. */
  vertical-align: 0.16em;
}
.pe-v {
  font-family: var(--display);
  font-size: 24px;
  font-weight: var(--display-weight);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.pe-bar:not(.own) .pe-v {
  color: var(--muted);
}
/* A P/E far above the rest runs off the scale: its bar fades out at the right edge. */
.pe-fill.clipped {
  -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
  mask-image: linear-gradient(90deg, #000 80%, transparent);
}
@media (max-width: 520px) {
  .pe-bar {
    grid-template-columns: minmax(84px, 110px) minmax(0, 1fr) 56px;
    gap: 10px;
  }
  .pe-v {
    font-size: 22px;
  }
}

/* Projections: four assumption sliders, each with preset chips, over a table of scenarios. */
.proj-inputs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 6px;
}
.proj-input {
  background: var(--card-2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-width: 0;
}
.proj-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.proj-label label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.proj-label output {
  font-family: var(--display);
  font-size: 24px;
  font-weight: var(--display-weight);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.proj-input input[type='range'] {
  width: 100%;
  margin: 10px 0 8px;
  accent-color: var(--accent);
  cursor: pointer;
}
.proj-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  min-height: 28px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.chip:hover {
  color: var(--ink);
  background: var(--hover);
}
.proj-cell {
  font: inherit;
  width: 100%;
  min-width: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 6px 10px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.proj-cell b {
  font-size: 16px;
  font-weight: 600;
}
.proj-cell small {
  color: var(--muted);
  font-size: 13px;
}
.proj-cell:hover {
  background: var(--hover);
}
.proj-cell[aria-pressed='true'] {
  background: var(--selected);
  border-color: rgba(var(--glow), 0.5);
}
.proj-math-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin: 18px 0 6px;
}
.proj-math {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.proj-math b {
  color: var(--ink);
}
@media (max-width: 960px) {
  .proj-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .proj-inputs {
    grid-template-columns: minmax(0, 1fr);
  }
  .proj-cell {
    min-width: 84px;
    padding: 6px 8px;
  }
}

.segbar {
  display: flex;
  gap: 2px;
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 8px;
}
.segbar span {
  display: block;
  min-width: 2px;
}

/* Did you know? */
.facts {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  counter-reset: fact;
}
.fact {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  color: var(--muted);
  font-size: 16px;
}
.fact::before {
  counter-increment: fact;
  content: counter(fact, decimal-leading-zero);
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 17px;
  color: var(--muted);
}
.fact b {
  color: var(--ink);
}

.notice {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}
.notice b {
  color: var(--ink);
}
.errors {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* Page entrance (main.js enter()): each group fades in at the slow speed, 50ms after the one
   before, capped at the fourth. Opacity only, so reduced motion keeps it. */
.entering {
  animation: view-in var(--slow) var(--ease) var(--enter-delay, 0ms) both;
}
@keyframes view-in {
  from {
    opacity: 0;
  }
}

/* Skeletons wait 160ms, then fade in over 250ms; no shimmer. */
.skeleton {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: transparent !important;
  opacity: 0;
  animation: skeleton-in 250ms ease-out 160ms forwards;
}
@keyframes skeleton-in {
  to {
    opacity: 1;
  }
}

.view-error {
  text-align: center;
  color: var(--muted);
  padding: 60px 16px;
}

.link-out::after {
  content: ' ↗';
  font-size: 0.85em;
}

/* ------------------------------------------------------------------ Mascot */

/* The body wobbles gently from its base, the bubbles rise and fade, the eyes blink about their
   middle. Each Drop carries its own speeds and starting frames (--fo, --fi, --bl and their delays,
   set by mascot()), so no two move in step. Only the leading Drops (nav, hero) keep moving; the
   rest hold still on whatever frame they stopped and wake while the pointer is on their card. */
.mascot .body {
  transform-origin: 32px 61px;
  animation: wobble var(--fo, 3s) ease-in-out var(--fod, 0s) infinite;
}
.mascot .bubbles circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: rise var(--fi, 2.6s) ease-in-out var(--fid, 0s) infinite;
}
.mascot .bubbles circle:nth-child(2) {
  animation-delay: calc(var(--fid, 0s) - 0.9s);
}
.mascot .bubbles circle:nth-child(3) {
  animation-delay: calc(var(--fid, 0s) - 1.6s);
}
.mascot .eyes {
  transform-origin: 32px 43px;
  animation: blink var(--bl, 5s) var(--bld, 0s) infinite;
}
.mascot.rest .body,
.mascot.rest .bubbles circle {
  animation-play-state: paused;
}
@media (hover: hover) {
  .card:hover .mascot.rest .body,
  .card:hover .mascot.rest .bubbles circle {
    animation-play-state: running;
  }
}
/* A buyback fill: the hero Drop swells and settles (dashboard.js adds .is-flaring). */
.mascot .flare {
  transform-origin: 32px 61px;
}
.hero.is-flaring .hero-mascot .flare {
  animation: flare 1080ms both;
}
@keyframes flare {
  0% {
    transform: scale(1);
    animation-timing-function: var(--ease);
  }
  17% {
    transform: scale(1.22, 1.16);
    animation-timing-function: ease-in-out;
  }
  100% {
    transform: scale(1);
  }
}
@keyframes wobble {
  0%,
  100% {
    transform: scale(1, 1);
  }
  35% {
    transform: scale(1.035, 0.965);
  }
  70% {
    transform: scale(0.975, 1.03);
  }
}
@keyframes rise {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-3px);
    opacity: 0.55;
  }
}
/* About a 200–300ms blink whatever the cycle length (4–9s). */
@keyframes blink {
  0%,
  96.6%,
  100% {
    transform: scaleY(1);
  }
  98.3% {
    transform: scaleY(0.1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .mascot .body,
  .mascot .bubbles circle,
  .mascot .eyes,
  .hero.is-flaring .hero-mascot .flare,
  .live-dot::after,
  .skeleton {
    animation: none;
  }
  .skeleton {
    opacity: 1;
  }
}

/* ------------------------------------------------------------------ Footer */

.footer {
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 14px;
}
.footer-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.footer-row p {
  margin: 0;
}
.footer-row b {
  color: var(--ink);
}
.footer-mascot svg {
  width: 36px;
  height: 36px;
}
.footer-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Two-column rows (label + value) */
.row.plain {
  grid-template-columns: minmax(0, 1fr) auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.row.plain:last-child {
  border-bottom: 0;
}
.row.three {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.card-tools .pills + .pills {
  margin-right: auto;
}
.split {
  display: grid;
  grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
@media (max-width: 760px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Stacked: centre the fixed-size donut over its rows instead of hugging the left edge. */
  .split > .chart-host {
    display: flex;
    justify-content: center;
  }
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
  background: var(--muted);
}
.status-dot.live {
  background: var(--up);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 20%, transparent);
}

.section-title {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 40px;
  line-height: 1.05;
  margin: 52px 0 0;
  scroll-margin-top: 90px;
}
.pos {
  color: var(--up);
}
.neg {
  color: var(--down);
}
.mini-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin: 18px 0 0;
}
.filter-input {
  font: inherit;
  font-size: 16px;
  height: 36px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0 14px;
  min-width: 0;
  width: min(260px, 100%);
}
.filter-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.holder-label {
  color: var(--muted);
  margin-left: 6px;
}
td code {
  font-size: 14px;
}
.split .row .name {
  white-space: normal;
  line-height: 1.3;
}
.split .row .v {
  font-size: 16px;
}

/* ------------------------------------------------------------------ Privacy and terms */

.prose {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.prose h2 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: var(--display-weight);
  line-height: 1.1;
  margin: 0 0 12px;
}
.prose p,
.prose li {
  font-size: 16px;
  line-height: 1.6;
}
.prose p {
  margin: 0;
}
.prose ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}
.prose b {
  font-weight: 600;
}
.prose .prose-updated {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ------------------------------------------------------------------ 404 page (public/404.html) */

.brand-mascot img {
  display: block;
}
.not-found {
  text-align: center;
  padding-top: 56px;
}
.not-found-mark {
  display: block;
  margin: 0 auto 8px;
  filter: drop-shadow(0 0 24px rgba(var(--glow), 0.4));
}
.not-found-home {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  transition: transform var(--fast) var(--ease);
}
.not-found-home:hover {
  text-decoration: none;
}
.not-found-home:active {
  transform: scale(0.97);
}
.not-found-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: 22px;
}
.not-found-pages a {
  color: var(--muted);
}
.not-found-pages a:hover {
  color: var(--ink);
}

/* ------------------------------------------------------------------ Explorer */

.search.search-big {
  display: flex;
  max-width: 640px;
  height: 52px;
  margin: 4px 0 0;
  padding-right: 6px;
}
.search-big .search-ico {
  width: 20px;
  height: 20px;
}
.search-big input {
  font-size: 17px;
}
.search-go {
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 15px/1 var(--font);
  cursor: pointer;
  transition: transform var(--fast) var(--ease);
}
.search-go:active {
  transform: scale(0.97);
}
.explore-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}
.chip-link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card-top);
  color: var(--ink);
  font-weight: 500;
}
.chip-link:hover {
  text-decoration: none;
  background: var(--hover);
}
.acct-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}
.acct-meta .addr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.acct-meta .addr a {
  color: var(--ink);
}
.copy {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.copy:hover {
  color: var(--ink);
}
.copy.done {
  color: var(--up);
  border-color: currentColor;
}
.copy svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
/* "Move to liquidation": the move that liquidates, with a small bar (full at 50%). */
.dist {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.dist-bar {
  width: 56px;
  height: 6px;
  border-radius: 999px;
  background: var(--card-3);
  overflow: hidden;
}
.dist-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--muted);
}
.dist.near .dist-bar i {
  background: linear-gradient(90deg, var(--b2), var(--b3));
}
.dist.near b {
  color: var(--g2);
}
.muted {
  color: var(--muted);
}
a.acct {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.live-word {
  color: var(--ink);
  white-space: nowrap;
}

/* Range strip under a day chart (charts.js rangeStrip): the whole history in miniature, the part
   outside the chart dimmed, and a window with a handle at each edge. */
.range-host {
  margin-top: 12px;
}
.rs {
  position: relative;
  height: 44px;
  border-radius: 10px;
  background: var(--card-2);
  border: 1px solid var(--hairline);
  touch-action: pan-y;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
}
.rs-plot {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}
.rs-svg {
  display: block;
}
.rs-area {
  fill: var(--b2);
  opacity: 0.45;
}
.rs-line {
  fill: none;
  stroke: var(--b3);
  stroke-width: 1;
  opacity: 0.7;
  stroke-linejoin: round;
}
.rs-shade {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(4, 18, 15, 0.62);
  pointer-events: none;
}
.rs-shade-l {
  left: 0;
  border-radius: 10px 0 0 10px;
}
.rs-shade-r {
  right: 0;
  border-radius: 0 10px 10px 0;
}
.rs-window {
  position: absolute;
  top: -1px;
  bottom: -1px;
  border: 1px solid rgba(151, 252, 228, 0.55);
  border-radius: 8px;
  background: rgba(151, 252, 228, 0.05);
  cursor: grab;
}
.rs.is-dragging,
.rs.is-dragging .rs-window {
  cursor: grabbing;
}
.rs-handle {
  position: absolute;
  top: 9px;
  bottom: 9px;
  width: 10px;
  margin-left: -5px;
  border-radius: 5px;
  background: linear-gradient(var(--on-accent), var(--on-accent)) center / 2px 12px no-repeat, var(--accent);
  box-shadow: 0 0 0 3px rgba(4, 18, 15, 0.5);
  cursor: ew-resize;
  z-index: 2;
  touch-action: none;
}
/* A bigger target than the handle looks, for fingers. */
.rs-handle::after {
  content: '';
  position: absolute;
  inset: -10px -12px;
}
.rs-handle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.rs-ends {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.rs-hint {
  opacity: 0.8;
}

/* LitWatch, the sister site for Lighter: a line in the footer (the bar at the top is with the
   top bar's styles). */
.footer-sister {
  margin: 14px 0 0;
}
.footer-sister a {
  color: var(--accent);
}
