/* OG Finder — Solana. Mobile-first; no build step. Theme = CSS variables: dark by default,
   light via the OS preference, and either can be forced with <html data-theme>. */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/instrument-serif-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/instrument-serif-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/inter-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #0e111b;
  --bg-glow: rgba(217, 180, 90, 0.11);
  --surface: #151a29;
  --surface-2: #1c2235;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #eceff7;
  --muted: #9aa3ba;
  --faint: #6f7893;
  --gold: #d9b45a;
  --gold-bright: #f2d17f;
  --gold-soft: rgba(217, 180, 90, 0.14);
  --gold-line: rgba(217, 180, 90, 0.45);
  --on-gold: #1c1503;
  --good: #58d68d;
  --good-soft: rgba(88, 214, 141, 0.12);
  --warn: #f5a26b;
  --warn-soft: rgba(245, 162, 107, 0.12);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px -14px rgba(0, 0, 0, 0.6);
  --focus: #8fb4ff;

  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f6f1e6;
    --bg-glow: rgba(176, 128, 26, 0.13);
    --surface: #fffdf8;
    --surface-2: #f0e9d8;
    --border: rgba(30, 34, 52, 0.12);
    --border-strong: rgba(30, 34, 52, 0.24);
    --text: #1b1f2e;
    --muted: #596079;
    --faint: #7b8199;
    --gold: #9c6f12;
    --gold-bright: #7d5709;
    --gold-soft: rgba(156, 111, 18, 0.11);
    --gold-line: rgba(156, 111, 18, 0.5);
    --on-gold: #fff8e6;
    --good: #16794a;
    --good-soft: rgba(22, 121, 74, 0.1);
    --warn: #b4531a;
    --warn-soft: rgba(180, 83, 26, 0.1);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 10px 26px -14px rgba(60, 45, 10, 0.35);
    --focus: #2851c9;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f1e6;
  --bg-glow: rgba(176, 128, 26, 0.13);
  --surface: #fffdf8;
  --surface-2: #f0e9d8;
  --border: rgba(30, 34, 52, 0.12);
  --border-strong: rgba(30, 34, 52, 0.24);
  --text: #1b1f2e;
  --muted: #596079;
  --faint: #7b8199;
  --gold: #9c6f12;
  --gold-bright: #7d5709;
  --gold-soft: rgba(156, 111, 18, 0.11);
  --gold-line: rgba(156, 111, 18, 0.5);
  --on-gold: #fff8e6;
  --good: #16794a;
  --good-soft: rgba(22, 121, 74, 0.1);
  --warn: #b4531a;
  --warn-soft: rgba(180, 83, 26, 0.1);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 10px 26px -14px rgba(60, 45, 10, 0.35);
  --focus: #2851c9;
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 420px at 50% -120px, var(--bg-glow), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss03";
  overflow-x: hidden;
}
main {
  flex: 1;
}
h1,
h2,
h3,
p,
ol,
ul,
dl,
dd {
  margin: 0;
  padding: 0;
}
ol,
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
::selection {
  background: var(--gold-soft);
  color: var(--text);
}

.wrap {
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--on-gold);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}
html:not(.js) .js-only {
  display: none !important;
}
.icon {
  flex: none;
}
.icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-fill {
  fill: currentColor;
  stroke: none;
}

/* ---------- header ---------- */

