/* Old Glory — tokens
   ground  lilac paper     ink  deep aubergine
   go      violet (the one action colour, with a pressable edge)
   glory gold #ffb81c (logo only; the logo is site/logo.svg) · proxima red · likely coral-orange · bundled amber · clean mint  */
:root {
  --ground: #f1edff;
  --card: #ffffff;
  --ink: #1a1433;
  --muted: #625c80;
  --line: #ddd6f5;
  --go: #6a35ff;
  --go-edge: #4418c7;
  --proxima: #f0384f;
  --proxima-soft: #ffe3e7;
  --likely: #f26a1b;
  --likely-soft: #ffe8d6;
  --bundled: #b97600;
  --bundled-soft: #fff0c9;
  --clean: #0b9a6c;
  --clean-soft: #d6f7ea;
  --display: 'Bricolage Grotesque', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 22px;
  --edge: 5px;
}

* {
  box-sizing: border-box;
}

/* `hidden` must win over any display set by a class */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- header ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 16px 0;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}

/* the mark: a cut-gem gold star standing over the lit grid of the trench */
.logo {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.top-link {
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  text-underline-offset: 4px;
}

/* ---------- layout ---------- */
main {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* ---------- ask ---------- */
.ask {
  padding: 56px 0 28px;
}

.ask h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 6.4vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 56ch;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 19px;
}

.ask-field {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 var(--edge) 0 var(--ink);
}

.ask-field input {
  flex: 1;
  min-width: 0;
  padding: 14px 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 16px;
}

.ask-field input::placeholder {
  color: #9a94b5;
  font-family: var(--body);
}

.ask-field input:focus {
  outline: none;
}

.ask-field:focus-within {
  border-color: var(--go);
  box-shadow: 0 var(--edge) 0 var(--go-edge);
}

.field-error {
  margin: 12px 4px 0;
  color: #b01f33;
  font-weight: 700;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 0;
  border-radius: 15px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 90ms ease,
    box-shadow 90ms ease;
}

.btn-go {
  background: var(--go);
  color: #fff;
  box-shadow: 0 var(--edge) 0 var(--go-edge);
  white-space: nowrap;
}

.btn-go:hover {
  transform: translateY(-1px);
  box-shadow: 0 calc(var(--edge) + 1px) 0 var(--go-edge);
}

.btn-go:active {
  transform: translateY(var(--edge));
  box-shadow: 0 0 0 var(--go-edge);
}

.btn-go[disabled] {
  background: #b9a8f5;
  box-shadow: 0 var(--edge) 0 #9a86e0;
  cursor: progress;
}

.btn-quiet {
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  font-size: 15px;
  padding: 10px 16px;
}

.btn-quiet:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--ink);
}

.tries {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.tries-label {
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
}

.chip {
  padding: 7px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--ink);
  background: var(--card);
}

/* ---------- progress ---------- */
.progress,
.failure {
  margin-top: 8px;
  padding: 24px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 var(--edge) 0 var(--ink);
}

.progress-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-busy {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

/* while a check runs, the mark breathes: it rises a little and settles */
.logo-busy {
  animation: rise 1.4s ease-in-out infinite alternate;
}
@keyframes rise {
  from {
    transform: translateY(3px) scale(0.96);
  }
  to {
    transform: translateY(-2px) scale(1);
  }
}
.progress-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.015em;
}

.progress-step {
  margin: 2px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.progress-bar {
  height: 14px;
  margin: 20px 0 12px;
  border-radius: 999px;
  background: var(--ground);
  overflow: hidden;
}

.progress-fill {
  width: 4%;
  height: 100%;
  border-radius: 999px;
  background: var(--go);
  transition: width 400ms ease;
}

.progress-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.failure h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.015em;
}

.failure p {
  margin: 0 0 18px;
  max-width: 62ch;
}

/* ---------- the report ---------- */
.result {
  margin-top: 8px;
}

.file {
  padding: 28px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 var(--edge) 0 var(--ink);
}

