/* ==========================================================================
   Apes Together Strong — $APE
   A dark, frosted-glass system: soft aurora ground, translucent panels with
   real backdrop blur, hairline borders and an inset top highlight so every
   surface reads like a pane of glass rather than a grey box.
   ========================================================================== */

:root {
  --red: #e50b1c;
  --red-lift: #ff2f3d;
  --red-deep: #a80716;
  --amc: #ffb020;

  --up: #2fd67d;
  --down: #ff3b46;

  --ink: #f5f5f7;
  --ink-2: rgba(235, 235, 245, 0.66);
  --ink-3: rgba(235, 235, 245, 0.42);
  --ink-4: rgba(235, 235, 245, 0.26);

  --bg: #08080a;
  --bg-2: #0d0d11;

  --glass: rgba(255, 255, 255, 0.052);
  --glass-2: rgba(255, 255, 255, 0.075);
  --stroke: rgba(255, 255, 255, 0.10);
  --stroke-2: rgba(255, 255, 255, 0.16);
  --blur: saturate(180%) blur(28px);

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --shadow: 0 22px 60px -22px rgba(0, 0, 0, 0.85);
  --shadow-red: 0 18px 50px -18px rgba(229, 11, 28, 0.55);

  --page: 1220px;
  --font: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, 'Cascadia Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

/**
 * Belt and braces against sideways drag.
 *
 * `overflow-x: hidden` on <body> alone is unreliable on iOS — the html element
 * keeps scrolling. `clip` is the right tool here because, unlike `hidden`, it
 * does not turn the element into a scroll container, so the sticky nav keeps
 * working. Browsers without `clip` fall back to the body rule below.
 */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.025em; font-weight: 700; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); }

.sub { color: var(--ink-3); font-size: 12.5px; font-weight: 500; }
.k { color: var(--ink-3); font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.num { text-align: right; }

/* ------------------------------------------------------------- background */

.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5; }
.blob-a {
  width: 62vw; height: 62vw; top: -22vw; right: -14vw;
  background: radial-gradient(circle, rgba(229, 11, 28, 0.55), transparent 68%);
  animation: drift 26s ease-in-out infinite alternate;
}
.blob-b {
  width: 48vw; height: 48vw; top: 46vh; left: -16vw;
  background: radial-gradient(circle, rgba(255, 90, 40, 0.30), transparent 66%);
  animation: drift 34s ease-in-out infinite alternate-reverse;
}
.blob-c {
  width: 40vw; height: 40vw; bottom: -14vw; right: 8vw;
  background: radial-gradient(circle, rgba(255, 176, 32, 0.16), transparent 68%);
  animation: drift 42s ease-in-out infinite alternate;
}

/* Faint film grain keeps the large blurred gradients from banding. */
.grain {
  position: absolute; inset: -50%;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, -5vh, 0) scale(1.12); }
}

/* ------------------------------------------------------------ glass base */

.glass {
  position: relative;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

/* The specular top edge that sells the "pane of glass" read. */
.glass::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0) 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Without mask-composite the highlight would paint as a solid sheet over the
   card, so hide it entirely rather than let it wash the content out. */
@supports not ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .glass::before { display: none; }
}

/* ------------------------------------------------------------------- nav */

/* Horizontal safe-area lives on the base rule, not in a later @supports block —
   from there it would override the tighter mobile padding at every width. */
