/* Top Blaster (topblaster.bond): brand kit tokens (brand/topblaster): near-black ink, yellow crown,
   red candle, green winner, purple mono labels. Inter heavy for display, JetBrains Mono for numbers. */
:root {
  --ink: #0B0B10;
  --panel: #12131A;
  --panel-2: #181A23;
  --line: #1A1B24;
  --line-2: #252734;
  --text: #ECECF3;
  --muted: #8A8BA0;
  --yellow: #FFD447;
  --yellow-ink: #17130A;
  --red: #FF4D6D;
  --green: #3DF59A;
  --purple: #9B8CFF;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: 16px;
  --max: 1160px;
  --r: 14px;
  --crowns: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' width='56' height='64'%3E%3Cg fill='%23161721'%3E%3Cpath d='M17 18v-7l3.6 2.9L24 9.5l3.4 4.4L31 11v7z'/%3E%3Crect x='18' y='19.5' width='12' height='13' rx='1.8'/%3E%3Crect x='22.9' y='32' width='2.2' height='5' rx='.8'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gut: 28px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background-color: var(--ink); color: var(--text);
  font: 15px/1.55 var(--sans);
  background-image: radial-gradient(900px 520px at 85% -10%, rgba(255, 77, 109, 0.10), transparent 70%), radial-gradient(700px 500px at -10% 40%, rgba(155, 140, 255, 0.05), transparent 70%);
  background-repeat: no-repeat;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--sans); font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--text); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { color: var(--yellow); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.yellow { color: var(--yellow); }
.green { color: var(--green); }
.red { color: var(--red); }
.purple { color: var(--purple); }
.r { text-align: right; }
.pad { padding: 32px var(--gut); }
.err { color: var(--red); }
.ok { color: var(--green); }
.warn { margin: 12px 0; padding: 10px 12px; border: 1px solid #5a4a14; background: #1b170a; color: var(--yellow); border-radius: 10px; font-size: 14px; }
.note { color: var(--muted); font-size: 13px; margin-top: 10px; }
.mark { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; }
.eyebrow { font: 500 12.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple); }

/* ---------- test chain bar ---------- */
.testbar {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px var(--gut);
  background: var(--yellow); color: var(--yellow-ink); font: 600 12.5px/1.3 var(--mono); text-align: center;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
@media (max-width: 480px) { .pulse { display: none; } .testbar { text-wrap: balance; font-size: 12px; } }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 20px;
  padding: 12px var(--gut); background: rgba(11, 11, 16, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, var(--yellow), var(--red)); opacity: 0.55; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.wordmark .logo { width: 26px; height: 26px; flex: none; }
.wm { font: 800 21px/1 var(--sans); letter-spacing: -0.045em; }
.wm-top { color: var(--yellow); } .wm-b { color: var(--red); }
.wordmark:hover { color: inherit; }
nav#nav { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 2px; flex-wrap: wrap; margin: 0 -8px; }
nav#nav a { font: 600 14px/1 var(--sans); color: var(--muted); text-decoration: none; padding: 8px 9px; border-radius: 8px; }
nav#nav a:hover { color: var(--text); background: var(--panel); }
nav#nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); }
.wallet { justify-self: end; }
@media (min-width: 900px) {
  .top { grid-template-columns: auto 1fr auto; }
  nav#nav { grid-column: 2; grid-row: 1; justify-content: center; margin: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  font: 700 14.5px/1 var(--sans); letter-spacing: -0.01em; color: var(--text); background: var(--panel-2); border: 1px solid var(--line-2);
  border-radius: 12px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s, background .12s, border-color .12s;
}
.btn:hover { border-color: var(--muted); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn.yellow { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); }
.btn.yellow:hover { background: #ffdf70; }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.wbtn .bal { color: var(--muted); font-weight: 500; font-family: var(--mono); }
.dot-ok { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
@media (max-width: 420px) { .wbtn .bal { display: none; } }

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) 64px; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; gap: 36px; padding: 48px 0 40px; align-items: center; }
.display { font-size: clamp(44px, 11.5vw, 92px); line-height: 0.96; font-weight: 900; letter-spacing: -0.055em; }
.display .l { color: var(--red); } .display .w { color: var(--green); }
.lede { color: var(--muted); font-size: 17.5px; max-width: 54ch; margin-top: 22px; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-side { display: grid; gap: 18px; justify-items: center; }
.crowned { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.crowned::before { content: ""; position: absolute; inset: -60px; background: radial-gradient(circle, rgba(255, 77, 109, 0.28), transparent 62%); z-index: -1; }
.crowned svg { width: 100%; height: 100%; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr); padding: 80px 0 64px; gap: 56px; }
  .crowned { width: 150px; height: 150px; }
}

/* ---------- the terminal (signature element) ---------- */
.term { width: 100%; background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.term-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line-2); font: 500 12px var(--mono); color: var(--muted); }
.term-dots { display: flex; gap: 6px; } .term-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.term-body { padding: 16px 18px 18px; font: 13.5px/1.5 var(--mono); }
.term-foot { color: var(--muted); font-size: 12px; padding: 12px 18px 16px; border-top: 1px solid var(--line); font-family: var(--mono); }
.lines { margin: 0; display: grid; }
.lines > div { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; }
.lines > div::before { content: "\203A"; color: var(--purple); font-weight: 700; }
.lines > div.hot::before { color: var(--red); }
.lines dt { color: var(--muted); white-space: nowrap; flex: 1; }
.lines dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.cursor { display: inline-block; width: 0.6em; height: 1.05em; background: var(--yellow); vertical-align: -0.18em; margin-left: 4px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .term, .crowned svg, .cursor { animation: none; } }

/* ---------- blocks ---------- */
.block { padding: 28px 0; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.block h2, .h2 { font-size: clamp(22px, 4.6vw, 30px); margin-bottom: 14px; }
.block h2 em, .page-head h1 em { font-style: normal; color: var(--yellow); }
.block-head h2 { margin: 0; }
.more { font: 600 13.5px var(--sans); color: var(--muted); }
.page-head { padding: 40px 0 24px; }
.page-head h1 { font-size: clamp(34px, 8vw, 58px); line-height: 1; letter-spacing: -0.05em; }
.empty { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 28px 20px; display: grid; gap: 14px; justify-items: start; background: rgba(18, 19, 26, 0.7); }

/* ---------- coins grid ---------- */
.coins { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.coin {
  display: grid; gap: 14px; padding: 16px; text-decoration: none; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r);
}
.coin { transition: border-color .15s, transform .15s; }
.coin:hover { border-color: var(--red); color: var(--text); transform: translateY(-2px); }
.coin-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.coin-id { display: grid; min-width: 0; flex: 1; }
.coin-id b { font-family: var(--sans); font-weight: 800; letter-spacing: -0.02em; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tick { color: var(--muted); font: 500 13px var(--mono); }
.coin-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0; }
.coin-stats dt, .stats dt { color: var(--muted); font-size: 12px; }
.coin-stats dd, .stats dd { margin: 2px 0 0; font: 600 14px var(--mono); font-variant-numeric: tabular-nums; }
.curve { display: grid; gap: 6px; }
.curve span { font: 500 11.5px var(--mono); color: var(--muted); }
.curve b { display: block; height: 4px; border-radius: 2px; background: var(--panel-2); overflow: hidden; }
.curve i { display: block; height: 100%; background: var(--yellow); }

.cimg { position: relative; flex: none; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line-2); display: grid; place-items: center; }
.cimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.cimg b { font: 800 16px var(--sans); color: var(--yellow); }
.cimg.lg { width: 64px; height: 64px; border-radius: 12px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); font: 600 12px var(--mono); white-space: nowrap; }
.chip .px { color: var(--muted); font-weight: 500; }
.chip.muted { color: var(--muted); }
.chip.house { color: var(--yellow-ink); background: var(--yellow); border-color: var(--yellow); }
.flag { font: 500 10.5px var(--mono); color: var(--purple); border: 1px solid #3a3466; border-radius: 4px; padding: 1px 5px; }
.live { color: var(--green); font: 500 12px var(--mono); }

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 22px 22px 26px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); min-height: 200px; display: grid; align-content: start; gap: 10px; }
.steps li::before { content: counter(s, decimal-leading-zero); color: var(--purple); font: 500 15px var(--mono); margin-bottom: 18px; }
.steps b { font: 800 clamp(22px, 2.4vw, 27px)/1.08 var(--sans); letter-spacing: -0.035em; text-wrap: balance; }
.steps b .r1 { color: var(--red); } .steps b .g1 { color: var(--green); }
.steps p { color: var(--muted); margin-top: 2px; font-size: 14.5px; max-width: 60ch; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font: 500 11.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl th.r { text-align: right; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; font-family: var(--mono); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.alert td { color: var(--yellow); }
.tbl tbody tr:hover td { background: rgba(255, 255, 255, 0.015); }
@media (max-width: 620px) { .hide-s { display: none; } .tbl td, .tbl th { padding: 9px 8px; } .tbl { font-size: 12.5px; } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font: 500 13px var(--mono); color: var(--muted); padding: 0; margin-bottom: 6px; }
.field.inline { display: inline-flex; align-items: center; gap: 10px; }
.field.inline > span { margin: 0; }
input, textarea, select {
  width: 100%; font: 15px var(--sans); color: var(--text); background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 11px 12px; min-width: 0;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--yellow); }
input.upper { text-transform: uppercase; font-family: var(--mono); }
textarea { resize: vertical; }
.hint { color: var(--muted); font-size: 12.5px; }
.launch { display: grid; gap: 8px 32px; }
@media (min-width: 860px) { .launch { grid-template-columns: 1fr 1fr; } }
.img-drop { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--r); cursor: pointer; background: var(--panel); }
.img-drop.over { border-color: var(--yellow); }
.img-drop b { display: block; font: 600 14px var(--mono); color: var(--text); }
.img-drop small { color: var(--muted); font-size: 12.5px; }
.img-prev { flex: none; width: 64px; height: 64px; border-radius: 10px; background: var(--panel-2); display: grid; place-items: center; overflow: hidden; }
.img-prev .mark { width: 28px; height: 28px; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 6px; max-height: 268px; overflow-y: auto; padding: 2px; margin-top: 8px; }
.pair { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "t p" "n n"; gap: 0 8px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; background: var(--panel); position: relative; }
.pair[hidden] { display: none; }
.pair input { position: absolute; opacity: 0; pointer-events: none; }
.pair .pt { grid-area: t; font: 700 13.5px var(--mono); }
.pair .pp { grid-area: p; justify-self: end; color: var(--muted); font: 12px var(--mono); }
.pair .pn { grid-area: n; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pair .flag { position: absolute; right: 6px; bottom: 6px; }
.pair:has(input:checked) { border-color: var(--yellow); background: #1c190b; }
.pair:has(input:focus-visible) { outline: 2px solid var(--yellow); }
.sum { border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px 14px 10px; margin-bottom: 14px; font: 13.5px var(--mono); }
.reg { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; max-width: 720px; }
.reg .field { flex: 1 1 320px; margin: 0; }

/* ---------- coin page ---------- */
.coin-head { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; padding: 32px 0 20px; }
.coin-title h1 { font-size: clamp(24px, 6vw, 36px); line-height: 1.1; overflow-wrap: anywhere; }
.coin-title p { margin-top: 6px; }
.stock { grid-column: 1 / -1; display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "l l l" "t p s"; align-items: baseline; gap: 2px 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); }
.stock-l { grid-area: l; color: var(--muted); font-size: 12px; }
.stock-t { grid-area: t; font: 800 22px var(--sans); letter-spacing: -0.03em; }
.stock-p { grid-area: p; font: 500 18px var(--mono); }
.stock-s { grid-area: s; justify-self: end; display: flex; gap: 8px; align-items: center; font: 12px var(--mono); }
@media (min-width: 860px) { .coin-head { grid-template-columns: auto 1fr auto; } .stock { grid-column: 3; min-width: 280px; } }
.coin-grid { display: grid; gap: 28px; grid-template-areas: "main" "side" "trades"; }
.coin-main { grid-area: main; min-width: 0; } .coin-side { grid-area: side; } .coin-trades { grid-area: trades; min-width: 0; }
@media (min-width: 960px) { .coin-grid { grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "main side" "trades side"; align-items: start; } }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0 0 14px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.stats > div { background: var(--panel); padding: 12px 14px; min-width: 0; }
.stats small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 620px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.chart-box { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); padding: 8px 4px 0; }
.chart { display: block; width: 100%; height: auto; }
.chart .g { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--muted); font: 11px var(--mono); }
.chart .line { fill: none; stroke: var(--yellow); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart .area { fill: rgba(255, 212, 71, 0.08); }
.chart .dot { fill: var(--yellow); }
.chart .avg { stroke: var(--red); stroke-dasharray: 5 5; stroke-width: 1.2; }
.chart .avgt { fill: var(--red); font: 11px var(--mono); }
.chart-empty { display: grid; place-items: center; min-height: 220px; color: var(--muted); font-size: 14px; padding: 20px; text-align: center; }

.coin-side { display: grid; gap: 16px; align-content: start; }
.trade, .pool, .blast { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); padding: 16px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--ink); border-radius: 8px; margin-bottom: 14px; }
.tabs button { font: 600 14px var(--mono); padding: 9px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--yellow); }
.tabs button[data-side="sell"][aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--red); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 8px; }
.quick button { font: 500 12.5px var(--mono); padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); cursor: pointer; }
.quick button:hover { border-color: var(--muted); }
.quote { color: var(--muted); font-size: 13px; min-height: 20px; margin-bottom: 10px; }
.big { font: 800 28px var(--sans); letter-spacing: -0.03em; }
.pool .h2, .blast .h2 { font-size: 15px; margin-bottom: 8px; }
.mini { list-style: none; margin: 0; padding: 0; font: 13px var(--mono); }
.mini li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line-2); }
.mini li:last-child { border: 0; }

