/* ─────────────────────────────────────────────────────────────
   B88M app — the c8ntinuum app system, measured: pure black, Inter,
   chrome-stroke "shiny" pills (animated 90→450° stroke, 4s glare),
   glowing active nav pill, bare tables with uppercase tracked labels,
   centred single-card surfaces.
   ───────────────────────────────────────────────────────────── */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 90deg; }
.app {
  --bg: #000; --raised: #1e1e1e; --overlay: #232326; --hover: #202022; --floating: #161616; --popover: #1a1a1a; --inset: #000; --menu: #101010;
  --text: #fff; --muted: #6f6f72; --subtle: #9e9ea1; --faint: #7d7d7d; --primary: #a9a9a9;
  --border: #2e2e31; --border-strong: #3a3a3d; --border-muted: #1e1e1e;
  --accent: #5bc15f; --warn: #d9a444; --danger: #d1544f; --danger-soft: #f87171;
  --inter: "Inter", "Noto Sans SC", system-ui, sans-serif;
  font-family: var(--inter); background: #000; color: #fff; min-height: 100vh; display: flex; flex-direction: column; font-weight: 500;
}
.app button, .app input, .app textarea { font-family: var(--inter); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: "Roboto Mono", ui-monospace, monospace; }

/* ── shiny: chrome stroke + dark inner + glare ── */
.sb { position: relative; display: inline-flex; align-items: stretch; justify-content: center; border-radius: 9999px; padding: 1px; border: 1px solid transparent; cursor: pointer;
  background: linear-gradient(var(--a), #d7d7d7 0%, #2e2e31 50%, #d7d7d7 100%) border-box; animation: sb-pan 20s linear infinite; transition: transform .18s ease-in-out; color: #fff; text-decoration: none; }
@keyframes sb-pan { to { --a: 450deg; } }
.sb::before { content: ""; position: absolute; inset: -6px; border-radius: inherit; background: linear-gradient(var(--a), #d7d7d7, #2e2e31 50%, #d7d7d7); filter: contrast(1.5) blur(4px); opacity: 0; z-index: 0; pointer-events: none; transition: opacity .2s ease-out; }
.sb:hover::before, .sb.glow::before { opacity: .35; }
.sb.glow:hover::before { opacity: .6; }
.sb:active { transform: scale(.95); }
.sb > span { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: inherit; overflow: hidden; background: #101011; white-space: nowrap; }
.sb > span::after { content: ""; position: absolute; top: 50%; left: -50%; width: 150%; height: 150%; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.55) 47%, #fff 50%, rgba(255,255,255,.55) 53%, rgba(255,255,255,0) 65%);
  transform: translate(-50%, -50%); animation: sb-glare 4s ease-in-out infinite; mix-blend-mode: overlay; }
@keyframes sb-glare { 0% { transform: translate(-50%, -50%); opacity: 0 } 10% { opacity: .55 } 98% { transform: translate(100%, -50%); opacity: .25 } 99% { transform: translate(100%, -50%); opacity: 0 } 100% { transform: translate(-50%, -50%); opacity: 0 } }
.sb--cta > span { min-height: 44px; padding: 8px 24px; font-size: 16px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.sb--xl > span { min-height: 52px; padding: 10px 56px; font-size: 16px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.sb--block { display: flex; width: 100%; }
.sb--nav > span { height: 32px; padding: 0 20px; font-size: 14px; font-weight: 600; letter-spacing: .02em; }
:root[lang="zh"] .sb--cta > span, :root[lang="zh"] .sb--xl > span { letter-spacing: .24em; }
.sb[disabled] { animation: none; background: #2a2a2d; cursor: not-allowed; }
.sb[disabled] > span { color: var(--muted); }
.sb[disabled] > span::after, .sb[disabled]::before { display: none; }
@media (prefers-reduced-motion: reduce) { .sb, .sb > span::after { animation: none; } }

/* plain pills */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 9999px; border: 1px solid var(--border); background: #000; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: color .2s, border-color .2s, background .2s; text-decoration: none; }
.pill:hover { color: #fff; border-color: var(--border-strong); }
.pill.on { background: var(--overlay); border-color: var(--border-strong); color: #fff; }
.pill--sm { height: 32px; padding: 0 16px; font-size: 11px; }
.pill--up { text-transform: uppercase; letter-spacing: .18em; }
.pill[disabled] { opacity: .4; cursor: not-allowed; }
.btn-join { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 16px; border-radius: 9999px; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .2s; white-space: nowrap; text-decoration: none; }
:root[lang="zh"] .btn-join { font-size: 11px; letter-spacing: .2em; }
.btn-join:hover:not([disabled]) { background: rgba(255,255,255,.18); }
.btn-join.is-on { background: rgba(91,193,95,.14); color: var(--accent); cursor: default; }
.btn-join[disabled]:not(.is-on) { opacity: .4; cursor: not-allowed; }

/* ── navbar ── */
.anav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 12px 0; background: linear-gradient(#000 62%, rgba(0,0,0,0)); }
.anav__in { max-width: 1320px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 16px; }
.anav__brand { display: flex; align-items: center; height: 48px; flex: none; text-decoration: none; color: #fff; }
.anav__brand .full { height: 28px; display: block; }
.anav__brand .sym { display: none; height: 26px; }
.anav__brand .brand-zh img { height: 26px; }
.anav__brand .brand-zh span { font-size: 24px; }
.anav__links { display: flex; align-items: center; gap: 10px; margin-left: 20px; min-width: 0; }
.anav__links a.plain { position: relative; font-size: 13.5px; font-weight: 600; color: var(--primary); padding: 0 6px; text-decoration: none; transition: color .2s; white-space: nowrap; }
.anav__links a.plain:hover { color: #fff; }
.anav__links .ping { position: absolute; top: -3px; right: -4px; width: 6px; height: 6px; }
.ping::before, .ping::after { content: ""; position: absolute; inset: 0; border-radius: 99px; background: var(--accent); }
.ping::before { animation: ping 1.4s cubic-bezier(0,0,.2,1) infinite; opacity: .5; }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
.anav__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.netpill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 9999px; border: 1px solid var(--border); font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--subtle); text-transform: uppercase; }
.netpill i { width: 6px; height: 6px; border-radius: 9px; background: var(--muted); }
.netpill.live i { background: var(--accent); box-shadow: 0 0 0 3px rgba(91,193,95,.18); }
.netpill.off i { background: var(--danger); }
.app .lang-toggle { height: 40px; border-color: var(--border); background: #000; }
#connectBtn > span { min-width: 140px; }
#connectBtn.is-addr > span { text-transform: none; letter-spacing: .02em; font-family: "Roboto Mono", monospace; font-size: 14px; }

.amain { flex: 1; width: 100%; padding-top: 72px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 20px 24px 80px; }
.wrap--narrow { max-width: 960px; }

/* ── trending ticker ── */
.ticker { position: relative; overflow: hidden; margin-bottom: 20px;
  -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
.ticker__track { display: flex; gap: 8px; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.tchip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 5px; border-radius: 9999px; border: 1px solid var(--border); background: #0b0b0c; font-size: 12px; font-weight: 700; color: #fff; text-decoration: none; flex: none; transition: border-color .2s; }
.tchip:hover { border-color: var(--border-strong); }
.tchip .n { color: var(--subtle); font-weight: 600; font-size: 11px; }
.tchip .mb { width: 36px; height: 3px; border-radius: 9px; background: #2a2a2d; overflow: hidden; }
.tchip .mb i { display: block; height: 100%; border-radius: 9px; }
.tchip.first { border-color: #3a3a3d; background: #141415; }
.ticker__empty { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 9px 2px; }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ── toolbar ── */
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.search { margin-left: auto; flex: 0 1 660px; min-width: 0; height: 38px; border-radius: 9999px; border: 1px solid var(--border); background: #000; color: #fff; padding: 0 16px; font-size: 12px; font-weight: 600; outline: none; box-shadow: inset 0 2px 4px rgba(0,0,0,.4); }
.search::placeholder { color: var(--muted); }
.search:focus { border-color: var(--border-strong); }

/* ── arena table ── */
.hscroll { width: 100%; overflow-x: auto; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.htable { width: 100%; min-width: 900px; border-collapse: separate; border-spacing: 0 4px; font-size: 14px; }
.htable thead tr { background: linear-gradient(90deg, rgba(255,255,255,.055), rgba(255,255,255,.01)); }
.htable th { height: 48px; text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--subtle); padding: 12px 8px; }
.htable th:first-child { padding-left: 40px; border-radius: 12px 0 0 12px; }
.htable th:last-child { border-radius: 0 12px 12px 0; }
.htable tbody tr { cursor: pointer; }
.htable td { padding: 12px 8px; height: 64px; vertical-align: middle; transition: background .15s; }
.htable td:first-child { border-radius: 12px 0 0 12px; }
.htable td:last-child { border-radius: 0 12px 12px 0; text-align: right; padding-right: 16px; }
.htable tbody tr:hover td { background: #0e0e0f; }
.tok { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tok .rk { width: 26px; font-size: 12px; font-weight: 600; color: var(--muted); flex: none; }
.tok b { display: block; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .01em; }
.tok small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.av { width: 40px; height: 40px; border-radius: 9999px; overflow: hidden; flex: none; display: grid; place-items: center; background: #1a1a1a; font-size: 12px; font-weight: 700; color: #fff; }
.av img, .av svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.av--sm { width: 20px; height: 20px; font-size: 8px; }
.av--lg { width: 96px; height: 96px; font-size: 26px; }
.status { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 10px; border-radius: 9999px; background: #121213; border: 1px solid #1c1c1e; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.status .e { font-size: 15px; letter-spacing: 0; }
:root[lang="zh"] .status { font-size: 11px; letter-spacing: .12em; }
.state { display: block; margin-top: 6px; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.state--1 { color: var(--accent); } .state--2 { color: var(--danger-soft); }
.wait { display: flex; flex-direction: column; gap: 8px; }
.wait__t { display: flex; align-items: baseline; gap: 8px; }
.wait__t b { font-size: 18.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wait__t span { font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
:root[lang="zh"] .wait__t span { font-size: 11px; letter-spacing: .1em; }
.bar { width: 280px; max-width: 100%; height: 7px; border-radius: 9px; background: #1f1f21; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 9px; transition: width .6s cubic-bezier(.22,1,.36,1); }
.crew { display: flex; align-items: center; }
.crew .av { width: 36px; height: 36px; border: 2px solid #000; margin-left: -10px; }
.crew .av:first-child { margin-left: 0; }
.crew .more { width: 36px; height: 36px; border-radius: 99px; margin-left: -10px; border: 2px solid #000; background: #1c1c1e; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--subtle); }
.crew .none { font-size: 12px; color: var(--muted); }
.empty { padding: 64px 20px; text-align: center; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.empty img { height: 30px; opacity: .6; }

/* ── surfaces / cards ── */
.hero-h { text-align: center; margin: 20px 0 36px; }
.hero-h h1 { font-size: calc(40px * var(--k)); font-weight: 700; letter-spacing: -.02em; margin: 0; }
.hero-h p { margin: 12px 0 0; color: var(--subtle); font-size: 15px; font-weight: 500; }
.card { background: #0d0d0e; border: 1px solid var(--border); border-radius: 24px; padding: 28px; position: relative; }
.card--glow { background: radial-gradient(120% 90% at 50% 0%, #161617, #0a0a0b 60%); }
.card h2 { font-size: 20px; font-weight: 600; margin: 0; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card__head .meta { font-size: 13px; color: var(--primary); font-weight: 500; }
.lab { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--subtle); }
.hr { height: 1px; background: var(--border); border: 0; margin: 18px 0; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 13px; }
.kv .k { color: var(--primary); }
.kv .v { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; word-break: break-all; }
.kv .v a { color: #fff; text-decoration: none; border-bottom: 1px dashed var(--border-strong); }
.tagp { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 99px; border: 1px solid var(--border-strong); font-size: 10px; color: var(--subtle); font-weight: 500; margin-left: 8px; }
.green { color: var(--accent); } .red { color: var(--danger-soft); } .muted { color: var(--muted); } .subtle { color: var(--subtle); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: #0d0d0e; border: 1px solid var(--border); border-radius: 12px; padding: 16px 16px 14px; }
.stat .lab { font-size: 11px; }
.stat b { display: block; font-size: 20px; font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat b small { font-size: 10px; color: var(--muted); font-weight: 600; margin-left: 4px; letter-spacing: .06em; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 20px; align-items: start; }

/* segmented plan tabs */
.segs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.segs button { height: 72px; border: 0; background: none; color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; position: relative; }
.segs button + button { border-left: 1px solid var(--border); }
.segs button small { font-size: 11px; color: var(--accent); letter-spacing: 0; text-transform: none; }
.segs button.on { background: #3a3a3c; box-shadow: inset 0 0 0 2px #cfcfcf; border-radius: 14px; }
.segs button:not(.on):hover { background: #111; }
.tabs2 { display: inline-flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }

/* pay row */
.pay { display: flex; align-items: center; gap: 14px; padding: 18px 0; }
.pay .coin { display: flex; align-items: center; gap: 10px; flex: none; }
.pay .coin b { display: block; font-size: 13px; font-weight: 600; }
.pay .coin small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.pay input { flex: 1; min-width: 0; width: 0; text-align: right; background: none; border: 0; outline: none; color: #fff; font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pay input::placeholder { color: #4a4a4d; }
.quick { display: flex; gap: 6px; justify-content: flex-end; }
.quick button { height: 22px; padding: 0 9px; border-radius: 99px; border: 1px solid var(--border); background: none; color: var(--muted); font-size: 10px; font-weight: 600; cursor: pointer; }
.quick button:hover { color: #fff; border-color: var(--border-strong); }
.cta-row { display: flex; justify-content: center; margin: 28px 0; }
.err { color: var(--danger-soft); font-size: 12px; min-height: 16px; text-align: center; margin-top: 8px; }

/* fields */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 12px; font-weight: 600; color: var(--primary); display: flex; justify-content: space-between; gap: 10px; }
.field label span { color: var(--muted); font-weight: 500; }
.inp, .txa { width: 100%; background: #000; border: 1px solid var(--border); border-radius: 12px; color: #fff; font-size: 14px; font-weight: 500; padding: 12px 14px; outline: none; transition: border-color .2s; }
.inp:focus, .txa:focus { border-color: var(--border-strong); }
.txa { min-height: 92px; resize: vertical; line-height: 1.55; font-size: 13px; }
.inp--big { font-size: 22px; font-weight: 600; }

/* token page */
.tk-top { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.tk-top h1 { font-size: calc(32px * var(--k)); font-weight: 700; margin: 0; letter-spacing: -.01em; }
.tk-top .sym { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--subtle); font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; margin: 4px 0 18px; }
.back:hover { color: #fff; }
.big-pct { font-size: 44px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.splitbar { display: flex; height: 8px; gap: 2px; border-radius: 9px; overflow: hidden; margin: 10px 0 14px; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; font-size: 12px; color: var(--primary); }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend b { margin-left: auto; color: #fff; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.desc { font-size: 14px; line-height: 1.7; color: var(--primary); white-space: pre-wrap; word-break: break-word; margin: 0; }
.links { display: flex; gap: 8px; flex-wrap: wrap; }
.task { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border-muted); font-size: 14px; text-decoration: none; color: #fff; }
.task:first-child { border-top: 0; }

/* quests: MANIF8LD's dashboard + sections, in the dark system */
.score { text-align: center; padding: 30px 0 10px; position: relative; }
.score::before { content: ""; position: absolute; left: 50%; top: 40%; width: 520px; max-width: 100%; height: 260px; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(255,255,255,.07), transparent 65%); pointer-events: none; }
.score .lab { letter-spacing: .3em; }
.score .n { font-family: "Roboto Mono", monospace; font-size: clamp(72px, 11vw, 132px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; margin: 10px 0 6px; position: relative; }
.score p { margin: 0; font-size: 22px; font-weight: 600; }
.qsec { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 44px; padding: 44px 0; border-top: 1px solid var(--border-muted); }
.qsec h2 { font-size: calc(26px * var(--k)); font-weight: 700; margin: 0 0 12px; }
.qsec > div:first-child p { font-size: 13px; line-height: 1.7; color: var(--primary); margin: 0; }
.dashes { display: flex; gap: 5px; align-items: center; margin-top: 20px; font-size: 12px; color: var(--muted); font-family: "Roboto Mono", monospace; }
.dashes i { width: 18px; height: 3px; border-radius: 3px; background: #2a2a2d; }
.dashes i.on { background: var(--accent); }
.dashes span { margin-left: 12px; }
.qrow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--border-muted); }
.qrow:first-child { border-top: 0; }
.qrow .qi { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--subtle); }
.qrow .qi svg { width: 18px; height: 18px; }
.qrow b { display: block; font-size: 14px; font-weight: 600; }
.qrow small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; font-family: "Roboto Mono", monospace; }
.qrow .done { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .1em; }
.lb { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.lb:nth-child(odd) { background: rgba(255,255,255,.02); }
.lb.me { background: rgba(91,193,95,.08); box-shadow: inset 0 0 0 1px rgba(91,193,95,.3); }
.lb .rk { color: var(--muted); font-weight: 600; font-size: 12px; }
.lb .who { display: flex; align-items: center; gap: 10px; font-family: "Roboto Mono", monospace; font-size: 13px; color: #fff; text-decoration: none; }
.lb .who .av { width: 28px; height: 28px; }

/* invite */
.act { max-width: 700px; margin: 12px auto 0; text-align: center; padding: 56px 48px; border-radius: 24px; background: radial-gradient(120% 100% at 50% 0%, #141415, #0b0b0c 70%); border: 1px solid #161618; }
.act h2 { font-size: calc(26px * var(--k)); font-weight: 600; margin: 0; display: inline-flex; align-items: center; gap: 12px; }
.act h2 i { width: 28px; height: 28px; border-radius: 99px; background: #3a3a3c; font-style: normal; font-size: 13px; display: grid; place-items: center; color: #ddd; }
.act p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 40px auto 36px; max-width: 480px; font-weight: 600; }
.code-big { font-family: "Roboto Mono", monospace; font-size: 44px; font-weight: 600; letter-spacing: .22em; margin: 28px 0 8px; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tiers div { border: 1px solid var(--border); border-radius: 14px; padding: 14px; font-size: 12px; color: var(--muted); text-align: left; }
.tiers div.on { border-color: #cfcfcf; color: #fff; background: #141415; }
.tiers b { display: block; font-size: 14px; color: inherit; margin-bottom: 4px; }
.how { padding-left: 18px; margin: 0; text-align: left; }
.how li { margin-bottom: 8px; color: var(--primary); font-size: 13px; line-height: 1.6; }

/* wallet emblem */
.emblem { position: relative; width: 420px; max-width: 100%; aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.emblem svg.rays { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.emblem .disc { width: 76%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #1a1a1a, #030303 70%); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35), 0 30px 80px rgba(0,0,0,.8); display: grid; place-items: center; position: relative; }
.emblem .core { width: 30%; aspect-ratio: 1; border-radius: 50%; background: #000; display: grid; place-items: center; box-shadow: 0 0 0 1px #1c1c1e; }
.emblem .core img { width: 56%; }
.wallet-cta { max-width: 500px; margin: 36px auto 0; text-align: center; }
.wallet-cta p { font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.hold { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 4px; border-top: 1px solid var(--border-muted); text-decoration: none; color: #fff; }
.hold:first-child { border-top: 0; }

/* launch wizard */
.steps { display: flex; gap: 8px; justify-content: center; margin-bottom: 22px; flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px; border-radius: 99px; border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--muted); }
.steps span b { width: 24px; height: 24px; border-radius: 99px; display: grid; place-items: center; background: #1c1c1e; font-size: 11px; }
.steps span.on { color: #fff; border-color: var(--border-strong); background: var(--overlay); }
.steps span.on b { background: #fff; color: #000; }
.steps span.done b { background: var(--accent); color: #000; }
.slider { width: 100%; accent-color: #fff; }
.logo-pick { display: flex; gap: 16px; align-items: center; }
.addrbox { font-family: "Roboto Mono", monospace; font-size: 13px; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: #000; word-break: break-all; text-align: center; }
.addrbox em { font-style: normal; color: #000; background: #fff; border-radius: 4px; padding: 0 3px; }

/* notices */
.notice { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border: 1px solid var(--border); border-radius: 16px; margin-bottom: 20px; color: var(--primary); font-size: 13px; line-height: 1.6; background: #0a0a0b; }
.notice b { color: #fff; display: block; font-size: 14px; margin-bottom: 2px; }
.notice img { height: 22px; flex: none; opacity: .85; }

/* footer (logo · links · socials) */
.afoot { border-top: 1px solid var(--border-muted); }
.afoot__in { max-width: 1320px; margin: 0 auto; padding: 26px 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.afoot__in > a img { height: 22px; display: block; }
.afoot__in .brand-zh img { height: 22px; }
.afoot__in .brand-zh span { font-size: 20px; }
.afoot__links { display: flex; gap: 18px; font-size: 13px; font-weight: 600; }
.afoot__links a { color: #fff; text-decoration: none; }
.afoot__links a:hover { color: var(--subtle); }
.afoot__r { justify-self: end; text-align: right; font-size: 12px; color: var(--subtle); display: flex; flex-direction: column; gap: 6px; }

.dock { display: none; }

/* modal + toasts */
.modal { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 16px; }
.modal__card { width: min(480px, 100%); max-height: 92vh; overflow: auto; background: #0b0b0c; border: 1px solid var(--border); border-radius: 24px; padding: 32px; position: relative; box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.modal__card h3 { font-size: 22px; font-weight: 700; margin: 0; text-align: center; }
.modal__card .sub { text-align: center; color: var(--subtle); font-size: 13px; margin: 12px 0 0; line-height: 1.6; word-break: break-all; }
.modal__x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 99px; border: 1px solid var(--border); background: none; color: var(--subtle); cursor: pointer; }
.wlist { display: grid; gap: 10px; margin-top: 22px; }
.wlist button { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: #111112; color: #fff; cursor: pointer; font-size: 14px; font-weight: 600; text-align: left; transition: border-color .2s; }
.wlist button:hover { border-color: var(--border-strong); }
.wlist img { width: 30px; height: 30px; border-radius: 8px; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 400; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.toast { background: #181818; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px 14px 19px; font-size: 13px; color: #c7c7c7; box-shadow: 0 16px 40px rgba(0,0,0,.5); display: flex; justify-content: space-between; gap: 12px; align-items: center; animation: tin .3s ease; position: relative; overflow: hidden; }
.toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #fff; }
.toast.ok::before { background: var(--accent); } .toast.bad::before { background: var(--danger); }
.toast a { font-size: 11px; color: #fff; border-bottom: 1px solid var(--border-strong); white-space: nowrap; text-decoration: none; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }

/* ── responsive ── */
@media (max-width: 1180px) {
  .netpill { display: none; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .anav__links { display: none; }
  .anav__brand .full, .anav__brand .brand-zh { display: none !important; }
  .anav__brand .sym { display: block; }
  .anav__in { padding: 0 16px; }
  .wrap { padding: 12px 16px 120px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .qsec { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .afoot__in { grid-template-columns: 1fr; justify-items: start; padding-bottom: 110px; }
  .afoot__r { justify-self: start; text-align: left; }
  .dock { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; justify-content: space-around; padding: 6px; border-radius: 24px;
    background: rgba(18,18,19,.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--border); }
  .dock a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 8px; border-radius: 18px; font-size: 10px; font-weight: 600; color: var(--muted); min-width: 58px; text-decoration: none; }
  .dock a.on { color: #fff; background: #202022; box-shadow: inset 0 0 0 1px #3a3a3d; }
  .dock svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
  .htable, .htable tbody, .htable tr, .htable td { display: block; min-width: 0; width: 100%; }
  .htable { border-spacing: 0; }
  .htable thead { display: none; }
  .htable tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tok act" "wait wait" "st crew"; gap: 12px; padding: 16px; margin-bottom: 10px; border-radius: 18px; background: #0c0c0d; border: 1px solid var(--border-muted); }
  .htable td { height: auto; padding: 0 !important; background: none !important; border-radius: 0 !important; }
  .htable td.c-tok { grid-area: tok; } .htable td.c-act { grid-area: act; align-self: center; }
  .htable td.c-wait { grid-area: wait; } .htable td.c-st { grid-area: st; align-self: center; } .htable td.c-crew { grid-area: crew; justify-self: end; }
  .bar { width: 100%; }
  .toolbar { flex-wrap: wrap; }
  .search { flex-basis: 100%; margin-left: 0; order: 9; }
}
@media (max-width: 600px) {
  #connectBtn > span { min-width: 0; padding: 6px 14px; font-size: 13px; }
  .app .lang-toggle { min-width: 44px; padding: 0 10px; }
  .hero-h h1 { font-size: calc(28px * var(--k)); }
  .card { padding: 20px; border-radius: 20px; }
  .segs button { height: 64px; }
  .pay input { font-size: 24px; }
  .act { padding: 40px 22px; }
  .act p { margin: 28px auto; font-size: 14px; }
  .code-big { font-size: 30px; }
  .sb--xl > span { padding: 10px 32px; }
  .grid2 { grid-template-columns: 1fr; }
  .legend { grid-template-columns: 1fr; }
  .crew .av, .crew .more { width: 28px; height: 28px; }
}
.app .status { margin: 0; }
