:root {
  --bg: #040504;
  --bg2: #070908;
  --panel: rgba(8, 10, 9, 0.92);
  --line: rgba(255, 255, 255, 0.11);
  --line2: rgba(255, 255, 255, 0.2);
  --text: #f2f3f2;
  --muted: #858c88;
  --dim: #5a605c;
  --green: #35f59b;
  --green2: #1fd683;
  --greenbg: rgba(53, 245, 155, 0.08);
  --red: #ff5a5a;
  --yellow: #f5d76e;
  --cyan: #6ee7ff;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --r: 6px;
  --head: 68px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: var(--mono); font-size: 14px; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--text); }
em { font-style: normal; color: var(--green); }
.muted { color: var(--muted); }
::selection { background: var(--green); color: #000; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50; height: var(--head);
  display: flex; align-items: center; gap: 28px; padding: 0 28px;
  background: rgba(4, 5, 4, 0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--sans); font-weight: 700; font-size: 25px; letter-spacing: .04em; }
.logo { width: 36px; height: 36px; display: block; object-fit: contain; }
.logo-core { color: var(--green); fill: var(--green); }
.nav { display: flex; gap: 6px; margin-left: 40px; }
.nav a { padding: 8px 12px; font-size: 12.5px; font-weight: 500; letter-spacing: .08em; color: #d8dbd9; transition: color .15s; white-space: nowrap; }
.nav a::before { content: '[ '; color: var(--dim); }
.nav a::after { content: ' ]'; color: var(--dim); }
.nav a:hover, .nav a.on { color: var(--green); }
.nav a.on::before, .nav a.on::after { color: var(--green); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.search { position: relative; display: flex; align-items: center; gap: 10px; width: 260px; height: 40px; padding: 0 14px; border: 1px solid var(--line2); border-radius: var(--r); background: #000; }
.search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.search input { width: 100%; background: none; border: 0; outline: none; font-size: 12.5px; }
.search input::placeholder { color: var(--dim); }
.search:focus-within { border-color: var(--green); }
.search-results { position: absolute; top: 46px; left: 0; right: 0; background: #060807; border: 1px solid var(--line2); border-radius: var(--r); display: none; overflow: hidden; }
.search-results.open { display: block; }
.sr { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; font-size: 12px; }
.sr img { width: 26px; height: 26px; }
.sr:hover, .sr.on { background: var(--greenbg); }
.sr b { color: #fff; } .sr span { color: var(--muted); margin-left: auto; font-size: 11px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 4px; font-weight: 600; font-size: 12.5px; letter-spacing: .06em; white-space: nowrap; transition: transform .12s, background .15s, box-shadow .15s; }
.btn svg { width: 16px; height: 16px; }
.btn-green { background: var(--green); color: #021b0e; }
.btn-green:hover { background: #5cffb2; box-shadow: 0 0 0 4px rgba(53, 245, 155, .14); }
.btn-green:active { transform: translateY(1px); }
.btn-line { border: 1px solid var(--green); color: var(--green); }
.btn-line:hover { background: var(--greenbg); }
.btn-ghost { border: 1px solid var(--line2); color: #ddd; }
.btn-ghost:hover { border-color: #fff; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 14px; }
.btn.wide { width: 100%; }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line2); border-radius: var(--r); flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { width: 16px; height: 1.5px; background: #fff; }

/* ---------- views ---------- */
.view { display: none; }
.view.active { display: block; }

/* ---------- stage ---------- */
.stage { position: relative; height: clamp(560px, calc(100vh - var(--head) - 250px), 820px); min-height: 560px; overflow: hidden; border-bottom: 1px solid var(--line); }
#net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.hero {
  position: absolute; left: 0; top: 0; bottom: 0; width: 470px; padding: 52px 28px 28px 56px;
  background: linear-gradient(90deg, rgba(4,5,4,.96) 0%, rgba(4,5,4,.88) 62%, rgba(4,5,4,0) 100%);
  pointer-events: none; display: flex; flex-direction: column;
}
.hero > * { pointer-events: auto; }
.eyebrow { color: var(--green); font-size: 12.5px; letter-spacing: .08em; margin-bottom: 18px; }
.hero h1 { font-family: var(--sans); font-weight: 700; font-size: 62px; line-height: .98; letter-spacing: -.03em; margin-bottom: 24px; max-width: 380px; }
.hero p { color: #cfd2d0; font-size: 15px; line-height: 1.65; margin-bottom: 26px; }
.hero .btn-lg { align-self: flex-start; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: auto; padding-top: 28px; }
.step svg { width: 34px; height: 34px; color: var(--green); margin-bottom: 10px; display: block; }
.step b { display: block; color: var(--green); font-size: 12.5px; font-weight: 500; margin-bottom: 6px; }
.step span { color: var(--muted); font-size: 11px; line-height: 1.5; }

.map-ui { position: absolute; top: 18px; right: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; transition: right .3s ease; z-index: 3; }
.minimap { width: 176px; height: 118px; border: 1px solid var(--line2); border-radius: var(--r); background: rgba(4,5,4,.85); cursor: crosshair; }
.minimap canvas { width: 100%; height: 100%; display: block; }
.zoom { display: flex; flex-direction: column; border: 1px solid var(--line2); border-radius: var(--r); background: rgba(4,5,4,.85); overflow: hidden; }
.zoom button { width: 40px; height: 38px; font-size: 20px; display: grid; place-items: center; }
.zoom button + button { border-top: 1px solid var(--line); }
.zoom button:hover { color: var(--green); background: var(--greenbg); }
.zoom svg { width: 16px; height: 16px; }
.stage.panel-open .map-ui { right: 408px; }

.counters { position: absolute; left: 470px; bottom: 18px; display: flex; gap: 22px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(4,5,4,.8); font-size: 11px; letter-spacing: .08em; color: var(--muted); z-index: 2; }
.counters div { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.counters b { color: #fff; font-weight: 600; font-size: 13px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.dot.live { box-shadow: 0 0 0 0 rgba(53,245,155,.6); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(53,245,155,.55); } 80%,100% { box-shadow: 0 0 0 7px rgba(53,245,155,0); } }
.hint { position: absolute; right: 18px; bottom: 18px; font-size: 10.5px; letter-spacing: .12em; color: var(--dim); pointer-events: none; transition: right .3s; }
.stage.panel-open .hint { display: none; }

.focus-bar { position: absolute; top: 18px; left: 50%; transform: translate(-50%, -80px); display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 16px; background: #000; border: 1px solid var(--green); border-radius: var(--r); font-size: 12px; letter-spacing: .06em; color: var(--green); transition: transform .3s; z-index: 4; }
.focus-bar { visibility: hidden; } .focus-bar.on { transform: translate(-50%, 0); visibility: visible; }
.focus-bar button { padding: 6px 10px; border: 1px solid var(--line2); border-radius: 4px; font-size: 11px; color: #fff; }
.focus-bar button:hover { border-color: #fff; }

/* ---------- side panel ---------- */
.panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 390px; z-index: 5;
  background: var(--panel); backdrop-filter: blur(8px); border-left: 1px solid var(--line2);
  transform: translateX(105%); visibility: hidden; transition: transform .3s ease, visibility .3s; overflow-y: auto; padding: 20px 20px 28px;
  scrollbar-width: thin; scrollbar-color: #222 transparent;
}
.panel.open { transform: none; visibility: visible; }
.p-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 1px solid var(--line2); border-radius: 4px; color: var(--muted); }
.p-close:hover { color: #fff; border-color: #fff; }
.p-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; padding-right: 40px; }
.p-avatar { width: 66px; height: 66px; border: 1px solid var(--line2); border-radius: var(--r); display: grid; place-items: center; background: #000; flex: none; position: relative; overflow: hidden; }
.p-avatar img.robo { width: 54px; height: 54px; }
.p-avatar img.coin { position: absolute; right: 3px; bottom: 3px; width: 20px; height: 20px; border-radius: 50%; object-fit: cover; border: 1px solid #000; }
.p-title { font-size: 20px; font-weight: 700; }
.p-title small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.p-sub { color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.p-mine { display: inline-block; margin-top: 6px; padding: 2px 6px; font-size: 10px; border: 1px solid var(--green); color: var(--green); border-radius: 3px; letter-spacing: .08em; }
.p-level { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.p-level b { color: var(--green); }
.bar { height: 6px; background: #151816; border-radius: 3px; overflow: hidden; margin-bottom: 16px; }
.bar i { display: block; height: 100%; background: var(--green); transition: width .4s; }
.p-status { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-bottom: 14px; background: #000; }
.p-status .st { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.p-status .st b { color: #fff; }
.p-action { font-size: 13.5px; color: #fff; }
.p-action::before { content: '> '; color: var(--green); }
.p-line { margin-top: 8px; font-size: 12px; color: var(--muted); font-style: italic; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 14px; }
.grid3 > div { padding: 10px 12px; }
.grid3 > div + div { border-left: 1px solid var(--line); }
.grid3 span { display: block; font-size: 10px; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.grid3 b { font-size: 15px; }
.p-sec { font-size: 11px; letter-spacing: .12em; color: var(--muted); margin: 18px 0 8px; display: flex; justify-content: space-between; }
.p-persona { font-size: 12px; line-height: 1.55; color: #cfd2d0; border-left: 2px solid var(--green); padding: 2px 0 2px 10px; }
.p-persona b { color: var(--green); display: block; font-size: 11px; letter-spacing: .1em; margin-bottom: 3px; }
.p-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 4px; }
.p-btns .btn { height: 40px; font-size: 11.5px; }
.p-btns .btn.active { background: var(--green); color: #021b0e; }
.p-log { font-size: 11.5px; line-height: 1.5; }
.p-log div { display: flex; gap: 10px; padding: 4px 0; border-bottom: 1px dashed rgba(255,255,255,.05); }
.p-log time { color: var(--dim); flex: none; }
.p-log .k-connect, .p-log .k-level, .p-log .k-milestone, .p-log .k-xp { color: var(--green); }
.tree { font-size: 12.5px; line-height: 1.7; white-space: pre; overflow-x: auto; }
.tree a { cursor: pointer; } .tree a:hover { color: var(--green); }
.tree .root { color: var(--green); font-weight: 700; }
.tree .br { color: var(--dim); }
.coin-box { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-top: 10px; }
.coin-box .kv { display: flex; justify-content: space-between; font-size: 12px; padding: 5px 0; }
.coin-box .kv span { color: var(--muted); }
.ca { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 8px 10px; background: #000; border: 1px dashed var(--line2); border-radius: 4px; font-size: 11px; color: var(--muted); cursor: pointer; }
.ca:hover { color: #fff; border-color: var(--green); }
.spark { width: 100%; height: 64px; display: block; margin-bottom: 6px; }
.up { color: var(--green); } .down { color: var(--red); }

/* ---------- dashboard ---------- */
.dash { display: grid; grid-template-columns: 1.55fr 1fr 1fr .95fr; gap: 16px; padding: 18px 28px 28px; }
.dash-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card { border: 1px solid var(--line2); border-radius: var(--r); background: var(--bg2); padding: 16px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-h h3 { font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.see { font-size: 11px; color: var(--muted); } .see:hover { color: var(--green); }
.live-tag { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--green); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stats b { display: block; font-size: 20px; font-weight: 600; margin-bottom: 4px; font-family: var(--sans); }
.stats span { font-size: 11px; color: var(--muted); }
.top-agents { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ta { position: relative; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 6px 10px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.ta:hover { border-color: var(--green); background: var(--greenbg); }
.ta.first { border-color: var(--green); }
.ta .n { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; display: grid; place-items: center; font-size: 10px; background: #fff; color: #000; border-radius: 3px; font-weight: 700; }
.ta.first .n { background: var(--green); }
.ta img { width: 42px; height: 42px; }
.ta b { display: block; font-size: 12px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta span { display: block; font-size: 11px; color: var(--muted); }
.ta i { font-style: normal; font-size: 11px; }
.launch-list { display: flex; flex-direction: column; }
.ll { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; }
.ll:first-child { border-top: 0; padding-top: 0; }
.ll:hover b { color: var(--green); }
.ll .ic { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 5px; display: grid; place-items: center; flex: none; }
.ll .ic img { width: 30px; height: 30px; }
.ll b { display: block; font-size: 12.5px; }
.ll span { font-size: 11px; color: var(--muted); }
.ll .v { margin-left: auto; font-size: 12.5px; text-align: right; }
.ll.fresh { animation: fresh 1.6s ease; }
@keyframes fresh { 0% { background: rgba(53,245,155,.18); } 100% { background: transparent; } }
.feed { height: 272px; overflow: hidden; font-size: 11.5px; line-height: 1.5; display: flex; flex-direction: column; gap: 2px; mask-image: linear-gradient(#000 70%, transparent); }
.fe { display: flex; gap: 10px; padding: 4px 0; animation: fin .35s ease; cursor: pointer; }
.fe time { color: var(--dim); flex: none; }
.fe p { color: #d2d5d3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fe.k-connect p, .fe.k-launch p, .fe.k-level p, .fe.k-milestone p { color: var(--green); }
.fe.k-launch p { font-weight: 700; }
.fe:hover p { color: #fff; }
@keyframes fin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.mine { display: flex; flex-direction: column; }
.mine-body { display: flex; gap: 14px; align-items: stretch; flex: 1; }
.mine-av { width: 116px; border: 1px solid var(--line); border-radius: var(--r); display: grid; place-items: center; background: #000; flex: none; }
.mine-av img { width: 92px; height: 92px; }
.mine-info { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mine-info .lv { font-size: 15px; font-weight: 600; }
.mine-info .xp { font-size: 12px; color: #cfd2d0; }
.mine-info .bar { margin: 0; }
.mine-info .btn { height: 38px; font-size: 11.5px; justify-content: space-between; }
.mine-empty { text-align: center; padding: 6px 0; }
.mine-empty img { width: 84px; height: 84px; opacity: .5; }
.mine-empty p { color: var(--muted); font-size: 12px; margin: 10px 0 14px; line-height: 1.5; }
.mine-switch { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.mine-switch button { font-size: 10.5px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); }
.mine-switch button.on { border-color: var(--green); color: var(--green); }

/* ---------- pages ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 48px 28px 60px; }
.page-h { margin-bottom: 28px; }
.page-h h2 { font-family: var(--sans); font-size: 48px; letter-spacing: -.03em; line-height: 1; margin-bottom: 12px; }
.launch-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.form label, .form .label { display: flex; flex-direction: column; gap: 7px; font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.form input, .form textarea, .toolbar input, .toolbar select {
  background: #000; border: 1px solid var(--line2); border-radius: 4px; padding: 11px 12px; font-size: 13px; outline: none; resize: vertical; letter-spacing: 0;
}
.form input:focus, .form textarea:focus, .toolbar input:focus, .toolbar select:focus { border-color: var(--green); }
.form input.file { padding: 8px; font-size: 11.5px; color: var(--muted); }
.form input.file::file-selector-button { background: #111; color: #fff; border: 1px solid var(--line2); border-radius: 3px; padding: 4px 8px; margin-right: 8px; font: inherit; cursor: pointer; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sep { color: var(--green); font-size: 12px; letter-spacing: .1em; margin-top: 8px; padding-top: 14px; border-top: 1px dashed var(--line2); }
.variants { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.variants button { height: 74px; border: 1px solid var(--line2); border-radius: var(--r); display: grid; place-items: center; background: #000; }
.variants button img { width: 52px; height: 52px; }
.variants button.on { border-color: var(--green); background: var(--greenbg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 8px 12px; border: 1px solid var(--line2); border-radius: 4px; font-size: 12px; }
.chips button.on { border-color: var(--green); color: var(--green); background: var(--greenbg); }
.preview { position: sticky; top: calc(var(--head) + 20px); }
.preview-stage { height: 280px; border: 1px solid var(--line); border-radius: var(--r); background:
  linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0/28px 28px,
  linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0/28px 28px, #000; }
.preview-stage canvas { width: 100%; height: 100%; display: block; }
.preview-meta { padding-top: 16px; }
.pv-ticker { font-size: 26px; font-weight: 700; color: var(--green); }
.pv-name { color: var(--muted); margin: 4px 0 14px; font-size: 12.5px; }
.kv { display: flex; justify-content: space-between; font-size: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.kv span { color: var(--muted); letter-spacing: .08em; }
.pv-prompt { margin-top: 12px; font-size: 12px; line-height: 1.55; color: #cfd2d0; border-left: 2px solid var(--green); padding-left: 10px; min-height: 20px; }

.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input { flex: 1; min-width: 200px; }
.toolbar select { font-size: 12px; cursor: pointer; }
.table-card { padding: 0; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; font-weight: 500; font-size: 10.5px; letter-spacing: .1em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.tbl td { padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr { cursor: pointer; }
.tbl tbody tr:hover td { background: var(--greenbg); }
.tbl img { width: 30px; height: 30px; display: block; }
.tbl .tk { font-weight: 700; } .tbl .nm { color: var(--muted); font-size: 11px; }
.st-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: .08em; }
.st-pill i { width: 6px; height: 6px; border-radius: 50%; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { padding: 9px 14px; border: 1px solid var(--line2); border-radius: 4px; font-size: 12px; letter-spacing: .06em; }
.tabs button.on { border-color: var(--green); color: var(--green); background: var(--greenbg); }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.pod { border: 1px solid var(--line2); border-radius: var(--r); padding: 18px; display: flex; gap: 16px; align-items: center; cursor: pointer; background: var(--bg2); }
.pod:hover { border-color: var(--green); }
.pod.p1 { border-color: var(--green); background: linear-gradient(135deg, rgba(53,245,155,.1), transparent 60%), var(--bg2); }
.pod img { width: 64px; height: 64px; }
.pod .rk { font-size: 34px; font-weight: 700; color: var(--dim); font-family: var(--sans); }
.pod.p1 .rk { color: var(--green); }
.pod b { font-size: 17px; display: block; }
.pod span { color: var(--muted); font-size: 12px; }
.pod .val { margin-left: auto; text-align: right; font-size: 16px; font-weight: 600; }

.foot { display: flex; justify-content: space-between; gap: 14px; padding: 18px 28px 26px; font-size: 11px; color: #bbb; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ---------- modal & toasts ---------- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(4px); display: none; place-items: center; z-index: 100; padding: 20px; }
.modal.open { display: grid; }
.modal-box { width: min(460px, 100%); border: 1px solid var(--green); border-radius: var(--r); background: #000; padding: 26px; }
.modal-box h3 { font-size: 28px; margin-bottom: 18px; }
.lm-steps { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.lm-steps li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); }
.lm-steps li::before { content: '[ ]'; color: var(--dim); }
.lm-steps li.run { color: #fff; } .lm-steps li.run::before { content: '[~]'; color: var(--yellow); }
.lm-steps li.done { color: var(--green); } .lm-steps li.done::before { content: '[✓]'; color: var(--green); }
.lm-term { font-family: var(--mono); font-size: 11px; color: var(--muted); background: #050605; border: 1px solid var(--line); border-radius: 4px; padding: 10px; height: 96px; overflow: hidden; white-space: pre-wrap; }
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 120; }
.toast { background: #000; border: 1px solid var(--green); color: #fff; padding: 12px 16px; border-radius: var(--r); font-size: 12.5px; max-width: 340px; animation: fin .3s ease; }
.toast b { color: var(--green); }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .dash { grid-template-columns: 1fr 1fr; }
  .nav { margin-left: 8px; }
  .search { width: 200px; }
}
@media (max-width: 1100px) {
  .hero { width: 400px; padding-left: 32px; }
  .hero h1 { font-size: 52px; }
  .counters { left: auto; right: 18px; bottom: 46px; }
}
@media (max-width: 900px) {
  :root { --head: 60px; }
  .top { padding: 0 16px; gap: 12px; }
  .brand { font-size: 20px; } .logo { width: 28px; height: 28px; }
  .nav { position: fixed; top: var(--head); left: 0; right: 0; flex-direction: column; background: #000; border-bottom: 1px solid var(--line2); padding: 10px 16px; margin: 0; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; }
  .burger { display: flex; }
  .search { display: none; }
  #walletBtn { height: 38px; padding: 0 12px; font-size: 11px; }
  #walletBtn svg { display: none; }
  .stage { height: auto; min-height: 0; display: flex; flex-direction: column; overflow: visible; }
  .hero { position: relative; width: auto; background: none; padding: 28px 16px 18px; }
  .hero h1 { font-size: 44px; }
  .steps { margin-top: 18px; padding-top: 0; }
  #net { position: relative; height: 62vh; min-height: 420px; border-top: 1px solid var(--line); }
  .map-ui { display: none; }
  .hero { order: 0; } #net { order: 1; } .counters { order: 2; }
  .counters { position: static; flex-wrap: wrap; gap: 10px 16px; margin: 12px 16px; justify-content: flex-start; }
  .hint { display: none; }
  .panel { position: fixed; z-index: 60; top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 78vh; border-left: 0; border-top: 1px solid var(--green); transform: translateY(105%); border-radius: 12px 12px 0 0; }
  .panel.open { transform: none; visibility: visible; }
  .stage.panel-open .map-ui { right: 12px; }
  .dash { grid-template-columns: 1fr; padding: 16px; }
  .top-agents { grid-template-columns: repeat(5, minmax(76px, 1fr)); overflow-x: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .launch-grid { grid-template-columns: 1fr; }
  .preview { position: static; order: -1; }
  .preview-stage { height: 200px; }
  .row2 { grid-template-columns: 1fr; }
  .page { padding: 28px 16px 48px; }
  .page-h h2 { font-size: 36px; }
  .podium { grid-template-columns: 1fr; }
  .focus-bar { top: auto; bottom: 10px; transform: translate(-50%, 80px); position: fixed; }
  .focus-bar.on { transform: translate(-50%, 0); }
  .foot { padding: 16px; }
}

/* ---------- AI token manager ---------- */
.small { font-size: 11.5px; }
.brain { border: 1px solid rgba(53,245,155,.35); border-radius: var(--r); padding: 12px; margin-bottom: 14px; background: linear-gradient(180deg, rgba(53,245,155,.05), transparent 60%), #000; }
.b-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.b-ttl { display: flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .12em; color: var(--green); font-weight: 600; }
.b-strat { font-size: 10.5px; padding: 3px 7px; border: 1px solid var(--line2); border-radius: 3px; color: #fff; white-space: nowrap; }
.b-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.b-kpis span { display: block; font-size: 9.5px; letter-spacing: .1em; color: var(--muted); margin-bottom: 3px; }
.b-kpis b { font-size: 14px; }
.b-kpis small { color: var(--muted); font-size: 10px; margin-left: 2px; }
.b-cur { border-top: 1px dashed var(--line2); padding-top: 10px; font-size: 12px; }
.bc-h { color: #fff; margin-bottom: 8px; }
.bc-h.analyzing { color: #cdb8ff; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .55; } }
.bc-lbl { font-size: 9.5px; letter-spacing: .12em; color: var(--muted); margin: 8px 0 5px; }
.bc-an { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; font-size: 11.5px; }
.bc-an div { display: flex; justify-content: space-between; }
.bc-an span { color: var(--muted); }
.al-row { display: grid; grid-template-columns: auto 1fr 60px; align-items: center; gap: 8px; font-size: 11.5px; padding: 3px 0; }
.al-row span { color: #d6d9d7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-row em, .w-row em { height: 4px; background: #151816; border-radius: 2px; overflow: hidden; display: block; }
.al-row em i, .w-row em i { display: block; height: 100%; }
.dec-res { font-size: 11px; margin-top: 6px; color: #cfd2d0; }
.bc-score { margin-top: 6px; font-size: 12px; }
.sc.good, .sc-badge.good { color: var(--green); } .sc.mid, .sc-badge.mid { color: var(--yellow); } .sc.bad, .sc-badge.bad { color: var(--red); }
.sc-badge { display: inline-grid; place-items: center; min-width: 32px; height: 22px; padding: 0 6px; border: 1px solid currentColor; border-radius: 4px; font-size: 11px; font-weight: 700; }
.sc-badge.pending { color: var(--muted); }
.b-run { margin-top: 10px; height: 36px; font-size: 11px; }
.b-sub { font-size: 9.5px; letter-spacing: .12em; color: var(--muted); margin: 12px 0 6px; }
.b-weights { display: flex; flex-direction: column; gap: 4px; }
.w-row { display: grid; grid-template-columns: 104px 1fr 34px; align-items: center; gap: 8px; font-size: 11px; }
.w-row span { color: #cfd2d0; } .w-row b { text-align: right; font-weight: 500; color: var(--muted); }
.b-tot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; margin-top: 12px; overflow: hidden; }
.b-tot div { background: #000; padding: 8px; }
.b-tot span { display: block; font-size: 8.5px; letter-spacing: .08em; color: var(--muted); margin-bottom: 3px; }
.b-tot b { font-size: 13px; display: block; } .b-tot small { font-size: 10px; color: var(--muted); }
.dec { border: 1px solid var(--line); border-radius: 4px; padding: 9px 10px; margin-bottom: 6px; }
.dec-h { display: flex; align-items: center; gap: 8px; font-size: 11.5px; margin-bottom: 6px; }
.dec-h b { flex: 1; }
.dec-r { font-size: 10.5px; color: var(--muted); margin-top: 5px; }
.alloc-bar { display: flex; height: 5px; border-radius: 3px; overflow: hidden; background: #151816; gap: 1px; }
.alloc-bar i { display: block; height: 100%; }
.cm { border-left: 2px solid #b48cff; padding: 4px 0 4px 10px; margin-bottom: 8px; font-size: 11.5px; }
.cm b { font-size: 11px; letter-spacing: .06em; }
.cm-st { font-size: 9.5px; padding: 1px 5px; border-radius: 3px; border: 1px solid var(--line2); color: var(--muted); margin-left: 4px; }
.cm-st.active { color: var(--green); border-color: var(--green); }
.cm-t { color: #d6d9d7; margin: 3px 0; }
.cm-m { display: flex; gap: 12px; color: var(--muted); font-size: 10.5px; }
.b-xnote { font-size: 10.5px; color: var(--muted); margin: -2px 0 8px; }
.post { border: 1px solid var(--line); border-radius: 4px; padding: 10px; margin-bottom: 8px; }
.post-h { display: flex; gap: 8px; align-items: center; font-size: 10px; margin-bottom: 6px; }
.post-ty { color: var(--green); letter-spacing: .1em; }
.post-st { margin-left: auto; color: var(--muted); letter-spacing: .08em; }
.post p { font-size: 12px; line-height: 1.5; color: #e8eae9; }
.post-b { display: flex; gap: 8px; margin-top: 8px; }
.post-b .btn { height: 30px; padding: 0 10px; font-size: 10.5px; }

.dash2 { grid-template-columns: 2.1fr 1fr; padding-top: 0; }
.dfeed { display: flex; flex-direction: column; }
.df { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); cursor: pointer; animation: fin .35s ease; }
.df:first-child { border-top: 0; padding-top: 0; }
.df img { width: 30px; height: 30px; }
.df-m { flex: 1; min-width: 0; }
.df-h { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; margin-bottom: 5px; }
.df-h .muted { font-size: 11px; }
.df-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.df-chips span { font-size: 10.5px; padding: 2px 7px; border: 1px solid; border-radius: 3px; white-space: nowrap; }
.df:hover b { color: var(--green); }
.tstats { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
.tstats small { font-size: 11px; color: var(--muted); }
.tm { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 12px; cursor: pointer; }
.tm:first-of-type { border-top: 0; }
.tm .n { width: 18px; color: var(--muted); }
.tm img { width: 26px; height: 26px; }
.tm .muted { flex: 1; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm:hover b { color: var(--green); }
@media (max-width: 1280px) { .dash2 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .dash2 { padding-top: 0; } .tstats { grid-template-columns: repeat(2, 1fr); } }

.b-kpis b { white-space: nowrap; }
.b-ttl { white-space: nowrap; font-size: 10px; }

/* ---------- live version ---------- */
.empty-note { position: absolute; left: calc(50% + 200px); top: 50%; transform: translate(-50%, -50%); display: none; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 22px 26px; border: 1px dashed var(--line2); border-radius: var(--r); background: rgba(4,5,4,.82); z-index: 2; }
.empty-note.on { display: flex; }
.empty-note b { color: var(--green); font-size: 12px; letter-spacing: .12em; }
.empty-note span { color: var(--muted); font-size: 12px; }
.pv-note { margin-top: 12px; font-size: 11.5px; line-height: 1.55; color: var(--muted); }
.lm-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.lm-actions .btn { height: 36px; font-size: 11px; }
.lm-steps li.fail { color: var(--red); } .lm-steps li.fail::before { content: '[x]'; color: var(--red); }
.coin-links { display: flex; gap: 8px; margin-top: 10px; }
.coin-links .btn { flex: 1; height: 34px; font-size: 11px; }
.al-row a, .p-log a, .muted.small a { color: var(--green); font-size: 10.5px; }
.al-row { grid-template-columns: auto 1fr 50px auto; }
.al-row.failed { opacity: .5; }
.bc-why { font-size: 11.5px; color: #cfd2d0; font-style: italic; margin-top: 8px; line-height: 1.5; }
.cm-r { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.cm-w { font-size: 11px; margin-top: 6px; color: #d6d9d7; line-height: 1.6; }
.cm-w a { color: var(--green); }
.cm-st.paid { color: var(--green); border-color: rgba(53,245,155,.5); }
.cm-form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.cm-in, .own-ta { background: #000; border: 1px solid var(--line2); border-radius: 4px; padding: 8px 10px; font-size: 11.5px; outline: none; width: 100%; }
.cm-in:focus, .own-ta:focus { border-color: var(--green); }
.cm-form .btn { height: 32px; font-size: 10.5px; }
.own-ta { margin-top: 10px; resize: vertical; font-size: 12px; }
.own-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.own-row .btn { height: 30px; font-size: 10.5px; }
.own-check { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-top: 8px; color: #cfd2d0; }
.own-check input { accent-color: #35f59b; }
@media (max-width: 900px) { .empty-note { left: 50%; top: 40%; width: calc(100% - 32px); } }

/* ---------- header: CA chip + X ---------- */
.ca-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px dashed var(--line2); border-radius: var(--r); background: #000; font-size: 11.5px; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.ca-chip .ca-tk { color: var(--green); font-weight: 700; }
.ca-chip .ca-tk:empty { display: none; }
.ca-chip .ca-lbl { color: var(--dim); }
.ca-chip .ca-val { color: #fff; }
.ca-chip.soon .ca-val { color: var(--green); }
.ca-chip.live { cursor: pointer; border-style: solid; }
.ca-chip.live:hover { border-color: var(--green); }
.ca-chip.soon { cursor: default; }
.x-link { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line2); border-radius: var(--r); color: #fff; transition: color .15s, border-color .15s; }
.x-link svg { width: 16px; height: 16px; }
.x-link:hover { color: var(--green); border-color: var(--green); }
@media (max-width: 1280px) { .ca-chip .ca-lbl { display: none; } }
@media (max-width: 900px) { .ca-chip { height: 38px; padding: 0 8px; font-size: 10px; } .ca-chip .ca-tk { display: none; } .x-link { width: 38px; height: 38px; } }
@media (max-width: 480px) { .ca-chip { display: none; } }

/* ---------- alliances ---------- */
.clan-tag { font-size: 10px; padding: 2px 6px; border: 1px solid; border-radius: 3px; letter-spacing: .06em; white-space: nowrap; }
.ally { border: 1px solid var(--line); border-left: 2px solid #5ad1ff; border-radius: 4px; padding: 8px 10px; margin-bottom: 6px; font-size: 11.5px; }
.ally.ended { opacity: .55; border-left-color: var(--dim); }
.ally-h { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.ally-h a { color: #fff; font-weight: 700; cursor: pointer; }
.ally-h a:hover { color: var(--green); }
.ally-h .muted { margin-left: auto; font-size: 10.5px; }
.ally-m { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 10.5px; }
.ally-m b { color: #fff; font-weight: 500; }
.fe.k-alliance p { color: #5ad1ff; }

/* ---------- quests ---------- */
.quest { border: 1px solid var(--line); border-left: 2px solid #ff9b4a; border-radius: 4px; padding: 9px 10px; margin-bottom: 6px; font-size: 11.5px; }
.quest:not(.on) { opacity: .7; }
.quest-h { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 4px; }
.quest-h b { font-size: 12px; }
.q-bar { height: 5px; background: #151816; border-radius: 3px; overflow: hidden; margin: 6px 0 4px; }
.q-bar i { display: block; height: 100%; background: #ff9b4a; }
.q-lbl { font-size: 10.5px; color: #d6d9d7; margin-bottom: 4px; }
.fe.k-quest p { color: #ff9b4a; }

/* ---------- generations ---------- */
.gen-tag { font-size: 10px; padding: 2px 6px; border: 1px solid #ffd36e; color: #ffd36e; border-radius: 3px; letter-spacing: .08em; }
.fam-row { font-size: 11.5px; margin-bottom: 6px; color: #d6d9d7; }
.fam-row a, .fam-child a { color: #ffd36e; font-weight: 700; cursor: pointer; }
.fam-child { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; font-size: 11.5px; padding: 6px 8px; border: 1px solid var(--line); border-left: 2px solid #ffd36e; border-radius: 4px; margin-bottom: 5px; }
.fam-checks { font-size: 11px; color: var(--muted); line-height: 1.6; }
.fam-checks .ok { color: var(--green); }
.fe.k-spawn p { color: #ffd36e; font-weight: 700; }