.nav-wrap {
  position: sticky; top: 0; z-index: 60;
  padding: 14px 20px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.nav {
  max-width: var(--page);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 9px 9px 16px;
  border-radius: 100px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { filter: drop-shadow(0 3px 10px rgba(229, 11, 28, 0.55)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 13.5px; letter-spacing: -0.02em; white-space: nowrap; }
.brand-text em { font-style: normal; font-size: 11px; color: var(--ink-3); font-weight: 600; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 7px 13px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--ink); background: var(--glass-2); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.pill-price {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px;
  border-radius: 100px;
  background: var(--glass-2);
  border: 1px solid var(--stroke);
  font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s, background 0.22s, border-color 0.22s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(170deg, var(--red-lift), var(--red) 55%, var(--red-deep));
  color: #fff;
  box-shadow: var(--shadow-red), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover { box-shadow: 0 22px 60px -16px rgba(229, 11, 28, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35); transform: translateY(-1px); }

.btn-glass, .btn-ghost {
  background: var(--glass-2);
  border-color: var(--stroke);
  color: var(--ink);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.btn-glass:hover, .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--stroke-2); transform: translateY(-1px); }
.btn-ghost { color: var(--ink-2); }
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 100px; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------ hero */

.hero {
  max-width: var(--page);
  margin: 0 auto;
  padding: 46px 20px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 44px;
  align-items: center;
}

.eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px;
  border-radius: 100px;
  background: var(--glass-2);
  border: 1px solid var(--stroke);
  font-size: 12px; font-weight: 600;
  color: var(--ink-2);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.chip strong { color: var(--ink); }
.chip-red {
  background: linear-gradient(150deg, rgba(229, 11, 28, 0.30), rgba(229, 11, 28, 0.10));
  border-color: rgba(255, 90, 80, 0.38);
  color: #ffd9db;
}

.hero h1 { font-size: clamp(46px, 6.4vw, 82px); font-weight: 800; letter-spacing: -0.045em; }

.grad {
  background: linear-gradient(150deg, #ff6b6b, var(--red) 55%, var(--red-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-amc {
  background: linear-gradient(150deg, #ffd479, var(--amc) 55%, #d97706);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lede { margin-top: 20px; font-size: 17px; line-height: 1.62; color: var(--ink-2); max-width: 54ch; }
.lede strong { color: var(--ink); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 32px; }
.hero-meta > div { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 500; }

.copy {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--glass-2);
  border: 1px solid var(--stroke);
  cursor: pointer;
  font-size: 12px;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}
.copy:hover { background: rgba(255, 255, 255, 0.12); color: var(--ink); }

.hero-visual { position: relative; display: flex; justify-content: center; }

.hero-ape {
  width: min(100%, 460px);
  height: auto;
  filter: drop-shadow(0 40px 70px rgba(229, 11, 28, 0.42));
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-16px) rotate(0.6deg); }
}

/**
 * This card floats over the bright red logo, so the standard --glass tint lets
 * the artwork through and washes the text out. It gets its own near-opaque dark
 * backing instead — the panel still reads as glass against the page, but the
 * type sits on a stable dark ground wherever the ape happens to be behind it.
 */
.hero-card {
  position: absolute;
  right: -6px;
  bottom: -10px;
  width: min(280px, 78%);
  padding: 17px 19px;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(16, 11, 13, 0.90), rgba(9, 7, 9, 0.95));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 70px -18px rgba(0, 0, 0, 0.92);
}
.hero-card-head { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.04em; text-transform: uppercase; }
.hero-card-value { display: flex; align-items: baseline; gap: 7px; margin-top: 10px; }
.hero-card-value strong { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.hero-card-value .unit { font-size: 14px; font-weight: 700; color: var(--amc); }
.hero-card-sub { margin-top: 3px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.hero-card-sub .sep { opacity: 0.4; margin: 0 5px; }
.hero-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--stroke-2);
  font-size: 12px; color: var(--ink-2); font-weight: 500;
}
.hero-card-foot strong { color: var(--ink); font-variant-numeric: tabular-nums; font-size: 13.5px; }

/* ------------------------------------------------------------ live dot */

.dot-live {
  width: 7px; height: 7px; flex: none;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 0 rgba(47, 214, 125, 0.65);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 214, 125, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(47, 214, 125, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 214, 125, 0); }
}
.dot-live.stale { background: var(--ink-4); animation: none; box-shadow: none; }

/* ------------------------------------------------------------ stat strip */

.strip {
  max-width: var(--page);
  margin: 24px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 11px;
}

.stat { padding: 15px 17px; border-radius: var(--r); display: flex; flex-direction: column; gap: 3px; }
.stat strong { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat .sub, .stat .delta { font-size: 12px; }

.delta { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }

/* --------------------------------------------------------------- section */

.section { max-width: var(--page); margin: 0 auto; padding: 78px 20px 0; }

.section-head { max-width: 640px; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.035em; }
.section-head p { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.section-head a { color: var(--ink); border-bottom: 1px solid var(--stroke-2); }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h3 { font-size: 15px; font-weight: 650; }

/* --------------------------------------------------------------- rewards */

.reward-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }

.step { padding: 22px; border-radius: var(--r-lg); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s; }
.step:hover { transform: translateY(-4px); border-color: var(--stroke-2); }
.step-n {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--red-lift);
  margin-bottom: 13px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--ink-2); line-height: 1.58; }
.step strong { color: var(--ink); }

/* ---------------------------------------------------------- payout panel */

