/* DRUG: Portals layout. Centered app column, promo banners, category row, quick find, gift grid, floating dock. */
:root {
  --bg: #ffffff;
  --bg-2: #f5f9fc;
  --card: #f1f6fa;
  --card-2: #e6eef5;
  --card-3: #dbe6ef;
  --line: #e2eaf1;
  --text: #0b0b0b;
  --text-2: #0b0b0bb8;
  --text-3: #0b0b0b70;
  --muted: #687581;
  --blue: #1da1ee;
  --blue-2: #0b84cc;
  --blue-soft: #e3f3fd;
  --ink: #0b0b0b;
  --on-ink: #fff;
  --surface: #fff;
  --dot: #0b0b0b22;
  --dock-bg: rgba(255,255,255,.82);
  --dock-shadow: inset 0 0 0 1px rgba(11,11,11,.08), 0 8px 24px rgba(0,40,80,.14);
  --overlay: rgba(8,30,50,.4);
  --grab: #c9d4dd;
  --top-bg: rgba(255,255,255,.88);
  --ck: #b9c6d1;
  --green: #16a34a;
  --red: #e5383b;
  --gold: #d99400;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --glass: inset 0 0 0 1px rgba(11,11,11,.06), 0 1px 2px rgba(11,11,11,.04);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; letter-spacing: -.25px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input { font: inherit; color: inherit; }
img { display: block; }
.mono { font-family: var(--mono); letter-spacing: 0; }

.app { max-width: 520px; margin: 0 auto; padding: 0 12px 120px; }

/* ---------- top ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 12px 0 10px; background: var(--bg); }
.logo-pill { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 4px; border-radius: 999px; background: var(--blue); color: #fff; }
.logo-pill img { width: 28px; height: 28px; object-fit: contain; }
.logo-pill b { font-size: 14px; font-weight: 800; }
.top-r { display: flex; gap: 6px; }
.pill-sm { height: 34px; padding: 0 14px; border-radius: 999px; background: var(--card-2); color: var(--text-2); font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; }
.pill-sm.blue { background: var(--blue); color: #fff; }

/* ---------- banner carousel ---------- */
.banners { position: relative; }
.banner-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 22px; }
.banner-track::-webkit-scrollbar { display: none; }
.banner { position: relative; flex: 0 0 100%; scroll-snap-align: start; height: 150px; border-radius: 22px; overflow: hidden; padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; }
.banner h2 { position: relative; margin: 0 0 10px; font-size: 27px; font-weight: 900; letter-spacing: -1px; line-height: 1.02; max-width: 62%; }
.banner .chips-in { position: relative; display: flex; gap: 6px; flex-wrap: wrap; max-width: 64%; }
.banner .ch { height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; display: inline-flex; align-items: center; background: rgba(255,255,255,.2); color: #fff; }
.banner .ch.solid { background: #000; color: #fff; }
.banner .art { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 128px; height: 128px; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(0,40,80,.35)); }
.banner .spark { position: absolute; inset: 0; background-image: radial-gradient(circle at 70% 30%, rgba(255,255,255,.18) 0 1px, transparent 2px), radial-gradient(circle at 85% 70%, rgba(255,255,255,.14) 0 1px, transparent 2px), radial-gradient(circle at 60% 80%, rgba(255,255,255,.12) 0 1px, transparent 2px), radial-gradient(circle at 92% 20%, rgba(255,255,255,.2) 0 1.5px, transparent 2.5px); }
.banner { color: #fff; }
.b-gold { background: radial-gradient(ellipse at 85% 50%, #ffffff40, transparent 55%), linear-gradient(115deg, #0e8fdc, #1da1ee 55%, #49b8f5); }
.b-black { background: radial-gradient(ellipse at 85% 50%, #ffffff33, transparent 55%), #1da1ee; }
.b-blue { background: radial-gradient(ellipse at 85% 50%, #1da1ee66, transparent 55%), linear-gradient(115deg, #000, #0b0b0b 55%, #10324a); }
.dots { display: flex; justify-content: center; gap: 5px; margin-top: 8px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--dot); transition: width .2s, background .2s; }
.dots i.on { width: 16px; border-radius: 4px; background: var(--ink); }

/* ---------- category row ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 14px 0 12px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.cat i { width: 48px; height: 48px; border-radius: 14px; background: var(--card); display: grid; place-items: center; }
.cat svg { width: 22px; height: 22px; fill: currentColor; }
.cat.on { color: var(--ink); }
.cat.on i { background: var(--ink); color: var(--on-ink); }

/* ---------- next prize strip ---------- */
.prize { border-radius: 20px; background: var(--card); padding: 14px; display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; }
.prize-img { width: 76px; height: 76px; border-radius: 16px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #6fc6f7, #1da1ee 75%); }
.prize-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.prize-img.real { cursor: pointer; }
.prize-img.real img { object-fit: cover; padding: 0; }
.prize-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.prize-top span { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.prize-top b { font-size: 17px; font-weight: 800; white-space: nowrap; }
.prize-top b .ton { color: var(--blue-2); }
.prize-sub { color: var(--text-3); font-size: 12px; font-weight: 600; margin-top: 2px; }
.bar { height: 7px; border-radius: 99px; background: var(--card-3); overflow: hidden; margin: 10px 0 6px; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--ink)); transition: width .6s; }
.prize-foot { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 600; }

/* stats chips (Portals collection stats) */
.statrow { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 10px 0 12px; }
.statrow::-webkit-scrollbar { display: none; }
.sc { flex: 0 0 auto; border-radius: 14px; background: var(--card); padding: 9px 12px; min-width: 96px; }
.sc span { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.sc b { display: block; margin-top: 3px; font-size: 15px; font-weight: 800; white-space: nowrap; }
.sc b span { display: inline; }
.sc b .ton { color: var(--muted); font-size: 11.5px; font-weight: 700; margin-left: 2px; }
.up { color: var(--green); } .down { color: var(--red); }

/* ---------- quick find + filters ---------- */
.find { display: flex; gap: 6px; align-items: center; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; height: 40px; border-radius: 999px; background: var(--card); padding: 0 14px; box-shadow: var(--glass); }
.search svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 14.5px; font-weight: 600; }
.search input::placeholder { color: var(--muted); }
.rbtn { width: 40px; height: 40px; border-radius: 50%; background: var(--card-2); display: grid; place-items: center; flex: none; box-shadow: var(--glass); }
.rbtn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rbtn.on { background: var(--ink); } .rbtn.on svg { stroke: var(--on-ink); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 8px 0 12px; align-items: center; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--card); color: var(--ink); font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--glass); }
.chip.on { background: var(--ink); color: var(--on-ink); }
.chip .n { color: var(--muted); font-weight: 700; }
.vsep { width: 1px; height: 20px; background: var(--line); flex: none; margin: 0 2px; }

/* ---------- gift grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gift { position: relative; border-radius: 16px; background: var(--card); overflow: hidden; display: flex; flex-direction: column; text-align: left; padding: 6px; }
.gift-img { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--card-2); }
.gift-img img { width: 100%; height: 100%; object-fit: cover; }
.gift-img .mystery { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #6fc6f7, #1da1ee 75%); }
.gift-img .mystery img { width: 70%; height: 70%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,40,80,.3)); opacity: .9; }
.gift-img .mystery b { position: absolute; font-size: 30px; font-weight: 900; color: #fff; }
.tagx { position: absolute; top: 6px; left: 6px; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; display: inline-flex; align-items: center; color: #fff; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tagx.sent { background: #fff; color: #000; }
.tagx.open { background: #000; color: #fff; }
.tagx.claiming { background: var(--blue); }
.gift-t { margin: 7px 3px 0; font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gift-s { margin: 1px 3px 0; font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gift-row { display: flex; gap: 5px; margin-top: 7px; }
.buy { flex: 1; height: 30px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 4px; }
.buy .gem { width: 11px; height: 11px; fill: #fff; }
.buy.gray { background: var(--card-3); color: var(--text-2); }
.sq { width: 30px; height: 30px; border-radius: 10px; background: var(--card-3); display: grid; place-items: center; flex: none; }
.sq svg { width: 15px; height: 15px; fill: none; stroke: var(--text-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.src { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; font-size: 10px; font-weight: 900; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.more { margin: 12px auto 0; display: flex; }
.empty { border-radius: 18px; background: var(--card); padding: 26px 18px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; font-weight: 600; }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 3px; }
.skel { background: linear-gradient(90deg, var(--card) 0, var(--card-2) 50%, var(--card) 100%); background-size: 200% 100%; animation: sk 1.2s infinite linear; border-radius: 16px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- headings ---------- */
.h { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 2px 10px; }
.h h2 { margin: 0; font-size: 19px; font-weight: 900; letter-spacing: -.6px; }
.h a, .h span { color: var(--muted); font-size: 13px; font-weight: 700; }
.ph { margin: 6px 2px 4px; font-size: 26px; font-weight: 900; letter-spacing: -1px; }
.ps { margin: 0 2px 14px; color: var(--muted); font-size: 14px; line-height: 1.45; font-weight: 500; }

/* ---------- list ---------- */
.list { border-radius: 18px; background: var(--card); overflow: hidden; }
.row { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .rk { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.row .who { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row .who a { font-family: var(--mono); font-size: 13px; }
.row .amt { text-align: right; font-weight: 800; font-size: 14px; }
.row .amt span { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; margin-top: 2px; }
.badges { display: flex; gap: 4px; flex-wrap: wrap; }
.b { display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; }
.b.in { background: var(--blue-soft); color: var(--blue-2); }
.b.won { background: var(--ink); color: var(--on-ink); cursor: pointer; }
.b.out { background: var(--card-3); color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 13px; font-weight: 700; }

/* ---------- buttons ---------- */
.btn { height: 48px; padding: 0 20px; border-radius: 14px; background: var(--blue); color: #fff; font-size: 15.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.gray { background: var(--card-2); color: var(--ink); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- claim ---------- */
.panel { border-radius: 20px; background: var(--card); padding: 16px; }
.field { display: flex; gap: 6px; }
.field input { flex: 1; min-width: 0; height: 48px; border-radius: 14px; background: var(--card-2); border: 1px solid transparent; padding: 0 14px; outline: none; font-family: var(--mono); font-size: 13px; }
.field input:focus { border-color: var(--blue); }
.result { margin-top: 12px; }
.res { border-radius: 16px; background: var(--card-2); padding: 14px; }
.res + .res { margin-top: 8px; }
.res h4 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.res p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.res.win { background: radial-gradient(ellipse at 90% 0%, #ffffff40, transparent 50%), var(--blue); color: #fff; }
.res.win p { color: #ffffffd0; }
.res.win .btn { background: #000; }
.res .btn { margin-top: 12px; }
.pay { margin-top: 12px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.pay-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 13px; border-top: 1px solid var(--line); font-size: 13.5px; }
.pay-row:first-child { border-top: 0; }
.pay-row > span { color: var(--text-2); font-weight: 600; }
.pay-row b { font-weight: 700; }
.pay-row b small { color: var(--muted); font-weight: 600; font-family: var(--font); }
.pay-val { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); }
.pay-val.lg { font-size: 19px; font-family: var(--mono); letter-spacing: -.4px; }
.pay-val i { font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--blue-2); background: var(--blue-soft); padding: 3px 7px; border-radius: 6px; font-family: var(--font); }
.pay-wait { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--text-2); font-size: 13.5px; font-weight: 700; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--blue); animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.pay-hint { margin: 10px 0 0 !important; color: var(--muted) !important; font-size: 12.5px !important; }
.pay-ok { margin: 10px 0; color: var(--green); font-weight: 800; font-size: 14.5px; }
.steps3 { margin-top: 10px; display: grid; gap: 6px; }
.steps3 div { display: flex; gap: 10px; align-items: center; border-radius: 14px; background: var(--card); padding: 12px; font-size: 13.5px; color: var(--text-2); font-weight: 600; line-height: 1.4; }
.steps3 i { flex: none; width: 26px; height: 26px; border-radius: 9px; background: var(--card-3); color: var(--blue-2); font-style: normal; font-weight: 900; font-size: 13px; display: grid; place-items: center; }

/* ---------- dock (Portals bottom bar) ---------- */
.dock { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); width: min(496px, calc(100% - 20px));
  display: flex; align-items: center; gap: 8px; }
.dock-round, .dock-mid { background: var(--dock-bg); box-shadow: var(--dock-shadow); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.dock-round { flex: none; width: 60px; height: 60px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text-2); font-size: 10.5px; font-weight: 700; }
.dock-mid { flex: 1; height: 60px; border-radius: 999px; display: flex; padding: 4px; }
.dock-mid a { flex: 1; border-radius: 999px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text-2); font-size: 11px; font-weight: 700; }
.dock svg { width: 22px; height: 22px; fill: currentColor; }
.dock svg.st { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dock-mid a.on { background: var(--ink); color: var(--on-ink); }
.dock-round.on { color: var(--blue-2); }

/* ---------- sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-wrap[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: var(--overlay); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s; }
.sheet { position: relative; width: min(520px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border-radius: 26px 26px 0 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); animation: up .25s cubic-bezier(.2,.8,.2,1); }
.grab { width: 36px; height: 4px; border-radius: 4px; background: var(--grab); margin: 0 auto 10px; }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--card-2); color: var(--text-2); font-size: 12px; }
.sheet .big { width: 100%; aspect-ratio: 1; max-width: 300px; margin: 6px auto 12px; border-radius: 22px; overflow: hidden; background: var(--card-2); position: relative; }
.sheet .big img { width: 100%; height: 100%; object-fit: cover; }
.sheet h3 { text-align: center; margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -.6px; }
.sheet .sub { text-align: center; color: var(--muted); font-size: 13.5px; font-weight: 600; margin: 3px 0 14px; }
.kv { border-radius: 16px; background: var(--card); overflow: hidden; }
.kv div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 13px; border-top: 1px solid var(--line); font-size: 13.5px; }
.kv div:first-child { border-top: 0; }
.kv span { color: var(--muted); white-space: nowrap; font-weight: 600; }
.kv b { font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.kv a { color: var(--blue-2); }
.howto { margin: 10px 2px 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.howto code { font-family: var(--mono); color: var(--text-2); font-size: 11.5px; }
.sheet .btn { margin-top: 12px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.toast { position: fixed; z-index: 60; left: 50%; bottom: 96px; transform: translateX(-50%); background: #000; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 800; box-shadow: 0 6px 24px #0003; }
.foot { margin: 26px 2px 0; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.foot .links { display: flex; gap: 14px; }

/* ---------- why: long read ---------- */
.read .kicker { color: var(--blue-2); font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; margin: 8px 2px 8px; }
.read h1 { margin: 0 2px 12px; font-size: 30px; line-height: 1.05; letter-spacing: -1.2px; font-weight: 900; }
.read h2.sub { margin: 0 2px 12px; font-size: 21px; line-height: 1.15; letter-spacing: -.6px; font-weight: 800; color: var(--blue-2); }
.read .lead { font-size: 16px; color: var(--text-2); line-height: 1.55; margin: 0 2px 16px; font-weight: 500; }
.chapter { border-radius: 22px; background: var(--card); padding: 18px; margin-top: 8px; }
.chapter .num { color: var(--muted); font-size: 12px; font-weight: 800; }
.chapter h2 { margin: 4px 0 10px; font-size: 21px; letter-spacing: -.6px; line-height: 1.2; font-weight: 900; }
.chapter p { margin: 0 0 10px; color: var(--text-2); font-size: 15px; line-height: 1.6; font-weight: 500; }
.chapter p:last-child { margin-bottom: 0; }
.chapter ul { margin: 0 0 10px; padding-left: 18px; color: var(--text-2); font-size: 15px; line-height: 1.6; font-weight: 500; }
.chapter li { margin-bottom: 6px; }
.chapter b { color: var(--ink); }
.chain { display: grid; gap: 6px; margin: 6px 0 12px; }
.chain div { border-radius: 14px; background: var(--card-2); padding: 12px; }
.chain div b { display: block; font-size: 15px; margin-bottom: 3px; }
.chain div span { color: var(--muted); font-size: 13.5px; line-height: 1.45; font-weight: 600; }
.quote { border-left: 3px solid var(--blue); padding: 3px 0 3px 12px; margin: 4px 0 12px; font-size: 16.5px; color: var(--ink) !important; line-height: 1.5; font-weight: 800 !important; letter-spacing: -.3px; }
.mim { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0 12px; }
.mim div { border-radius: 16px; background: var(--card-2); padding: 12px; text-align: center; }
.mim img { width: 100%; max-width: 120px; aspect-ratio: 1; object-fit: contain; margin: 0 auto 6px; }
.mim b { display: block; font-size: 22px; font-weight: 900; letter-spacing: -.6px; }
.mim span { color: var(--muted); font-size: 12px; font-weight: 700; }
.pillcmp { border-radius: 18px; margin: 6px 0 12px; padding: 14px; background: radial-gradient(ellipse at 15% 50%, #1da1ee33, transparent 55%), var(--card-2); display: grid; grid-template-columns: 96px 20px 1fr; align-items: center; gap: 10px; min-height: 120px; }
.pc-side { text-align: center; }
.pc-side img { width: 84px; height: 84px; margin: 0 auto 4px; filter: drop-shadow(0 6px 14px #0003); }
.pc-side b { display: block; font-size: 14px; font-weight: 800; }
.pc-side span { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.pc-eq { font-size: 26px; font-weight: 900; color: var(--muted); text-align: center; }
.pc-gifts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pc-g { border-radius: 12px; overflow: hidden; background: var(--card-3); text-align: center; }
.pc-g .ga { border-radius: 0; }
.pc-g span { display: block; padding: 4px 4px 6px; font-size: 10.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- why: Telegram channel feed ---------- */
.tg-channel { margin-top: 8px; border-radius: 22px; overflow: hidden; background: #0e1621; }
.tg-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #17212b; }
.tg-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; background: #1da1ee; padding: 3px; }
.tg-head b { display: block; font-size: 15.5px; font-weight: 800; }
.tg-head span { display: block; color: #6c7883; font-size: 12.5px; font-weight: 600; }
.tg-feed { padding: 12px 10px 14px; display: flex; flex-direction: column; gap: 10px;
  background: #0e1621 radial-gradient(circle at 20% 10%, #16304a55, transparent 40%), #0e1621; }
.tg-post { background: #182533; border-radius: 14px 14px 14px 4px; overflow: hidden; max-width: 100%; }
.tg-media { padding: 10px; background: #0f1a24; }
.tg-text { padding: 10px 12px 0; font-size: 14.5px; line-height: 1.5; color: #e9edf1; font-weight: 500; }
.tg-text b { color: #fff; font-weight: 800; }
.tg-meta { padding: 4px 12px 8px; text-align: right; color: #6c7883; font-size: 11.5px; font-weight: 600; }
.tg-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; }
.tg-av.big { width: 64px; height: 64px; font-size: 26px; border: 3px solid rgba(255,255,255,.25); }
.st-hat { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; display: inline-block; vertical-align: -3px; margin-left: 5px; }
/* chat list */
.m-list { border-radius: 12px; background: #17212b; overflow: hidden; }
.m-row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; }
.m-row + .m-row { border-top: 1px solid #0e1621; }
.m-mid { flex: 1; min-width: 0; }
.m-name { font-size: 14px; font-weight: 800; display: flex; align-items: center; }
.m-msg { color: #8696a4; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-time { color: #6c7883; font-size: 11.5px; align-self: flex-start; margin-top: 3px; }
.m-row.hl { background: #2b5278; } .m-row.hl .m-msg, .m-row.hl .m-time { color: #c8dcef; }
/* profile */
.m-prof { border-radius: 12px; overflow: hidden; background: #17212b; }
.m-pname { margin-top: 8px; font-size: 18px; font-weight: 900; display: flex; align-items: center; }
.m-pname .st-hat { width: 22px; height: 22px; }
.m-pstat { font-size: 12.5px; color: #ffffffc0; font-weight: 600; }
.m-tabs { display: flex; gap: 18px; padding: 10px 14px 0; font-size: 13.5px; font-weight: 700; color: #6c7883; }
.m-tabs b { color: #64b5ef; border-bottom: 2px solid #64b5ef; padding-bottom: 7px; }
.m-gifts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px 10px 10px; }
.m-gifts div { position: relative; border-radius: 10px; overflow: hidden; }
.m-gifts .g { width: 100%; aspect-ratio: 1; object-fit: cover; }
.m-gifts i { position: absolute; left: 5px; bottom: 4px; font-style: normal; font-size: 10.5px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px #000a; }
/* gift card */
.m-sheet-img { width: 130px; height: 130px; border-radius: 18px; object-fit: cover; margin: 0 auto 8px; }
.m-sheet-t { font-size: 17px; font-weight: 900; }
.m-sheet-s { font-size: 12.5px; color: #6c7883; font-weight: 600; margin-bottom: 10px; }
.m-kv { border-radius: 10px; background: #0f1a24; text-align: left; }
.m-kv div { display: flex; justify-content: space-between; padding: 8px 10px; font-size: 13px; }
.m-kv div + div { border-top: 1px solid #17212b; }
.m-kv span { color: #6c7883; font-weight: 600; }
.m-kv b { font-weight: 700; }
.lnk { color: #64b5ef !important; }
/* group chat */
.m-chat { border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; background: #0e1621 linear-gradient(160deg, #1b2d3d55, transparent); }
.m-msg-in { align-self: flex-start; max-width: 85%; background: #182533; border-radius: 12px 12px 12px 4px; padding: 6px 10px 7px; font-size: 13.5px; font-weight: 500; }
.m-msg-in.me { align-self: flex-end; background: #2b5278; border-radius: 12px 12px 4px 12px; }
.m-from { font-size: 12.5px; font-weight: 800; display: flex; align-items: center; margin-bottom: 1px; }
/* two cards */
.m-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-card { border-radius: 12px; background: #17212b; padding: 10px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.m-card-h { align-self: stretch; text-align: left; font-size: 11.5px; font-weight: 800; color: #6c7883; text-transform: uppercase; letter-spacing: .3px; }
.m-card.bad .m-card-h { color: #e17076; } .m-card.good .m-card-h { color: #7bc862; }
.m-line { font-size: 12.5px; color: #c8d3dd; font-weight: 600; line-height: 1.35; }
.m-btn { align-self: stretch; height: 30px; border-radius: 9px; background: #2b5278; color: #fff; font-size: 12.5px; font-weight: 800; display: grid; place-items: center; }
.m-btn.blue { background: var(--blue); }
.m-pfp { position: relative; width: 100%; height: 96px; }
.m-pfp-img { position: absolute; left: 8px; top: 6px; width: 74px; height: 74px; border-radius: 50%; object-fit: cover; }
.m-ctx { position: absolute; right: 0; top: 30px; background: #2b2b2e; border-radius: 8px; padding: 4px 0; box-shadow: 0 6px 16px #000a; font-size: 10.5px; font-weight: 600; text-align: left; color: #ddd; }
.m-ctx div { padding: 3px 9px; white-space: nowrap; }
.m-ctx .hl { background: #2b5278; color: #fff; }
.m-own { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.m-own b { font-size: 12.5px; }
.m-own span { display: block; font-size: 11.5px; color: #8696a4; font-weight: 600; }
.m-own .ok { color: #7bc862; }

@media (max-width: 400px) {
  .grid { gap: 6px; }
  .gift-t { font-size: 12.5px; }
  .buy { font-size: 12px; }
  .banner h2 { font-size: 24px; }
  .banner .art { width: 110px; height: 110px; }
}
/* ---------- desktop: a full site, the app layout stays for phones ---------- */
.topnav, .logo-name, .h.desk { display: none; }
@media (min-width: 900px) {
  .app { max-width: 1320px; padding: 0 32px 56px; }
  .top { padding: 14px 0; margin-bottom: 14px; gap: 24px; border-bottom: 1px solid var(--line); background: var(--top-bg);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .logo-pill { height: 40px; padding-right: 16px; }
  .logo-pill img { width: 32px; height: 32px; }
  .logo-name { display: inline; color: #ffffffd0; font-weight: 700; font-size: 14px; margin-left: 2px; }
  .topnav { display: flex; gap: 4px; flex: 1; }
  .topnav a { height: 38px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; color: var(--text-2); font-size: 14.5px; font-weight: 700; }
  .topnav a:hover { color: var(--ink); background: var(--card); }
  .topnav a.on { background: var(--ink); color: var(--on-ink); }
  .pill-sm { height: 38px; font-size: 14px; }
  .dock, .cats { display: none; }

  .banner { height: 260px; padding: 36px 56px; border-radius: 26px; }
  .banner-track { border-radius: 26px; }
  .banner h2 { font-size: 46px; letter-spacing: -1.8px; max-width: 60%; margin-bottom: 16px; }
  .banner .ch { height: 32px; padding: 0 14px; font-size: 14px; }
  .banner .art { width: 230px; height: 230px; right: 70px; }
  .dots { margin-top: 10px; }

  .overview { display: grid; grid-template-columns: minmax(380px, 460px) 1fr; gap: 12px; margin-top: 12px; }
  .prize { padding: 18px; grid-template-columns: 96px 1fr; }
  .prize-img { width: 96px; height: 96px; }
  .prize-top b { font-size: 20px; }
  .statrow { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 12px; margin: 0; overflow: visible; }
  .sc { min-width: 0; padding: 14px 16px; border-radius: 18px; display: flex; flex-direction: column; justify-content: space-between; }
  .sc b { font-size: 19px; }

  .h.desk { display: flex; margin-top: 28px; }
  .h.desk h2 { font-size: 24px; }
  .toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
  .toolbar .find { width: 420px; flex: none; }
  .toolbar .chips { margin: 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
  .gift { padding: 8px; transition: transform .15s, background .15s; }
  .gift:hover { transform: translateY(-3px); background: var(--card-2); }
  .gift-t { font-size: 15px; }
  .gift-s { font-size: 12.5px; }
  .buy, .sq { height: 34px; }
  .sq { width: 34px; }
  .more { margin-top: 18px; }

  .ph { font-size: 34px; margin-top: 10px; }
  .ps { font-size: 15px; }
  .col { max-width: 680px; margin: 0 auto; }
  .col.wide { max-width: 920px; }
  #view > .ps { max-width: 760px; }
  .read { max-width: 760px; margin: 0 auto; }
  .read h1 { font-size: 44px; letter-spacing: -1.6px; }
  .read .lead { font-size: 18px; }
  .chapter { padding: 26px; }
  .chapter h2 { font-size: 25px; }
  .chapter p, .chapter ul { font-size: 16px; }
  .mim { grid-template-columns: repeat(4, 1fr); }
  .tg-feed { padding: 18px 60px 22px; }
  .foot { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 40px; }

  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 26px; width: 480px; }
  .grab { display: none; }
  .toast { bottom: 32px; }
}

/* ---------- pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 18px 0 4px; flex-wrap: wrap; }
.pg { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 12px; background: var(--card); color: var(--text-2); font-size: 14px; font-weight: 800; }
.pg:hover { color: var(--ink); background: var(--card-2); }
.pg.on { background: var(--ink); color: var(--on-ink); }
.pg.arrow { font-size: 20px; line-height: 1; }
.pg[disabled] { opacity: .35; pointer-events: none; }
.pg-gap { color: var(--muted); font-weight: 800; padding: 0 2px; }
.pg-info { color: var(--muted); font-size: 13px; font-weight: 700; margin-left: 8px; }
.pager { display: block; }

/* ---------- Telegram-style sheet motion ---------- */
.sheet { animation: sheetIn .42s cubic-bezier(.2,.9,.25,1.08); }
.sheet-bg { animation: fade .25s ease-out; }
@keyframes sheetIn { from { transform: translateY(100%); } }
@media (min-width: 900px) { @keyframes sheetIn { from { transform: translateY(24px) scale(.94); opacity: 0; } } }
.sheet-wrap.closing .sheet { animation: sheetOut .22s cubic-bezier(.4,0,1,1) forwards; }
.sheet-wrap.closing .sheet-bg { animation: fadeOut .22s forwards; }
@keyframes sheetOut { to { transform: translateY(100%); } }
@media (min-width: 900px) { @keyframes sheetOut { to { transform: translateY(16px) scale(.96); opacity: 0; } } }
@keyframes fadeOut { to { opacity: 0; } }
.sheet .kv div, .sheet h3, .sheet .sub, .sheet .btn, .sheet .howto { animation: rise .38s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.fly { position: fixed; z-index: 70; object-fit: cover; pointer-events: none; transform-origin: 0 0; border-radius: 22px; box-shadow: 0 20px 50px #00285040; }
.sheet .big { box-shadow: 0 16px 40px #00285033; }
.big-anim { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.big-anim.on { opacity: 1; }
.big-anim svg { width: 100% !important; height: 100% !important; }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet *, .sheet-bg { animation: none !important; } }

/* ---------- market filter bar ---------- */
.fbar .chip { gap: 5px; }
.fbar .chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fbar .chip .chev { width: 14px; height: 14px; opacity: .6; margin-right: -3px; }
.chip.set { background: var(--blue-soft); color: var(--blue-2); box-shadow: inset 0 0 0 1px #1da1ee88; }
.chip .cnt { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
.factive { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 12px; }
.factive:empty { display: none; }
.tag { height: 28px; padding: 0 10px; border-radius: 999px; background: var(--card-2); color: var(--ink); font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.tag i { font-style: normal; font-size: 10px; color: var(--muted); }
.tag:hover i { color: var(--ink); }
.tag.reset { background: none; color: var(--blue-2); }

/* grid card extras */
.gift-t .gn { color: var(--muted); font-weight: 700; }
.rar { position: absolute; left: 6px; bottom: 6px; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; display: inline-flex; align-items: center; color: #fff;
  background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ---------- filter sheet ---------- */
.fh { text-align: left !important; font-size: 20px !important; margin: 0 0 12px !important; }
.fsearch { box-shadow: none; background: var(--card); margin-bottom: 8px; }
.fsort { display: flex; gap: 4px; margin-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.fsort button { flex: none; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--card); }
.fsort button.on { background: var(--ink); color: var(--on-ink); }
.flist { max-height: min(52vh, 460px); overflow-y: auto; border-radius: 16px; background: var(--card); }
.frow { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 12px; text-align: left; border-top: 1px solid var(--line); }
.frow:first-child { border-top: 0; }
.frow:hover { background: var(--card-2); }
.frow .th { width: 38px; height: 38px; object-fit: contain; flex: none; }
.frow .sw, .attr .sw { width: 34px; height: 34px; border-radius: 50%; flex: none; margin: 2px; box-shadow: inset 0 0 0 1px var(--line); }
.frow .mk, .offer .mk { width: 34px; height: 34px; border-radius: 10px; background: var(--card-3); display: grid; place-items: center; font-weight: 900; font-size: 14px; flex: none; }
.fn { flex: 1; min-width: 0; }
.fn b { display: block; font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 1px; }
.ff { font-size: 13.5px; font-weight: 800; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.ff .gem, .op .gem, .af .gem, .buy.gray .gem { fill: var(--blue-2); width: 11px; height: 11px; }
.ck { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--ck); flex: none; display: grid; place-items: center; }
.frow.radio .ck { border-radius: 50%; }
.frow.on .ck { background: var(--blue); border-color: var(--blue); }
.frow.on .ck::after { content: ""; width: 9px; height: 5px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.frow.radio.on .ck::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.fbtns { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-top: 12px; }
.fbtns .btn { margin: 0 !important; }
.frange { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.frange label { border-radius: 14px; background: var(--card); padding: 8px 12px; }
.frange span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.frange input { width: 100%; background: none; border: 0; outline: none; font-size: 18px; font-weight: 800; padding: 2px 0; }
.fpresets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.fpresets button { height: 32px; padding: 0 12px; border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 700; }
.fpresets button:hover { background: var(--card-2); }

/* ---------- gift sheet ---------- */
.offers { border-radius: 16px; background: var(--card); overflow: hidden; }
.offer { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); }
.offer:first-child { border-top: 0; }
.offer.best { background: linear-gradient(90deg, var(--blue-soft), transparent); }
.offer .on { flex: 1; }
.offer .on b, .offer .op b { display: block; font-size: 14.5px; font-weight: 800; }
.offer .on small, .offer .op small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.offer .op { text-align: right; }
.offer .op b { display: inline-flex; align-items: center; gap: 3px; }
.offer .btn { height: 36px; padding: 0 18px; font-size: 14px; border-radius: 11px; margin: 0 !important; }
.attrs { margin-top: 8px; border-radius: 16px; background: var(--card); overflow: hidden; }
.attr { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); }
.attr:first-child { border-top: 0; }
.attr .th { width: 38px; height: 38px; object-fit: contain; flex: none; }
.attr .an { flex: 1; min-width: 0; }
.attr .an small, .attr .af small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.attr .an b { display: block; font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pctb { height: 22px; padding: 0 8px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-2); font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; }
.attr .af { text-align: right; font-size: 13.5px; font-weight: 800; min-width: 62px; }
.af-btn { min-width: 64px; height: 38px; border-radius: 11px; background: var(--card-3); font-size: 13.5px; font-weight: 800; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.af-btn small { font-size: 10px; color: var(--muted); font-weight: 700; }
.af-btn:hover { background: var(--card-2); }
.glinks { display: flex; gap: 8px; margin-top: 8px; }
.glinks a { flex: 1; height: 40px; border-radius: 12px; background: var(--card); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.glinks a:hover { color: var(--ink); background: var(--card-2); }
.glinks svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lnkbtn { color: var(--blue-2); font-size: 13px; font-weight: 700; }
.grid.mini { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.grid.mini .gift { padding: 5px; }
.grid.mini .gift-t { font-size: 12.5px; margin-top: 5px; }
.grid.mini .buy { height: 26px; font-size: 12px; margin-top: 5px; }
.sheet .big { max-width: 260px; }
.sheet-wrap.filter .sheet { padding-top: 16px; }
.sheet-wrap.filter .grab { display: none; }
@media (min-width: 900px) {
  .toolbar { flex-wrap: wrap; }
  .sheet { width: 520px; }
}

/* ---------- how it works ---------- */
.pipe { position: relative; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.pipe::before { content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(var(--blue), var(--ink)); opacity: .35; }
.pstep { position: relative; display: flex; gap: 14px; }
.pnum { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 17px; color: var(--ink); z-index: 1; }
.pbody { flex: 1; min-width: 0; border-radius: 18px; background: var(--card); padding: 14px 16px; }
.ptop { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ptop h3 { margin: 0; font-size: 16.5px; font-weight: 800; letter-spacing: -.3px; }
.auto { flex: none; height: 22px; padding: 0 9px; border-radius: 999px; background: #16a34a1a; color: var(--green); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; }
.pbody p { margin: 6px 0 0; color: var(--text-2); font-size: 14.5px; line-height: 1.55; font-weight: 500; }
.plive { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.plive > * { height: 28px; padding: 0 10px; border-radius: 9px; background: var(--card-2); font-size: 12.5px; font-weight: 700; color: var(--text-2); display: inline-flex; align-items: center; gap: 5px; }
.plive a { color: var(--blue-2); }
.plive svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.how .row .who b { font-size: 14px; }
.how .row .amt { display: flex; flex-direction: column; align-items: flex-end; }
.how .row .amt .gem { width: 11px; height: 11px; fill: var(--blue-2); }
.auto.you { background: var(--blue-soft); color: var(--blue-2); }

/* ---------- buy with SOL ---------- */
.buy .sol { font-size: 10.5px; font-weight: 700; opacity: .75; margin-left: 4px; }
.buy.gray { background: var(--card-3); color: var(--text-2); }
.kv .tot { background: var(--blue-soft); }
.kv .tot span { color: var(--ink); font-weight: 800; }
.kv .tot b { font-size: 16px; font-weight: 900; }
#co { margin-top: 10px; }
.recip { display: block; padding: 14px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--blue); margin-bottom: 10px; }
.recip b { display: block; font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.recip > span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.recip-in { display: flex; align-items: center; gap: 6px; height: 50px; padding: 0 14px; border-radius: 12px; background: var(--card); }
.recip-in i { font-style: normal; color: var(--blue-2); font-size: 18px; font-weight: 800; }
.recip-in input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 17px; font-weight: 700; color: inherit; }
.recip:focus-within { box-shadow: 0 0 0 3px rgba(29,161,238,.25); }
.forto { display: inline-flex; align-items: center; gap: 10px; }
.chg { height: 30px; padding: 0 14px; border-radius: 15px; border: 0; background: var(--blue); color: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.chg:hover { background: var(--blue-2); }
.tgfield { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: 14px; background: var(--card); margin-bottom: 8px; }
.tgfield span { color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.tgfield input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 16px; font-weight: 700; }
#co .btn, .res .btn, #pay .btn { margin-top: 8px; }
.osteps { border-radius: 16px; background: var(--card); padding: 6px 0; }
.osteps div { display: flex; align-items: center; gap: 12px; padding: 9px 14px; font-size: 14.5px; font-weight: 700; color: var(--muted); }
.osteps div i { width: 24px; height: 24px; border-radius: 50%; background: var(--card-3); display: grid; place-items: center; font-style: normal; font-size: 12px; }
.osteps div.ok { color: var(--ink); }
.osteps div.ok i { background: var(--ink); color: var(--on-ink); }
.osteps div.now { color: var(--ink); }
.osteps div.now i { background: none; }
.how .row .who span { font-size: 12.5px; }
.how .row .amt small { color: var(--muted); font-weight: 600; font-size: 11.5px; }
.how .costs .row.tot { background: var(--blue-soft); }
.how .costs .row.tot b { font-size: 15px; }
.how .svc .row .amt svg, .how #lv-wallets .row .amt svg { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2.2; }
.how .h { margin-top: 22px; }

/* ---------- Telegram-accurate gift art (backdrop gradient + symbol pattern + model) ---------- */
.ga { position: relative; width: 100%; overflow: hidden; border-radius: 12px; }
.ga svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ga-model { position: absolute; left: 50%; top: 50%; width: 58%; transform: translate(-50%, -50%); filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.ga.hero .ga-model { top: 40%; width: 40%; }
.ga.hero { border-radius: 14px 14px 0 0; }
.ga-sub { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; }
.st-model { width: 20px; height: 20px; object-fit: contain; margin-left: 5px; vertical-align: -4px; filter: drop-shadow(0 0 4px rgba(255,220,120,.55)); }
.m-pname .st-model { width: 24px; height: 24px; }
/* profile with a worn gift: cover in the backdrop colours, pinned gifts around the photo */
.m-cover { position: relative; height: auto; padding: 0; display: block; }
.m-cover .ga.cover { border-radius: 12px 12px 0 0; }
.m-cover-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 6px; }
.m-pinned { position: absolute; inset: 0; pointer-events: none; }
.m-pinned .pin { position: absolute; width: 15%; filter: drop-shadow(0 4px 8px rgba(0,0,0,.3)); }
.m-pinned .p0 { left: 12%; top: 14%; } .m-pinned .p1 { right: 12%; top: 14%; }
.m-pinned .p2 { left: 16%; bottom: 14%; width: 12%; } .m-pinned .p3 { right: 16%; bottom: 14%; width: 12%; }
.m-tile { position: relative; }
.m-tile .ga { border-radius: 10px; }
.pinmark { position: absolute; left: 5px; top: 4px; font-size: 11px; }
.m-gifts > div { overflow: visible; }
.m-sheet { border-radius: 12px; background: #17212b; padding: 0; overflow: hidden; text-align: center; }
.m-sheet .m-kv { margin: 10px; }
.m-sheet .m-kv b { display: inline-flex; align-items: center; gap: 6px; }
.m-sheet .pctb { font-style: normal; height: 19px; padding: 0 7px; font-size: 10.5px; }
.m-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 10px 10px; }
.m-acts span { height: 32px; border-radius: 9px; background: #2b5278; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; }
.m-acts span.on { background: var(--blue); }
.m-mini { width: 90px; border-radius: 14px; }
.m-mini .ga { border-radius: 14px; }
.m-own { margin-top: 2px; }
.markets { display: grid; gap: 8px; }
.mkt { display: flex; gap: 12px; border-radius: 18px; background: var(--card); padding: 14px; }
.mkt .mk { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--card-3); display: grid; place-items: center; font-weight: 900; }
.mkt b { font-size: 16px; font-weight: 800; }
.mkt small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 1px; }
.mkt small a { color: var(--blue-2); }
.mkt p { margin: 8px 0 8px; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.mkt p b { font-size: inherit; color: var(--ink); }
.role { display: inline-flex; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--card-3); color: var(--text-2); font-size: 11.5px; font-weight: 800; font-style: normal; align-items: center; margin-right: 4px; }
.role.buy { background: #16a34a1a; color: var(--green); }
@media (min-width: 900px) { .markets { grid-template-columns: repeat(2, 1fr); } }
.lock { position: absolute; right: 6px; bottom: 6px; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; display: inline-flex; align-items: center; color: #fff; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Telegram mockups keep Telegram's dark theme */
.tg-channel, .tg-channel * { --text: #fff; --text-2: #ffffffb3; --muted: #8696a4; }
.tg-channel { color: #fff; }

/* ---------- dark version (theme toggle in the header); light stays the default ---------- */
:root[data-theme="dark"] {
  --bg: #0a0e13;
  --bg-2: #070a0e;
  --card: #121920;
  --card-2: #1a232c;
  --card-3: #232f3a;
  --line: #1f2a35;
  --text: #fff;
  --text-2: #ffffffb8;
  --text-3: #ffffff70;
  --muted: #8494a1;
  --blue: #1da1ee;
  --blue-2: #4cb9f6;
  --blue-soft: #1da1ee24;
  --ink: #fff;
  --on-ink: #000;
  --surface: #121920;
  --dot: #ffffff2e;
  --dock-bg: rgba(18,25,32,.78);
  --dock-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 8px 24px rgba(0,0,0,.4);
  --overlay: rgba(0,0,0,.6);
  --grab: #3a4652;
  --top-bg: rgba(10,14,19,.86);
  --ck: #3a4652;
  --green: #34d36b;
  --glass: inset 0 0 0 1px rgba(255,255,255,.05);
  color-scheme: dark;
}
:root[data-theme="dark"] .b-blue { background: radial-gradient(ellipse at 85% 50%, #1da1ee55, transparent 55%), linear-gradient(115deg, #10324a, #0d5a8a 60%, #1da1ee); }
:root[data-theme="dark"] .pay { background: var(--bg-2); }
.theme-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--card-2); color: var(--text-2); display: grid; place-items: center; flex: none; }
.theme-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .sun, :root[data-theme="dark"] .theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
@media (min-width: 900px) { .theme-btn { width: 38px; height: 38px; } }

/* SOL is the main currency; GRAM is the small line */
.kv b small, .op small { color: var(--muted); font-weight: 600; font-size: 11.5px; }
.soli { display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; margin-right: .25em; flex: none; }
.buy .soli { width: 14px; height: 14px; margin-right: 2px; }
.tg-link { gap: 6px; color: var(--blue-2); }
.tg-link svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 520px) { .tg-link span { display: none; } .tg-link { padding: 0 10px; } }
.lrow { grid-template-columns: 52px 1fr auto; }
.lk { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
a.lrow:hover { background: var(--card-2); }
.demo-bar { position: sticky; top: 0; z-index: 40; background: var(--ink); color: var(--on-ink); text-align: center; font-size: 13px; font-weight: 700; padding: 8px 12px; }
.demo-bar a { color: var(--blue); margin-left: 6px; }
body.demo .top { top: 34px; }

/* ---------- banners: each one its own look ---------- */
.banner .art.gift-art { border-radius: 26px; object-fit: cover; transform: translateY(-50%) rotate(-7deg); box-shadow: 0 0 0 4px #fff, 0 18px 36px rgba(0,40,80,.35); filter: none; }
.b-trio { background: radial-gradient(ellipse at 78% 50%, #1da1ee55, transparent 50%), radial-gradient(ellipse at 95% 20%, #14f19533, transparent 40%), radial-gradient(ellipse at 60% 90%, #9945ff40, transparent 45%), #05070b; }
.b-trio h2 i { font-style: normal; color: #ffffff70; font-weight: 700; }
.trio { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; }
.trio .lg { width: 54px; height: 54px; border-radius: 50%; display: block; box-shadow: 0 0 0 3px #05070b, 0 10px 28px rgba(0,0,0,.5); background: #05070b; }
.trio .lg + .lg { margin-left: -12px; }
.trio .lg svg { width: 100%; height: 100%; display: block; }
.trio .lg0 { box-shadow: 0 0 0 3px #05070b, 0 0 28px #0098ea88; }
.trio .lg1 { box-shadow: 0 0 0 3px #05070b, 0 0 28px #9945ff88; z-index: 1; }
.trio .lg2 { box-shadow: 0 0 0 3px #05070b, 0 0 28px #5fd38d88; }
.trio .pf { width: 100%; height: 100%; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.trio .pf img { width: 78%; height: 78%; }
.b-light { background: radial-gradient(ellipse at 85% 50%, #1da1ee30, transparent 55%), var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.b-light .ch { background: var(--ink); color: var(--on-ink); }
.b-light .ch + .ch { background: var(--card-3); color: var(--ink); }
.stack { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 130px; height: 110px; }
.stack img { position: absolute; width: 78px; height: 78px; border-radius: 18px; object-fit: cover; box-shadow: 0 0 0 3px var(--bg), 0 12px 24px rgba(0,40,80,.22); }
.stack img:nth-child(1) { left: 0; top: 22px; transform: rotate(-12deg); }
.stack img:nth-child(2) { left: 26px; top: 6px; z-index: 1; }
.stack img:nth-child(3) { left: 52px; top: 22px; transform: rotate(12deg); }
@media (max-width: 560px) {
  .b-trio h2 { max-width: 58%; font-size: 23px; }
  .trio .lg { width: 40px; height: 40px; }
  .trio .lg + .lg { margin-left: -10px; }
  .stack { right: 6px; transform: translateY(-50%) scale(.82); }
}
@media (min-width: 900px) {
  .trio { right: 60px; }
  .trio .lg { width: 116px; height: 116px; }
  .trio .lg + .lg { margin-left: -22px; }
  .stack { right: 70px; width: 270px; height: 220px; }
  .stack img { width: 160px; height: 160px; border-radius: 30px; }
  .stack img:nth-child(1) { top: 40px; }
  .stack img:nth-child(2) { left: 55px; top: 10px; }
  .stack img:nth-child(3) { left: 110px; top: 40px; }
  .banner .art.gift-art { width: 210px; height: 210px; }
}

/* the gift sheet shows at once: no staggered rows, the animation swaps in fast */
.sheet .kv div, .sheet h3, .sheet .sub, .sheet .btn, .sheet .howto { animation: none; }
.big-anim { transition: opacity .12s; }
#gs-rest { animation: fade .18s ease-out; }

/* market badges: the real Portals / MRKT icons */
.mk, .src { overflow: hidden; }
.mk .mklogo, .src .mklogo { width: 100%; height: 100%; object-fit: cover; display: block; }
.src { background: none; box-shadow: none; }
/* header fits between 900 and 1300 px now that it has Channel + theme buttons */
.topnav a, .pill-sm { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1300px) { .logo-name { display: none !important; } .topnav a { padding: 0 11px; } }
@media (min-width: 900px) and (max-width: 1080px) { .tg-link span { display: none; } .tg-link { padding: 0 11px; } }

/* live prize fund: each top-up flashes next to the percentage */
.f-up { font-style: normal; color: var(--green); font-weight: 800; margin-right: 8px; opacity: 0; }
.f-up.on { animation: fup 2.4s ease-out; }
@keyframes fup { 0% { opacity: 0; transform: translateY(6px); } 12% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; } }
.bar i { transition: width 1s cubic-bezier(.2,.8,.2,1); }
.x-link { width: 34px; padding: 0; justify-content: center; color: var(--ink); }
.x-link svg { width: 15px; height: 15px; fill: currentColor; }
@media (min-width: 900px) { .x-link { width: 38px; } }
