/* Fairlit — design system */
:root {
  --bg: #080705;
  --bg-2: #0c0a08;
  --bg-3: #12100c;
  --surface: rgba(22, 18, 14, 0.78);
  --surface-2: rgba(30, 25, 19, 0.9);
  --card: #161310;
  --card-2: #1c1813;
  --amber: #e8a84a;
  --amber-2: #f6d58a;
  --amber-3: #c4842a;
  --amber-dim: rgba(232, 168, 74, 0.12);
  --amber-glow: rgba(232, 168, 74, 0.28);
  --line: rgba(232, 168, 74, 0.13);
  --line-2: rgba(232, 168, 74, 0.28);
  --text: #f7f1e7;
  --muted: #9a8f7d;
  --faint: #6c655b;
  --green: #3ee09a;
  --green-dim: rgba(62, 224, 154, 0.14);
  --red: #ff6b62;
  --red-dim: rgba(255, 107, 98, 0.14);
  --blue: #7eb8ff;
  --blue-dim: rgba(126, 184, 255, 0.14);
  --purple: #b59bff;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 64px;
  --ticker-h: 38px;
  --tabbar-h: 0px;
  --font: Inter, system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", Inter, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --space: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
  background:
    radial-gradient(1200px 520px at 50% -12%, rgba(232, 168, 74, 0.16), transparent 58%),
    radial-gradient(800px 400px at 100% 0%, rgba(196, 132, 42, 0.07), transparent 50%),
    var(--bg);
}
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }
a { color: var(--amber-2); text-decoration: none; }
a:hover { color: #fff6d8; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  background: rgba(8, 7, 5, 0.72);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex-shrink: 0;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line-2), 0 0 22px var(--amber-glow);
}
.brand .name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.search { flex: 1; max-width: 460px; position: relative; }
.search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(18, 16, 12, 0.85);
  color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.search input::placeholder { color: var(--faint); }
.search input:focus {
  border-color: var(--line-2);
  background: var(--card);
  box-shadow: 0 0 0 4px var(--amber-dim);
  outline: none;
}
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.nav-link {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color .15s, background .15s;
}
.nav-link:hover, .nav-link.is-on { color: var(--text); background: var(--amber-dim); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  transition: transform .15s var(--ease), filter .15s, background .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
  background: linear-gradient(180deg, #f3c56a 0%, #c4842a 100%);
  color: #1a1206;
  box-shadow: 0 0 0 1px rgba(255, 210, 120, 0.18), 0 8px 22px rgba(196, 132, 42, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover { filter: brightness(1.06); color: #1a1206; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: var(--amber-dim); }
.btn-green { background: var(--green); color: #042016; box-shadow: 0 8px 18px rgba(62, 224, 154, 0.2); }
.btn-danger { background: var(--red); color: #2a0c0a; }
.btn-block { width: 100%; height: 44px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 0.8rem; }
.btn-icon { width: 40px; padding: 0; }

/* ---------- ticker ---------- */
.ticker {
  height: var(--ticker-h);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 9, 7, 0.9);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  position: relative;
  z-index: 20;
}
.ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-right: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(16, 14, 11, 0.9);
  z-index: 1;
}
.ticker-label .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 168, 74, 0.18);
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
.ticker-track {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 16px), transparent);
  padding-left: 10px;
}
.ticker-move {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: ticker 48s linear infinite;
  padding: 0 24px;
  height: 100%;
  align-items: center;
}
.ticker:hover .ticker-move { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
}
.tick .side { font-weight: 700; }
.tick.buy .side { color: var(--green); }
.tick.sell .side { color: var(--red); }
.tick .sym { color: var(--text); font-weight: 650; font-family: var(--mono); font-size: 0.7rem; }

/* ---------- views ---------- */
.page {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 80px;
  position: relative;
  z-index: 1;
}
.view { animation: viewIn .45s var(--ease); }
.view[hidden] { display: none !important; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- king ---------- */
.king {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 24px;
  align-items: stretch;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(900px 220px at 8% 0%, rgba(232, 168, 74, 0.2), transparent 50%),
    linear-gradient(180deg, rgba(42, 32, 20, 0.95), rgba(18, 15, 11, 0.96));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(246, 213, 138, 0.12);
  margin-bottom: 24px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .25s var(--ease), box-shadow .25s;
}
.king:hover {
  border-color: rgba(232, 168, 74, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(232, 168, 74, 0.12);
}
.king-art-wrap {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, 0.35);
}
.king-art, .coin-art, .detail-art, .thumb { background: #0a0908; }
.king-art svg, .coin-art svg, .detail-art svg, .thumb svg { width: 100%; height: 100%; display: block; }
.king-art-wrap canvas.embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.flame-crown {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 1.1rem;
  filter: drop-shadow(0 0 8px rgba(232, 168, 74, 0.8));
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.king-body { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-2);
}
.preview-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--amber-dim);
  color: var(--amber-2);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.king h2 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  line-height: 1.1;
}
.king h2 .sym {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}
.king-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  color: var(--muted);
  font-size: 0.92rem;
}
.king-meta strong {
  color: var(--text);
  font-weight: 650;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.chg { font-variant-numeric: tabular-nums; font-weight: 650; }
.chg.up { color: var(--green); }
.chg.down { color: var(--red); }
.flash-up { animation: flashUp .7s var(--ease); }
.flash-down { animation: flashDown .7s var(--ease); }
@keyframes flashUp {
  0% { background: var(--green-dim); }
  100% { background: transparent; }
}
@keyframes flashDown {
  0% { background: var(--red-dim); }
  100% { background: transparent; }
}
.bar {
  height: 8px;
  border-radius: 99px;
  background: #2a241c;
  overflow: hidden;
  position: relative;
}
.bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c4842a, #f6d58a);
  box-shadow: 0 0 12px rgba(232, 168, 74, 0.4);
  transition: width 1.2s var(--ease);
}
.bar-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
}
.king-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 168px;
}
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 650;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge.fee { color: var(--amber-2); border-color: var(--line-2); background: var(--amber-dim); }
.badge.ok { color: var(--green); border-color: rgba(62, 224, 154, 0.3); background: var(--green-dim); }