/* ---------- my rebates page ---------- */
.printer-top { display: grid; gap: 24px; margin-bottom: 28px; }
@media (min-width: 860px) { .printer-top { grid-template-columns: 360px 1fr; } }
.claims { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); padding: 16px; align-self: start; }
.claim-list { list-style: none; margin: 0; padding: 0; font: 13.5px var(--mono); }
.claim-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
details summary { cursor: pointer; color: var(--muted); font: 13px var(--mono); margin-top: 14px; }
.rules { margin-top: 32px; max-width: 760px; }
.rules ul, .trust ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 8px; }
.rules b, .trust b { color: var(--text); }

/* ---------- blasters / ledger ---------- */
.filter { margin-bottom: 18px; }
.filter select { width: auto; min-width: 160px; }
.two { display: grid; gap: 28px; }
@media (min-width: 960px) { .two { grid-template-columns: 1.3fr 1fr; } }
.stats.wide { margin-bottom: 8px; }
@media (min-width: 620px) { .stats.wide { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .stats.wide { grid-template-columns: repeat(4, 1fr); } }
.stats.wide dd { font-size: 18px; }
.splitbar { display: flex; height: 14px; border-radius: 4px; overflow: hidden; gap: 2px; margin: 12px 0; }
.s-pool { background: var(--green); } .s-buy { background: var(--red); } .s-ops { background: var(--purple); }
.legend { display: grid; gap: 6px; margin: 0; font: 13.5px var(--mono); max-width: 520px; }
.legend > div { display: flex; justify-content: space-between; gap: 12px; }
.legend dt { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.legend dt i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.legend dd { margin: 0; }
.trust { max-width: 820px; }

/* ---------- sheet + toast ---------- */
#sheet { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.6); display: grid; place-items: end center; padding: 16px; }
#sheet[hidden] { display: none; }
.sheet-card { width: min(100%, 460px); background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 20px; display: grid; gap: 12px; max-height: 88vh; overflow-y: auto; }
@media (min-width: 620px) { #sheet { place-items: center; } }
.sheet-card h2 { font-size: 22px; }
.opt { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; text-align: left; padding: 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); cursor: pointer; font: inherit; }
.opt:hover { border-color: var(--yellow); }
.opt b { font: 700 15px var(--sans); grid-column: 2; }
.opt img { grid-row: span 2; border-radius: 6px; }
.opt span { grid-column: 2; color: var(--muted); font-size: 13px; }
.opt:not(:has(img)) b, .opt:not(:has(img)) span { grid-column: 1 / -1; }
.addr { font-size: 13px; overflow-wrap: anywhere; color: var(--muted); }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
#toast {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 60;
  width: max-content; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2);
  font: 13.5px var(--mono); transition: opacity .2s, transform .2s;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast.ok { border-color: #1f5c3a; }
#toast.err { border-color: #6a2433; color: #ffd0d8; }
#toast a { color: var(--yellow); }

/* ---------- footer ---------- */
.foot { max-width: var(--max); margin: 0 auto; padding: 28px var(--gut) 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: grid; gap: 10px; }
.foot-brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; color: var(--text); font-weight: 600; }
.foot-brand .wm { font-size: 18px; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* X link in the header */
.xlink { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--muted); flex: none; }
.xlink:hover, .xlink:focus-visible { color: var(--yellow); border-color: var(--yellow); }
.xlink svg { width: 16px; height: 16px; }
.top-right { display: flex; align-items: center; gap: 8px; justify-self: end; }
.top-right .wallet { justify-self: auto; }

/* launch form socials + coin page socials */
fieldset.socials { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
fieldset.socials legend { padding: 0; margin-bottom: 6px; }
fieldset.socials label { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 10px; }
fieldset.socials label span { font: 500 12.5px/1 var(--mono); color: var(--muted); }
.socials-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.socials-row a { font: 600 12.5px/1 var(--mono); padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; color: var(--text); }
.socials-row a:hover { border-color: var(--yellow); color: var(--yellow); }
.thesis { margin-top: 10px; color: var(--muted); max-width: 60ch; }

.testbar[hidden] { display: none; }

.stats dd small.sub { display: block; font-size: 11.5px; margin-top: 3px; font-weight: 500; }

/* coin page: contract address row */
.ca-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.copy-ca { font: 600 12px/1 var(--mono); color: var(--yellow-ink); background: var(--yellow); border: 0; border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.copy-ca:hover { background: #ffdf70; }
.copy-ca.ok { background: var(--green); }
.ca-row a { color: var(--muted); }
.ca-row a:hover { color: var(--yellow); }

.req { color: var(--yellow); font-style: normal; margin-left: 2px; }

/* winners (7 Oct) */
.winners { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.winners li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(61, 245, 154, 0.04); font-family: var(--mono); font-size: 14px; }
.winners .w-amt { font-weight: 700; white-space: nowrap; }
.winners .w-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.winners .w-when { font-size: 12px; white-space: nowrap; }
.coin-side .winners li { grid-template-columns: auto 1fr; }
.coin-side .winners .w-when { grid-column: 1 / -1; }
.pool-lines { margin: 8px 0; display: grid; gap: 4px; }
.pool-lines div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.pool-lines dt { color: var(--muted); }
.pool-lines dd { margin: 0; font-family: var(--mono); }
@media (max-width: 560px) { .winners li { grid-template-columns: auto 1fr; } .winners .w-when { grid-column: 1 / -1; } }

/* crown wall behind the how-it-works and ticker blocks (brand kit "crowd") */
.how { position: relative; isolation: isolate; }
.how::before { content: ""; position: absolute; inset: 120px calc(-1 * var(--gut)) -20px; background: var(--crowns); background-size: 56px 64px; opacity: 0.7; -webkit-mask: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask: radial-gradient(ellipse at center, #000 30%, transparent 75%); z-index: -1; pointer-events: none; }
.how-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.how-head h2 { font-size: clamp(38px, 8vw, 72px); line-height: 0.95; letter-spacing: -0.055em; margin: 0; }
.how-head .mark { width: 56px; height: 56px; flex: none; }
.ticker-card { display: grid; gap: 8px; padding: 26px 24px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--panel); max-width: 620px; }
.ticker-card .tk { font: 900 clamp(48px, 12vw, 88px)/0.9 var(--sans); letter-spacing: -0.05em; color: var(--red); }
.ticker-card .tk span { color: var(--yellow); }

/* buyback and burn */
.bb-stats { margin-bottom: 12px; }
.bb-stats dd { font-size: 18px; }
.burns li { background: rgba(255, 77, 109, 0.05); }
