/* All Forge Launches. Tokens mirror /styles.css (Forge gold on near-black).
   Type is the homepage's, from the homepage's own Google Fonts link:
     display  Chakra Petch 700  (title; small labels styled like .featured-tag)
     body     Space Grotesk     (everything else, as the homepage headline/chain list)
   Performance budget: hundreds of cards on phones. No backdrop-filter, no
   filter: blur, no per-card animation except the ember dot on cards under an
   hour old (a handful at most), and hover effects only on hover-capable devices. */
:root {
  --bg: #080809;
  --text: #f6f6f7;
  --muted: #a4a1a8;
  --faint: #6f6b70;
  --line: rgba(255, 255, 255, 0.09);
  --gold: #e7ad3a;
  --gold-bright: #ffd56d;
  --gold-deep: #b97a17;
  --ember: #ff8a3d;
  --card: #111012;
  --card-edge: rgba(231, 173, 58, 0.14);
  --content: 1180px;
  --display: "Chakra Petch", sans-serif;
  --body: "Space Grotesk", sans-serif;
  /* homepage .featured-tag ("FEATURED CHAIN") */
  --label-color: #fff26a;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* ---------------------------------------------------------------- background
   The homepage's .page-bg stack (styles.css): its two radial glows, the
   blueprint grid, the grain and the faded Forge flame (.hero-flame), with the
   same values. Here it is one absolutely positioned layer behind the header
   area that fades out above the grid, not a fixed full-page layer, so it is
   painted once and costs nothing while scrolling. Like the homepage hero, the
   flame is centred horizontally behind the title. The layer ends at the bottom
   of the chain buttons (launches.js measures it into --bg-h) and is fully faded
   there, so none of it shows behind the featured card or the grid. */
.lp-bg {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bg-h, 300px);
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 5%, rgba(231, 173, 58, 0.10), transparent 26%),
    radial-gradient(circle at 16% 36%, rgba(126, 91, 255, 0.055), transparent 26%);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.lp-bg > * { position: absolute; pointer-events: none; }
.lp-bg-grid {
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.8) 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.8) 50%, transparent 100%);
}
.lp-bg-flame {
  /* homepage .hero-flame: centred, its middle behind the headline */
  left: 50%;
  top: 110px;
  width: min(650px, 68vw);
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.082;
  filter: saturate(0.95) drop-shadow(0 0 54px rgba(231, 173, 58, 0.16));
  user-select: none;
}
.lp-bg-grain {
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
@media (max-width: 680px) {
  .lp-bg { height: var(--bg-h, 380px); }
  /* homepage .hero-flame at <=430px: 118vw, .078 */
  .lp-bg-flame { top: 126px; width: 118vw; opacity: 0.078; }
}

/* ---------------------------------------------------------------- header */
.lp-header {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
}
.lp-brand { display: inline-flex; min-height: 44px; align-items: center; }
.lp-brand img { width: 120px; height: 44px; object-fit: contain; object-position: left center; }

.lp-main {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
  padding-bottom: calc(48px + env(safe-area-inset-bottom));
}

.lp-heading h1 {
  /* homepage h1: Space Grotesk 700, -0.056em, -0.052em at <=680px (styles.css);
     the homepage doesn't set font-smoothing, so don't thin this one either */
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(32px, 9vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.056em;
  -webkit-font-smoothing: auto;
  margin: 10px 0 10px;
  /* homepage h1 span treatment: white fading to gold */
  background: linear-gradient(110deg, #fff 15%, #e7ad3a 62%, #ffd978 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-sub { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.lp-heading::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: 0 0 18px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--ember) 60%, transparent);
}

/* ---------------------------------------------------------------- chain chips */
.lp-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 2px 16px 12px;
  position: sticky;
  top: 0;
  z-index: 5;
}
/* Only once stuck (launches.js toggles it), so no flat band over the glow. */
.lp-chips.is-stuck { background: linear-gradient(var(--bg) 80%, transparent); }
.lp-chips-sentinel { height: 1px; margin-bottom: -1px; }
.lp-chips::-webkit-scrollbar { display: none; }

.lp-chip {
  --accent: var(--gold);
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(231, 173, 58, 0.16);
  background: rgba(231, 173, 58, 0.04);
  color: #d6d0c4;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
/* chain colour as a small dot, so the row reads as chains at a glance */
.lp-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}
.lp-chip[data-chain="all"]::before,
.lp-chip[data-chain="all"][aria-pressed="true"]::before {
  /* the Forge flame, as on the homepage chain logos */
  width: 11px;
  height: 15px;
  border-radius: 0;
  background: url("flame.png") center / contain no-repeat;
  opacity: 1;
}
.lp-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (hover: hover) {
  .lp-chip:hover { border-color: rgba(231, 173, 58, 0.45); color: #fff; }
}
/* selected = forged gold, whatever the chain */
.lp-chip[aria-pressed="true"] {
  color: #1a1206;
  border-color: var(--gold-bright);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
}
.lp-chip[aria-pressed="true"]::before { background: #1a1206; opacity: 0.7; }

/* ---------------------------------------------------------------- status */
.lp-status { min-height: 20px; margin: 4px 0 12px; color: var(--faint); font-size: 13px; }
.lp-status--error { color: #f2a37b; }
/* Kept in the DOM (it is the aria-live region) but takes no space when idle. */
.lp-status:empty { min-height: 0; margin: 0 0 8px; }

/* ---------------------------------------------------------------- list */
.lp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) { .lp-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .lp-list { grid-template-columns: repeat(3, 1fr); } }

.lp-item { min-width: 0; }

/* ---------------------------------------------------------------- card */
.lp-card {
  --chain: var(--gold);
  --art: 112px;
  position: relative;
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-edge);
  /* warm top edge, like metal catching furnace light */
  background:
    linear-gradient(180deg, rgba(231, 173, 58, 0.07), transparent 46%),
    var(--card);
  transition: transform 0.18s ease-out, border-color 0.18s, box-shadow 0.18s;
  -webkit-tap-highlight-color: transparent;
}
/* chain colour as a left edge: the homepage's .destination-row::before */
.lp-card::before,
.lp-feature::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--chain);
  box-shadow: 0 0 16px color-mix(in srgb, var(--chain) 74%, transparent);
  pointer-events: none;
}
@media (max-width: 680px) {
  .lp-card::before { width: 3px; }
}
a.lp-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
a.lp-card:active { transform: scale(0.985); }
.lp-card--nolink { opacity: 0.7; }

/* --- artwork: the hero ---------------------------------------------------- */
.lp-art {
  position: relative;
  flex: 0 0 var(--art);
  width: var(--art);
  height: var(--art);
  border-radius: 12px;
  overflow: hidden;
  background: #19171a;
  box-shadow: inset 0 0 0 1px rgba(255, 213, 109, 0.14);
}
.lp-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease-out;
}
/* Fallback: a struck coin face. Big letter, chain-tinted metal, gold rim. */
.lp-art-mono {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-size: calc(var(--art) * 0.46);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff2d4;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  user-select: none;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 213, 109, 0.28), transparent 55%),
    radial-gradient(circle at 70% 85%, color-mix(in srgb, var(--chain) 45%, transparent), transparent 65%),
    linear-gradient(145deg, #2a2219, #141215);
  box-shadow: inset 0 0 0 1px rgba(255, 213, 109, 0.22), inset 0 0 0 6px rgba(0, 0, 0, 0.18);
}

