/* LighterWatch — Ember on graphite. */

:root {
  color-scheme: dark;

  /* Surfaces: neutral graphite so orange only appears where something is hot. */
  --page: #0c0c0e;
  --card: #131316;
  --card-top: #1a1a1e;
  --card-2: #1b1b20; /* tiles, inset panels */
  --card-3: #26262c; /* raised: tags, icons */
  --card-border: rgba(255, 255, 255, 0.08);
  --card-edge: rgba(255, 255, 255, 0.06);
  --hairline: rgba(255, 255, 255, 0.09);
  --grid: rgba(255, 255, 255, 0.07);
  --axis: rgba(255, 255, 255, 0.2);
  --hover: rgba(255, 255, 255, 0.06);
  --selected: rgba(255, 255, 255, 0.1);

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

  /* Fire: the glow ramp, bar ramp and tip, plus one accent for links and focus. */
  --accent: #ff9a52;
  --glow: 255, 98, 30;
  --g1: #fff4e8;
  --g2: #ffd08a;
  --g3: #ff7d32;
  --g4: #ec4c18;
  --b1: #5e1806;
  --b2: #df5018;
  --b3: #ff9440;
  --tip: #ffd07a;
  --bar: #e2622a;
  --flame: #ff7d32;
  --flame-2: #ffd08a;
  --mint: var(--accent); /* legacy name */
  --mint-2: var(--accent); /* legacy name */

  --up: #7fd99a;
  --down: #ff8f85;

  /* Categorical chart slots, fixed order, validated against the card surface (dark). */
  --s1: #e2622a;
  --s2: #5b8def;
  --s3: #b48a26;
  --s4: #2fa39a;
  --s5: #7c7b84; /* "other": neutral, never a fifth hue */
  --rest: #3a3a41;
  /* LIT that isn't circulating yet, in two close dark tones so the circulating slices read first. */
  --held: #34343b; /* Lighter's reserve */
  --locked: #26262c; /* team and investors */

  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Sofia Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Sofia Sans Extra Condensed', 'Arial Narrow', 'Sofia Sans', sans-serif;
  --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 */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 12, 14, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  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: 700;
  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;
}

/* Below this width the nine tabs no longer fit beside the brand and price, so they take a row of their own. */
@media (max-width: 1200px) {
  .topbar-inner {
    flex-wrap: wrap;
    gap: 6px 12px;
    padding-top: 10px;
  }
  .price-chip {
    margin-left: auto;
  }
  .tabs {
    order: 3;
    margin: 0 -16px;
    padding: 0 16px 10px;
    width: calc(100% + 32px);
  }
}
/* Phones: keep the price chip on the brand's row (the chip keeps its "LIT price" label for screen readers). */
@media (max-width: 420px) {
  .brand-name {
    font-size: 24px;
  }
  .price-chip {
    padding: 0 12px;
    gap: 6px;
  }
  .price-chip-sym {
    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: 700;
  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 embers (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: 800;
  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;
}
@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: 700;
  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: 700;
  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: fees earned since 00:00 UTC beside the LIT 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: 700;
  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;
}
@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: 700;
  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 .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(22, 22, 26, 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;
}

/* 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: 700;
  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;
}
/* 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);
}
/* Tables wider than the screen 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. LIT's bar wears the ember 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: 700;
  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: 700;
  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: 700;
  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 flame flickers from its base (behind the cap); the eyes blink about their middle. Each Lit
   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 Lits (nav, hero) keep flickering; the rest hold their
   flame on whatever frame it stopped and wake while the pointer is on their card. */
.mascot .flame-outer {
  transform-origin: 32px 26px;
  animation: flicker var(--fo, 1.6s) ease-in-out var(--fod, 0s) infinite;
}
.mascot .flame-inner {
  transform-origin: 32px 26px;
  animation: flicker var(--fi, 1.1s) ease-in-out var(--fid, 0s) infinite reverse;
}
.mascot .eyes {
  transform-origin: 32px 44px;
  animation: blink var(--bl, 5s) var(--bld, 0s) infinite;
}
.mascot.rest .flame-outer,
.mascot.rest .flame-inner {
  animation-play-state: paused;
}
@media (hover: hover) {
  .card:hover .mascot.rest .flame-outer,
  .card:hover .mascot.rest .flame-inner {
    animation-play-state: running;
  }
}
/* A buyback fill: the hero Lit's flame flares and settles (dashboard.js adds .is-flaring). */
.mascot .flare {
  transform-origin: 32px 26px;
}
.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.32);
    animation-timing-function: ease-in-out;
  }
  100% {
    transform: scale(1);
  }
}
@keyframes flicker {
  0%,
  100% {
    transform: scale(1, 1) rotate(0deg);
  }
  30% {
    transform: scale(0.94, 1.06) rotate(-3deg);
  }
  60% {
    transform: scale(1.05, 0.95) rotate(2deg);
  }
}
/* 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 .flame-outer,
  .mascot .flame-inner,
  .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: 700;
  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;
}
.search {
  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%);
}
.search: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: 700;
  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-lit {
  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: #1a0d06;
  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);
}