.site-header {
  padding-top: env(safe-area-inset-top);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
}
.brand-mark {
  border-radius: 8px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand-chain {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 2px 8px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover {
  color: var(--text);
  background: var(--surface);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s;
}
.icon-btn:hover {
  color: var(--gold);
  border-color: var(--gold-line);
}

/* ---------- hero ---------- */

.hero-inner {
  padding-block: 28px 8px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 11.5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-bright);
}
.br-wide {
  display: none;
}
.hero-lead {
  margin: 18px auto 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 17px;
  text-wrap: pretty;
}

/* Once a search has run, the hero collapses to just the title + box. */
.has-search .hero-inner {
  padding-block: 4px 0;
}
.has-search .hero-title {
  font-size: clamp(30px, 8vw, 44px);
  margin-top: 0;
}
.has-search .home-only {
  display: none;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 26px auto 0;
  max-width: 640px;
  padding: 6px 6px 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.has-search .search {
  margin-top: 16px;
}
.search:focus-within {
  border-color: var(--gold);
  box-shadow: var(--shadow), 0 0 0 4px var(--gold-soft);
}
.search-icon {
  display: inline-grid;
  color: var(--faint);
}
.search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
  /* 16px+ stops iOS Safari zooming the page when the field is focused */
  font-size: 17px;
  color: var(--text);
  text-overflow: ellipsis;
}
.search input::placeholder {
  color: var(--faint);
}
.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.1s, background 0.15s, opacity 0.15s;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--on-gold);
  white-space: nowrap;
  min-width: 100px; /* keeps its size when the label swaps for the spinner */
}
.btn-primary:hover {
  filter: brightness(1.06);
}
.btn-primary:disabled {
  cursor: progress;
  opacity: 0.75;
}
.btn-quiet {
  margin-top: 16px;
  background: var(--surface-2);
  border-color: var(--border-strong);
}
.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
.is-busy .btn-spinner {
  display: inline-block;
}
.is-busy .btn-label {
  display: none;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.examples-label {
  font-size: 13px;
  color: var(--faint);
  margin-right: 2px;
}
.example {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-mono);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.example:hover {
  color: var(--gold-bright);
  border-color: var(--gold-line);
  background: var(--gold-soft);
}

/* ---------- output states ---------- */

.output {
  padding-block: 28px 8px;
}
.output:has(#output:empty) {
  padding-block: 0;
}

.state {
  text-align: center;
  padding: 36px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.state-title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
}
.state-body {
  margin: 8px auto 0;
  max-width: 32em;
  color: var(--muted);
  text-wrap: pretty;
}
.state-error {
  border-style: solid;
  border-color: color-mix(in srgb, var(--warn) 45%, transparent);
  background: var(--warn-soft);
}
.state-loading {
  border-style: solid;
  border-color: var(--border);
}
.loader {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 14px;
}
.loader span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.1s ease-in-out infinite;
}
.loader span:nth-child(2) {
  animation-delay: 0.15s;
}
.loader span:nth-child(3) {
  animation-delay: 0.3s;
}
.skeleton-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  text-align: left;
}
.skeleton {
  border-radius: 14px;
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.6s linear infinite;
}
.skeleton-cert {
  height: 190px;
}
.skeleton-row {
  height: 96px;
}
.notice {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
}
.notice-title {
  color: var(--text);
  font-weight: 600;
}

/* ---------- results ---------- */

.results-head {
  margin-bottom: 18px;
}
.results-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 7vw, 38px);
  line-height: 1.1;
  outline: none;
  overflow-wrap: anywhere;
}
.results-sub {
  margin-top: 4px;
  font-size: 14px;
  color: var(--faint);
}
#output > * + * {
  margin-top: 16px;
}

.verdict {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid;
}
.verdict-og {
  color: var(--good);
  background: var(--good-soft);
  border-color: color-mix(in srgb, var(--good) 40%, transparent);
}
.verdict-copy {
  color: var(--warn);
  background: var(--warn-soft);
  border-color: color-mix(in srgb, var(--warn) 45%, transparent);
}
.verdict-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 16%, transparent);
}
.verdict-title {
  font-weight: 650;
  font-size: 17px;
}
.verdict-body {
  margin-top: 2px;
  color: var(--text);
  opacity: 0.86;
  font-size: 15px;
}

/* the OG certificate */
.cert {
  position: relative;
  padding: 3px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(140deg, var(--gold-bright), var(--gold-line) 40%, var(--gold) 70%, var(--gold-bright));
  box-shadow: 0 22px 60px -28px var(--gold);
}
.cert-frame {
  display: grid;
  gap: 16px;
  padding: 20px 18px 18px;
  border-radius: calc(var(--radius) + 3px);
  background:
    radial-gradient(600px 220px at 100% 0%, var(--gold-soft), transparent 70%),
    var(--surface);
}
.cert-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 7px 12px 6px;
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  color: var(--gold);
  transform: rotate(4deg);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.2;
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.cert-main {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cert-id {
  min-width: 0;
}
.cert-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 8vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.cert-launch {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}
.token-symbol {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}
.token-symbol-lg {
  font-size: 16px;
  margin-top: 4px;
}

.crown-grid {
  display: grid;
  gap: 16px;
}
.crown-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--gold-line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.eyebrow-crown {
  color: var(--gold);
}
.crown-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px !important;
}
.list-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
}
.list-sub {
  font-size: 13px;
  color: var(--faint);
}
.token-list {
  display: grid;
  gap: 12px;
}
.token-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  content-visibility: auto;
  contain-intrinsic-size: auto 250px;
}
.token-card.is-og {
  border-color: var(--gold-line);
  background: linear-gradient(var(--gold-soft), var(--gold-soft)), var(--surface);
}
.token-card.is-crown {
  border-color: color-mix(in srgb, var(--gold) 26%, var(--border));
}
.token-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.token-id {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.token-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 0;
  min-width: 0;
}
.token-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  min-width: 0;
}
.token-name-text {
  overflow-wrap: anywhere;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid var(--border);
  color: var(--muted);
}
.badge-rank {
  font-family: var(--font-mono);
  font-weight: 600;
}
.badge-og {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-color: transparent;
  color: var(--on-gold);
}
.badge-crown {
  color: var(--gold);
  border-color: var(--gold-line);
  background: var(--gold-soft);
}
.badge-muted {
  color: var(--faint);
  border-style: dashed;
}

