:root {
  --bg: #0c0b0a;
  --ink: #ece7dd;
  --mute: #8f897f;
  --line: #24211d;
  --accent: #e8432e;
  --enamel: #f1ece1;
  --r: 10px;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(900px 520px at 50% -80px, #2a1b16 0%, rgba(42, 27, 22, 0) 70%), var(--bg);
  color: var(--ink);
  font: 15px/1.5 Inter, system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.cabar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; padding: 9px 16px; background: var(--accent); color: #fff; font-size: 13.5px; text-align: center; }
.cabar b { font-weight: 600; }
.cabar button { background: rgba(0, 0, 0, .22); border: 0; color: #fff; border-radius: 6px; padding: 4px 10px; font: 13px var(--mono); overflow-wrap: anywhere; }
.cabar button:hover { background: rgba(0, 0, 0, .35); }
.cabar a { color: #fff; font-weight: 600; }
.bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.mark { display: flex; align-items: center; gap: 9px; font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
.conn { background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-size: 13px; }

main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* the sign */
.stage { position: relative; height: 300px; display: grid; place-items: center; margin-top: 8px; }
.post {
  position: absolute; left: 50%; top: 120px; bottom: -40px; width: 26px; translate: -50% 0;
  background: linear-gradient(90deg, #2b2119, #4a3a2c 40%, #33271d 75%, #1d1610);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4);
  -webkit-mask: linear-gradient(#000 60%, transparent);
          mask: linear-gradient(#000 60%, transparent);
}
.sign {
  position: relative;
  width: 330px; padding: 30px 26px 22px;
  background:
    radial-gradient(120% 90% at 30% 10%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%),
    radial-gradient(40% 30% at 88% 92%, rgba(122, 86, 52, .28), transparent),
    radial-gradient(25% 18% at 6% 70%, rgba(122, 86, 52, .2), transparent),
    var(--enamel);
  color: #151311;
  text-align: center;
  border-radius: 7px;
  box-shadow:
    inset 0 0 0 7px var(--enamel), inset 0 0 0 10px #151311,
    0 1px 0 rgba(255, 255, 255, .4) inset,
    0 40px 70px -20px rgba(0, 0, 0, .85),
    0 0 140px rgba(232, 67, 46, .16);
  rotate: -1.4deg;
  transition: rotate .5s cubic-bezier(.3, 1.6, .5, 1);
}
.sign b { display: block; font: 800 60px/.88 'Barlow Condensed', sans-serif; letter-spacing: .01em; }
.sign em {
  display: block; margin-top: 12px; padding-top: 10px; border-top: 3px solid #151311;
  font: 800 30px/1 'Barlow Condensed', sans-serif; font-style: normal; letter-spacing: .04em; color: var(--accent);
}
.bolt { position: absolute; top: 13px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d9d4ca, #6c665c 70%); box-shadow: 0 1px 1px rgba(0, 0, 0, .4); }
.bolt.l { left: 14px; } .bolt.r { right: 14px; }
.sign.shake { animation: shake .5s; }
@keyframes shake { 30% { rotate: 2.5deg; } 60% { rotate: -3deg; } }

/* ask */
.ask { text-align: center; padding: 34px 0 10px; }
h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 10px; font-weight: 600; }
.ask p { color: var(--mute); margin: 0 auto 24px; max-width: 420px; }
form { display: flex; gap: 8px; max-width: 520px; margin: 0 auto; }
input {
  flex: 1; min-width: 0; background: #151310; border: 1px solid var(--line); color: var(--ink);
  border-radius: var(--r); padding: 13px 14px; font: 14px var(--mono); outline: none;
}
input:focus { border-color: #4a443c; }
form button, .act {
  background: var(--accent); color: #fff; border: 0; border-radius: var(--r); padding: 0 20px; font-weight: 600;
}
form button { height: 46px; }
.err { color: var(--accent); margin-top: 12px !important; }

/* report */
.report { padding: 34px 0 60px; }
.group { padding: 22px 0; border-top: 1px solid var(--line); }
.group.clean .why, .group.clean ul { display: none; }
h2 { font-size: 17px; font-weight: 600; margin: 0 0 4px; display: flex; gap: 10px; align-items: baseline; letter-spacing: -.01em; }
h2 span { font-weight: 500; color: var(--mute); font-size: 14px; }
.group.hot h2 span { color: var(--accent); }
.why { color: var(--mute); margin: 0 0 14px; font-size: 14px; }
ul { list-style: none; margin: 0; padding: 0; }
li {
  display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line);
  transition: transform .6s cubic-bezier(.5, 0, .9, .4), opacity .6s;
}
li:last-child { border-bottom: 0; }
li .main { flex: 1; min-width: 0; }
li .addr { font: 13.5px/1.35 var(--mono); overflow-wrap: anywhere; }
li .addr mark { background: none; color: var(--accent); }
li .real { font-size: 13px; color: var(--mute); margin-top: 5px; overflow-wrap: anywhere; }
li .real .addr, li .meta .addr { font-size: 12.5px; color: var(--mute); }
li .real mark { background: none; color: var(--ink); }
li .meta { color: var(--mute); font-size: 13px; margin-top: 4px; }
li .tok { display: flex; align-items: center; gap: 8px; font-weight: 600; }
li .tok img { width: 20px; height: 20px; border-radius: 50%; }
.act { height: 36px; padding: 0 14px; font-size: 13.5px; white-space: nowrap; flex: none; }
.act:disabled { opacity: .55; cursor: default; }
.act.done { background: none; color: var(--mute); border: 1px solid var(--line); }
li.blocked .main { opacity: .4; }
li.blocked .addr mark { color: inherit; }
li.gone { transform: translateX(110%); opacity: 0; }
.ok { color: var(--mute); font-size: 14px; }
.scan { color: var(--mute); font-size: 13px; margin-top: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.scan button { background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.spin { display: inline-block; width: 11px; height: 11px; border: 2px solid #3a352f; border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -1px; }
@keyframes spin { to { rotate: 360deg; } }
.banner { background: rgba(232, 67, 46, .12); border: 1px solid rgba(232, 67, 46, .45); border-radius: var(--r); padding: 14px 16px; margin-bottom: 22px; }
.banner b { color: var(--accent); }

.toast {
  position: fixed; left: 50%; bottom: 28px; translate: -50% 0; background: var(--enamel); color: #151311;
  font: 800 26px/1 'Barlow Condensed', sans-serif; letter-spacing: .03em; padding: 12px 20px; border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6); animation: pop 2.2s forwards; pointer-events: none;
}
@keyframes pop { 0% { opacity: 0; translate: -50% 20px; } 10%, 80% { opacity: 1; translate: -50% 0; } 100% { opacity: 0; } }

.pick { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: grid; place-items: center; z-index: 9; }
.pick div { background: #151310; border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-width: 260px; }
.pick button { display: flex; width: 100%; gap: 10px; align-items: center; background: none; border: 0; color: var(--ink); padding: 10px; border-radius: 8px; }
.pick button:hover { background: #211e1a; }
.pick img { width: 24px; height: 24px; border-radius: 6px; }

footer { text-align: center; color: #5e5951; font-size: 12.5px; padding: 24px 16px 30px; }

body.scanned .stage { height: 220px; }
body.scanned .sign { scale: .78; }
body.scanned .ask p { display: none; }
body.scanned .ask { padding-top: 0; }

@media (max-width: 560px) {
  .stage { height: 250px; }
  .sign { width: 280px; }
  .sign b { font-size: 50px; }
  form { flex-direction: column; }
  li { flex-wrap: wrap; }
  .act { width: 100%; }
}
