:root {
  --bg: #000;
  --bg-2: #0a0a0a;
  --card: #0f1012;
  --card-2: #16181c;
  --hover: #1a1c20;
  --line: #2f3336;
  --line-2: #202327;
  --ink: #e7e9ea;
  --ink-2: #c4c7ca;
  --muted: #71767b;
  --faint: #536471;
  --white: #fff;
  --blue: #1d9bf0;
  --green: #00ba7c;
  --green-bg: rgba(0, 186, 124, .12);
  --amber: #ffad1f;
  --amber-bg: rgba(255, 173, 31, .12);
  --red: #f4212e;
  --red-bg: rgba(244, 33, 46, .12);
  --r: 16px;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Consolas, Menlo, monospace;
  --side: 275px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.green { color: var(--green); }
.ic { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ic svg { width: 100%; height: 100%; }

/* ---------- layout: sidebar + main ---------- */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side); border-right: 1px solid var(--line);
  padding: 14px 16px 16px 20px; display: flex; flex-direction: column; background: var(--bg); z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; letter-spacing: -0.01em; padding: 6px 8px; border-radius: 999px; width: max-content; }
.brand img { border-radius: 9px; }
.brand .wm { border-radius: 0; height: 28px; width: auto; }
.brand .sq { display: none; }
.snav { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; }
.snav a { display: flex; align-items: center; gap: 18px; padding: 11px 14px; border-radius: 999px; font-size: 19px; color: var(--ink); width: max-content; transition: background .15s; }
.snav a .ic { width: 26px; height: 26px; }
.snav a:hover { background: var(--hover); }
.snav a.on { font-weight: 700; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(0, 186, 124, .5); animation: pulse 2s infinite; margin-left: -8px; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 999px; }
.side-foot:hover { background: var(--hover); }
.side-foot img { border-radius: 50%; }
.side-foot b { display: block; font-size: 15px; line-height: 1.2; }
.side-foot small { color: var(--muted); font-size: 14px; }
.side-foot .ic { margin-left: auto; width: 18px; height: 18px; color: var(--ink); }