/* --- body ----------------------------------------------------------------- */
.lp-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--chain) 55%, transparent);
  background: color-mix(in srgb, var(--chain) 18%, #0c0b0d);
  color: color-mix(in srgb, var(--chain) 55%, #fff);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chain);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--chain) 25%, transparent);
}

.lp-name {
  margin-top: 8px;
  max-width: 100%;
  font-family: var(--body);
  font-size: 21px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s;
}
.lp-symbol {
  margin-top: 2px;
  max-width: 100%;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-stats {
  margin-top: auto;
  padding-top: 10px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
}
.lp-stat { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lp-stat--right { align-items: flex-end; text-align: right; }
.lp-stat-label {
  /* same treatment as the homepage's "FEATURED CHAIN" (.featured-tag) */
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--label-color);
}
.lp-stat-value {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #e9e4da;
}
.lp-stat-value--none { color: #4d494f; }
.lp-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

/* --- freshness ------------------------------------------------------------ */
/* Under a day: the time warms up. */
.lp-card[data-age="recent"] .lp-time { color: #e8c98a; }

/* Under an hour: straight out of the forge. Static glow + gold edge; the only
   moving thing is the ember dot, and only on these few cards. */
.lp-card[data-age="fresh"] {
  border-color: rgba(255, 190, 90, 0.55);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 138, 61, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(231, 173, 58, 0.1), transparent 50%),
    var(--card);
  box-shadow: 0 0 0 1px rgba(255, 170, 70, 0.12), 0 10px 30px -12px rgba(255, 138, 61, 0.55);
}
.lp-card[data-age="fresh"] .lp-art { box-shadow: inset 0 0 0 1px rgba(255, 213, 109, 0.45); }
[data-age="fresh"] .lp-time { color: var(--gold-bright); font-weight: 700; }
[data-age="fresh"] .lp-time::before {
  /* straight out of the forge: the Forge flame, flickering (opacity only) */
  content: "";
  width: 10px;
  height: 14px;
  background: url("flame.png") center / contain no-repeat;
  animation: lp-ember 1.6s ease-in-out infinite;
}
@keyframes lp-ember { 50% { opacity: 0.45; } }

/* --- hover (pointer devices only; phones get the :active press) ----------- */
@media (hover: hover) {
  a.lp-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 213, 109, 0.6);
    box-shadow: 0 14px 34px -14px rgba(231, 173, 58, 0.55), 0 0 0 1px rgba(255, 213, 109, 0.18);
  }
  a.lp-card:hover .lp-art img { transform: scale(1.06); }
  a.lp-card:hover .lp-name { color: var(--gold-bright); }
}

/* ---------------------------------------------------------------- newest launch
   One large card above the grid, after the homepage's HyperEVM card
   (.featured-chain): chain-coloured border and glow, big art, the token's own
   art faded in on the right where the homepage has its planet, a featured tag
   and the same yellow call to action. */
.lp-feature-wrap:empty { display: none; }
.lp-feature-wrap { margin-bottom: 16px; }
.lp-feature {
  --chain: var(--gold);
  --art: 132px;
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
  padding: 18px 26px 22px;
  border-radius: 18px;
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--chain) 45%, transparent);
  background:
    radial-gradient(90% 140% at 100% 0%, color-mix(in srgb, var(--chain) 16%, transparent), transparent 62%),
    linear-gradient(115deg, #17151a, #0d0c0f);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--chain) 10%, transparent),
    0 22px 56px -34px color-mix(in srgb, var(--chain) 60%, transparent);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s ease-out;
  -webkit-tap-highlight-color: transparent;
}
a.lp-feature:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
a.lp-feature:active { transform: scale(0.99); }
.lp-feature-bg {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.lp-feature-tag {
  /* homepage .featured-tag ("★ FEATURED CHAIN") */
  display: block;
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f5d94a;
}
.lp-feature-row { display: flex; align-items: center; gap: 26px; }
.lp-feature .lp-art {
  border-radius: 20px;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--chain) 30%, transparent),
    0 14px 32px -12px color-mix(in srgb, var(--chain) 65%, transparent);
}
.lp-feature-mid { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.lp-feature-name {
  margin: 8px 0 2px;
  max-width: 100%;
  font-family: var(--body);
  font-size: 40px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-feature .lp-symbol { font-size: 15px; }
.lp-feature .lp-stats { justify-content: flex-start; gap: 36px; width: auto; padding-top: 14px; }
.lp-feature .lp-stat--right { align-items: flex-start; text-align: left; }
.lp-feature .lp-stat-value, .lp-feature .lp-time { font-size: 17px; }
.lp-feature-cta { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.lp-feature-kicker {
  /* homepage .featured-kicker, tinted with the chain colour */
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.7;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--chain) 55%, #fff);
}
.lp-feature-btn {
  /* homepage .featured-cta */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 26px;
  border-radius: 12px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  color: #0a0f0d;
  background: linear-gradient(180deg, #fbe961, #e8c231);
  box-shadow: 0 12px 30px -10px rgba(233, 197, 52, 0.7);
}
@media (hover: hover) {
  a.lp-feature:hover {
    border-color: color-mix(in srgb, var(--chain) 70%, transparent);
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--chain) 18%, transparent),
      0 26px 60px -30px color-mix(in srgb, var(--chain) 70%, transparent);
  }
  a.lp-feature:hover .lp-feature-btn { filter: brightness(1.06); }
  a.lp-feature:hover .lp-art img { transform: scale(1.04); }
}
/* homepage stacks its featured card below 900px */
@media (max-width: 900px) {
  .lp-feature { --art: 120px; padding: 18px; }
  .lp-feature-tag { text-align: center; }
  .lp-feature-row { flex-direction: column; text-align: center; gap: 16px; }
  .lp-feature-mid { align-items: center; width: 100%; }
  .lp-feature-name { font-size: 30px; }
  .lp-feature .lp-stats { justify-content: center; }
  .lp-feature-cta { width: 100%; }
  .lp-feature-btn { width: 100%; }
  .lp-feature-bg {
    width: 100%;
    opacity: 0.14;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
    mask-image: linear-gradient(180deg, #000, transparent 75%);
  }
}

/* ---------------------------------------------------------------- empty + more */
.lp-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 48px 20px;
  border: 1px dashed rgba(231, 173, 58, 0.25);
  border-radius: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background: radial-gradient(60% 80% at 50% 0%, rgba(231, 173, 58, 0.06), transparent 70%);
}
.lp-empty strong { color: var(--text); font-family: var(--body); font-size: 18px; }
.lp-empty-link {
  margin-top: 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(231, 173, 58, 0.4);
  color: var(--gold-bright);
  font-weight: 600;
}

.lp-more-wrap { display: flex; justify-content: center; margin-top: 20px; }
.lp-more {
  min-height: 48px;
  min-width: min(100%, 240px);
  padding: 0 24px;
  border-radius: 12px;
  border: 1px solid var(--gold-bright);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1206;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(231, 173, 58, 0.8);
}
@media (hover: hover) { .lp-more:hover { filter: brightness(1.06); } }
.lp-more:disabled { opacity: 0.6; cursor: progress; }
.lp-more[hidden] { display: none; }

/* ---------------------------------------------------------------- wider screens */
@media (min-width: 720px) {
  .lp-card { --art: 120px; }
  .lp-name { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-card, .lp-feature, .lp-art img, .lp-name, .lp-chip { transition: none; }
  [data-age="fresh"] .lp-time::before { animation: none; }
  a.lp-card:hover, a.lp-feature:active { transform: none; }
}

@media (max-width: 680px) {
  .lp-heading h1 { letter-spacing: -0.052em; }
}
