/* Pickaxe Empire — neon mine UI.
   Near-black glass cards, one neon accent (lime) for actions, progress and the active tab; gold only for PXE amounts.
   Shell: floating profile bar (avatar, level progress, balance pills, "+") and a floating pill nav with a round Mine button.
   Display type: Unbounded (titles, numbers); text: Manrope. */
:root {
  color-scheme: dark;
  --bg: #07080b;
  --surface: #111318;
  --surface-2: #181b22;
  --surface-3: #232730;
  --line: rgba(255,255,255,.06);
  --line-2: rgba(255,255,255,.11);
  --text: #f4f6f1;
  --text-2: #b9bec6;
  --mute: #7c828d;
  --acc: #c4f54a;               /* buttons, active tab, progress */
  --acc-2: #93d82d;
  --acc-ink: #0d1500;           /* text on the accent */
  --acc-txt: #c4f54a;           /* accent used as text */
  --acc-soft: rgba(196,245,74,.11);
  --acc-line: rgba(196,245,74,.36);
  --acc-glow: rgba(196,245,74,.38);
  --coin: #ffc94a;              /* PXE amounts */
  /* older names, used by the admin panel and shared parts */
  --gold: var(--acc-txt);
  --gold-2: var(--acc-2);
  --gold-soft: var(--acc-soft);
  --gold-line: var(--acc-line);
  --green: #4be38f;
  --green-soft: rgba(75,227,143,.12);
  --red: #ff5f6d;
  --red-soft: rgba(255,95,109,.12);
  --blue: #5ba8ff;
  --purple: #a98bff;
  --f: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --fd: "Unbounded", "Manrope", system-ui, sans-serif;
  --r: 22px;
  --nav-h: 64px;
  --card: linear-gradient(180deg, #14171d, #0f1115);
  --safe-top: calc(max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --gutter-l: max(14px, env(safe-area-inset-left, 0px));
  --gutter-r: max(14px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 600 14px/1.45 var(--f); -webkit-tap-highlight-color: transparent; padding-top: var(--safe-top); }
/* soft neon haze on its own fixed layer (never repaints while scrolling) */
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 34% at 85% -4%, rgba(196,245,74,.13), transparent 70%), radial-gradient(50% 30% at 0% 30%, rgba(120,90,255,.08), transparent 70%); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: var(--safe-top); z-index: 10; background: var(--bg); }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.num { font-variant-numeric: tabular-nums; }
.coin { width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex: none; }
svg { flex: none; }
.muted { color: var(--mute); } .soft { color: var(--text-2); } .mint { color: var(--green); } .rose { color: var(--red); }
.gold-txt, .acc-txt { color: var(--acc-txt); } .coin-txt { color: var(--coin); }
.label { font-size: 10.5px; font-weight: 800; color: var(--mute); text-transform: uppercase; letter-spacing: 1px; }
.display { font-family: var(--fd); }
.gold-title { color: var(--acc-txt); }
.center-txt { text-align: center; }
.small { font-size: 12px; }
a.btn { text-decoration: none; }

/* ---------- profile bar ---------- */
.hdr { position: sticky; top: var(--safe-top); z-index: 6; padding: 8px var(--gutter-r) 6px var(--gutter-l); }
.hdr-in { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 7px 7px 7px 8px; border-radius: 24px;
  background: rgba(17,19,24,.82); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--line-2); box-shadow: 0 10px 30px -10px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.05); }