.main { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
.top {
  position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 24px;
  background: rgba(0, 0, 0, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.top .brand.mob { display: none; }
.search {
  flex: 1; min-width: 0; max-width: 560px; margin: 0 auto; height: 44px; display: flex; align-items: center; gap: 10px;
  padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
}
.search:focus-within { border-color: var(--blue); }
.search .ic { width: 18px; height: 18px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.wallet-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 0 18px rgba(255, 255, 255, .08); padding: 6px; display: flex; flex-direction: column; z-index: 40; }
.menu button { text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 9px; cursor: pointer; font-size: 14.5px; }
.menu button:hover { background: var(--hover); }


.page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px 64px; }
.narrow { max-width: 820px; }
.foot { border-top: 1px solid var(--line); padding: 24px; color: var(--muted); font-size: 13px; }
.foot p { max-width: 900px; margin: 0 auto; text-align: center; }

.bnav { display: none; }

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background .15s, opacity .15s, transform .1s;
}
.btn:hover { background: var(--hover); }
.btn:active { transform: scale(.98); }
.btn.white { background: var(--white); color: #000; border-color: var(--white); }
.btn.white:hover { opacity: .88; }
.btn.outline { border-color: #536471; }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.sm { height: 36px; padding: 0 16px; font-size: 14.5px; }
.btn.lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn .ic { width: 16px; height: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--card-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.chip.green { background: var(--green-bg); color: var(--green); border-color: transparent; }
.chip.amber { background: var(--amber-bg); color: var(--amber); border-color: transparent; }
.chip.red { background: var(--red-bg); color: var(--red); border-color: transparent; }
.chip .ic { width: 13px; height: 13px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.dot.pulse, .pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 50%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.vf { width: 16px; height: 16px; color: var(--blue); display: inline-flex; vertical-align: -2px; }
.link { color: var(--blue); }
.link:hover { text-decoration: underline; }
.xpill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 999px; background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); font-size: 12.5px; font-weight: 600; max-width: 100%; }
.xpill img, .xpill .av { width: 20px; height: 20px; border-radius: 50%; flex: none; }
.xpill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- avatars ---------- */
.av { border-radius: 50%; object-fit: cover; background: var(--card-2); flex: none; }
.av.mono-av { display: grid; place-items: center; font-weight: 600; color: var(--ink-2); background: #202327; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 64px 0 44px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
.hero h1 .x { display: inline-flex; vertical-align: -0.08em; width: .8em; height: .8em; }
.hero .lede { max-width: 600px; margin: 20px auto 0; font-size: 19px; color: var(--muted); line-height: 1.5; }
.hero .lede b { color: var(--ink); font-weight: 600; }
.hero .cta { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.tag-pump { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 16px; color: var(--ink); vertical-align: 1px; }
.tag-pump i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }

/* ---------- tiles (home) ---------- */
.tiles { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.tiles.three { grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.tile { position: relative; border: 1px solid var(--line); border-radius: 20px; background: var(--card); overflow: hidden; min-height: 280px; display: flex; flex-direction: column; transition: border-color .15s; }
.tile:hover { border-color: #3e4449; }
.tile .t-body { flex: 1; padding: 18px; overflow: hidden; position: relative; }
.tile .t-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-weight: 600; font-size: 15px; background: linear-gradient(to top, var(--card) 60%, transparent); position: relative; }
.tile .t-foot .muted { font-weight: 500; }
.tile .fade-b { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(to top, var(--card), transparent); pointer-events: none; }
.tile.small { min-height: 200px; }
.big-num { font-size: 34px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.big-num small { font-size: 18px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.k-label { font-size: 14px; color: var(--muted); }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-card { border-radius: 14px; overflow: hidden; background: var(--card-2); border: 1px solid var(--line-2); }
.mini-card .img { aspect-ratio: 1; position: relative; background: var(--hover); }
.mini-card .img img { width: 100%; height: 100%; object-fit: cover; }
.mini-card .img .xpill { position: absolute; left: 6px; bottom: 6px; right: 6px; width: max-content; max-width: calc(100% - 12px); }
.mini-card .meta { padding: 8px 10px; font-size: 12.5px; }
.mini-card .meta b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line-2); }
.pay-row + .pay-row { margin-top: 8px; }
.pay-row .amt { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pay-row .to { font-size: 13px; color: var(--muted); }
.pay-row .to b { color: var(--ink); }
.pay-row .flow { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.pay-row .flow img, .pay-row .flow .av { width: 30px; height: 30px; border-radius: 50%; }
.pay-row .flow .coinimg { border-radius: 8px; }
.pay-row .when { font-size: 12.5px; color: var(--muted); min-width: 34px; text-align: right; }

/* ---------- sections ---------- */
.sec { margin-top: 56px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.sec-head h2 { font-size: 24px; display: flex; align-items: center; gap: 8px; }
.sec-head h2 .ic { width: 24px; height: 24px; }
.sec-head p { color: var(--muted); margin-top: 2px; }
.seg { display: inline-flex; gap: 6px; }
.seg button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 5px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--muted); }
.seg button.on { color: var(--ink); background: var(--card-2); }
.split-sec { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }

/* ---------- token cards ---------- */
.grid-tokens { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tcard { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 8px; transition: border-color .15s, transform .15s; display: block; }
.tcard:hover { border-color: #3e4449; transform: translateY(-2px); }
.tcard .img { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--hover); }
.tcard .img img { width: 100%; height: 100%; object-fit: cover; }
.tcard .img .age { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, .7); border-radius: 999px; padding: 2px 8px; font-size: 11.5px; font-weight: 600; }
.tcard .img .pf { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, .7); display: grid; place-items: center; }
.tcard .img .pf i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.tcard .img .xpill { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); }
.tcard .meta { padding: 10px 6px 4px; }
.tcard .nm { display: flex; align-items: baseline; gap: 6px; font-weight: 600; font-size: 14.5px; min-width: 0; }
.tcard .nm span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard .nm .sym { color: var(--muted); font-size: 13px; font-weight: 400; flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.tcard .mc { margin-top: 4px; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tcard .mc small { font-size: 11px; color: var(--muted); font-weight: 600; margin-left: 3px; }
.tcard .earned { font-size: 12.5px; color: var(--green); margin-top: 2px; }

/* ---------- profile cards ---------- */
.pcard { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: background .15s; }
.pcard + .pcard { margin-top: 10px; }
.pcard:hover { background: var(--hover); }
.pcard .who-t { min-width: 0; flex: 1; }
.pcard .nm { font-weight: 700; font-size: 15px; display: flex; gap: 4px; align-items: center; }
.pcard .nm span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .hd { color: var(--muted); font-size: 14px; }
.pcard .nums { text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; }
.pcard .nums b { display: block; color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }

/* ---------- cards / forms ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.card-pad { padding: 20px; }
.page-head { padding: 36px 0 24px; }
.page-head h1 { font-size: 32px; }
.page-head .sub { color: var(--muted); margin-top: 6px; font-size: 16px; max-width: 680px; }
.launch { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 18px; }
.fld { display: flex; flex-direction: column; gap: 7px; }
.fld > span, .fld > label { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fld em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; }
.inp { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 0 14px; font-size: 15px; outline: 0; transition: border-color .15s; }
.inp:focus { border-color: var(--blue); }
textarea.inp { height: 96px; padding: 12px 14px; resize: vertical; }
.inp-wrap { position: relative; display: flex; align-items: center; }
.inp-wrap .pre { position: absolute; left: 14px; color: var(--muted); font-weight: 600; pointer-events: none; }
.inp-wrap .pre + .inp { padding-left: 32px; }
.inp-wrap .suf { position: absolute; right: 14px; color: var(--muted); font-size: 14px; font-weight: 600; pointer-events: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; min-height: 18px; }
.hint.green { color: var(--green); }
.hint.amber { color: var(--amber); }
.hint.red { color: var(--red); }
.drop { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px dashed #3e4449; border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--blue); background: rgba(29, 155, 240, .05); }
.drop .thumb { width: 72px; height: 72px; border-radius: 12px; background: var(--card-2); display: grid; place-items: center; overflow: hidden; color: var(--muted); flex: none; }
.drop .thumb img { width: 100%; height: 100%; object-fit: cover; }
.drop .dt { font-weight: 600; }
.drop .ds { font-size: 13px; color: var(--muted); }
.presets { display: flex; gap: 6px; }
.presets button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.presets button:hover { background: var(--hover); }
details.more summary { cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 600; list-style: none; }
details.more summary::before { content: '+ '; }
details.more[open] summary::before { content: '− '; }
details.more .row2 { margin-top: 12px; }
.form-status { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--card-2); font-size: 14px; }
.form-status.err { background: var(--red-bg); color: var(--red); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink); animation: spin .7s linear infinite; flex: none; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.who { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); }
.who .av { width: 44px; height: 44px; }
.who .nm { font-weight: 700; display: flex; align-items: center; gap: 4px; }
.who .hd { color: var(--muted); font-size: 14px; }
.who .r { margin-left: auto; text-align: right; font-size: 12.5px; color: var(--muted); }

.aside-stack { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 80px; }
.preview { padding: 16px; }
.preview .pv-top { display: flex; gap: 12px; align-items: center; }
.preview .pv-img { width: 64px; height: 64px; border-radius: 14px; background: var(--card-2); overflow: hidden; flex: none; }
.preview .pv-img img { width: 100%; height: 100%; object-fit: cover; }
.preview .pv-name { font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview .pv-sym { color: var(--muted); font-size: 14px; }
.splitbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin: 16px 0 10px; gap: 3px; }
.splitbar i { display: block; border-radius: 999px; }
.split-legend { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.split-legend div { display: flex; justify-content: space-between; gap: 10px; }
.split-legend .sw { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 8px; vertical-align: 1px; }
.costs { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.costs div { display: flex; justify-content: space-between; color: var(--muted); }
.costs div b { color: var(--ink); font-weight: 600; }
.costs .total { border-top: 1px solid var(--line); padding-top: 10px; color: var(--ink); font-weight: 600; }

/* ---------- tables / lists ---------- */
.list { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.list .li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.list .li:last-child { border-bottom: 0; }
.list .li:hover { background: var(--bg-2); }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }
.empty b { color: var(--ink); display: block; font-size: 17px; margin-bottom: 4px; }

/* ---------- compare ---------- */
.cmp { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; border-bottom: 1px solid var(--line-2); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row > div { padding: 16px 20px; font-size: 15px; }
.cmp-row > div:first-child { color: var(--muted); font-size: 14px; }
.cmp-row .us { background: rgba(0, 186, 124, .06); border-left: 1px solid rgba(0, 186, 124, .25); border-right: 1px solid rgba(0, 186, 124, .25); }
.cmp-row.head > div { font-weight: 700; font-size: 16px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.cmp-row.head .us { border-top: 2px solid var(--green); }
.cmp-row .win { color: var(--green); font-weight: 600; }
.cmp-row small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.cmp-big { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.cmp-big .card { padding: 22px; }
.cmp-big .pct { font-size: 56px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; margin-top: 8px; }
.cmp-big .us-card { border-color: rgba(0, 186, 124, .45); }
.cmp-big .us-card .pct { color: var(--green); }
.calc { margin-top: 16px; padding: 20px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.calc input[type=range] { flex: 1; min-width: 200px; accent-color: var(--green); }
.calc .out { display: flex; gap: 22px; font-variant-numeric: tabular-nums; }
.calc .out b { font-size: 22px; display: block; }
.src { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ---------- draw ---------- */
.draw-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: 24px; }
.pot-card { padding: 26px; }
.pot { font-size: clamp(44px, 6vw, 64px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.pot small { font-size: .36em; color: var(--muted); font-weight: 600; margin-left: 6px; }
.countdown { display: flex; gap: 8px; margin-top: 18px; align-items: baseline; }
.countdown b { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.kpis > div { background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; }
.kpis b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.kpis span { font-size: 12.5px; color: var(--muted); }
.steps { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--white); color: #000; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.step .st { font-weight: 600; }
.step .ss { color: var(--muted); font-size: 14px; }
.post-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: block; transition: background .15s; }
.post-card:hover { background: var(--bg-2); }
.post-card .ph { display: flex; gap: 10px; align-items: center; }
.post-card .ph .av { width: 36px; height: 36px; }
.post-card .txt { margin-top: 8px; white-space: pre-wrap; word-break: break-word; }
.check { display: flex; gap: 8px; margin-top: 4px; }
.check .inp { height: 44px; }
.check-out { margin-top: 10px; font-size: 14px; }
.winner-row .av { width: 40px; height: 40px; }
.winner-row .amt { margin-left: auto; text-align: right; }
.winner-row .amt b { font-size: 17px; font-variant-numeric: tabular-nums; }
.winner-row .amt small { display: block; color: var(--muted); font-size: 12.5px; }
.proof { font: 13px var(--mono); display: flex; flex-direction: column; gap: 0; }
.proof div { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line-2); word-break: break-all; }
.proof div:last-child { border-bottom: 0; }
.proof div > span:first-child { color: var(--muted); font-family: var(--sans); }
.verify-box { padding: 16px 18px; border-radius: 14px; display: flex; gap: 12px; align-items: center; }
.verify-box.ok { background: var(--green-bg); color: var(--green); }
.verify-box.bad { background: var(--red-bg); color: var(--red); }
pre.code { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font: 12.5px/1.6 var(--mono); overflow: auto; white-space: pre; color: var(--ink-2); }

/* ---------- profile / token ---------- */
.prof-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 28px 0 8px; }
.prof-head .av { width: 88px; height: 88px; }
.prof-head h1 { font-size: 26px; display: flex; gap: 6px; align-items: center; }
.prof-head .hd { color: var(--muted); font-size: 15px; }
.prof-head .acts { margin-left: auto; display: flex; gap: 8px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.stat { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--card); }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-size: 24px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 3px; }
.stat.hi { border-color: rgba(0, 186, 124, .45); }
.stat.hi .v { color: var(--green); }
.claim-card { margin-top: 16px; padding: 18px 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.tok-head { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin-top: 28px; align-items: start; }
.tok-head .timg { width: 220px; height: 220px; border-radius: 20px; overflow: hidden; background: var(--card-2); }
.tok-head .timg img { width: 100%; height: 100%; object-fit: cover; }
.tok-head h1 { font-size: 30px; }
.addr { font: 12.5px var(--mono); background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }

/* ---------- docs ---------- */
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc h3 { font-size: 18px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc code { font: 13.5px var(--mono); background: var(--card-2); padding: 1px 6px; border-radius: 6px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 10px; color: var(--ink-2); }

/* ---------- modal + toast ---------- */
#modal-layer:not(:empty) { position: fixed; inset: 0; background: rgba(91, 112, 131, .4); display: grid; place-items: center; z-index: 60; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 440px; background: var(--bg); border-radius: 20px; padding: 26px; max-height: calc(100vh - 32px); overflow: auto; animation: rise .2s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.modal h3 { font-size: 22px; }
.modal .m-body { margin-top: 10px; color: var(--ink-2); display: flex; flex-direction: column; gap: 12px; }
.modal .m-foot { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.modal .m-art { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; margin-bottom: 14px; }
.summary-box { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.summary-box div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 14px; border-bottom: 1px solid var(--line-2); }
.summary-box div:last-child { border-bottom: 0; }
.summary-box div span:first-child { color: var(--muted); }
.wallet-list { display: flex; flex-direction: column; gap: 8px; }
.wallet-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: transparent; cursor: pointer; font-weight: 600; }
.wallet-row:hover { background: var(--hover); }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; padding: 12px 20px; border-radius: 8px; font-size: 15px; z-index: 70; max-width: calc(100vw - 32px); box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
#toast.err { background: var(--red); }

.skel { background: linear-gradient(90deg, var(--card), var(--hover), var(--card)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  :root { --side: 88px; }
  .side { padding: 14px 12px; align-items: center; }
  .brand .wm, .snav a span:not(.ic), .side-foot span:not(.ic), .side-foot .ic { display: none; }
  .brand .sq { display: block; }
  .snav a { padding: 12px; }
  .live-dot { position: absolute; margin: 0 0 0 22px; }
  .snav a { position: relative; }
  .side-foot { padding: 8px; }
}
@media (max-width: 1000px) {
  .tiles, .tiles.three, .split-sec, .launch, .draw-hero { grid-template-columns: 1fr; }
  .aside-stack { position: static; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .side { display: none; }
  .main { margin-left: 0; }
  .top { padding: 0 16px; gap: 10px; }
  .top .brand.mob { display: flex; padding: 0; }
  .search { padding: 0 12px; height: 40px; }
  .search input { font-size: 16px; }
  .top-actions .btn.sm { padding: 0 12px; }
  .hide-sm { display: none !important; }
  .page { padding: 0 16px 90px; }
  .hero { padding: 40px 0 30px; }
  .hero .lede { font-size: 16.5px; }
  .grid-tokens { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .row2 { grid-template-columns: 1fr; }
  .cmp-row { grid-template-columns: 1fr 1fr; }
  .cmp-row > div:first-child { grid-column: 1 / -1; padding-bottom: 0; }
  .cmp-row .us { border-left: 0; }
  .cmp-big .pct { font-size: 46px; }
  .kpis { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .kpis > div { padding: 8px 9px; }
  .kpis b { font-size: 16px; }
  .kpis span { font-size: 11.5px; }
  .pot-card { padding: 20px; }
  .proof div { grid-template-columns: 1fr; gap: 2px; }
  .tok-head { grid-template-columns: 1fr; }
  .tok-head .timg { width: 140px; height: 140px; }
  .prof-head .av { width: 64px; height: 64px; }
  .prof-head .acts { margin-left: 0; width: 100%; }
  .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(0, 0, 0, .9); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 4px 0; }
  .bnav a .ic { width: 22px; height: 22px; }
  .bnav a.on { color: var(--ink); }
  .foot { padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.mini-card .meta small { margin-left: 3px; }

/* ---------- how the money moves (public/js/how.js) ---------- */
.hw { border: 1px solid var(--line); border-radius: 20px; background: var(--card); padding: 18px; }
.hw-steps { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.hw-step { flex: 1; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; color: var(--muted); min-width: 0; }
.hw-step.on { color: var(--ink); }
.hw-bar { display: block; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.hw-bar i { display: block; height: 100%; width: 0; background: var(--ink); }
.hw-st { display: block; font-size: 13.5px; font-weight: 600; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-ex { font-size: 12px; color: var(--faint); flex: none; align-self: center; }
.hw-replay { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; flex: none; }
.hw-replay:hover { color: var(--ink); }
.hw-stage { position: relative; display: grid; gap: 12px; }
.hw-launch { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hw-draw { grid-template-columns: 1.1fr 1fr 1fr; }
.hw-card { border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg); padding: 14px; min-height: 250px; display: flex; flex-direction: column; gap: 8px; opacity: .4; transition: opacity .35s, border-color .35s; }
.hw-card.seen { opacity: .75; }
.hw-card.on { opacity: 1; border-color: #3e4449; }
.hw-k { font-size: 13px; font-weight: 700; color: var(--ink); }
.hw-mut { color: var(--muted); }
.hw-small { font-size: 12.5px; }
.hw-g { color: var(--green); }
.hw-num { font-variant-numeric: tabular-nums; }
.hw-big { font-size: 24px; }
.hw-ic { display: inline-flex; width: 14px; height: 14px; flex: none; }
.hw-ic svg { width: 100%; height: 100%; }
.hw-x { margin-left: auto; width: 15px; height: 15px; }
.hw-av { width: 30px; height: 30px; border-radius: 50%; background: #202327; display: inline-grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; color: var(--ink-2); }
.hw-av-u { background: #fff; color: #000; font-weight: 800; }
.hw-tok { display: flex; gap: 10px; align-items: center; }
.hw-tokimg { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #f59e0b, #ef4444); display: grid; place-items: center; font-weight: 800; color: #fff; }
.hw-field { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 14px; display: flex; align-items: center; min-height: 38px; }
.hw-at { color: var(--muted); margin-left: 5px; }
.hw-typed { font-weight: 600; }
.hw-caret { width: 1.5px; height: 16px; background: var(--blue); margin-left: 1px; animation: hwblink 1s steps(1) infinite; }
@keyframes hwblink { 50% { opacity: 0; } }
.hw-split { display: flex; gap: 3px; height: 8px; margin-top: 4px; }
.hw-split i:empty { min-width: 0; }
.hw-split i { display: block; border-radius: 99px; width: 0; transition: width .8s cubic-bezier(.3, .7, .2, 1); }
.hw-split-a { background: var(--green); }
.hw-split-b { background: #536471; }
.hw-legend { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.hw-legend b { color: var(--ink); }
.hw-legend .hw-g { color: var(--green); }
.hw-lock { display: flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--green); opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .4s; margin-top: auto; }
.hw-lock.show { opacity: 1; transform: none; }
.hw-trades { display: flex; flex-direction: column; gap: 6px; min-height: 104px; }
.hw-trade { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 9px; border-radius: 8px; background: var(--card-2); animation: hwin .3s ease-out; }
.hw-trade.b span:first-child { color: var(--green); font-weight: 600; }
.hw-trade.s span:first-child { color: var(--red); font-weight: 600; }
@keyframes hwin { from { opacity: 0; transform: translateY(-6px); } }
.hw-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; font-size: 14px; }
.hw-push { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; opacity: 0; transition: opacity .3s; }
.hw-push::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hw-push.show { opacity: 1; }
.hw-acct { border: 1px solid rgba(0, 186, 124, .35); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.hw-acct-h { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.hw-chip { display: flex; justify-content: space-between; font-size: 12.5px; border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 10px; margin-top: auto; }
.hw-pf { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; }
.hw-pfdot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.hw-btn { display: flex; gap: 8px; align-items: center; justify-content: center; height: 38px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; transition: transform .15s, opacity .3s, background .15s; }
.hw-btn.press { transform: scale(.94); background: var(--hover); }
.hw-btn.gone { display: none; }
.hw-btn-w { background: #fff; color: #000; border-color: #fff; display: none; }
.hw-btn-w.show { display: flex; }
.hw-btn-w.press { transform: scale(.94); opacity: .85; background: #fff; }
.hw-done { display: flex; gap: 6px; align-items: center; color: var(--green); font-weight: 600; font-size: 13px; opacity: 0; transition: opacity .4s; }
.hw-done.show { opacity: 1; }
.hw-wallet { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; margin-top: auto; opacity: .5; transition: opacity .3s; }
.hw-wallet.show { opacity: 1; }
.hw-dot { position: absolute; border-radius: 50%; pointer-events: none; z-index: 5; box-shadow: 0 0 10px currentColor; }
.hw-post { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.hw-thread { display: flex; flex-direction: column; gap: 5px; }
.hw-reply { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 4px 6px; border-radius: 10px; opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s, background .15s; }
.hw-reply .hw-av { width: 24px; height: 24px; font-size: 11px; }
.hw-reply-t { display: flex; gap: 6px; flex: 1; min-width: 0; }
.hw-reply.show { opacity: 1; transform: none; }
.hw-tag { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; display: none; }
.hw-tag-no { background: var(--red-bg); color: var(--red); }
.hw-tag-yes { background: var(--green-bg); color: var(--green); }
.hw-reply.out { opacity: .35; }
.hw-reply.out .hw-tag-no, .hw-reply.in .hw-tag-yes { display: inline-block; }
.hw-reply.hot { background: var(--hover); }
.hw-reply.win { background: rgba(0, 186, 124, .14); box-shadow: inset 0 0 0 1px rgba(0, 186, 124, .5); }
.hw-hash { font: 13px var(--mono); background: var(--card-2); border-radius: 8px; padding: 6px 9px; color: var(--ink); }
.hw-idx { font-weight: 700; color: var(--green); }
.hw-caption { margin-top: 14px; color: var(--ink-2); font-size: 15px; min-height: 46px; max-width: 760px; }
@media (max-width: 1000px) {
  .hw-launch { grid-template-columns: 1fr 1fr; }
  .hw-draw { grid-template-columns: 1fr; }
  .hw-card { min-height: 0; }
}
@media (max-width: 700px) {
  .hw { padding: 14px; }
  .hw-st { font-size: 12px; }
  .hw-replay, .hw-ex { display: none; }
  .hw-launch { grid-template-columns: 1fr; }
  .hw-card { opacity: 1; display: none; }
  .hw-card.on { display: flex; }
}
.hw-draw .hw-lock { margin-top: 2px; }
.hw-draw .hw-row { margin-top: 6px; }

/* ---------- @tryupay card ---------- */
.follow-card { display: block; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--card); transition: border-color .15s; }
.follow-card:hover { border-color: #3e4449; }
.fc-banner { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; background: #000; }
.fc-body { display: flex; align-items: center; gap: 14px; padding: 0 20px 18px; }
.fc-av { width: 84px; height: 84px; border-radius: 50%; border: 4px solid var(--card); margin-top: -34px; background: #000; flex: none; }
.fc-name { font-weight: 700; font-size: 18px; display: flex; gap: 4px; align-items: center; }
.fc-btn { margin-left: auto; }
@media (max-width: 700px) { .fc-av { width: 64px; height: 64px; margin-top: -26px; } .fc-body { padding: 0 14px 14px; } }

/* ---------- official $UPAY CA ---------- */
.ca-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 6px 6px 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); max-width: 100%; }
.ca-tk { font-weight: 700; flex: none; }
.ca-addr { display: inline-flex; align-items: center; gap: 8px; min-width: 0; background: none; border: 0; color: var(--ink-2); cursor: pointer; padding: 0; font-size: 13.5px; }
.ca-addr .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-addr:hover { color: var(--ink); }
.ca-addr .ic { color: var(--muted); }
.side-ca { margin: auto 0 10px; border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.side-ca + .side-foot { margin-top: 0; }
.sca-top { display: flex; align-items: center; justify-content: space-between; }
.sca-top .btn { height: 30px; padding: 0 14px; }
.sca-addr { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 10px; color: var(--ink-2); cursor: pointer; font-size: 13px; }
.sca-addr:hover { color: var(--ink); }
@media (max-width: 1280px) { .side-ca { display: none !important; } }
@media (max-width: 700px) { .ca-pill { display: flex; margin: 20px auto 0; width: 100%; } .ca-addr { flex: 1; } }
.side-ca[hidden] + .side-foot { margin-top: auto; }
