:root {
  --bg: #0A0809;
  --bg2: #0E0B0C;
  --panel: #131011;
  --panel2: #1A1617;
  --line: #241E1F;
  --line2: #352D2D;
  --text: #F1ECE2;
  --muted: #A39A90;
  --dim: #6E655E;
  --lime: #D9B26A;      /* primary: old gold */
  --cyan: #E0464E;      /* crimson */
  --crimson: #E0464E;
  --violet: #B07CFF;
  --pink: #E0464E;
  --gold: #FF7A5C;      /* offerings: ember */
  --ember: #FF7A5C;
  --up: #6FCF97;
  --down: #FF5C6A;
  --r: 14px;
  --head: "Cormorant Garamond", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(224,70,78,.12), transparent 60%),
    radial-gradient(800px 500px at -10% 10%, rgba(217,178,106,.07), transparent 60%),
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px) 0 0/44px 44px,
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px) 0 0/44px 44px;
  mask-image: linear-gradient(#000 0, #000 60%, transparent 100%);
}
a { color: inherit; text-decoration: none; }
p a, .empty a, .muted a { color: var(--lime); }
h1, h2, h3 { font-family: var(--head); letter-spacing: -.01em; margin: 0; font-weight: 600; }
button { font: inherit; color: inherit; cursor: pointer; }
.mono { font-family: "JetBrains Mono", monospace; font-size: .92em; word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.grad { background: linear-gradient(90deg, #E9C987, var(--lime) 40%, var(--crimson)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 12px;
  background: var(--panel2); border: 1px solid var(--line2); color: var(--text);
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: #211b1c; border-color: #4a3f3e; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--lime); color: #120d06; border-color: transparent;
  box-shadow: 0 0 0 1px rgba(217,178,106,.4), 0 8px 30px -8px rgba(217,178,106,.55);
}
.btn-primary:hover { background: #e6c483; border-color: transparent; box-shadow: 0 0 0 1px rgba(217,178,106,.6), 0 10px 40px -8px rgba(217,178,106,.75); }
.btn-ghost { background: transparent; }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn.wide { width: 100%; }
.link { color: var(--lime); font-weight: 600; font-size: 14px; }
.link:hover { text-decoration: underline; }
.icon-btn { display: none; width: 34px; padding: 0; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(10,8,9,.8); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 26px var(--head); letter-spacing: .01em; }
.brand.small { font-size: 16px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 14px; }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a.on { color: var(--text); background: var(--panel2); }
.top-actions { display: flex; gap: 8px; align-items: center; }
#wallet-btn.connected { border-color: rgba(217,178,106,.4); }
#wallet-btn.connected::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }

.ticker { height: 34px; overflow: hidden; border-top: 1px solid var(--line); position: relative; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; gap: 34px; width: max-content; animation: tick 60s linear infinite; padding-left: 24px; height: 100%; align-items: center; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker a { display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; color: #d6cfc4; font-weight: 500; white-space: nowrap; }
.ticker a i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.ticker a span { color: var(--dim); }
@keyframes tick { to { transform: translateX(-50%); } }

main { max-width: 1240px; margin: 0 auto; padding: 0 24px 80px; min-height: 70vh; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 64px 0 36px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border: 1px solid var(--line2); border-radius: 99px; color: var(--muted); font-size: 13px; background: rgba(19,16,17,.7); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(50px, 7vw, 92px); line-height: .95; margin: 22px 0 20px; letter-spacing: -.02em; font-weight: 600; }
.lead { font-size: 18.5px; color: #c2b9ad; max-width: 540px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 36px; margin-top: 42px; }
.stats div { display: flex; flex-direction: column; }
.stats b { font: 600 34px var(--head); }
.stats span { color: var(--dim); font-size: 13px; }
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; inset: 10% 10%; background: radial-gradient(closest-side, rgba(217,178,106,.12), transparent); filter: blur(20px); }
.hero-svg { width: 100%; height: auto; position: relative; overflow: visible; }
.hero-svg .hn { opacity: 0; animation: pop .6s cubic-bezier(.2,1.4,.4,1) forwards; transform-box: fill-box; }
.hero-svg .hn text { fill: #fff; font: 700 14px var(--head); text-anchor: middle; opacity: .85; }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }

.edge { fill: none; stroke-width: 2.5; opacity: .75; stroke-linecap: round; }
.edge.flow { stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }

/* ---------- sections ---------- */
.sec { margin-top: 60px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.sec-head h2 { font-size: 34px; }
.sec-head p { color: var(--muted); margin: 4px 0 0; }
.h-sm { font-size: 23px; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.h-sm .num, .step .num { width: 26px; height: 26px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line2); display: inline-grid; place-items: center; font-size: 13px; color: var(--lime); }
.page-head { padding: 48px 0 26px; }
.page-head h1 { font-size: clamp(34px, 4.5vw, 52px); letter-spacing: -.035em; }
.page-head p { color: var(--muted); font-size: 17px; margin: 8px 0 0; max-width: 640px; }
.page-head.center { text-align: center; }
.page-head.center p { margin-left: auto; margin-right: auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.fam-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 230px; gap: 14px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.hot-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ---------- cards ---------- */
.card { background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: var(--r); position: relative; }
.coin-card, .fam-card, .hot-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, transform .2s, box-shadow .2s; }
a.card:hover, .hot-card:hover { border-color: var(--line2); transform: translateY(-2px); box-shadow: 0 20px 40px -24px rgba(0,0,0,.8); }
.cc-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cc-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cc-name b { font: 600 15.5px Inter, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-name span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-line { color: var(--dim); font-size: 13px; }
.cc-line b { color: #d6cfc4; font-weight: 600; }
.cc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 12px; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 12px; }
.cc-stats.two { grid-template-columns: 1fr 1fr; }
.cc-stats div { display: flex; flex-direction: column; }
.cc-stats span { color: var(--dim); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.cc-stats b { font-weight: 600; font-size: 14.5px; }
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chg.up { color: var(--up); } .chg.down { color: var(--down); }

.logo { --s: 44px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; position: relative; display: inline-grid; place-items: center; background: #1c1718; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ring, var(--line2)); overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: 1; }
.logo em { font: 700 calc(var(--s) * .3) Inter, sans-serif; font-style: normal; color: var(--muted); text-transform: uppercase; }
.logo.you { background: repeating-linear-gradient(45deg, #1c1718 0 5px, #241e1f 5px 10px); }
.logo.you em { color: var(--text); font-size: 10px; text-transform: lowercase; }

.gen-tag { flex: none; font-size: 11.5px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); padding: 3px 9px; border-radius: 99px; letter-spacing: .02em; }
.tag { font-size: 11.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line2); padding: 3px 9px; border-radius: 99px; }

.faces { display: flex; align-items: center; padding-left: 6px; min-height: 34px; }
.faces .logo { margin-left: -6px; }
.faces .more { margin-left: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }

.skel { min-height: 196px; background: linear-gradient(100deg, var(--panel) 30%, #1d1819 50%, var(--panel) 70%) 0 0/300% 100%; animation: sk 1.4s linear infinite; }
.hot-card.skel { min-height: 170px; }
.fam-card.skel { min-height: 200px; }
@keyframes sk { to { background-position: -150% 0; } }

.empty { color: var(--muted); padding: 36px; text-align: center; border: 1px dashed var(--line2); border-radius: var(--r); grid-column: 1 / -1; }
.empty.big { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 24px; }
.empty.big b { color: var(--text); font: 600 22px var(--head); }
.empty.big .btn { margin-top: 8px; }
.empty.inline { margin-top: 14px; padding: 18px; }

/* ---------- how ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 24px; background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: var(--r); }
.step h3 { margin: 16px 0 6px; font-size: 19px; }
.step p { color: var(--muted); margin: 0; }
.faq { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 10px 0 2px; }

/* ---------- inputs ---------- */
.input { width: 100%; height: 44px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line2); border-radius: 12px; color: var(--text); font: inherit; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(217,178,106,.15); }
.input::placeholder { color: var(--dim); }
.select { width: auto; appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 16px top 19px, right 11px top 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span, .mini span, .field-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line2); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { background: none; border: 0; padding: 7px 14px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.seg button.on { background: var(--panel2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button, .chip-sm { background: var(--bg); border: 1px solid var(--line2); border-radius: 99px; padding: 6px 13px; font-size: 13px; font-weight: 600; color: #d6cfc4; text-transform: capitalize; }
.chips button:hover, .chip-sm:hover { border-color: #4a3f3e; }
.chips button.on { background: rgba(217,178,106,.12); border-color: rgba(217,178,106,.6); color: var(--lime); }
.chips .chip-hot { border-color: rgba(224,70,78,.5); color: #f08a8f; }
.chip-sm { text-transform: none; padding: 5px 11px; font-size: 12.5px; }
.toolbar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar .input:first-child { flex: 1; min-width: 220px; }

/* ---------- launch ---------- */
.launch { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; }
.launch-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.form-card { padding: 22px; }
.parent-card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.parent-card > div { display: flex; flex-direction: column; flex: 1; }
.parent-card b { font: 600 22px var(--head); }
.sym { color: var(--muted); font-weight: 500; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 14px; }
.more-opts summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; }
.sol-input { position: relative; max-width: 220px; }
.sol-input em { position: absolute; right: 14px; top: 11px; font-style: normal; color: var(--muted); font-weight: 600; }
#buy-chips { margin-bottom: 8px; }
.launch-side { position: sticky; top: 118px; }
.preview-card { padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pv-label { align-self: flex-start; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); font-weight: 600; }
.pv-img { width: 100%; aspect-ratio: 1; border-radius: 22px; overflow: hidden; position: relative; background: repeating-conic-gradient(#151112 0 25%, #0f0c0d 0 50%) 0 0/24px 24px; border: 1px solid var(--line2); }
.pv-img canvas { width: 100%; height: 100%; display: block; }
.pv-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-weight: 600; }
.pv-name { display: flex; flex-direction: column; align-items: center; }
.pv-name b { font: 700 28px var(--head); text-align: center; word-break: break-word; }
.pv-name span { color: var(--muted); font-weight: 600; }
.pv-line { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); margin: 4px 0 6px; }
.arrow { color: var(--dim); font-size: 13px; }

/* studio */
.studio { display: grid; grid-template-columns: 300px 1fr; gap: 22px; }
.studio-canvas { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; border: 1px solid var(--line2); background: repeating-conic-gradient(#151112 0 25%, #0f0c0d 0 50%) 0 0/24px 24px; cursor: pointer; }
.studio-canvas.drag { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(217,178,106,.2); }
.studio-canvas canvas { width: 100%; height: 100%; display: block; }
.studio-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); text-align: center; padding: 20px; }
.studio-empty b { color: var(--text); }
.studio-empty span { font-size: 13px; }
.drop-icon { width: 54px; height: 54px; border-radius: 16px; border: 1.5px dashed var(--line2); display: grid; place-items: center; font-size: 28px; color: var(--lime); margin-bottom: 8px; }
.studio-tools { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.slider { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); font-weight: 500; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; background: var(--line2); border-radius: 99px; outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--lime); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--lime); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--lime); border: 3px solid var(--bg); cursor: pointer; }
.mini { display: flex; flex-direction: column; gap: 5px; }
.mini input { height: 38px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; color: var(--text); font: inherit; outline: none; }
.mini input:focus { border-color: var(--lime); }
.field-label { margin-bottom: -4px; }

/* ---------- coin page ---------- */
.coin-head { margin-top: 36px; padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px; overflow: hidden; }
.coin-head::before { content: ""; position: absolute; width: 420px; height: 420px; left: -120px; top: -200px; background: radial-gradient(closest-side, rgba(217,178,106,.12), transparent); pointer-events: none; }
.ch-main { display: flex; gap: 22px; align-items: center; min-width: 0; }
.ch-main h1 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; margin: 8px 0 8px; word-break: break-word; }
.ch-tags { display: flex; gap: 6px; }
.ch-meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 14px; }
.ch-meta a:hover { color: var(--text); }
.ca { background: var(--bg); border: 1px solid var(--line2); border-radius: 8px; padding: 4px 10px; font-family: "JetBrains Mono", monospace; font-size: 13px; color: #d6cfc4; word-break: break-all; text-align: left; }
.ca span { color: var(--lime); font-family: Inter, sans-serif; font-weight: 600; margin-left: 6px; }
.ch-actions { display: flex; flex-direction: column; gap: 8px; align-self: center; }
.ch-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ch-stats div { background: var(--bg2); padding: 14px 16px; display: flex; flex-direction: column; }
.ch-stats span { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.ch-stats b { font: 600 18px Inter, sans-serif; }
.desc { grid-column: 1 / -1; color: #c2b9ad; margin: 0; }

.bloodline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bl-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; }
.bl-item span { display: flex; flex-direction: column; line-height: 1.2; }
.bl-item em { font-style: normal; color: var(--dim); font-size: 12px; }
.bl-item.me { border-color: rgba(217,178,106,.5); background: rgba(217,178,106,.06); }

.tree-card { height: 640px; overflow: hidden; padding: 0; }
.tree-wrap { position: relative; width: 100%; height: 100%; }
.tree-svg { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; background: radial-gradient(closest-side at 50% 30%, rgba(224,70,78,.06), transparent); }
.tree-svg:active { cursor: grabbing; }
.tree-svg .node { cursor: pointer; }
.tree-svg .node .halo { opacity: 0; transition: opacity .2s; }
.tree-svg .node:hover .halo, .tree-svg .node.selected .halo { opacity: .22; }
.tree-svg .node.selected .halo { opacity: .35; animation: pulse 2s infinite; }
.tree-svg text { text-anchor: middle; fill: var(--text); }
.tree-svg .sym { font: 600 13px Inter; }
.tree-svg .cap { font: 500 12px Inter; fill: var(--muted); }
.tree-svg .gen { font: 800 11px Inter; fill: #0A0809; }
.tree-svg .ph { font: 700 13px Inter; fill: var(--muted); }
.tree-ctrl { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 6px; }
.tree-ctrl button { width: 36px; height: 36px; border-radius: 10px; background: rgba(19,16,17,.9); border: 1px solid var(--line2); font-size: 17px; }
.tree-legend { position: absolute; left: 14px; bottom: 12px; display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #d6cfc4; background: rgba(10,8,9,.8); padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); }
.tree-legend span { display: flex; align-items: center; gap: 5px; }
.tree-legend i { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- table ---------- */
.tabs { margin-bottom: 16px; }
.table-card { padding: 6px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); font-weight: 600; padding: 12px 14px; }
td { padding: 12px 14px; border-top: 1px solid var(--line); white-space: nowrap; }
tr:hover td { background: rgba(255,255,255,.015); }
.rank { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--panel2); font-weight: 700; font-size: 13px; }
tr:nth-child(1) .rank { background: var(--gold); color: #000; }
tr:nth-child(2) .rank { background: #d7dce5; color: #000; }
tr:nth-child(3) .rank { background: #d69259; color: #000; }
.row-coin { display: flex; align-items: center; gap: 12px; }
.row-coin span { color: var(--muted); }
.avatar { --h: 120; width: 34px; height: 34px; border-radius: 50%; flex: none; background: conic-gradient(from 90deg, hsl(var(--h) 90% 60%), hsl(calc(var(--h) + 80) 90% 55%), hsl(var(--h) 90% 60%)); }
.avatar.big { width: 72px; height: 72px; }
.creator-head { display: flex; gap: 20px; align-items: center; }
.mini-stats { display: flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.mini-stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; display: flex; flex-direction: column; }
.mini-stats b { font: 700 24px var(--head); }
.mini-stats span { color: var(--muted); font-size: 13px; }

.paste { display: flex; gap: 10px; max-width: 640px; margin: 26px auto 12px; }
.paste .input { height: 52px; font-size: 16px; }
.paste .btn { height: 52px; }

/* ---------- modal / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(3,4,6,.72); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-box { background: var(--panel); border: 1px solid var(--line2); border-radius: 22px; padding: 28px; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 40px 80px -20px #000; }
.modal-x { position: absolute; right: 14px; top: 12px; background: none; border: 0; font-size: 26px; color: var(--muted); }
.modal-box h3 { font-size: 22px; margin-bottom: 14px; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.share-img { width: 100%; border-radius: 12px; border: 1px solid var(--line2); }
.launching { text-align: center; }
.lg-logo { width: 112px; height: 112px; border-radius: 26px; border: 3px solid var(--lime); box-shadow: 0 0 50px -6px rgba(217,178,106,.55); margin: 4px auto 16px; display: block; }
.steps-list { list-style: none; padding: 0; margin: 10px auto 0; text-align: left; max-width: 320px; display: flex; flex-direction: column; gap: 10px; }
.steps-list li { display: flex; gap: 12px; align-items: center; color: var(--dim); font-weight: 500; }
.steps-list li i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line2); flex: none; position: relative; }
.steps-list li.now { color: var(--text); }
.steps-list li.now i { border-color: var(--lime); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps-list li.done { color: #d6cfc4; }
.steps-list li.done i { background: var(--lime); border-color: var(--lime); }
.steps-list li.done i::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #0A0809; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.steps-list li.fail { color: var(--down); }
.steps-list li.fail i { border-color: var(--down); animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.lg-err { margin-top: 16px; background: rgba(255,92,122,.08); border: 1px solid rgba(255,92,122,.35); color: #ffb3c1; padding: 12px; border-radius: 12px; font-size: 14px; text-align: left; word-break: break-word; }
.lg-done { justify-content: center; }

#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--panel2); border: 1px solid var(--line2); padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px -10px #000; animation: fade .2s; transition: opacity .4s, transform .4s; }
.toast.bad { border-color: rgba(255,92,122,.5); }
.toast.out { opacity: 0; transform: translateY(8px); }

.foot { border-top: 1px solid var(--line); }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 28px 24px 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.foot p { color: var(--dim); font-size: 13px; max-width: 640px; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-art { max-width: 520px; }
  .launch { grid-template-columns: 1fr; }
  .launch-side { position: static; order: -1; }
  .preview-card { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .pv-img { width: 120px; }
  .preview-card .btn, .preview-card p, .pv-label { width: 100%; }
  .ch-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .top-in { padding: 0 16px; gap: 12px; }
  main { padding: 0 16px 60px; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .menu-open .nav { display: flex; }
  .icon-btn { display: inline-flex; }
  .hide-sm { display: none; }
  .brand { flex: 1; }
  .stats { grid-template-columns: repeat(2, auto); gap: 18px 36px; }
  .steps, .faq { grid-template-columns: 1fr; }
  .studio { grid-template-columns: 1fr; }
  .studio-canvas { max-width: 320px; width: 100%; margin: 0 auto; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .coin-head { grid-template-columns: 1fr; padding: 20px; }
  .ch-main { flex-direction: column; align-items: flex-start; }
  .ch-actions { align-self: stretch; }
  .ch-stats { grid-template-columns: repeat(2, 1fr); }
  .tree-card { height: 480px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .paste { flex-direction: column; }
  .fam-grid { grid-template-columns: 1fr; }
  .slider { grid-template-columns: 84px 1fr; }
}
main > .empty { margin-top: 48px; }
.mini input { width: 100%; min-width: 0; }
.studio-tools .row2 > * { min-width: 0; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(4, auto); gap: 22px; }
  .stats b { font-size: 24px; }
  .hero-cta .btn { flex: 1; }
}
.empty a.btn, p a.btn { color: var(--text); }
.empty a.btn-primary, p a.btn-primary { color: #120d06; }

/* ---------- tribute ---------- */
.hl { color: var(--gold); font-weight: 700; }
.t-gold { color: var(--gold); }
.trib-line { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -4px; }
.trib { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.trib.out { color: var(--gold); background: rgba(255,122,92,.1); border: 1px solid rgba(255,122,92,.35); }
.trib.in { color: var(--up); background: rgba(61,220,151,.08); border: 1px solid rgba(61,220,151,.3); }
.tk-trib { color: var(--gold); font-weight: 600; }
.tribute-card { border-color: rgba(255,122,92,.35); background: linear-gradient(180deg, rgba(255,122,92,.07), var(--bg2) 70%); }
.tribute-card .h-sm .num { color: var(--gold); }
.tribute-card > p { margin: -6px 0 14px; }
.trib-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.trib-pick .sol-input { width: 150px; }
#trib-chips button.on { background: rgba(255,122,92,.14); border-color: rgba(255,122,92,.7); color: var(--gold); }
.pv-trib { font-size: 13.5px; color: var(--muted); padding: 7px 14px; border-radius: 99px; border: 1px solid rgba(255,122,92,.35); background: rgba(255,122,92,.07); margin-bottom: 4px; }
.pv-trib b { color: var(--gold); }
.lg-ok { margin-top: 16px; background: rgba(255,122,92,.08); border: 1px solid rgba(255,122,92,.4); color: var(--gold); padding: 12px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.edge.paid { opacity: 1; filter: drop-shadow(0 0 6px rgba(255,122,92,.35)); }
.trib-tag rect { fill: #1a1608; stroke: var(--gold); stroke-width: 1.5; }
.trib-tag text { fill: var(--gold) !important; font: 700 11.5px Inter; }


/* ---------- cult theme ---------- */
.h-sm .num, .step .num { font: 600 14px var(--head); color: var(--lime); width: 30px; height: 30px; }
.step .num { font-size: 16px; }
.eyebrow .dot { background: var(--crimson); box-shadow: 0 0 12px var(--crimson); }
.lead { font-size: 19px; }
.coin-card, .fam-card { overflow: hidden; }
.cc-sigil { position: absolute; right: -18px; bottom: -18px; opacity: .07; pointer-events: none; }
.cc-sigil.big { right: -30px; top: -30px; bottom: auto; opacity: .08; }
.coin-card > *:not(.cc-sigil), .fam-card > *:not(.cc-sigil) { position: relative; }
.fam-law { font: italic 600 19px var(--head); color: var(--lime); line-height: 1.3; }
.trib.heresy, .tag.heresy { color: #ffb3b8; background: rgba(224,70,78,.14); border: 1px solid rgba(224,70,78,.55); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }
.trib.in { color: var(--lime); background: rgba(217,178,106,.08); border-color: rgba(217,178,106,.35); }
.heresy-banner { margin-top: 28px; padding: 14px 20px; border-radius: 14px; border: 1px solid rgba(224,70,78,.5); background: linear-gradient(90deg, rgba(224,70,78,.18), rgba(224,70,78,.04)); color: #ffd0d3; }
.heresy-banner b { font: 700 20px var(--head); color: #fff; margin-right: 6px; }
.coin-head { overflow: hidden; }
.ch-sigil { position: absolute; right: 180px; top: -70px; opacity: .06; pointer-events: none; }
.coin-head > *:not(.ch-sigil) { position: relative; }
.row-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-offer { border-color: rgba(255,122,92,.55); color: #ffb6a5; background: rgba(255,122,92,.08); }
.btn-offer:hover { background: rgba(255,122,92,.16); border-color: var(--ember); }
.doctrine { list-style: none; margin: 0; padding: 6px; }
.doctrine li { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 16px 16px; border-top: 1px solid var(--line); }
.doctrine li:first-child { border-top: 0; }
.doctrine p { margin: 0; font: italic 600 22px var(--head); line-height: 1.25; }
.doctrine s { color: var(--dim); font-size: 13.5px; }
.doctrine li em { font-style: normal; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--crimson); border: 1px solid rgba(224,70,78,.5); padding: 3px 9px; border-radius: 99px; }
.doctrine li em.kept { color: var(--muted); border-color: var(--line2); }
.law-n { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(217,178,106,.5); display: grid; place-items: center; font: 700 15px var(--head); color: var(--lime); }
.doctrine-card .muted { margin: -6px 0 14px; }
.law-in { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; margin-bottom: 10px; }
.law-in .input { font: italic 600 18px var(--head); }
.law-state { font-style: normal; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); min-width: 70px; text-align: right; }
.law-state.on { color: var(--crimson); }
.law-status { margin: 4px 0 0; font-weight: 600; }
.law-status.ok { color: var(--up); }
.law-status.bad { color: #ffb3b8; }
.pv-law { font: italic 600 17px var(--head); color: var(--lime); text-align: center; min-height: 0; }
.pv-law:empty { display: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.grid.one { grid-template-columns: 1fr; }
.offer-list { padding: 6px; }
.offer-row { display: grid; grid-template-columns: 1fr auto 70px; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.offer-row:first-child { border-top: 0; }
.offer-row a:hover { color: var(--lime); }
.offer-row em { font-style: normal; color: var(--dim); text-align: right; font-size: 13px; }
.offering { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.offering h3 { margin: 4px 0 0; font-size: 28px; }
.offering > p { margin: 0; }
.sol-input.big { width: 220px; }
.sol-input.big .input { height: 56px; font-size: 22px; text-align: center; padding-right: 50px; }
.sol-input.big em { top: 17px; }
.center-chips { justify-content: center; }
.avatar { --h: 0; background: radial-gradient(circle, #1f1a1b, #0e0b0c); display: inline-grid; place-items: center; border: 1px solid var(--line2); overflow: hidden; }
.avatar .sigil { width: 100%; height: 100%; }
tr:nth-child(1) .rank { background: var(--lime); color: #120d06; }
tr:nth-child(2) .rank { background: #cfc6b8; color: #120d06; }
tr:nth-child(3) .rank { background: #a5674a; color: #fff; }
.tree-svg .gen { font: 700 11px var(--head); }
.hero-svg .sigil { overflow: visible; }
.tribute-card .h-sm .num { color: var(--ember); border-color: rgba(255,122,92,.5); }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .ch-sigil { right: -60px; } }
@media (max-width: 760px) { .stats b { font-size: 28px; } .law-in { grid-template-columns: 34px 1fr; } .law-state { grid-column: 2; text-align: left; } }
.law-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.law-head .h-sm { margin: 0; }

/* the laws */
.obey-card { padding: 18px 22px; border-color: rgba(224,70,78,.35); background: linear-gradient(180deg, rgba(224,70,78,.07), transparent); }
.obey-card h3 { margin: 0 0 10px; font: 700 19px var(--head); color: var(--text); }
.obey-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.obey-card li { position: relative; padding-left: 20px; color: var(--muted); font-size: 14.5px; }
.obey-card li::before { content: '✦'; position: absolute; left: 0; color: var(--crimson); font-size: 12px; top: 2px; }
.obey-card li b { color: var(--text); }
.law-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.law-row:first-child { border-top: 0; padding-top: 4px; }
.law-row .chips { margin: 0; flex-wrap: wrap; justify-content: flex-end; }
.law-row .chips button:disabled { opacity: .35; cursor: not-allowed; }
.law-row.locked .law-info { opacity: .55; }
.law-row.changed .law-info b { color: var(--crimson); }
.law-info b { display: block; font: 700 18px var(--head); color: var(--text); }
.law-info span { font-size: 13.5px; color: var(--muted); }
.law-row .law-state .link { background: none; border: 0; padding: 0 0 0 6px; color: var(--muted); text-decoration: underline; font: inherit; text-transform: none; cursor: pointer; }
.law-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.law-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.law-card.changed { border-color: rgba(224,70,78,.5); }
.law-card .law-name { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.law-card b { font: 700 30px var(--head); color: var(--lime); line-height: 1.1; }
.law-card p { margin: 0; color: var(--muted); font-size: 14px; }
.law-card em { font-style: normal; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--crimson); margin-top: auto; padding-top: 6px; }
.law-card em.kept { color: var(--dim); }
.btn.sealed { opacity: .6; cursor: default; border-style: dashed; }
.seg-note { padding: 7px 12px; font-size: 13px; color: var(--crimson); font-weight: 600; }
.fam-law { font-style: normal; font-size: 16px; }
.pv-law { font-style: normal; font-size: 15px; }
@media (max-width: 900px) { .law-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .law-row { grid-template-columns: 1fr; gap: 8px; } .law-row .chips { justify-content: flex-start; } }
.split-list { display: grid; gap: 6px; margin: 14px 0 4px; }
.split-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.split-row span { font-weight: 600; }
.split-row em { font-style: normal; font-size: 12px; color: var(--dim); margin-left: 6px; font-weight: 500; }
.split-row b { color: var(--ember); font-variant-numeric: tabular-nums; }

/* the heir and the fallen */
.tag.heir { background: rgba(217,178,106,.16); color: var(--lime); border-color: rgba(217,178,106,.45); }
.tag.fallen { background: rgba(140,130,120,.12); color: #a59d93; border-color: rgba(140,130,120,.35); }
.crown-line { margin: -2px 0 8px; }
.coin-card.fallen { filter: grayscale(.85); opacity: .62; }
.coin-card.fallen:hover { opacity: .9; }
.fallen-banner { margin: 0 0 18px; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(140,130,120,.35); background: rgba(140,130,120,.08); color: #b9b1a6; }
.fallen-banner b { font: 700 20px var(--head); color: #d8d0c4; margin-right: 6px; }
.node.fallen { opacity: .35; filter: grayscale(1); }
.crown { fill: #1a1210; font-size: 16px; text-anchor: middle; }
.crown-bg { fill: var(--lime); stroke: #0A0809; stroke-width: 2; filter: drop-shadow(0 0 6px rgba(217,178,106,.7)); }

/* sermons */
.sermon-list { padding: 6px 0; }
.sermon { padding: 16px 22px; border-top: 1px solid var(--line); }
.sermon:first-child { border-top: 0; }
.sermon p { margin: 0 0 6px; font: italic 600 21px/1.35 var(--head); color: var(--text); }
.sermon p::before { content: '“'; color: var(--lime); }
.sermon p::after { content: '”'; color: var(--lime); }
.sermon span { font-size: 12.5px; color: var(--dim); }
.preach-card { padding: 16px; margin-bottom: 12px; border-color: rgba(217,178,106,.35); }
.preach-card textarea { width: 100%; resize: vertical; font: italic 600 18px var(--head); }
.preach-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