.avatar {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-md {
  width: 48px;
  height: 48px;
}
.avatar-xl {
  width: 72px;
  height: 72px;
  border-color: var(--gold-line);
}
.avatar-fallback {
  --hue: 40;
  background: hsl(var(--hue) 45% 28%);
  border-color: hsl(var(--hue) 45% 40%);
  color: hsl(var(--hue) 80% 88%);
}
.avatar-letter {
  font-family: var(--font-display);
  font-size: 1.5em;
  line-height: 1;
}
.avatar-md .avatar-letter {
  font-size: 24px;
}
.avatar-xl .avatar-letter {
  font-size: 36px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg) 50%, transparent);
  border: 1px solid var(--border);
}
.stat {
  min-width: 0;
}
.stat dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.stat dd {
  margin-top: 1px;
  font-weight: 600;
  font-size: 15.5px;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.address {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.chip:hover {
  color: var(--text);
  border-color: var(--gold-line);
}
.chip-copy.is-done {
  color: var(--good);
  border-color: color-mix(in srgb, var(--good) 50%, transparent);
}

.trade {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trade-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 calc(33% - 8px);
  min-width: 78px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.trade-link:hover {
  border-color: var(--gold-line);
  background: var(--gold-soft);
}
.trade-link:active {
  transform: translateY(1px);
}

.footnote {
  margin-top: 18px;
  font-size: 14px;
  color: var(--faint);
  text-align: center;
  text-wrap: pretty;
}

/* ---------- content sections ---------- */

.section {
  padding-block: 48px 8px;
}
.section-title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 7vw, 42px);
  line-height: 1.08;
}
.steps {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.step {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 18px;
}
.step h3 {
  margin-top: 12px;
  font-size: 17px;
}
.step p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}
.faq {
  margin-top: 20px;
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 2px;
  font-weight: 550;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 2px 18px;
  color: var(--muted);
  max-width: 42em;
  text-wrap: pretty;
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 64px;
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  gap: 18px;
}
.footer-ca {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.footer-ca-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.footer-ca .chip-copy {
  order: 2;
  margin-left: auto;
}
.footer-ca-address {
  order: 3;
  flex: 1 1 100%;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: clamp(10.5px, 3vw, 12.5px); /* the full 44-character address fits on one line */
  color: var(--muted);
  overflow-wrap: anywhere;
  user-select: all;
}
.disclaimer {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 52em;
  text-wrap: pretty;
}
.disclaimer strong {
  color: var(--text);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}
.credit {
  font-size: 13px;
  color: var(--faint);
}
.footer-links {
  display: flex;
  gap: 18px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--gold);
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 50;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 550;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- animation ---------- */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes shimmer {
  to {
    background-position: -300% 0;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
#output > *:not(.state-loading) {
  animation: rise 0.35s ease both;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- larger screens ---------- */

@media (min-width: 640px) {
  .footer-ca-address {
    order: 2;
    flex: 1 1 0;
  }
  .footer-ca .chip-copy {
    order: 3;
    margin-left: 0;
  }
  .br-wide {
    display: inline;
  }
  .hero-inner {
    padding-block: 56px 12px;
  }
  .has-search .hero-inner {
    padding-block: 12px 0;
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .cert-frame {
    padding: 26px 28px 24px;
    gap: 20px;
  }
  .avatar-xl {
    width: 88px;
    height: 88px;
  }
  .crown-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .trade-link {
    flex: 0 1 auto;
    min-width: 96px;
  }
  .token-card {
    padding: 18px 20px;
  }
  .search {
    padding-left: 20px;
  }
}

@media (max-width: 380px) {
  .btn-primary {
    padding: 0 14px;
  }
  .brand-chain {
    display: none;
  }
  .chip-copy-text {
    display: none;
  }
  .chip-copy {
    padding: 0 10px;
  }
}