.file-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.file-kicker {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.file-name {
  margin: 4px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.file-mint {
  margin: 6px 0 4px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.file-meta {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.file-meta a,
.signals a,
td a {
  color: inherit;
  text-underline-offset: 3px;
}

/* the signature: a rubber stamp slammed onto the report */
.stamp {
  flex: none;
  --tone: var(--ink);
  --soft: var(--ground);
  padding: 10px 18px 8px;
  border: 4px solid var(--tone);
  border-radius: 14px;
  outline: 2px solid var(--tone);
  outline-offset: 3px;
  background: var(--soft);
  color: var(--tone);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 3.6vw, 30px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  transform: rotate(-5deg);
  margin: 6px 8px 0 0;
}

.stamp small {
  display: block;
  margin-top: 5px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.stamp.is-new {
  animation: slam 520ms cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

@keyframes slam {
  0% {
    opacity: 0;
    transform: rotate(-16deg) scale(2.6);
  }
  55% {
    opacity: 1;
    transform: rotate(-3deg) scale(0.92);
  }
  100% {
    transform: rotate(-5deg) scale(1);
  }
}

.tone-proxima {
  --tone: var(--proxima);
  --soft: var(--proxima-soft);
}
.tone-likely {
  --tone: var(--likely);
  --soft: var(--likely-soft);
}
.tone-bundled {
  --tone: var(--bundled);
  --soft: var(--bundled-soft);
}
.tone-clean {
  --tone: var(--clean);
  --soft: var(--clean-soft);
}

.file-summary {
  max-width: 60ch;
  margin: 26px 0 0;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 500;
}

.file-first {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--ground);
  font-weight: 600;
}

.file-warning {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--bundled-soft);
  font-weight: 700;
}

.bag {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.bag-cell {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--ground);
}

.bag-num {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.bag-label {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.bag-note {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 16px;
}
.bag-note li + li {
  margin-top: 4px;
}

.bag-cell.is-out {
  background: var(--clean-soft);
}

.bag-cell.is-in {
  background: var(--proxima-soft);
}

.more-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
}

.recent-list {
  display: contents;
}

.chip .chip-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--tone, var(--muted));
}

.file-h {
  margin: 34px 0 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.015em;
}

.signals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.signals li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--ground);
}

.signals .dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  background: var(--card);
  color: #9a94b5;
  border: 2px solid var(--line);
}

/* a plain fact: no box, so the tinted cards (the findings) are what stands out */
.signals li.plain {
  padding: 6px 14px;
  background: none;
}
.signals li.plain .dot {
  height: 24px;
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
}
/* everything that was looked for and not found, folded into one line */
.signals li.missing {
  display: block;
  padding: 2px 4px 0;
  background: none;
  color: var(--muted);
  font-size: 15px;
}
.signals li.missing summary {
  cursor: pointer;
  padding: 6px 0;
  text-underline-offset: 3px;
}
.signals li.missing summary:hover {
  color: var(--ink);
}
.signals li.missing p {
  max-width: 66ch;
  margin: 6px 0 0 18px;
}
.signals li.missing strong {
  color: var(--ink);
}
.signals li.found {
  background: var(--soft, var(--likely-soft));
}

.signals li.found .dot {
  background: var(--tone, var(--likely));
  border-color: var(--tone, var(--likely));
  color: #fff;
}

.signals .name {
  margin: 0;
  font-weight: 700;
}

