:root {
  --bg: #07050c;
  --panel: #100c18;
  --line: #241d33;
  --text: #f6f1e7;
  --muted: #a49cb4;
  --violet: #7c4dff;
  --violet-press: #6a3cf0;
  --ok: #7ee2a8;
  --no: #ff8a8a;
  --warn: #ffd166;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px 32px;
}
.top { text-align: center; margin-bottom: 24px; }
.wordmark { width: min(300px, 70vw); height: auto; display: block; margin: 0 auto; }
.kicker { margin: 6px 0 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
main { width: 100%; max-width: 480px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
h1 { font-size: 22px; margin: 0 0 6px; letter-spacing: -.01em; }
h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; font-weight: 600; }
.lead { margin: 0 0 16px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.note { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.reqs, .wallets, .contracts { list-style: none; margin: 0; padding: 0; }
.reqs li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.reqs li:first-child { border-top: 0; padding-top: 4px; }
.reqs .thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--line); }
.reqs .body { min-width: 0; }
.reqs .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.reqs .label { font-weight: 700; }
.reqs .chip {
  font-size: 12px; font-weight: 600; white-space: nowrap;
  padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.reqs .ok .chip { color: var(--ok); border-color: rgba(126, 226, 168, .35); }
.reqs .no .chip { color: var(--no); border-color: rgba(255, 138, 138, .35); }
.reqs .blurb { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.reqs .need { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.reqs .links { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.reqs .links a { font-size: 12px; font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.reqs .links a:hover { border-color: var(--violet); }
.wallets li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px;
  font: 14px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.wallets li.empty { font-family: inherit; color: var(--muted); border-style: dashed; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: #3a3050; }
.btn.primary { background: var(--violet); border-color: var(--violet); color: #fff; width: 100%; }
.btn.primary:hover { background: var(--violet-press); }
.btn[disabled] { opacity: .55; cursor: progress; }
.card > .btn.primary { margin-top: 18px; }
.card > .btn:not(.primary) { width: 100%; margin-top: 10px; }
.actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.link { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 4px; }
.who { display: flex; align-items: center; gap: 12px; }
.who > div { flex: 1; min-width: 0; }
.name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-weight: 700; }
.banner { margin-top: 18px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); }
.banner.in { border-color: rgba(126, 226, 168, .35); }
.banner.out { border-color: rgba(255, 209, 102, .35); }
.banner p { margin: 0 0 10px; }
.banner p:last-child { margin-bottom: 0; }
.banner .btn { width: 100%; }
.banner .ranks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 0; }
.banner .rank { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); }
.banner .rank-k { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner .rank-v { font-size: 13px; }
.banner .rank-n { font-size: 12px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 460px) { .banner .ranks { grid-template-columns: 1fr; } }
.pickers { display: grid; gap: 8px; margin-top: 10px; }
.pickers .btn { justify-content: flex-start; }
.pickers img { width: 22px; height: 22px; border-radius: 5px; }
.error { color: var(--no); font-size: 14px; margin: 12px 0 0; }
details { margin-top: 14px; }
summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.foot { max-width: 480px; margin-top: 24px; font-size: 13px; color: var(--muted); text-align: center; }
.foot p { margin: 0 0 6px; }
.foot strong { color: var(--text); }
.contracts { text-align: left; margin-top: 8px; }
.contracts li { padding: 4px 0; overflow-wrap: anywhere; font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.contracts a { color: var(--muted); }
@media (max-width: 420px) {
  body { padding-top: 28px; }
  .card { padding: 18px; }
  .actions { grid-template-columns: 1fr; }
}