.pb-who { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left; }
.pb-id { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pb-id b { font: 700 14px/1.15 var(--fd); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .2px; }
.pb-lv { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); }
.pb-lv em { font-style: normal; font-weight: 800; min-width: 10px; }
.pb-lv em.nx { color: var(--mute); }
.pb-bar { flex: 1; min-width: 42px; max-width: 96px; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.pb-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--acc-2), var(--acc)); box-shadow: 0 0 10px var(--acc-glow); }
.pb-bal { display: flex; flex-direction: column; gap: 3px; }
.pb-pill { display: flex; align-items: center; gap: 5px; padding: 3px 10px 3px 6px; border-radius: 99px; background: rgba(0,0,0,.35); border: 1px solid var(--line); font: 700 12px/1.3 var(--fd); justify-content: flex-start; }
.pb-pill .coin { width: 15px; height: 15px; }
.pb-pill.rate { color: var(--acc-txt); }
.pb-pill.rate svg { width: 14px; height: 14px; }
.pb-plus { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--acc-ink);
  background: radial-gradient(circle at 35% 30%, #e5ff98, var(--acc) 45%, var(--acc-2)); box-shadow: 0 0 0 4px rgba(196,245,74,.12), 0 6px 22px -4px var(--acc-glow); }
.pb-plus svg { width: 22px; height: 22px; }
.pb-plus:active { transform: scale(.94); }

.ava { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; flex: none; font: 700 17px var(--fd); color: var(--acc-ink);
  background: linear-gradient(135deg, #e5ff98, var(--acc-2)); }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava.ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--acc), 0 0 18px var(--acc-glow); }
.ava.sm { width: 30px; height: 30px; font-size: 12px; }
.ava.xl { width: 104px; height: 104px; font-size: 40px; }
.ava.ghost { background: var(--surface-3); color: var(--mute); } .ava.ghost svg { width: 16px; height: 16px; }

/* ---------- page ---------- */
.wrap { width: 100%; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px;
  padding-block: 6px calc(var(--nav-h) + 40px + var(--safe-bottom)); padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.page-head { padding: 8px 2px 2px; }
.page-head h1 { font: 800 26px/1.05 var(--fd); letter-spacing: -.3px; text-transform: uppercase; }
.page-head p { margin: 6px 0 0; color: var(--mute); font-size: 13px; font-weight: 600; }
.sub-head { display: flex; align-items: center; gap: 12px; }
.sub-head > div { min-width: 0; }
.sub-head h1 { font-size: 22px; }
.back-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); }
.back-btn svg { width: 18px; height: 18px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card, .panel, .box-wood { border-radius: var(--r); background: var(--card); border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.panel h2, .card h2 { font: 700 16px/1.2 var(--fd); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-head p { margin: 4px 0 0; font-size: 12px; color: var(--mute); }
.sect-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 4px -2px; }
.sect-head h3 { font: 700 13px var(--fd); text-transform: uppercase; letter-spacing: .8px; }
.group-note { margin: 0 4px; font-size: 12px; line-height: 1.45; color: var(--text-2); font-weight: 600; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--acc-2), var(--acc)); transition: width .4s ease; }
.bar.glow > i { box-shadow: 0 0 12px var(--acc-glow); }
.bar.full > i { background: linear-gradient(90deg, #22b07a, var(--green)); }
#storBar { height: 10px; }
#storBar > i { width: 100%; transform-origin: 0 50%; transition: transform .4s ease; }
.chip { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.chip.gold { background: var(--acc-soft); border-color: var(--acc-line); color: var(--acc-txt); }
.chip.mint { background: var(--green-soft); border-color: transparent; color: var(--green); }
.note { font-size: 12px; color: var(--mute); line-height: 1.5; margin: 0; font-weight: 600; }
.note b { color: var(--red); }
.empty { text-align: center; color: var(--mute); padding: 22px 10px; font-size: 14px; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 10px 10px; text-align: center; }
.es-ic { width: 54px; height: 54px; display: grid; place-items: center; color: #4a4f59; }
.es-ic svg { width: 46px; height: 46px; stroke-width: 3.4; }
.empty-state b { font-size: 15px; color: var(--text-2); }
.empty-state small { color: var(--mute); font-size: 12.5px; }

/* buttons: pills; the accent one glows */
.btn { border-radius: 18px; padding: 13px 16px; font-weight: 800; font-size: 15px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .1s, filter .15s, background .15s, box-shadow .2s; }
.btn svg:not(.coin) { width: 18px; height: 18px; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.btn-gold { color: var(--acc-ink); background: linear-gradient(180deg, #d9ff74, var(--acc) 55%, var(--acc-2)); box-shadow: 0 10px 26px -10px var(--acc-glow), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,0,0,.12); }
.btn-gold.alt { background: linear-gradient(135deg, #f1ffc6, #d6ff6a 40%, #a9e83a); }
.btn-xl { padding: 17px 18px; font-size: 16px; border-radius: 20px; }
.btn-plum, .btn-soft { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost { background: transparent; border: 1px solid var(--line-2); color: var(--text-2); }
.btn-green { background: var(--green); color: #052016; }
.btn-done { background: var(--acc-soft); border: 1px solid var(--acc-line); color: var(--acc-txt); }
.btn-done[disabled] { opacity: 1; }
.btn-sm { width: auto; padding: 8px 13px; font-size: 13px; border-radius: 14px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-wide { width: 100%; margin-top: 10px; }
.pill-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; color: var(--acc-ink); background: var(--acc); white-space: nowrap; }
.linkish { align-self: center; color: var(--acc-txt); font-size: 13px; font-weight: 700; padding: 2px 6px; }
.sq-btn { width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--acc-ink); background: radial-gradient(circle at 35% 30%, #e5ff98, var(--acc) 45%, var(--acc-2)); box-shadow: 0 8px 24px -8px var(--acc-glow); }
.sq-btn svg { width: 22px; height: 22px; }

/* ---------- MINE ---------- */
.mine-hero { border-radius: 26px; overflow: hidden; background: var(--card); border: 1px solid var(--acc-line);
  box-shadow: 0 0 0 1px rgba(196,245,74,.05), 0 20px 50px -20px rgba(0,0,0,.8), 0 0 46px -18px var(--acc-glow); }
.scene { position: relative; background: #141a2b; }
.scene::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(15,17,21,.85)); pointer-events: none; }
.scene-tag, .scene-lv, .scene-rate { position: absolute; z-index: 1; padding: 5px 11px; border-radius: 999px; background: rgba(7,8,11,.66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 11.5px; font-weight: 800; display: flex; align-items: center; gap: 5px; border: 1px solid rgba(255,255,255,.08); color: #f4f6f1; }
.scene-tag { left: 10px; top: 10px; } .scene-lv { right: 10px; top: 10px; color: var(--coin); }
.scene-rate { left: 10px; bottom: 10px; color: var(--acc); } .scene-rate svg { width: 13px; height: 13px; }
.scene-lv img, .scene-lv svg { width: 13px; height: 13px; }
.claim { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; }
.claim-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.minfo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mined-now { display: flex; align-items: center; gap: 8px; font: 800 27px/1.05 var(--fd); color: var(--coin); letter-spacing: -.4px; }
.mined-now .coin { width: 26px; height: 26px; }
.claim-rate { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.claim-rate b { font: 800 15px var(--fd); color: var(--acc-txt); }
.claim-rate small { font-size: 11px; color: var(--mute); }
.storage { font-size: 12px; color: var(--mute); display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.claim-btn svg { width: 20px; height: 20px; }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat-row button { display: flex; flex-direction: column; gap: 2px; padding: 11px 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-align: left; min-width: 0; }
.stat-row b { font: 800 18px/1.15 var(--fd); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-row small { font-size: 11px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* art tiles (2 × 2) */
.gtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gtile { position: relative; overflow: hidden; aspect-ratio: 1 / .9; border-radius: 22px; text-align: left; border: 1px solid var(--line-2); isolation: isolate;
  background: linear-gradient(180deg, rgba(7,8,11,.05) 25%, rgba(7,8,11,.94) 92%), var(--art) center / cover; box-shadow: 0 12px 30px -16px rgba(0,0,0,.8); transition: transform .15s; }
.gtile:active { transform: scale(.98); }
.gtile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 80% 85%, rgba(196,245,74,.16), transparent 70%); }
.gt-txt { position: absolute; left: 12px; right: 12px; bottom: 11px; display: flex; flex-direction: column; gap: 2px; }
.gt-txt b { font: 800 14px/1.1 var(--fd); text-transform: uppercase; letter-spacing: .3px; text-shadow: 0 2px 10px rgba(0,0,0,.7); color: #fff; }
.gt-txt small { font-size: 11.5px; color: #cfd4da; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-prop { position: absolute; right: 6px; top: 12px; width: 44%; height: auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.6)); }
.gt-badge { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 99px; background: rgba(7,8,11,.7); backdrop-filter: blur(6px); font: 800 11px var(--fd); color: var(--acc); }
.gtile .dot { position: absolute; right: 10px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(7,8,11,.6); z-index: 1; }

.crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.mc { border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); padding: 8px 6px 9px; text-align: center; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mc .portrait { width: 100%; border-radius: 12px; background: radial-gradient(circle at 50% 70%, rgba(196,245,74,.14), transparent 70%); }
.mc svg { width: 100%; height: auto; display: block; }
.mc b { font-size: 11.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mc small { font-size: 10.5px; color: var(--acc-txt); font-weight: 700; }
.mc.new { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.quick2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick2 button { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-align: left; min-width: 0; }
.quick2 .qi { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-txt); }
.quick2 .qi svg { width: 18px; height: 18px; }
.quick2 b { display: block; font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick2 small { display: block; font-size: 11.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick2 > button > span:last-child { min-width: 0; }
.demo { font-size: 12px; color: var(--text-2); background: var(--surface); border: 1px dashed var(--acc-line); border-radius: 18px; padding: 12px; line-height: 1.5; }
.demo b { color: var(--acc-txt); }
.demo-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.demo-actions button { padding: 6px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 12px; }

/* announcements */
.notice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; background: var(--acc-soft); border: 1px solid var(--acc-line); font-size: 13px; }
.notice > svg { width: 18px; height: 18px; color: var(--acc-txt); }
.notice span { flex: 1; min-width: 0; }
.notice.bad { background: var(--red-soft); border-color: rgba(255,95,109,.35); } .notice.bad > svg { color: var(--red); }
.notice .x { width: 30px; height: 30px; }

/* ---------- Mine cave scene: HTML layers on a 420×300 stage, cropped to 16:9. Moving parts animate transform/opacity only. ---------- */
.cave { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 46vh; overflow: hidden; contain: strict; }
.cv-stage { position: absolute; left: 0; top: 50%; width: 100%; aspect-ratio: 420 / 300; transform: translateY(-50%); }
.cave .l { position: absolute; display: block; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.cave .cv-bg { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cave .prop { object-fit: contain; object-position: 50% 100%; }
.cave .mnr { overflow: hidden; }
.cave .mnr.flip { transform: scaleX(-1); }
.cave .mnr img { display: block; height: 100%; max-width: none; }
.cave .strip { animation: strip 1s steps(10) infinite; will-change: transform; }
@keyframes strip { to { transform: translateX(-100%); } }
.cave .chop { width: 100%; transform-origin: 50% 100%; animation: chop 1.15s cubic-bezier(.5,0,.3,1) infinite; }
@keyframes chop { 0%, 100% { transform: rotate(0); } 45% { transform: rotate(-9deg); } 62% { transform: rotate(7deg); } 75% { transform: rotate(0); } }
.cave .hit { opacity: 0; animation: hit 1s linear infinite; }
@keyframes hit { 0%, 55% { opacity: 0; transform: scale(.3); } 62% { opacity: 1; transform: scale(1.1); } 80%, 100% { opacity: 0; transform: scale(.6); } }
.cave .glint { animation: glint 2.4s ease-in-out infinite; }
@keyframes glint { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.1); } }
.cave .tglow { opacity: .55; animation: tglow 1.6s ease-in-out infinite alternate; }
@keyframes tglow { to { opacity: .85; } }
.cave .flame { border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%; background: radial-gradient(circle at 50% 72%, #fff2a8 0 22%, #ffb020 48%, rgba(255,120,0,.85) 70%, transparent 72%);
  transform-origin: 50% 100%; animation: flick .5s ease-in-out infinite alternate; }
@keyframes flick { from { transform: scale(1, 1); } to { transform: scale(.85, 1.15); } }
.cave .nug img { position: absolute; left: 11.2%; top: 0; width: 77.6%; height: auto; }
.cave .nug-shadow { position: absolute; left: 2.6%; right: 2.6%; bottom: 0; height: 15%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.42), transparent); }
.cave .nug { transform-origin: 50% 85%; }
.cave.tap .nug { animation: thump .25s ease-out; }
@keyframes thump { 50% { transform: scale(1.04, .97); } }
.cave .bub { display: flex; align-items: center; gap: 2%; opacity: 0; animation: bub 2.8s ease-out infinite; }
.cave .bub img { height: 100%; width: auto; }
.cave .bub b { color: #c4f54a; font-size: 9px; line-height: 1; text-shadow: 0 1px 0 rgba(0,0,0,.5); }
@keyframes bub { 0% { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }
/* paused while off screen or while Telegram hides the app (set by app.js) */
.paused .cave *, .cave.paused *, .paused .wmap *, .paused-all * { animation-play-state: paused !important; }

/* ---------- level art (level sheet) ---------- */
.hero { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; border: 1px solid var(--line-2); }
.hero > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zone-pill { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(7,8,11,.7); font-size: 12px; color: #f4f6f1; }
.stars { position: absolute; right: 10px; top: 10px; display: flex; gap: 1px; }
.stars svg, .stars img { width: 15px; height: 15px; display: block; }
.lv-name { text-align: center; }
.lv-name b { display: block; font: 800 22px/1.15 var(--fd); }
.lv-name span { color: var(--mute); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); padding: 10px 6px; text-align: center; min-width: 0; }
.stat .k { font-size: 10.5px; color: var(--mute); display: flex; align-items: center; justify-content: center; gap: 4px; text-transform: uppercase; letter-spacing: .6px; font-weight: 800; }
.stat .k svg { width: 13px; height: 13px; }
.stat .v { font: 800 16px var(--fd); margin: 5px 0 1px; display: flex; align-items: center; justify-content: center; gap: 4px; overflow-wrap: anywhere; }
.stat .u { font-size: 11px; color: var(--acc-txt); }

/* ---------- UPGRADE ---------- */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button { padding: 13px 10px; border-radius: 18px; font: 800 12.5px var(--fd); text-transform: uppercase; letter-spacing: .6px; color: var(--mute); display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); }
.seg button[aria-pressed="true"] { color: var(--text); border-color: var(--acc); background: linear-gradient(180deg, rgba(196,245,74,.12), rgba(196,245,74,.03)); box-shadow: 0 0 22px -8px var(--acc-glow), inset 0 0 0 1px rgba(196,245,74,.25); }
.seg button svg { width: 16px; height: 16px; }
.seg button[aria-pressed="true"] svg { color: var(--acc-txt); }
.seg-theme { grid-template-columns: repeat(3, 1fr); }
.seg-theme button { font-size: 11px; padding: 11px 6px; }
.tiers { display: flex; flex-direction: column; gap: 8px; }
.tier { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.tier .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(91,168,255,.12); color: var(--blue); }
.tier .ic svg { width: 20px; height: 20px; }
.tier.owned .ic { background: var(--acc-soft); color: var(--acc-txt); }
.tier.next { border-color: var(--acc-line); box-shadow: 0 0 20px -10px var(--acc-glow); }
.tier b { font: 800 14px var(--fd); display: block; } .tier small { color: var(--mute); font-size: 11.5px; display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }

/* level carousel */
.class-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 4px; }
.class-line b { font: 800 15px var(--fd); text-transform: uppercase; }
.class-line span { font-size: 12px; color: var(--mute); }
.lvc { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding: 6px max(10%, 40px) 10px; overscroll-behavior-x: contain; }
.lvc::-webkit-scrollbar { display: none; }
.lvs { flex: 0 0 min(80%, 360px); scroll-snap-align: center; border-radius: 26px; background: var(--card); border: 1px solid var(--line-2); overflow: hidden;
  display: flex; flex-direction: column; transform: scale(.92); opacity: .5; transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s, border-color .3s, box-shadow .3s; }
.lvs.on { transform: scale(1); opacity: 1; box-shadow: 0 20px 44px -16px rgba(0,0,0,.8); }
.lvs.current { border-color: var(--acc); }
.lvs.current.on { box-shadow: 0 0 34px -10px var(--acc-glow), 0 20px 44px -16px rgba(0,0,0,.8); }
.lvs-art { position: relative; aspect-ratio: 400 / 250; background: var(--surface-2); }
.lvs-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lvs.locked .lvs-art img { filter: saturate(.3) brightness(.55); }
.lvs-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, #111318); }
.lvs-lv { position: absolute; left: 12px; top: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(7,8,11,.75); font: 800 13px var(--fd); color: #f4f6f1; }
.lvs-art .stars { top: 14px; right: 12px; } .lvs-art .stars img, .lvs-art .stars svg { width: 14px; height: 14px; }
.lvs-badge { position: absolute; left: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: var(--acc); color: var(--acc-ink); box-shadow: 0 0 16px var(--acc-glow); }
.lvs-badge svg { width: 13px; height: 13px; }
.lvs-badge.ok { background: var(--green); color: #052016; box-shadow: none; }
.lvs-badge.lock { background: rgba(7,8,11,.8); color: #c9ced6; border: 1px solid rgba(255,255,255,.12); box-shadow: none; }
.lvs-body { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.lvs-body h3 { font: 800 18px var(--fd); }
.lvs-body p { margin: 4px 0 0; font-size: 12.5px; color: var(--mute); }
.lvs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.lvs-stats > div { padding: 9px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lvs-stats > div + div { border-left: 1px solid var(--line); }
.lvs-stats b { font: 800 14px/1.2 var(--fd); display: flex; flex-direction: column; overflow: hidden; }
.lvs-stats .label { font-size: 9.5px; white-space: nowrap; }
.lvs-stats em { font-style: normal; font-size: 10.5px; color: var(--mute); font-family: var(--f); font-weight: 700; }
.lvc-btn { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--acc-txt); }
.lvc-btn svg { width: 18px; height: 18px; }
.lvc-btn:active { transform: scale(.95); }
.lvnav { display: flex; flex-direction: column; gap: 12px; padding: 12px 14px 10px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.lvnav-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lvnav-now { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lvnav-now b { font: 800 17px var(--fd); }
.lvnav-st { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.lvnav-st.here { background: var(--acc-soft); color: var(--acc-txt); }
.lvnav-st.ok { background: var(--green-soft); color: var(--green); }
.lvnav-st.lock { background: var(--surface-3); color: var(--mute); }
.lvnav-top .chip { display: inline-flex; align-items: center; gap: 5px; }
.lvslide { --kw: 104px; --p: 0; position: relative; height: 54px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); overflow: hidden; }
.lvslide-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--kw) + (100% - var(--kw)) * var(--p)); border-radius: 999px; background: linear-gradient(90deg, var(--acc-soft), rgba(196,245,74,.24)); transition: width .25s ease; }
.lvslide-reach { position: absolute; left: 14px; bottom: 5px; height: 3px; width: calc((100% - 28px) * var(--me) / 100); border-radius: 3px; background: var(--acc); opacity: .7; }
.lvslide-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding-left: calc(var(--kw) + (100% - var(--kw)) * var(--p)); opacity: clamp(0, calc(1 - var(--p) * 2.4), 1); font-size: 12.5px; font-weight: 800; letter-spacing: .3px; color: transparent; pointer-events: none;
  background: linear-gradient(90deg, var(--mute) 0%, var(--mute) 40%, var(--text) 50%, var(--mute) 60%, var(--mute) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; animation: lvshine 2.6s linear infinite; transition: opacity .2s; }
.lvslide-hint svg { width: 13px; height: 13px; color: var(--mute); }
@keyframes lvshine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.lvslide-knob { position: absolute; top: 4px; left: calc(4px + (100% - var(--kw) - 8px) * var(--p)); width: var(--kw); height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(180deg, #d9ff74, var(--acc) 55%, var(--acc-2)); color: var(--acc-ink); box-shadow: 0 4px 18px -4px var(--acc-glow), inset 0 1px 0 rgba(255,255,255,.5); transition: left .25s ease, transform .15s ease; pointer-events: none; }
.lvslide-knob b { font: 800 14px var(--fd); }
.lvslide-knob svg { width: 13px; height: 13px; opacity: .7; }
.lvslide.drag .lvslide-knob { transform: scale(1.06); transition: transform .15s ease; }
.lvslide.drag .lvslide-fill, .lvslide.drag .lvslide-knob { transition-property: transform; }
#lvcRange { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: grab; -webkit-appearance: none; appearance: none; background: none; }
#lvcRange::-webkit-slider-thumb { -webkit-appearance: none; width: 104px; height: 54px; cursor: grab; }
#lvcRange::-moz-range-thumb { width: 104px; height: 54px; border: 0; cursor: grab; }
.lvslide:focus-within { box-shadow: 0 0 0 2px var(--acc-line); }
@media (prefers-reduced-motion: reduce) { .lvslide-hint { animation: none; color: var(--mute); background: none; } .lvslide-knob, .lvslide-fill { transition: none; } }
.lvnav-ticks { display: flex; justify-content: space-between; font-size: 10px; color: var(--mute); padding: 0 16px; margin-top: -6px; }

/* world map (always dark: it is a satellite photo) */
.map-card { --text: #f4f6f1; --text-2: #c3c8d0; --mute: #8a909b; --surface-2: #181b22; --surface-3: #232730;
  position: relative; padding: 0; gap: 0; overflow: hidden; border-color: var(--acc-line); background: #050a12; color: var(--text); }
.map-box { overflow-x: auto; overflow-y: hidden; height: 370px; cursor: grab; scrollbar-width: none; overscroll-behavior-x: contain; background: #050a12; }
.map-box::-webkit-scrollbar { display: none; }
.map-box:active { cursor: grabbing; }
.map-top { position: absolute; inset: 0 0 auto 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 14px 30px; background: linear-gradient(180deg, rgba(5,10,18,.88), rgba(5,10,18,.5) 55%, transparent); pointer-events: none; }
.map-top h2 { font: 800 16px var(--fd); text-transform: uppercase; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.map-top p { margin: 4px 0 0; font-size: 12px; color: var(--text-2); text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.map-top .chip { pointer-events: auto; background: rgba(5,10,18,.7); backdrop-filter: blur(6px); }
.wmap { display: block; height: 100%; width: auto; max-width: none; }
.wmap .grid path { stroke: rgba(150,200,230,.06); stroke-width: 1; fill: none; stroke-dasharray: 3 6; }
.wmap .land { stroke: rgba(196,245,74,.45); stroke-width: 1.3; stroke-linejoin: round; }
.wmap .sea { fill: #0d2638; stroke: rgba(196,245,74,.3); stroke-width: 1; }
.wmap .vig { pointer-events: none; }
.wmap .route { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 2; stroke-dasharray: 3 8; stroke-linecap: round; }
.wmap .route-glow { fill: none; stroke: rgba(196,245,74,.35); stroke-width: 9; stroke-linecap: round; filter: blur(4px); }
.wmap .route-done { fill: none; stroke: #d9ff74; stroke-width: 3; stroke-dasharray: 6 8; stroke-linecap: round; }
.wmap .pin { cursor: pointer; }
.wmap .pin .hit { fill: transparent; }
.wmap .pin .disc { fill: #1d2433; stroke: #4d5568; stroke-width: 2; }
.wmap .pin .rim { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 1; }
.wmap .pin .n { font: 800 11px var(--f); fill: var(--mute); text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.wmap .pin.done .disc { fill: #263212; stroke: var(--acc); }
.wmap .pin.done .rim { stroke: rgba(196,245,74,.35); }
.wmap .pin.done .n { fill: var(--acc); }
.wmap .pin.here .disc { fill: var(--acc); stroke: #f1ffc6; stroke-width: 3; filter: drop-shadow(0 0 8px rgba(196,245,74,.9)); }
.wmap .pin.here .rim { stroke: rgba(13,21,0,.25); }
.wmap .pin.here .n { fill: var(--acc-ink); font-size: 16px; font-weight: 800; }
.wmap .pin .halo { fill: none; stroke: rgba(196,245,74,.35); stroke-width: 1.5; stroke-dasharray: 3 5; transform-box: fill-box; transform-origin: center; animation: wmspin 12s linear infinite; }
@keyframes wmspin { to { transform: rotate(360deg); } }
.wmap .pin .pulse { fill: rgba(196,245,74,.35); transform-box: fill-box; transform-origin: center; animation: pinpulse 1.8s ease-out infinite; }
@keyframes pinpulse { 0% { transform: scale(.6); opacity: 1 } 100% { transform: scale(2.4); opacity: 0 } }
.wmap .pin .tag { display: none; pointer-events: none; }
.wmap .pin.sel .tag, .wmap .pin.here .tag { display: inline; }
.wmap .pin .tag rect { fill: rgba(6,18,29,.9); stroke: var(--acc-line); }
.wmap .pin.here .tag rect { fill: var(--acc); stroke: none; }
.wmap .pin .tag text { font: 700 12px var(--f); fill: var(--text); text-anchor: middle; }
.wmap .pin.here .tag text { fill: var(--acc-ink); font-weight: 800; }
.wmap .pin.sel:not(.here) .disc { stroke: #fff; stroke-width: 3; }
.wmap .pin:focus-visible { outline: none; } .wmap .pin:focus-visible .disc { stroke: #fff; stroke-width: 3; }
.wmap .compass circle { fill: rgba(6,18,29,.7); stroke: var(--acc-line); }
.wmap .compass path { fill: var(--acc); } .wmap .compass .s { fill: #4d6620; }
.wmap .compass text { font: 800 10px var(--f); fill: var(--acc); text-anchor: middle; }
.wmap.real .grid path { stroke: rgba(255,255,255,.07); }
.wmap.real .route { stroke: rgba(255,255,255,.45); }
.wmap.real .pin .disc { fill: rgba(10,14,22,.85); stroke: rgba(255,255,255,.55); }
.wmap.real .pin .n { fill: #e8ebf2; }
.wmap.real .pin.done .disc { fill: #263212; stroke: var(--acc); }
.wmap.real .pin.done .n { fill: var(--acc); }
.wmap.real .pin.here .disc { fill: var(--acc); stroke: #f1ffc6; }
.wmap.real .pin.here .n { fill: var(--acc-ink); }
.wmap .land-paper { opacity: .32; mix-blend-mode: soft-light; pointer-events: none; }
.wmap-wrap { position: relative; display: inline-block; height: 100%; vertical-align: top; }
.wm-ping { position: absolute; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; pointer-events: none; background: rgba(196,245,74,.4); animation: pinpulse 1.8s ease-out infinite; }
.wm-ping.h { background: none; border: 1.5px dashed rgba(196,245,74,.5); animation: wmspin 12s linear infinite; }
@media (prefers-reduced-motion: reduce) { .wm-ping { animation: none; } }
.journey { position: absolute; inset: auto 0 0 0; display: flex; overflow-x: auto; scrollbar-width: none; padding: 26px 6px 10px; scroll-behavior: smooth; background: linear-gradient(0deg, rgba(5,10,18,.94), rgba(5,10,18,.7) 60%, transparent); }
.journey::-webkit-scrollbar { display: none; }
.jst { position: relative; flex: 0 0 68px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; background: none; color: var(--mute); }
.jst::before { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: rgba(255,255,255,.16); z-index: 0; }
.jst:first-child::before { display: none; }
.jst.done::before, .jst.here::before { background: linear-gradient(90deg, var(--acc-2), var(--acc)); box-shadow: 0 0 8px var(--acc-glow); }
.jdot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #141a26; border: 2px solid #2c3240; color: var(--mute); transition: transform .15s; }
.jdot svg { width: 14px; height: 14px; stroke-width: 3; }
.jst small { font-size: 10.5px; font-weight: 800; line-height: 1.2; text-shadow: 0 1px 3px rgba(0,0,0,.8); text-align: center; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jst.done .jdot { background: rgba(196,245,74,.12); border-color: var(--acc); color: var(--acc); }
.jst.done small { color: var(--text-2); }
.jst.here .jdot { background: var(--acc); border-color: #f1ffc6; color: var(--acc-ink); box-shadow: 0 0 0 4px rgba(196,245,74,.16), 0 0 16px var(--acc-glow); }
.jst.here small { color: var(--acc); }
.jst.sel .jdot { transform: scale(1.12); outline: 2px solid #fff; outline-offset: 2px; }
.jst.sel small { color: #fff; }
.jst:focus-visible { outline: none; } .jst:focus-visible .jdot { outline: 2px solid var(--acc); outline-offset: 2px; }
.site-card { padding: 0; gap: 0; overflow: hidden; }
.site-card.here { border-color: var(--acc-line); box-shadow: 0 0 30px -14px var(--acc-glow); }
.site-art { position: relative; aspect-ratio: 400 / 150; background: var(--surface-2); }
.site-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.site-card.lock .site-art img { filter: saturate(.3) brightness(.5); }
.site-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; background: linear-gradient(transparent, #111318); }
.site-num, .site-state { position: absolute; top: 10px; z-index: 1; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; background: rgba(7,8,11,.75); color: #f4f6f1; }
.site-num { left: 10px; } .site-state { right: 10px; }
.site-state svg, .site-state img { width: 13px; height: 13px; }
.site-card.done .site-state { color: var(--green); } .site-card.here .site-state { color: var(--acc); } .site-card.lock .site-state { color: #c9ced6; }
.site-body { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.site-body h2 { font: 800 18px var(--fd); }
.site-body .row > div:first-child p { margin: 4px 0 0; font-size: 12.5px; }
.site-nav { display: flex; gap: 8px; }
.site-nav .lvc-btn:disabled { opacity: .35; cursor: default; }
.site-blurb { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.55; font-weight: 600; }
.site-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.site-facts > div { background: var(--surface-2); padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.site-facts b { font-size: 13px; font-weight: 800; }

/* ---------- EARN ---------- */
.daily-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 18px 16px 16px; border-radius: 26px; border: 1px solid var(--acc-line);
  background: radial-gradient(90% 70% at 0% 0%, rgba(196,245,74,.22), transparent 60%), radial-gradient(70% 60% at 100% 10%, rgba(255,201,74,.16), transparent 65%), linear-gradient(160deg, #1a2010, #101216 60%);
  box-shadow: 0 0 44px -18px var(--acc-glow), inset 0 1px 0 rgba(255,255,255,.06); }
.daily-hero.got { border-color: var(--line-2); box-shadow: none; }
.dh-top { position: relative; display: flex; justify-content: space-between; gap: 6px; min-height: 120px; }
.dh-txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dh-txt h2 { font: 900 30px/.95 var(--fd); text-transform: uppercase; letter-spacing: -.5px; color: var(--acc-txt); text-shadow: 0 0 24px rgba(196,245,74,.35); }
.dh-txt h2 em { font-style: normal; color: var(--text); text-shadow: none; }
.dh-stat { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.dh-stat b { font: 800 15px var(--fd); color: var(--text); }
.dh-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(0,0,0,.35); color: var(--coin); border: 1px solid var(--line); }
.dh-ic svg { width: 15px; height: 15px; }
.dh-art { position: absolute; right: -6px; top: -4px; width: 46%; max-width: 190px; transform: rotate(-8deg); filter: drop-shadow(0 16px 22px rgba(0,0,0,.6)); animation: dhfloat 4s ease-in-out infinite; }
@keyframes dhfloat { 50% { transform: rotate(-4deg) translateY(-6px); } }
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 52px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid var(--line); color: var(--mute); }
.day-top { height: 16px; display: grid; place-items: center; }
.day-top small { font-size: 9.5px; font-weight: 800; letter-spacing: .4px; }
.day-top svg { width: 14px; height: 14px; }
.day b { font: 800 12px var(--fd); color: var(--text-2); }
.day:last-child .day-top svg { width: 17px; height: 17px; }
.day.done { background: var(--acc-soft); border-color: var(--acc-line); color: var(--acc-txt); }
.day.done b { color: var(--acc-txt); }
.day.now { background: linear-gradient(180deg, #d9ff74, var(--acc)); border-color: transparent; color: var(--acc-ink); box-shadow: 0 0 18px -2px var(--acc-glow); }
.day.now b { color: var(--acc-ink); }
@media (max-width: 360px) { .days { gap: 4px; } .day b { font-size: 11px; } }

/* task pills */
.tasks { display: flex; flex-direction: column; gap: 8px; }
.task { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 11px 11px 11px 12px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.task.ready { border-color: var(--acc-line); box-shadow: 0 0 22px -12px var(--acc-glow); }
.task.done { opacity: .5; }
.task .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.task .ic svg { width: 21px; height: 21px; }
.task .ic-telegram { background: #229ed9; color: #fff; border-color: transparent; }
.task .ic-xbrand { background: #000; color: #fff; }
.task .ic-discord { background: #5865f2; color: #fff; border-color: transparent; }
.task .ic-telegram svg, .task .ic-discord svg { width: 22px; height: 22px; }
.task .ic-xbrand svg { width: 18px; height: 18px; }
.task .ic-holder, .task .ic-gem, .task .ic-crown, .task .ic-trophy { background: rgba(255,201,74,.12); color: var(--coin); }
.task .ic-friends, .task .ic-up, .task .ic-pick, .task .ic-wallet, .task .ic-bolt { background: var(--acc-soft); color: var(--acc-txt); }
.tbody { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.task b { display: block; font-size: 12.5px; font-weight: 800; line-height: 1.3; text-transform: uppercase; letter-spacing: .3px; }
.tdesc { display: block; color: var(--text-2); font-size: 12px; font-weight: 600; line-height: 1.35; text-transform: none; }
.treward { display: flex; align-items: center; gap: 4px; color: var(--coin); font-size: 12.5px; font-weight: 800; }
.treward .coin { width: 14px; height: 14px; }
.treward em { font-style: normal; font-weight: 600; color: var(--mute); }
.tprog { display: flex; align-items: center; gap: 8px; }
.tprog .bar { flex: 1; height: 5px; }
.tprog em { font-style: normal; font-size: 11px; color: var(--mute); font-weight: 700; white-space: nowrap; }
.tbtn { padding: 9px 15px; border-radius: 14px; font-weight: 800; font-size: 13px; background: var(--surface-3); color: var(--text); white-space: nowrap; }
.tbtn.claim { color: var(--acc-ink); background: linear-gradient(180deg, #d9ff74, var(--acc) 55%, var(--acc-2)); box-shadow: 0 6px 18px -8px var(--acc-glow); }
.tbtn.wait { background: transparent; border: 1px solid var(--line-2); color: var(--mute); cursor: default; }
.tgo { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text); }
.tgo svg { width: 17px; height: 17px; }
.tgo.off { color: var(--mute); background: transparent; }
.tgo.off svg { width: 15px; height: 15px; }
.tdone { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--acc-txt); background: var(--acc-soft); }
.tdone svg { width: 18px; height: 18px; }
.more-btn { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; padding: 10px; font-size: 13px; font-weight: 800; color: var(--acc-txt); }
.more-btn svg { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .2s; }
.more-btn[data-act="inviteLess"] svg { transform: rotate(-90deg); }

/* ---------- FRIENDS ---------- */
.ref-hero { display: flex; flex-direction: column; gap: 14px; padding: 6px 2px 0; }
.ref-hero h1 { font: 800 23px/1.15 var(--fd); letter-spacing: -.2px; }
.ref-hero h1 em { font-style: normal; color: var(--acc-txt); text-shadow: 0 0 22px rgba(196,245,74,.4); }
.ref-faces { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.ref-faces b { color: var(--text); }
.ava-stack { display: flex; }
.ava-stack .ava { box-shadow: 0 0 0 2px var(--bg); }
.ava-stack .ava + .ava { margin-left: -9px; }
.ava-stack .ava:nth-child(2) { background: linear-gradient(135deg, #ffd98a, #f2a21d); }
.ava-stack .ava:nth-child(3) { background: linear-gradient(135deg, #b9a6ff, #7a5cf0); color: #fff; }
.ava-stack .ava:nth-child(4) { background: linear-gradient(135deg, #8fe3ff, #2b8fd6); color: #fff; }
.ava-stack .ava:nth-child(5) { background: linear-gradient(135deg, #ffa6c1, #e24f7d); color: #fff; }
.ref-cta { display: grid; grid-template-columns: minmax(0, 1fr) 58px; gap: 10px; align-items: center; }
.link-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-align: left; }
.link-card > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.link-card small { font-size: 12px; font-weight: 800; color: var(--text); }
.link-card b { font-size: 12.5px; color: var(--acc-txt); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-card > svg { width: 18px; height: 18px; color: var(--mute); }
.big-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.big-tiles > div { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 112px; padding: 14px 8px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.big-tiles > div::before { content: ""; position: absolute; inset: 0; opacity: .5; background: repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 2px, transparent 2px 12px); }
.big-tiles b { position: relative; display: inline-flex; align-items: center; gap: 6px; font: 800 28px/1 var(--fd); color: var(--acc-txt); text-shadow: 0 0 22px rgba(196,245,74,.35); }
.big-tiles b .coin { width: 22px; height: 22px; }
.big-tiles span { position: relative; font-size: 12px; color: var(--mute); font-weight: 700; }
.ref-claim { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 22px; background: var(--card); border: 1px solid var(--acc-line); }
.ref-claim > span { display: flex; flex-direction: column; min-width: 0; }
.ref-claim small { font-size: 11.5px; color: var(--mute); font-weight: 700; }
.ref-claim b { display: inline-flex; align-items: center; gap: 6px; font: 800 20px/1.2 var(--fd); color: var(--coin); }
.ref-claim b .coin { width: 19px; height: 19px; }
.ref-claim .btn { width: auto; flex: none; padding-inline: 22px; }
.rules-card h2 { font-size: 15px; }
.steps-mini { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); font-size: 13px; line-height: 1.5; font-weight: 600; }
.steps-mini b { color: var(--text); }
.vnext { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }
.vnext b { color: var(--text); }
.vbadge { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--acc-txt); background: var(--acc-soft); }
.vbadge svg { width: 11px; height: 11px; }
.vprog { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.vprog-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: var(--mute); }
.vprog-top b { display: inline; margin: 0; font-size: 11.5px; color: var(--acc-txt); font-weight: 800; }
.vprog-bars { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; gap: 6px; }
.vprog-bars > div { position: relative; display: flex; flex-direction: column; gap: 3px; }
.vprog-bars > div::before { content: ""; height: 5px; border-radius: 5px; background: var(--surface-3); }
.vprog-bars i { position: absolute; left: 0; top: 0; height: 5px; border-radius: 5px; background: var(--acc); }
.vprog-bars .ok i { background: var(--green); }
.vprog-bars small { font-size: 10.5px; color: var(--text-2); white-space: nowrap; }
.vprog-bars .ok small { color: var(--green); }

/* ---------- PROFILE ---------- */
.pf-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px 16px; border-radius: 26px; text-align: center; border: 1px solid var(--line-2);
  background: radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 78% 18%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 88% 62%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 70%, rgba(255,255,255,.7) 50%, transparent 51%), radial-gradient(1px 1px at 55% 12%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(60% 50% at 50% 30%, rgba(196,245,74,.14), transparent 70%), linear-gradient(180deg, #171a20, #0f1115); }
.ava-tap { display: block; cursor: default; margin-bottom: 8px; }
.pf-nm { font: 800 20px/1.2 var(--fd); }
.pf-hero > small { font-size: 12px; color: var(--mute); font-weight: 700; }
.pf-rank { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid var(--line-2); font-size: 12px; font-weight: 800; color: var(--text-2); }
.pf-rank img, .pf-rank svg { width: 13px; height: 13px; }
.pf-rank .num { color: var(--acc-txt); }
.pf-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; margin-top: 10px; }
.pf-chips > div { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 11px 8px; border-radius: 16px; background: rgba(0,0,0,.35); border: 1px solid var(--line); min-width: 0; }
.pf-chips span { font-size: 12px; color: var(--acc-txt); font-weight: 800; }
.pf-chips b { display: inline-flex; align-items: center; gap: 4px; font: 800 14px var(--fd); }
.pf-chips b .coin { width: 15px; height: 15px; }
.pf-chips em { font: 700 11.5px var(--f); color: var(--mute); font-style: normal; }
.pf-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-actions .btn-xl { font-size: 14.5px; padding-inline: 10px; }
.hold-card { gap: 10px; }
.pf-total { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-total .token-logo { width: 30px; height: 30px; }
.pf-total b { font: 800 28px/1.1 var(--fd); color: var(--coin); letter-spacing: -.5px; }
.pf-total em { font-style: normal; font-size: 13px; font-weight: 800; color: var(--mute); }
.pf-total .muted { margin-left: auto; font-size: 12.5px; }
.fund-link { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 4px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.fund-link svg { width: 14px; height: 14px; color: var(--mute); }
.dotst { width: 8px; height: 8px; border-radius: 50%; background: var(--mute); }
.dotst.on { background: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft), 0 0 8px var(--acc-glow); }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat-grid > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.stat-grid b { display: inline-flex; align-items: center; gap: 5px; font: 800 17px/1.2 var(--fd); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-grid b .coin { width: 16px; height: 16px; }
.stat-grid b em { font: 700 11px var(--f); color: var(--mute); font-style: normal; }
.stat-grid b.dt { font-size: 13px; }
.ph { display: flex; align-items: center; gap: 10px; }
.ph h2 { flex: 1; min-width: 0; font-size: 15px; }
.ph-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-txt); }
.ph-ic svg { width: 17px; height: 17px; }
.pf-more { gap: 0; padding-block: 4px; }
.set-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 2px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--text); text-align: left; }
.pf-more .set-link:first-child { border-top: 0; }
.set-link span { flex: 1; min-width: 0; }
.set-link .go-pill { flex: none; }
.set-link span small { display: block; font-size: 11.5px; font-weight: 600; color: var(--mute); }
.set-link svg { width: 17px; height: 17px; color: var(--mute); flex: none; }
.set-link svg:first-child { color: var(--acc-txt); }
.go-pill { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--acc-ink); background: var(--acc); }
.go-pill .coin { width: 13px; height: 13px; }
.pf-settings { gap: 12px; }
.app-ver { display: block; margin: 4px auto 0; padding: 6px 12px; font-size: 12px; font-weight: 700; color: var(--mute); }

/* wallet page */
.field { display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 18px; padding: 5px 5px 5px 16px; gap: 8px; }
.field:focus-within { border-color: var(--acc-line); box-shadow: 0 0 18px -10px var(--acc-glow); }
.field input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: 800 17px var(--fd); outline: none; padding: 9px 0; }
.field input::placeholder { color: var(--mute); font: 600 14px var(--f); }
.field .all { padding: 9px 14px; border-radius: 13px; background: var(--acc-soft); color: var(--acc-txt); font-weight: 800; font-size: 12.5px; }
.field input:disabled, .field .all:disabled { opacity: .45; cursor: default; }
.addr { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); padding: 11px 13px; border-radius: 14px; overflow-wrap: anywhere; user-select: all; }
.fee-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-radius: 14px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.fee-tiers > div { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; background: var(--surface-2); }
.fee-tiers span { font-size: 11px; color: var(--mute); }
.fee-tiers b { font-size: 12.5px; font-weight: 800; }
.recv { color: var(--acc-txt); font-weight: 800; }
.pf-buy { flex-direction: row; align-items: center; gap: 12px; }
.pf-buy > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-buy b { font-size: 15px; font-weight: 800; }
.pf-buy small { font-size: 11.5px; line-height: 1.4; color: var(--mute); }
.list { display: flex; flex-direction: column; }
.li { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.li:first-child { border-top: 0; }
.li .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.li .ic svg { width: 18px; height: 18px; }
.li > span { min-width: 0; }
.li b { display: block; font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li small { color: var(--mute); font-size: 12px; }
.li small a { color: var(--acc-txt); }
.li .amt { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 4px; justify-content: flex-end; white-space: nowrap; }
.li .amt.plus { color: var(--acc-txt); } .li .amt.minus { color: var(--red); }
.status { font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.st-pending, .st-approved, .st-sending, .st-review { color: var(--coin); background: rgba(255,201,74,.12); } .st-sent { color: var(--acc-txt); background: var(--acc-soft); }
.st-rejected, .st-failed, .st-declined { color: var(--red); background: var(--red-soft); }
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.filters button[aria-pressed="true"] { background: var(--acc-soft); border-color: var(--acc-line); color: var(--acc-txt); }
.date-h { font-size: 10.5px; font-weight: 800; color: var(--mute); margin: 8px 0 -4px; text-transform: uppercase; letter-spacing: .8px; }
.date-h:first-child { margin-top: 0; }
.terms { display: flex; flex-direction: column; gap: 6px; }
.terms h3 { margin: 8px 0 0; font-size: 14px; font-weight: 800; }
.terms p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-2); }
.tg-gate { min-height: 80vh; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; padding: 24px 16px; }
.tg-gate h1 { margin: 0; font: 800 24px var(--fd); text-transform: uppercase; }
.tg-gate p { margin: 0; max-width: 320px; color: var(--text-2); }
.tg-gate .btn { margin-top: 6px; }
.credits { margin: 18px 4px 4px; font-size: 11px; line-height: 1.5; color: var(--mute); text-align: center; }
.credits a { color: inherit; text-decoration: underline; }

/* ---------- floating nav: round Mine button + pill ---------- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; pointer-events: none;
  padding: 0 var(--gutter-r) calc(10px + var(--safe-bottom)) var(--gutter-l); background: linear-gradient(transparent, rgba(7,8,11,.85) 45%); }
.nav-in { pointer-events: auto; max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding-top: 18px; }
.nav-home { flex: none; width: var(--nav-h); height: var(--nav-h); border-radius: 50%; display: grid; place-items: center; color: var(--text-2);
  background: rgba(17,19,24,.92); border: 1px solid var(--line-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); transition: color .2s, box-shadow .2s, background .2s; }
.nav-home svg { width: 28px; height: 28px; }
.nav-home[aria-current="page"] { color: var(--acc-ink); background: radial-gradient(circle at 35% 30%, #e5ff98, var(--acc) 45%, var(--acc-2)); border-color: transparent; box-shadow: 0 0 0 4px rgba(196,245,74,.14), 0 8px 26px -6px var(--acc-glow); }
.nav-pill { flex: 1; min-width: 0; height: var(--nav-h); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 999px; padding: 0 6px;
  background: rgba(17,19,24,.92); border: 1px solid var(--line-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.04); }
.nav-pill button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 800; color: var(--mute); }
.nav .ni { width: 30px; height: 26px; display: grid; place-items: center; transition: transform .2s; }
.nav .ni svg { width: 22px; height: 22px; }
.nav-pill button[aria-current="page"] { color: var(--acc-txt); }
.nav-pill button[aria-current="page"] .ni { transform: translateY(-1px); filter: drop-shadow(0 0 8px var(--acc-glow)); }
.nav-pill button[aria-current="page"]::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 16px; height: 3px; border-radius: 3px; background: var(--acc); transform: translateX(-50%); box-shadow: 0 0 8px var(--acc-glow); }
.nav .dot { position: absolute; top: 9px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #111318; }

/* ---------- sheets & pop-ups ---------- */
.scrim { position: fixed; inset: 0; background: rgba(3,4,6,.72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 20; opacity: 0; transition: opacity .2s; }
.scrim.open { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; max-height: 92%; overflow-y: auto; background: linear-gradient(180deg, #15181e, #0e1014 40%); border-radius: 30px 30px 0 0; border-top: 1px solid var(--line-2);
  box-shadow: 0 -20px 60px -20px rgba(196,245,74,.18); padding: 10px var(--gutter-r) calc(20px + var(--safe-bottom)) var(--gutter-l); transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.sheet.open { transform: translateY(0); }
.sheet-inner { width: 100%; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.grab { width: 42px; height: 5px; border-radius: 5px; background: var(--line-2); margin: 0 auto 2px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sheet-head h2 { font: 800 18px var(--fd); text-transform: uppercase; }
.x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line-2); flex: none; }
.x svg { width: 15px; height: 15px; }
.hold-box { border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.hold-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.hold-row b { font-size: 14px; font-weight: 800; }
.hold-row .amt { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 5px; color: var(--acc-txt); }
.hold-row .amt.short { color: var(--coin); }
.need-line { text-align: center; color: var(--acc-txt); font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; }
.unlocked { border-radius: 18px; background: var(--acc-soft); padding: 14px; text-align: center; font-size: 16px; font-weight: 800; color: var(--acc-txt); display: flex; align-items: center; justify-content: center; gap: 8px; }
.unlocked svg { width: 22px; height: 22px; }
.rules { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); line-height: 1.5; font-size: 14px; font-weight: 600; }
.rules b { color: var(--text); }
.pop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; }
.pop[hidden] { display: none; }
.pop .scrim { z-index: 0; }
.pop-in { position: relative; z-index: 1; width: min(100%, 350px); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 26px 20px 20px; border-radius: 30px;
  background: radial-gradient(80% 50% at 50% 0%, rgba(196,245,74,.16), transparent 70%), linear-gradient(180deg, #171a20, #0f1115); border: 1px solid var(--acc-line); box-shadow: 0 30px 70px rgba(0,0,0,.7), 0 0 50px -20px var(--acc-glow); }
.pop h3 { font: 900 24px/1.1 var(--fd); letter-spacing: .3px; color: var(--acc-txt); text-transform: uppercase; text-shadow: 0 0 22px rgba(196,245,74,.35); }
.rays { position: relative; width: 170px; height: 170px; display: grid; place-items: center; }
.rays::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(rgba(196,245,74,.26) 0 10deg, transparent 10deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 70%); mask: radial-gradient(circle, #000 25%, transparent 70%); animation: spin 12s linear infinite; }
.rays::after { content: ""; position: absolute; inset: 24%; border-radius: 50%; background: radial-gradient(circle, rgba(196,245,74,.32), transparent 70%); }
.rays svg, .rays img { position: relative; z-index: 1; width: 120px; height: auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.pop p { margin: 0; color: var(--text-2); font-size: 14px; font-weight: 600; }
.pop .x { position: absolute; right: 14px; top: 14px; }
.pop .btn { padding-block: 16px; }
.toast { position: fixed; left: 50%; top: calc(var(--safe-top) + 78px); transform: translate(-50%, -12px); z-index: 40; background: rgba(24,27,34,.96); border: 1px solid var(--acc-line);
  padding: 11px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 800; box-shadow: 0 12px 34px rgba(0,0,0,.55), 0 0 24px -12px var(--acc-glow);
  opacity: 0; transition: .2s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
img.coin { object-fit: contain; }
img.star { width: 1em; height: 1em; flex: none; object-fit: contain; vertical-align: -0.12em; }
@keyframes enterUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#page.enter > * { animation: enterUp .35s cubic-bezier(.2,.8,.2,1) both; }
#page.enter > *:nth-child(2) { animation-delay: .03s; } #page.enter > *:nth-child(3) { animation-delay: .06s; } #page.enter > *:nth-child(4) { animation-delay: .09s; } #page.enter > *:nth-child(n+5) { animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- My stats sheet, pop-up coin, "Open in Telegram" gate ---------- */
.hero-card { position: relative; overflow: hidden; border-color: var(--acc-line); background: radial-gradient(90% 70% at 100% 0%, rgba(196,245,74,.16), transparent 60%), var(--card); }
.hero-card .big { display: flex; align-items: center; gap: 8px; font: 800 32px/1.05 var(--fd); color: var(--coin); letter-spacing: -.5px; }
.hero-card .big .coin { width: 28px; height: 28px; }
.hero-card .big em { font: 800 13px var(--f); font-style: normal; color: var(--mute); align-self: flex-end; margin-bottom: 4px; }
.split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 16px; background: rgba(0,0,0,.3); border: 1px solid var(--line); }
.split > div { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.split > div + div { border-left: 1px solid var(--line); }
.split b { font: 800 15px var(--fd); overflow: hidden; text-overflow: ellipsis; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { border-radius: 18px; background: var(--card); border: 1px solid var(--line); padding: 12px 14px; display: grid; grid-template-columns: 38px minmax(0,1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.tile .ti { grid-row: span 2; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-txt); }
.tile .ti svg { width: 19px; height: 19px; }
.tile b { font: 800 16px var(--fd); display: flex; align-items: baseline; gap: 4px; min-width: 0; }
.tile b em { font: 700 10.5px var(--f); font-style: normal; color: var(--mute); }
.pop-token { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0,0,0,.6)); }
.tg-gate-hero { position: relative; width: min(70vw, 260px); aspect-ratio: 598 / 640; margin: 0 auto; }
.tg-gate-hero::before { content: ""; position: absolute; inset: 6% 0 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(196,245,74,.32), transparent); }
.tg-gate-emperor { position: relative; width: 100%; height: 100%; object-fit: contain; }
.tg-gate-token { position: absolute; right: -6%; bottom: 4%; width: 34%; filter: drop-shadow(0 8px 14px rgba(0,0,0,.55)); }

/* ---------- light theme (Profile → Appearance): same layout, daylight tokens ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef0ea;
  --surface: #ffffff;
  --surface-2: #f3f4ef;
  --surface-3: #e3e6dd;
  --line: rgba(20,26,10,.08);
  --line-2: rgba(20,26,10,.14);
  --text: #12150d;
  --text-2: #464c3e;
  --mute: #7a8072;
  --acc-txt: #4c8400;
  --acc-soft: rgba(124,190,20,.14);
  --acc-line: rgba(110,170,20,.45);
  --acc-glow: rgba(150,220,40,.35);
  --coin: #c88a05;
  --green: #12a265;
  --card: linear-gradient(180deg, #ffffff, #f8f9f5);
}
:root[data-theme="light"] body::after { background: radial-gradient(60% 34% at 85% -4%, rgba(150,220,40,.18), transparent 70%); }
:root[data-theme="light"] .hdr-in, :root[data-theme="light"] .nav-pill, :root[data-theme="light"] .nav-home:not([aria-current="page"]) { background: rgba(255,255,255,.9); box-shadow: 0 8px 24px -12px rgba(20,26,10,.3); }
:root[data-theme="light"] .nav { background: linear-gradient(transparent, rgba(238,240,234,.9) 45%); }
:root[data-theme="light"] .pb-pill, :root[data-theme="light"] .pf-chips > div, :root[data-theme="light"] .pf-rank, :root[data-theme="light"] .day:not(.now):not(.done), :root[data-theme="light"] .dh-ic { background: rgba(20,26,10,.04); }
:root[data-theme="light"] .daily-hero { background: radial-gradient(90% 70% at 0% 0%, rgba(150,220,40,.28), transparent 60%), radial-gradient(70% 60% at 100% 10%, rgba(255,201,74,.22), transparent 65%), linear-gradient(160deg, #f6fbe9, #ffffff 60%); }
:root[data-theme="light"] .pf-hero { background: radial-gradient(60% 50% at 50% 30%, rgba(150,220,40,.16), transparent 70%), linear-gradient(180deg, #ffffff, #f4f6ef); }
:root[data-theme="light"] .mine-hero, :root[data-theme="light"] .lvs, :root[data-theme="light"] .site-card, :root[data-theme="light"] .lvnav { background: #fff; }
:root[data-theme="light"] .lvs-art::after, :root[data-theme="light"] .site-art::after { background: linear-gradient(transparent, #ffffff); }
:root[data-theme="light"] .sheet { background: linear-gradient(180deg, #ffffff, #f6f7f2 40%); }
:root[data-theme="light"] .pop-in { background: radial-gradient(80% 50% at 50% 0%, rgba(150,220,40,.2), transparent 70%), #ffffff; }
:root[data-theme="light"] .toast { background: #ffffff; }
:root[data-theme="light"] .scrim { background: rgba(20,22,16,.45); }
:root[data-theme="light"] .dh-txt h2, :root[data-theme="light"] .ref-hero h1 em, :root[data-theme="light"] .big-tiles b, :root[data-theme="light"] .pop h3 { text-shadow: none; }
:root[data-theme="light"] .big-tiles > div::before { opacity: 0; }
:root[data-theme="light"] .task .ic-xbrand { background: #000; }

/* ---------- ADMIN PANEL ---------- */
.ava-tap { display: contents; cursor: default; }
.adm-tabs { position: sticky; top: calc(var(--safe-top) + 62px); z-index: 4; padding: 6px 0; background: var(--bg); }
.adm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.adm-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adm-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.adm-tile span { font-size: 11px; color: var(--mute); }
.adm-tile b { font-size: 18px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-tile small { font-size: 11px; color: var(--mute); }
.adm-search { display: flex; gap: 8px; }
.adm-search input, .adm-input, .adm-form input, .adm-form select, .adm-form textarea, .adm-fields input {
  width: 100%; min-width: 0; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; }
.adm-search .btn { width: auto; flex: none; padding-inline: 16px; }
.adm-form { display: flex; flex-direction: column; gap: 10px; }
.adm-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.adm-form label[hidden] { display: none; }
.adm-check { flex-direction: row !important; align-items: center; gap: 8px !important; font-size: 13.5px !important; color: var(--text) !important; }
.adm-check input { width: 18px; height: 18px; accent-color: var(--gold); }
.adm-li { width: 100%; text-align: left; }
.tag { font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; vertical-align: 2px; }
.tag.bad { background: var(--red-soft); color: var(--red); }
.tag.ok { background: var(--green-soft); color: var(--green); }
.adm-box { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.adm-box b { font-size: 14px; }
.adm-fields { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; }
.adm-box .adm-fields input { background: var(--surface); }
.adm-actions { display: flex; flex-direction: column; gap: 8px; }
.adm-h3 { margin: 6px 0 0; font-size: 14px; font-weight: 600; }
.adm-task { width: 100%; text-align: left; }
.adm-task > svg { width: 16px; height: 16px; color: var(--mute); }
.adm-wd { gap: 10px; }
.btn-danger { background: var(--red-soft); color: var(--red); border: 1px solid rgba(255,107,107,.35); }
.linkish.inline { display: inline; padding: 0; font-size: inherit; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border-radius: 14px; background: var(--gold-soft); border: 1px solid var(--gold-line); font-size: 13px; line-height: 1.45; color: var(--text); }
.notice > svg { width: 17px; height: 17px; flex: none; color: var(--gold); margin-top: 1px; }
.notice > span { flex: 1; min-width: 0; }
.notice .x { flex: none; width: 24px; height: 24px; display: grid; place-items: center; color: var(--mute); }
.notice .x svg { width: 13px; height: 13px; }
.notice.bad { background: var(--red-soft); border-color: rgba(255,107,107,.35); }
.notice.bad > svg { color: var(--red); }
.map-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 14px; font-size: 13px; color: var(--mute); }
.map-foot b { color: var(--text); }
.home-map .map-box { height: 230px; }

/* ---------- HQ CONTROL ROOM (admin.js) ---------- */
.hq { position: relative; margin: 0 calc(-1 * var(--gutter-l)) 0 calc(-1 * var(--gutter-r)); padding: calc(var(--safe-top) + 12px) var(--gutter-l) 18px;
  background: radial-gradient(120% 90% at 85% 0%, rgba(245,192,74,.28), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--bg)); border-bottom: 1px solid var(--line); }
.hq-top { display: flex; justify-content: space-between; align-items: center; }
.hq-top .chip svg { width: 13px; height: 13px; }
.hq-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--green); padding: 4px 10px; border-radius: 999px; background: var(--green-soft); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: .35; } }
.hq-title { margin-top: 22px; display: flex; flex-direction: column; gap: 3px; }
.hq-title small { color: var(--gold); font-weight: 600; font-size: 12.5px; letter-spacing: .04em; }
.hq-title h1 { font-size: 30px; line-height: 1.05; margin: 0; }
.hq-boss { align-self: flex-start; margin-top: 6px; font-size: 11.5px; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.hq-tabs { position: sticky; top: var(--safe-top); z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter-l)) 0 calc(-1 * var(--gutter-r));
  padding: 8px var(--gutter-l); background: var(--bg); border-bottom: 1px solid var(--line); }
.hq-tabs::-webkit-scrollbar { display: none; }
.hq-tabs button { flex: none; min-width: 70px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 8px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 11.5px; font-weight: 600; }
.hq-tabs button[aria-selected="true"] { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold); }
.hq-body { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.hq-head { align-items: flex-end; }
.hq-head h2 { margin: 0; font-size: 20px; }
.chip.spin svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; }
.small { font-size: 12px; }
.c-red { color: var(--red); } .c-mint { color: var(--green); } .c-gold { color: var(--gold); } .c-blue { color: var(--blue); }

/* metrics */
.am-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.am-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.am { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.am::after { content: ''; position: absolute; right: -14px; top: -14px; width: 48px; height: 48px; border-radius: 50%; background: var(--gold); opacity: .10; filter: blur(10px); }
.am.mint::after { background: var(--green); } .am.red::after { background: var(--red); }
.am-l { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.am b { font-size: 21px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.am.gold b { color: var(--gold); } .am.mint b { color: var(--green); } .am.red b { color: var(--red); }
.am small { font-size: 11px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am .am-t { color: var(--text-2); font-weight: 600; }
.am-grid.three .am b { font-size: 16px; }

/* badges */
.ab { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.ab.red { background: var(--red-soft); color: var(--red); } .ab.mint { background: var(--green-soft); color: var(--green); } .ab.gold { background: var(--gold-soft); color: var(--gold); }
.ab.blue { background: rgba(90,160,255,.14); color: var(--blue); } .ab.mute { background: transparent; border: 1px solid var(--line-2); color: var(--mute); }
.abs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.filters button em { font-style: normal; opacity: .7; margin-left: 3px; }

/* player rows */
.urow { width: 100%; text-align: left; display: grid; grid-template-columns: auto 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.list .urow:first-child { border-top: 0; }
.urow-b { min-width: 0; display: flex; flex-direction: column; }
.urow-b b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.urow-b small { color: var(--mute); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.urow-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.urow-r b { font-size: 14px; } .urow-r small { font-size: 11px; color: var(--mute); }
.medal { width: 22px; text-align: center; font-size: 16px; color: var(--mute); }
.urow:not(:has(.medal)) { grid-template-columns: 40px minmax(0, 1fr) auto; }
.prem { color: var(--gold); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.adm-search input, .adm-search select { flex: 1; min-width: 0; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 12px; color: var(--text); font: 500 14px var(--f); outline: none; }
.adm-search select { flex: none; width: auto; }

/* key/value rows */
.kv { display: flex; flex-direction: column; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.kv > div:first-child { border-top: 0; }
.kv span { color: var(--mute); flex: none; } .kv b { font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.kv.tight > div { padding: 4px 0; font-size: 12px; }
.adm-err { color: var(--red); } .adm-warn { color: var(--gold); font-size: 13px; line-height: 1.5; }

/* withdrawal split, growth chart, bars */
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.route { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.route b { font-size: 17px; } .route.mint b { color: var(--green); } .route.gold b { color: var(--gold); }
.route small { font-size: 11px; color: var(--mute); }
.share { height: 8px; border-radius: 99px; background: var(--gold); overflow: hidden; margin-top: 8px; }
.share i { display: block; height: 100%; background: var(--green); }
.growth { width: 100%; height: 130px; display: block; }
.growth polyline { fill: none; stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.g-users { stroke: var(--blue); } .g-claims { stroke: var(--gold); }
.g-cursor { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 3; }
.growth-tip { font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--mute); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.legend i.c-blue { background: var(--blue); } .legend i.c-gold { background: var(--gold); }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12.5px; }
.bar-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bar-l small { color: var(--mute); }
.bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.bar-row b { font-size: 12.5px; min-width: 58px; text-align: right; } .bar-row b small { color: var(--mute); font-weight: 500; }
.chip-date { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }
.chip-date input { background: transparent; border: 0; color: var(--text); font: 500 12px var(--f); width: 118px; }

/* user sheet */
.uhead { display: flex; gap: 12px; align-items: center; }
.uhead > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.uhead small { color: var(--mute); font-size: 12px; }
.ava.big { width: 54px; height: 54px; font-size: 22px; }
.idlist { display: flex; flex-wrap: wrap; gap: 6px; }

/* payouts */
.pay { display: flex; flex-direction: column; gap: 8px; }
.pay-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.pay-u { display: flex; gap: 10px; align-items: center; text-align: left; min-width: 0; }
.pay-u span { display: flex; flex-direction: column; min-width: 0; }
.pay-u b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pay-u small { color: var(--mute); font-size: 11.5px; }
.pay-amt { display: flex; flex-direction: column; align-items: flex-end; } .pay-amt b { font-size: 18px; color: var(--gold); } .pay-amt small { font-size: 11px; color: var(--mute); }

/* settings */
.toggle { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 6px 0; font-size: 13.5px; }
.toggle i { flex: none; width: 46px; height: 27px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; transition: background .2s; }
.toggle i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--text-2); transition: transform .2s, background .2s; }
.toggle.on i { background: var(--red-soft); border-color: rgba(255,107,107,.45); }
.toggle.on i::after { transform: translateX(19px); background: var(--red); }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.zones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zones > div { display: grid; grid-template-columns: 10px minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.zones i { grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; background: hsl(calc(var(--h) * 1deg + 30deg) 70% 55%); }
.zones b { font-size: 13px; } .zones small { font-size: 11px; color: var(--mute); }
.adm-fields.two { grid-template-columns: 1fr 1fr; }
.adm-fields input[type="datetime-local"] { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; color: var(--text); font: 500 13px var(--f); min-width: 0; width: 100%; }
@media (max-width: 380px) { .am-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } .routes { grid-template-columns: 1fr; } }
.uname { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.adm-form input[type="datetime-local"] { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; color: var(--text); font: 500 14px var(--f); width: 100%; min-width: 0; box-sizing: border-box; }
.task .tdesc { display: block; color: var(--text-2); font-size: 12px; margin: 1px 0 2px; white-space: normal; }
.tcard { display: flex; flex-direction: column; gap: 8px; }
.tcard.off { opacity: .65; }
.tc-top { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.tc-top > div { min-width: 0; } .tc-top > div b { font-size: 14px; } .tc-top small { display: block; font-size: 12px; }
.tc-top .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--gold); }
.tc-top .ic svg { width: 18px; height: 18px; }
.tc-r { display: flex; flex-direction: column; align-items: flex-end; } .tc-r b { color: var(--gold); font-size: 15px; } .tc-r small { font-size: 11px; color: var(--mute); }
.tc-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.tc-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-btns .chip { padding: 6px 12px; font-size: 12.5px; }
.chip.red { background: var(--red-soft); color: var(--red); border-color: transparent; }
.chip:disabled { opacity: .4; }
.limit { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; font-size: 12px; color: var(--text-2); }
.bar.red i { background: var(--red); }
.rule { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 6px; }
.rule select, .rule input { background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 8px; color: var(--text); font: 500 13px var(--f); min-width: 0; }
.rule .rVal { width: 80px; } .rule .rMetric, .rule .rTask { flex: 1 1 150px; }
.rule-hint { flex-basis: 100%; font-size: 11px; }
.vcheck { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 12.5px; padding: 4px 0; }
.vcheck .bar { grid-column: 1 / -1; height: 5px; }
.pre { white-space: pre-wrap; word-break: break-all; font: 11px ui-monospace, Menlo, Consolas, monospace; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px; max-height: 220px; overflow: auto; margin: 6px 0 0; color: var(--text-2); }
details.how summary { cursor: pointer; list-style: none; } details.how[open] summary { margin-bottom: 8px; }
.adm-try { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; } .adm-try input { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; color: var(--text); font: 500 14px var(--f); min-width: 0; } .adm-try .btn { width: auto; padding-inline: 18px; }
.share.gold { background: var(--surface-3); } .share.gold i { background: var(--gold); }
.tg-bubble { max-width: 330px; border-radius: 16px 16px 16px 4px; background: #2b5278; color: #fff; overflow: hidden; font-size: 14px; line-height: 1.4; }
:root[data-theme="light"] .tg-bubble { background: #ffffff; color: #111; border: 1px solid var(--line); }
.tg-bubble img { display: block; width: 100%; max-height: 220px; object-fit: cover; }
.tg-text { padding: 8px 12px 10px; overflow-wrap: anywhere; } .tg-text a { color: #7cc3ff; } .tg-text code { font-family: ui-monospace, Menlo, monospace; }
.tg-btn { max-width: 330px; margin-top: 4px; text-align: center; padding: 9px; border-radius: 10px; background: rgba(43,82,120,.75); color: #fff; font-size: 13.5px; font-weight: 600; }
.am-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .am-grid.four .am b { font-size: 16px; } .am-grid.four .am-l { font-size: 9.5px; }
@media (max-width: 380px) { .am-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.adm-check.tier { align-items: flex-start !important; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 6px; }
.adm-check.tier span { display: flex; flex-direction: column; gap: 1px; } .adm-check.tier small { font-size: 11px; }
.toggle.on.mint i { background: var(--green-soft); border-color: rgba(70,200,140,.45); } .toggle.on.mint i::after { background: var(--green); }
.apitem { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
.list .apitem:first-child { border-top: 0; }
.sig { margin: 4px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--text-2); }
.susb { display: flex; flex-direction: column; gap: 8px; }
.susb-top { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; align-items: center; }
.susb-top:not(:has(.pick)) { grid-template-columns: auto minmax(0, 1fr); }
.susb-top > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; } .susb-top small { font-size: 11.5px; }
.score { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: var(--surface-3); }
.score.red { background: var(--red-soft); color: var(--red); } .score.gold { background: var(--gold-soft); color: var(--gold); } .score.mint { background: var(--green-soft); color: var(--green); } .score.blue { background: rgba(90,160,255,.14); color: var(--blue); }
.pick { width: 20px; height: 20px; accent-color: var(--gold); }
.bulk { position: sticky; top: calc(var(--safe-top) + 70px); z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--gold-line); font-size: 13px; }
.chip.mint { background: var(--green-soft); color: var(--green); border-color: transparent; }
