/* App chrome in the OneFin language: dark #121214, cards #1b1b1f / #212124, big radii, indigo + lavender, Geist UI, condensed titles. */
html[data-layout="app"] body { background: var(--ink); color: #fff; min-height: 100vh; }
html[data-layout="app"] body::before { content: ''; position: fixed; left: 0; right: 0; top: 0; height: 520px; background: url(/img/grad-dark.png) center top / 100% 100% no-repeat; opacity: .55; pointer-events: none; z-index: 0; transform: scaleY(-1); }
.mdl-open, .mdl-open body { overflow: hidden; }

/* header */
.ah { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 8px; height: 80px; padding: 0 24px; background: rgba(18, 18, 20, .78); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.ah-logo { width: 48px; height: 48px; border-radius: 20px; background: #000; display: grid; place-items: center; color: #fff; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.ah-logo .mark { width: 30px; height: 30px; }
.ah-menu { display: flex; align-items: center; height: 48px; padding: 4px; border-radius: 20px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.ah-menu a { position: relative; height: 40px; display: flex; align-items: center; padding: 0 14px; border-radius: 16px; font-size: 15px; color: rgba(255, 255, 255, .72); transition: background-color .2s, color .2s; }
.ah-menu a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.ah-menu a.on { color: #fff; background: rgba(255, 255, 255, .12); padding-left: 24px; }
.ah-menu a.on::before { content: ''; position: absolute; left: 12px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #fff; }
.ah-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ah-sound { width: 44px; height: 44px; border-radius: 16px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: rgba(255,255,255,.8); }
.ah-sound svg { width: 20px; height: 20px; } .ah-sound .w { display: none; } .ah-sound[aria-pressed="true"] .w { display: inline; } .ah-sound[aria-pressed="true"] .x { display: none; }
.ah-mode { display: flex; padding: 4px; height: 48px; border-radius: 18px; background: rgba(255, 255, 255, .06); }
.ah-mode button { padding: 0 14px; border-radius: 14px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .6); transition: all .25s; }
.ah-mode button.on { background: #fff; color: var(--ink); box-shadow: inset 0 -2px 1px rgba(26,20,51,.2); }
html[data-mode="real"] .ah-mode button.on { background: linear-gradient(#6d55e2, #28119c); color: #fff; box-shadow: none; }
html[data-mode="funded"] .ah-mode button.on { background: linear-gradient(#ff9a7a, #e0567a); color: #fff; box-shadow: none; }
.ah-bal { display: grid; text-align: right; line-height: 1.15; padding: 0 6px; min-width: 96px; }
.ah-bal span { font-size: 11px; color: var(--grey-2); }
.ah-bal b { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.ah-plus { width: 36px; height: 36px; border-radius: 12px; background: rgba(255,255,255,.08); font-size: 20px; line-height: 1; color: #fff; }
.ah-plus:disabled { opacity: .35; cursor: default; }
.ah-conn svg { margin-right: 2px; }
.ah-status { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; max-width: 1440px; margin: 0 auto; padding: 4px 24px 0; font-size: 13px; color: var(--grey-2); }
.app { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; padding: 16px 24px 40px; min-height: calc(100vh - 200px); }
.af { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; padding: 24px; display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; font-size: 13px; color: var(--grey-2); border-top: 1px solid rgba(255,255,255,.06); }
.af-links { display: flex; gap: 18px; } .af a:hover { color: #fff; }
.tabbar { display: none; }

/* page hero (app pages) */
.ph { position: relative; padding: 48px 0 40px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.ph .tag { margin-bottom: 14px; }
.ph h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 96px; line-height: .92; letter-spacing: -0.05em; }
.ph h1 em { font-style: normal; color: var(--lav); }
.ph p { margin-top: 18px; max-width: 560px; font-size: 18px; line-height: 27px; color: rgba(255,255,255,.62); }
.on-app .tag .n { background: #2a2a2e; color: #8f8f8f; } .on-app .tag .t { background: #3a3a40; color: #d9d9d9; }

/* cards & atoms */
.card { position: relative; border-radius: 40px; background: var(--ink-2); padding: 28px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.card.lav { background: #bebeff; color: var(--ink); }
.card.inner { background: var(--ink-3); border-radius: 28px; }
.card h2, .card h3 { font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -0.4px; }
.card .muted, .muted { color: var(--grey-2); }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 15px; }
.kv:last-child { border-bottom: 0; } .kv span { color: rgba(255,255,255,.62); } .kv b { font-weight: 600; text-align: right; }
.big { font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-t { display: grid; gap: 6px; padding: 22px 24px; border-radius: 28px; background: var(--ink-3); }
.stat-t span { font-size: 13px; color: var(--grey-2); } .stat-t b { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.seg { display: flex; padding: 4px; border-radius: 18px; background: rgba(255,255,255,.06); }
.seg button { flex: 1; height: 40px; padding: 0 14px; border-radius: 14px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.62); display: flex; align-items: center; justify-content: center; gap: 6px; transition: all .25s; white-space: nowrap; }
.seg button img { width: 18px; height: 18px; border-radius: 50%; }
.seg button.on { background: #fff; color: var(--ink); }
.seg.sm button { height: 34px; font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 10px; font-size: 13px; font-weight: 500; background: rgba(255,255,255,.08); white-space: nowrap; }
.pill.up { background: rgba(22,199,132,.14); color: #3ee39c; } .pill.down { background: rgba(255,77,94,.14); color: #ff7a87; } .pill.lav { background: rgba(150,150,255,.16); color: #bebeff; }
.empty { padding: 48px 24px; text-align: center; color: var(--grey-2); font-size: 15px; }
.empty b { display: block; color: #fff; font-size: 18px; margin-bottom: 6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; font-size: 12px; color: var(--grey-2); padding: 10px 12px; }
.tbl td { padding: 14px 12px; border-top: 1px solid rgba(255,255,255,.06); }
.tbl tr.lost td:not(:first-child) { color: rgba(255,255,255,.45); }
.tbl .r { text-align: right; }
.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, #6262fe, #bebeff); transition: width .8s var(--ease); }
.btn.busy { opacity: .7; pointer-events: none; }
.btn-block { width: 100%; }
.link { color: var(--lav); font-weight: 600; }
.coin-lg { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; }

/* modal */
.mdl { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.mdl-bg { position: absolute; inset: 0; background: rgba(8, 8, 12, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .28s; }
.mdl-card { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; border-radius: 40px; background: var(--ink-2); padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.06); color: #fff; transform: translateY(24px) scale(.97); opacity: 0; transition: transform .45s var(--spring), opacity .3s; }
.mdl.on .mdl-bg { opacity: 1; } .mdl.on .mdl-card { transform: none; opacity: 1; }
.mdl.terms .mdl-card { max-width: 560px; }
.mdl-x { position: absolute; right: 18px; top: 18px; width: 36px; height: 36px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: 22px; line-height: 1; color: rgba(255,255,255,.7); }
.mdl-kick { font-family: var(--display); font-weight: 900; font-size: 13px; text-transform: uppercase; color: var(--lav); }
.mdl-h { margin-top: 8px; font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.6px; }
.mdl-p { margin-top: 10px; font-size: 15px; line-height: 22px; color: rgba(255,255,255,.65); }
.mdl-note { margin-top: 14px; font-size: 13px; line-height: 19px; color: var(--grey-2); }
.mdl-row { display: flex; justify-content: space-between; margin-top: 20px; padding: 16px 18px; border-radius: 20px; background: var(--ink-3); font-size: 15px; }
.mdl-actions { display: flex; gap: 8px; margin-top: 20px; } .mdl-actions .btn { flex: 1; }
.mdl-link { display: block; margin-top: 16px; text-align: center; width: 100%; font-size: 14px; font-weight: 600; color: var(--lav); }
.mdl-link.danger { color: #ff7a87; }
.wl { display: grid; gap: 8px; margin-top: 20px; }
.wl button { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 16px; border-radius: 20px; background: var(--ink-3); font-size: 16px; font-weight: 600; text-align: left; transition: background-color .2s; }
.wl button:hover { background: #2a2a30; }
.wl img, .wl i { width: 32px; height: 32px; border-radius: 10px; background: #2f2f36; }
.wl em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 500; color: var(--grey-2); }
.wl button.busy { opacity: .6; }
.conf { margin: 18px 0 0; padding: 18px 18px 18px 36px; border-radius: 22px; background: var(--ink-3); list-style: decimal; display: grid; gap: 8px; font-size: 13.5px; line-height: 19px; color: rgba(255,255,255,.82); }
.chk { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; line-height: 20px; color: rgba(255,255,255,.85); }
.chk input { width: 18px; height: 18px; margin-top: 1px; accent-color: #6262fe; flex: none; }
.chk a { color: var(--lav); text-decoration: underline; }
.dep .seg { margin-top: 14px; }
.dep-asset { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.65); }
.dep-asset .seg { margin: 0; width: 220px; }
.amt { display: flex; align-items: center; gap: 10px; margin-top: 14px; height: 72px; padding: 0 12px 0 20px; border-radius: 24px; background: var(--ink-3); }
.amt input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; color: #fff; }
.amt span { font-size: 14px; color: var(--grey-2); }
.amt button { height: 36px; padding: 0 12px; border-radius: 12px; background: rgba(255,255,255,.08); font-size: 13px; font-weight: 600; }
.dep-meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--grey-2); }
.dep-ref { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(150,150,255,.1); font-size: 13px; line-height: 19px; color: #d8d8ff; }
.dep-ref button { color: #fff; font-weight: 600; text-decoration: underline; margin-left: 4px; }
.dep-go { width: 100%; margin-top: 18px; }

@media (max-width: 1240px) { .ah-menu a { padding: 0 9px; font-size: 14px; } .ah-menu a.on { padding-left: 20px; } .ah-bal { min-width: 0; } }
@media (max-width: 1100px) { .ah-menu { display: none; } .tabbar { display: grid; } }
@media (max-width: 1100px) {
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; grid-template-columns: repeat(6, 1fr); height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(18,18,20,.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: 1px solid rgba(255,255,255,.06); }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 10px; color: rgba(255,255,255,.55); }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.on { color: #fff; }
  .app { padding-bottom: 96px; }
  .af { padding-bottom: 90px; }
}
@media (max-width: 760px) {
  .ah { height: 64px; padding: 0 12px; gap: 6px; }
  .ah-logo { width: 40px; height: 40px; border-radius: 14px; }
  .ah-sound, .ah-plus { display: none; }
  .ah-mode { height: 40px; } .ah-mode button { padding: 0 10px; font-size: 13px; }
  .ah-bal b { font-size: 15px; } .ah-bal span { font-size: 10px; }
  .ah-dep { display: none; }
  .ah-conn { width: 40px; height: 40px; padding: 0; border-radius: 14px; } .ah-conn span { display: none; }
  .ah-status { font-size: 12px; padding: 4px 14px 0; } .ah-status [data-status-right] { display: none; }
  .app { padding: 10px 12px 96px; }
  .ph { grid-template-columns: 1fr; padding: 24px 0; gap: 16px; }
  .ph h1 { font-size: 52px; }
  .ph p { font-size: 16px; line-height: 24px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .card { border-radius: 32px; padding: 20px; }
  .mdl-card { border-radius: 32px; padding: 24px 20px; }
}

/* ---------- vault ---------- */
.vt-tabs { width: 380px; }
.vt-top { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.vt-bal { display: flex; flex-direction: column; gap: 8px; }
.vt-bal .big { font-size: 64px; margin-top: 4px; }
.vt-sub { margin-bottom: 8px; }
.vt-tr { padding: 32px; border-radius: 40px; }
.vt-tr-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.vt-k { font-family: var(--display); font-weight: 900; font-size: 14px; text-transform: uppercase; color: #3a3a55; }
.vt-k.lavtxt { color: var(--lav); }
.vt-cov { margin-top: 6px; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 48px !important; line-height: 1 !important; letter-spacing: -0.04em !important; }
.vt-pct { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; }
.vt-rows { margin-top: 18px; border-radius: 24px; background: rgba(255,255,255,.55); padding: 6px 18px; }
.vt-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(18,18,20,.08); font-size: 15px; }
.vt-row:last-child { border-bottom: 0; } .vt-row span { color: #3a3a55; } .vt-row.tot b { color: #0b8a57; }
.vt-foot { margin-top: 12px; font-size: 13px; color: #3a3a55; } .vt-foot a { color: var(--indigo); font-weight: 600; cursor: pointer; }
.vt-buckets { margin-top: 12px; }
.stat-t small { font-size: 12px; }
.vt-h { margin-top: 10px; font-size: 32px !important; line-height: 38px !important; }
.vt-p { margin-top: 12px; font-size: 15px; line-height: 22px; }
.vt-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.vt-tiers div { display: grid; padding: 14px 16px; border-radius: 20px; background: var(--ink-3); } .vt-tiers b { font-size: 26px; font-weight: 600; color: var(--lav); } .vt-tiers span { font-size: 12px; color: var(--grey-2); }
.vt-faq { margin-top: 18px; gap: 6px; }
.vt-faq li { padding: 14px 16px; border-radius: 22px; } .vt-faq .fq-q { font-size: 16px; line-height: 22px; } .vt-faq .fq-ic { width: 36px; height: 36px; border-radius: 12px; } .vt-faq .fq-a p { padding-left: 0; font-size: 14px; line-height: 21px; }
@media (max-width: 1000px) { .vt-top { grid-template-columns: 1fr; } .vt-tabs { width: 100%; } .vt-cov { font-size: 34px !important; } }

/* accordion (shared with the landing FAQ) */
.faq-list { display: grid; gap: 16px; margin-top: 64px; }
.faq-list li { border-radius: 40px; padding: 24px; transition: background-color .4s var(--ease); }
.faq-list li.on { background: rgba(170, 157, 236, .1); }
.faq-list button { width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; min-height: 48px; color: #fff; }
.fq-n { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, .6); flex: none; transition: all .3s; }
.faq-list li.on .fq-n { background: #fff; color: var(--ink); border-radius: 50%; width: 24px; height: 24px; font-size: 14px; margin: 0 4px; }
.fq-q { flex: 1; font-size: 24px; line-height: 33.6px; font-weight: 600; letter-spacing: -0.24px; }
.fq-ic { position: relative; width: 48px; height: 48px; border-radius: 16px; background: rgba(255, 255, 255, .05); flex: none; transition: background-color .3s; }
.fq-ic::before, .fq-ic::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease); }
.fq-ic::after { transform: rotate(90deg); }
.faq-list li.on .fq-ic { background: var(--indigo); } .faq-list li.on .fq-ic::after { transform: rotate(0deg); }
.fq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.fq-a p { overflow: hidden; max-width: 640px; padding-left: 48px; font-size: 16px; line-height: 24px; color: rgba(255, 255, 255, .8); }
.faq-list li.on .fq-a { grid-template-rows: 1fr; }
.faq-list li.on .fq-a p { padding-top: 12px; padding-bottom: 8px; }

/* ---------- funded ---------- */
.fd-80 { display: grid; justify-items: end; text-align: right; }
.fd-80 b { font-family: var(--display); font-weight: 900; font-size: 140px; line-height: .85; letter-spacing: -0.05em; color: var(--lav); }
.fd-80 span { color: var(--grey-2); font-size: 14px; }
.fd-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fd-plan { position: relative; display: grid; gap: 4px; padding: 24px; border-radius: 36px; background: var(--ink-2); text-align: left; transition: transform .35s var(--spring), background-color .3s, box-shadow .3s; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.fd-plan:hover { transform: translateY(-3px); }
.fd-plan span { font-size: 13px; color: var(--grey-2); font-weight: 600; text-transform: uppercase; }
.fd-plan b { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: 1; letter-spacing: -0.04em; }
.fd-plan em { font-style: normal; font-size: 15px; color: rgba(255,255,255,.75); }
.fd-plan.on { background: #bebeff; color: var(--ink); } .fd-plan.on span, .fd-plan.on em { color: #3a3a55; }
.fd-plan.off { opacity: .45; }
.fd-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 12px; }
.fd-steps ol { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.fd-steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; border-radius: 22px; background: rgba(255,255,255,.04); display: grid; gap: 2px; }
.fd-steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 10px; background: var(--indigo); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.fd-steps li b { font-size: 16px; } .fd-steps li span { font-size: 14px; color: rgba(255,255,255,.62); line-height: 20px; }
.fd-pool { margin-top: 18px; } .fd-pool .muted { font-size: 14px; margin: 6px 0 8px; }
.fd-accts { margin-top: 40px; }
.fd-acc-h { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 14px; } .fd-acc-h h2 { font-size: 32px; font-weight: 600; letter-spacing: -0.6px; margin-top: 4px; }
.acc { display: grid; gap: 12px; }
.acc-h { display: flex; justify-content: space-between; align-items: center; } .acc-h b { font-size: 18px; }
.acc .big { font-size: 40px; }
.acc .mdl-actions { margin-top: 4px; }
@media (max-width: 1000px) { .fd-plans { grid-template-columns: 1fr 1fr; } .fd-main { grid-template-columns: 1fr; } .fd-80 { justify-items: start; text-align: left; } .fd-80 b { font-size: 96px; } }

/* ---------- portfolio ---------- */
.pf-mid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); margin-top: 12px; }
.pf-eq-h { display: flex; justify-content: space-between; align-items: baseline; }
.pf-eq-c { height: 240px; margin-top: 12px; } .pf-svg { width: 100%; height: 100%; }
.pf-by, .pf-hist { margin-top: 12px; } .pf-by h3 { margin-bottom: 8px; }
.pf-hist-h { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; } .pf-hist-h .seg { width: 240px; }
.pf-filter { height: 48px; padding: 0 14px; border-radius: 16px; border: 0; background: var(--ink-3); color: #fff; font-size: 14px; }
.pf-hist .btn { margin: 14px auto 0; display: flex; }
.tbl .tr-m { display: flex; align-items: center; gap: 8px; font-weight: 600; } .tbl .tr-m img { width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.card .tbl { margin-top: 4px; } .tbl td.up { color: #3ee39c; } .tbl td.down { color: #ff7a87; }
@media (max-width: 1000px) { .pf-mid { grid-template-columns: 1fr; } .card:has(.tbl) { overflow-x: auto; } .tbl { min-width: 640px; } }

/* ---------- rewards ---------- */
.rw-top { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.rw-cur { padding: 32px; } .rw-cur-row { display: flex; align-items: center; gap: 20px; margin-top: 16px; }
.rw-name { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 64px !important; line-height: 1 !important; letter-spacing: -0.04em !important; }
.rw-cur p { color: #3a3a55; } .rw-life { margin-top: 18px; font-weight: 600; font-size: 13px; text-transform: uppercase; color: var(--indigo) !important; }
.rw-medal { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 22px; color: #121214; background: linear-gradient(145deg, #fff, var(--c, #bebeff)); box-shadow: inset 0 -3px 6px rgba(0,0,0,.15), 0 8px 20px rgba(0,0,0,.25); flex: none; }
.big-medal { width: 104px; height: 104px; border-radius: 32px; font-size: 40px; }
.rw-next { display: grid; gap: 12px; align-content: start; } .rw-next h2 { font-size: 32px !important; line-height: 38px !important; }
.rw-tiles { margin-top: 12px; }
.rw-h { margin: 36px 0 14px; font-size: 32px; font-weight: 600; letter-spacing: -0.6px; }
.rw-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rw-t { display: grid; gap: 8px; align-content: start; } .rw-t .big { font-size: 40px; } .rw-t.lock { opacity: .55; } .rw-t.cur { box-shadow: inset 0 0 0 2px var(--lav); }
.rw-t .pill { justify-self: start; }
.rw-note { margin-top: 12px; } .rw-note p { margin-top: 8px; font-size: 15px; line-height: 22px; }
/* ---------- refer ---------- */
.rf-top { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.rf-link { display: flex; gap: 8px; margin-top: 18px; } .rf-link input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: 18px; border: 0; background: var(--ink-3); color: #fff; font-size: 14px; font-family: var(--mono); }
.rf-code .amt { height: 60px; } .rf-code .amt input { font-size: 16px; font-weight: 500; }
.rf-stats { margin-top: 14px; }
.rf-calc { padding: 32px; display: grid; gap: 10px; align-content: start; }
.rf-big { font-family: var(--display); font-weight: 900; font-size: 96px; line-height: .95; letter-spacing: -0.04em; color: var(--indigo); }
.rf-calc input[type=range] { width: 100%; accent-color: #381ac9; margin: 8px 0; }
.rf-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .rf-tiers div { display: grid; padding: 14px; border-radius: 20px; background: rgba(255,255,255,.55); } .rf-tiers b { font-size: 24px; } .rf-tiers span { font-size: 12px; color: #3a3a55; }
.rf-fine { font-size: 13px; line-height: 19px; color: #3a3a55; margin-top: 6px; }
@media (max-width: 1000px) { .rw-top, .rf-top { grid-template-columns: 1fr; } .rw-grid { grid-template-columns: 1fr 1fr; } .rw-name { font-size: 44px !important; } .rf-big { font-size: 64px; } }

/* ---------- points ---------- */
.pt-top { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.pt-me { padding: 32px; } .pt-me p { color: #3a3a55; }
.pt-big { font-family: var(--display); font-weight: 900; font-size: 120px; line-height: .9; letter-spacing: -0.04em; color: var(--indigo) !important; margin: 10px 0 6px; }
.pt-break { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 16px; }
.pt-break div { display: grid; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.55); } .pt-break span { font-size: 11px; color: #3a3a55; } .pt-break b { font-size: 18px; color: var(--ink); }
.pt-quest { display: grid; gap: 10px; align-content: start; } .pt-q-h { display: flex; justify-content: space-between; font-size: 13px; } .pt-quest h2 { font-size: 26px !important; line-height: 32px !important; }
.pt-dots { display: flex; gap: 8px; } .pt-dots i { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.08); } .pt-dots i.on { background: linear-gradient(#6d55e2, #28119c); box-shadow: 0 6px 16px rgba(56,26,201,.4); }
.pt-mid { margin-top: 12px; }
.pt-calc { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.7); flex-wrap: wrap; } .pt-calc .amt { height: 48px; width: 150px; margin: 0; } .pt-calc .amt input { font-size: 18px; } .pt-calc b { color: #fff; }
.pt-t-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; } .pt-t-h .seg { width: 230px; }
.pt-prizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 12px 0; } .pt-prizes div { display: grid; text-align: center; padding: 10px; border-radius: 16px; background: var(--ink-3); } .pt-prizes span { font-size: 11px; color: var(--grey-2); } .pt-prizes b { font-size: 18px; color: var(--lav); }
.pt-lb, .pt-fine { margin-top: 12px; } .pt-fine p { margin-top: 8px; font-size: 14px; line-height: 21px; }
.tbl tr.me td { background: rgba(150,150,255,.1); }
@media (max-width: 1000px) { .pt-top { grid-template-columns: 1fr; } .pt-big { font-size: 80px; } .pt-break { grid-template-columns: repeat(3, 1fr); } .pt-t-h { flex-direction: column; } }

/* ---------- docs / legal ---------- */
.dc-status { display: grid; gap: 8px; } .dc-status div { display: grid; padding: 14px 18px; border-radius: 22px; background: var(--ink-2); min-width: 260px; } .dc-status span { font-size: 12px; color: var(--grey-2); text-transform: uppercase; font-weight: 600; } .dc-status b { font-size: 16px; }
.dc-status div:last-child b { color: #ffb86b; }
.dc-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.dc-toc { position: sticky; top: 100px; display: grid; gap: 10px; }
.dc-search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 18px; background: var(--ink-2); color: var(--grey-2); } .dc-search input { flex: 1; border: 0; outline: 0; background: none; color: #fff; font-size: 14px; }
.dc-toc nav { display: grid; gap: 2px; max-height: calc(100vh - 200px); overflow: auto; }
.dc-toc nav a { display: flex; gap: 10px; padding: 9px 12px; border-radius: 14px; font-size: 14px; color: rgba(255,255,255,.65); }
.dc-toc nav a i { font-style: normal; font-family: var(--display); font-weight: 900; color: var(--grey); width: 20px; } .dc-toc nav a:hover { background: rgba(255,255,255,.04); color: #fff; } .dc-toc nav a.on { background: rgba(150,150,255,.12); color: #fff; } .dc-toc nav a.on i { color: var(--lav); }
.dc-body { display: grid; gap: 12px; }
.dc-body section { padding: 32px; border-radius: 36px; background: var(--ink-2); scroll-margin-top: 100px; }
.dc-body h2 { display: flex; align-items: baseline; gap: 12px; font-size: 30px; font-weight: 600; letter-spacing: -0.6px; margin-bottom: 14px; } .dc-body h2 i { font-style: normal; font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--lav); }
.dc-body p, .dc-body li { font-size: 16px; line-height: 25px; color: rgba(255,255,255,.78); } .dc-body p + p { margin-top: 12px; }
.dc-body ul { margin: 12px 0 0; padding-left: 20px; list-style: disc; display: grid; gap: 8px; }
.dc-body .tbl { margin-top: 14px; } .dc-body .tbl td { color: rgba(255,255,255,.85); }
.dc-live { margin-top: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(150,150,255,.1); font-size: 14px !important; }
.dc-addr .link { font-size: 13px; word-break: break-all; }
.legal .dc-body h2 { font-size: 24px; }
@media (max-width: 1000px) { .dc-grid { grid-template-columns: 1fr; } .dc-toc { position: relative; top: auto; } .dc-toc nav { display: none; } .dc-body section { padding: 22px; border-radius: 28px; } .dc-body h2 { font-size: 24px; } .dc-status div { min-width: 0; } }
.nf { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 12px; }
.nf-big { font-family: var(--display); font-weight: 900; font-size: 220px; line-height: .85; letter-spacing: -0.05em; background: linear-gradient(#bebeff, #381ac9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf-h { font-size: 36px; font-weight: 600; letter-spacing: -0.8px; } .nf-a { justify-content: center; }

/* ---------- admin ---------- */
.adm-access { max-width: 420px; padding: 14px 18px; border-radius: 20px; background: var(--ink-2); font-size: 14px; line-height: 20px; color: rgba(255,255,255,.75); cursor: pointer; }
.adm-sec { margin-top: 12px; } .adm-sec > h2 { font-size: 26px !important; } .adm-sec > .muted { margin: 6px 0 14px; font-size: 14px; }
.adm-kill { display: grid; gap: 8px; padding: 18px; border-radius: 26px; background: var(--ink-3); } .adm-kill b { font-size: 16px; } .adm-kill span { font-size: 13px; color: #3ee39c; } .adm-kill.off span { color: #ff7a87; } .adm-kill .btn { justify-self: start; }
.adm-inl { display: flex; align-items: center; gap: 6px; } .adm-inl input, .adm-in { width: 100px; height: 38px; padding: 0 10px; border-radius: 12px; border: 0; background: var(--ink-3); color: #fff; font-size: 14px; }
.adm .tbl td { padding: 8px 12px; } .adm-h3 { margin: 20px 0 8px; font-size: 18px; }
.adm-rules { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 12px; } .adm-rules label { display: grid; gap: 4px; font-size: 12px; color: var(--grey-2); }
.adm .card.inner .muted { font-size: 13px; margin: 6px 0 12px; line-height: 19px; }
.dc-body section { min-width: 0; overflow-x: auto; }
@media (max-width: 760px) { .dc-body .tbl { min-width: 0; font-size: 13px; } .dc-body .tbl td, .dc-body .tbl th { padding: 10px 8px; } .dc-addr .link { font-size: 11px; } }
