/* GTASTOCKS — PlayStation 5 design language, applied to the whole site.
   Everything before this (pixel art, the sunset gradients, the hairline register) is gone.

   What makes it read as PS5:
     · a near-black ground with a blue cast — never pure black, never purple
     · light neutral type, one weight step between title and body, no display face
     · translucent surfaces with real blur and a 1px light border, not hard cards
     · square game icons at a ~14% radius; the focused one wears a thin white ring
     · the background barely moves: a low radial wash in the focused item's accent, nothing more
     · calm motion — long soft easing, and a beat of rest before anything commits */

:root {
  --bg: #0a0d12;
  --bg-2: #0f131a;
  --ink: #f4f6f9;
  --muted: #9aa5b4;
  --muted-2: #6d7787;
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.16);
  --surface: rgba(255, 255, 255, 0.055);
  --surface-2: rgba(255, 255, 255, 0.085);
  --blue: #2b8cff;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --max: 1240px;

  /* Motion. Slow on purpose: the first pass snapped between states and read as twitchy. */
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
  --t: 560ms;
  --t-fade: 760ms;
  --t-quick: 220ms;

  /* Rail geometry. Duplicated in menu.js, which computes the offset from these numbers. */
  --tile: 118px;
  --tile-focus: 200px;
  --tile-gap: 18px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
strong, b { font-weight: 600; }

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
}

/* ══════════ buttons ══════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #0a0d12;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-quick) var(--ease), border-color var(--t-quick) var(--ease),
              color var(--t-quick) var(--ease);
}

.btn:hover:not(:disabled) { background: #ffffff; }

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.btn-ghost:hover:not(:disabled) { background: var(--surface-2); }

/* An <a> cannot carry :disabled, and Buy is a link until the coin exists — both spellings have to
   look the same, or a dead link reads as the primary action. */
.btn:disabled,
.btn[aria-disabled="true"] {
  background: var(--surface);
  border-color: var(--line);
  color: var(--muted-2);
  cursor: not-allowed;
  pointer-events: none;
}

.btn-block { width: 100%; }

/* ══════════ status row ══════════ */

.top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: clamp(16px, 2.4vh, 26px) clamp(18px, 3.4vw, 44px);
}

.top > .top-left { justify-self: start; }
.top > .navlinks { justify-self: center; transform: translateX(26px); }
.top > .top-right { justify-self: end; }

.top-left,
.top-right { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 20px); }

.chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  letter-spacing: -0.005em;
  color: var(--muted);
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition: background var(--t-quick) var(--ease), color var(--t-quick) var(--ease);
}

.chip:hover { background: var(--surface-2); color: var(--ink); }
.chip[aria-disabled="true"] { color: var(--muted-2); pointer-events: none; }

/* The ticker, not a navigation item: it reads as the name of the thing, and only becomes a link
   once the curve exists to point at. */
.chip.is-ticker {
  color: var(--ink);
  font-weight: 600;
  border-color: var(--line-2);
}

.chip.is-ticker[aria-disabled="true"] { color: var(--ink); opacity: 0.9; }

/* ---------- section links, centred ---------- */

.navlinks {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 34px);
}

/* One shared bar, slid under whichever link is pointed at. */
.navglow {
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 62, 165, 0) 0%, #ff3e9a 22%, #ff6fb8 50%, #ff3e9a 78%, rgba(255, 62, 165, 0) 100%);
  box-shadow: 0 0 10px rgba(255, 62, 165, 0.85), 0 0 22px rgba(255, 62, 165, 0.45);
  transition: transform 320ms var(--ease), width 320ms var(--ease), opacity 200ms var(--ease);
}

.navlinks a {
  position: relative;
  padding: 6px 0;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--t-quick) var(--ease);
}

.navlinks a:hover { color: var(--ink); }

/* The active item carries the console's underline, drawn rather than bordered so it can glow. */
.navlinks a.is-active { color: var(--ink); }



.navlinks a[aria-disabled="true"] { color: var(--muted-2); pointer-events: none; }

/* ---------- wallet ---------- */

.wallet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: background var(--t-quick) var(--ease), border-color var(--t-quick) var(--ease);
}

.wallet:hover { background: var(--surface-2); }
.wallet[aria-disabled="true"] { color: var(--muted-2); pointer-events: none; }

.wallet.is-on { border-color: var(--line-2); color: var(--muted); }
.wallet.is-on b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

.wallet .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #46d17f;
  box-shadow: 0 0 8px rgba(70, 209, 127, 0.8);
}

/* The launchpad's own mark, as an attribution link. */
.pons {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity var(--t-quick) var(--ease);
}

.pons:hover { opacity: 1; }
.pons img { display: block; width: 26px; height: 26px; }

/* ══════════ the menu ══════════ */

