/* instapaid.fun: the shared design system (every page).
   "Feed-native": each page reads like a post by @instapaid.official. System fonts only;
   the wordmark is outlined paths (wordmark.svg), so it is heavy on every device.
   Home-only sections live in home.css. */

:root {
  --bg: #fbf9ff;
  --bg-2: #f3eefc;
  --card: #ffffff;
  --screen: #ffffff;
  --line: #e4dcf2;
  --line-2: #cfc3e6;
  --ink: #1b1530;
  --ink-2: #453c5d;
  --muted: #5c5376;
  --accent: #6d28d9;
  --accent-2: #5b21b6;
  --pink: #be185d;
  --ok: #14532d;
  --ok-tint: #dcfce7;
  --ok-line: #86efac;
  --warn: #6e3d00;
  --warn-tint: #fff1c9;
  --warn-line: #f5c451;
  --err: #9f1239;
  --err-tint: #ffe4ea;
  --err-line: #fda4af;
  --gold: #ffd23f;
  --gold-2: #f5a300;
  --gold-3: #b86a00;
  --gold-tint: #fff1c9;
  --gold-ink: #6e3d00;
  --tint: #efe8ff;
  --lore-bg: #f5f0ff;
  --field: #ffffff;
  --grad: linear-gradient(120deg, #7c3aed 0%, #e1306c 42%, #f97316 74%, #fbbf24 100%);
  --btn-grad: linear-gradient(100deg, #6d28d9 0%, #a21caf 50%, #be185d 100%);
  /* The brand gradient as a text fill: the same four hues, deep enough for 4.5:1 on the page (worst 4.8). */
  --grad-text: linear-gradient(120deg, #6d28d9 0%, #be185d 42%, #c2410c 74%, #b45309 100%);
  --shadow: 0 1px 2px rgba(27, 21, 48, .06), 0 10px 30px -12px rgba(76, 29, 149, .18);
  --shadow-lg: 0 30px 80px -24px rgba(76, 29, 149, .45), 0 12px 30px -12px rgba(225, 48, 108, .25);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Liberation Sans", sans-serif;
  /* Headings at 900: a face that has a real black weight wherever one is installed. */
  --display: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI Black", "Segoe UI", "Arial Black", Roboto, "Liberation Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100c1a;
    --bg-2: #171128;
    --card: #1c1630;
    --screen: #120e1d;
    --line: #342a52;
    --line-2: #4a3d70;
    --ink: #f5f1ff;
    --ink-2: #d2c9e8;
    --muted: #b3a9cc;
    --accent: #c4b5fd;
    --accent-2: #ddd6fe;
    --pink: #f9a8d4;
    --ok: #86efac;
    --ok-tint: #10301f;
    --ok-line: #1f6b41;
    --warn: #ffd23f;
    --warn-tint: #2e2410;
    --warn-line: #6b5314;
    --err: #fda4af;
    --err-tint: #3a1522;
    --err-line: #7f2a40;
    --gold-tint: #2e2410;
    --gold-ink: #ffd23f;
    --tint: #2a2046;
    --lore-bg: #251c3d;
    --field: #150f24;
    --grad-text: linear-gradient(120deg, #9f7aea 0%, #f0508a 42%, #f97316 74%, #fbbf24 100%); /* worst 5.5 on #100c1a */
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 80px -24px rgba(124, 58, 237, .5), 0 12px 30px -12px rgba(225, 48, 108, .3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font-size: 17px; font-weight: 750; letter-spacing: -.01em; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform .2s ease; }
.btn:hover svg.go { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--btn-grad); color: #fff; box-shadow: 0 10px 26px -10px rgba(162, 28, 175, .7); }
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(162, 28, 175, .85); transform: translateY(-1px); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-gold { background: var(--gold); color: #2b1800; box-shadow: 0 10px 26px -12px rgba(245, 163, 0, .9); }
.btn-gold:hover { background: #ffdc66; transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], button:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .short, .nav-link .short { display: none; }

/* Copy buttons: ink on light, with a spoken status line nearby. */
.copy {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; min-width: 48px; padding: 0 18px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--bg); font-weight: 750; font-size: 16px;
  transition: background-color .2s ease, transform .15s ease;
}
.copy svg { width: 18px; height: 18px; flex: none; }
.copy:active { transform: scale(.96); }
.copy.copied { background: #047857; color: #fff; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); min-height: 44px; flex: none; }
.brand img { width: 38px; height: 38px; }
/* The wordmark: Inter Black outlines, painted in the text colour through a mask. */
.wordmark {
  display: block; width: 116px; height: 27px; margin-top: 1px;
  background: currentColor;
  -webkit-mask: url(/wordmark.svg) no-repeat 0 50% / contain;
  mask: url(/wordmark.svg) no-repeat 0 50% / contain;
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--ink-2); font-weight: 650; text-decoration: none; white-space: nowrap;
}
.nav-link:hover { background: var(--tint); color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); background: var(--tint); }
.nav .btn { margin-left: 8px; }

/* ---------- small pieces ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--accent);
  font-size: 14px; font-weight: 800; line-height: 1.2; white-space: nowrap;
}
.pill svg { width: 15px; height: 15px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--gold-tint); color: var(--gold-ink); border: 1px solid var(--warn-line); font-size: 13px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.tag svg { width: 14px; height: 14px; }
.fan-made { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--ink-2); font-size: 13px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 750; line-height: 1.3; white-space: nowrap; border: 1px solid; }
.status::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.claimed { background: var(--ok-tint); color: var(--ok); border-color: var(--ok-line); }
.status.open { background: var(--gold-tint); color: var(--gold-ink); border-color: var(--warn-line); }
.status.open::before { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.tick { display: inline-block; padding: 0 7px; border-radius: 999px; background: var(--gold-tint); color: var(--gold-ink); font-weight: 850; font-size: .92em; }
.mention { color: var(--accent); font-weight: 650; }

/* avatars and coin discs */
.ava {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 850; letter-spacing: .01em; line-height: 1;
}
.ava.sm { width: 26px; height: 26px; font-size: 11px; }
.ava.lg { width: 56px; height: 56px; font-size: 18px; }
.ava-peach { background: #ffd9c2; color: #7a3410; }
.ava-teal { background: #c6f0e8; color: #0b5249; }
.ava-lilac { background: #e4dbff; color: #4c1d95; }
.ava-sky { background: #d6e9ff; color: #0b4a85; }
.coin-ava {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: inline-grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, #fff6c2 0 12%, #ffd23f 38%, #f5a300 72%, #b86a00 100%);
  box-shadow: inset 0 0 0 3px rgba(184, 106, 0, .55), inset 0 0 0 6px rgba(255, 246, 194, .45), 0 6px 14px -6px rgba(184, 106, 0, .8);
  color: #4a2600; font-weight: 900; font-size: 18px; line-height: 1; overflow: hidden;
}
.coin-ava.c2 { box-shadow: inset 0 0 0 3px #7c3aed, inset 0 0 0 6px rgba(255, 246, 194, .5), 0 6px 14px -6px rgba(124, 58, 237, .8); }
.coin-ava.c3 { box-shadow: inset 0 0 0 3px #e1306c, inset 0 0 0 6px rgba(255, 246, 194, .5), 0 6px 14px -6px rgba(225, 48, 108, .8); }
.coin-ava.c4 { box-shadow: inset 0 0 0 3px #f97316, inset 0 0 0 6px rgba(255, 246, 194, .5), 0 6px 14px -6px rgba(249, 115, 22, .8); }
.coin-ava.c5 { box-shadow: inset 0 0 0 3px #a21caf, inset 0 0 0 6px rgba(255, 246, 194, .5), 0 6px 14px -6px rgba(162, 28, 175, .8); }
.coin-ava.c6 { box-shadow: inset 0 0 0 3px #b86a00, inset 0 0 0 6px rgba(255, 246, 194, .5), 0 6px 14px -6px rgba(184, 106, 0, .8); }

/* "See a creator's page": instapaid.fun/u/ + username + Look up */
.lookup label { display: block; margin: 0 0 8px; font-weight: 800; font-size: 15px; }
.lookup-row { display: flex; gap: 10px; }
.lookup-field {
  flex: 1; min-width: 0; display: flex; align-items: center; min-height: 52px; padding: 0 4px 0 14px;
  border-radius: 14px; border: 2px solid var(--line-2); background: var(--field); cursor: text;
}
.lookup-field:focus-within { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 1px; }
.lookup-field span { font-weight: 750; color: var(--muted); white-space: nowrap; font-size: 16px; }
.lookup-field input {
  flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 700; padding: 12px 8px 12px 1px; margin: 0; min-height: 48px; border-radius: 0;
}
.lookup-field input:focus { outline: none; }
.lookup-field input::placeholder { color: var(--muted); opacity: 1; font-weight: 600; }
.lookup .btn { min-height: 52px; border-radius: 14px; padding: 0 20px; }
.lookup-err { margin-top: 8px; font-size: 14.5px; font-weight: 650; color: var(--err); }

/* ---------- forms and cards (launch, claim, account) ---------- */
.page { padding: 34px 0 72px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.page-narrow { max-width: 640px; margin: 0 auto; }
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.page-head > img { width: 46px; height: 46px; flex: none; padding: 3px; border-radius: 50%; background: var(--grad); }
/* The page's own art, beside its title: decorative, and it never pushes the title. */
.page-head > .page-art {
  width: 132px; height: auto; margin: -34px -6px -40px auto; padding: 0; border-radius: 0; background: none;
  filter: drop-shadow(0 16px 20px rgba(76, 29, 149, .24)); animation: art-float 6s ease-in-out infinite; pointer-events: none;
}
@keyframes art-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
.page-lead { margin: -8px 0 20px; font-size: 17.5px; line-height: 1.55; color: var(--ink-2); }
.claim-intro { display: flex; align-items: center; gap: 12px; margin: -14px 0 18px; }
.claim-intro .page-lead { margin: 0; flex: 1; min-width: 0; }
.intro-art { flex: none; width: 124px; height: auto; margin: -10px -10px -10px 0; filter: drop-shadow(0 14px 18px rgba(76, 29, 149, .26)); animation: art-float 6s ease-in-out infinite; pointer-events: none; }
.page-lead b { color: var(--ink); }
.handle { display: block; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.page-title { font-family: var(--display); font-size: clamp(32px, 4.4vw, 48px); line-height: 1.04; font-weight: 900; letter-spacing: -.035em; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 28px;
  box-shadow: var(--shadow); margin-bottom: 18px;
}
.card h2 { font-family: var(--display); font-size: 26px; line-height: 1.12; font-weight: 900; letter-spacing: -.025em; margin: 0 0 8px; }
.card h1 { font-family: var(--display); font-size: clamp(28px, 4vw, 38px); line-height: 1.08; font-weight: 900; letter-spacing: -.03em; margin: 0 0 8px; }
.sub { color: var(--ink-2); margin: 0 0 18px; font-size: 17px; }
label { display: block; font-weight: 750; margin: 18px 0 8px; font-size: 16px; }
.hint { color: var(--muted); font-size: 14.5px; font-weight: 500; }
input, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 14px;
  border: 2px solid var(--line-2); background: var(--field); color: var(--ink); min-height: 52px;
  transition: border-color .15s ease;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:hover, textarea:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); }
input:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input[type="file"] { padding: 6px; min-height: 56px; cursor: pointer; color: var(--ink-2); }
input[type="file"]::file-selector-button {
  font: inherit; font-weight: 750; min-height: 44px; padding: 0 16px; margin-right: 12px; border-radius: 10px;
  border: 0; background: var(--tint); color: var(--ink); cursor: pointer;
}
.row { display: flex; gap: 14px; } .row > * { flex: 1; min-width: 0; }
.row > .narrow { flex: 0 0 38%; }

/* The primary action on a form. The pages' scripts find it by id; the look is here. */
button.primary {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 24px;
  min-height: 56px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--btn-grad); color: #fff; font-size: 17px; font-weight: 800; letter-spacing: -.01em;
  box-shadow: 0 10px 26px -10px rgba(162, 28, 175, .7);
  transition: transform .15s ease, box-shadow .2s ease;
}
button.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(162, 28, 175, .85); }
button.primary.gold { background: var(--gold); color: #2b1800; box-shadow: 0 10px 26px -12px rgba(245, 163, 0, .9); }
button.primary svg { width: 20px; height: 20px; flex: none; }

/* Status notes. common.js note() sets className = "note ok|warn|err". */
.note { border-radius: 16px; padding: 13px 16px; font-size: 15.5px; font-weight: 600; margin-top: 16px; border: 1px solid; line-height: 1.5; }
.note.ok { background: var(--ok-tint); color: var(--ok); border-color: var(--ok-line); }
.note.warn { background: var(--warn-tint); color: var(--warn); border-color: var(--warn-line); }
.note.err { background: var(--err-tint); color: var(--err); border-color: var(--err-line); }
.note a { color: inherit; font-weight: 800; display: inline-flex; align-items: center; min-height: 44px; }

.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }

/* What we never ask for. */
.scam {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 18px;
  background: var(--err-tint); border: 1px solid var(--err-line); color: var(--ink);
}
.scam > svg { flex: none; width: 24px; height: 24px; color: var(--err); margin-top: 1px; }
.scam p { font-size: 15px; color: var(--ink); }
.scam p + p { margin-top: 6px; }

.fine { font-size: 14px; color: var(--muted); }

/* ---------- launch page ---------- */
.launch-card .sub { margin-bottom: 20px; }
.who { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); }
.who img { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; border: 2px solid var(--card); box-shadow: 0 0 0 2px var(--line-2); }
.who-ava { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 4px solid transparent; background: linear-gradient(#1b1530, #1b1530) padding-box, var(--grad) border-box; color: #fff; font-size: 24px; font-weight: 900; }
.has-pic .who-ava { display: none; }
.who-txt { min-width: 0; }
.who-txt b { font-size: 18px; overflow-wrap: anywhere; }
.at-field { display: flex; align-items: center; border-radius: 14px; border: 2px solid var(--line-2); background: var(--field); padding-left: 14px; }
.at-field:focus-within { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 1px; }
.at-field span { font-weight: 800; color: var(--muted); font-size: 17px; }
.at-field input { border: 0; background: transparent; padding-left: 4px; outline: none; }
.at-field input:focus { outline: none; }
.field-hint { margin-top: 8px; }
.side { display: flex; flex-direction: column; gap: 0; position: sticky; top: 92px; }
.side-label { display: inline-block; font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 12px; }
.preview { background: linear-gradient(180deg, var(--tint), var(--card) 60%); }
.pv-top { display: flex; align-items: center; gap: 14px; }
.pv-coin { width: 60px; height: 60px; font-size: 24px; }
.pv-coin img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pv-name { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.pv-name b { font-size: 19px; line-height: 1.2; overflow-wrap: anywhere; }
.pv-for { margin-top: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.pv-for b { color: var(--accent); }
.pv-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.side-card { padding: 22px 24px; }
.side-card h2 { font-size: 20px; margin-bottom: 12px; }
.side-card p { color: var(--ink-2); }
.side-card p b { color: var(--ink); }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.side-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.side-list svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--tint); color: var(--accent); margin-top: 1px; }
.free-card { border-style: dashed; position: relative; }
.free-card .side-art { float: right; width: 84px; height: auto; margin: -34px -12px 4px 8px; filter: drop-shadow(0 10px 14px rgba(76, 29, 149, .22)); }

/* ---------- claim page ---------- */
.progress { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 8px; }
.progress li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: 15px; line-height: 1.25; }
.progress li span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--ink); font-size: 13.5px; font-weight: 900; }
.progress li.on { border-color: var(--accent); color: var(--ink); box-shadow: var(--shadow); }
.progress li.on span { background: var(--btn-grad); color: #fff; }
.progress li.done span { background: #15803d; color: #fff; }
#start .side-list { margin: 4px 0 4px; }
.code-card {
  margin: 14px 0 18px; padding: 22px 18px 18px; border-radius: 22px; text-align: center;
  border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box;
  box-shadow: var(--shadow);
}
.code-label { display: block; font-size: 14px; font-weight: 800; color: var(--muted); }
.code {
  margin: 8px 0 16px; font-family: var(--mono); font-size: clamp(30px, 8.4vw, 44px); font-weight: 800; letter-spacing: .06em;
  color: var(--ink); user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; line-height: 1.15;
}
.code-copy { width: 100%; min-height: 56px; font-size: 17px; border-radius: 999px; }
ol.steps { padding-left: 22px; margin: 0 0 18px; color: var(--ink-2); }
ol.steps li { margin: 8px 0; padding-left: 4px; }
ol.steps li::marker { font-weight: 800; color: var(--accent); }
ol.steps a { font-weight: 800; }
#open-dm { margin-bottom: 4px; }
.share { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); font-weight: 650; font-size: 15px; }
.fees-list { margin-top: 4px; }
.fees-list li { font-size: 17px; padding: 14px 0; }
.fees-list b { font-size: 20px; }
.page-narrow > .scam { margin: 4px 0 18px; }
.card.more-info { padding: 0; }
.more-info summary { list-style: none; display: flex; align-items: center; min-height: 56px; padding: 0 22px; cursor: pointer; font-weight: 800; font-size: 17px; border-radius: 26px; }
.more-info summary::-webkit-details-marker { display: none; }
.more-info summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2.5px solid var(--ink-2); border-bottom: 2.5px solid var(--ink-2); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease; }
.more-info[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.more-info ul { margin: 0; padding: 0 22px 20px 42px; color: var(--ink-2); }
.more-info li + li { margin-top: 8px; }

/* ---------- creator page (/u/<username>) ---------- */
.acct-top { display: flex; align-items: center; gap: 16px; padding-top: 18px; }
/* The creator wears the crown: decorative, on the avatar. */
.ava-crowned { position: relative; flex: none; display: block; }
.acct-crown { position: absolute; z-index: 1; left: calc(50% - 33px); top: -44px; width: 66px; height: auto; filter: drop-shadow(0 8px 10px rgba(154, 87, 0, .35)); animation: crown-tilt 5s ease-in-out infinite; pointer-events: none; }
@keyframes crown-tilt { 0%, 100% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-3px); } }
.acct-ava { flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; border: 5px solid transparent; background: linear-gradient(#1b1530, #1b1530) padding-box, var(--grad) border-box; color: #fff; font-size: 30px; font-weight: 900; box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--line); }
.acct-id { min-width: 0; }
.acct-id h1 { margin: 0 0 6px; overflow-wrap: anywhere; }
.acct-id .handle { margin-bottom: 2px; }
.acct-status { margin: 16px 0 0; }
.fees-box { margin-top: 18px; padding: 18px 20px; border-radius: 20px; background: var(--gold-tint); border: 1px solid var(--warn-line); }
.fees-label { font-size: 14px; font-weight: 800; color: var(--gold-ink); }
.fees-num { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 4px; }
.big { font-family: var(--display); font-size: 44px; line-height: 1.05; font-weight: 900; letter-spacing: -.03em; color: var(--ink); }
.unit { font-size: 18px; font-weight: 800; color: var(--gold-ink); }
.fees-box .hint { color: var(--ink-2); }
.acct-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.tokens li.token { align-items: flex-start; gap: 14px; padding: 16px 0; }
.tokens li.empty { color: var(--ink-2); }
.token-what { flex: 1; min-width: 0; }
.token-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.token-head b { font-size: 17px; overflow-wrap: anywhere; }
.token-lore { margin-top: 8px; padding: 8px 12px 9px; border-radius: 14px; background: var(--lore-bg); color: var(--ink); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; } /* a URL or hashtag in the lore wraps */
.token-lore-k { display: block; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.token-links { flex: none; display: flex; flex-direction: column; gap: 8px; }
.token-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; overflow-wrap: anywhere; }
.token-link { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); font-weight: 750; text-decoration: none; }
.token-link:hover { border-color: var(--accent); }
.acct-fine { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.lookup.card label { margin-top: 0; font-size: 17px; }
.lookup-hint { margin-top: 10px; }
.takedown-line { margin: 4px 4px 0; }

/* ---------- footer ---------- */
.foot { margin-top: 24px; padding: 40px 0 48px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: start; }
.foot-brand p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.foot-brand .brand img { width: 32px; height: 32px; }
.foot-brand .wordmark { width: 99px; height: 23px; }
.disclaimer { font-size: 14.5px; color: var(--ink-2); max-width: 46em; padding-top: 8px; }
.disclaimer b { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 6px; max-width: 380px; justify-content: flex-end; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--ink-2); font-weight: 650; font-size: 15px; text-decoration: none; }
.foot-links a:hover { background: var(--tint); color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: 1fr; gap: 14px; }
  .foot-links { margin-left: -12px; justify-content: flex-start; max-width: none; }
}
@media (max-width: 980px) {
  .hide-md { display: none; }
  .page-grid { grid-template-columns: 1fr; }
  .side { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .side .preview { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .side { display: flex; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 72px; }
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .top-bar { min-height: 62px; gap: 6px; }
  .brand { gap: 7px; }
  .brand img { width: 32px; height: 32px; }
  .wordmark { width: 99px; height: 23px; }
  .nav { gap: 0; }
  .nav-link { padding: 0 10px; font-size: 15px; }
  .nav .btn { margin-left: 4px; padding: 0 16px; font-size: 15px; }
  .btn .long, .nav-link .long { display: none; }
  .btn .short, .nav-link .short { display: inline; }
  .page { padding: 22px 0 56px; }
  .card { padding: 22px 18px; border-radius: 22px; }
  .card h2 { font-size: 23px; }
  .row { flex-direction: column; gap: 0; }
  .row > .narrow { flex: 1; }
  .lookup .btn { padding: 0 16px; }
  .side { position: static; }
  .progress li { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 14px; padding: 10px; }
  .acct-actions .btn { width: 100%; white-space: normal; text-align: center; padding: 10px 18px; font-size: 16px; }
  button.primary { font-size: 16.5px; padding: 0 16px; }
  .acct-ava { width: 60px; height: 60px; font-size: 26px; }
  /* Phones: coin | name, lore, meta — and the pump.fun button under the text, not beside it. */
  .tokens li.token { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; row-gap: 10px; }
  .token-links { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
  .page-head { position: relative; padding-right: 64px; }
  .page-head > .page-art { position: absolute; right: -10px; top: -22px; width: 82px; margin: 0; }
  .page-lead { font-size: 16px; margin-top: -10px; }
  .claim-intro { margin-top: -8px; align-items: flex-start; }
  .intro-art { width: 88px; margin: -6px -6px 0 0; }
  .acct-top { padding-top: 14px; }
  .acct-crown { width: 56px; left: calc(50% - 28px); top: -38px; }
  .free-card .side-art { width: 72px; margin: -28px -8px 4px 8px; }
  .big { font-size: 38px; }
}
@media (max-width: 480px) {
  .lookup-row { flex-direction: column; }
  .lookup .btn { width: 100%; }
}
@media (max-width: 359px) {
  .wordmark { width: 84px; height: 20px; }
  .brand img { width: 28px; height: 28px; }
  .nav-link { padding: 0 8px; }
  .nav .btn { padding: 0 12px; }
  .lookup-field span { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-art, .acct-crown, .intro-art { animation: none !important; }
}