/* ---------- toolbar / grid ---------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 16px;
  flex-wrap: wrap;
}
.toolbar-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar-title h3 { font-family: var(--display); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.03em; }
.toolbar-title p { color: var(--faint); font-size: 0.8rem; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  transition: all .15s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.is-on {
  color: #1a1206;
  background: linear-gradient(180deg, #f0bc5d, #c4842a);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(196, 132, 42, 0.28);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.coin {
  display: flex;
  flex-direction: column;
  text-align: left;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  color: inherit;
  width: 100%;
  transition: transform .2s var(--ease), border-color .2s, background .2s, box-shadow .2s;
  animation: cardIn .5s var(--ease) both;
}
.coin:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  background: var(--card-2);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(232, 168, 74, 0.08);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.coin-art { aspect-ratio: 1; position: relative; overflow: hidden; }
.coin-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.coin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.coin-name { font-weight: 700; font-size: 0.98rem; letter-spacing: -0.02em; line-height: 1.2; }
.coin-sym { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.coin-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
}
.coin-stats strong { color: var(--text); font-family: var(--mono); font-weight: 580; font-variant-numeric: tabular-nums; }
.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 48px 16px;
  border: 1px dashed var(--line);
  border-radius: 16px;
}

/* skeletons */
.skel {
  background: linear-gradient(90deg, #1a1612 0%, #2a241c 50%, #1a1612 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  border-radius: 12px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); }
.skel-card .art { aspect-ratio: 1; }
.skel-card .body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.skel-card .l1 { height: 14px; width: 70%; }
.skel-card .l2 { height: 10px; width: 40%; }
.skel-card .l3 { height: 8px; width: 100%; border-radius: 99px; }

/* ---------- token page ---------- */
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 16px;
}
.back:hover { color: var(--text); }
.token-head {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.detail-art {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
}
.token-head h1 {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.token-head h1 .sym { font-family: var(--mono); font-size: 1rem; color: var(--muted); font-weight: 500; }
.token-desc { color: var(--muted); margin-top: 4px; }
.token-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  align-items: start;
}
.chart-card, .panel, .info-card, .tab-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}
.chart-wrap { height: 320px; position: relative; }
.chart-wrap canvas { display: block; width: 100%; height: 100%; }
.curve-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.info-card h3, .panel h3, .tab-card h3 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tabs button {
  height: 38px;
  padding: 0 14px;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.86rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs button.is-on { color: var(--text); border-bottom-color: var(--amber); }
.trade-row, .holder-row, .comment {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}
.trade-row:last-child, .holder-row:last-child, .comment:last-child { border-bottom: 0; }
.trade-row .buy { color: var(--green); font-weight: 700; }
.trade-row .sell { color: var(--red); font-weight: 700; }
.holder-bar { height: 6px; border-radius: 99px; background: #2a241c; margin-top: 6px; overflow: hidden; }
.holder-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #c4842a, #f6d58a); }
.comment { display: block; }
.comment .who { font-weight: 650; margin-right: 8px; }
.comment .when { color: var(--faint); font-size: 0.75rem; }
.comment p { color: var(--muted); margin-top: 4px; }
.toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #100e0c;
  padding: 4px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.toggle button {
  height: 34px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--muted);
}
.toggle button.is-on.buy { background: var(--green); color: #042016; }
.toggle button.is-on.sell { background: var(--red); color: #2a0c0a; }
.quick { display: flex; gap: 6px; margin: 8px 0 14px; }
.quick button {
  flex: 1;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
}
.quick button:hover { color: var(--text); background: var(--amber-dim); }
.panel .field { margin-bottom: 8px; }

/* ---------- leaders / learn ---------- */
.section-head { margin-bottom: 18px; }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}
.section-head p { color: var(--muted); margin-top: 6px; max-width: 40rem; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.lead-card h3 {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 1rem;
}
.lead-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.lead-row:last-child { border-bottom: 0; }
.lead-row .rank { color: var(--faint); font-family: var(--mono); font-size: 0.78rem; }
.lead-row .amt { font-family: var(--mono); color: var(--amber-2); font-variant-numeric: tabular-nums; }
.mini {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.step {
  padding: 18px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color .2s, transform .2s var(--ease);
}
.step:hover { border-color: var(--line-2); transform: translateY(-2px); }
.step .n { font-family: var(--mono); color: var(--amber); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; }
.step h3 { margin: 6px 0 8px; font-size: 1.05rem; font-family: var(--display); }
.step p { color: var(--muted); font-size: 0.92rem; }

.diagram {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(232, 168, 74, 0.1), transparent 60%),
    var(--card);
  margin-bottom: 28px;
}
.diagram h3 { font-family: var(--display); margin-bottom: 6px; }
.diagram .lede { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.flow {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: center;
}
.trade-pill {
  height: 72px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(180deg, #f0bc5d, #c4842a);
  color: #1a1206;
  font-weight: 750;
  box-shadow: 0 8px 24px rgba(196, 132, 42, 0.3);
}
.pipes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pipe {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  padding: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pipe .fill {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--amber-dim);
  transition: height 0.5s var(--ease);
  z-index: 0;
}
.pipe .label, .pipe .pct { position: relative; z-index: 1; }
.pipe .pct { font-family: var(--mono); font-size: 1.4rem; font-weight: 650; color: var(--text); display: block; margin: 4px 0; }
.pipe .label { color: var(--muted); font-size: 0.78rem; font-weight: 650; }
.pipe.holders .fill { background: rgba(232, 168, 74, 0.22); }
.pipe.creator .fill { background: rgba(126, 184, 255, 0.18); }
.pipe.platform .fill { background: rgba(255, 255, 255, 0.06); }

.compare {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  margin-bottom: 28px;
}
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #12100c;
}
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--green); }
.compare caption {
  text-align: left;
  padding: 16px 16px 8px;
  font-weight: 650;
  font-family: var(--display);
  caption-side: top;
}

.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 0 16px;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 0 16px; }

/* ---------- footer / tabbar ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 22px 0 36px; position: relative; z-index: 1; }
.foot {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot .brand-mini { display: flex; align-items: center; gap: 10px; color: var(--text); }
.foot img { width: 28px; height: 28px; border-radius: 50%; }
.foot .tag { color: var(--muted); font-size: 0.88rem; }
.foot-links { display: flex; gap: 16px; align-items: center; }
.foot-links a { color: var(--muted); font-weight: 500; }
.foot-links a:hover { color: var(--amber-2); }

.tabbar { display: none; }

/* ---------- overlays ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.overlay.is-open, .overlay.is-open[hidden] { display: flex !important; }
.modal {
  width: min(560px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: linear-gradient(180deg, #1a1612, #12100c);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
  animation: viewIn .35s var(--ease);
}
.modal.wide { width: min(720px, 100%); }
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.modal-head h2 { font-family: var(--display); font-size: 1.3rem; letter-spacing: -0.03em; }
.modal-head p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.x {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--muted);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.x:hover { color: var(--text); background: var(--amber-dim); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 0.78rem; font-weight: 650; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--line-2);
  box-shadow: 0 0 0 4px var(--amber-dim);
  outline: none;
}
.field textarea { min-height: 84px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 140px; gap: 10px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

.stepper { display: flex; gap: 8px; margin-bottom: 18px; }
.stepper span {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: #2a241c;
}
.stepper span.on { background: linear-gradient(90deg, #c4842a, #f6d58a); }
.step-label { color: var(--faint); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }

.upload {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.upload-preview {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  border: 1px dashed var(--line-2);
  background: var(--bg-3);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--faint);
  font-size: 0.7rem;
  text-align: center;
}
.upload-preview img, .upload-preview svg { width: 100%; height: 100%; object-fit: cover; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }

.split {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  margin: 8px 0 16px;
}
.split h3 { font-size: 0.92rem; margin-bottom: 10px; }
.stack { display: flex; height: 16px; border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.stack .h { background: #e8a84a; }
.stack .c { background: #7eb8ff; }
.stack .p { background: #5a534a; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--muted); margin-bottom: 12px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.legend .h { background: #e8a84a; }
.legend .c { background: #7eb8ff; }
.legend .p { background: #5a534a; }
input[type="range"] { width: 100%; accent-color: var(--amber); }
.payout {
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--amber-dim);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
}
.payout strong { color: var(--text); }
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.switch-row:last-of-type { border-bottom: 0; }
.switch-row small { display: block; color: var(--faint); font-size: 0.75rem; margin-top: 2px; }
.switch {
  width: 42px;
  height: 24px;
  border-radius: 99px;
  background: #2a241c;
  position: relative;
  flex-shrink: 0;
  border: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c2b8a8;
  transition: transform .2s var(--ease), background .2s;
}
.switch.on { background: var(--amber-3); }
.switch.on::after { transform: translateX(18px); background: #fff6d8; }

.wallets { display: flex; flex-direction: column; gap: 8px; }
.wallet-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  font-weight: 650;
  transition: border-color .15s, background .15s, transform .15s;
}
.wallet-opt:hover { border-color: var(--line-2); background: var(--card-2); transform: translateY(-1px); }
.wallet-opt svg, .wallet-opt .wicon { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; }

.review-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.review-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.review-list dt, .review-list .k { color: var(--muted); }
.form-note { color: var(--faint); font-size: 0.8rem; margin-top: 12px; }
.honey { position: absolute; left: -9999px; height: 0; overflow: hidden; }
form.wait { display: flex; gap: 8px; }
form.wait input[type="email"] {
  flex: 1;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  padding: 0 16px;
}

.create-actions { display: flex; gap: 8px; margin-top: 8px; }
.create-actions .btn { flex: 1; }

/* confetti canvas */
#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
}

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .king { grid-template-columns: 180px 1fr; }
  .king-art-wrap { width: 180px; height: 180px; }
  .king-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .token-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --tabbar-h: 64px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .lead-grid, .curve-row, .flow, .row-2, .row-3 { grid-template-columns: 1fr; }
  .nav-desk { display: none; }
  .topbar { flex-wrap: wrap; height: auto; padding: 8px 10px; gap: 8px; }
  .search { order: 3; flex: 1 1 100%; max-width: none; }
  .brand .name { display: none; }
  .page, .foot { width: calc(100% - 20px); }
  .page { padding: 14px 0 calc(80px + var(--tabbar-h)); }
  .king { grid-template-columns: 108px 1fr; gap: 12px; padding: 12px; }
  .king-art-wrap { width: 108px; height: 108px; }
  .king h2 { font-size: 1.25rem; }
  .king-cta { grid-column: 1 / -1; flex-direction: row; min-width: 0; }
  .king-cta .btn { flex: 1; }
  .toolbar-title p { display: none; }
  form.wait { flex-direction: column; }
  .site-footer { padding-bottom: 28px; }
  .tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 45;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(8, 7, 5, 0.9);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
  }
  .tabbar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--faint);
    font-size: 0.65rem;
    font-weight: 650;
  }
  .tabbar button.is-on { color: var(--amber-2); }
  .tabbar .tab-create {
    color: var(--faint);
  }
  .tabbar .tab-create .mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #f0bc5d, #c4842a);
    color: #1a1206;
    font-size: 1.1rem;
    margin-top: -8px;
    box-shadow: 0 6px 16px rgba(196, 132, 42, 0.4);
  }
  .chart-wrap { height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-move, .skel, .ticker-label .dot, .flame-crown { animation: none !important; }
  .coin, .btn, .view, .king { transition: none; animation: none; }
}

.wallet-short { display: none; }
@media (max-width: 760px) {
  .wallet-short { display: inline; }
}