.payout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 30px;
  padding: 30px;
  border-radius: var(--r-xl);
  overflow: hidden;
}
.payout::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(70% 120% at 6% 0%, rgba(255, 176, 32, 0.13), transparent 62%);
  pointer-events: none;
}
.payout > * { position: relative; z-index: 1; }

.payout-head { display: flex; align-items: center; gap: 9px; }
.payout-head h3 { font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.01em; }
.tag {
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(47, 214, 125, 0.14);
  border: 1px solid rgba(47, 214, 125, 0.3);
  color: var(--up);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.tag.warn { background: rgba(255, 176, 32, 0.14); border-color: rgba(255, 176, 32, 0.34); color: var(--amc); }
.tag.err { background: rgba(255, 59, 70, 0.14); border-color: rgba(255, 59, 70, 0.34); color: var(--down); }

.payout-big { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; }
.payout-big strong {
  font-size: clamp(46px, 6vw, 68px);
  font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(150deg, #fff, rgba(255, 255, 255, 0.72));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.payout-big .unit { font-size: 20px; font-weight: 700; color: var(--amc); }
.payout-usd { font-size: 15px; color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }

.payout-bar {
  margin-top: 22px;
  height: 9px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--stroke);
  overflow: hidden;
}
.payout-bar span {
  display: block; height: 100%;
  width: 0;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--amc), #ff8a3d);
  box-shadow: 0 0 18px rgba(255, 176, 32, 0.55);
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.payout-bar-legend { display: flex; gap: 20px; margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }
.payout-bar-legend b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.sw { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 5px; }
.sw-paid { background: var(--amc); }
.sw-pending { background: rgba(255, 255, 255, 0.22); }

.payout-note { margin-top: 20px; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); max-width: 56ch; }
.payout-note a { color: var(--ink-2); border-bottom: 1px solid var(--stroke-2); }

.payout-side { display: flex; flex-direction: column; gap: 14px; }
.payout-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.payout-kpis > div {
  padding: 13px 15px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--stroke);
  display: flex; flex-direction: column; gap: 4px;
}
.payout-kpis strong { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.payout-next {
  padding: 16px;
  border-radius: var(--r);
  background: linear-gradient(150deg, rgba(255, 176, 32, 0.14), rgba(255, 176, 32, 0.03));
  border: 1px solid rgba(255, 176, 32, 0.24);
  display: flex; flex-direction: column; gap: 3px;
}
.payout-next strong { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- rounds */

.rounds { margin-top: 14px; padding: 22px 24px; border-radius: var(--r-lg); }
.table-scroll { overflow-x: auto; }
.rounds-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 520px; }
.rounds-table th {
  text-align: left; padding: 9px 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--stroke);
}
.rounds-table th.num { text-align: right; }
.rounds-table td { padding: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-variant-numeric: tabular-nums; }
.rounds-table tr:last-child td { border-bottom: none; }
.rounds-table tbody tr { transition: background 0.2s; }
.rounds-table tbody tr:hover { background: rgba(255, 255, 255, 0.035); }
.rounds-table .empty td { text-align: center; color: var(--ink-3); padding: 26px; }
.rounds-table .amt { color: var(--amc); font-weight: 600; }
.pill-status {
  padding: 3px 9px; border-radius: 100px;
  font-size: 11px; font-weight: 600;
  background: rgba(47, 214, 125, 0.13); color: var(--up);
  border: 1px solid rgba(47, 214, 125, 0.26);
}
.pill-status.open { background: rgba(255, 176, 32, 0.13); color: var(--amc); border-color: rgba(255, 176, 32, 0.28); }

/* ---------------------------------------------------------------- charts */

.chart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 13px; }

.chart-card { padding: 20px 22px 16px; border-radius: var(--r-xl); }

.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.chart-title { display: flex; align-items: center; gap: 11px; }
.chart-title strong { display: block; font-size: 15.5px; font-weight: 650; letter-spacing: -0.02em; }
.chart-title .sub { display: block; }
.chart-price { text-align: right; }
.chart-price strong { display: block; font-size: 26px; font-weight: 750; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.chart-price .delta { font-size: 13px; }

.amc-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: linear-gradient(150deg, rgba(255, 176, 32, 0.32), rgba(255, 176, 32, 0.10));
  border: 1px solid rgba(255, 176, 32, 0.34);
  color: var(--amc);
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em;
}

.chart-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 6px; }

