:root {
  --bg: #0b0d11;
  --bg-2: #12161c;
  --bg-3: #191e27;
  --steel: #8d97a6;
  --steel-2: #c3cbd6;
  --ink: #f3f1ec;
  --orange: #ff7a1a;
  --orange-2: #ffb066;
  --orange-deep: #c24d00;
  --ok: #3ecf8e;
  --sell: #ff5a6a;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  max-width: 100%;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(255, 122, 26, 0.16), transparent 50%),
    radial-gradient(900px 400px at -10% 20%, rgba(140, 160, 190, 0.08), transparent 45%),
    var(--bg);
  font: 16px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-2); }
a:hover { color: var(--orange); }
button, input { font: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--orange);
  color: #111;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; max-width: 100%; min-width: 0; }

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(11, 13, 17, 0.82);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brand img { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); }
.nav { display: flex; gap: 14px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--steel-2); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--orange); }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding: 56px 0 36px;
  min-width: 0;
}
.hero > * { min-width: 0; max-width: 100%; }
.kicker {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}
h1 {
  font-size: clamp(36px, 9vw, 76px);
  line-height: 0.95;
  margin: 8px 0 12px;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.tagline { color: var(--steel-2); font-size: clamp(16px, 4.6vw, 20px); margin: 0 0 22px; overflow-wrap: anywhere; max-width: 100%; }
.ca-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  margin-bottom: 18px;
  min-width: 0;
  max-width: 100%;
}
.ca-box code {
  flex: 1 1 12rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: anywhere;
  padding: 10px 8px;
  font-size: 13px;
  color: var(--steel-2);
}
.ca-box .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.hero-art {
  position: relative;
  min-width: 0;
  max-width: 100%;
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-art .badge {
  position: absolute;
  left: 16px;
  top: 16px;
}

.btns { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.btn { max-width: 100%; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  color: #140b04;
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
}
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn:hover { filter: brightness(1.06); }
.btn:focus-visible, input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.note { color: var(--steel); font-size: 13px; margin-top: 10px; overflow-wrap: anywhere; }

section { padding: 28px 0 10px; }
section h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.lede { color: var(--steel); margin: 0 0 18px; overflow-wrap: anywhere; }

.grid-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.card {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
}
.stat .label { color: var(--steel); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.stat .value { font-size: clamp(16px, 5vw, 22px); font-weight: 800; margin-top: 6px; overflow-wrap: anywhere; word-break: break-word; }
.stat .value.up { color: var(--ok); }
.stat .value.down { color: var(--sell); }
.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--steel);
  font-size: 13px;
  margin-bottom: 12px;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--steel); }
.dot.live { background: var(--ok); box-shadow: 0 0 0 4px rgba(62, 207, 142, 0.15); }
.dot.delay { background: #f5c14a; }
.dot.err { background: var(--sell); }

.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; min-width: 0; }
.split > * { min-width: 0; }
.feed { display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow: auto; }
.trade {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  min-width: 0;
}
.trade img {
  width: 52px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
  border-radius: 12px;
}
.trade .who, .trade .meta { min-width: 0; overflow-wrap: anywhere; }
.trade .who { font-weight: 700; }
.trade .meta { color: var(--steel); font-size: 13px; }
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.pill.buy { background: rgba(62, 207, 142, 0.16); color: var(--ok); }
.pill.sell { background: rgba(255, 90, 106, 0.16); color: var(--sell); }
.pill.whale { background: rgba(255, 122, 26, 0.2); color: var(--orange-2); }
.pill.dev {
  background: rgba(255, 210, 74, 0.18);
  color: #ffd24a;
  border: 1px solid rgba(255, 210, 74, 0.45);
  letter-spacing: 0.06em;
}
.amt.buy { color: var(--ok); font-weight: 800; }
.amt.sell { color: var(--sell); font-weight: 800; }

.meter-card .meter {
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: #2a1a16;
  border: 1px solid var(--line);
}
.meter .buy { background: var(--ok); width: 50%; }
.meter .sell { background: var(--sell); width: 50%; }
.meter-legend { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: var(--steel); font-size: 13px; margin-top: 8px; }
.controls { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.reaction { text-align: center; }
.reaction img {
  width: 88px;
  height: auto;
  max-height: 88px;
  object-fit: contain;
  border-radius: 16px;
  margin: 8px auto;
}
.big-badge {
  display: block;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 122, 26, 0.12);
  color: var(--orange-2);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; }
.dev-grid > * { min-width: 0; }
.live-note { color: var(--orange-2); font-weight: 700; margin: 8px 0 0; overflow-wrap: anywhere; }
#dev-wallet, code { overflow-wrap: anywhere; word-break: break-all; min-width: 0; max-width: 100%; display: inline-block; }

