:root {
  --bg: #0a0e18;
  --bg2: #0f1422;
  --card: #121a2b;
  --card2: #172036;
  --line: #222d47;
  --text: #eef2ff;
  --muted: #8f9bb8;
  --lime: #c6ff3d;
  --lime-d: #9fd61f;
  --flame: #ff6b3d;
  --violet: #8b7cff;
  --sky: #4cc9ff;
  --ok: #3ee07f;
  --bad: #ff5470;
  --warn: #ffc53d;
  --r: 18px;
  --r-sm: 12px;
  --pad: 16px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(198, 255, 61, .10), transparent 60%),
    radial-gradient(800px 500px at -10% 10%, rgba(139, 124, 255, .12), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  overflow-x: hidden;
}
a { color: inherit; }
b { font-weight: 800; }
code { font-family: var(--mono); font-size: .9em; }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -.02em; }
svg { width: 1em; height: 1em; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.fine { font-size: .8rem; line-height: 1.5; }
.num, .big-num, .stat-v, dd, .ring-time { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 12px var(--pad);
  padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(10, 14, 24, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(34, 45, 71, .6);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; font-size: 1.15rem; }
.brand-logo { width: 30px; height: 30px; color: var(--lime); }
.pill { font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(198, 255, 61, .12); color: var(--lime); }
.nav { display: none; gap: 22px; margin-left: 24px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.btn-connect { margin-left: auto; white-space: nowrap; min-height: 40px; padding: 8px 14px; }
@media (max-width: 380px) { .pill { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card2); color: var(--text);
  font: 800 .95rem var(--font); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .2s, border-color .2s;
}
.btn:hover { border-color: #33416a; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--lime); color: #0b1200; border-color: var(--lime); }
.btn-primary:hover { background: #d6ff6e; border-color: #d6ff6e; }
.btn-ghost { background: transparent; }
.btn-connect.connected { background: rgba(198, 255, 61, .1); border-color: rgba(198, 255, 61, .35); color: var(--lime); }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 10px; border: 1px solid var(--line); background: var(--card2); color: var(--muted); cursor: pointer;
}
.icon-btn:hover { color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- layout ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
.card { background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.glow { box-shadow: 0 0 0 1px rgba(198, 255, 61, .14), 0 20px 60px -20px rgba(198, 255, 61, .25); }
.section { padding: 40px 0 8px; scroll-margin-top: 70px; }
.section-head { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 900; }
.section-head p { margin: 8px 0 0; max-width: 62ch; }
.card-title { font-size: 1.05rem; margin-bottom: 12px; }
.empty { text-align: center; color: var(--muted); padding: 28px 16px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 28px 0 18px; }
.hero > *, .stats > *, .verify-grid > *, .steps > * { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--muted); font-weight: 700; font-size: .9rem; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 0 rgba(62, 224, 127, .6); }
.live-dot.on { background: var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(62, 224, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 224, 127, 0); } }
h1 { font-size: clamp(2.3rem, 9vw, 4rem); font-weight: 950; }
.hl { color: var(--lime); display: inline-block; animation: boomerang 3.2s ease-in-out infinite; }
@keyframes boomerang { 0%, 70%, 100% { transform: translateX(0) rotate(0); } 80% { transform: translateX(-6px) rotate(-4deg); } 90% { transform: translateX(4px) rotate(2deg); } }
.lead { font-size: 1.07rem; color: #c9d2ea; margin: 16px 0 20px; max-width: 58ch; }
.lead b { color: var(--text); }

.ca { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 14px; border: 1px dashed #33416a; background: rgba(18, 26, 43, .7); }
.ca-label { font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--lime); flex: none; }
.ca-addr { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c9d2ea; font-size: .85rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cta-row .btn { flex: 1 1 auto; }

.hc-top { display: flex; justify-content: space-between; align-items: center; }
.big-num { font-size: clamp(2.6rem, 11vw, 3.6rem); font-weight: 950; letter-spacing: -.03em; color: var(--lime); line-height: 1.05; margin-top: 6px; }
.big-num small { font-size: .38em; color: var(--muted); letter-spacing: 0; }
.chip { font-size: .72rem; font-weight: 900; padding: 4px 10px; border-radius: 99px; background: var(--card2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.ok { color: var(--ok); border-color: rgba(62, 224, 127, .35); background: rgba(62, 224, 127, .08); }
.chip.warn { color: var(--warn); border-color: rgba(255, 197, 61, .35); background: rgba(255, 197, 61, .08); }
.chip.bad { color: var(--bad); border-color: rgba(255, 84, 112, .35); background: rgba(255, 84, 112, .08); }
.chip.flame { color: var(--flame); border-color: rgba(255, 107, 61, .35); background: rgba(255, 107, 61, .08); }

.ring-row { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.ring {
  --p: 0; flex: none; width: 128px; height: 128px; border-radius: 50%;
  background: conic-gradient(var(--lime) calc(var(--p) * 1%), #1d2640 0);
  display: grid; place-items: center; transition: background .6s;
}
.ring-inner { width: 106px; height: 106px; border-radius: 50%; background: var(--bg2); display: grid; place-content: center; text-align: center; }
.ring-label { font-size: .68rem; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.ring-time { font-size: 1.15rem; font-weight: 900; }
.mini { margin: 0; display: grid; gap: 8px; flex: 1; min-width: 0; }
.mini div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.mini dt { color: var(--muted); font-size: .85rem; }
.mini dd { margin: 0; font-weight: 800; font-size: .92rem; white-space: nowrap; }

/* ---------- feed ---------- */
.feed-strip { overflow: hidden; border-block: 1px solid var(--line); margin: 8px calc(var(--pad) * -1) 0; background: rgba(15, 20, 34, .6); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.feed-track { display: flex; gap: 28px; padding: 11px var(--pad); white-space: nowrap; width: max-content; }
.feed-track.moving { animation: marquee var(--dur, 40s) linear infinite; }
.feed-strip:hover .feed-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.feed-item { font-size: .88rem; font-weight: 700; text-decoration: none; }
.feed-item .k { margin-right: 6px; }
.feed-item .t { color: var(--muted); font-weight: 600; margin-left: 6px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding-top: 18px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px; }
.stat-k { font-size: .75rem; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.stat-v { font-size: 1.35rem; font-weight: 900; }
.stat-s { font-size: .8rem; color: var(--muted); }
.stat.burn .stat-v { color: var(--flame); }
.stat-wide { grid-column: 1 / -1; }
.up { color: var(--ok) !important; }
.down { color: var(--bad) !important; }
.bar { height: 10px; border-radius: 99px; background: #1d2640; overflow: hidden; margin: 8px 0 4px; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lime-d), var(--lime)); transition: width .8s ease; }
.bar-violet > span { background: linear-gradient(90deg, #5d4fe0, var(--violet)); }

/* ---------- wallet ---------- */
.lookup { display: flex; gap: 8px; }
.lookup input {
  flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: 600 .95rem var(--mono);
}
.lookup input:focus { outline: 2px solid rgba(198, 255, 61, .5); outline-offset: 1px; }
.or-connect { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.wallet-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.wallet-btns .btn, .wallet-list .btn { min-height: 40px; padding: 8px 14px; }
.w-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 14px; flex-wrap: wrap; }
.w-addr { font-family: var(--mono); font-size: .9rem; color: #c9d2ea; }
.w-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.w-tile { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; }
.w-tile .k { font-size: .72rem; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.w-tile .v { font-size: 1.2rem; font-weight: 900; margin-top: 2px; }
.w-tile .v.lime { color: var(--lime); }
.w-tile .v.violet { color: var(--violet); }
.w-tile .v.flame { color: var(--flame); }
.streak { margin-top: 12px; }
.streak-top { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 700; }
.flame { display: inline-block; animation: flick 1.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flick { 50% { transform: scale(1.12) rotate(-4deg); } }
.w-note { margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm); font-size: .88rem; background: rgba(255, 197, 61, .08); border: 1px solid rgba(255, 197, 61, .25); color: #ffe19a; }
.hist { margin-top: 14px; }
.hist h4 { margin: 0 0 8px; font-size: .95rem; }

/* ---------- rows / lists ---------- */
.list { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 14px 16px; }
.row-title { font-weight: 900; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-sub { font-size: .82rem; color: var(--muted); grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.row-amt { font-weight: 900; text-align: right; white-space: nowrap; }
.row-amt.lime { color: var(--lime); }
.row-amt.flame { color: var(--flame); }
.link { color: var(--sky); text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; }
.link svg { width: 13px; height: 13px; }
.hash { font-family: var(--mono); font-size: .78rem; color: #aab5d4; cursor: pointer; border-bottom: 1px dotted #56648c; }
.btn-more { width: 100%; margin-top: 10px; }
.mini-rows { display: grid; gap: 6px; }
.mini-row { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; padding: 8px 10px; background: var(--bg); border-radius: 10px; }

/* ---------- how ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step { position: relative; padding-top: 22px; }
.step h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.step p { margin: 0; color: #c9d2ea; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(198, 255, 61, .12); color: var(--lime); font-weight: 950; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 8px 0 10px; }
.split .legend { flex: 1 1 150px; }
.donut { width: 96px; height: 96px; border-radius: 50%; flex: none; background: #1d2640; -webkit-mask: radial-gradient(circle 30px, transparent 98%, #000); mask: radial-gradient(circle 30px, transparent 98%, #000); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.legend b { margin-left: auto; padding-left: 10px; }
.mult-demo { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 800; font-size: .85rem; }
.mult-demo .bar { flex: 1; margin: 0; }
#rulesFine { margin-top: 12px; }

/* ---------- verify ---------- */
.verify-grid { display: grid; gap: 12px; }
.checks { list-style: none; margin: 0; display: grid; gap: 2px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.checks li:last-child { border-bottom: 0; }
.ck { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.ck svg { width: 15px; height: 15px; }
.ck.ok { background: rgba(62, 224, 127, .14); color: var(--ok); }
.ck.bad { background: rgba(255, 84, 112, .14); color: var(--bad); }
.ck.wait { background: rgba(255, 197, 61, .12); color: var(--warn); }
.ck-t { font-weight: 800; }
.ck-d { font-size: .82rem; color: var(--muted); display: block; margin-top: 1px; }
.wallets { display: grid; gap: 8px; margin-bottom: 12px; }
.wl { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; background: var(--bg); border-radius: var(--r-sm); border: 1px solid var(--line); }
.wl-name { font-weight: 800; font-size: .92rem; display: flex; gap: 8px; align-items: center; }
.wl-bal { font-weight: 900; text-align: right; }
.wl-addr { grid-column: 1 / -1; font-family: var(--mono); font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; min-width: 0; }
.wl-addr a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sky); text-decoration: none; }

/* ---------- leaderboard ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.tab { flex: 1; min-height: 42px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 800 .92rem var(--font); cursor: pointer; }
.tab.active { background: var(--card2); color: var(--text); border-color: #33416a; }
.board { padding: 6px 10px; }
.lb { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.lb:last-child { border-bottom: 0; }
.lb-rank { font-weight: 950; color: var(--muted); text-align: center; }
.lb:nth-child(1) .lb-rank { color: #ffd84d; }
.lb:nth-child(2) .lb-rank { color: #d7e0f5; }
.lb:nth-child(3) .lb-rank { color: #ff9f5a; }
.lb-addr { font-family: var(--mono); font-size: .85rem; text-decoration: none; }
.lb-val { font-weight: 900; text-align: right; }
.lb.me { background: rgba(198, 255, 61, .06); border-radius: 10px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 8px; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 44px 16px 16px; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--lime); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0; padding: 0 16px 16px; color: #c9d2ea; }

/* ---------- footer ---------- */
.foot { max-width: 1120px; margin: 40px auto 0; padding: 28px var(--pad) calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 900; }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot-links a { color: var(--muted); font-weight: 700; text-decoration: none; }
.foot-links a:hover { color: var(--text); }

/* ---------- modal / toast / confetti ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(5, 8, 15, .7); backdrop-filter: blur(6px); display: grid; place-items: end center; padding: 12px; }
.modal-card { width: 100%; max-width: 420px; animation: up .22s ease; }
@keyframes up { from { transform: translateY(20px); opacity: 0; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.wallet-list { display: grid; gap: 8px; margin-top: 12px; }
.wallet-list .btn { justify-content: space-between; width: 100%; min-height: 50px; }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translate(-50%, 120px); z-index: 60; background: var(--lime); color: #0b1200; font-weight: 900; padding: 11px 18px; border-radius: 14px; transition: transform .25s ease; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }

.fade-in { animation: fade .5s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.skeleton { color: transparent !important; background: linear-gradient(90deg, #1a2338 25%, #222d47 50%, #1a2338 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  :root { --pad: 24px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat-wide { grid-column: span 3; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .w-grid { grid-template-columns: repeat(4, 1fr); }
  .verify-grid { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .modal { place-items: center; }
  .row { grid-template-columns: 1fr auto; }
}
@media (min-width: 980px) {
  .nav { display: flex; }
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; padding: 56px 0 30px; gap: 40px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat-wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .cta-row .btn { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 420px) {
  .ring { width: 108px; height: 108px; }
  .ring-inner { width: 90px; height: 90px; }
  .ring-time { font-size: 1rem; }
  .ring-row { gap: 14px; }
  .mini dt { font-size: .8rem; }
}