.seg {
  display: inline-flex; gap: 2px;
  padding: 3px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--stroke);
}
.seg button {
  padding: 6px 14px;
  border: none; background: transparent;
  border-radius: 100px;
  font-size: 12.5px; font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.seg button:hover { color: var(--ink-2); }
.seg button.on {
  background: rgba(255, 255, 255, 0.13);
  color: var(--ink);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.seg-sm button { padding: 6px 12px; font-size: 12px; }

.chart-src { margin-left: auto; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.chart-src:hover { color: var(--ink-2); }

.chart-body { height: 400px; margin-top: 6px; }
.chart-body canvas { width: 100%; height: 100%; display: block; }

.amc-card .chart-body { height: 430px; }

.amc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 4px; }
.amc-tiles > div {
  padding: 12px 14px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.042);
  border: 1px solid var(--stroke);
  display: flex; flex-direction: column; gap: 4px;
}
.amc-tiles strong { font-size: 14.5px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -0.015em; }

/* ------------------------------------------------------------ trade tape */

.tape-card { padding: 20px; border-radius: var(--r-xl); display: flex; flex-direction: column; }
.tape { list-style: none; margin: 0; padding: 0; overflow-y: auto; max-height: 452px; display: flex; flex-direction: column; gap: 2px; }
.tape .empty { padding: 26px 0; text-align: center; color: var(--ink-3); font-size: 13px; }

.trade {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  font-size: 13px;
  transition: background 0.2s;
}
.trade:hover { background: rgba(255, 255, 255, 0.045); }
.trade .side { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.trade.buy .side { color: var(--up); }
.trade.sell .side { color: var(--down); }
.trade .amt { font-variant-numeric: tabular-nums; font-weight: 600; }
.trade .meta { color: var(--ink-3); font-size: 11.5px; font-variant-numeric: tabular-nums; text-align: right; }
.trade.flash { animation: flash 1.5s ease-out; }
@keyframes flash {
  0% { background: rgba(47, 214, 125, 0.20); }
  100% { background: transparent; }
}
.trade.sell.flash { animation: flash-sell 1.5s ease-out; }
@keyframes flash-sell {
  0% { background: rgba(255, 59, 70, 0.20); }
  100% { background: transparent; }
}

/* ------------------------------------------------------------------ news */

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }

.news-card {
  padding: 20px 21px;
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 9px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s;
}
.news-card:hover { transform: translateY(-4px); border-color: var(--stroke-2); }
.news-card .src { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; color: var(--amc); letter-spacing: 0.02em; }
.news-card .src .when { color: var(--ink-4); font-weight: 500; }
.news-card h3 { font-size: 15.5px; line-height: 1.36; font-weight: 620; letter-spacing: -0.02em; }
.news-card p { font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.news-card .go { margin-top: auto; padding-top: 6px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }

.skeleton { min-height: 158px; background: linear-gradient(100deg, rgba(255,255,255,0.04), rgba(255,255,255,0.085), rgba(255,255,255,0.04)); background-size: 200% 100%; animation: shimmer 1.5s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- forum */

.forum-layout { display: grid; grid-template-columns: 306px minmax(0, 1fr); gap: 13px; align-items: start; }

.forum-side { padding: 22px; border-radius: var(--r-xl); position: sticky; top: 96px; }
.forum-side-head { display: flex; align-items: center; gap: 12px; }
.forum-side-mark {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--stroke);
  padding: 6px;
}
.forum-side-head strong { display: block; font-size: 15px; letter-spacing: -0.02em; }

.forum-rules { list-style: none; margin: 17px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.forum-rules li {
  font-size: 12.5px; line-height: 1.5; color: var(--ink-3);
  padding-left: 13px; position: relative;
}
.forum-rules li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--red);
}
.forum-rules strong { color: var(--ink-2); font-weight: 600; }

.forum-warn {
  margin: 17px 0 0; padding: 11px 13px;
  border-radius: var(--r-sm);
  background: rgba(255, 176, 32, 0.09);
  border: 1px solid rgba(255, 176, 32, 0.24);
  font-size: 12px; line-height: 1.5; color: var(--amc);
}

.forum-main { display: flex; flex-direction: column; gap: 13px; }

/* ------------------------------------------------------------- composer */

.forum-composer { padding: 19px 21px; border-radius: var(--r-lg); }
.forum-composer-head { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.forum-who strong { font-size: 14px; letter-spacing: -0.015em; }
.forum-who .sub { display: block; }
.forum-rename { margin-left: auto; padding: 6px 12px; font-size: 12px; }

.forum-avatar {
  display: grid; place-items: center;
  width: 36px; height: 36px; flex: none;
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(229, 11, 28, 0.30), rgba(229, 11, 28, 0.10));
  border: 1px solid rgba(229, 11, 28, 0.30);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink-2);
}