.signals .detail {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.signals li.found .detail {
  color: var(--ink);
}

.signals .group {
  display: block;
  padding: 14px 4px 2px;
  background: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.more {
  margin-top: 14px;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
}

.more summary,
.settings summary {
  padding: 14px 0;
  font-weight: 700;
  cursor: pointer;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 -4px 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th {
  text-align: left;
  padding: 8px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--line);
}

td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

td.addr {
  font-family: var(--mono);
  font-size: 14px;
  white-space: nowrap;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tag {
  display: inline-block;
  margin: 0 4px 4px 0;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--ground);
  font-weight: 700;
  font-size: 13px;
}

.tag.hot {
  background: var(--proxima-soft);
  color: #b01f33;
}

.evidence {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.evidence li + li {
  margin-top: 8px;
}

.file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* ---------- how ---------- */
.how {
  padding-top: 64px;
}

.how h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 40px);
  letter-spacing: -0.025em;
}

.how h3 {
  margin: 36px 0 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.015em;
}

.how-lede {
  max-width: 62ch;
  margin: 10px 0 24px;
  color: var(--muted);
}

/* the verdicts as a legend: the stamp's label, then what it means */
.verdicts {
  display: grid;
  gap: 2px;
  margin: 0;
  max-width: 760px;
}
.verdict {
  display: grid;
  grid-template-columns: 176px 1fr;
  gap: 4px 18px;
  align-items: start;
  padding: 12px 0;
  border-top: 2px solid var(--line);
}
.verdict:last-child {
  border-bottom: 2px solid var(--line);
}
.verdict dt,
.verdict dd {
  margin: 0;
}
.tag-stamp {
  display: inline-block;
  padding: 4px 10px 3px;
  border: 3px solid var(--tone);
  border-radius: 10px;
  background: var(--soft);
  color: var(--tone);
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-2deg);
}
.limits {
  max-width: 66ch;
  margin: 0;
  padding-left: 22px;
}

.limits li + li {
  margin-top: 8px;
}

.settings {
  margin-top: 32px;
  padding: 0 18px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 16px;
}

.settings p {
  max-width: 62ch;
  margin: 0 0 14px;
  color: var(--muted);
}

.rpc-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.rpc-form input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  background: var(--card);
}

.rpc-status {
  font-weight: 700;
  color: var(--ink) !important;
  overflow-wrap: anywhere;
}

.foot {
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 16px 40px;
  color: var(--muted);
  font-size: 14px;
}

.foot p {
  max-width: 66ch;
  margin: 0 0 8px;
}
.foot a {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 3px;
}

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .ask {
    padding-top: 36px;
  }
  .ask-field {
    flex-direction: column;
  }
  .file {
    padding: 20px 16px;
  }
  .file-head {
    flex-direction: column-reverse;
    gap: 14px;
  }
  .stamp {
    align-self: flex-start;
    margin: 4px 0 0 4px;
  }
  .file-summary {
    font-size: 19px;
  }
  .file-name {
    font-size: 22px;
  }
  .verdict {
    grid-template-columns: 1fr;
    padding: 14px 0;
  }
  /* the two bag numbers stay side by side: they are read as a pair */
  .bag {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .bag-cell {
    padding: 12px 14px;
  }
  .bag-label {
    font-size: 14px;
  }
  .lede {
    font-size: 17px;
    margin: 14px 0 22px;
  }
  /* thumbs: every control is at least 44px tall, and the report's actions fill the width */
  .chip {
    min-height: 44px;
    padding: 9px 16px;
  }
  .btn {
    min-height: 48px;
  }
  .file-actions {
    flex-direction: column;
  }
  .file-actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  .signals li {
    grid-template-columns: 28px 1fr;
    gap: 10px;
    padding: 12px;
  }
  .signals .dot {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }
  .how {
    padding-top: 44px;
  }
  .progress,
  .failure {
    padding: 18px 16px;
  }
  .progress-head {
    gap: 12px;
  }
  .logo-busy {
    width: 44px;
    height: 44px;
  }
  .progress-title {
    font-size: 18px;
    line-height: 1.2;
  }
  .progress-step {
    font-size: 15px;
  }
  .file-h {
    margin-top: 26px;
  }
  .well-pick {
    font-size: 14px;
  }
  /* the wallet table becomes one card per wallet, each value with its label */
  .table-wrap {
    overflow-x: visible;
    margin: 0 0 14px;
  }
  table,
  tbody,
  tr,
  td {
    display: block;
  }
  thead {
    display: none;
  }
  tr {
    padding: 10px 0;
    border-bottom: 2px solid var(--line);
  }
  tr:last-child {
    border-bottom: 0;
  }
  td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
    border: 0;
    text-align: right;
  }
  td::before {
    content: attr(data-label);
    flex: none;
    color: var(--muted);
    font-weight: 700;
    text-align: left;
  }
  td.addr {
    font-size: 15px;
  }
  td.notes {
    display: block;
    text-align: left;
    padding-top: 6px;
  }
  td.notes::before {
    content: none;
  }
  td.notes:empty {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .stamp.is-new,
  .logo-busy {
    animation: none;
  }
  .btn,
  .progress-fill {
    transition: none;
  }
}