body.is-menu { overflow: hidden; }

/* status row · icon rail · open art · title · cards — the console's own vertical order. */
.console {
  position: fixed;
  inset: 0;
  display: grid;
  /* status · the rail centred in what is left · title · cards */
  grid-template-rows: auto 1fr auto auto;
  /* The rail is `width: max-content`, and an implicit `auto` column sizes to that — which stretched
     every row to ~490px and pushed the status bar's right end off a 375px screen. Pinning the
     column to minmax(0, 1fr) caps all four rows at the container and lets the clip do its job. */
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  background: #05070b;
}

/* ---------- key art, two layers so a change crossfades ---------- */

.art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 42%;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity var(--t-fade) var(--ease), transform 9s linear;
}

.art.is-on { opacity: 1; transform: scale(1.06); }

/* The art has to carry white type at the bottom-left and small icons at the top, so it is graded
   rather than dimmed flat: dark down the left, dark along the bottom, a touch across the top. */
.art-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.88) 0%, rgba(5, 7, 11, 0.62) 30%, rgba(5, 7, 11, 0.1) 64%, rgba(5, 7, 11, 0.24) 100%),
    linear-gradient(0deg, rgba(5, 7, 11, 0.94) 0%, rgba(5, 7, 11, 0.6) 26%, rgba(5, 7, 11, 0.18) 52%, rgba(5, 7, 11, 0) 70%),
    linear-gradient(180deg, rgba(5, 7, 11, 0.72) 0%, rgba(5, 7, 11, 0.12) 20%, rgba(5, 7, 11, 0) 36%);
}

