:root {
  --bg: #0B0D12;
  --panel: #11151D;
  --panel-2: #191F2A;
  --line: #222936;
  --line-2: #2c3443;
  --amber: #FFC247;
  --amber-2: #FFB020;
  --amber-dim: rgba(255, 194, 71, .12);
  --text: #F5F5F5;
  --muted: #8C94A5;
  --muted-2: #636b7b;
  --ok: #36D987;
  --bad: #F15B67;
  --f-pixel: 'Pixelify Sans', 'JetBrains Mono', ui-monospace, monospace;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --side: 258px;
  --tick: 46px;
  --rail: 300px;
  --r: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 44px 44px;
  color: var(--text); font-family: var(--f-mono); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #000; padding: 6px 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.ico { display: inline-flex; width: 20px; height: 20px; flex: none; }
.ico svg { width: 100%; height: 100%; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; font-weight: 700; font-size: 14px; text-decoration: none !important; white-space: nowrap; transition: transform .12s, background .15s, border-color .15s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: #15110a; box-shadow: 0 0 0 0 rgba(255,176,32,0); }
.btn-primary:hover { background: #ffcd66; box-shadow: 0 0 24px rgba(255,176,32,.35); }
.btn-outline { background: rgba(11,13,18,.7); border-color: var(--line-2); color: var(--text); }
.btn-outline:hover { border-color: var(--amber); }
.btn-ghost { background: var(--panel-2); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-2); background: #1f2633; }
.btn-lg { height: 52px; padding: 0 30px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.arrow { font-size: 18px; line-height: 0; }
.icon-btn { background: none; border: 1px solid var(--line); border-radius: 6px; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.badge-demo { background: rgba(255,194,71,.12); color: var(--amber); border: 1px solid rgba(255,194,71,.35); }
.badge-live { background: rgba(54,217,135,.12); color: var(--ok); border: 1px solid rgba(54,217,135,.35); }
.badge-off { background: rgba(140,148,165,.12); color: var(--muted); border: 1px solid var(--line-2); }
.badge-bad { background: rgba(241,91,103,.12); color: var(--bad); border: 1px solid rgba(241,91,103,.35); }
.up { color: var(--ok); } .down { color: var(--bad); }

/* ---------- sidebar ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side); background: #0d1016; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 18px 16px; z-index: 40; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none !important; padding: 6px 6px 22px; border-bottom: 1px solid var(--line); margin: 0 -18px 16px; padding-left: 24px; }
.brand span { font-family: var(--f-pixel); font-size: 28px; font-weight: 700; letter-spacing: .01em; }
.brand img { filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)) drop-shadow(0 0 10px rgba(255,176,32,.28)); }
.coin-img[src$="logo-128.png"], .tok img[src$="logo-128.png"] { border-radius: 0; image-rendering: auto; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 16px; height: 50px; padding: 0 14px; border-radius: 6px; color: #d9dce3; font-size: 15px; border: 1px solid transparent; text-decoration: none !important; transition: background .15s, color .15s, border-color .15s; }
.nav a .ico { width: 22px; height: 22px; color: var(--muted); transition: color .15s, transform .2s; }
.nav a:hover { background: var(--panel); color: #fff; }
.nav a:hover .ico { color: var(--amber); transform: translateX(1px) scale(1.06); }
.nav a.active { background: var(--panel-2); border-color: var(--line-2); color: #fff; }
.nav a.active .ico { color: var(--amber); }
.promo { margin-top: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 14px 14px; }
.promo-art { height: 74px; display: grid; place-items: center; margin-bottom: 8px; }
.promo-art { height: 92px; }
.promo-art img { width: 84px; height: 84px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)) drop-shadow(0 0 16px rgba(255,176,32,.22)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
/* contract address (CA) */
.ca-slot { margin: -4px 0 14px; }
.ca { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: 500 12px/1.2 var(--f-mono, 'JetBrains Mono', monospace); text-align: left; }
button.ca { cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
button.ca:hover { border-color: var(--amber); background: var(--panel-2); box-shadow: 0 0 0 3px rgba(255,176,32,.12); }
button.ca:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.ca-k { flex: none; padding: 3px 6px; border-radius: 4px; background: var(--amber); color: #1a1205; font-weight: 700; font-size: 11px; letter-spacing: .06em; }
.ca-v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e6e8ee; }
.ca-soon .ca-v { color: var(--muted); letter-spacing: .04em; }
.ca-soon .ca-k { background: var(--line-2); color: var(--muted); }
.ca-c { flex: none; display: inline-flex; align-items: center; gap: 5px; color: var(--amber); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.ca-c em { font-style: normal; }
.ca-c .ico { width: 15px; height: 15px; }
button.ca.copied { border-color: var(--green, #36d987); }
button.ca.copied .ca-c { color: var(--green, #36d987); }
.ca-hero { margin: -4px 0 20px; max-width: 520px; }
@media (max-width: 1600px) and (min-width: 761px) { .ca-hero { max-width: 376px; } .ca-hero .ca { font-size: 12.5px; } }
.ca-hero .ca { padding: 11px 14px; font-size: 13.5px; background: rgba(15,17,23,.82); backdrop-filter: blur(6px); }
.promo-title { font-weight: 700; margin: 0 0 6px; font-size: 14px; }
.promo-sub { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.side-foot { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.side-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.net { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); display: inline-block; }
.side-links { display: flex; gap: 6px; }
.side-links a { color: var(--muted); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--line); }
.side-links a:hover { color: var(--amber); border-color: var(--line-2); text-decoration: none; }
.side-links .ico { width: 16px; height: 16px; }
@media (max-height: 860px) { .promo-art { display: none; } }
@media (max-height: 760px) { .promo { display: none; } }

.mobilebar { display: none; }

/* ---------- main & ticker ---------- */
.main { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
.ticker { height: var(--tick); border-bottom: 1px solid var(--line); background: rgba(11,13,18,.92); overflow: hidden; position: sticky; top: 0; z-index: 30; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker-track { display: flex; align-items: center; height: 100%; gap: 34px; padding-left: 24px; width: max-content; white-space: nowrap; }
.ticker-track.run { animation: tick var(--dur, 60s) linear infinite; }
.ticker:hover .ticker-track.run { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; }
.tk img, .tk .tk-ph { width: 20px; height: 20px; border-radius: 4px; background: var(--panel-2); object-fit: cover; }
.tk .tk-ph { display: inline-grid; place-items: center; font-size: 10px; color: var(--amber); }
.tk b { font-weight: 700; }
.tk .p { color: #c9ced8; }
.ticker-msg { color: var(--muted); font-size: 12px; display: inline-flex; gap: 10px; align-items: center; }
#view { flex: 1; outline: none; }

/* ---------- home ---------- */
.home { position: relative; height: calc(100vh - var(--tick)); min-height: 660px; overflow: hidden; }
.scene { position: absolute; inset: 0; }
.factory-canvas { position: absolute; inset: 0; display: block; cursor: grab; touch-action: none; }
.scene.dragging .factory-canvas { cursor: grabbing; }
.scene-fallback { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; padding: 24px; background: radial-gradient(ellipse at 40% 40%, rgba(255,176,32,.12), transparent 60%); }
.hud-top { position: absolute; top: 18px; left: 24px; right: calc(var(--rail) + 40px); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; pointer-events: none; }
.hud-top > * { pointer-events: auto; }
.pill { display: inline-flex; align-items: center; gap: 12px; height: 38px; padding: 0 8px 0 14px; background: rgba(13,16,22,.82); border: 1px solid var(--line-2); border-radius: 6px; backdrop-filter: blur(4px); font-size: 12px; }
.pill-label { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.pill-time { font-family: var(--f-pixel); font-size: 18px; color: var(--amber); min-width: 52px; }
.pill-phase { color: #d9dce3; text-transform: capitalize; }
.hud-tools { display: flex; gap: 6px; }
.tool { display: inline-flex; align-items: center; gap: 8px; height: 38px; min-width: 38px; justify-content: center; padding: 0 10px; background: rgba(13,16,22,.82); border: 1px solid var(--line-2); border-radius: 6px; cursor: pointer; font-size: 12px; }
.tool:hover { border-color: var(--amber); color: var(--amber); }
.tool[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); }
.tool .ico { width: 16px; height: 16px; }
a.tool { color: var(--text); text-decoration: none !important; }
.tool-x { border-color: rgba(255,176,32,.55); color: var(--amber) !important; }
.tool-x:hover { background: var(--amber); color: #1a1205 !important; }
.btn-x { padding-left: 0; padding-right: 0; width: 52px; justify-content: center; }
.btn-x .ico { width: 20px; height: 20px; }
.btn-x:hover { border-color: var(--amber); color: var(--amber); }
@media (max-width: 1600px) and (min-width: 761px) { .btn-x { display: none; } }
@media (max-width: 760px) { .tool-x { display: none; } }
.mb-right { display: flex; gap: 8px; align-items: center; }
.icon-btn.x-link { color: var(--amber); border-color: rgba(255,176,32,.5); }
.icon-btn .ico { width: 18px; height: 18px; }
.hint { position: absolute; top: 64px; left: 24px; margin: 0; font-size: 11px; color: var(--muted-2); pointer-events: none; transition: opacity .6s; }
.hero { position: absolute; left: 36px; bottom: 30px; max-width: 660px; pointer-events: none; }
.hero > * { pointer-events: auto; }
.eyebrow { margin: 0 0 12px; color: #b9bfcb; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.demo-text { color: var(--amber); }
.hero h1 { font-family: var(--f-pixel); font-weight: 700; font-size: clamp(32px, 3.4vw, 50px); line-height: 1.04; margin: 0 0 18px; letter-spacing: .01em; text-shadow: 0 2px 0 #000, 0 0 30px rgba(0,0,0,.8); }
.lead { margin: 0 0 24px; max-width: 610px; color: #e3e6ec; font-size: 15px; line-height: 1.7; text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.hero-cta { display: flex; gap: 22px; flex-wrap: wrap; }
.stat-row { position: absolute; right: 16px; bottom: 16px; width: calc(var(--rail) + 280px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat-box { background: rgba(17,21,29,.92); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 8px 12px; text-align: center; }
.stat-box .ico { width: 30px; height: 30px; color: var(--amber); margin-bottom: 8px; }
.stat-box b { display: block; font-size: 18px; font-weight: 700; }
.stat-box span { display: block; color: var(--muted); font-size: 12px; }
.stat-row::before { content: 'DEMO'; position: absolute; top: -9px; right: 8px; font-size: 9px; letter-spacing: .1em; color: var(--amber); background: var(--bg); border: 1px solid rgba(255,194,71,.35); padding: 0 5px; border-radius: 3px; z-index: 1; }
.stat-row.live::before { display: none; }
.rail { position: absolute; top: 16px; right: 16px; bottom: 166px; -webkit-mask-image: linear-gradient(#000 calc(100% - 26px), transparent); mask-image: linear-gradient(#000 calc(100% - 26px), transparent); padding-bottom: 20px; width: var(--rail); display: flex; flex-direction: column; gap: 12px; overflow-y: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.label { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.price-big { font-family: var(--f-pixel); font-size: 36px; font-weight: 700; line-height: 1.1; margin: 4px 0 6px; }
.chg { font-size: 15px; }
.spark { width: 100%; height: 70px; display: block; margin-top: 8px; }
.stat-list { padding: 4px 18px; }
.stat-li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.stat-li:last-child { border-bottom: 0; }
.stat-li .ico-box { width: 44px; height: 44px; border-radius: 8px; background: var(--panel-2); display: grid; place-items: center; color: var(--amber); flex: none; }
.stat-li .ico-box .ico { width: 24px; height: 24px; }
.stat-li .label { font-size: 11px; display: block; }
.stat-li b { font-size: 18px; }
.drop-head { display: flex; justify-content: space-between; align-items: baseline; }
.drop-head .label { color: var(--text); font-weight: 700; font-size: 14px; letter-spacing: .1em; }
.drop-body { display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.coin-img { width: 56px; height: 56px; image-rendering: pixelated; border-radius: 50%; flex: none; filter: drop-shadow(0 0 10px rgba(255,176,32,.25)); }
.coin-logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: var(--panel-2); border: 2px solid var(--line-2); box-shadow: 0 0 18px rgba(255,176,32,.25); }
.drop-sym { color: var(--amber); font-weight: 700; font-size: 16px; }
.small { font-size: 12px; color: var(--muted); }
.link-arrow { display: inline-flex; gap: 8px; font-size: 12px; margin-top: 10px; }
.countdown { font-family: var(--f-pixel); font-size: 30px; color: var(--amber); line-height: 1.1; }
.bar { height: 6px; border-radius: 3px; background: #2a2a22; overflow: hidden; margin: 10px 0 8px; }
.bar > i { display: block; height: 100%; background: var(--amber); width: 0; transition: width .9s linear; box-shadow: 0 0 10px var(--amber-2); }
.phases { display: flex; gap: 4px; margin-top: 8px; }
.phases span { flex: 1; text-align: center; font-size: 10px; padding: 4px 0; border-radius: 4px; background: var(--panel-2); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.phases span.on { background: var(--amber-dim); color: var(--amber); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; font-weight: 500; }

@media (min-width: 1081px) { .hero, .stat-row { transition: opacity .35s; } .home.focus .hero, .home.focus .stat-row { opacity: .1; pointer-events: none; } }
/* station info + tooltip */
.station-card { position: absolute; left: 36px; top: 76px; width: min(420px, calc(100% - 72px)); background: rgba(14,17,24,.96); border: 1px solid var(--line-2); border-left: 3px solid var(--amber); border-radius: var(--r); padding: 18px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: pop .22s ease-out; z-index: 5; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.station-card h3 { font-family: var(--f-pixel); font-size: 24px; margin: 0 0 10px; }
.station-card p { margin: 0 0 10px; color: #d5d9e1; font-size: 13px; }
.station-step { color: var(--amber) !important; text-transform: uppercase; letter-spacing: .12em; font-size: 11px !important; margin: 0 0 4px !important; }
.station-card .close { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 22px; color: var(--muted); cursor: pointer; }
.station-card .kv { margin: 10px 0; padding: 10px 12px; background: var(--panel-2); border-radius: 6px; }
.tour-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 8px; }
.tour-dots { display: flex; gap: 6px; }
.tour-dots i { width: 8px; height: 8px; border-radius: 2px; background: var(--line-2); }
.tour-dots i.on { background: var(--amber); }
.tip { position: fixed; z-index: 50; pointer-events: none; background: #0d1016; border: 1px solid var(--amber); color: var(--amber); padding: 5px 9px; border-radius: 4px; font-size: 12px; transform: translate(14px, 14px); white-space: nowrap; }

/* ---------- pages ---------- */
.page { padding: 32px 36px 60px; max-width: 1280px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-h h1 { font-family: var(--f-pixel); font-size: 40px; margin: 0; line-height: 1.1; }
.page-h p { margin: 6px 0 0; color: var(--muted); max-width: 680px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid rgba(255,194,71,.3); background: rgba(255,194,71,.06); border-radius: 6px; color: #e8dcc2; font-size: 13px; margin-bottom: 18px; }
.notice .ico { color: var(--amber); width: 18px; height: 18px; margin-top: 1px; }
.metric b { display: block; font-size: 22px; font-family: var(--f-pixel); }
.metric span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.input, select.input, textarea.input { height: 40px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; color: var(--text); padding: 0 12px; font: inherit; min-width: 0; }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
.input:focus { outline: none; border-color: var(--amber); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #0f131a; position: sticky; top: 0; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { cursor: default; transition: background .12s; }
.table tbody tr.click { cursor: pointer; }
.table tbody tr.click:hover { background: var(--panel-2); }
.tok { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.tok img { width: 26px; height: 26px; image-rendering: pixelated; border-radius: 50%; }
.check { display: inline-block; width: 18px; text-align: center; }
.empty { padding: 40px; text-align: center; color: var(--muted); }
.drawer-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 60; display: flex; justify-content: flex-end; }
.drawer { width: min(560px, 100%); height: 100%; background: #0e1117; border-left: 1px solid var(--line-2); padding: 26px; overflow-y: auto; animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer h2 { font-family: var(--f-pixel); margin: 0 0 4px; font-size: 28px; }
.section-t { font-family: var(--f-pixel); font-size: 20px; margin: 28px 0 12px; }
.steps { counter-reset: s; display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.step .n { width: 48px; height: 48px; border-radius: 8px; background: var(--amber-dim); color: var(--amber); display: grid; place-items: center; font-family: var(--f-pixel); font-size: 22px; border: 1px solid rgba(255,194,71,.3); }
.step h3 { margin: 2px 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.alloc { margin-top: 6px; }
.alloc-bar { display: flex; gap: 4px; height: 14px; }
.alloc-bar i { display: block; border-radius: 4px; background: var(--c); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 45%, transparent); min-width: 10px; }
.alloc-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.alloc-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 6px; }
.alloc-item b { font-family: var(--f-pixel); font-size: 26px; line-height: 1; color: var(--c); min-width: 58px; }
.alloc-item span { display: flex; flex-direction: column; gap: 2px; }
.alloc-item em { font-style: normal; font-weight: 700; font-size: 13px; }
.alloc-item small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.split { display: flex; height: 34px; border-radius: 6px; overflow: hidden; font-size: 12px; font-weight: 700; }
.split > div { display: grid; place-items: center; color: #15110a; }
.addr { font-family: var(--f-mono); font-size: 12px; color: #c9ced8; word-break: break-all; }
.logo-drop { border: 1px dashed var(--line-2); border-radius: 8px; height: 120px; display: grid; place-items: center; color: var(--muted); cursor: pointer; overflow: hidden; }
.logo-drop img { width: 100%; height: 100%; object-fit: cover; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #0d1016; border: 1px solid var(--amber); color: var(--text); padding: 10px 16px; border-radius: 6px; z-index: 90; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  :root { --rail: 280px; }
  .stat-row { width: calc(var(--rail) + 140px); grid-template-columns: repeat(2, 1fr); }
  .rail { bottom: 220px; }
  .stat-box { padding: 10px 6px; display: flex; align-items: center; gap: 10px; text-align: left; }
  .stat-box .ico { margin: 0; width: 24px; height: 24px; }
}
@media (max-width: 1080px) {
  .home { height: auto; min-height: 0; overflow: visible; }
  .scene { position: relative; height: 74vh; min-height: 520px; }
  .hud-top { right: 24px; }
  .hero { position: relative; left: auto; bottom: auto; max-width: none; padding: 22px 24px 18px; }
  .rail { position: static; width: auto; display: grid; grid-template-columns: repeat(2, 1fr); padding: 14px 16px; overflow: visible; }
  .stat-row { position: relative; right: auto; bottom: auto; width: auto; margin: 0 16px; grid-template-columns: repeat(4, 1fr); }
  .stat-box { display: block; text-align: center; }
  .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --tick: 40px; }
  .mobilebar { display: flex; position: sticky; top: 0; z-index: 45; height: 56px; align-items: center; justify-content: space-between; padding: 0 16px; background: #0d1016; border-bottom: 1px solid var(--line); }
  .brand-sm { border: 0; margin: 0; padding: 0; gap: 10px; } .brand-sm span { font-size: 22px; }
  .sidebar { transform: translateX(-100%); transition: transform .25s; width: 280px; box-shadow: 20px 0 60px rgba(0,0,0,.5); }
  body.menu-open .sidebar { transform: none; }
  .main { margin-left: 0; }
  .ticker { top: 56px; }
  .scene { height: 58vh; min-height: 420px; }
  .hero { position: relative; left: auto; bottom: auto; padding: 20px 16px 6px; }
  .hero h1 { font-size: 30px; }
  .lead { font-size: 13px; margin-bottom: 16px; }
  .btn-lg { height: 46px; padding: 0 18px; font-size: 14px; }
  .hero-cta { gap: 10px; }
  .hud-top { left: 16px; right: 16px; }
  .pill-label { display: none; }
  .tool span:not(.ico) { display: none; }
  .hint { left: 16px; }
  .rail { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .station-card { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-height: 60%; overflow-y: auto; }
  .page { padding: 22px 16px 50px; }
  .page-h h1 { font-size: 30px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track.run { animation-duration: 0s; animation: none; }
  * { transition: none !important; animation: none !important; }
}

/* wallet picker */
.wm-bg { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; animation: pop .15s ease-out; }
.wm { width: min(400px, 100%); background: #15171c; border: 1px solid var(--line-2); border-radius: 12px; padding: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.wm-h { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.wm-x { background: none; border: 0; font-size: 24px; color: var(--muted); cursor: pointer; line-height: 1; }
.wm-list { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; }
.wm-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; border-radius: 8px; background: transparent; border: 1px solid transparent; color: var(--text); cursor: pointer; text-align: left; font: inherit; text-decoration: none !important; }
.wm-item:hover { background: var(--panel-2); border-color: var(--line-2); }
.wm-item img, .wm-ph { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.wm-ph { background: var(--panel-2); border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.wm-n { flex: 1; font-size: 15px; }
.wm-tag { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; color: var(--ok); background: rgba(54,217,135,.12); }
.wm-tag-off { color: var(--muted); background: var(--panel-2); }
.wm-arr { color: var(--muted); font-size: 18px; }
.wm-get { opacity: .75; }
.wm-foot { margin: 14px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

.pot { margin-top: 12px; }
.pot-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.pot-h b { color: var(--amber); }