.forum-composer textarea, .forum-reply-form textarea {
  width: 100%; display: block;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--stroke);
  color: var(--ink);
  font: inherit; font-size: 14px; line-height: 1.55;
  resize: vertical;
  transition: border-color 0.2s, background 0.2s;
}
.forum-composer textarea:focus, .forum-reply-form textarea:focus {
  outline: none; border-color: rgba(229, 11, 28, 0.45); background: rgba(255, 255, 255, 0.06);
}
.forum-composer textarea::placeholder, .forum-reply-form textarea::placeholder { color: var(--ink-4); }

.forum-composer-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.forum-chars { font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.forum-chars.over { color: var(--down); }
.forum-composer-foot .btn { margin-left: auto; }

.forum-error {
  margin-top: 10px; padding: 9px 12px;
  border-radius: var(--r-sm);
  background: rgba(255, 59, 70, 0.11);
  border: 1px solid rgba(255, 59, 70, 0.28);
  color: #ff9aa1;
  font-size: 12.5px; line-height: 1.5;
}

/* ---------------------------------------------------------------- posts */

.forum-list { display: flex; flex-direction: column; gap: 11px; }

.forum-post {
  padding: 19px 21px;
  border-radius: var(--r-lg);
  animation: land 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.forum-post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.forum-post-head strong { font-size: 14px; letter-spacing: -0.015em; }
.forum-post-head .sub { display: block; }

.forum-you {
  margin-left: 7px; padding: 1px 7px;
  border-radius: 100px;
  background: rgba(229, 11, 28, 0.16);
  border: 1px solid rgba(229, 11, 28, 0.30);
  font-size: 10px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
  color: #ff8a8a; vertical-align: middle;
}

.forum-del {
  margin-left: auto; flex: none;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: transparent; border: 1px solid transparent;
  color: var(--ink-4); font-size: 12px; cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.forum-del:hover { color: var(--down); background: rgba(255, 59, 70, 0.12); border-color: rgba(255, 59, 70, 0.28); }

.forum-text { font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }

.forum-post-foot { margin-top: 13px; }
.forum-replies-btn {
  padding: 5px 11px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--stroke);
  color: var(--ink-3);
  font: inherit; font-size: 12px; font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.forum-replies-btn:hover { background: rgba(255, 255, 255, 0.10); color: var(--ink-2); }
.forum-replies-btn.open { background: rgba(229, 11, 28, 0.14); border-color: rgba(229, 11, 28, 0.30); color: #ff9aa1; }

/* -------------------------------------------------------------- threads */

.forum-thread {
  margin-top: 15px; padding-top: 15px;
  border-top: 1px solid var(--stroke);
}
.forum-replies { display: flex; flex-direction: column; gap: 11px; margin-bottom: 13px; }
.forum-reply {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--stroke);
  border-left: 2px solid rgba(229, 11, 28, 0.34);
}
.forum-reply-head { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.forum-reply-head strong { font-size: 13px; letter-spacing: -0.01em; }
.forum-reply-head .sub { font-size: 11.5px; }
.forum-reply .forum-text { font-size: 13.5px; }

.forum-reply-form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.forum-reply-form textarea { font-size: 13.5px; }
.forum-reply-form .forum-error { margin-top: 0; align-self: stretch; }

.forum-loading { padding: 14px; text-align: center; color: var(--ink-4); font-size: 12.5px; }

.forum-notice { padding: 30px 26px; text-align: center; border-radius: var(--r-lg); color: var(--ink-3); font-size: 13.5px; line-height: 1.6; }
.forum-notice strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 8px; letter-spacing: -0.02em; }
.forum-notice p { margin: 8px 0 0; }
.forum-notice code { padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,0.08); font-size: 12.5px; }
.forum-notice .why { font-size: 12px; color: var(--ink-4); }
.forum-notice.err { border-color: rgba(255, 59, 70, 0.30); background: rgba(255, 59, 70, 0.06); }

@keyframes land {
  from { opacity: 0; transform: translateY(-14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

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

.footer { max-width: var(--page); margin: 92px auto 0; padding: 0 20px 40px; }
.footer-inner { padding: 28px 30px; border-radius: var(--r-xl); display: grid; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { display: block; font-size: 14.5px; letter-spacing: -0.02em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.footer-links a:hover { color: var(--ink); }
.disclaimer { font-size: 11.5px; line-height: 1.62; color: var(--ink-4); max-width: 88ch; }

/* --------------------------------------------------------------- toasts */

.toast-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 90; display: flex; flex-direction: column; gap: 9px; align-items: flex-end; }
.toast {
  padding: 12px 17px;
  border-radius: 100px;
  background: rgba(24, 24, 28, 0.86);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--stroke-2);
  box-shadow: var(--shadow);
  font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; gap: 9px;
  animation: toast-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast.gold { border-color: rgba(255, 176, 32, 0.42); }
.toast.out { animation: toast-out 0.35s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(0.97); } }

/* ------------------------------------------------- server-offline notice */

.offline-note {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 95;
  width: min(680px, calc(100vw - 32px));
  padding: 15px 20px;
  border-radius: var(--r);
  background: rgba(26, 20, 12, 0.90);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 176, 32, 0.38);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
.offline-note strong { color: var(--ink); }
.offline-note code {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--stroke);
  font-size: 12px;
  color: var(--ink);
}
.offline-note a { color: var(--amc); border-bottom: 1px solid rgba(255, 176, 32, 0.4); }
.offline-note .why { display: block; margin-top: 6px; color: var(--ink-4); font-size: 12px; }

/* ------------------------------------------------- mobile section tabs */

/**
 * Only ever rendered by router.js on a phone — desktop never sees this markup,
 * so the long-scroll layout is untouched by definition.
 */
.mtabs {
  position: sticky;
  top: 62px;
  z-index: 55;
  padding: 0 0 10px;
  background: linear-gradient(to bottom, var(--bg) 62%, transparent);
}
.mtabs-inner {
  display: flex;
  gap: 6px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.mtabs-inner::-webkit-scrollbar { display: none; }

.mtab {
  flex: none;
  scroll-snap-align: center;
  padding: 8px 15px;
  border-radius: 100px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.mtab.on {
  background: linear-gradient(170deg, var(--red-lift), var(--red) 55%, var(--red-deep));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(229, 11, 28, 0.8);
}

/* One section at a time needs less top padding than a continuous scroll. */
.is-sectioned .section { padding-top: 24px; }
.is-sectioned .hero { padding-top: 8px; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reward-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-layout { grid-template-columns: minmax(0, 1fr); }
  .tape { max-height: 260px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }

  /* Single column, and the forum itself comes first — a tall rules card above
     the composer would push the actual posts most of a screen down. */
  .forum-layout { grid-template-columns: minmax(0, 1fr); }
  .forum-side { position: static; order: 2; }
  .forum-main { order: 1; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 26px; gap: 30px; }
  .hero-ape { width: min(76%, 320px); }
  .payout { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .amc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /**
   * .hero-visual is a flex ROW. Taking the payout card out of absolute
   * positioning without also turning that row into a column left the card
   * sitting BESIDE the logo at width:100%, which pushed the page wider than the
   * screen — the card got clipped on the right and the whole site could be
   * dragged sideways. The direction change is the actual fix.
   */
  .hero-visual { order: -1; flex-direction: column; align-items: center; min-width: 0; }
  .hero-card { position: static; width: 100%; margin-top: 18px; }
}

@media (max-width: 620px) {
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reward-grid, .news-grid { grid-template-columns: minmax(0, 1fr); }
  .section { padding-top: 58px; }
  .nav { padding-left: 13px; }
  .brand-text { display: none; }
  .nav-actions .btn-ghost span { display: none; }
  .chart-body { height: 320px; }
  .tv-body { height: 400px; }
  .footer-inner { padding: 22px; }

  .hero-meta { gap: 18px; }
  .amc-tiles { gap: 8px; }

  /* Give the sticky nav room to breathe instead of hugging the top edge — and
     clear the browser chrome / notch on phones that report an inset. */
  .nav-wrap {
    padding-top: calc(18px + env(safe-area-inset-top, 0px));
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
  .hero { padding-top: 14px; }

  /**
   * The nav has four fixed-width children (mark, price pill, X, Buy) that add up
   * to more than a phone is wide, so it was running off the right edge and taking
   * the Buy button with it. Tighten every gap and pad, and let the row shrink
   * rather than force the page wider.
   */
  .nav { gap: 8px; padding: 7px 8px 7px 12px; min-width: 0; }
  .nav-actions { gap: 6px; min-width: 0; }
  .brand { flex: none; }
  .brand-mark { width: 28px; height: 28px; }
  .pill-price {
    padding: 6px 10px;
    gap: 5px;
    font-size: 12.5px;
    min-width: 0;
    white-space: nowrap;
  }
  .nav-actions .btn { padding: 8px 13px; font-size: 13px; }

  /**
   * The payout card as a full-width band rather than a floating box.
   * Squarer corners and a horizontal value row make it read as a strip across
   * the screen, which is what the space allows on a phone.
   */
  .hero-card {
    width: 100%;
    border-radius: var(--r);
    padding: 15px 17px;
  }
  .hero-card-head { font-size: 11px; }
  /* Amount and unit on one line with the label, so the card stays short. */
  .hero-card-value { margin-top: 6px; }
  .hero-card-value strong { font-size: 30px; }
  .hero-card-sub { font-size: 12px; }
  .hero-card-foot { margin-top: 11px; padding-top: 10px; }

  /* ---- forum on a phone ---- */

  .forum-composer, .forum-post { padding: 16px 16px; }

  /* The name can be 24 characters, so let the header wrap instead of squeezing
     the rename button off the edge. */
  .forum-composer-head { flex-wrap: wrap; }
  .forum-rename { margin-left: 0; width: 100%; order: 3; }
  .forum-who { min-width: 0; flex: 1; }
  .forum-who strong, .forum-post-head strong { overflow-wrap: anywhere; }

  /* iOS Safari zooms the whole page in when you focus an input under 16px.
     16px here is a fix for that, not a style choice. */
  .forum-composer textarea,
  .forum-reply-form textarea { font-size: 16px; }

  /* Thumb-sized tap targets. 26px was a mouse-sized hit area. */
  .forum-del { width: 40px; height: 40px; font-size: 15px; }
  .forum-replies-btn { padding: 9px 15px; font-size: 13px; }
  .forum-reply-form .btn { width: 100%; }
  .forum-composer-foot .btn { padding: 11px 20px; }

  .forum-thread { margin-top: 13px; padding-top: 13px; }
  .forum-reply { padding: 11px 12px; }
  .forum-notice { padding: 24px 18px; }
}

/**
 * Notched and rounded phones. viewport-fit=cover is already set on the meta tag,
 * so the page paints edge to edge — these keep content out from under the home
 * indicator and the rounded corners in landscape.
 */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  .toast-wrap {
    bottom: calc(22px + env(safe-area-inset-bottom));
    right: calc(22px + env(safe-area-inset-right));
  }
}

/**
 * Narrow phones (iPhone SE/mini, most Androids in portrait). Even tightened, the
 * price pill plus a two-word Buy button does not fit — so the 24h change and the
 * "$APE" half of the label go. The price itself, the X link and Buy all stay.
 */
@media (max-width: 430px) {
  #nav-change { display: none; }
  .nav-buy-sym { display: none; }
  .pill-price { font-size: 12px; padding: 6px 9px; }
  .nav-actions .btn { padding: 8px 12px; }

  /* Fit one more tab on screen; the rest still scroll. */
  .mtabs-inner { padding: 0 12px; gap: 5px; }
  .mtab { padding: 7px 12px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   MOBILE PAINT BUDGET
   --------------------------------------------------------------------------
   The glass system is cheap on a desktop GPU and ruinous on a phone. Three
   things were compounding, and all three cost per *frame*, not per load:

   1. `backdrop-filter` appears on ~25 elements — every .glass panel, the sticky
      nav, every chip, ghost button and mobile tab. Each one is a separate
      compositor layer that has to re-sample and re-blur everything painted
      beneath it. The sticky nav and the sticky .mtabs bar sit OVER scrolling
      content, so they re-blur on every single scroll frame.
   2. Three .blob elements up to 62vw square carry `filter: blur(120px)` AND an
      infinite `drift` animation that scales them. A scaling layer under a large
      blur gets re-rasterised rather than just re-composited.
   3. The hero logo runs an infinite `float` while wearing a 70px `drop-shadow`,
      which re-rasterises a 460px image's shadow continuously.

   Below, on phones and any coarse-pointer device, all three are replaced with
   flat paint. Nothing moves, nothing samples a backdrop, and the design still
   reads as the same dark glass because the ground behind these panels is nearly
   black anyway — the blur was contributing almost nothing visually there.
   ========================================================================== */

@media (max-width: 900px), (hover: none) and (pointer: coarse) {

  /* ---- 1. no backdrop sampling ---- */

  .glass,
  .nav,
  .chip,
  .btn-glass,
  .btn-ghost,
  .mtab,
  .toast,
  .offline-note,
  .pill-price {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Opaque stand-ins. Still translucent enough to pick up the aurora tint, but
     a plain blend rather than a sampled, blurred layer. */
  .glass { background: rgba(18, 18, 23, 0.78); }
  .chip, .btn-glass, .btn-ghost, .mtab, .pill-price { background: rgba(38, 38, 46, 0.85); }
  .chip-red { background: linear-gradient(150deg, rgba(229, 11, 28, 0.34), rgba(229, 11, 28, 0.14)); }
  .mtab.on { background: linear-gradient(170deg, var(--red-lift), var(--red) 55%, var(--red-deep)); }

  /* The nav is sticky over moving content — the single worst place for a blur. */
  .nav { background: rgba(12, 12, 16, 0.92); }
  .toast, .offline-note { background: rgba(20, 18, 24, 0.95); }

  /* Big soft shadows are cheap to declare and expensive to paint. 25 of them
     over a scrolling page is real time; tighten the radius rather than drop it. */
  :root { --shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.9); }

  /* ---- 2. a still background ---- */

  /* .aurora stays — it is position:fixed, so it paints once and never repaints
     on scroll. What goes is the blur filter and the drift animation. The
     gradients already fade out on their own, so the look survives. */
  .blob {
    filter: none;
    animation: none;
    opacity: 0.42;
  }
  .blob-a { background: radial-gradient(circle, rgba(229, 11, 28, 0.50), transparent 74%); }
  .blob-b { background: radial-gradient(circle, rgba(255, 90, 40, 0.28), transparent 72%); }
  .blob-c { background: radial-gradient(circle, rgba(255, 176, 32, 0.16), transparent 72%); }

  /* An feTurbulence data-URI stretched over 4x the viewport. It exists to stop
     the blurred gradients banding — and there is no blur here to band. */
  .grain { display: none; }

  /* ---- 3. a still hero ---- */

  .hero-ape { animation: none; filter: none; }
  .brand-mark { filter: none; }

  /* Repainting a shimmer across three cards forever, for a loading state that
     lasts a second. */
  .skeleton { animation: none; background: rgba(255, 255, 255, 0.05); }

  /* The pulse animates box-shadow, which repaints rather than composites. It is
     one 7px dot, but there are six of them on the page at once. */
  .dot-live { animation: none; box-shadow: 0 0 0 3px rgba(47, 214, 125, 0.18); }
}

/* --------------------------------------------------------------------------
   Skip work for content that is not on screen.

   The browser is told it may skip layout, style and paint for these blocks
   until they scroll close, and `contain-intrinsic-size: auto <px>` makes it
   remember the real height once measured, so the scrollbar does not jump.

   Deliberately NOT applied to the two chart sections: GlassChart measures its
   canvas through a ResizeObserver, and a skipped subtree reports no size, so a
   chart could mount at 0x0. The safe wins are the pure-content blocks.
   -------------------------------------------------------------------------- */

.reward-grid { content-visibility: auto; contain-intrinsic-size: auto 420px; }
.rounds { content-visibility: auto; contain-intrinsic-size: auto 520px; }
.news-grid { content-visibility: auto; contain-intrinsic-size: auto 560px; }

/* ------------------------------------------------------------ launch link */

/* Every other item in .nav-links scrolls this page; this one leaves for the
   pad. Given a border so it reads as a destination rather than a section. */
.nav-links .nav-launch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  background: var(--glass-2);
  border: 1px solid var(--stroke-2);
}

.nav-links .nav-launch:hover {
  color: #fff;
  background: rgba(229, 11, 28, 0.18);
  border-color: rgba(229, 11, 28, 0.5);
}

.nav-links .nav-launch svg { opacity: 0.65; }

/* The nav-actions copy exists only for narrow screens, where .nav-links is
   hidden entirely and the desktop button disappears with it. */
.nav-launch-compact { display: none; }

@media (max-width: 1080px) {
  .nav-launch-compact { display: inline-flex; }
}