/* the "did well" level picker above the findings */
.well-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--muted, #6b6885);
}
/* a custom five-way choice in place of the browser's dropdown */
.seg {
  display: inline-flex;
  padding: 3px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--card);
}
.seg button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.seg button:hover { color: var(--ink); background: var(--ground); }
.seg button:active { transform: translateY(1px); }
.seg button[aria-checked='true'] { background: var(--ink); color: #fff; }

/* ---------- support ---------- */
.support {
  margin-top: 40px;
  padding: 24px;
  background: var(--card, #fff);
  border: 2px solid var(--line);
  border-radius: 22px;
}
.support h2 { margin: 0 0 6px; font-size: 22px; }
.support p { margin: 0 0 16px; color: var(--muted); max-width: 60ch; }
.wallets { margin: 0; display: grid; gap: 12px; }
.wallets dt { font-weight: 700; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.wallets dd { margin: 0; display: flex; align-items: center; gap: 10px; }
.wallets code { flex: 1; min-width: 0; padding: 10px 12px; background: var(--ground); border-radius: 12px; font-size: 14px; overflow-wrap: anywhere; }
.wallets .copy { flex: none; min-height: 44px; padding: 0 16px; border: 2px solid var(--ink, #1a1533); border-radius: 12px; background: #fff; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.wallets .copy:focus-visible { outline: 3px solid var(--go, #5b3df5); outline-offset: 2px; }

/* ---------- clean-up pass: icons, brand marks, addresses, toasts, states ---------- */
.signals .dot svg { display: block; }
.signals li.plain .dot { color: #b3add0; }

.brand { display: inline-block; vertical-align: -3px; margin-right: 7px; }
.btn .brand { vertical-align: -4px; margin-right: 8px; }

.addr { display: inline-flex; align-items: center; white-space: nowrap; }
.addr-copy {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: -3px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.addr-copy:hover { background: var(--ground); color: var(--ink); }
.addr-copy:active { transform: translateY(1px); }
@media (pointer: coarse) {
  .addr-copy { width: 36px; height: 36px; }
}

.toasts {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  justify-items: center;
  width: min(92vw, 420px);
  pointer-events: none;
  z-index: 20;
}
.toast {
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 0 #0a0718;
  animation: toast-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 200ms ease, transform 200ms ease;
}
.toast-bad { background: #a3221a; box-shadow: 0 4px 0 #6d140f; }
.toast-out { opacity: 0; transform: translateY(8px); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
}

.btn-quiet:hover { background: var(--ground); transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.btn-quiet[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: 0 3px 0 var(--ink); transform: none; }
.chip:active { transform: translateY(1px); }
.wallets .copy { transition: background 150ms ease; }
.wallets .copy:hover { background: var(--ground); }
.wallets .copy:active { transform: translateY(1px); }
.top-link:hover, .foot a:hover { color: var(--go); }

::selection { background: var(--go); color: #fff; }
h1, h2, h3 { text-wrap: balance; }

@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; }
  .seg button, .addr-copy, .toast { transition: none; }
}

/* the nudge to the Telegram bot under the search box */
.bot-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  max-width: 720px;
  margin: 22px 0 0;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  font-size: 15px;
}
.bot-note .brand { flex: none; margin: 0; }
.bot-note span { flex: 1 1 260px; }
.bot-note .btn { flex: none; }