/* ---------- brand, top left ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* The mark already carries its own rounded corners in the alpha channel, so no radius here. */
.brand-logo {
  width: 30px;
  height: 30px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* The wordmark: solid, in the game's pink and white. An image-filled version was tried and
   dropped — at header size the picture turns to mush and a keyline thick enough to hold it closes
   the counters. That treatment needs to be large to work at all. */
.wordmark {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
}

.wordmark span { color: #ff3e9a; }

/* ---------- icon button (the X mark) ---------- */

.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition: background var(--t-quick) var(--ease), color var(--t-quick) var(--ease);
}

.icon-btn svg { width: 14px; height: 14px; display: block; }

.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* Shown before there is an account to point at, so the affordance exists without a dead link. */
.icon-btn[aria-disabled="true"] { color: var(--muted-2); opacity: 0.72; pointer-events: none; }

/* ---------- the icon rail, at the top ---------- */

.rail-zone {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.rail-clip {
  overflow: hidden;
  padding: 34px 0 12px clamp(18px, 3.4vw, 44px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent 100%);
}

.rail {
  display: flex;
  align-items: flex-end;
  gap: var(--tile-gap);
  width: max-content;
  transition: transform var(--t) var(--ease);
}

.card {
  position: relative;
  flex: 0 0 auto;
  width: var(--tile);
  height: var(--tile);
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: #10141c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
  cursor: pointer;
  overflow: hidden;
  opacity: 0.9;
  transition:
    width var(--t) var(--ease),
    height var(--t) var(--ease),
    border-radius var(--t) var(--ease),
    opacity var(--t) var(--ease),
    box-shadow var(--t) var(--ease);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card.is-focus {
  width: var(--tile-focus);
  height: var(--tile-focus);
  border-radius: 18px;
  opacity: 1;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.95),
    0 22px 50px -22px rgba(0, 0, 0, 0.9);
}

/* ---------- the title block, bottom-left over the art ---------- */

.stagearea {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 0 clamp(18px, 3.4vw, 44px) clamp(14px, 2.2vh, 24px);
}

.now { max-width: 46ch; }

.now h1 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 500;
  line-height: 1.12;
  /* Caps need the tracking opened back up; the negative value is for lowercase. */
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

.now p {
  margin: 9px 0 0;
  font-size: 13px;
  letter-spacing: -0.005em;
  color: #bcc5d1;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

.now-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hint { font-size: 12px; color: var(--muted); }

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  margin-right: 3px;
  padding: 0 5px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.4);
  font-family: inherit;
  font-size: 10.5px;
  color: var(--muted);
}

.fade-in { animation: fade-in var(--t) var(--ease) both; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- the card row at the foot, where Must see sits ---------- */

.bottom {
  position: relative;
  z-index: 2;
  padding: 0 clamp(18px, 3.4vw, 44px) clamp(16px, 2.6vh, 26px);
}

.bottom-label {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

.acts {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 10px;
  max-width: 900px;
}

.act {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 13, 18, 0.55);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.act-label {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.act-value {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.act-value.is-text { font-size: 12.5px; font-weight: 500; letter-spacing: -0.005em; line-height: 1.45; }

.act-note {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--muted-2);
}

.act-note a { color: var(--blue); text-decoration: none; }
.act-note a:hover { text-decoration: underline; }

/* ══════════ inner pages ══════════ */

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 48px) clamp(18px, 3.4vw, 44px) clamp(40px, 6vw, 72px);
}

.page-head { max-width: 62ch; }

.page-head h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.page-head p { margin: 14px 0 0; font-size: 16px; color: var(--muted); }

.eyebrow {
  margin: 0 0 18px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.surface {
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  margin-top: clamp(26px, 3vw, 38px);
}

.stat-label { display: block; font-size: 11.5px; color: var(--muted-2); }

.stat-value {
  display: block;
  margin-top: 10px;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.stat-value.is-text { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }

.stat-note { display: block; margin-top: 8px; font-size: 12px; color: var(--muted-2); }
.stat-note a { color: var(--blue); text-decoration: none; }
.stat-note a:hover { text-decoration: underline; }

.rows { margin: clamp(26px, 3vw, 38px) 0 0; }

.rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 14px;
}

.rows > div + div { margin-top: 8px; }

.rows dt { color: var(--muted); }
.rows dd { margin: 0; text-align: right; overflow-wrap: anywhere; }

.rows a { color: var(--blue); text-decoration: none; }
.rows a:hover { text-decoration: underline; }
.rows a.is-off { color: var(--muted-2); pointer-events: none; }

.steps {
  list-style: none;
  margin: clamp(26px, 3vw, 38px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}

.steps li {
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.steps .num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.steps h3 { margin: 14px 0 8px; font-size: 15.5px; font-weight: 600; letter-spacing: -0.02em; }
.steps p { margin: 0; font-size: 14px; color: var(--muted); }

.action {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: clamp(26px, 3vw, 36px);
}

.action p {
  flex: 1 1 300px;
  margin: 0;
  max-width: 56ch;
  font-size: 13.5px;
  color: var(--muted);
}

.prose { max-width: 64ch; }

.prose h3 { margin: 34px 0 10px; font-size: 15.5px; font-weight: 600; letter-spacing: -0.02em; }
.prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 13px; font-size: 14px; line-height: 1.7; color: var(--muted); }

.fine {
  margin: clamp(30px, 4vw, 44px) 0 0;
  max-width: 72ch;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted-2);
}

/* ---------- ops ---------- */

.form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.form label { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; font-weight: 500; }

.form input,
.form select {
  height: 42px;
  padding: 0 13px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 14px;
}

.form input::placeholder { color: var(--muted-2); }
.form input:focus-visible,
.form select:focus-visible { border-color: var(--blue); outline: none; }

.bad { color: #ff6b6b; }

.log {
  margin: 18px 0 0;
  max-height: 300px;
  overflow: auto;
  padding: 15px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line); }

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px clamp(18px, 3.4vw, 44px) 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: var(--muted-2);
}

.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }

/* ══════════ a11y ══════════ */

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ══════════ narrow ══════════ */

@media (max-width: 900px) {
  .acts { grid-auto-flow: row; grid-auto-columns: auto; }
  .now h1 { font-size: clamp(21px, 5.6vw, 28px); }
  .art-scrim {
    background:
      linear-gradient(0deg, rgba(5, 7, 11, 0.96) 0%, rgba(5, 7, 11, 0.7) 34%, rgba(5, 7, 11, 0.2) 68%),
      linear-gradient(180deg, rgba(5, 7, 11, 0.8) 0%, rgba(5, 7, 11, 0) 26%);
  }
}

@media (max-width: 700px) {
  :root { --tile: 74px; --tile-focus: 128px; --tile-gap: 12px; }
  /* At 375px the status row cannot hold three chips plus the clock — the ticker is the one that
     must survive, so the Community placeholder goes and the rest tightens. */
  #m-soon { display: none; }
  .navlinks { order: 3; width: 100%; justify-content: space-between; gap: 8px; transform: none; }
  .navlinks a { font-size: 11px; letter-spacing: 0.04em; }
  .top { gap: 10px; padding-left: 16px; padding-right: 16px; }
  .chip { height: 28px; padding: 0 11px; font-size: 11.5px; }
  .clock { font-size: 12px; }
  /* Stacked, the cards sit over the middle of the art instead of its dark foot, so they need to
     hold more of their own ground. */
  .act { background: rgba(10, 13, 18, 0.74); }
  body.is-menu { overflow: auto; }
  .console { position: relative; min-height: 100svh; }
  .hint { display: none; }
  .rows > div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .rows dd { text-align: left; }
  .footer-inner, .console-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .top { flex-wrap: wrap; }
}

/* ══════════ TTWO — the quote and its chart ══════════ */

.chart-card { margin-top: clamp(26px, 3vw, 38px); padding-bottom: clamp(14px, 1.6vw, 20px); }

.quote {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.quote-sym {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
}

/* Only the pulse says "the tape is moving"; a closed market gets a flat dot. */
.live-dot.is-live { background: #4ade80; animation: pulse 2.4s var(--ease) infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
}

.quote-price {
  display: block;
  margin-top: 10px;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.quote-move {
  display: inline-block;
  margin-top: 9px;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.quote-move.is-up { color: #4ade80; }
.quote-move.is-down { color: #ff6b6b; }

.quote-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

/* The hover readout occupies its slot at all times, so the ranges never jump when it appears. */
.read {
  min-height: 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  opacity: 0;
  transition: opacity var(--t-quick) var(--ease);
}

.read.is-on { opacity: 1; }
.read b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.read span { font-size: 11px; color: var(--muted-2); }

.ranges { display: flex; gap: 4px; }

.range {
  height: 28px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--muted-2);
  font: inherit;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color var(--t-quick) var(--ease), background var(--t-quick) var(--ease);
}

.range:hover { color: var(--ink); }
.range.is-on { background: var(--surface-2); border-color: var(--line); color: var(--ink); }

.chart {
  display: block;
  width: 100%;
  height: clamp(220px, 30vw, 320px);
  margin-top: 18px;
  overflow: visible;
  touch-action: pan-y;
}

.chart-base {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
  stroke-dasharray: 3 5;
  vector-effect: non-scaling-stroke;
}

.chart-cross {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-dot { stroke: var(--bg); stroke-width: 2; vector-effect: non-scaling-stroke; }

.quote-note { margin: 14px 0 0; font-size: 12px; color: var(--muted-2); }

/* ══════════ Activity ══════════ */

.feed-card { margin-top: clamp(26px, 3vw, 38px); }

.feed { list-style: none; margin: 0; padding: 0; }

.feed-row {
  display: grid;
  grid-template-columns: 68px minmax(120px, 0.9fr) minmax(0, 1.6fr) auto 92px;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
}

.feed-row + .feed-row { border-top: 1px solid var(--line); border-radius: 0; }
.feed-row:hover { background: var(--surface); }

.feed-when { font-size: 11.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.feed-amount { font-weight: 500; font-variant-numeric: tabular-nums; }
.feed-amount i { font-style: normal; font-size: 11px; color: var(--muted-2); }

.feed-path {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.feed-path span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-path em { font-style: normal; color: var(--muted-2); }

.feed-tag {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff3e9a;
}

.feed-tx {
  text-align: right;
  color: var(--blue);
  text-decoration: none;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.feed-tx:hover { text-decoration: underline; }

.feed-row.is-mine { background: rgba(255, 62, 154, 0.07); }
.feed-row.is-new { animation: land var(--t) var(--ease) both; }

@keyframes land {
  from { background: rgba(255, 255, 255, 0.09); }
  to { background: transparent; }
}

.feed-empty { padding: 14px 12px; font-size: 13px; color: var(--muted-2); }
.feed-note { margin: 16px 0 0; font-size: 11.5px; color: var(--muted-2); }

@media (max-width: 760px) {
  .feed-row { grid-template-columns: 1fr auto; grid-auto-rows: min-content; gap: 4px 12px; }
  .feed-when { order: 1; }
  .feed-tx { order: 2; }
  .feed-amount { order: 3; }
  .feed-tag { order: 4; text-align: right; }
  .feed-path { order: 5; grid-column: 1 / -1; }
  .quote-side { align-items: flex-start; width: 100%; }
  .read { align-items: flex-start; }
}

/* A single stat card should not stretch the full page width just because the grid can. */
.grid.is-narrow { grid-template-columns: repeat(auto-fit, minmax(210px, 300px)); justify-content: start; }

/* ---------- the contract address, in the header ---------- */

.ca {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-quick) var(--ease), border-color var(--t-quick) var(--ease);
}

.ca:hover { background: var(--surface-2); border-color: var(--line-2); }

.ca-k {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

.ca b {
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 11.5px;
}

/* The full address where the header has room for it, the short form where it does not. */
.ca-short { display: none; }

@media (max-width: 1180px) {
  .ca-long { display: none; }
  .ca-short { display: inline; }
}

/* The click's only job is the copy, so the confirmation replaces the address rather than sitting
   next to it — there is nothing to compare against mid-copy. */
.ca.is-copied { border-color: #ff3e9a; }
.ca.is-copied .ca-k { color: #ff3e9a; }
.ca.is-copied b { visibility: hidden; position: relative; }
.ca.is-copied b::after {
  content: "Copied";
  visibility: visible;
  position: absolute;
  left: 0;
  color: var(--ink);
  font-family: inherit;
}

.ca:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