.tracker-box input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #0d1016;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.tracker-actions { display: flex; gap: 8px; margin: 10px 0 16px; flex-wrap: wrap; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.warn {
  background: rgba(255, 122, 26, 0.08);
  border: 1px solid rgba(255, 122, 26, 0.2);
  border-radius: 12px;
  padding: 12px;
  color: var(--steel-2);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.fineprint { color: var(--steel); font-size: 13px; overflow-wrap: anywhere; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.gallery a {
  color: inherit;
  text-decoration: none;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.gallery img { width: 100%; height: auto; object-fit: contain; vertical-align: middle; }
.gallery span { display: block; padding: 8px 10px 12px; color: var(--steel-2); font-size: 13px; }

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: center;
  min-width: 0;
}
.about > * { min-width: 0; }
.about img { width: 100%; height: auto; object-fit: contain; border-radius: 24px; border: 1px solid var(--line); }

footer {
  margin-top: 40px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--steel);
  font-size: 13px;
}
.muted { color: var(--steel); }

#toast {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1b2118;
  color: var(--ok);
  border: 1px solid rgba(62, 207, 142, 0.3);
  padding: 10px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 30;
  max-width: calc(100% - 24px);
  overflow-wrap: anywhere;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 25;
}

@media (max-width: 900px) {
  .hero, .split, .dev-grid, .about { grid-template-columns: 1fr; }
  .grid-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { grid-template-columns: 1fr; }
  .nav { display: none; }
  h1 { font-size: clamp(36px, 11vw, 48px); }
  .hero { padding-top: 28px; }
  .ca-box { flex-direction: column; }
  .ca-box code {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-all;
    overflow-wrap: anywhere;
  }
  .ca-box .btn { width: 100%; }
}

.status.inline { margin: 0; }
.grid-stats.two { grid-template-columns: 1fr 1fr; margin-top: 12px; }
.feed.short { max-height: 280px; margin-top: 10px; }

.about p, footer p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ---------- share rewards card ---------- */
.lede.tight { margin-bottom: 12px; }
.share-card { margin-top: 16px; }
.share-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.share-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}
.share-grid > * { min-width: 0; max-width: 100%; }
.share-form .label { display: block; margin: 10px 0 6px; }
.share-form input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #0d1016;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.share-actions { margin-top: 14px; }
.share-preview-wrap {
  background: #0d1016;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  overflow: hidden;
}
#share-canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: #0b0d11;
}

/* ---------- PFP maker ---------- */
.pfp-box { padding: 18px; }
.pfp-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}
.pfp-layout > * { min-width: 0; max-width: 100%; }
.pfp-preview-wrap {
  background: #0d1016;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  position: sticky;
  top: 80px;
}
#pfp-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 14px;
  background: #0b0d11;
}
.pfp-field {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px 12px;
  margin: 0 0 12px;
  min-width: 0;
}
.pfp-field legend {
  padding: 0 6px;
  color: var(--steel);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.chip-row.compact { margin-top: 8px; }
.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--steel-2);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  max-width: 100%;
}
.chip:hover { border-color: rgba(255, 122, 26, 0.45); color: var(--ink); }
.chip.active, .chip[aria-pressed="true"] {
  background: rgba(255, 122, 26, 0.16);
  border-color: rgba(255, 122, 26, 0.55);
  color: var(--orange-2);
}
.chip.swatch {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 12px;
  position: relative;
}
.chip.swatch.active::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 8px;
  border: 2px solid #fff;
  pointer-events: none;
}
.chip.thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0d1016;
}
.chip.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chip.toggle {
  border-radius: 12px;
}
.pfp-caption-row { margin-bottom: 8px; }
.pfp-caption-row .label { display: block; margin-bottom: 6px; }
.pfp-caption-row .chip-row { margin-top: 0; }

@media (max-width: 900px) {
  .share-grid, .pfp-layout { grid-template-columns: 1fr; }
  .pfp-preview-wrap { position: static; }
}

.scam-notice {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #ff6b3d;
  border-left-width: 4px;
  border-radius: 14px;
  background: rgba(255, 107, 61, 0.08);
}
.scam-notice strong { color: var(--orange); display: block; margin-bottom: 4px; }
.scam-notice p { margin: 0; }

.stat .sub { color: var(--steel); font-size: 13px; margin-top: 4px; min-height: 1em; }

.grid-stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid-stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* compact CA bar */
.ca-box, .ca-box { display: inline-flex; flex-direction: row !important; flex-wrap: nowrap; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; border-radius: 999px; width: auto; max-width: min(100%, 460px); margin-bottom: 16px; }
.ca-box code { flex: 1 1 auto; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; word-break: normal !important; padding: 0; font-size: 12px; }
.ca-box .btn { width: auto !important; padding: 6px 12px; font-size: 12px; min-height: 0; border-radius: 999px; }

/* ca pill v3 */
.ca-box { width: fit-content !important; max-width: 100%; gap: 8px; padding: 3px 3px 3px 12px; }
.ca-box code { flex: 0 1 auto; font-size: 12px; }
.ca-box .btn { padding: 5px 10px; font-size: 12px; }
