@font-face {
  font-family: "Urbanist";
  src: url("./assets/fonts/urbanist-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #181818;
  --surface: #252525;
  --surface-2: #303030;
  --line: #3c3b3c;
  --text: #f4f2ee;
  --muted: #aaa7aa;
  --blue: #b9a7fb;
  --accent: #ad99f4;
  --pink: #e892ca;
  --lime: #ebf58c;
  --positive: #c4d4a0;
  --radius: 20px;
  --metal: repeating-linear-gradient(135deg,transparent 0 3px,#ffffff03 3px 4px),linear-gradient(135deg,#343434bb,#222222f0);
  font-family: "Urbanist", "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { background: #101010; scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: #101010; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button,input,select { font: inherit; }
button,a,input,select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; touch-action: manipulation; transition: background .2s, border-color .2s, transform .2s; }
button:disabled { cursor: default; }
button:active:not(:disabled) { transform: scale(.98); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
a { color: var(--blue); text-decoration: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
em,i { font-style: normal; }
.app-shell { position: relative; isolation: isolate; width: min(100%,480px); min-height: 100svh; margin: auto; padding: max(20px,env(safe-area-inset-top)) 24px calc(106px + env(safe-area-inset-bottom)); background: radial-gradient(ellipse 85% 48% at 100% 0%,#32323275,transparent),linear-gradient(165deg,#1c1c1c,#111 70%); }
.brand { display:flex; align-items:center; gap:8px; min-width:0; font-size:20px; font-weight:450; letter-spacing:-.6px; color:#f4f2ee; }
.brand-logo { display:block; width:44px; height:44px; object-fit:contain; flex:none; filter:drop-shadow(0 3px 5px #0008); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.topbar-right { display: flex; align-items: center; gap: 8px; flex: none; min-width: 0; }
.user-chip { position: relative; display: flex; align-items: center; gap: 8px; max-width: 46vw; min-width: 0; border: 0; padding: 0 0 0 4px; background: none; color: inherit; font: inherit; }
.user-chip strong { display: block; min-width: 0; font-size: 13px; font-weight: 450; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.user-chip .avatar-wrap { position: relative; flex: none; }
.user-chip .avatar { width: 40px; height: 40px; }
.user-chip .avatar-wrap b { position: absolute; top: -5px; inset-inline-end: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: var(--lime); color: #171717; font-size: 11px; font-weight: 500; box-shadow: 0 0 0 2px #181818; }
.user-chip .avatar-wrap b[hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.profile-chip { display: flex; align-items: center; gap: 10px; flex:1; min-width: 0; border: 0; padding: 0; background: none; text-align: start; }
.profile-chip > span:last-child { min-width: 0; }
.profile-chip strong { display: block; font-size: 14px; font-weight: 450; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.profile-chip small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.avatar,.profile-avatar-large { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(145deg,#393737,#222); box-shadow: inset 0 0 0 1px #ffffff15; color: #e5dfa9; font-size: 12px; font-weight: 450; background-size: cover; background-position: center; }
.has-photo { font-size: 0; }
.icon-button { flex:none; position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #454346; border-radius: 50%; background: linear-gradient(150deg,#333,#202020); color: #cbc7cb; box-shadow: inset 0 1px 1px #ffffff12; }
.icon-button b { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 17px; border-radius: 6px; background: var(--lime); color: #171717; font-size: 11px; }
.icon-button b[hidden] { display: none; }
.page { display: none; }
.page.active { display: block; animation: page-reveal .26s ease-out both; }
.cosmos-hero { position: relative; isolation: isolate; }
.balance-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.balance-caption { letter-spacing: -.025em; display: flex; align-items: center; gap: 7px; font-size: 18px; font-weight: 350; }
.balance-caption svg { width: 21px; height: 21px; }
.balance-value { display: flex; align-items: baseline; justify-content: flex-end; gap: 5px; min-width: 0; max-width: 60%; }
.balance-value strong { font-size: 24px; font-weight: 350; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; min-width: 0; }
.balance-value small { font-size: 12px; color: var(--muted); }
.hero-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 3px; color: var(--muted); font-size: 13px; }
.status-pill { font-size: 12px; text-align: end; color: #c9c4a0; max-width: 62%; }
.status-pill i { display: none; }
.mining-scene { position: relative; height: 268px; margin: 14px -14px 10px; overflow: hidden; }
.node-stats { position: relative; z-index: 4; display: grid; gap: 8px; width: 125px; padding-top: 28px; margin-inline-start: 14px; }
.node-stat { display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 12px 14px; background: var(--metal); border: 1px solid #57525787; box-shadow: inset 0 1px 1px #ffffff28,inset 0 -1px 2px #0008,0 4px 7px #0005,0 12px 20px -12px #000c; border-radius: 16px; backdrop-filter: blur(10px); }
.node-stat b { font-size: 24px; line-height: 1.1; font-weight: 400; min-width: 19px; font-variant-numeric: tabular-nums; }
.node-stat span { font-size: 12px; line-height: 1.4; color: #d2cdd2; }
.planet-stage { position: absolute; z-index: 2; width: 288px; height: 272px; inset-inline-end: -19px; top: -2px; display: grid; place-items: center; pointer-events: none; animation: planet-float 7s ease-in-out infinite; }
.planet-stage::before { content: ""; position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(ellipse,#aa70d333,transparent 70%); transform: scale(1.5); animation: halo-breathe 5s ease-in-out infinite alternate; }
.planet-stage img { position: relative; z-index: 2; width: 278px; height: 264px; object-fit: contain; filter: drop-shadow(0 20px 24px #09030b9c); transition: opacity .25s,transform .35s; }
.planet-stage img.switching { opacity: .1; transform: scale(.93) rotate(6deg); }
.planet-orbit { position: absolute; z-index: 3; inset: 32px -3px; border: 1px solid #d6b9f238; border-radius: 50%; transform: rotate(-30deg) scaleY(.44); }
.planet-orbit > i { position: absolute; inset: -1px; border-radius: 50%; animation: orbital-travel 14s linear infinite; }
.planet-orbit > i::before { content: ""; position: absolute; width: 5px; height: 5px; left: 17%; top: 10%; border-radius: 50%; background: #edd6ff; box-shadow: 0 0 12px #d5a0ff; }
.planet-sparks { position: absolute; inset: 8%; }
.planet-sparks i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #cab8dd; animation: starlight 5s ease-in-out infinite; }
.planet-sparks i:nth-child(1) { top: 5%; left: 20%; }
.planet-sparks i:nth-child(2) { top: 25%; right: 0; animation-delay: -2s; }
.planet-sparks i:nth-child(3) { bottom: 12%; left: 5%; animation-delay: -3s; }
.planet-sparks i:nth-child(4) { bottom: 0; right: 22%; animation-delay: -1s; }
.energy-panel { position: relative; }
.eyebrow { display: block; font-size: 16px; font-weight: 350; color: #c9c4cb; }
.pending-line { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.pending-line em { font-size: clamp(40px,12vw,52px); font-weight: 550; letter-spacing: -.055em; line-height: 1.2; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.pending-line > span { font-size: 16px; font-weight: 350; color: var(--muted); }
.collection-meter { position: relative; isolation: isolate; height: 5px; margin: 20px 0 12px; border-radius: 3px; background: #444048; overflow: hidden; }
.collection-meter::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg,transparent 0 calc(20% - 3px),#181818 calc(20% - 3px) 20%); pointer-events: none; }
.collection-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg,#b39cf6,#dca1e4); border-radius: inherit; transition: width .6s linear; }
.production-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.production-line > span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #bbb6bd; }
.production-line svg { width: 15px; height: 18px; color: var(--pink); fill: var(--pink); }
.production-line b { font-size: 18px; font-weight: 350; color: var(--text); }
.production-line small { font-size: 12px; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid #3b383b; padding: 11px 0; margin-bottom: 18px; box-shadow: 0 1px 0 #0008; }
.quick-actions button { min-height: 38px; display: flex; justify-content: center; align-items: center; gap: 7px; padding: 4px 8px; border: 0; background: none; color: #d7d2d8; font-size: 13px; font-weight: 350; }
.quick-actions button + button { border-inline-start: 1px solid #494449; }
.quick-actions svg { width: 19px; height: 19px; }
.collect-button,.primary-button,.telegram-link { position: relative; isolation: isolate; width: 100%; min-height: 57px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid #debcfa; border-radius: 15px; padding: 10px 16px; background: radial-gradient(ellipse at 0 100%,#e892cb,transparent 55%),linear-gradient(115deg,#a293ed,#9b82ed); box-shadow: inset 0 1px 2px #ffffff60,0 5px 16px #8c61bc24; color: #fff; font-size: 15px; font-weight: 500; overflow: hidden; }
.collect-button:disabled { color: #ded8e5; border-color: #786b83; background: radial-gradient(ellipse at 0 100%,#77547170,transparent 60%),linear-gradient(120deg,#47424d,#514960); box-shadow: inset 0 1px 1px #ffffff1f; }
.collect-button > span { position: relative; z-index: 1; }
.collect-button strong,.collect-button small { display: block; }
.collect-button strong { font-weight: 500; font-size: 16px; }
.collect-button small { font-size: 12px; font-weight: 350; margin-top: 1px; opacity: .8; }
.collect-icon { display: grid; place-items: center; }
.collect-button:not(:disabled) { animation: ready-breathe 3s ease-in-out infinite; }
.collect-button:not(:disabled)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg,transparent 20%,#fff3 48%,transparent 75%); transform: translateX(-150%); animation: energy-shimmer 6s ease-in-out infinite; }
.collecting .collect-icon { animation: starlight .8s ease-in-out infinite; }
.evolution-card,.chrome-panel,.progress-panel,.network-hero,.order-builder { position: relative; border: 1px solid #514c51; border-radius: 22px; background: var(--metal); box-shadow: inset 0 1px 1px #ffffff25,inset 0 -2px 3px #0008,0 2px 3px #0007,0 14px 28px -14px #000d,0 0 0 1px #ffffff05; }
.evolution-card::before,.chrome-panel::before,.progress-panel::before,.network-hero::before,.order-builder::before { content: ""; position: absolute; z-index: 1; top: -3px; left: 36%; width: 28%; height: 3px; background: #efedf1; border-radius: 4px 4px 0 0; box-shadow: 0 2px 9px #fff8,0 10px 24px #ffffff25; pointer-events: none; }
.evolution-card { margin-top: 34px; padding: 20px 16px 16px; }
.section-heading,.page-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.section-heading > div,.page-title > div:first-child { min-width: 0; }
.section-heading span,.page-title span { color: var(--muted); font-size: 12px; }
.section-heading h2 { font-size: 18px; font-weight: 350; letter-spacing: -.025em; line-height: 1.4; margin: 4px 0 0; }
.next-form { text-align: end; }
.next-form b { display: block; font-size: 13px; font-weight: 350; color: #d1c7d8; margin-top: 4px; }
.evolution-progress,.progress-bar { height: 4px; margin: 17px 0; border-radius: 4px; background: #464149; overflow: hidden; }
.evolution-progress i,.progress-bar i { display: block; width: 10%; height: 100%; background: linear-gradient(90deg,#bba1f9,#db9acc); transition: width .4s; }
.evolution-stages { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; }
.evolution-stages button { min-height: 42px; padding: 8px 1px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: #aaa4ae; }
.evolution-stages button b { display: none; }
.evolution-stages button small { display: block; font-size: 12px; font-weight: 350; }
.evolution-stages button.active { color: #e9e0f7; background: #50435a; border-color: #a690b9; box-shadow: inset 0 1px 4px #ffffff0a; }
.section-card { padding: 28px 0; border-bottom: 1px solid #373437; }
.section-card h2 { margin: 0; }
.streak { color: var(--muted); font-size: 13px; font-weight: 350; text-align: end; }
.week-track { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 8px; margin-top: 18px; }
.week-track span { height: 38px; display: grid; place-items: center; border: 1px solid #3b373c; border-radius: 12px; background: linear-gradient(145deg,#2e2b2e,#222); color: #aaa3ad; font-size: 12px; }
.week-track .today { border-color: #a690ba; color: #e9d8fa; }
.week-track .done { background: #3c3f2d; color: var(--lime); border-color: #767b48; }
.text-button { background: none; border: 0; color: #d1c0e1; font-size: 13px; min-height: 40px; padding: 8px 0 8px 8px; }
.mission-row { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 78px; padding: 16px 0 0; border: 0; background: none; text-align: start; }
.mission-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #655568; border-radius: 12px; background: linear-gradient(145deg,#453746,#2c282e); color: #d2b4e3; }
.mission-row strong,.mission-row small { display: block; }
.mission-row strong { font-size: 14px; font-weight: 450; }
.mission-row small { font-size: 12px; color: var(--muted); margin-top: 4px; }
.mission-row > b { font-size: 12px; color: var(--lime); font-weight: 400; text-align: end; }
.mission-description { margin: 12px 0 0; padding-inline-start: 50px; font-size: 13px; color: var(--muted); }
.notice-card { margin: 22px 0 0; }
.notice-card > b { display: none; }
.notice-card p,.policy-copy { font-size: 12px; color: #a39aa4; line-height: 1.7; margin: 0; }
.page-title { margin: 4px 0 30px; }
.page-title h1 { font-size: 28px; font-weight: 300; letter-spacing: -.04em; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.mini-balance { text-align: end; }
.mini-balance b,.mini-balance small { display: block; }
.mini-balance b { font-size: 19px; font-weight: 350; }
.mini-balance small { font-size: 12px; color: var(--muted); }
.progress-panel { padding: 22px 18px; }
.progress-panel > div:first-child { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; }
.progress-panel strong { color: #e5d1ef; font-weight: 350; text-align: end; }
.progress-panel small { color: var(--muted); font-size: 13px; }
.task-list { margin-top: 22px; }
.task-card { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 20px 14px; margin-top: 12px; border: 1px solid #484048; border-radius: 18px; background: var(--metal); box-shadow: inset 0 1px 1px #ffffff20,inset 0 -1px 2px #0007,0 7px 16px -9px #000d; }
.task-art { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #dab9ef; background: #423345; border: 1px solid #715676; font-size: 20px; }
.task-copy h3 { font-size: 15px; font-weight: 450; margin: 0; }
.task-copy p { font-size: 12px; color: var(--muted); margin: 5px 0 0; }
.task-copy span { display: block; font-size: 13px; color: var(--lime); margin-top: 8px; }
.task-card.done .task-art { color: var(--lime); background: #373d29; border-color: #657044; }
.task-action,.share-button,.pending-card button { min-height: 40px; padding: 8px 12px; border-radius: 11px; border: 1px solid #bc9edc; background: linear-gradient(135deg,#b483bd,#9280df); box-shadow: inset 0 1px 1px #ffffff40; color: #fff; font-weight: 400; font-size: 13px; }
.task-action:disabled,.pending-card button:disabled { color: #b7b0bb; background: #383239; border-color: #605462; box-shadow: none; }
.network-hero { display: grid; grid-template-columns: 1fr 1fr; padding: 24px; }
.network-stat { min-width: 0; padding-bottom: 20px; }
.network-stat:nth-child(2) { padding-inline-start: 20px; border-inline-start: 1px solid #534b55; }
.network-stat.wide { grid-column: 1/-1; padding: 20px 0 0; border-top: 1px solid #534b55; }
.network-stat strong,.network-stat span { display: block; }
.network-stat strong { font-size: 36px; line-height: 1.2; font-weight: 300; letter-spacing: -.045em; overflow-wrap: anywhere; }
.network-stat span { font-size: 13px; color: #bcb3c0; margin-top: 6px; }
.pending-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 0; }
.pending-card > div { min-width: 0; }
.pending-icon { display: none; }
.pending-card p { margin: 0; }
.pending-card strong,.pending-card small { display: block; }
.pending-card strong { font-size: 14px; font-weight: 400; }
.pending-card small { font-size: 12px; color: var(--muted); margin-top: 4px; }
.level-list { border: 1px solid #453d47; padding-inline: 14px; border-radius: 18px; background: linear-gradient(140deg,#2b272ccc,#171518cc); }
.level-row,.order-row { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid #3a333d; }
.level-row:last-child,.order-row:last-child { border-bottom: 0; }
.level-num,.order-glyph { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid #514354; color: #d9c0e6; background: #302634; font-size: 13px; }
.level-row strong,.level-row small,.order-row strong,.order-row small { display: block; }
.level-row strong,.order-row strong { font-size: 14px; font-weight: 400; }
.level-row small,.order-row small { font-size: 12px; color: var(--muted); margin-top: 4px; }
.level-xp,.order-output { font-size: 12px; color: var(--positive); text-align: end; max-width: 92px; }
.active-dot { font-size: 12px; color: var(--muted); text-align: end; }
.tier-rail { display: flex; gap: 9px; overflow-x: auto; padding: 0 0 12px; scrollbar-width: thin; }
.tier-tab { flex: 0 0 112px; min-height: 72px; border: 1px solid #514752; border-radius: 16px; background: var(--metal); font-size: 16px; font-weight: 350; padding: 12px; }
.tier-tab small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.tier-tab.active { border-color: #bda1df; box-shadow: inset 0 0 12px #a48bd61f; background: linear-gradient(145deg,#483b51,#2a2630); }
.order-builder { margin-top: 24px; padding: 24px 18px; }
.order-builder label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 350; margin: 24px 0 10px; }
.order-builder label:first-child { margin-top: 0; }
.order-builder label small { font-size: 12px; color: var(--muted); }
.amount-field { display: flex; align-items: center; padding: 12px 16px; border-radius: 14px; border: 1px solid #645669; background: #171517; box-shadow: inset 0 2px 7px #000d,inset 0 -1px 2px #ffffff0a,0 1px 1px #ffffff18,0 3px 8px #0004; }
.amount-field:focus-within { border-color: #c3a1f5; box-shadow: inset 0 0 12px #b28ce32b,0 0 10px #a97cd326; }
.amount-field b { font-size: 26px; font-weight: 300; color: #b8aebe; }
.amount-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); padding-inline-start: 10px; font-size: 30px; font-weight: 350; }
.order-builder > small { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }
.cycle-picker { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.cycle { min-height: 60px; border: 1px solid #514752; border-radius: 12px; background: linear-gradient(140deg,#343035,#242125); padding: 10px 3px; font-weight: 350; }
.cycle small { font-size: 12px; color: var(--muted); }
.cycle i { display: block; font-size: 12px; color: var(--lime); }
.cycle.active { border-color: #b7a0d0; background: #40334b; box-shadow: inset 0 0 12px #e1caff0d; }
.output-preview { margin-top: 24px; padding: 18px 14px; border: 1px solid #443b48; border-radius: 14px; background: radial-gradient(ellipse at 65% 160%,#c47cda30,transparent 70%),#171517; }
.output-preview > span,.output-preview strong { display: block; }
.output-preview > span { font-size: 13px; color: #b9aebf; }
.output-preview strong { font-size: 30px; font-weight: 350; margin-top: 6px; overflow-wrap: anywhere; }
.output-preview strong small { font-size: 12px; color: var(--muted); }
.output-preview p,.prototype-note { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 10px 0 0; }
.primary-button { margin-top: 20px; }
.primary-button:disabled { background: linear-gradient(120deg,#554452,#514267); border-color: #8e739c; color: #d6c8df; opacity: .75; }
.prototype-note { text-align: center; }
.active-orders { padding: 30px 0 0; }
.active-orders h2 { margin: 0; }
.empty-state { width: 100%; padding: 30px 12px; margin: 0; text-align: center; font-size: 14px; color: var(--muted); line-height: 1.7; }
.telegram-link { max-width: 260px; margin: 0 auto 24px; min-height: 46px; }
.profile-title { margin-bottom: 28px; }
.profile-title h1 { margin-top: 5px; font-size: 27px; }
.profile-avatar-large { width: 60px; height: 60px; font-size: 20px; }
.profile-avatar-large.has-photo { font-size: 0; }
.profile-balance { padding: 16px 10px 10px; }
.profile-balance-label { display: flex; align-items: center; gap: 8px; padding: 0 8px 14px; font-size: 16px; font-weight: 350; }
.profile-balance-label svg { width: 18px; height: 18px; }
.balance-vault { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 140px; padding: 24px 16px; border: 1px solid #464047; border-radius: 15px; background: #101010; box-shadow: inset 0 3px 12px #000,inset 0 -1px 1px #ffffff12,0 1px 2px #ffffff08; }
.balance-vault::before { content: ""; position: absolute; z-index: -1; width: 75%; height: 100px; bottom: -74px; border-radius: 50%; background: linear-gradient(90deg,#cf548e,#9572ff); filter: blur(24px); opacity: .85; animation: vault-breathe 6s ease-in-out infinite alternate; }
.balance-vault strong { max-width: 100%; font-size: 38px; font-weight: 300; letter-spacing: -.04em; overflow-wrap: anywhere; }
.balance-vault small { font-size: 13px; color: #c3b6c9; }
.trust-card { margin-top: 24px; }
.trust-score { display: flex; justify-content: space-between; gap: 16px; padding: 0 0 20px; }
.trust-score span { font-size: 12px; color: var(--muted); }
.trust-score strong,.trust-score small { display: block; }
.trust-score strong { font-size: 21px; font-weight: 350; margin-top: 4px; }
.trust-score small { font-size: 12px; color: var(--muted); margin-top: 4px; }
.trust-score > b { font-size: 23px; color: var(--lime); font-weight: 300; white-space: nowrap; }
.trust-card ul { list-style: none; margin: 0; padding: 0 14px; border: 1px solid #423944; border-radius: 15px; background: #201c22; }
.trust-card li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid #3b323d; font-size: 14px; }
.trust-card li:last-child { border-bottom: 0; }
.trust-card li span { color: #b7acbf; }
.trust-card li b { text-align: end; font-size: 12px; font-weight: 400; overflow-wrap: anywhere; }
.settings-list { margin-top: 22px; }
.settings-list > button,.language-setting { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 60px; padding: 13px 0; border: 0; border-bottom: 1px solid #3b353e; background: none; text-align: start; box-shadow: 0 1px 0 #0005; }
.settings-list > button > span,.language-setting > span { display: flex; align-items: center; gap: 10px; }
.settings-list i { width: 25px; display: grid; place-items: center; flex: none; color: #bfb0c9; font-size: 18px; }
.settings-list b { font-size: 14px; font-weight: 350; }
.settings-list small { font-size: 12px; color: var(--muted); text-align: end; overflow-wrap: anywhere; }
.language-setting select { max-width: 48%; border: 1px solid #4e4054; border-radius: 9px; background: #27212c; color: #d6cadf; font-size: 13px; padding: 8px; }
.policy-copy { margin-top: 24px; }
.bottom-nav { position: fixed; z-index: 30; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; width: min(100%,480px); padding: 12px 20px calc(15px + env(safe-area-inset-bottom)); border-top: 1px solid #3b353e; background: linear-gradient(180deg,#181619f5,#282429f7); backdrop-filter: blur(16px); box-shadow: 0 -1px 0 #000a; }
.bottom-nav button { flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; padding: 5px; background: none; color: #918993; border-radius: 10px; }
.bottom-nav button > span { display: grid; place-items: center; }
.bottom-nav svg { width: 24px; height: 24px; }
.bottom-nav small { display: none; min-width: 0; font-size: 13px; font-weight: 350; overflow-wrap: anywhere; }
.bottom-nav button.active { flex: 1.7; color: var(--lime); }
.bottom-nav button.active small { display: block; }
.bottom-nav button.active svg { filter: drop-shadow(0 0 8px #eef79f28); animation: nav-confirm .3s ease-out; }
.bottom-nav button:hover { background: #ffffff06; }
.sheet-backdrop { position: fixed; z-index: 50; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: #000b; }
.sheet-backdrop[hidden] { display: none; }
.bottom-sheet { position: relative; width: min(100%,480px); max-height: 82svh; overflow-y: auto; border: 1px solid #57475f; border-bottom: 0; border-radius: 26px 26px 0 0; padding: 28px 24px calc(28px + env(safe-area-inset-bottom)); background: linear-gradient(145deg,#333034,#1b181e); }
.sheet-backdrop:not([hidden]) .bottom-sheet { animation: sheet-reveal .25s ease-out both; }
.sheet-handle { width: 45px; height: 3px; border-radius: 4px; background: #dfd7e4; box-shadow: 0 0 8px #dac4ed66; margin: -16px auto 24px; }
.sheet-close { position: absolute; inset-inline-end: 16px; top: 24px; width: 36px; height: 36px; border: 1px solid #605265; border-radius: 50%; background: #38303e; color: #d3c9d8; font-size: 22px; }
.bottom-sheet h2 { margin: 0; margin-inline-end: 42px; margin-bottom: 22px; font-size: 22px; font-weight: 350; }
.sheet-note { color: var(--muted); font-size: 14px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(94px + env(safe-area-inset-bottom)); transform: translate(-50%,12px); width: max-content; max-width: min(440px,calc(100% - 40px)); padding: 12px 18px; border: 1px solid #796486; border-radius: 12px; background: #332939; color: #f0e4f6; font-size: 14px; box-shadow: 0 8px 24px #0005; opacity: 0; pointer-events: none; transition: opacity .2s,transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.energy-burst { position: absolute; z-index: 5; width: 1px; height: 1px; left: 50%; bottom: 28px; pointer-events: none; }
.energy-burst::before,.energy-burst::after { content: ""; position: absolute; width: 64px; height: 64px; left: -32px; top: -32px; border: 1px solid #d9adff; border-radius: 50%; opacity: 0; }
.energy-burst i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #f6cfed; box-shadow: 0 0 10px #d996ff; opacity: 0; }
.energy-burst i:nth-child(1) { --x:-100px; --y:-56px; }.energy-burst i:nth-child(2) { --x:-48px; --y:-95px; }.energy-burst i:nth-child(3) { --x:48px; --y:-95px; }.energy-burst i:nth-child(4) { --x:100px; --y:-56px; }.energy-burst i:nth-child(5) { --x:105px; --y:25px; }.energy-burst i:nth-child(6) { --x:-105px; --y:25px; }
.collect-success .energy-burst::before { animation: collect-ring .8s ease-out both; }
.collect-success .energy-burst::after { animation: collect-ring .8s .12s ease-out both; }
.collect-success .energy-burst i { animation: collect-particle .85s ease-out both; }
.collect-success #energy-balance { animation: balance-confirm .9s ease-out; }
html.motion-paused *,html.motion-paused *::before,html.motion-paused *::after { animation-play-state: paused !important; }
@keyframes planet-float { 0%,100% { transform: translateY(1px) rotate(-5deg); } 50% { transform: translateY(-7px) rotate(-1deg); } }
@keyframes halo-breathe { from { opacity: .5; } to { opacity: 1; } }
@keyframes orbital-travel { to { transform: rotate(360deg); } }
@keyframes starlight { 0%,100% { opacity: .15; transform: scale(.7); } 50% { opacity: .8; transform: scale(1.1); } }
@keyframes vault-breathe { from { opacity: .6; transform: scaleX(.9); } to { opacity: 1; transform: scaleX(1.1); } }
@keyframes ready-breathe { 0%,100% { box-shadow: inset 0 1px 2px #ffffff60,0 4px 14px #b075c524; } 50% { box-shadow: inset 0 1px 2px #ffffff60,0 5px 22px #cd83d449; } }
@keyframes energy-shimmer { 0%,65% { transform: translateX(-150%); } 90%,100% { transform: translateX(150%); } }
@keyframes page-reveal { from { opacity: .5; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sheet-reveal { from { opacity: .5; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes nav-confirm { 0% { transform: scale(.88); } 65% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes collect-ring { 0% { opacity: .8; transform: scale(.2); } 100% { opacity: 0; transform: scale(4); } }
@keyframes collect-particle { 0% { opacity: 0; transform: translate(0,0) scale(.5); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x),var(--y)) scale(.3); } }
@keyframes balance-confirm { 0%,100% { color: var(--text); } 35% { color: #f1c2f8; text-shadow: 0 0 16px #dba0ff88; } }
@media(min-width:760px) {
  .app-shell { border-inline: 1px solid #343034; }
  .bottom-nav { border-inline: 1px solid #343034; }
}
@media(max-width:370px) {
  .app-shell { padding-inline: 18px; }
  .topbar { margin-bottom: 24px; }
  .balance-caption { font-size: 16px; }
  .balance-value strong { font-size: 22px; }
  .mining-scene { height: 232px; }
  .node-stats { width: 108px; padding-top: 24px; gap: 7px; }
  .node-stat { padding: 9px 11px; min-height: 56px; gap: 7px; }
  .node-stat b { font-size: 21px; }
  .planet-stage { width: 234px; height: 230px; inset-inline-end: -22px; top: 0; }
  .planet-stage img { width: 230px; height: 224px; }
  .planet-orbit { inset: 25px 0; }
  .pending-line em { font-size: 44px; }
  .task-card { grid-template-columns: 36px minmax(0,1fr); padding: 17px 12px; }
  .task-art { width: 36px; height: 36px; }
  .task-action { grid-column: 2; justify-self: start; }
  .week-track { gap: 5px; }
  .mission-row { grid-template-columns: 36px minmax(0,1fr); }
  .mission-row > b { grid-column: 2; text-align: start; }
  .page-title h1 { font-size: 26px; }
  .network-hero,.order-builder { padding: 20px 15px; }
  .bottom-nav { padding-inline: 14px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Compact evolution rail with one selected form below. */
.evo-bar { display:flex; gap:8px; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; scrollbar-color:#5c5265 transparent; padding:3px 1px 10px; margin:18px 0 8px; }
.evo-bar button { position:relative; flex:0 0 48px; height:40px; border:1px solid #494249; border-radius:12px; background:linear-gradient(145deg,#302d31,#252326); color:#b8afc0; font:inherit; font-size:12px; box-shadow:inset 0 1px 1px #ffffff0d,0 3px 5px #0004; cursor:pointer; transition:background .18s,border-color .18s,color .18s; }
.evo-bar button[aria-selected="true"] { background:#393b29; border-color:#82834c; color:#eff39e; box-shadow:inset 0 1px 1px #e8f49b20,0 3px 8px #0005; }
.evo-bar button[aria-current="step"] i { position:absolute; width:3px; height:3px; bottom:4px; left:calc(50% - 1.5px); border-radius:50%; background:#e9ee9e; }
.evo-bar button:hover { border-color:#a195ad; }
.evo-panel { border:1px solid #494049; border-radius:18px; background:linear-gradient(145deg,#302c31,#211f23); box-shadow:inset 0 1px 1px #ffffff20,inset 0 -1px 3px #0009,0 8px 20px -8px #000b; }
.evo-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px; }
.evo-panel-heading h3 { margin:0; color:#f0ebf4; font-size:18px; font-weight:450; }
.evo-panel-heading div>span { display:block; color:#ada3b5; font-size:11px; margin-top:5px; }
.evo-status { font-size:11px; color:#b9afc1; }
.evo-status.is-current { color:#e9ee9e; }
.planet-stage #planet-avatar { pointer-events: auto; cursor: pointer; }
.planet-action-hint { position:absolute; inset-inline-end:24px; bottom:1px; font-size:10px; color:#c8bdcf; pointer-events:none; }
.evolution-dialog { width:min(480px,100%); max-width:100%; max-height:92dvh; margin:auto auto 0; padding:0 22px calc(24px + env(safe-area-inset-bottom)); border:1px solid #534958; border-bottom:0; border-radius:25px 25px 0 0; background:linear-gradient(155deg,#29252c,#161419); color:var(--text); box-shadow:0 -12px 60px #0007,inset 0 1px 1px #ffffff21; overflow-y:auto; overscroll-behavior:contain; }
.evolution-dialog::backdrop { background:#08060dbb; backdrop-filter:blur(5px); }
.evolution-dialog[open] { animation:sheet-reveal .25s ease-out; }
.evolution-dialog-toolbar { position:sticky; top:0; z-index:2; display:flex; justify-content:flex-end; align-items:center; height:62px; background:#28242bec; backdrop-filter:blur(14px); }
.evolution-dialog-handle { position:absolute; left:calc(50% - 22px); top:12px; width:44px; height:3px; border-radius:3px; background:#918798; }
#evolution-close { width:36px; height:36px; border:1px solid #62546a; border-radius:50%; color:#e2d5ec; background:linear-gradient(#403646,#29242f); font-size:23px; }
.evolution-dialog .evo-footnote { margin-bottom:0; }

@media(max-width:350px) { .evolution-dialog { padding-inline:16px; } }
.daily-energy-total { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:26px 0 34px; padding:18px 0; border-block:1px solid #393639; color:#bcb8bf; font-size:14px; }
.daily-energy-total strong { color:#f5f1f7; font-weight:400; white-space:nowrap; }
.daily-energy-total b { font-size:28px; font-weight:450; }
.daily-energy-total small { font-size:12px; color:#aaa4b0; }
.evo-heading { display:flex; align-items:start; justify-content:space-between; gap:12px; }
.evo-heading h2 { margin:0; font-size:24px; font-weight:400; letter-spacing:-.7px; }
.evo-heading p { font-size:12px; margin:8px 0 0; color:#aaa4b0; line-height:1.5; }
.evo-heading>span { flex-shrink:0; margin-top:4px; padding:6px 9px; font-size:12px; color:#ecefaf; border:1px solid #53543d; border-radius:8px; background:#282921; }
.evo-account-note,.evo-footnote { color:#aaa4b0; font-size:12px; line-height:1.65; margin:14px 0 0; }
.evo-detail { padding:0 14px 17px; border-top:1px solid #ffffff09; animation:evo-reveal .24s ease-out; }
.evo-art { flex:0 0 60px; width:60px; height:60px; padding:0; margin:0; border:1px solid #cdb3e51a; border-radius:14px; background:#17151b; cursor:zoom-in; box-shadow:inset 0 1px 1px #ffffff12,0 3px 8px #0004; }
.evo-thumbnail { display:block; position:relative; width:58px; height:58px; }
.evo-panel-heading { gap:12px; padding:14px; }
.evo-panel-heading .evo-title { min-width:0; flex:1; }
.evo-panel-heading h3 { font-size:17px; }
.evo-panel-heading .evo-status { flex-shrink:0; font-size:10px; }
.evo-panel-heading .evo-title>span { font-size:10px; }
.evo-detail { padding-top:17px; }
.evo-detail-rate { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; font-size:12px; color:#bbb3c3; }
.evo-detail-rate strong { font-size:21px; font-weight:450; color:#eee7f2; }
.evo-detail-rate small { font-size:11px; font-weight:400; color:#bbb3c3; }
.evo-detail h3 { font-size:12px; font-weight:400; color:#aba1b4; margin:20px 0 10px; }
.evo-requirements { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.evo-requirements span { font-size:11px; color:#b6adbd; border-inline-start:1px solid #65556e; padding-inline-start:10px; }
.evo-requirements b { display:block; font-size:20px; font-weight:400; color:#f1edf4; margin-top:6px; }
.evo-footnote { margin:17px 0 30px; padding-inline-start:0; }
.evo-viewer { position:fixed; inset:0; margin:auto; width:100%; max-width:100%; height:100%; height:100dvh; max-height:100%; padding:0; border:0; background:radial-gradient(ellipse at center,#312737,#141215 70%); color:#f5effa; }
.evo-viewer[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; }
.evo-viewer::backdrop { background:#09080bed; }
.evo-viewer header { display:flex; align-items:center; justify-content:space-between; padding:calc(18px + env(safe-area-inset-top)) 20px 12px; gap:12px; }
.evo-viewer h2 { font-size:20px; font-weight:400; margin:0; }
.evo-viewer button { min-width:44px; height:44px; border:1px solid #615367; border-radius:13px; background:linear-gradient(#423948,#29232f); box-shadow:inset 0 1px 1px #ffffff25,0 5px 14px #0006; color:#f1e6f7; font-size:22px; cursor:pointer; }
.evo-viewport { display:flex; align-items:center; justify-content:center; overflow:hidden; touch-action:none; cursor:grab; }
.evo-viewport:active { cursor:grabbing; }
.evo-model { position:relative; flex:none; width:min(96vw,64dvh,680px); height:min(96vw,64dvh,680px); transform-origin:center; }
.orbital-scene { isolation:isolate; }
.orbital-scene img { position:absolute; z-index:2; left:12%; top:12%; width:76%; height:76%; object-fit:contain; user-select:none; -webkit-user-drag:none; filter:drop-shadow(0 8px 12px #0008); }
.orbit-layer { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.orbit-back { z-index:1; }
.orbit-front { z-index:3; }
.planet-stage.orbital-scene .planet-orbit,.planet-stage.orbital-scene .planet-sparks { display:none; }
.planet-stage.orbital-scene img { left:5%; top:5%; width:90%; height:90%; }
.evo-model::before { content:""; position:absolute; inset:18%; border-radius:50%; background:radial-gradient(ellipse,#a76add29,transparent 70%); }
@media(max-width:350px) { .evo-panel-heading { gap:9px; padding:12px; }.evo-panel-heading h3 { font-size:15px; }.evo-panel-heading .evo-title>span { font-size:9px; } }
.evo-viewer footer { text-align:center; padding:12px 20px calc(24px + env(safe-area-inset-bottom)); }
.evo-viewer footer p { font-size:12px; color:#b6a9c0; margin:0 0 16px; }
.evo-viewer footer>div { display:flex; gap:10px; justify-content:center; }
.evo-viewer [data-reset] { min-width:100px; font-size:15px; }
.evo-bar button:focus-visible,.evo-art:focus-visible,.evo-viewer button:focus-visible,#planet-avatar:focus-visible { outline:2px solid #d9c0ff; outline-offset:3px; }
@keyframes evo-reveal { from { opacity:.4; transform:translateY(-5px); } to { opacity:1; transform:translateY(0); } }

/* Keep the language control beside the account, available on every page. */
.language-picker { position:relative; flex:none; z-index:20; }
.language-picker summary { display:flex; align-items:center; gap:6px; height:40px; padding:0 9px; list-style:none; cursor:pointer; font-size:12px; border:1px solid #454346; border-radius:12px; background:linear-gradient(150deg,#333,#202020); box-shadow:inset 0 1px 1px #ffffff12; }
.language-picker summary::-webkit-details-marker { display:none; }
.language-picker img { display:block; object-fit:cover; border-radius:2px; flex:none; box-shadow:0 0 0 1px #ffffff18; }
.language-picker summary svg { width:12px; height:12px; transition:transform .2s; }
.language-picker[open] summary svg { transform:rotate(180deg); }
.language-picker[open] summary { border-color:#a18dbb; }
.language-menu { position:absolute; top:calc(100% + 9px); inset-inline-end:0; width:208px; padding:6px; max-height:min(400px,65dvh); overflow:auto; overscroll-behavior:contain; border:1px solid #5c505f; border-radius:15px; background:#252127; box-shadow:inset 0 1px 1px #ffffff12,0 14px 36px #0009; }
.language-menu button { display:flex; align-items:center; gap:12px; width:100%; min-height:42px; padding:9px 10px; border:0; border-radius:9px; background:transparent; text-align:start; font-size:14px; }
.language-menu button:hover { background:#ffffff09; }
.language-menu button[aria-pressed="true"] { color:#edf3b4; background:#e4ef8f10; }
.language-check { margin-inline-start:auto; opacity:0; }
.language-menu button[aria-pressed="true"] .language-check { opacity:1; }

.home-wallet { display:flex; align-items:center; gap:10px; margin:18px 0 8px; padding:12px; border:1px solid #ffffff14; border-radius:15px; background:linear-gradient(125deg,#302b3280,#1c1a1e); box-shadow:inset 0 1px 1px #ffffff0c,0 6px 16px #0002; }
.wallet-symbol { display:grid; place-items:center; flex:none; width:28px; color:#c9b9de; }
.wallet-symbol svg { width:22px; height:22px; }
.wallet-copy { flex:1; min-width:0; }
.wallet-copy strong { display:block; font-size:13px; font-weight:450; }
.wallet-copy small { display:block; margin-top:3px; font-size:10px; line-height:1.4; color:#aaa2b0; overflow-wrap:anywhere; }
#home-wallet button { flex:none; max-width:43%; min-height:38px; padding:8px 11px; border:1px solid #c7b4e644; border-radius:10px; background:linear-gradient(135deg,#675271,#786699); box-shadow:inset 0 1px 1px #ffffff1a; font-size:12px; font-weight:500; line-height:1.25; overflow-wrap:anywhere; }
#home-wallet button:disabled { opacity:.65; }
.home-wallet.is-verified .wallet-symbol { color:var(--lime); }
.home-wallet.is-verified button { background:#313326; border-color:#777c484f; color:#edf3b4; }
@media(max-width:350px) { .home-wallet { gap:7px; padding:10px; }.wallet-symbol { display:none; }.wallet-copy strong { font-size:12px; } }

/* Shared 1A amount symbol, including small balances and reward rows. */
.token-icon { display: inline-block; width: 24px; height: 24px; flex: 0 0 auto; object-fit: contain; vertical-align: middle; filter: drop-shadow(0 2px 3px #0008); }
.balance-value { align-items: center; gap: 7px; }
.balance-value .token-icon { width: 25px; height: 25px; }
.pending-line { align-items: center; }
.pending-line .token-icon { width: 34px; height: 34px; }
.mini-balance { display: flex; align-items: center; gap: 6px; }
.balance-vault .token-icon { margin-top: 5px; width: 28px; height: 28px; }
.task-copy > span, #next-task-reward { display: inline-flex; align-items: center; gap: 4px; }
.task-copy .token-icon, #next-task-reward .token-icon { width: 19px; height: 19px; }
.core-rate{color:var(--text)!important;font-size:13px!important}.core-summary{margin:16px 0;padding:12px 0;border-block:1px solid #ffffff14}.core-summary>div{display:flex;justify-content:space-between;gap:12px;margin:8px 0;font-size:12px}.core-summary dt{color:var(--muted)}.core-summary dd{margin:0;text-align:end;font-variant-numeric:tabular-nums}.core-table-wrap{overflow-x:auto}.core-return-table{width:100%;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums}.core-return-table caption{text-align:start;margin:4px 0 14px;color:#c7bccd}.core-return-table th,.core-return-table td{padding:12px 5px;border-bottom:1px solid #ffffff12;text-align:end;overflow-wrap:anywhere}.core-return-table th:first-child{text-align:start;min-width:56px}.core-return-table thead th{font-weight:400;color:var(--muted)}.core-return-table td small{display:block;font-size:11px;margin-top:5px;color:var(--muted)}.core-return-table tr.selected{background:#cbb6ea0c;color:#eff29f}.core-conversion{display:flex;align-items:center;gap:6px}.core-conversion .amount-token-logo{width:20px;height:20px}.amount-field input[aria-invalid=true]{color:#f4b2bb}
/* Purchase checkout: match the existing compact metal panels. */
.deposit-checkout{display:grid;gap:16px;padding-bottom:20px}.deposit-payment-amount{font-size:36px;font-weight:500;letter-spacing:-1px}.deposit-payment-amount small{font-size:17px;color:#c2b9cc;letter-spacing:0}.deposit-checkout label{display:grid;gap:8px;color:#b9b0c0;font-size:13px}.deposit-checkout input{width:100%;box-sizing:border-box;min-width:0;background:#151417;color:#efedf1;border:1px solid #46404b;border-radius:12px;padding:14px 10px;font:12px ui-monospace,monospace;box-shadow:inset 0 2px 5px #0008}.deposit-history-row{width:100%;text-align:start;background:transparent;color:inherit;border:0;border-bottom:1px solid #ffffff12;cursor:pointer;gap:14px}.deposit-history .order-row>span:last-child{font-size:12px;max-width:40%;text-align:end}.deposit-history a{color:#e7eca1}.deposit-checkout .core-summary{display:block}.deposit-checkout .core-summary p{margin:8px 0}.deposit-checkout .sheet-note{margin:0;line-height:1.6}#purchase-history{width:100%;margin-top:14px}

/* The browser and Telegram use the same application and data. */
.web-login-panel[hidden],.web-sign-out[hidden]{display:none}
.web-login-panel{display:flex;flex-direction:column;gap:20px;padding:24px;margin-bottom:28px;border:1px solid #534e55;border-radius:22px;background:radial-gradient(ellipse at top right,#62517338,transparent 65%),var(--metal);box-shadow:inset 0 1px 1px #fff2,0 12px 28px #0004}
.web-eyebrow{color:var(--lime);font-size:11px;letter-spacing:.15em}
.web-login-panel h1{font-size:28px;line-height:1.1;font-weight:450;letter-spacing:-.8px;margin:10px 0}
.web-login-panel p{font-size:14px;color:var(--muted);max-width:460px;margin:0}
#web-sign-in{border:1px solid #d7c9ee;border-radius:12px;background:linear-gradient(125deg,#e4a5ce,#a795e3);box-shadow:inset 0 1px 1px #fff8,0 5px 20px #a575a32b;padding:13px 22px;color:#19151e;font-weight:650;flex:none}
#web-sign-in:disabled{opacity:.5}
.web-sign-out{display:block;margin:-12px 0 20px auto;border:0;background:none;color:var(--muted);font-size:13px}
@media(min-width:960px){
  .web-mode .app-shell{width:min(100% - 64px,1120px);padding:36px 40px 130px;margin:24px auto;border:1px solid #38343b;border-radius:28px;min-height:calc(100svh - 48px);box-shadow:0 24px 80px #0005}
  .web-mode .brand{position:absolute;top:32px;inset-inline-start:40px;margin:0}
  .web-mode .topbar{margin-inline-start:auto;width:350px;min-height:52px;margin-bottom:32px}
  .web-mode .web-login-panel{flex-direction:row;align-items:center;justify-content:space-between;padding:28px 32px}
  .web-mode .page[data-page=home].active{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px 32px;align-items:start}
  .web-mode .cosmos-hero{grid-column:1;grid-row:1 / span 8}
  .web-mode .page[data-page=home] > :not(.cosmos-hero){grid-column:2;margin-block:0}
  .web-mode .bottom-nav{bottom:24px;width:min(100% - 120px,800px);border:1px solid #524953;border-radius:22px;padding:12px 20px;box-shadow:0 10px 30px #0008}
  .web-mode .bottom-nav small{display:block}
  .web-mode .bottom-nav button.active{flex:1}
  .web-mode .page:not([data-page=home]){max-width:800px;margin-inline:auto}
}

.web-login-cancel{border:0;background:none;color:var(--muted);padding:8px;font-size:13px}.web-login-cancel[hidden]{display:none}

/* Telegram membership missions: separate join and verify controls. */
.task-controls{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:94px}.task-join{padding:9px 10px;border:1px solid #ffffff24;border-radius:10px;color:var(--text,#f5f3f7);text-align:center;text-decoration:none;font-size:12px;box-shadow:inset 0 1px 0 #ffffff0c;transition:background .2s}.task-join:hover{background:#ffffff10}.task-controls .task-action{width:100%}@media(max-width:390px){.task-controls{min-width:78px}.task-join{font-size:11px;padding:8px 6px}}

/* Social / attendance missions: frequency tag, code entry, unconfigured hint. */
.task-frequency { display: inline-block; white-space: nowrap; margin-inline-start: 6px; padding: 2px 7px; border-radius: 999px; border: 1px solid #5a4f5e; color: #bcb3c0; font-size: 10px; font-style: normal; letter-spacing: .02em; vertical-align: middle; }
.task-code { box-sizing: border-box; min-width: 0; width: 100%; max-width: 128px; padding: 9px 8px; border: 1px solid #6a5a70; border-radius: 10px; background: #221d24; color: var(--text,#f5f3f7); font: inherit; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-align: center; box-shadow: inset 0 1px 2px #0008; }
.task-code:focus { outline: none; border-color: #bc9edc; box-shadow: inset 0 1px 2px #0008, 0 0 0 3px #ad99f433; }
.task-code::placeholder { color: #7f7684; text-transform: none; letter-spacing: 0; }
.task-hint { font-size: 12px; color: var(--muted); text-align: center; }

/* Invite milestones: evenly spaced token nodes on a metal rail; lit nodes are claimable. */
.milestone-panel { position: relative; margin-top: 12px; padding: 20px 16px 16px; border: 1px solid #514c51; border-radius: 22px; background: var(--metal); box-shadow: inset 0 1px 1px #ffffff25, inset 0 -2px 3px #0008, 0 2px 3px #0007, 0 14px 28px -14px #000d; }
.milestone-panel::before { content: ""; position: absolute; z-index: 1; top: -3px; left: 36%; width: 28%; height: 3px; background: #efedf1; border-radius: 4px 4px 0 0; box-shadow: 0 2px 9px #fff8, 0 10px 24px #ffffff25; pointer-events: none; }
.milestone-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.milestone-head strong { display: block; font-size: 15px; font-weight: 400; }
.milestone-head small { display: block; margin-top: 4px; font-size: 12px; color: #bcb3c0; }
.spin-pill { flex: 0 0 auto; display: grid; justify-items: center; gap: 2px; padding: 8px 12px; border-radius: 14px; border: 1px solid #715676; background: #2d2431; box-shadow: inset 0 1px 1px #ffffff14, 0 0 18px -6px #c88ee6aa; }
.spin-pill span { font-size: 10px; color: #dab9ef; letter-spacing: .04em; text-transform: uppercase; }
.spin-pill b { font-size: 20px; font-weight: 300; line-height: 1.1; letter-spacing: -.03em; }
.milestone-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: 22px; padding: 0; }
.milestone-rail { position: absolute; top: 22px; left: 10%; right: 10%; height: 6px; border-radius: 999px; background: #1c181d; border: 1px solid #3f363f; box-shadow: inset 0 1px 2px #000a; overflow: hidden; }
.milestone-rail i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9280df, #d68ad3, #ebf58c); box-shadow: 0 0 12px #c88ee6aa; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.milestone-node { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: default; }
.milestone-logo { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid #4a404c; background: radial-gradient(circle at 35% 30%, #3b323e, #1d191e 70%); box-shadow: inset 0 1px 1px #ffffff14, 0 4px 10px -4px #000d; transition: transform .25s, box-shadow .25s, border-color .25s; }
.milestone-logo img { width: 36px; height: 36px; object-fit: contain; filter: grayscale(1) brightness(.45); transition: filter .3s; }
.milestone-node strong { font-size: 13px; font-weight: 400; color: #bcb3c0; }
.milestone-node small { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: #8f858f; }
.milestone-node small .token-icon { width: 13px; height: 13px; }
.milestone-node[data-state="claimable"] { cursor: pointer; }
.milestone-node[data-state="claimable"] .milestone-logo { border-color: #d7b9ea; background: radial-gradient(circle at 35% 30%, #4a3b52, #251e2a 70%); box-shadow: inset 0 1px 1px #ffffff2a, 0 0 0 3px #ad99f42a, 0 0 22px #c88ee6aa; animation: milestone-pulse 1.8s ease-in-out infinite alternate; }
.milestone-node[data-state="claimable"] .milestone-logo img, .milestone-node[data-state="claimed"] .milestone-logo img { filter: none; }
.milestone-node[data-state="claimable"] strong { color: var(--lime); }
.milestone-node[data-state="claimable"] small { color: #dab9ef; }
.milestone-node[data-state="claimable"]:active .milestone-logo { transform: scale(.94); }
.milestone-node[data-state="claimed"] .milestone-logo { border-color: #657044; background: radial-gradient(circle at 35% 30%, #3a3f2a, #22261a 70%); box-shadow: inset 0 1px 1px #ffffff1a, 0 0 14px -2px #ebf58c55; }
.milestone-node[data-state="claimed"] .milestone-logo::after { content: "✓"; position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--lime); color: #171717; font-size: 11px; box-shadow: 0 1px 3px #0009; }
.milestone-node[data-state="claimed"] strong { color: var(--lime); }
.milestone-node.claiming .milestone-logo { opacity: .6; animation: none; }
.milestone-note { margin: 16px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
@keyframes milestone-pulse { from { box-shadow: inset 0 1px 1px #ffffff2a, 0 0 0 3px #ad99f42a, 0 0 16px #c88ee680; } to { box-shadow: inset 0 1px 1px #ffffff2a, 0 0 0 5px #ad99f43a, 0 0 28px #c88ee6cc; } }
@media (max-width: 390px) { .milestone-logo { width: 42px; height: 42px; } .milestone-logo img { width: 30px; height: 30px; } .milestone-rail { top: 18px; } .milestone-node small { font-size: 10px; } .spin-pill { padding: 6px 10px; } }
@media (prefers-reduced-motion: reduce) { .milestone-node[data-state="claimable"] .milestone-logo { animation: none; } .milestone-rail i { transition: none; } }
[dir="rtl"] .milestone-node[data-state="claimed"] .milestone-logo::after { right: auto; left: -2px; }

/* USDT balance line on the home balance card. */
.balance-usdt { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; padding: 8px 12px; border-radius: 12px; border: 1px solid #ffffff12; background: #ffffff06; }
.balance-usdt span { font-size: 12px; color: var(--muted); }
.balance-usdt strong { font-size: 14px; font-weight: 400; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.balance-usdt b { font-weight: 400; font-size: 18px; }

/* Invite roster on the Invites page. */
.invite-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px 0 4px; }
.invite-list-heading h2 { margin: 0; font-size: 18px; font-weight: 400; }
.invite-list-heading small { font-size: 12px; color: var(--muted); }
.invite-row .level-num { font-size: 12px; letter-spacing: .02em; }
.invite-row strong { overflow-wrap: anywhere; }
.invite-state { font-size: 11px; padding: 4px 9px; border-radius: 999px; border: 1px solid #5a4f5e; color: #bcb3c0; white-space: nowrap; }
.invite-state.is-qualified { color: var(--lime); border-color: #657044; background: #373d2966; }
.invite-state.is-pending { color: #f0c987; border-color: #8a6b3a; }

/* First-run onboarding inside the Mini App. */
.onboarding-dialog { box-sizing: border-box; width: min(400px, calc(100% - 24px)); max-height: 92dvh; overflow: auto; border: 1px solid #514858; border-radius: 26px; padding: 18px 18px 22px; background: linear-gradient(160deg, #2a2330, #141216 65%); color: var(--text, #f5f3f7); box-shadow: 0 0 0 4px #ad99f41a, 0 30px 70px -30px #000; }
.onboarding-dialog::backdrop { background: #09080cd9; backdrop-filter: blur(10px); }
.ob-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.ob-dots i { width: 8px; height: 8px; border-radius: 50%; background: #3d3743; transition: background .2s, width .2s; }
.ob-dots i.is-active { width: 22px; border-radius: 999px; background: linear-gradient(90deg, #b483bd, #9280df); }
.ob-dots i.is-done { background: var(--lime); }
.ob-card { display: grid; justify-items: center; gap: 10px; text-align: center; }
.ob-card h2 { margin: 6px 0 0; font-size: 22px; font-weight: 400; letter-spacing: -.02em; }
.ob-card p { margin: 0; font-size: 14px; line-height: 1.6; color: #cfc6d3; }
.ob-hero { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 16px 26px #000b); animation: planet-float 6s ease-in-out infinite; }
.ob-icon, .ob-check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; border: 1px solid #715676; background: #423345; color: #dab9ef; font-size: 30px; box-shadow: 0 0 26px -6px #c88ee6aa; }
.ob-check { color: #171717; background: var(--lime); border-color: #c9d66a; box-shadow: 0 0 30px -4px #ebf58c88; }
.ob-reward { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; border: 1px solid #657044; background: #373d2966; color: var(--lime); font-size: 14px; }
.ob-card .primary-button { width: 100%; min-height: 46px; margin-top: 4px; }
.ob-verify { width: 100%; min-height: 44px; border: 1px solid #bc9edc; border-radius: 12px; background: transparent; color: #dab9ef; font: inherit; font-size: 14px; }
.ob-verify:disabled { opacity: .45; }
.ob-link { border: 0; background: transparent; color: #9f95a5; font: inherit; font-size: 13px; padding: 8px; }
.ob-status { min-height: 18px; margin: 0; font-size: 12px; color: #eec4d8; }
.ob-status.is-done { color: var(--lime); font-size: 14px; }
.ob-nav { width: 100%; display: grid; gap: 6px; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .ob-hero { animation: none; } }

/* Weekly invite leaderboard. */
.leaderboard-panel { position: relative; margin-top: 12px; padding: 18px 16px 14px; border: 1px solid #514c51; border-radius: 22px; background: var(--metal); box-shadow: inset 0 1px 1px #ffffff25, inset 0 -2px 3px #0008, 0 2px 3px #0007, 0 14px 28px -14px #000d; }
.lb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lb-head strong { display: block; font-size: 15px; font-weight: 400; }
.lb-head small { display: block; margin-top: 4px; font-size: 12px; color: #bcb3c0; }
.lb-prizes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.lb-prize { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; border: 1px solid #5a4f5e; font-size: 11px; color: #bcb3c0; white-space: nowrap; }
.lb-prize b { font-weight: 400; color: #dab9ef; }
.lb-prize.is-1 { border-color: #c9d66a; color: var(--lime); } .lb-prize.is-1 b { color: var(--lime); }
.lb-body { display: grid; gap: 6px; margin-top: 14px; }
.lb-row { display: grid; grid-template-columns: 26px 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #1c181d; border: 1px solid #3a333d; }
.lb-row.is-top { border-color: #715676; background: #2a2230; }
.lb-row.is-me { box-shadow: 0 0 0 1px #ad99f4aa, 0 0 16px -4px #c88ee6aa; }
.lb-rank { font-weight: 400; font-size: 14px; color: #dab9ef; text-align: center; }
.lb-row.is-top .lb-rank { color: var(--lime); }
.lb-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid #514354; color: #d9c0e6; background: #302634; font-size: 12px; }
.lb-name strong, .lb-name small { display: block; }
.lb-name strong { font-size: 14px; font-weight: 400; overflow-wrap: anywhere; }
.lb-name small { font-size: 11px; color: var(--muted); }
.lb-row em { font-style: normal; font-size: 13px; white-space: nowrap; }
.lb-me { margin-top: 4px; padding: 10px 12px; border-radius: 12px; border: 1px dashed #5a4f5e; font-size: 13px; color: #dab9ef; text-align: center; }

/* ===== Juice: Duolingo-style button physics and feedback (see juice.js) =====
   Primary buttons get a solid 3D edge that collapses on press; release bounces; balances pop; errors shake. */
:root { --edge-primary: #5a4290; --edge-secondary: #4a3d52; }
.collect-button, .primary-button, .telegram-link, .task-action, .share-button, .pending-card button, .withdraw-entry, .spin-go, .ob-verify, .withdraw-step-link, .spin-actions button, .spin-actions a, .task-join, .tier-tab {
  transition: transform .08s ease-out, box-shadow .08s ease-out, filter .15s;
  will-change: transform;
}
.collect-button, .primary-button, .telegram-link { box-shadow: inset 0 1px 2px #ffffff60, 0 5px 0 var(--edge-primary), 0 9px 18px -6px #8c61bc55; margin-bottom: 5px; }
.task-action, .share-button, .pending-card button, .spin-go { box-shadow: inset 0 1px 1px #ffffff40, 0 4px 0 var(--edge-primary); margin-bottom: 4px; }
.withdraw-entry, .task-join, .ob-verify, .withdraw-step-link, .spin-actions button, .spin-actions a { box-shadow: inset 0 1px 0 #ffffff0c, 0 4px 0 var(--edge-secondary); margin-bottom: 4px; }
.collect-button:not(:disabled):active, .primary-button:not(:disabled):active, .telegram-link:active { transform: translateY(5px); box-shadow: inset 0 1px 2px #ffffff60, 0 0 0 var(--edge-primary), 0 2px 6px -2px #8c61bc55; }
.task-action:not(:disabled):active, .share-button:active, .pending-card button:not(:disabled):active, .spin-go:not(:disabled):active { transform: translateY(4px); box-shadow: inset 0 1px 1px #ffffff40, 0 0 0 var(--edge-primary); }
.withdraw-entry:active, .task-join:active, .ob-verify:not(:disabled):active, .withdraw-step-link:not(:disabled):active, .spin-actions button:not(:disabled):active, .spin-actions a:active { transform: translateY(4px); box-shadow: inset 0 1px 0 #ffffff0c, 0 0 0 var(--edge-secondary); }
.collect-button:disabled, .task-action:disabled, .primary-button:disabled, .spin-go:disabled { box-shadow: none; transform: none; margin-bottom: 0; filter: saturate(.6); }
.spin-pill:active, .milestone-node[data-state="claimable"]:active .milestone-logo, .tier-tab:active, .cycle:active { transform: scale(.94); }

/* Release bounce, success pop, error shake: classes toggled by juice.js. */
.is-bounce { animation: juice-bounce .42s cubic-bezier(.34,1.56,.64,1) both; }
.is-pop { animation: juice-pop .52s cubic-bezier(.34,1.56,.64,1) both; }
.is-shake { animation: juice-shake .48s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes juice-bounce { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 70% { transform: scale(.97); } 100% { transform: scale(1); } }
@keyframes juice-pop { 0% { transform: scale(1); } 30% { transform: scale(1.22); color: var(--lime); } 100% { transform: scale(1); } }
@keyframes juice-shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
#energy-balance, #usdt-balance, #spin-credits b, #task-balance, #pending-energy { display: inline-block; transform-origin: 60% 50%; }

/* Bottom nav: active icon springs up; cards drop in with a stagger. */
.bottom-nav button.active > span { animation: nav-spring .45s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes nav-spring { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-5px) scale(1.18); } 100% { transform: translateY(0) scale(1); } }
.task-card, .lb-row, .invite-row, .spin-history > div, .withdraw-orders article { animation: card-in .38s cubic-bezier(.22,1,.36,1) both; }
.task-card:nth-child(2), .lb-row:nth-child(2), .invite-row:nth-child(2) { animation-delay: .05s; }
.task-card:nth-child(3), .lb-row:nth-child(3), .invite-row:nth-child(3) { animation-delay: .1s; }
.task-card:nth-child(4), .lb-row:nth-child(4), .invite-row:nth-child(4) { animation-delay: .15s; }
.task-card:nth-child(n+5), .lb-row:nth-child(n+5), .invite-row:nth-child(n+5) { animation-delay: .2s; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.task-card.done .task-art { animation: juice-pop .5s cubic-bezier(.34,1.56,.64,1) both; }

@media (prefers-reduced-motion: reduce) {
  .is-bounce, .is-pop, .is-shake, .bottom-nav button.active > span, .task-card, .lb-row, .invite-row, .spin-history > div, .withdraw-orders article, .task-card.done .task-art { animation: none !important; }
  .collect-button, .primary-button, .telegram-link, .task-action, .share-button, .pending-card button, .withdraw-entry, .spin-go, .ob-verify, .withdraw-step-link, .spin-actions button, .spin-actions a, .task-join, .tier-tab { transition: none; }
}

/* Collect flight: amount + wisps fly into the planet, which flashes, ripples and bounces on arrival (collect-fx.js). */
.fx-layer { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.fx-amount { position: fixed; left: 0; top: 0; padding: 6px 12px; border-radius: 999px; border: 1px solid #c9d66a; background: #2b2f1a; color: var(--lime); font-size: 18px; font-weight: 400; letter-spacing: -.02em; white-space: nowrap; box-shadow: 0 0 18px #ebf58c66, 0 6px 14px -6px #000c; will-change: transform, opacity; }
.fx-wisp { position: fixed; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, hsl(var(--hue, 68) 90% 70%) 55%, transparent 72%); box-shadow: 0 0 12px 3px hsl(var(--hue, 68) 90% 65% / .7); will-change: transform, opacity; }
#planet-avatar.is-receiving { animation: planet-receive .85s cubic-bezier(.34,1.56,.64,1) both; filter: drop-shadow(0 0 26px #ebf58caa) brightness(1.2); }
@keyframes planet-receive { 0% { transform: scale(1); } 22% { transform: scale(.94); } 55% { transform: scale(1.12); } 100% { transform: scale(1); filter: none; } }
.planet-ping { position: absolute; left: 50%; top: 50%; width: 46%; height: 46%; border-radius: 50%; border: 2px solid #ebf58c; box-shadow: 0 0 24px #ebf58c88, inset 0 0 18px #ebf58c55; transform: translate(-50%, -50%) scale(.6); opacity: 0; animation: planet-ping .8s ease-out both; pointer-events: none; }
@keyframes planet-ping { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.6); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); } }
@media (prefers-reduced-motion: reduce) { .fx-layer, .planet-ping { display: none; } #planet-avatar.is-receiving { animation: none; filter: none; } }

/* ===== Alive states: planet asleep/awake, milestone ignition, ringing bell ===== */
.planet-stage::before { transition: opacity .8s ease, filter .8s ease; }
.planet-stage.is-asleep::before { opacity: .45; filter: saturate(.6); animation-duration: 6s; }
.planet-stage.is-asleep #planet-avatar { filter: brightness(.86) saturate(.85); transition: filter .8s ease; }
.planet-stage.is-ready::before { opacity: 1; filter: saturate(1.3) brightness(1.25); animation-duration: 1.8s; }
.planet-stage.is-ready #planet-avatar { filter: brightness(1.06) drop-shadow(0 0 18px #ebf58c66); animation: planet-nudge 4.2s ease-in-out infinite; transition: filter .8s ease; }
@keyframes planet-nudge { 0%, 86%, 100% { transform: rotate(0) scale(1); } 89% { transform: rotate(-3deg) scale(1.03); } 92% { transform: rotate(3deg) scale(1.03); } 95% { transform: rotate(-2deg) scale(1.02); } 98% { transform: rotate(1deg) scale(1.01); } }
.planet-stage.is-ready .planet-sparks i { animation-duration: 2.2s; background: #ebf58c; box-shadow: 0 0 6px #ebf58c; }

.milestone-node.is-igniting .milestone-logo { animation: milestone-ignite 1.2s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes milestone-ignite { 0% { transform: scale(1); filter: brightness(1); } 15% { transform: scale(.9); filter: brightness(.6); } 40% { transform: scale(1.3); filter: brightness(2.2) drop-shadow(0 0 22px #ebf58c); } 70% { transform: scale(.96); filter: brightness(1.2); } 100% { transform: scale(1); filter: brightness(1); } }
.milestone-node.is-igniting .milestone-logo img { animation: milestone-ignite-img 1.2s ease-out both; }
@keyframes milestone-ignite-img { 0% { filter: grayscale(1) brightness(.45); } 40% { filter: none; } 100% { filter: none; } }
.milestone-spark { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #ebf58c; box-shadow: 0 0 8px #ebf58c; opacity: 0; animation: milestone-spark 1s ease-out .25s both; pointer-events: none; }
@keyframes milestone-spark { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) scale(.2); } }

#open-notifications.is-ringing .avatar-wrap { animation: bell-ring .9s cubic-bezier(.36,.07,.19,.97) both; transform-origin: 50% 15%; }
@keyframes bell-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-7deg); } 75% { transform: rotate(4deg); } 90% { transform: rotate(-2deg); } }
.icon-button b.is-pop, .user-chip .avatar-wrap b.is-pop { animation: juice-pop .52s cubic-bezier(.34,1.56,.64,1) both; }

@media (prefers-reduced-motion: reduce) {
  .planet-stage.is-ready #planet-avatar, .milestone-node.is-igniting .milestone-logo, .milestone-node.is-igniting .milestone-logo img, .milestone-spark, #open-notifications.is-ringing, .icon-button b.is-pop { animation: none !important; }
}
/* The arrival bounce always wins over the idle nudge. */
.planet-stage #planet-avatar.is-receiving { animation: planet-receive .85s cubic-bezier(.34,1.56,.64,1) both !important; }

/* ===== HUD: streak + level XP strip, daily quests card, chest, reward card, sound toggle ===== */
.hud-strip { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin: 0 0 12px; }
.hud-strip[hidden] { display: none; }
.hud-pill { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px; border-radius: 16px; border: 1px solid #514c51; background: var(--metal); color: inherit; font: inherit; text-align: start; box-shadow: inset 0 1px 1px #ffffff20, 0 4px 0 var(--edge-secondary); margin-bottom: 4px; transition: transform .08s, box-shadow .08s; }
.hud-pill:active { transform: translateY(4px); box-shadow: inset 0 1px 1px #ffffff20, 0 0 0 var(--edge-secondary); }
.hud-pill b { font-size: 20px; font-weight: 400; letter-spacing: -.03em; }
.hud-pill small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.hud-flame { font-size: 20px; filter: drop-shadow(0 0 8px #ffb44780); animation: flame-flicker 1.6s ease-in-out infinite alternate; }
.hud-streak.is-cold .hud-flame { filter: grayscale(1) brightness(.7); animation: flame-cold 1.2s ease-in-out infinite alternate; }
.hud-streak.is-cold b { color: var(--muted); }
@keyframes flame-flicker { from { transform: scale(1) rotate(-3deg); } to { transform: scale(1.12) rotate(3deg); } }
@keyframes flame-cold { from { opacity: .55; } to { opacity: 1; } }
.hud-level { flex-direction: row; gap: 10px; min-width: 0; }
.hud-level .hud-badge { flex: 0 0 auto; display: grid; place-items: center; min-width: 38px; height: 32px; padding: 0 8px; border-radius: 10px; background: linear-gradient(135deg,#b483bd,#9280df); color: #fff; font-size: 14px; box-shadow: inset 0 1px 1px #ffffff40; }
.hud-level .hud-xp { flex: 1; min-width: 40px; height: 10px; border-radius: 999px; background: #1c181d; border: 1px solid #3f363f; overflow: hidden; }
.hud-level .hud-xp i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#9280df,#d68ad3,#ebf58c); box-shadow: 0 0 10px #c88ee6aa; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.hud-level small { flex: 0 0 auto; max-width: 42%; white-space: normal; line-height: 1.2; }

.daily-quests { margin-top: 12px; }
.daily-quests[hidden] { display: none; }
.quest-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quest-head h2 { margin: 0; font-size: 18px; font-weight: 400; }
.quest-head small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.quest-chest { position: relative; width: 64px; height: 56px; border: 0; background: none; padding: 0; cursor: pointer; }
.chest-lid, .chest-box { position: absolute; left: 6px; right: 6px; border-radius: 10px; border: 1px solid #715676; background: linear-gradient(160deg,#4a3b52,#2a2230); box-shadow: inset 0 1px 1px #ffffff1a; }
.chest-lid { top: 4px; height: 20px; border-radius: 12px 12px 4px 4px; transform-origin: 50% 100%; transition: transform .35s cubic-bezier(.34,1.56,.64,1); z-index: 2; }
.chest-box { top: 20px; bottom: 2px; display: grid; place-items: center; color: #bcb3c0; font-size: 13px; }
.quest-chest:disabled { cursor: not-allowed; }
.quest-chest.is-ready { animation: chest-wiggle 1.4s ease-in-out infinite; }
.quest-chest.is-ready .chest-lid, .quest-chest.is-ready .chest-box { border-color: #c9d66a; box-shadow: inset 0 1px 1px #ffffff1a, 0 0 18px #ebf58c66; }
.quest-chest.is-ready .chest-box { color: var(--lime); }
.quest-chest.is-ready:active .chest-lid { transform: rotateX(-70deg); }
.quest-chest.is-claimed .chest-lid { transform: translateY(-6px) rotateX(-60deg); opacity: .7; }
.quest-chest.is-claimed .chest-box { color: var(--lime); border-color: #657044; }
@keyframes chest-wiggle { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-6deg); } 86% { transform: rotate(6deg); } 94% { transform: rotate(-3deg); } }
.quest-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.quest-list li { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #1c181d; border: 1px solid #3a333d; }
.quest-list li.is-done { border-color: #657044; background: #22261a; }
.quest-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #302634; border: 1px solid #514354; font-size: 16px; }
.quest-copy { display: grid; gap: 6px; min-width: 0; }
.quest-copy strong { font-size: 14px; font-weight: 400; }
.quest-bar { display: block; height: 8px; border-radius: 999px; background: #121114; border: 1px solid #3f363f; overflow: hidden; }
.quest-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#9280df,#ebf58c); transition: width .7s cubic-bezier(.2,.8,.2,1); }
.quest-list li.is-done .quest-bar i { background: var(--lime); }
.quest-list em { font-style: normal; font-size: 13px; color: #bcb3c0; white-space: nowrap; }
.quest-list li.is-done em { color: var(--lime); }
.quest-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }

.reward-fx { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .2s; }
.reward-fx.is-in { opacity: 1; pointer-events: auto; }
.reward-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.reward-burst i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 2px; opacity: 0; animation: reward-burst .9s cubic-bezier(.2,.8,.3,1) both; }
@keyframes reward-burst { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) scale(.3); } }
.reward-card { position: relative; min-width: 200px; padding: 22px 28px; border-radius: 22px; border: 1px solid #c9d66a; background: radial-gradient(circle at 30% 15%,#3a3f2a,#1d201a 70%); box-shadow: 0 0 0 4px #ebf58c22, 0 0 40px #ebf58c66, 0 30px 60px -20px #000; text-align: center; transform: scale(.6); animation: reward-in .55s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes reward-in { to { transform: scale(1); } }
.reward-card small { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #dab9ef; }
.reward-card strong { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 36px; font-weight: 300; letter-spacing: -.04em; color: var(--lime); text-shadow: 0 0 24px #ebf58c66; }
.reward-card strong .amount-token-logo { width: 32px; height: 32px; }
.reward-card p { margin: 6px 0 0; font-size: 13px; color: #d5d9c0; }

@media (max-width: 390px) { .hud-pill b { font-size: 18px; } .hud-level small { max-width: 48%; font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .hud-flame, .quest-chest.is-ready, .reward-burst i, .reward-card { animation: none !important; } .reward-card { transform: none; } }

/* ===== High-level planet life: meteors (L4+) and an orbiting ship (L7+), gated by data-orbit-level ===== */
.planet-meteors, .planet-ship-orbit { display: none; }
.planet-stage[data-orbit-level="4"] .planet-meteors, .planet-stage[data-orbit-level="5"] .planet-meteors, .planet-stage[data-orbit-level="6"] .planet-meteors, .planet-stage[data-orbit-level="7"] .planet-meteors, .planet-stage[data-orbit-level="8"] .planet-meteors, .planet-stage[data-orbit-level="9"] .planet-meteors, .planet-stage[data-orbit-level="10"] .planet-meteors { display: block; }
.planet-stage[data-orbit-level="7"] .planet-ship-orbit, .planet-stage[data-orbit-level="8"] .planet-ship-orbit, .planet-stage[data-orbit-level="9"] .planet-ship-orbit, .planet-stage[data-orbit-level="10"] .planet-ship-orbit { display: block; }
.planet-meteors { position: absolute; inset: -6%; z-index: 1; pointer-events: none; overflow: visible; }
.planet-meteors i { position: absolute; width: 54px; height: 1.5px; border-radius: 999px; background: linear-gradient(90deg, transparent, #ffffff99 70%, #fff); opacity: 0; transform-origin: 100% 50%; filter: drop-shadow(0 0 4px #fff8); }
.planet-meteors i::after { content: ""; position: absolute; right: -1px; top: -1.5px; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px #ffffffaa; }
.planet-meteors .m1 { left: 72%; top: 6%; transform: rotate(-145deg); animation: meteor-a 13s ease-in infinite 3s; }
.planet-meteors .m2 { left: 10%; top: 30%; width: 38px; transform: rotate(-20deg); animation: meteor-b 19s ease-in infinite 9s; }
.planet-meteors .m3 { left: 60%; top: 78%; width: 30px; transform: rotate(-160deg); animation: meteor-a 23s ease-in infinite 15s; }
@keyframes meteor-a { 0%, 91% { opacity: 0; translate: 0 0; } 93% { opacity: 1; } 100% { opacity: 0; translate: -150px 95px; } }
@keyframes meteor-b { 0%, 92% { opacity: 0; translate: 0 0; } 94% { opacity: 1; } 100% { opacity: 0; translate: 140px -60px; } }
.planet-ship-orbit { position: absolute; z-index: 3; inset: 26px -16px; border-radius: 50%; transform: rotate(-30deg) scaleY(.44); pointer-events: none; }
.planet-ship-track { position: absolute; inset: 0; border-radius: 50%; animation: orbital-travel 26s linear infinite; }
.planet-ship { position: absolute; width: 22px; height: 11px; left: 50%; top: -6px; margin-left: -11px; transform: scaleY(2.27) rotate(-30deg); filter: drop-shadow(0 0 6px #ebf58c88); animation: ship-thrust 1.1s ease-in-out infinite alternate; }
@keyframes ship-thrust { from { filter: drop-shadow(0 0 4px #ebf58c66); } to { filter: drop-shadow(0 0 9px #ebf58ccc); } }
@media (prefers-reduced-motion: reduce) { .planet-meteors, .planet-ship-orbit { display: none !important; } }

/* 1A envelopes: Invites card, send form and the claim overlay (ENVELOPE_PLAN.md). */
.envelope-panel { position: relative; margin-top: 12px; padding: 18px 16px 14px; border: 1px solid #6a4a4a; border-radius: 22px; background: linear-gradient(160deg,#3a2426,#1d1518 60%,#171316); box-shadow: inset 0 1px 1px #ffffff20, inset 0 -2px 3px #0008, 0 2px 3px #0007, 0 14px 28px -14px #000d; }
.envelope-panel .env-badge { font-size: 26px; line-height: 1; filter: drop-shadow(0 3px 6px #0009); }
.envelope-panel .env-send { margin-top: 14px; min-height: 48px; }
.env-list { margin-top: 14px; display: grid; gap: 6px; }
.env-list-title { display: block; margin-bottom: 2px; font-size: 12px; color: #c9b8ba; }
.env-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #1c171a; border: 1px solid #3d2f33; }
.env-glyph { font-size: 18px; line-height: 1; }
.env-copy { display: grid; gap: 2px; min-width: 0; }
.env-copy strong { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 400; }
.env-copy small { font-size: 11px; color: #b8a9ad; }
.env-copy .amount-token-logo { width: 13px; height: 13px; }
.env-form { display: grid; gap: 14px; margin-top: 16px; }
.env-form label { display: grid; gap: 8px; font-size: 14px; }
.env-form input { box-sizing: border-box; width: 100%; min-width: 0; border: 1px solid #504856; border-radius: 12px; background: #171519; box-shadow: inset 0 2px 7px #0006; padding: 13px; color: #fff; font: inherit; }
.env-form input:focus { outline: 2px solid #b69bdf; outline-offset: 2px; }
.env-form .primary-button { margin-top: 4px; }
.env-balance { margin: 0; font-size: 12px; color: #c1b9c8; }
.env-overlay { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; padding: 20px; background: #0b0a0ccc; backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.env-overlay.is-in { opacity: 1; }
.env-card { position: relative; box-sizing: border-box; width: min(100%, 360px); max-height: 90vh; overflow: auto; padding: 28px 22px 22px; border-radius: 28px; border: 1px solid #8a4a4e; background: radial-gradient(circle at 50% 0%,#6a2b31,#2a1417 65%,#1a1113); box-shadow: inset 0 1px 1px #ffffff2a, 0 30px 60px -20px #000; color: #f8f1f1; text-align: center; transform: translateY(16px) scale(.96); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.env-overlay.is-in .env-card { transform: none; }
.env-close { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #ffffff18; color: #fff; font-size: 20px; line-height: 1; }
.env-from { display: block; font-size: 13px; color: #e8c9c9; }
.env-seal { display: grid; justify-items: center; gap: 10px; margin: 26px auto 10px; padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.env-seal-coin { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 35% 30%,#ffe9a3,#d9a441 55%,#8a5a12); box-shadow: 0 0 0 6px #ffffff14, 0 0 32px #f2c55c88, 0 12px 24px -8px #000c; animation: env-pulse 1.6s ease-in-out infinite alternate; }
.env-seal-coin .amount-token-logo { width: 54px; height: 54px; filter: drop-shadow(0 2px 3px #0008); }
.env-seal-text { font-size: 18px; font-weight: 500; letter-spacing: .3px; }
.env-seal:disabled { opacity: .6; }
.env-seal:active .env-seal-coin { transform: scale(.94); }
.env-hint { margin: 0; font-size: 12px; color: #d9bcbc; }
.env-result { margin: 22px 0 8px; display: grid; gap: 6px; }
.env-result small { font-size: 13px; color: #e8c9c9; }
.env-result strong { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 40px; font-weight: 500; letter-spacing: -1px; color: #ffd36a; }
.env-result strong .amount-token-logo { width: 34px; height: 34px; }
.env-result .env-miss { font-size: 20px; color: #f3dede; }
.env-claims { margin-top: 14px; text-align: start; }
.env-claims small { display: block; margin-bottom: 8px; font-size: 12px; color: #d9bcbc; }
.env-claims ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 34vh; overflow: auto; }
.env-claims li { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: #ffffff0f; }
.env-claims li.is-me { box-shadow: 0 0 0 1px #ffd36a99; }
.env-claims li.is-empty { display: block; text-align: center; font-size: 13px; color: #d9bcbc; }
.env-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #5a2f34; font-size: 11px; }
.env-who { display: grid; min-width: 0; }
.env-who strong { font-size: 13px; font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.env-who small { font-size: 11px; color: #ffd36a; }
.env-claims li b { font-size: 14px; font-weight: 500; color: #ffd36a; }
.env-card .primary-button { margin-top: 16px; min-height: 48px; }
@keyframes env-pulse { from { box-shadow: 0 0 0 6px #ffffff14, 0 0 24px #f2c55c66, 0 12px 24px -8px #000c; } to { box-shadow: 0 0 0 10px #ffffff10, 0 0 44px #f2c55caa, 0 12px 24px -8px #000c; } }
@media (prefers-reduced-motion: reduce) { .env-seal-coin { animation: none; } .env-card { transition: none; } }
