/* Hatchery. The tiles are the market page's own .mkt-tile shell — studs,
   thick coloured border, foil art block — so a launch reads as a market in
   the making rather than a different product. Only the launch-specific bits
   live here. */

.lp-intro h1 {
  font-family: var(--font-logo); font-size: 34px; letter-spacing: .02em;
  color: var(--navy); margin: 18px 0 4px;
  text-shadow: 2px 2px 0 rgba(255,255,255,.6);
}
.lp-intro p { max-width: 62ch; margin: 0 0 18px; color: var(--navy); line-height: 1.55; }
.lp-note { max-width: 68ch; margin: 4px 0 18px; color: var(--navy); line-height: 1.5; font-size: 13px; }

/* ---------- art blocks ---------- */
.lp-art { border-radius: 16px 16px 0 0; }
.lp-ticker {
  font-family: var(--font-logo); font-size: 34px; letter-spacing: .02em;
  color: rgba(255,255,255,.95); text-shadow: 0 3px 14px rgba(0,0,0,.55);
}


/* ---------- detail card ---------- */
.lp-detail {
  position: relative; margin-top: 26px; padding: 20px;
  background: var(--panel); border: 6px solid var(--navy); border-radius: 22px;
  box-shadow: 4px 5px 0 rgba(20,35,70,.25);
}
.lp-back { background: none; border: none; cursor: pointer; padding: 0 0 12px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.lp-back:hover { color: var(--navy); }
.lp-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.lp-sym { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--navy); }
.lp-blurb { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 2px; }
.lp-price-wrap { text-align: right; }
.lp-price { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--navy); }
.lp-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.lp-label.hot { color: #8a5a00; }
.lp-label.grad { color: #14683a; }

.lp-progress { height: 10px; border-radius: 999px; overflow: hidden; background: var(--panel-2); border: 2px solid var(--line); }
.lp-progress > div { height: 100%; border-radius: 999px; transition: width .4s ease; background: linear-gradient(90deg, #8b7cf6, #6ee7d8); }
.lp-progress-wrap { margin: 18px 0 20px; }
.lp-progress-row { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; font-size: 12px; color: var(--navy); }

.lp-stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-bottom: 20px; }
.lp-stats > div { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 2px solid var(--line); }
.lp-stats b { font-size: 15px; color: var(--navy); }

/* ---------- trade ---------- */
.lp-trade { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.lp-side { display: flex; flex-direction: column; gap: 7px; }
.lp-side label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.lp-side input {
  padding: 11px 12px; border-radius: 11px; font-family: var(--font-mono); font-size: 15px;
  border: 3px solid var(--line); background: var(--panel-2); color: var(--navy);
}
.lp-side input:focus { outline: none; border-color: var(--blue); }
.lp-btn {
  padding: 13px; border-radius: 12px; cursor: pointer;
  border: 3px solid var(--navy); box-shadow: 3px 3px 0 rgba(20,35,70,.3);
  font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .05em;
}
.lp-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(20,35,70,.3); }
.lp-btn.buy { background: var(--long); color: #fff; }
.lp-btn.sell { background: var(--short); color: #fff; }
.lp-btn.grad { width: 100%; margin-top: 14px; background: var(--yellow); color: var(--navy); }
.lp-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
a.lp-btn { display: block; box-sizing: border-box; text-align: center; text-decoration: none; }
a.lp-btn[hidden] { display: none; }

.lp-msg { min-height: 20px; margin-top: 12px; font-family: var(--font-mono); font-size: 11.5px; }
.lp-msg.ok { color: #14683a; }
.lp-msg.err { color: var(--red); }

@media (max-width: 620px) {
  .lp-trade { grid-template-columns: 1fr; }
  .lp-detail-head { flex-direction: column; }
  .lp-price-wrap { text-align: left; }
}

/* Same measure as the market views, so the two pages line up. */
.lp-wrap { padding: 24px; max-width: 1240px; margin: 0 auto; }

/* A non-USDC quote rides along as a small suffix. The row is allowed to wrap
   so the ticker never lands on top of the figure beside it. */
.lp-unit {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: .05em; color: var(--muted); margin-left: 4px;
  white-space: nowrap;
}
.lp-tile .tile-bottom { flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.lp-tile .mkt-price, .lp-tile .oi-mini, .lp-tile .delta { white-space: nowrap; }

/* Create form: four fields, the reference line spanning the row. */
.lp-form { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 16px 0 4px; }
.lp-side.wide { grid-column: 1 / -1; }
.lp-side select {
  padding: 11px 12px; border-radius: 11px; font-family: var(--font-mono); font-size: 14px;
  border: 3px solid var(--line); background: var(--panel-2); color: var(--navy); cursor: pointer;
}
.lp-side select:focus { outline: none; border-color: var(--blue); }
#new-card .lp-note { margin-bottom: 4px; }

/* ---------- create form: artwork + socials ---------- */
.lp-side textarea {
  padding: 11px 12px; border-radius: 11px; font-family: var(--font-body); font-size: 14px;
  border: 3px solid var(--line); background: var(--panel-2); color: var(--navy);
  resize: vertical; min-height: 68px;
}
.lp-side textarea:focus { outline: none; border-color: var(--blue); }

.lp-socials { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); flex: 1 1 380px; }

/* ---------- detail: avatar, links, description ---------- */
.lp-head-left { display: flex; gap: 14px; align-items: flex-start; }
.lp-avatar {
  width: 68px; height: 68px; object-fit: cover; flex: 0 0 auto;
  border-radius: 14px; border: 3px solid var(--navy); background: var(--panel-2);
}
.lp-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.lp-links a {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; text-decoration: none;
  background: var(--panel-2); color: var(--navy); border: 2px solid var(--line);
}
.lp-links a:hover { border-color: var(--blue); color: var(--blue); }
.lp-about {
  margin: 14px 0 0; padding: 12px 14px; border-radius: 12px;
  background: var(--panel-2); border: 2px solid var(--line);
  color: var(--navy); line-height: 1.55; font-size: 13.5px; white-space: pre-wrap;
}

/* Artwork on a tile sits behind the ticker, which needs a scrim to stay legible. */
.lp-art.has-art { padding: 0; position: relative; }
.lp-art.has-art img { width: 100%; height: 100%; object-fit: cover; }
.lp-ticker.over {
  position: absolute; left: 0; right: 0; bottom: 10px; text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,.85), 0 0 22px rgba(0,0,0,.6);
}

/* ---------- live feed ---------- */
.lp-feed {
  display: flex; align-items: center; gap: 10px; margin: 0 0 16px;
  padding: 8px 10px; border-radius: 14px;
  background: var(--panel); border: 3px solid var(--navy);
  box-shadow: 3px 3px 0 rgba(20,35,70,.22); overflow: hidden;
}
.lp-feed-label {
  flex: 0 0 auto; font-family: var(--font-display); font-weight: 700; font-size: 10px;
  letter-spacing: .12em; color: #fff; background: var(--red);
  padding: 4px 8px; border-radius: 999px; border: 2px solid var(--navy);
}
.lp-feed-track { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.lp-feed-track::-webkit-scrollbar { display: none; }
.lp-feed-row {
  flex: 0 0 auto; display: flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 6px 11px; border-radius: 999px; white-space: nowrap;
  font-family: var(--font-body); font-size: 12px; color: var(--navy);
  background: var(--panel-2); border: 2px solid var(--line);
}
.lp-feed-row:hover { border-color: var(--blue); }
.lp-feed-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.lp-feed-row.buy .lp-feed-dot { background: var(--long); }
.lp-feed-row.sell .lp-feed-dot { background: var(--short); }
.lp-feed-row.hatch .lp-feed-dot { background: var(--yellow); }
.lp-feed-row.new .lp-feed-dot { background: var(--blue); }
.lp-feed-ago { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }

/* ---------- share + edit ---------- */
.lp-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lp-chip-btn {
  cursor: pointer; padding: 7px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  background: var(--panel-2); color: var(--navy); border: 2px solid var(--line);
}
.lp-chip-btn:hover { border-color: var(--blue); color: var(--blue); }
.lp-edit {
  margin-top: 14px; padding: 14px; border-radius: 14px;
  background: var(--panel-2); border: 2px solid var(--line);
}
.lp-edit .lp-btn.grad { margin-top: 12px; }

/* The dollar equivalent of a card-quoted figure. */
.lp-usd {
  font-family: var(--font-mono); font-size: 9.5px; color: var(--muted);
  margin-left: 5px; white-space: nowrap;
}

.lp-chart {
  display: block; width: 100%; height: 220px; margin: 14px 0 4px;
  background: var(--panel-2, #f3f7fb); border: 2px solid var(--navy); border-radius: 12px;
}

.lp-perp { margin-top: 22px; padding: 16px; border: 3px solid var(--navy); border-radius: 16px; background: var(--panel); }
.lp-perp[hidden] { display: none; }
.lp-perp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lp-perp-head b { font-family: var(--font-display); font-size: 18px; color: var(--navy); }
.lp-perp-note { margin: 6px 0 12px; font-size: 12.5px; line-height: 1.5; color: var(--navy); opacity: .8; }
.lp-perp select { width: 100%; padding: 12px; border-radius: 12px; border: 2px solid #c7d6e4; font: inherit; background: var(--panel-2, #f3f7fb); }
.lp-perp .lp-trade .lp-btn { width: 100%; }
.lp-perp-pos { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px;
  padding: 10px 12px; border-radius: 12px; background: var(--panel-2, #f3f7fb); font-family: var(--font-mono); font-size: 12.5px; }
.lp-perp-pos .up { color: #14683a; } .lp-perp-pos .down { color: #b3261e; }
.lp-perp-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* ===================== Hatchery home (hx) ===================== */
body.hx {
  --hx-bg: #0b1733; --hx-panel: #12224a; --hx-panel-2: #182c5c; --hx-line: rgba(140, 180, 255, .18);
  --hx-text: #eaf1ff; --hx-dim: #9fb3d9; --hx-yellow: #ffcf3a; --hx-green: #2fbf6a; --hx-red: #ef4b4b;
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(80, 150, 255, .35), transparent 60%),
    linear-gradient(180deg, #13306b 0%, #0b1733 420px, #0a142c 100%);
  color: var(--hx-text);
}
body.hx .banner { background: #1d2c55; color: var(--hx-yellow); }
body.hx .lp-wrap { max-width: 1440px; }

.hx-top {
  display: flex; align-items: center; gap: 18px; padding: 12px 22px;
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 23, 51, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hx-line);
}
.hx-logo {
  font-family: 'Luckiest Guy', var(--font-display); font-size: 22px; line-height: .95; letter-spacing: .02em;
  color: var(--hx-yellow); text-decoration: none; -webkit-text-stroke: 1.5px #23407f; text-shadow: 0 3px 0 #23407f;
}
.hx-nav { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--hx-line); }
.hx-nav button {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 16px; border-radius: 10px;
  background: none; border: 0; color: var(--hx-dim); font: 600 11px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.hx-nav button.active { background: linear-gradient(180deg, #2a4fa3, #1c3a80); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.hx-ico { font-size: 18px; line-height: 1; }
.hx-wallet { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.hx-net { font: 600 11px var(--font-mono); color: var(--hx-dim); }
.hx-bal { font-size: 13px; color: var(--hx-dim); }
.hx-bal b { color: var(--hx-text); }
.hx-connect {
  padding: 11px 18px; border-radius: 12px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, #ffd85a, #f5b800); color: #1a2440; font: 700 13px var(--font-display);
  box-shadow: 0 3px 0 #b88700, 0 8px 20px rgba(255, 196, 0, .25);
}
.hx-connect.connected { background: linear-gradient(180deg, #2a4fa3, #1c3a80); color: #fff; box-shadow: none; }

/* hero */
.hx-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: center;
  margin: 18px 0 16px; padding: 30px 32px; min-height: 280px; border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(500px 260px at 78% 40%, rgba(255, 150, 60, .35), transparent 70%),
    radial-gradient(600px 300px at 20% 120%, rgba(60, 200, 160, .25), transparent 70%),
    linear-gradient(135deg, #1c3f8f, #12275a 60%, #0f2049);
  border: 1px solid var(--hx-line);
}
.hx-hero h1 {
  margin: 0; font-family: 'Luckiest Guy', var(--font-display); font-size: clamp(48px, 7vw, 92px); line-height: .9; letter-spacing: .02em;
  color: #fff; -webkit-text-stroke: 2px #0d1d44; text-shadow: 0 6px 0 #0d1d44;
}
.hx-tag { margin: 12px 0 10px; font: 700 15px var(--font-display); letter-spacing: .08em; color: #cfe0ff; }
.hx-hero p { max-width: 60ch; margin: 0; line-height: 1.55; color: #d7e3ff; font-size: 14px; }
.hx-hero p b { color: var(--hx-yellow); }
.hx-slab {
  justify-self: center; width: 210px; aspect-ratio: 3 / 4.6; transform: rotate(7deg); border-radius: 14px; padding: 10px;
  background: linear-gradient(160deg, rgba(255,255,255,.55), rgba(220,235,255,.25)); border: 2px solid rgba(255,255,255,.7);
  box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 30px rgba(255,255,255,.35);
}
.hx-slab-label {
  display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 6px; margin-bottom: 8px;
  background: #fff; border: 3px solid #d5232b; color: #222; font: 700 9px var(--font-mono);
}
.hx-slab-card {
  height: calc(100% - 44px); border-radius: 8px; position: relative;
  background: conic-gradient(from 210deg at 50% 50%, #ff7a2f, #ffd23a, #ff4f6d, #7c5cff, #2fb3ff, #ff7a2f);
  filter: saturate(1.1); box-shadow: inset 0 0 0 6px #f5d36b;
}
.hx-slab-ball, .hx-cta-ball {
  width: 54px; height: 54px; border-radius: 50%; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #e8343b 0 47%, #1b1b1b 47% 53%, #f4f4f4 53%);
  box-shadow: 0 6px 14px rgba(0,0,0,.4);
}
.hx-slab-ball::after, .hx-cta-ball::after {
  content: ''; position: absolute; inset: 35%; border-radius: 50%; background: #f4f4f4; border: 3px solid #1b1b1b;
}
.hx-cta {
  position: absolute; right: 24px; bottom: 22px; display: flex; align-items: center; gap: 14px; padding: 14px 18px; min-width: 340px;
  border-radius: 16px; border: 1px solid rgba(160, 200, 255, .5); cursor: pointer; text-align: left; color: #fff;
  background: linear-gradient(135deg, rgba(20, 50, 120, .92), rgba(12, 30, 80, .92)); box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.hx-cta .hx-cta-ball { position: relative; left: auto; top: auto; transform: none; flex: none; width: 46px; height: 46px; }
.hx-cta b { display: block; font: 700 16px var(--font-display); letter-spacing: .04em; }
.hx-cta small { color: var(--hx-dim); font-size: 12px; }
.hx-cta-arrow { margin-left: auto; font-size: 30px; color: #cfe0ff; }

/* filters */
.hx-filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px; margin-bottom: 14px;
  border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--hx-line);
}
.hx-seg { display: flex; gap: 6px; }
.hx-seg button {
  padding: 9px 18px; border-radius: 10px; border: 1px solid var(--hx-line); background: rgba(255,255,255,.04);
  color: var(--hx-dim); font: 700 12px var(--font-display); letter-spacing: .06em; cursor: pointer;
}
.hx-seg.sm button { padding: 8px 12px; }
.hx-seg button.active { background: linear-gradient(180deg, #3b7bff, #2659d6); color: #fff; border-color: transparent; }
.hx-seg button:first-child.active .hx-dot { background: #7dffb0; }
.hx-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--hx-green); margin-right: 8px; box-shadow: 0 0 8px var(--hx-green); }
.hx-search {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 10px;
  background: rgba(0,0,0,.25); border: 1px solid var(--hx-line); color: var(--hx-dim);
}
.hx-search input { flex: 1; padding: 10px 0; background: none; border: 0; color: var(--hx-text); font: 14px var(--font-body, inherit); outline: none; }
.hx-sort {
  padding: 9px 12px; border-radius: 10px; border: 1px solid var(--hx-line); background: rgba(0,0,0,.25);
  color: var(--hx-text); font: 600 13px var(--font-display);
}

/* grid + cards */
.hx-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.hx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.hx-card {
  --h: 210; position: relative; display: flex; flex-direction: column; padding: 4px; border-radius: 18px; cursor: pointer;
  background: linear-gradient(160deg, hsl(var(--h) 90% 62%), hsl(calc(var(--h) + 40) 80% 45%) 55%, hsl(calc(var(--h) - 30) 85% 55%));
  box-shadow: 0 10px 26px rgba(0,0,0,.4); transition: transform .12s ease;
}
.hx-card:hover { transform: translateY(-3px); }
.hx-card-in { display: flex; flex-direction: column; border-radius: 15px; overflow: hidden; background: #0f1d40; height: 100%; }
.hx-art {
  position: relative; height: 170px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 20%, hsl(var(--h) 90% 65% / .6), transparent 60%),
              linear-gradient(150deg, hsl(var(--h) 60% 35%), hsl(calc(var(--h) + 60) 60% 18%));
}
.hx-art img { width: 100%; height: 100%; object-fit: cover; }
.hx-art .hx-art-ticker { font: 400 42px 'Luckiest Guy', var(--font-display); color: rgba(255,255,255,.92); text-shadow: 0 4px 0 rgba(0,0,0,.3); }
.hx-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, #0f1d40 100%); }
.hx-badge {
  position: absolute; top: 10px; z-index: 1; padding: 4px 9px; border-radius: 8px; font: 700 11px var(--font-display);
  letter-spacing: .06em; background: rgba(5, 15, 35, .75); border: 1px solid rgba(255,255,255,.25); color: #fff;
}
.hx-badge.l { left: 10px; } .hx-badge.r { right: 10px; font-family: var(--font-mono); }
.hx-badge .hx-dot { width: 7px; height: 7px; margin-right: 6px; }
.hx-card-body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 6px; margin-top: -34px; position: relative; z-index: 1; }
.hx-sym { font: 400 26px 'Luckiest Guy', var(--font-display); letter-spacing: .02em; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.4); }
.hx-namerow { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hx-name { color: #dce6ff; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-pills { display: flex; gap: 4px; flex: none; }
.hx-pill { padding: 3px 7px; border-radius: 6px; font: 700 9.5px var(--font-display); letter-spacing: .05em; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #cfe0ff; }
.hx-pricerow { display: flex; align-items: baseline; justify-content: space-between; }
.hx-price { font: 700 22px var(--font-mono); color: var(--hx-yellow); }
.hx-mc { font: 600 13px var(--font-mono); color: #dce6ff; }
.hx-bar { position: relative; height: 10px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; }
.hx-bar > div { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: linear-gradient(90deg, hsl(var(--h) 90% 60%), #8af0ff); }
.hx-barrow { display: flex; justify-content: space-between; font: 600 11px var(--font-mono); color: var(--hx-dim); }
.hx-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 8px 0; border-top: 1px solid var(--hx-line); border-bottom: 1px solid var(--hx-line); }
.hx-stats b { display: block; font: 700 14px var(--font-mono); color: #fff; }
.hx-stats span { font: 600 9.5px var(--font-display); letter-spacing: .06em; color: var(--hx-dim); }
.up { color: #45e08a !important; } .down { color: #ff6b6b !important; }
.hx-ls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.hx-ls button {
  padding: 11px 0; border-radius: 10px; border: 0; cursor: pointer; color: #fff; font: 700 14px var(--font-display); letter-spacing: .06em;
}
.hx-ls .long { background: linear-gradient(180deg, #33c46f, #1f9c52); box-shadow: 0 3px 0 #13703a; }
.hx-ls .short { background: linear-gradient(180deg, #f25757, #cf3434); box-shadow: 0 3px 0 #8f2020; }
.hx-ls button:disabled { opacity: .55; cursor: default; }
.hx-empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--hx-dim); border: 1px dashed var(--hx-line); border-radius: 16px; }

/* sidebar */
.hx-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 90px; }
.hx-panel { padding: 14px; border-radius: 16px; background: rgba(18, 34, 74, .85); border: 1px solid var(--hx-line); }
.hx-panel.wide { margin-top: 6px; }
.hx-panel h3 { margin: 0 0 10px; font: 700 13px var(--font-display); letter-spacing: .08em; color: #fff; }
.hx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hx-list li { display: grid; grid-template-columns: 18px 36px 1fr auto; gap: 8px; align-items: center; cursor: pointer; }
.hx-list .n { font: 700 12px var(--font-mono); color: var(--hx-dim); }
.hx-list .av { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center;
  font: 700 11px var(--font-display); color: #fff; background: linear-gradient(150deg, hsl(var(--h) 60% 45%), hsl(calc(var(--h) + 60) 60% 25%)); }
.hx-list .av img { width: 100%; height: 100%; object-fit: cover; }
.hx-list .t b { display: block; font: 700 13px var(--font-display); color: #fff; }
.hx-list .t small { color: var(--hx-dim); font-size: 11px; }
.hx-list .v { text-align: right; font: 600 12px var(--font-mono); }
.hx-list .v small { display: block; color: var(--hx-dim); }
.hx-live { padding: 2px 6px; border-radius: 5px; background: rgba(47, 191, 106, .2); color: #6df0a4; font: 700 9px var(--font-display); }

/* detail, forms and the rest on the dark theme */
body.hx .lp-detail { background: #0f1d40; color: var(--hx-text); border-color: #2a4fa3; }
body.hx .lp-detail .lp-label, body.hx .lp-detail label { color: var(--hx-dim); }
body.hx .lp-detail input, body.hx .lp-detail textarea, body.hx .lp-detail select { background: #0b1733; color: var(--hx-text); border-color: var(--hx-line); }
body.hx .lp-stats > div { background: #12224a; border-color: var(--hx-line); }
body.hx .lp-stats b { color: #fff; }
body.hx .lp-sym, body.hx .lp-price { color: #fff; }
body.hx .lp-blurb, body.hx .lp-note, body.hx .lp-about { color: var(--hx-dim); }
body.hx .lp-perp { background: #12224a; border-color: #2a4fa3; }
body.hx .lp-perp-head b { color: #fff; }
body.hx .lp-perp-note { color: var(--hx-dim); }
body.hx .lp-chart { background: #0b1733; border-color: var(--hx-line); }
body.hx .lp-perp-pos { background: #0b1733; }
body.hx .lp-back { color: var(--hx-dim); }
.hx-docs ol { margin: 0; padding-left: 20px; line-height: 1.6; color: #dce6ff; }
.hx-docs li { margin-bottom: 10px; }
.hx-docs b { color: var(--hx-yellow); }
.hx-port-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--hx-line); font: 600 13px var(--font-mono); cursor: pointer; }
.hx-port-row.head { font: 700 11px var(--font-display); color: var(--hx-dim); cursor: default; letter-spacing: .06em; }

@media (max-width: 1100px) {
  .hx-body { grid-template-columns: 1fr; }
  .hx-side { position: static; }
  .hx-hero { grid-template-columns: 1fr; }
  .hx-slab { display: none; }
  .hx-cta { position: static; min-width: 0; }
}
@media (max-width: 640px) {
  .hx-top { flex-wrap: wrap; padding: 10px 16px; }
  .hx-nav { order: 3; width: 100%; overflow-x: auto; }
  .hx-hero { padding: 22px 16px; }
}
.lp-btn.pick { outline: 3px solid var(--hx-yellow, #ffcf3a); outline-offset: 2px; }

/* hero art and logo (original art, made for this page) */
.hx-logo img { display: block; height: 58px; width: auto; }
.hx-hero {
  grid-template-columns: minmax(0, 1fr); min-height: 340px; align-content: start;
  background:
    linear-gradient(90deg, rgba(8, 20, 52, .92) 0%, rgba(8, 20, 52, .7) 34%, rgba(8, 20, 52, 0) 60%),
    url('/art/hero.jpg') right center / cover no-repeat;
}
.hx-hero-text { max-width: 620px; }
.hx-art img { position: absolute; inset: 0; }
/* live trade ticker on the dark theme; hidden while it has nothing to say */
body.hx .lp-feed { background: rgba(18, 34, 74, .85); border: 1px solid var(--hx-line); color: var(--hx-text); margin-bottom: 14px; border-radius: 12px; }
body.hx .lp-feed-track:empty { display: none; }
body.hx .lp-feed:has(.lp-feed-track:empty) { display: none; }
/* one line per figure, whatever the quote unit */
.hx-stats b, .hx-barrow span, .hx-mc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-stats b { font-size: 13px; }
.hx-barrow span { max-width: 60%; }
.hx-grid { align-items: stretch; }

/* launch form on the dark theme */

body.hx .lp-progress-row, body.hx .lp-progress-row .mono { color: #dce6ff; }
body.hx .lp-usd { color: var(--hx-dim); }
body.hx .lp-chip-btn { background: #12224a; color: #dce6ff; border-color: var(--hx-line); }

/* ===================== token page (tp) ===================== */
.tp { --h: 210; margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.tp[hidden] { display: none; }
.tp-back { align-self: flex-start; background: none; border: 0; color: var(--hx-dim); font: 600 13px var(--font-mono); cursor: pointer; }
.tp-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.tp-id { display: flex; gap: 14px; align-items: center; }
.tp-avatar { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; border: 2px solid hsl(var(--h) 80% 60%); }
.tp-title { font: 400 28px 'Luckiest Guy', var(--font-display); color: #fff; letter-spacing: .02em; }
.tp-title small { font: 600 16px var(--font-display); color: #dce6ff; letter-spacing: 0; }
.tp-sub { color: var(--hx-dim); font: 12.5px var(--font-mono); margin: 2px 0 6px; }
.tp-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.tp-statrow { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-statrow > div { min-width: 96px; padding: 8px 12px; border-radius: 10px; background: #0b1733; border: 1px solid var(--hx-line); }
.tp-k { display: block; font: 600 10px var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--hx-dim); }
.tp-statrow b { font: 700 14px var(--font-mono); color: #fff; }
.tp-mcap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; }
.tp-mcap-row { display: flex; align-items: baseline; gap: 12px; }
.tp-mcap-row b { font: 700 34px var(--font-mono); color: var(--hx-yellow); }
.tp-mcap-row small { color: var(--hx-dim); }
.tp-ath { min-width: 260px; flex: 0 1 380px; display: flex; flex-direction: column; gap: 6px; font: 600 12px var(--font-mono); color: var(--hx-dim); }
.tp-ath b { color: #fff; }
.tp-athbar { height: 10px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.tp-athbar i { display: block; height: 100%; background: linear-gradient(90deg, #26a69a, #ffcf3a); }
.tp-progress { display: flex; flex-direction: column; gap: 8px; }
.tp-progress-top, .tp-progress-bot { display: flex; justify-content: space-between; gap: 10px; font: 600 12.5px var(--font-mono); color: var(--hx-dim); }
.tp-progress-top b { color: #fff; font-family: var(--font-display); letter-spacing: .04em; }
.tp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; align-items: start; }
.tp-left { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tp-right { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 90px; }
.tp-chartpanel { padding-bottom: 8px; }
.tp-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-bottom: 8px; }
.tp-legend { min-height: 18px; font: 12px var(--font-mono); color: var(--hx-dim); display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.tp-legend b { color: #fff; font-weight: 600; }
.tp-legend .ma { color: #7fb0e0; }
.tp-chart { height: 440px; width: 100%; }
.tp-chart-empty { padding: 60px 0; text-align: center; color: var(--hx-dim); }
.tp-lowertabs { margin-bottom: 10px; }
.tp-table { width: 100%; border-collapse: collapse; font: 12.5px var(--font-mono); }
.tp-table th { text-align: left; padding: 6px 8px; color: var(--hx-dim); font: 600 10.5px var(--font-display); letter-spacing: .06em; border-bottom: 1px solid var(--hx-line); }
.tp-table td { padding: 7px 8px; border-bottom: 1px solid rgba(140,180,255,.07); color: #dce6ff; }
.tp-table a { color: #9cc1ff; text-decoration: none; }
.tp-pct { position: relative; height: 18px; min-width: 110px; border-radius: 5px; background: rgba(255,255,255,.06); overflow: hidden; }
.tp-pct i { position: absolute; inset: 0 auto 0 0; background: hsl(var(--h) 70% 50% / .45); }
.tp-pct span { position: relative; padding-left: 6px; line-height: 18px; }

.tp-trade { display: flex; flex-direction: column; gap: 12px; }
.tp-modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: #0b1733; }
.tp-modes button { padding: 10px 0; border: 0; border-radius: 9px; background: none; color: var(--hx-dim); font: 700 13px var(--font-display); letter-spacing: .05em; cursor: pointer; }
.tp-modes button.active.buy { background: linear-gradient(180deg, #33c46f, #1f9c52); color: #fff; }
.tp-modes button.active.sell { background: linear-gradient(180deg, #f25757, #cf3434); color: #fff; }
.tp-field label { display: flex; justify-content: space-between; font: 600 11px var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--hx-dim); margin-bottom: 6px; }
.tp-field label b { color: #fff; }
.tp-input { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; background: #0b1733; border: 1px solid var(--hx-line); }
.tp-input input { flex: 1; min-width: 0; padding: 13px 0; background: none; border: 0; color: #fff; font: 600 18px var(--font-mono); outline: none; }
.tp-input span { font: 700 12px var(--font-display); color: var(--hx-dim); }
.tp-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tp-presets button { padding: 7px 0; border-radius: 8px; border: 1px solid var(--hx-line); background: rgba(255,255,255,.04); color: #dce6ff; font: 600 12px var(--font-mono); cursor: pointer; }
.tp-presets button:hover { border-color: var(--hx-yellow); }
.tp-est { font: 12.5px var(--font-mono); color: var(--hx-dim); }
.tp-est b { color: #fff; }
.tp-go { display: block; width: 100%; padding: 14px 0; border: 0; border-radius: 12px; cursor: pointer; text-align: center; text-decoration: none;
  color: #fff; font: 700 15px var(--font-display); letter-spacing: .05em; }
.tp-go.buy { background: linear-gradient(180deg, #33c46f, #1f9c52); box-shadow: 0 3px 0 #13703a; }
.tp-go.sell { background: linear-gradient(180deg, #f25757, #cf3434); box-shadow: 0 3px 0 #8f2020; }
.tp-go.grad { background: linear-gradient(180deg, #ffd85a, #f5b800); color: #1a2440; box-shadow: 0 3px 0 #b88700; }
.tp-go[hidden] { display: none; }
.tp-go:disabled { opacity: .5; cursor: default; }
.tp-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--hx-dim); }
.tp-note a { color: #9cc1ff; }
.hx-hero[hidden] { display: none; }
.cl-intro { max-width: 80ch; margin-bottom: 14px; }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.cl-card { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: #0b1733; border: 1px solid var(--hx-line); }
.cl-card img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 10px; background: #13213f; }
.cl-card h4 { margin: 0; font: 700 15px var(--font-display); color: #fff; }
.cl-tok { display: flex; align-items: center; gap: 6px; font: 600 12px var(--font-mono); color: #9cc1ff; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.cl-rows { display: grid; gap: 4px; font: 12.5px var(--font-mono); color: var(--hx-dim); }
.cl-rows div { display: flex; justify-content: space-between; gap: 8px; }
.cl-rows b { color: #fff; font-weight: 600; }
.cl-rows .short b { color: #ff8a8a; }
.cl-card .tp-go { padding: 11px 0; font-size: 13.5px; }
.cl-empty { grid-column: 1 / -1; padding: 30px 0; text-align: center; }
.cv-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.cv-sum > div { padding: 9px 11px; border-radius: 9px; background: #0b1733; }
.cv-sum span { display: block; font: 600 10px var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--hx-dim); }
.cv-sum b { font: 600 15px var(--font-mono); color: #fff; }
.cv-list { display: grid; gap: 10px; }
.cv-card { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: #0b1733; border: 1px solid var(--hx-line); }
.cv-card img { width: 72px; height: 100px; object-fit: cover; border-radius: 6px; background: #13213f; }
.cv-card h4 { margin: 0 0 4px; font: 700 14px var(--font-display); color: #fff; }
.cv-card p { margin: 0; font: 12px var(--font-mono); color: var(--hx-dim); }
.cv-card p b { color: #fff; }
.cv-card .tp-go { padding: 10px 14px; font-size: 13px; width: auto; }
@media (max-width: 560px) {
  .cv-sum { grid-template-columns: 1fr 1fr; }
  .cv-card { grid-template-columns: 56px 1fr; }
  .cv-card img { width: 56px; height: 78px; }
  .cv-card .tp-go { grid-column: 1 / -1; }
}
.tp-perp-status { padding: 8px 10px; border-radius: 8px; font: 700 11.5px var(--font-display); letter-spacing: .06em; text-align: center; }
.tp-perp-status.open { background: rgba(47,191,106,.15); color: #6df0a4; }
.tp-perp-status.wait { background: rgba(255,207,58,.12); color: var(--hx-yellow); }
.tp-perp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tp-perp-grid > div { padding: 8px 10px; border-radius: 8px; background: #0b1733; }
.tp-perp-grid span { display: block; font: 600 9.5px var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--hx-dim); }
.tp-perp-grid b { font: 600 13px var(--font-mono); color: #fff; }
.tp-pos { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; background: #0b1733; font: 12px var(--font-mono); }
.tp-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-wallet { font: 12px var(--font-mono); color: var(--hx-dim); text-align: center; }
.tp-about p { margin: 0 0 10px; color: #dce6ff; line-height: 1.55; font-size: 13.5px; }
.tp-facts { display: grid; gap: 6px; margin: 10px 0; }
.tp-facts > div { display: flex; justify-content: space-between; font: 12px var(--font-mono); color: var(--hx-dim); }
.tp-facts b { color: #fff; font-weight: 600; }
.tp-facts a { color: #9cc1ff; }
@media (max-width: 1100px) {
  .tp-layout { grid-template-columns: 1fr; }
  .tp-right { position: static; }
  .tp-chart { height: 340px; }
}

/* card picker */
.nc { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 16px; }
.nc > label { font: 700 12px var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--hx-yellow); }
.nc-search span { color: var(--hx-dim); }
.nc-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; max-height: 520px; overflow-y: auto; }
.nc-card { display: flex; flex-direction: column; gap: 3px; padding: 8px; border-radius: 12px; border: 1px solid var(--hx-line);
  background: #0b1733; color: #dce6ff; text-align: left; cursor: pointer; }
.nc-card:hover { border-color: var(--hx-yellow); }
.nc-card img { width: 100%; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 6px; }
.nc-card b { font: 700 12.5px var(--font-display); }
.nc-card small { font: 10.5px var(--font-mono); color: var(--hx-dim); }
.nc-noimg { aspect-ratio: 63 / 88; display: flex; align-items: center; justify-content: center; color: var(--hx-dim); font-size: 11px; }
.nc-picked { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: #0b1733; border: 2px solid var(--hx-yellow); }
.nc-picked[hidden] { display: none; }
.nc-picked img { width: 110px; border-radius: 8px; }
.nc-picked div { display: flex; flex-direction: column; gap: 4px; }
.nc-picked b { font: 400 22px 'Luckiest Guy', var(--font-display); color: #fff; }
.nc-picked span { font: 12.5px var(--font-mono); color: var(--hx-dim); }
.nc-picked .lp-chip-btn { align-self: flex-start; margin-top: 6px; }

/* ---------- tighter Hatchery ----------
   Full width, a shorter hero with the filters riding its lower edge, tiles
   that show a card's illustration rather than its frame, and a glow in each
   tile's element colour. */
body.hx .lp-wrap { max-width: 1880px; padding: 0 24px 32px; }
.hx-hero { min-height: 300px; margin: 16px 0 0; padding: 28px 34px 74px; }
.hx-hero h1 { font-size: clamp(48px, 6.4vw, 96px); }
.hx-tag { margin: 10px 0 8px; }
.hx-hero p { font-size: 13.5px; line-height: 1.5; max-width: 58ch; }
.hx-cta { bottom: 74px; }
.hx-filters {
  position: relative; z-index: 2; margin: -52px 18px 16px; padding: 8px;
  background: rgba(9, 20, 48, .9); backdrop-filter: blur(12px);
  border-color: rgba(140, 180, 255, .28); box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}
.hx-body { grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
.hx-grid { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 18px; }

.hx-card {
  padding: 3px;
  box-shadow: 0 0 0 1px hsl(var(--h) 90% 65% / .55), 0 0 26px hsl(var(--h) 95% 55% / .32), 0 12px 28px rgba(0, 0, 0, .45);
}
.hx-card:hover { box-shadow: 0 0 0 1px hsl(var(--h) 90% 70% / .8), 0 0 36px hsl(var(--h) 95% 58% / .5), 0 16px 32px rgba(0, 0, 0, .5); }
.hx-art { height: 196px; overflow: hidden; }
/* A card scan is ~0.717 wide per tall; its illustration sits about 8–92%
   across and from 11% down. Scale it so that window fills the tile. */
.hx-art img.scan { inset: auto; left: -9.5%; top: 0; width: 119%; height: auto; object-fit: initial; transform: translateY(-11.5%); }
.hx-art::after { background: linear-gradient(180deg, rgba(15, 29, 64, 0) 40%, rgba(15, 29, 64, .75) 78%, #0f1d40 100%); }
.hx-card-body { gap: 7px; margin-top: -40px; padding: 10px 14px 14px; }
.hx-sym { display: flex; align-items: center; gap: 7px; font-size: 28px; }
.hx-el {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-style: normal;
  background: hsl(var(--h) 80% 50% / .35); border: 1px solid hsl(var(--h) 90% 70% / .6); text-shadow: none;
}
.hx-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; font-size: 9.5px; }
.hx-pill.cert i { display: grid; place-items: center; width: 12px; height: 12px; border-radius: 3px; background: #3b7bff; color: #fff; font: 700 9px/1 var(--font-display); font-style: normal; }
.hx-price { font-size: 23px; }
.hx-prog { display: flex; align-items: center; gap: 8px; }
.hx-prog .hx-bar { flex: 1; height: 8px; }
.hx-pct { flex: none; padding: 2px 8px; border-radius: 999px; font: 700 10px var(--font-display); letter-spacing: .05em; color: #dce6ff; background: rgba(255, 255, 255, .07); border: 1px solid var(--hx-line); }
.hx-barrow { margin-top: -2px; }
.hx-stats { padding: 7px 0; }
.hx-stats > div + div { border-left: 1px solid var(--hx-line); }
.hx-ls button { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 0; }
.hx-ls svg { width: 15px; height: 15px; fill: currentColor; }

.hx-panel h3 { font-size: 12.5px; }
.hx-list { gap: 6px; }
.hx-list li { grid-template-columns: 22px 42px 1fr auto; padding: 5px; margin: 0 -5px; border-radius: 10px; }
.hx-list li:hover { background: rgba(255, 255, 255, .05); }
.hx-list .n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .07); font-size: 11px; color: #cfe0ff; }
.hx-list .av { width: 42px; height: 42px; border-radius: 9px; position: relative; box-shadow: 0 0 0 1px hsl(var(--h) 80% 60% / .5); }
.hx-list .av img.scan { position: absolute; left: -9.5%; top: 0; width: 119%; height: auto; transform: translateY(-11.5%); object-fit: initial; }
.hx-list .v { font-size: 12.5px; font-weight: 700; }

@media (max-width: 1100px) {
  .hx-body { grid-template-columns: minmax(0, 1fr); }
  .hx-hero { padding-bottom: 28px; }
  .hx-filters { margin: 12px 0 16px; }
  .hx-cta { bottom: auto; }
}
@media (max-width: 640px) {
  body.hx .lp-wrap { padding: 0 16px 24px; }
  .hx-grid { grid-template-columns: minmax(0, 1fr); }
  /* The hero art sits behind the whole text column here; darken it so the text reads. */
  .hx-hero {
    background:
      linear-gradient(180deg, rgba(8, 20, 52, .78), rgba(8, 20, 52, .9)),
      url('/art/hero.jpg') 70% center / cover no-repeat;
  }
  .hx-art { height: 210px; }
}

/* ---------- docs ----------
   A banner with the key numbers, then one card per step with its own art,
   alternating sides, and the questions people actually ask. */
.dc-hero {
  position: relative; margin: 16px 0 18px; padding: 34px 34px 28px; border-radius: 22px; overflow: hidden; border: 1px solid var(--hx-line);
  background: linear-gradient(90deg, rgba(8, 20, 52, .95) 0%, rgba(8, 20, 52, .78) 45%, rgba(8, 20, 52, .35) 100%), url('/art/docs-vault.jpg') right center / cover no-repeat;
}
.dc-hero-text { max-width: 640px; }
.dc-hero h2 { margin: 6px 0 12px; font: 400 clamp(40px, 5.4vw, 76px)/.95 'Luckiest Guy', var(--font-display); color: #fff; -webkit-text-stroke: 2px #0d1d44; text-shadow: 0 6px 0 #0d1d44; }
.dc-hero h2 em { font-style: normal; color: var(--hx-yellow); }
.dc-hero p { margin: 0; color: #d7e3ff; font-size: 15px; line-height: 1.55; }
.dc-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.dc-stats > div { padding: 12px 14px; border-radius: 14px; background: rgba(9, 20, 48, .82); border: 1px solid rgba(140, 180, 255, .25); backdrop-filter: blur(6px); }
.dc-stats b { display: block; font: 700 22px var(--font-mono); color: var(--hx-yellow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-stats span { font: 600 10.5px var(--font-display); letter-spacing: .07em; text-transform: uppercase; color: var(--hx-dim); }

.dc-step {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch; margin-bottom: 18px;
  border-radius: 20px; overflow: hidden; background: rgba(18, 34, 74, .85); border: 1px solid var(--hx-line);
}
.dc-step > img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; }
.dc-step.flip > img { order: 2; }
.dc-body { position: relative; padding: 30px 32px; }
.dc-n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px;
  font: 400 26px 'Luckiest Guy', var(--font-display); color: #1a2440; background: linear-gradient(180deg, #ffd85a, #f5b800); box-shadow: 0 3px 0 #b88700;
}
.dc-body h3 { margin: 0 0 10px; font: 700 24px var(--font-display); color: #fff; letter-spacing: .01em; }
.dc-body p { margin: 0 0 12px; color: #d7e3ff; font-size: 14.5px; line-height: 1.6; }
.dc-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.dc-body li { position: relative; padding-left: 22px; color: #c9d7f5; font-size: 14px; line-height: 1.55; }
.dc-body li::before { content: '◆'; position: absolute; left: 0; top: 0; color: var(--hx-yellow); font-size: 11px; line-height: 2; }
.dc-body b { color: var(--hx-yellow); }

.dc-bar { display: flex; gap: 3px; height: 34px; margin: 4px 0 16px; border-radius: 10px; overflow: hidden; }
.dc-bar i { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 0 6px; font: 700 11.5px var(--font-display); font-style: normal; letter-spacing: .03em; color: #fff; white-space: nowrap; overflow: hidden; }
.dc-bar .c, .dc-legend .c::before { background: #33c46f; }
.dc-bar .p, .dc-legend .p::before { background: #3b7bff; }
.dc-bar .v, .dc-legend .v::before { background: linear-gradient(90deg, #f5b800, #ffd85a); }
.dc-bar .v { color: #1a2440; }
.dc-bar .r, .dc-legend .r::before { background: #5b6787; }
.dc-legend { display: flex; flex-wrap: wrap; gap: 14px; font: 600 12px var(--font-display); color: var(--hx-dim); }
.dc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dc-legend span::before { content: ''; width: 12px; height: 12px; border-radius: 3px; }

.dc-faq details { border-top: 1px solid var(--hx-line); }
.dc-faq summary { list-style: none; cursor: pointer; padding: 14px 4px; font: 700 15px var(--font-display); color: #fff; display: flex; justify-content: space-between; }
.dc-faq summary::-webkit-details-marker { display: none; }
.dc-faq summary::after { content: '+'; color: var(--hx-yellow); font-size: 20px; line-height: 1; }
.dc-faq details[open] summary::after { content: '−'; }
.dc-faq details p { margin: 0 0 14px; padding: 0 4px; color: #c9d7f5; font-size: 14px; line-height: 1.6; max-width: 80ch; }
.dc-faq .lp-note { margin-top: 12px; }

@media (max-width: 1100px) {
  .dc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dc-hero { padding: 24px 18px 20px; background: linear-gradient(180deg, rgba(8, 20, 52, .8), rgba(8, 20, 52, .92)), url('/art/docs-vault.jpg') center / cover no-repeat; }
  .dc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dc-step { grid-template-columns: minmax(0, 1fr); }
  .dc-step > img, .dc-step.flip > img { order: 0; min-height: 0; height: 190px; }
  .dc-body { padding: 22px 18px; }
}
/* the token name follows the card and cannot be typed over */
#n-name[readonly] { cursor: not-allowed; border-style: dashed; color: var(--hx-yellow, #ffcf3a); font-weight: 700; }
.lp-side.lp-name { grid-column: span 2; }
@media (max-width: 560px) { .lp-side.lp-name { grid-column: 1 / -1; } }

/* ---------- token page and phone navigation ---------- */
.tp-back {
  display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 10px; padding: 9px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--hx-line); color: #dce6ff; font: 700 13px var(--font-display); letter-spacing: .04em;
}
.tp-back:hover { border-color: var(--hx-yellow); color: #fff; }

@media (max-width: 640px) {
  /* The tabs become an app-style bar along the bottom, always in reach. */
  .hx-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; order: 0; width: auto; overflow: visible;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin: 0; border-radius: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(9, 20, 48, .96); backdrop-filter: blur(12px); border: 0; border-top: 1px solid var(--hx-line);
  }
  .hx-nav button { padding: 7px 0 6px; font-size: 9.5px; letter-spacing: .05em; min-width: 0; }
  .hx-ico { font-size: 17px; }
  body.hx { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .hx-top { flex-wrap: nowrap; gap: 10px; padding: 10px 14px; }
  .hx-logo img { height: 44px; }
  .hx-wallet { gap: 8px; }
  .hx-net { display: none; }
  .hx-connect { padding: 10px 14px; font-size: 12.5px; }
}
@media (max-width: 640px) {
  /* backdrop-filter on the header would make the fixed tab bar stick to the
     header instead of the screen; a solid header keeps it at the bottom. */
  .hx-top { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11, 23, 51, .98); }
  /* On a phone the trade panel comes right after the token's header and
     curve, before the chart and the trades. */
  .tp-layout { display: flex; flex-direction: column; }
  .tp-right { order: -1; position: static; }
  .tp-mcap { display: none; }
  .tp-progress-bot { flex-direction: column; gap: 4px; }
}
@media (max-width: 640px) { .tp-right { width: 100%; } }

/* project links: X in the header, our token once it exists, and a footer */
.hx-x { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--hx-line); color: #fff; }
.hx-x svg { width: 17px; height: 17px; fill: currentColor; }
.hx-x:hover { border-color: var(--hx-yellow); }
.hx-ptoken { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; text-decoration: none; background: rgba(255, 207, 58, .12); border: 1px solid rgba(255, 207, 58, .45); color: #fff; font: 700 12.5px var(--font-display); }
.hx-ptoken span { color: var(--hx-yellow); font: 600 11.5px var(--font-mono); }
.hx-foot { margin-top: 36px; padding: 22px 4px 8px; border-top: 1px solid var(--hx-line); color: var(--hx-dim); font-size: 12px; }
.hx-foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
.hx-foot-links a { color: #cfe0ff; text-decoration: none; font: 600 12.5px var(--font-display); }
.hx-foot-links a:hover { color: var(--hx-yellow); }
.hx-foot p { margin: 0; max-width: 80ch; line-height: 1.5; }
@media (max-width: 640px) { .hx-ptoken span { display: none; } .hx-x { width: 36px; height: 36px; } }
.hx-ptoken[hidden] { display: none; }
