/* Fomonsters — deep-space theme. Variable names are legacy; roles:
   --acid = primary (nebula violet), --pink = hot magenta, --cyan = teal, --amber = star gold, --violet = rank-up, --red = error */
:root {
  --bg: #07061a;
  --bg-2: #0e0b2a;
  --surface: rgba(24, 19, 64, 0.42);
  --surface-2: rgba(40, 32, 96, 0.55);
  --line: rgba(160, 150, 255, 0.16);
  --line-2: rgba(160, 150, 255, 0.3);
  --text: #f3f0ff;
  --muted: #a49fcb;
  --pink: #ff5ecf;
  --cyan: #3de1d4;
  --acid: #8b7bff;
  --amber: #ffcf5c;
  --red: #ff5577;
  --violet: #c4b5fd;
  --radius: 20px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --head: 'Unbounded', 'Space Grotesk', system-ui, sans-serif;
  --body: 'Space Grotesk', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: radial-gradient(1100px 520px at 85% -10%, rgba(0,217,126,.12) 0%, transparent 60%),
              radial-gradient(900px 500px at -10% 30%, rgba(255,77,106,.07) 0%, transparent 55%), var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--mono);
  min-height: 100vh;
  overflow-x: hidden;
}
img { image-rendering: auto; }
a { color: inherit; }
code { font-family: var(--mono); background: #0f1a16; border: 1px solid #1d3a2e; padding: 1px 6px; border-radius: 6px; color: var(--acid); }
[hidden] { display: none !important; }

#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.grow { flex: 1; }
.neon-pink { color: var(--acid); }

/* ---------- preview bar ---------- */
.preview-bar {
  position: relative; z-index: 45; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 16px; font-size: 12px; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(255,210,63,.12) 0 12px, rgba(255,210,63,.05) 12px 24px), #141105;
  border-bottom: 1px solid rgba(255,210,63,.35); color: #f5e7b0;
}
.preview-bar b { color: var(--amber); }
.pv-count { font-weight: 700; color: var(--amber); font-variant-numeric: tabular-nums; }
.preview-bar a { color: var(--acid); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
  padding: 12px max(16px, calc((100% - 1200px) / 2));
  background: linear-gradient(to bottom, rgba(11,15,20,.95), rgba(11,15,20,.8));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 8px; border: 1px solid var(--line-2); }
.brand-name { font: 800 22px/1 var(--head); letter-spacing: -.02em; }
.brand-tick { padding: 3px 7px; border-radius: 6px; background: rgba(0,217,126,.12); color: var(--acid); font-weight: 600; }
.tabs { display: flex; gap: 4px; background: #0e141b; border: 1px solid var(--line); padding: 4px; border-radius: 999px; }
.tab { text-decoration: none; padding: 6px 14px; border-radius: 999px; font: 600 14px var(--head); color: var(--muted); transition: .2s; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--text); color: var(--bg); }
.top-right { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--muted); transition: .2s; }
.icon-btn:hover { color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 12px rgba(62,166,255,.3); }
.icon-btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }

/* ---------- buttons, chips ---------- */
.btn {
  --c: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  font: 700 14px/1 var(--head); letter-spacing: 0; text-decoration: none;
  cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s, border-color .2s, filter .2s; color: #04120b;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn-acid { background: var(--acid); box-shadow: 0 8px 24px -10px rgba(0,217,126,.8); }
.btn-cyan { background: var(--text); color: var(--bg); }
.btn-pink { background: var(--amber); color: #1a1400; box-shadow: 0 8px 24px -10px rgba(255,210,63,.8); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.link { background: none; border: 0; color: var(--cyan); font: 12px var(--mono); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.chip-demo { color: var(--amber); border-color: rgba(255,210,63,.5); background: rgba(255,210,63,.08); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); vertical-align: middle; }
.dot.live { background: var(--acid); box-shadow: 0 0 10px var(--acid); animation: pulse 1.6s infinite; }
.dot.off { background: var(--pink); box-shadow: 0 0 10px var(--pink); animation: none; }
@keyframes pulse { 50% { opacity: .35; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--mono); letter-spacing: .18em; color: var(--cyan); text-transform: uppercase; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; padding: 56px 0 36px; align-items: start; }
.hero h1 { font: 800 clamp(42px, 6.2vw, 82px)/.98 var(--head); letter-spacing: -.035em; margin: 16px 0 0; }
.hero h1 .hl { color: var(--muted); }
.hero h1 .hl .neon-pink { color: var(--acid); }
.lead { font-size: 16px; color: #b9c6d3; max-width: 56ch; margin: 22px 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- ticker tape ---------- */
.tape { position: relative; z-index: 30; overflow: hidden; border-bottom: 1px solid var(--line); background: #0d1218; height: 34px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tape-track { display: inline-flex; gap: 28px; white-space: nowrap; padding: 0 16px; height: 34px; align-items: center; font: 500 12px var(--mono); animation: tape 60s linear infinite; will-change: transform; }
.tape:hover .tape-track { animation-play-state: paused; }
@keyframes tape { to { transform: translateX(-50%); } }
.tape-item { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }
.tape-item img { width: 20px; height: 20px; border-radius: 4px; }
.tape-item b { color: var(--text); font-weight: 600; }
.tape-item .up { color: var(--acid); } .tape-item .dn { color: var(--pink); }

/* ---------- FOMO meter ---------- */
.meter { margin-top: 14px; padding: 14px 16px; }
.meter-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.meter-head b { font: 800 22px var(--head); letter-spacing: -.01em; }
.meter-head .mono { margin-left: auto; }
.meter-bar { position: relative; height: 12px; margin: 12px 0 6px; border-radius: 999px; background: linear-gradient(90deg, #3ea6ff, #00d97e 35%, #ffd23f 65%, #ff4d6a); opacity: .9; }
.meter-bar i { position: absolute; inset: 0; left: auto; background: rgba(11,15,20,.72); border-radius: 0 999px 999px 0; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.meter-needle { position: absolute; top: -5px; width: 4px; height: 22px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 3px var(--bg); transform: translateX(-50%); transition: left .8s cubic-bezier(.2,.8,.2,1); }
.meter-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat-k { font: 600 11px var(--mono); letter-spacing: .16em; color: var(--muted); }
.stat-v { font: 700 30px/1.15 var(--head); margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 12px; color: var(--muted); }
.seg { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; margin-top: 8px; }
.seg i { height: 8px; border-radius: 2px; background: #1c2632; }
.seg i.on { background: var(--acid); box-shadow: 0 0 8px rgba(0,217,126,.5); }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(8px); padding: 18px; }
.card-head { display: flex; align-items: center; gap: 12px; margin: -18px -18px 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(10,8,20,.6); border-radius: var(--radius) var(--radius) 0 0; }
.card-head > :nth-child(2) { flex: 1; }
.term-dots { display: inline-flex; gap: 6px; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.term-dots i:nth-child(1) { background: var(--pink); } .term-dots i:nth-child(2) { background: var(--amber); } .term-dots i:nth-child(3) { background: var(--acid); }
.card-title { font: 800 17px var(--head); letter-spacing: -.01em; margin-bottom: 8px; }

/* hatch preview */
.hatch { position: sticky; top: 84px; }
.frame {
  position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 1px solid var(--line-2);
  border-radius: 12px; overflow: hidden; background: #000; cursor: zoom-in;
  box-shadow: 0 0 0 4px #0d1319, 0 0 40px -6px rgba(177,140,255,.45);
}
.frame img { width: 100%; height: 100%; display: block; }
.frame.swap img { animation: boot .45s steps(6); }
@keyframes boot {
  0% { filter: brightness(3) contrast(2) hue-rotate(90deg); transform: scaleY(.02); }
  40% { filter: brightness(1.6) hue-rotate(-60deg); transform: scaleY(1) translateX(6px); }
  70% { transform: translateX(-4px); filter: saturate(2); }
  100% { transform: none; filter: none; }
}
.frame-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0,0,0,.18) 0 2px, transparent 2px 4px), radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.45)); }
.frame-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 6px; background: var(--amber); color: #111; font: 700 12px var(--head); letter-spacing: .1em; }
.traits-mini { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; min-height: 56px; align-content: flex-start; }
.traits-mini span { font-size: 11px; padding: 3px 8px; border-radius: 6px; background: #16202a; border: 1px solid var(--line); color: #c8d4df; }
.traits-mini span b { color: var(--muted); font-weight: 500; margin-right: 4px; }
.hatch-actions { display: flex; gap: 8px; }

/* ---------- feed ---------- */
.grid-2 { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; margin-top: 8px; }
.feed-card { display: flex; flex-direction: column; min-height: 0; }
.feed { height: 620px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; padding: 0 8px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; mask-image: linear-gradient(to bottom, #000 90%, transparent); }
.fi { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; padding: 10px 8px; border-radius: 10px; align-items: start; transition: background .2s; }
.fi:hover { background: rgba(255,255,255,.03); }
.fi.new { animation: slideIn .5s ease-out; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); background: rgba(0,217,126,.08); } }
.fi-av { width: 32px; height: 32px; border-radius: 8px; image-rendering: pixelated; }
.fi-top { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.fi-h { font-weight: 700; color: #fff; }
.fi-t { color: var(--muted); font-size: 12px; }
.fi-text { color: #c8d4df; word-break: break-word; margin-top: 2px; }
.fi-line { margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.fi-thumb { width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line-2); cursor: zoom-in; }
.tag { font: 700 10px var(--mono); letter-spacing: .1em; padding: 3px 7px; border-radius: 5px; text-transform: uppercase; white-space: nowrap; }
.tag.minted { background: rgba(0,217,126,.12); color: var(--acid); border: 1px solid rgba(0,217,126,.4); cursor: pointer; }
.tag.pending, .tag.queued { background: rgba(255,210,63,.1); color: var(--amber); border: 1px solid rgba(255,210,63,.4); }
.tag.pending::before, .tag.queued::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; animation: pulse 1s infinite; }
.tag.rejected { background: rgba(255,77,94,.1); color: var(--red); border: 1px solid rgba(255,77,94,.4); }
.fi-addr { color: var(--muted); font-size: 12px; }
.feed-empty { color: var(--muted); padding: 40px; text-align: center; }

/* ---------- side ---------- */
.side { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 10px; }
.field-k { font: 600 11px var(--mono); letter-spacing: .16em; color: var(--muted); }
input, select {
  width: 100%; background: #0d1319; border: 1px solid var(--line-2); color: var(--text);
  font: 14px var(--mono); padding: 11px 12px; border-radius: 10px; outline: none; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(62,166,255,.15); }
input.bad { border-color: var(--red); }
input.good { border-color: var(--acid); }
.field-row { display: flex; gap: 8px; flex-wrap: wrap; }
.thesis-out { display: flex; gap: 8px; align-items: center; margin-top: 14px; padding: 10px; background: #0d1319; border: 1px dashed var(--line-2); border-radius: 10px; }
.thesis-out code { flex: 1; background: none; border: 0; padding: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hint { font-size: 12px; color: var(--muted); margin: 8px 0 14px; min-height: 18px; }
.hint.bad { color: var(--red); } .hint.good { color: var(--acid); }
.contract { margin-bottom: 12px; }
.addr-row { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.addr-row code { flex: 1; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.copy { background: transparent; color: var(--cyan); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; font: 600 11px var(--mono); cursor: pointer; text-transform: uppercase; letter-spacing: .08em; }
.copy:hover { border-color: var(--cyan); }
.soldout { border-color: rgba(255,77,106,.5); box-shadow: 0 0 40px -10px rgba(255,77,106,.5); text-align: center; }
.so-title { font: 800 48px/1 var(--head); letter-spacing: -.03em; color: var(--pink); margin: 6px 0 10px; }

/* ---------- sections ---------- */
section.wrap[id] { padding-top: 72px; }
.sec-head { max-width: 640px; margin-bottom: 28px; }
.sec-head h2, .gal-head h2 { font: 800 clamp(30px, 4vw, 46px)/1.05 var(--head); margin: 10px 0 8px; letter-spacing: -.03em; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.steps::before { content: ''; position: absolute; top: 28px; left: 24px; right: 24px; height: 2px; background: linear-gradient(90deg, var(--acid), var(--cyan), var(--pink)); opacity: .5; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 60px 18px 20px; }
.step-n { position: absolute; top: 12px; left: 16px; font: 700 13px var(--head); padding: 6px 10px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--acid); }
.step:nth-child(2) .step-n { color: var(--cyan); } .step:nth-child(3) .step-n { color: var(--violet); } .step:nth-child(4) .step-n { color: var(--pink); }
.step h3 { font: 800 20px var(--head); margin: 0 0 8px; letter-spacing: -.01em; }
.step p { margin: 0; color: #aebccb; font-size: 14px; }

.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font: 600 16px var(--head); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--acid); font-family: var(--mono); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 16px; color: #aebccb; font-size: 14px; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 56px 0 40px; margin-top: 56px; border-top: 1px solid var(--line); }
.foot-links { display: flex; gap: 18px; font-size: 13px; }
.foot-links a { color: var(--muted); text-decoration: none; } .foot-links a:hover { color: var(--cyan); }

/* ---------- gallery ---------- */
.gal-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; padding: 40px 0 20px; }
.gal-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.search { display: flex; align-items: center; gap: 6px; background: #0d1319; border: 1px solid var(--line-2); border-radius: 10px; padding-left: 12px; }
.search input { border: 0; background: transparent; width: 110px; padding-left: 0; box-shadow: none; }
#sort { width: auto; padding: 8px 10px; font-size: 13px; }
.gal-body { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; padding-bottom: 60px; }
.gal-body.nofilters { grid-template-columns: 1fr; }
.gal-body.nofilters .filters { display: none; }
.filters { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; scrollbar-width: thin; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.fg { border-top: 1px solid var(--line); padding: 8px 0; }
.fg > button { width: 100%; background: none; border: 0; color: var(--text); font: 600 13px var(--head); letter-spacing: .08em; text-transform: uppercase; display: flex; justify-content: space-between; padding: 6px 0; cursor: pointer; }
.fg > button span { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.fg-list { display: none; padding: 4px 0; }
.fg.open .fg-list { display: grid; gap: 2px; }
.fg-list label { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 4px 6px; border-radius: 6px; cursor: pointer; color: #c8d4df; }
.fg-list label:hover { background: rgba(255,255,255,.04); }
.fg-list input { width: auto; accent-color: var(--acid); padding: 0; }
.fg-list em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 11px; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; cursor: pointer; text-align: left; color: inherit; font: inherit; transition: transform .15s, border-color .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: 0 10px 30px -12px rgba(62,166,255,.5); }
.tile img { width: 100%; height: auto; aspect-ratio: 1; display: block; border-radius: 8px; background: #000; }
.tile-meta { display: flex; justify-content: space-between; padding: 8px 4px 2px; font-size: 12px; }
.tile-meta b { font-family: var(--head); letter-spacing: .04em; }
.tile.legend { border-color: rgba(255,210,63,.7); box-shadow: 0 0 22px -6px rgba(255,210,63,.6); }
.tile.legend::after { content: '1/1'; position: absolute; top: 12px; left: 12px; background: var(--amber); color: #111; font: 700 10px var(--head); padding: 2px 6px; border-radius: 4px; }
.gal-note { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; margin-bottom: 14px; background: rgba(62,166,255,.06); font-size: 13px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.gal-empty { text-align: center; padding: 60px; color: var(--muted); }
#sentinel { height: 1px; }

/* ---------- modal ---------- */
.modal { border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg-2); color: var(--text); padding: 0; width: min(880px, 100% - 32px); max-height: calc(100vh - 32px); box-shadow: 0 30px 120px -20px rgba(177,140,255,.5); }
.modal::backdrop { background: rgba(3,2,8,.75); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-body { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }
.modal-body.col { display: flex; flex-direction: column; gap: 6px; }
.modal-sm { width: min(440px, 100% - 32px); }
.modal h3 { font: 700 30px var(--head); margin: 6px 0 10px; }
.modal-sm h3 { font-size: 22px; margin: 0; }
.modal-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer; }
.m-art { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); align-self: start; }
.m-art img { width: 100%; display: block; aspect-ratio: 1; }
.m-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.m-owner { color: var(--muted); margin: 10px 0 0; min-height: 18px; word-break: break-all; }
.m-traits { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-traits li { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.m-traits li span { display: block; font-size: 10px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.m-traits li b { font-size: 13px; }
.m-traits li em { float: right; font-style: normal; font-size: 11px; color: var(--cyan); }
.m-traits li.legend { border-color: var(--amber); } .m-traits li.legend b { color: var(--amber); }
.m-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; background: var(--acid); color: #04120b; font: 700 13px var(--head); letter-spacing: .08em; padding: 10px 16px; border-radius: 10px; transition: .25s; z-index: 100; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- feed tabs ---------- */
.feed-tabs { display: flex; gap: 6px; margin: -4px 0 12px; flex-wrap: wrap; }
.ftab { background: transparent; border: 1px solid var(--line); color: var(--muted); font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 8px; cursor: pointer; transition: .15s; }
.ftab:hover { color: var(--text); border-color: var(--line-2); }
.ftab.active { color: #04120b; background: var(--cyan); border-color: var(--cyan); }
.ftab span { opacity: .7; margin-left: 2px; }

/* ---------- tracker ---------- */
.track { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(62,166,255,.04); display: grid; gap: 8px; }
.track-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.track .ok { color: var(--acid); } .track .bad { color: var(--red); }

/* ---------- legendary hunt ---------- */
.hunt-head { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.hunt-head > div:first-child { max-width: 640px; }
.odds { display: flex; flex-direction: column; gap: 4px; min-width: 200px; border-color: rgba(255,210,63,.45); box-shadow: 0 0 30px -12px rgba(255,210,63,.6); }
.odds b { font: 700 30px var(--head); color: var(--amber); }
.seg-hunt { grid-template-columns: repeat(22, 1fr); margin: 0 0 18px; }
.seg-hunt i.on { background: var(--amber); box-shadow: 0 0 8px rgba(255,210,63,.6); }
.hunt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.htile { display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; color: inherit; font: inherit; }
.htile img { width: 100%; aspect-ratio: 1; border-radius: 8px; display: block; }
.htile b { font: 700 12px var(--head); letter-spacing: .06em; text-transform: uppercase; padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.htile span { padding: 0 2px; font-size: 11px; }
.htile.found { cursor: pointer; border-color: rgba(255,210,63,.6); box-shadow: 0 0 20px -8px rgba(255,210,63,.7); transition: transform .15s; }
.htile.found:hover { transform: translateY(-3px); }
.htile.found b { color: var(--amber); }
.htile.locked { opacity: .7; }
.htile.locked img { animation: static 0.6s steps(2) infinite; }
@keyframes static { 50% { filter: brightness(1.25) hue-rotate(20deg); transform: translateX(1px); } }

/* ---------- modal nav ---------- */
.m-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(7,6,13,.75); color: var(--text); cursor: pointer; opacity: 0; transition: opacity .2s; }
.m-art:hover .m-nav, .m-nav:focus-visible { opacity: 1; }
.m-prev { left: 8px; } .m-next { right: 8px; }
@media (hover: none) { .m-nav { opacity: 1; } }

/* ---------- evolution ---------- */
.tag.evolved { background: rgba(177,140,255,.14); color: var(--violet); border: 1px solid rgba(177,140,255,.5); cursor: pointer; }
.chip-fw { color: var(--muted); } .chip-fw.up { color: var(--violet); border-color: rgba(177,140,255,.6); }
.tile-fw { position: absolute; top: 12px; right: 12px; background: var(--violet); color: #fff; font: 700 10px var(--head); padding: 2px 6px; border-radius: 4px; letter-spacing: .06em; }
.evo-state b { color: var(--muted); }
.evo-state.live { border-color: rgba(177,140,255,.6); box-shadow: 0 0 30px -12px rgba(177,140,255,.7); }
.evo-state.live b { color: var(--violet); }
.evo-grid { display: grid; grid-template-columns: 1.5fr .75fr; gap: 20px; }
.evo-strip-head { display: flex; justify-content: space-between; margin-bottom: 12px; }
.evo-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; position: relative; }
.evo-step { margin: 0; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); position: relative; }
.evo-step img { width: 100%; aspect-ratio: 1; display: block; border-radius: 8px; }
.evo-step figcaption { display: flex; flex-direction: column; padding: 8px 2px 2px; font-size: 11px; }
.evo-step figcaption b { font: 700 13px var(--head); letter-spacing: .06em; }
.evo-step figcaption span { color: var(--muted); }
.evo-step:not(:last-child)::after { content: '›'; position: absolute; right: -9px; top: 40%; color: var(--violet); font-size: 18px; z-index: 1; }
.evo-step.cur { border-color: var(--violet); box-shadow: 0 0 22px -8px rgba(177,140,255,.8); }
.evo-step.cur figcaption b { color: var(--violet); }
.evo-step.done { opacity: .6; }
.evo-step:last-child figcaption b { color: var(--amber); }

/* ---------- stats view ---------- */
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 20px; }
.kpis .stat-v { font-size: 26px; }
.st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 60px; }
.st-wide { grid-column: 1 / -1; }
.card-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.card-title-row .card-title { margin: 0; }
.card-title-row select { width: auto; padding: 6px 10px; font-size: 12px; }
.chart { width: 100%; }
.ch-svg { width: 100%; height: auto; display: block; overflow: visible; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-ax { fill: var(--muted); font: 11px var(--mono); }
.ch-area { fill: rgba(0,217,126,.1); }
.ch-line { fill: none; stroke: var(--acid); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-cross { stroke: var(--line-2); stroke-width: 1; }
.ch-dot { fill: var(--acid); stroke: var(--bg-2); stroke-width: 2; }
.ch-lbl { fill: var(--text); font: 700 12px var(--mono); }
.ch-tip { position: fixed; z-index: 120; pointer-events: none; opacity: 0; transition: opacity .12s; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); padding: 6px 10px; border-radius: 8px; font: 12px var(--mono); white-space: nowrap; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.ch-tip b { color: var(--text); }
.hbars { display: grid; gap: 8px; }
.hbar { display: grid; grid-template-columns: 130px 1fr 56px; gap: 10px; align-items: center; font-size: 12px; padding: 2px 0; }
.hbar-l { color: #c8d4df; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { height: 10px; background: #1a2430; border-radius: 0 4px 4px 0; overflow: hidden; }
.hbar-track i { display: block; height: 100%; background: var(--acid); border-radius: 0 4px 4px 0; }
#chReasons .hbar-track i { background: var(--pink); }
.hbar-v { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.lb { width: 100%; border-collapse: collapse; font-size: 13px; }
.lb th { text-align: left; font: 600 10px var(--mono); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.lb td { padding: 8px; border-bottom: 1px solid rgba(38,32,69,.6); }
.lb tr.clickable { cursor: pointer; } .lb tr.clickable:hover td { background: rgba(255,255,255,.03); }
.lb-who { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.lb-who img { width: 22px; height: 22px; border-radius: 6px; }
.lb-thumb { width: 34px; height: 34px; border-radius: 6px; display: block; }
.amber { color: var(--amber); }

/* ---------- lore, celebration, mobile CTA, sound, focus ---------- */
.m-lore { margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid var(--amber); background: rgba(255,210,63,.06); color: #f5e7b0; font-style: italic; font-size: 13px; border-radius: 0 8px 8px 0; }
.modal-hatch { width: min(460px, 100% - 32px); overflow: visible; text-align: center; }
.modal-hatch #confetti { position: absolute; inset: -120px -60px; width: calc(100% + 120px); height: calc(100% + 240px); pointer-events: none; z-index: 3; }
.hatch-body { position: relative; padding: 28px 24px 24px; }
.hatch-body h3 { font: 800 34px var(--head); letter-spacing: -.03em; margin: 8px 0 16px; color: var(--acid); }
.h-art { position: relative; width: 70%; margin: 0 auto; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 0 60px -10px rgba(0,217,126,.6); animation: boot .6s steps(8); }
.h-art img { width: 100%; display: block; aspect-ratio: 1; }
.h-meta { display: flex; flex-direction: column; gap: 4px; margin: 16px 0; font-size: 14px; }
.h-meta b { font: 700 18px var(--head); }
.h-meta em { color: #f5e7b0; font-size: 13px; }
.h-actions { justify-content: center; }
.mobile-cta { display: none; }
@media (max-width: 640px) {
  .mobile-cta { display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; padding: 14px; border-radius: 12px; text-align: center; text-decoration: none;
    background: var(--acid); color: #04120b; font: 700 13px var(--head); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 10px 30px -6px rgba(0,217,126,.6);
    transform: translateY(140%); transition: transform .25s; }
  .mobile-cta.show { transform: none; }
  .toast { bottom: 84px; }
}
.icon-btn { background: transparent; cursor: pointer; }
.icon-btn.on { color: var(--acid); border-color: var(--acid); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.btn:focus-visible, .tile:focus-visible, .htile:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- easter egg ---------- */
body.meltdown main { animation: melt 1.4s steps(12); }
@keyframes melt {
  0% { filter: none; } 10% { filter: hue-rotate(90deg) saturate(3); transform: translateX(-6px) skewX(4deg); }
  25% { filter: invert(1); transform: translateX(8px); } 40% { filter: hue-rotate(200deg) contrast(2); transform: skewX(-6deg); }
  60% { filter: saturate(0) brightness(1.6); transform: translateY(3px); } 80% { filter: hue-rotate(300deg); transform: translateX(-3px); } 100% { filter: none; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hatch { position: static; max-width: 520px; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .gal-body { grid-template-columns: 1fr; }
  .evo-grid, .st-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .filters { display: none; position: static; max-height: none; }
  .filters.open { display: block; }
}
@media (max-width: 640px) {
  .top { gap: 8px; }
  .brand-name, #lnkX, #lnkOs { display: none; }
  .tab { padding: 6px 10px; font-size: 12px; }
  .top .btn, .top .chip { white-space: nowrap; }
  .top-right .btn-sm { padding: 8px 10px; font-size: 11px; }
  .chip-demo { padding: 3px 6px; font-size: 9px; }
}
@media (max-width: 420px) {
  .chip-demo { display: none; }
  .brand img { width: 30px; height: 30px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:first-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .feed { height: 480px; }
  .modal-body { grid-template-columns: 1fr; padding: 16px; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .search input { width: 80px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .evo-steps { grid-template-columns: 1fr 1fr; }
  .evo-step:nth-child(2)::after { display: none; }
  .hbar { grid-template-columns: 96px 1fr 44px; }
  .tabs { gap: 2px; } .tab { padding: 6px 8px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   COSMIC LAYER — overrides on top of the base layout
   ===================================================================== */
body {
  font: 16px/1.6 var(--body);
  background: radial-gradient(1200px 700px at 80% -10%, #2a1670 0%, transparent 60%),
              radial-gradient(1000px 600px at -10% 40%, #1b0f4d 0%, transparent 60%),
              radial-gradient(900px 600px at 60% 110%, #3b0d4d 0%, transparent 60%), var(--bg);
}
.nebula { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.nebula i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; animation: drift 38s ease-in-out infinite alternate; }
.nebula i:nth-child(1) { width: 52vw; height: 52vw; left: -12vw; top: 8vh; background: radial-gradient(circle, #6d4bff 0%, transparent 70%); }
.nebula i:nth-child(2) { width: 46vw; height: 46vw; right: -10vw; top: -10vh; background: radial-gradient(circle, #ff4fb4 0%, transparent 70%); animation-duration: 46s; opacity: .32; }
.nebula i:nth-child(3) { width: 40vw; height: 40vw; left: 35vw; bottom: -18vh; background: radial-gradient(circle, #22d3ee 0%, transparent 70%); animation-duration: 52s; opacity: .22; }
@keyframes drift { to { transform: translate(6vw, -4vh) scale(1.12); } }

code { background: rgba(139,123,255,.14); border-color: rgba(139,123,255,.35); color: #d9d2ff; }
.neon-pink { background: linear-gradient(92deg, #8b7bff, #ff5ecf 55%, #ffcf5c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 { font: 800 clamp(38px, 5.6vw, 76px)/1.02 var(--head); letter-spacing: -.035em; }
.hero h1 .hl { color: var(--text); }
.lead { color: #cfc9f2; }
.eyebrow { color: var(--cyan); font-family: var(--mono); }
.sec-head h2, .gal-head h2 { font-family: var(--head); font-weight: 800; letter-spacing: -.04em; }
.card-title, .step h3, .so-title, .hatch-body h3, .modal h3, .meter-head b, .stat-v, .odds b { font-family: var(--head); letter-spacing: -.03em; }
.stat-v { font-weight: 700; }

/* header */
.top { background: linear-gradient(to bottom, rgba(7,6,26,.85), rgba(7,6,26,.55)); border-bottom-color: var(--line); }
.brand-name { font: 800 20px/1 var(--head); letter-spacing: -.04em; }
.brand-tick { background: rgba(139,123,255,.18); color: #d9d2ff; }
.brand img { border-radius: 12px; border: 1px solid var(--line-2); background: #120d33; }
.tabs { background: rgba(20,16,56,.6); border-color: var(--line); }
.tab { font-family: var(--body); font-weight: 600; }
.tab.active { background: linear-gradient(92deg, #8b7bff, #ff5ecf); color: #fff; box-shadow: 0 6px 22px -8px rgba(255,94,207,.7); }
.icon-btn { border-color: var(--line-2); background: rgba(20,16,56,.4); }
.icon-btn:hover { color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 16px rgba(61,225,212,.3); }

/* buttons */
.btn { font-family: var(--body); font-weight: 700; border-radius: 999px; padding: 12px 22px; }
.btn-sm { padding: 8px 14px; }
.btn-acid { background: linear-gradient(92deg, #8b7bff, #ff5ecf); color: #fff; box-shadow: 0 10px 30px -10px rgba(255,94,207,.8), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-cyan { background: #f3f0ff; color: #150f3a; }
.btn-pink { background: linear-gradient(92deg, #ffcf5c, #ff8f5c); color: #2a1300; box-shadow: 0 10px 30px -10px rgba(255,207,92,.7); }
.btn-ghost { border-color: var(--line-2); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.chip { border-radius: 999px; border-color: var(--line-2); }
.chip-demo { color: var(--amber); border-color: rgba(255,207,92,.45); background: rgba(255,207,92,.08); }
.dot.live { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

/* glass cards */
.card, .stat, .step, .faq details, .tile, .htile, .filters, .m-traits li {
  background: linear-gradient(160deg, rgba(60,48,150,.28), rgba(20,14,60,.38));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 50px -30px rgba(0,0,0,.8);
}
.card-head { background: rgba(10,8,34,.35); border-bottom-color: var(--line); }
.term-dots i:nth-child(1) { background: #ff5ecf; } .term-dots i:nth-child(2) { background: #ffcf5c; } .term-dots i:nth-child(3) { background: #3de1d4; }
.seg i { background: rgba(160,150,255,.14); }
.seg i.on { background: linear-gradient(180deg, #a799ff, #8b7bff); box-shadow: 0 0 10px rgba(139,123,255,.6); }
.seg-hunt i.on { background: var(--amber); box-shadow: 0 0 10px rgba(255,207,92,.6); }
input, select, .search, .thesis-out { background: rgba(10,8,34,.55) !important; border-color: var(--line-2) !important; }
input:focus, select:focus { border-color: var(--cyan) !important; box-shadow: 0 0 0 3px rgba(61,225,212,.18); }

/* hero portal */
.hatch { overflow: visible; }
.hatch .orbits { position: absolute; inset: 30px -26px auto; height: calc(100% - 140px); pointer-events: none; z-index: 0; }
.hatch .orbits i { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(196,181,253,.25); animation: spin 40s linear infinite; }
.hatch .orbits i:nth-child(2) { inset: 8% -6%; border-style: solid; border-color: rgba(255,94,207,.16); animation-duration: 60s; animation-direction: reverse; }
.hatch .orbits i:nth-child(3) { inset: -6% 10%; border-color: rgba(61,225,212,.18); animation-duration: 80s; }
.hatch .orbits i::after { content: ''; position: absolute; top: 12%; left: 8%; width: 10px; height: 10px; border-radius: 50%; background: #ffcf5c; box-shadow: 0 0 14px #ffcf5c; }
.hatch .orbits i:nth-child(2)::after { background: #ff5ecf; box-shadow: 0 0 14px #ff5ecf; top: 80%; left: 90%; }
.hatch .orbits i:nth-child(3)::after { background: #3de1d4; box-shadow: 0 0 14px #3de1d4; top: 4%; left: 60%; }
@keyframes spin { to { transform: rotate(360deg); } }
.frame { position: relative; z-index: 1; border-radius: 22px; border-color: var(--line-2); background: #0b0826; box-shadow: 0 0 0 6px rgba(139,123,255,.08), 0 30px 80px -20px rgba(139,123,255,.55); }
.frame img { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) scale(1.01); } }
.frame.swap img { animation: portal .7s cubic-bezier(.2,.9,.2,1), float 6s ease-in-out .7s infinite; }
@keyframes portal { 0% { transform: scale(.2) rotate(-25deg); filter: blur(10px) brightness(2); opacity: 0; } 60% { transform: scale(1.06) rotate(3deg); filter: none; opacity: 1; } 100% { transform: none; } }
.frame-badge { background: linear-gradient(92deg, #ffcf5c, #ff8f5c); border-radius: 999px; font-family: var(--body); }
.traits-mini span { background: rgba(139,123,255,.12); border-color: var(--line); color: #e2ddff; border-radius: 999px; padding: 4px 10px; }
.traits-mini span b { color: var(--muted); }

/* ticker tape */
.tape { background: rgba(10,8,34,.55); border-bottom-color: var(--line); backdrop-filter: blur(10px); }
.tape-item img { border-radius: 6px; width: 22px; height: 22px; }
.tape-item .up { color: var(--cyan); } .tape-item .dn { color: var(--pink); }

/* meter */
.meter-bar { background: linear-gradient(90deg, #3de1d4, #8b7bff 40%, #ff5ecf 72%, #ffcf5c); }
.meter-bar i { background: rgba(10,8,34,.7); }

/* feed */
.fi-av { border-radius: 50%; }
.fi-thumb { border-radius: 12px; }
.tag { border-radius: 999px; font-family: var(--mono); }
.tag.minted { background: rgba(61,225,212,.12); color: var(--cyan); border-color: rgba(61,225,212,.4); }
.tag.evolved { background: rgba(196,181,253,.14); color: var(--violet); border-color: rgba(196,181,253,.45); }
.fi-text { color: #ddd8fa; }

/* steps */
.step-n { border-radius: 999px; background: rgba(10,8,34,.6); }
.steps::before { background: linear-gradient(90deg, #3de1d4, #8b7bff, #ff5ecf, #ffcf5c); }

/* gallery tiles & hunt */
.tile, .htile { border-radius: 20px; }
.tile img, .htile img { border-radius: 14px; }
.tile:hover { border-color: rgba(196,181,253,.6); box-shadow: 0 18px 50px -18px rgba(139,123,255,.7); }
.tile.legend { border-color: rgba(255,207,92,.6); box-shadow: 0 0 30px -8px rgba(255,207,92,.55); }
.tile.legend::after { background: linear-gradient(92deg, #ffcf5c, #ff8f5c); border-radius: 999px; font-family: var(--body); }
.tile-fw { background: linear-gradient(92deg, #8b7bff, #ff5ecf); border-radius: 999px; font-family: var(--body); }
.odds { border-color: rgba(255,207,92,.35); }
.evo-step { background: rgba(10,8,34,.45); border-radius: 16px; }
.evo-step img { border-radius: 12px; }

/* modals */
.modal { background: linear-gradient(160deg, #16104a, #0b0826); border-color: var(--line-2); border-radius: 26px; box-shadow: 0 40px 140px -30px rgba(139,123,255,.6); }
.modal::backdrop { background: rgba(5,4,20,.7); backdrop-filter: blur(6px); }
.m-art, .h-art { border-radius: 20px; }
.m-lore { border-left-color: var(--amber); background: rgba(255,207,92,.07); border-radius: 0 12px 12px 0; }
.hatch-body h3 { color: #fff; background: linear-gradient(92deg, #8b7bff, #ff5ecf, #ffcf5c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-art { box-shadow: 0 0 70px -10px rgba(255,94,207,.6); animation: portal .8s cubic-bezier(.2,.9,.2,1); }
.preview-bar { background: repeating-linear-gradient(135deg, rgba(255,207,92,.1) 0 12px, rgba(255,207,92,.04) 12px 24px), #120d24; border-bottom-color: rgba(255,207,92,.3); }
.mobile-cta { background: linear-gradient(92deg, #8b7bff, #ff5ecf) !important; color: #fff !important; border-radius: 999px !important; font-family: var(--body) !important; }
.ch-line { stroke: #a799ff; } .ch-area { fill: rgba(139,123,255,.16); } .ch-dot { fill: #a799ff; }
.hbar-track i { background: linear-gradient(90deg, #8b7bff, #ff5ecf); }
#chReasons .hbar-track i { background: #ff5577; }
.toast { background: linear-gradient(92deg, #8b7bff, #ff5ecf); color: #fff; border-radius: 999px; font-family: var(--body); }
@media (max-width: 980px) { .hatch .orbits { display: none; } }
/* =====================================================================
   WARM LAYER — dark ember theme, chunky display type, app-style dock
   ===================================================================== */
:root {
  --bg: #110b08; --bg-2: #1a120d;
  --surface: rgba(40, 26, 18, 0.55); --surface-2: rgba(60, 40, 28, 0.6);
  --line: rgba(255, 170, 120, 0.14); --line-2: rgba(255, 170, 120, 0.28);
  --text: #fff4ea; --muted: #b8a393;
  --acid: #ff6b35; --pink: #ff8a4c; --cyan: #ffb547; --amber: #ffd166; --violet: #ffb38a; --red: #ff5a5f;
  --head: 'Bagel Fat One', 'Space Grotesk', system-ui, sans-serif;
  --body: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}
body {
  background: radial-gradient(900px 520px at 50% -8%, rgba(255,107,53,.22), transparent 60%),
              radial-gradient(700px 500px at 100% 30%, rgba(255,181,71,.07), transparent 60%),
              radial-gradient(700px 500px at 0% 70%, rgba(255,107,53,.06), transparent 60%), var(--bg);
  padding-bottom: 96px;
}
.nebula, #bg { display: none; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,180,140,.08) 1px, transparent 1.2px); background-size: 22px 22px; }

/* type */
.hero h1, .sec-head h2, .gal-head h2, .brand-name, .card-title, .step h3, .so-title, .hatch-body h3, .modal h3, .stat-v, .odds b, .meter-head b, .feat b {
  font-family: var(--head); font-weight: 400; letter-spacing: -.01em;
}
.hero h1 { font-size: clamp(44px, 7vw, 92px); line-height: .98; }
.neon-pink, .hatch-body h3 { background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; color: var(--acid) !important; }
.hero h1 .hl { color: var(--text); }
.eyebrow { color: var(--cyan); }
code { background: rgba(255,107,53,.12); border-color: rgba(255,107,53,.35); color: #ffd2b8; }

/* header */
.top { background: rgba(17,11,8,.82); }
.brand-name { font-size: 24px; }
.brand-tick { background: rgba(255,107,53,.16); color: #ffc1a0; }
.brand img { background: #2a1a12; }
.tabs { display: none; }
.tab.active { background: var(--acid); box-shadow: 0 8px 24px -10px rgba(255,107,53,.9); }

/* buttons */
.btn-acid { background: var(--acid); color: #fff; box-shadow: 0 10px 28px -10px rgba(255,107,53,.95), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-cyan { background: #fff4ea; color: #2a150a; }
.btn-pink { background: var(--cyan); color: #2a1300; box-shadow: 0 10px 28px -10px rgba(255,181,71,.8); }
.btn-ghost:hover { border-color: var(--acid); color: var(--acid); }
.dot.live { background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }

/* glass cards, warm */
.card, .stat, .step, .faq details, .tile, .htile, .filters, .m-traits li {
  background: linear-gradient(160deg, rgba(70,44,30,.42), rgba(28,18,12,.6)) !important;
  border-color: var(--line) !important;
}
.seg i.on { background: var(--acid) !important; box-shadow: 0 0 10px rgba(255,107,53,.6) !important; }
.meter-bar { background: linear-gradient(90deg, #ffd166, #ff9f43 45%, #ff6b35 75%, #ff3d3d); }
.meter-bar i { background: rgba(17,11,8,.72); }
.term-dots i:nth-child(1) { background: #ff5a5f; } .term-dots i:nth-child(2) { background: #ffb547; } .term-dots i:nth-child(3) { background: #3ddc84; }
.tag.minted { background: rgba(61,220,132,.12); color: #3ddc84; border-color: rgba(61,220,132,.4); }
.tag.evolved { background: rgba(255,181,71,.12); color: var(--cyan); border-color: rgba(255,181,71,.4); }
.ch-line { stroke: var(--acid); } .ch-area { fill: rgba(255,107,53,.16); } .ch-dot { fill: var(--acid); }
.hbar-track i { background: linear-gradient(90deg, #ffb547, #ff6b35); }
.toast, .mobile-cta { background: var(--acid) !important; }
.preview-bar { background: repeating-linear-gradient(135deg, rgba(255,181,71,.1) 0 12px, rgba(255,181,71,.04) 12px 24px), #1a1109; }
.modal { background: linear-gradient(160deg, #2a1a12, #140d09); box-shadow: 0 40px 140px -30px rgba(255,107,53,.45); }
.tile.legend { border-color: rgba(255,94,207,.6) !important; box-shadow: 0 0 28px -8px rgba(255,94,207,.5); }
.tile.legend::after { background: #ff5ecf; }

/* centred hero */
.hero { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 64px 0 20px; }
.hero-copy { display: flex; flex-direction: column; align-items: center; max-width: 900px; }
.lead { margin-inline: auto; }
.hero-cta { justify-content: center; }
.stats, .meter { width: 100%; max-width: 820px; text-align: left; }

/* feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px auto 28px; }
.feat { display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.feat-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,107,53,.14); color: var(--acid); border: 1px solid rgba(255,107,53,.35); font-size: 16px; margin-bottom: 6px; }
.feat b { font-size: 20px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; }

/* live mint card stats */
.hatch { position: static; }
.card-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; align-items: stretch; }
.cs-tier { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 45%, transparent); }
.cs-box { display: flex; flex-direction: column; padding: 4px 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.cs-box small { font: 700 9px var(--mono); letter-spacing: .14em; color: var(--muted); }
.cs-box b { font: 700 14px var(--mono); }
.frame img { animation: none; }
.frame { box-shadow: 0 30px 70px -30px rgba(255,107,53,.6); }
.tile-tier { color: var(--tc); font: 700 11px var(--mono); }

/* app-style dock */
.dock { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 70; display: flex; gap: 4px; padding: 6px;
  background: rgba(24,16,11,.88); border: 1px solid var(--line-2); border-radius: 20px; backdrop-filter: blur(14px); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.dock a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; padding: 8px 10px; border-radius: 14px; text-decoration: none; color: var(--muted); font-size: 16px; background: none !important; box-shadow: none !important; }
.dock a span { font: 600 11px var(--body); }
.dock a:hover { color: var(--text); background: rgba(255,255,255,.05) !important; }
.dock a.active { color: var(--acid) !important; }
.dock a.active::before { content: ''; position: absolute; }
.mobile-cta { display: none !important; }
.toast { bottom: 96px; }
@media (max-width: 980px) { .features { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .dock a { min-width: 52px; padding: 7px 6px; } .dock a span { font-size: 10px; } }
/* =====================================================================
   PURPLE LAYER — same layout, violet palette
   ===================================================================== */
:root {
  --bg: #0d0820; --bg-2: #160e33;
  --surface: rgba(46, 30, 96, 0.5); --surface-2: rgba(66, 44, 130, 0.55);
  --line: rgba(190, 160, 255, 0.16); --line-2: rgba(190, 160, 255, 0.3);
  --text: #f4efff; --muted: #b3a6d9;
  --acid: #8b5cf6; --pink: #c084fc; --cyan: #c4b5fd; --amber: #ffd166; --violet: #d8b4fe; --red: #ff5a7a;
}
body {
  background: radial-gradient(900px 520px at 50% -8%, rgba(139,92,246,.35), transparent 60%),
              radial-gradient(700px 500px at 100% 30%, rgba(192,132,252,.12), transparent 60%),
              radial-gradient(700px 500px at 0% 70%, rgba(99,102,241,.12), transparent 60%), var(--bg);
}
body::before { background-image: radial-gradient(rgba(196,181,253,.1) 1px, transparent 1.2px); }
.card, .stat, .step, .faq details, .tile, .htile, .filters, .m-traits li {
  background: linear-gradient(160deg, rgba(80,52,170,.4), rgba(22,14,51,.62)) !important;
}
.top { background: rgba(13,8,32,.82); }
.brand-tick { background: rgba(139,92,246,.2); color: #ddd0ff; }
.brand img { background: #1f1445; }
code { background: rgba(139,92,246,.16); border-color: rgba(139,92,246,.4); color: #e4dbff; }
.btn-acid { background: linear-gradient(92deg, #8b5cf6, #a855f7); color: #fff; box-shadow: 0 10px 28px -10px rgba(139,92,246,.95), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-pink { background: #ffd166; color: #2a1a00; box-shadow: 0 10px 28px -10px rgba(255,209,102,.7); }
.btn-ghost:hover { border-color: var(--pink); color: var(--pink); }
.seg i.on { background: var(--acid) !important; box-shadow: 0 0 10px rgba(139,92,246,.7) !important; }
.meter-bar { background: linear-gradient(90deg, #c4b5fd, #a78bfa 40%, #8b5cf6 70%, #ff5a7a); }
.meter-bar i { background: rgba(13,8,32,.72); }
.tag.evolved { background: rgba(196,181,253,.14); color: var(--cyan); border-color: rgba(196,181,253,.45); }
.ch-line { stroke: #a78bfa; } .ch-area { fill: rgba(139,92,246,.18); } .ch-dot { fill: #a78bfa; }
.hbar-track i { background: linear-gradient(90deg, #c084fc, #8b5cf6); }
.toast { background: var(--acid) !important; }
.preview-bar { background: repeating-linear-gradient(135deg, rgba(196,181,253,.1) 0 12px, rgba(196,181,253,.04) 12px 24px), #150d2e; border-bottom-color: rgba(196,181,253,.3); }
.preview-bar b, .pv-count { color: #ffd166; }
.modal { background: linear-gradient(160deg, #22164a, #0f0a24); box-shadow: 0 40px 140px -30px rgba(139,92,246,.55); }
.frame { box-shadow: 0 30px 70px -30px rgba(139,92,246,.7); }
.feat-ico { background: rgba(139,92,246,.18); color: #c4b5fd; border-color: rgba(139,92,246,.45); }
.dock { background: rgba(20,12,44,.88); }
.dock a.active { color: #c4b5fd !important; }
.dot.live { background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
/* ---------- readability fixes ---------- */
code { white-space: nowrap; display: inline-block; line-height: 1.35; }
/* chunky display font only for big headings; small labels use the body font */
.faq summary { font: 600 16px/1.4 var(--body) !important; letter-spacing: 0; }
.faq summary::after { font-family: var(--mono); }
.faq .ans { font: 400 15px/1.6 var(--body); }
.tile-meta b, .htile b, .step-n, .m-traits li b, .cs-box b { font-family: var(--body) !important; font-weight: 700; letter-spacing: 0; }
.card-title { font: 700 18px/1.3 var(--body) !important; letter-spacing: -.01em; }
.feat b { font: 700 19px/1.3 var(--body) !important; }
/* ---------- fix: preview monster must never get stuck invisible ---------- */
.frame img, .frame.swap img { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
.frame.swap img { animation: pop-in .35s ease-out !important; }
@keyframes pop-in { from { transform: scale(.94); } to { transform: none; } }
.h-art { animation: pop-in .4s ease-out !important; }
/* ---------- feed fills its card (no dead space next to the tall side column) ---------- */
.grid-2 { align-items: stretch; }
.feed-card { display: flex; flex-direction: column; min-height: 0; }
.feed-card .feed { flex: 1 1 0; height: auto; min-height: 460px; max-height: none; mask-image: linear-gradient(to bottom, #000 94%, transparent); }
@media (max-width: 980px) { .feed-card .feed { flex: none; height: 520px; } }
/* ---------- admin ---------- */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
#adManage { display: grid; gap: 18px; }
#adManage[hidden] { display: none !important; }
.ad-dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; margin: 8px 0 0; font-size: 13px; }
.ad-dl dt { color: var(--muted); font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }
.ad-dl dd { margin: 0; word-break: break-all; }
.ad-log { margin: 0; padding-left: 18px; display: grid; gap: 4px; font: 12px var(--mono); max-height: 260px; overflow-y: auto; }
.ad-log .ok { color: #3ddc84; } .ad-log .bad { color: var(--red); }
.card.danger { border-color: rgba(255,90,122,.35) !important; }
#adClose:hover { border-color: var(--red); color: var(--red); }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
/* ---------- CA pill under the hero buttons (set live from /admin) ---------- */
.ca-pill { display: inline-flex; align-items: center; gap: 6px; margin: 18px auto 0; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(196,181,253,.35); background: rgba(139,92,246,.12); color: #c4b5fd; font: 700 13px/1 var(--mono); letter-spacing: .04em; cursor: default; transition: background .2s, border-color .2s, transform .15s; }
.ca-pill .ca-k { color: var(--muted); }
.ca-pill:disabled { opacity: 1; }
.ca-pill.live { cursor: pointer; color: #fff; border-color: rgba(255,209,102,.6); background: rgba(255,209,102,.12); }
.ca-pill.live::after { content: '⧉'; color: #ffd166; margin-left: 2px; }
.ca-pill.live:hover { background: rgba(255,209,102,.2); transform: translateY(-1px); }
.hero .ca-pill, .hero-cta + .ca-pill { align-self: center; }
.ca-admin { margin-bottom: 18px; }
.ca-admin-grid { display: grid; grid-template-columns: 2fr 1.4fr; gap: 12px; margin: 10px 0 12px; }
.admin-login { max-width: 440px; margin: 12vh auto 40px; }
.admin-login form { display: grid; gap: 14px; }
@media (max-width: 860px) { .ca-admin-grid { grid-template-columns: 1fr; } }