/* Netcafe Agents — design tokens + layout. Night cafe palette. */
:root {
  --bg: #100e1c;
  --bg-2: #161329;
  --panel: rgba(24, 20, 44, .82);
  --panel-solid: #1b1731;
  --line: rgba(190, 175, 255, .14);
  --line-2: rgba(190, 175, 255, .26);
  --text: #f1edff;
  --muted: #a69fc4;
  --dim: #6f688f;
  --lilac: #9b87f5;
  --lilac-2: #b9a9ff;
  --mint: #6fdcbf;
  --gold: #ffcf5a;
  --pink: #ff7cc8;
  --red: #ff6b7d;
  --green: #5ee38f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(4, 2, 14, .55);
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--lilac); color: #fff; }
.mono { font-family: var(--mono); font-feature-settings: 'tnum'; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- pills & buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none;
}
button.pill:hover, a.pill:hover { border-color: var(--line-2); background: rgba(40, 33, 72, .9); }
.pill.brand { background: var(--lilac); color: #fff; border-color: transparent; }
.pill.brand:hover { background: var(--lilac-2); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.pill.icon { width: 36px; padding: 0; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 14px;
  border: 1px solid transparent; background: var(--lilac); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .15s, background .15s, box-shadow .15s; box-shadow: 0 8px 28px rgba(155, 135, 245, .35);
}
.btn:hover { background: var(--lilac-2); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; border-color: var(--line-2); box-shadow: none; }
.btn.ghost:hover { background: rgba(155, 135, 245, .12); }
.btn.gold { background: var(--gold); color: #2a2000; box-shadow: 0 8px 28px rgba(255, 207, 90, .3); }
.btn.green { background: var(--green); color: #082513; box-shadow: none; }
.btn.red { background: var(--red); color: #2d060c; box-shadow: none; }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn.wide { width: 100%; }

/* ---------- loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg);
  transition: opacity .5s; text-align: center;
}
#loader.out { opacity: 0; pointer-events: none; }
#loader svg { width: 34px; height: 34px; color: var(--lilac); animation: blink 1.1s steps(2) infinite; }
#loader p { margin: 10px 0 0; font-weight: 700; color: #d9d2ff; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- hero / game ---------- */
#hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: radial-gradient(120% 90% at 50% 10%, #241d45 0%, var(--bg) 60%); }
#game-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; }
#game-labels { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.tag3d {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); pointer-events: auto; cursor: pointer;
  padding: 3px 9px; border-radius: 9px; background: rgba(16, 14, 28, .78); border: 1px solid var(--line-2);
  font: 600 12px var(--font); white-space: nowrap; color: var(--text); backdrop-filter: blur(6px);
}
.tag3d .pct { font-family: var(--mono); color: var(--gold); margin-left: 6px; }
.tag3d.player { pointer-events: none; background: rgba(155, 135, 245, .25); border-color: transparent; }
.bubble3d {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); max-width: 220px; pointer-events: none;
  padding: 7px 11px; border-radius: 14px 14px 14px 4px; background: #fff; color: #1a1530; font: 600 13px/1.35 var(--font);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3); animation: pop .25s ease-out;
}
@keyframes pop { from { transform: translate(-50%, -80%) scale(.85); opacity: 0; } }

.topbar { position: absolute; z-index: 20; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; }
.topbar > div { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; pointer-events: auto; }
.topbar .right { justify-content: flex-end; }
.topbar .ca { font-family: var(--mono); font-size: 12px; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
.topbar .ca b { font-family: var(--font); color: var(--lilac-2); }

.hud-hint { position: absolute; z-index: 15; left: 16px; bottom: 16px; max-width: 360px; color: #d8d1f7; font-size: 13px; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); pointer-events: none; }
.hud-hint kbd { font: 600 11px var(--mono); padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line-2); background: rgba(16, 14, 28, .6); }
.hud-feed {
  position: absolute; z-index: 15; right: 16px; bottom: 16px; width: min(340px, calc(100vw - 32px)); max-height: 42vh; overflow: hidden;
  border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(14px); padding: 12px 14px;
}
.hud-feed h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: .02em; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.hud-feed .scroll-cue { font-size: 12px; color: var(--lilac-2); text-decoration: none; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feed li { display: grid; grid-template-columns: 30px 1fr; gap: 9px; font-size: 13px; line-height: 1.35; animation: slidein .35s ease-out; cursor: pointer; }
.feed li .who { font-weight: 700; }
.feed li .when { color: var(--dim); font-size: 11px; margin-left: 6px; }
.feed li .what { color: #d8d2f2; display: block; }
.feed li img, .avatar { width: 30px; height: 30px; border-radius: 10px; background: #221d3a; display: block; }
.feed .empty { display: block; color: var(--muted); grid-template-columns: none; cursor: default; }
@keyframes slidein { from { opacity: 0; transform: translateY(6px); } }
.hero-empty {
  position: absolute; z-index: 14; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none;
  padding: 18px 22px; border-radius: var(--radius); background: rgba(16, 14, 28, .55); border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.hero-empty b { display: block; font-size: 18px; }
.hero-empty span { color: var(--muted); font-size: 14px; }
.interact-hint {
  position: absolute; z-index: 16; left: 50%; bottom: 84px; transform: translateX(-50%); pointer-events: none;
  padding: 8px 14px; border-radius: 999px; background: rgba(16, 14, 28, .82); border: 1px solid var(--line-2); font-weight: 600; font-size: 14px;
}
.interact-hint kbd { font: 700 12px var(--mono); padding: 2px 7px; border-radius: 6px; background: var(--lilac); color: #fff; margin-right: 6px; }
.mobile-pad { position: absolute; z-index: 16; left: 18px; bottom: 70px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); display: none; touch-action: none; }
.mobile-pad i { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px; border-radius: 50%; background: rgba(155, 135, 245, .55); }
@media (pointer: coarse) { .mobile-pad { display: block; } .hud-hint { display: none; } }

/* ---------- side panels (look, inspector, pump or dump) ---------- */
.side {
  position: fixed; z-index: 40; top: 64px; right: 14px; bottom: 14px; width: min(400px, calc(100vw - 28px)); display: flex; flex-direction: column;
  border-radius: 22px; background: var(--panel); border: 1px solid var(--line-2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow); transform: translateX(calc(100% + 30px)); transition: transform .35s cubic-bezier(.2, .9, .2, 1); overflow: hidden;
}
.side.open { transform: none; }
.side header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 18px 18px 8px; }
.side header h2 { margin: 0; font-size: 22px; line-height: 1.15; }
.side header p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.side .body { flex: 1; overflow: auto; padding: 4px 18px 18px; overscroll-behavior: contain; }
.side .foot { padding: 12px 18px 18px; display: flex; gap: 10px; border-top: 1px solid var(--line); }
.x-btn { width: 34px; height: 34px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: transparent; font-size: 20px; line-height: 1; }
.x-btn:hover { background: rgba(255, 255, 255, .06); }
.field { margin: 14px 0 0; }
.field > label, .field > .lbl { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.field small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.input, .textarea, .select {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(10, 8, 22, .55); outline: none;
}
.textarea { height: auto; min-height: 84px; padding: 10px 14px; resize: vertical; line-height: 1.4; }
.input:focus, .textarea:focus { border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(155, 135, 245, .25); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; outline: 1px solid var(--line-2); padding: 0; }
.swatch[aria-pressed='true'] { border-color: #fff; outline-color: var(--lilac); box-shadow: 0 0 0 3px rgba(155, 135, 245, .5); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { height: 36px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line-2); background: transparent; font-weight: 600; font-size: 14px; }
.seg button[aria-pressed='true'] { background: var(--lilac); border-color: var(--lilac); color: #fff; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toggle { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; }
.toggle input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--lilac); flex: none; }

/* ---------- inspector ---------- */
.insp-head { display: flex; gap: 12px; align-items: center; }
.insp-head img { width: 64px; height: 64px; border-radius: 18px; background: #221d3a; }
.insp-head h2 small { font-family: var(--mono); font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .07); }
.chip i { width: 8px; height: 8px; border-radius: 50%; }
.chip.gold { background: rgba(255, 207, 90, .16); color: var(--gold); }
.chip.demo { background: rgba(255, 124, 200, .15); color: var(--pink); }
.bondbar { margin: 14px 0 4px; height: 12px; border-radius: 8px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bondbar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--lilac), var(--mint)); transition: width .6s; }
.bondbar.done i { background: linear-gradient(90deg, #ffb83d, var(--gold)); }
.bondrow { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0; }
.stat { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--mono); font-size: 16px; }
.stat span { color: var(--muted); font-size: 12px; }
.chart { width: 100%; height: 170px; display: block; border-radius: 12px; background: rgba(0, 0, 0, .2); }
.tabs { display: flex; gap: 6px; margin: 16px 0 10px; border-bottom: 1px solid var(--line); }
.tabs button { padding: 8px 10px; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected='true'] { color: var(--text); border-color: var(--lilac); }
.trade { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.trade .seg { margin-bottom: 10px; }
.trade .presets { display: flex; gap: 6px; margin: 8px 0; }
.trade .presets button { flex: 1; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: transparent; font: 600 12px var(--mono); }
.trade .quote { font-size: 13px; color: var(--muted); margin: 6px 0 10px; min-height: 20px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list li { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: 14px; line-height: 1.4; }
.list li .meta { display: block; margin-top: 3px; color: var(--dim); font-size: 12px; }
.list li.buy { border-left: 3px solid var(--green); }
.list li.sell { border-left: 3px solid var(--red); }
.chat { display: flex; gap: 8px; margin-top: 10px; }
.chat .input { height: 40px; }
.addr { font-family: var(--mono); font-size: 12.5px; word-break: break-all; color: var(--lilac-2); text-decoration: none; }
.addr:hover { text-decoration: underline; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; }

/* ---------- modal (launch, screen view) ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(6, 4, 16, .6); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card {
  position: relative; width: min(980px, 100%); height: min(760px, calc(100svh - 32px)); display: grid; grid-template-columns: 340px 1fr; grid-template-rows: minmax(0, 1fr); overflow: hidden;
  border-radius: 26px; background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow); transform: translateY(14px); transition: transform .3s;
}
.modal.open .modal-card { transform: none; }
.modal-card .left { position: relative; background: radial-gradient(90% 70% at 50% 40%, #2b2352, #15122a); min-height: 300px; }
.modal-card .left canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.modal-card .left .cap { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; align-items: end; gap: 8px; }
.modal-card .left .cap b { font-size: 22px; display: block; }
.modal-card .left .cap span { color: var(--muted); font-size: 13px; }
.modal-card .right { min-height: 0; overflow: auto; padding: 22px 24px 24px; overscroll-behavior: contain; }
.modal-card .right h2 { margin: 0; font-size: 26px; }
.modal-card .right > p { margin: 4px 0 0; color: var(--muted); }
.modal-card .close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.brainpick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.brainpick button { padding: 9px 6px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; font-weight: 700; font-size: 13px; display: grid; justify-items: center; gap: 5px; }
.brainpick button i { width: 22px; height: 6px; border-radius: 4px; box-shadow: 0 0 12px currentColor; }
.brainpick button[aria-pressed='true'] { background: rgba(155, 135, 245, .16); border-color: var(--lilac); }
.devbox { margin-top: 10px; padding: 12px; border-radius: 14px; border: 1px dashed var(--line-2); }
.note { margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.msg { margin-top: 10px; font-size: 14px; font-weight: 600; min-height: 20px; }
.msg.err { color: var(--red); }
.msg.ok { color: var(--green); }
.wallets { display: flex; flex-wrap: wrap; gap: 8px; }
.wallets button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; font-weight: 600; font-size: 14px; }
.wallets button img { width: 20px; height: 20px; border-radius: 5px; }
.wallets button[aria-pressed='true'] { border-color: var(--lilac); background: rgba(155, 135, 245, .14); }

/* screen view: an agent's PC */
.screen-card { width: min(1100px, 100%); height: min(700px, calc(100svh - 32px)); display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #0b0a17; border: 8px solid #26213f; box-shadow: var(--shadow), 0 0 80px var(--glow, rgba(155, 135, 245, .35)); }
.screen-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #17142b; font-size: 13px; }
.screen-bar b { font-family: var(--mono); }
.screen-bar .sp { flex: 1; }
.screen-desk { flex: 1; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; padding: 10px; min-height: 0;
  background: radial-gradient(80% 80% at 30% 20%, rgba(155, 135, 245, .16), transparent), #0b0a17; }
.win { display: flex; flex-direction: column; min-height: 0; border-radius: 12px; background: rgba(23, 20, 43, .92); border: 1px solid var(--line); overflow: hidden; }
.win > b { padding: 6px 10px; font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--line); display: flex; gap: 6px; align-items: center; }
.win > b::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 13px 0 0 var(--gold), 26px 0 0 var(--green); margin-right: 30px; }
.win .scroll { flex: 1; overflow: auto; padding: 10px; font-size: 13px; }
.win.term .scroll { font-family: var(--mono); font-size: 12.5px; color: #c9f5e6; }
.win.term .scroll p { margin: 0 0 8px; }
.win.term .scroll p span { color: var(--dim); }
.win.big { grid-row: span 2; }

/* ---------- landing sections ---------- */
main { position: relative; z-index: 1; }
.section { position: relative; padding: clamp(70px, 10vw, 130px) 20px; }
.wrap { width: min(1160px, 100%); margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--lilac-2); }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.h2 { margin: 12px 0 14px; font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -.02em; font-weight: 800; }
.lead { margin: 0; max-width: 640px; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.card { border-radius: 24px; background: linear-gradient(180deg, rgba(36, 30, 66, .7), rgba(22, 19, 41, .7)); border: 1px solid var(--line); }
.stage-canvas { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: radial-gradient(90% 80% at 50% 30%, #2a2250, #120f22); border: 1px solid var(--line); }
.stage-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.stage-canvas .hint { position: absolute; left: 14px; bottom: 12px; font-size: 12.5px; color: var(--muted); pointer-events: none; }
.stage-canvas .labels { position: absolute; inset: 0; pointer-events: none; }
.stage-canvas .labels span { position: absolute; transform: translate(-50%, -100%); font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 7px; background: rgba(16, 14, 28, .75); white-space: nowrap; }

.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

.world-stats { display: flex; flex-wrap: wrap; gap: 26px; margin: 22px 0 0; }
.world-stats div b { display: block; font-family: var(--mono); font-size: 30px; line-height: 1.1; }
.world-stats div span { color: var(--muted); font-size: 14px; }
.station-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.station-row button { height: 30px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-size: 12.5px; font-weight: 600; }
.station-row button:hover { border-color: var(--line-2); }
.world-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin-top: 36px; }
.feedcard { padding: 16px 18px; max-height: 520px; overflow: auto; }
.feedcard h3 { margin: 0 0 4px; font-size: 16px; }
.feedcard > p { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.wcard { position: absolute; right: 14px; top: 14px; width: 240px; padding: 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line-2); backdrop-filter: blur(10px); font-size: 13px; }
.wcard b { font-size: 16px; }

.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: s; }
.steps li { padding: 18px 16px; border-radius: 18px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); font-weight: 600; font-size: 15px; line-height: 1.35; }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; border-radius: 10px; background: var(--lilac); color: #fff; font-family: var(--mono); font-weight: 700; }
.steps li:last-child::before { background: var(--gold); color: #2a2000; }
.tools { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; margin-top: 18px; }
.tools .card { padding: 22px; }
.tools h3 { margin: 6px 0 14px; font-size: 22px; }
.tools .eyebrow { font-size: 11px; }
.toollist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tools .card:last-child .toollist { grid-template-columns: 1fr 1fr; }
.toollist li { display: grid; grid-template-columns: 12px 1fr; gap: 10px; font-size: 14px; color: var(--muted); }
.toollist li i { width: 10px; height: 10px; border-radius: 3px; margin-top: 6px; }
.toollist li b { display: block; color: var(--text); font-size: 15px; }

.evo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: center; margin-top: 30px; }
.evo-ctrl { padding: 22px; }
.evo-ctrl .big { font-size: 46px; font-weight: 800; font-family: var(--mono); line-height: 1; }
.evo-ctrl .big small { font-size: 16px; color: var(--muted); font-family: var(--font); font-weight: 600; margin-left: 6px; }
.evo-ctrl .stage-name { font-size: 26px; font-weight: 800; margin: 12px 0 4px; }
.evo-ctrl p { color: var(--muted); margin: 0 0 14px; font-size: 14.5px; }
input[type='range'] { width: 100%; accent-color: var(--lilac); height: 28px; }
.stage-dots { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin: 10px 0 14px; }
.stage-dots i { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.stage-dots i.on { background: var(--lilac); }
.stage-dots i.gold.on { background: var(--gold); }

.xgrid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-top: 32px; }
.xfeed { padding: 8px 0; max-height: 560px; overflow: hidden; position: relative; }
.xfeed::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, #17142b); pointer-events: none; border-radius: 0 0 24px 24px; }
.xpost { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); animation: slidein .4s; }
.xpost img { width: 40px; height: 40px; border-radius: 50%; background: #221d3a; }
.xpost .h { font-size: 14px; }
.xpost .h b { margin-right: 4px; }
.xpost .h span { color: var(--dim); }
.xpost .h .bot { display: inline-block; font-size: 10.5px; padding: 1px 5px; border-radius: 4px; background: rgba(255, 255, 255, .08); color: var(--muted); margin-left: 4px; }
.xpost p { margin: 3px 0 0; font-size: 14.5px; line-height: 1.4; }
.xpost.callout p { color: #ffe2a3; }
.xstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.xstats div { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.xstats b { display: block; font-family: var(--mono); font-size: 26px; }
.xstats span { color: var(--muted); font-size: 13px; }
.rules { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.rules li { padding-left: 26px; position: relative; color: var(--muted); font-size: 14.5px; }
.rules li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; background: rgba(111, 220, 191, .18); color: var(--mint); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.facts div { padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.facts b { display: block; font-size: 17px; margin-bottom: 4px; }
.facts span { color: var(--muted); font-size: 14px; }

.splitbar { display: flex; height: 64px; border-radius: 18px; overflow: hidden; margin-top: 30px; font-family: var(--mono); font-weight: 700; font-size: 18px; }
.splitbar div { display: grid; place-items: center; }
.legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.legend div { display: grid; grid-template-columns: 14px 1fr; gap: 10px; font-size: 14px; color: var(--muted); }
.legend i { width: 14px; height: 14px; border-radius: 5px; margin-top: 3px; }
.legend b { display: block; color: var(--text); font-size: 15px; }
.walletgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.walletgrid .card { padding: 22px; }
.walletgrid h3 { margin: 4px 0 10px; }
.walletgrid p { color: var(--muted); font-size: 14.5px; margin: 0; }
.spendbar { display: flex; height: 12px; border-radius: 8px; overflow: hidden; margin: 14px 0 10px; background: rgba(255, 255, 255, .06); }
.spendbar i { display: block; height: 100%; }
.sample-tag { font-size: 12px; color: var(--pink); margin-top: 10px; }

.brains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.brain { position: relative; padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); overflow: hidden; }
.brain::before { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 4px 4px; background: var(--c); box-shadow: 0 0 22px 4px var(--c); }
.brain b { display: block; font-size: 19px; margin-top: 6px; }
.brain span { color: var(--dim); font-size: 12.5px; font-weight: 600; }
.brain p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }

.cta { text-align: center; padding: clamp(90px, 12vw, 160px) 20px; background: radial-gradient(60% 70% at 50% 100%, rgba(155, 135, 245, .25), transparent); }
.cta h2 { font-size: clamp(32px, 5vw, 56px); margin: 0 0 22px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
footer { padding: 30px 20px 50px; color: var(--dim); font-size: 13px; text-align: center; border-top: 1px solid var(--line); }
footer p { margin: 6px auto; max-width: 760px; }
footer a { color: var(--muted); }

.toast { position: fixed; z-index: 90; left: 50%; bottom: 22px; transform: translate(-50%, 30px); opacity: 0; padding: 12px 18px; border-radius: 14px; background: #2a2450; border: 1px solid var(--line-2); font-weight: 600; transition: .3s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* pump or dump */
.pd-coin { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.pd-coin img { width: 52px; height: 52px; border-radius: 14px; }
.pd-coin b { font-size: 18px; display: block; }
.pd-timer { font-family: var(--mono); font-size: 40px; font-weight: 700; text-align: center; margin: 14px 0 4px; }
.pd-phase { text-align: center; color: var(--muted); font-size: 14px; }
.pd-votes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pd-votes .btn { height: 64px; font-size: 20px; flex-direction: column; gap: 0; }
.pd-votes .btn small { font-size: 12px; opacity: .8; font-family: var(--mono); }
.pd-meter { display: flex; height: 8px; border-radius: 6px; overflow: hidden; margin-top: 10px; background: rgba(255, 255, 255, .06); }
.pd-meter i:first-child { background: var(--green); }
.pd-meter i:last-child { background: var(--red); }
.pd-result { margin-top: 14px; padding: 12px; border-radius: 14px; text-align: center; font-weight: 700; }
.pd-result.win { background: rgba(94, 227, 143, .14); color: var(--green); }
.pd-result.lose { background: rgba(255, 107, 125, .14); color: var(--red); }
.board { counter-reset: r; }
.board li { display: flex; justify-content: space-between; }
.board li::before { counter-increment: r; content: counter(r) '.'; color: var(--dim); width: 26px; }
.board li span:first-of-type { flex: 1; }

@media (max-width: 960px) {
  .split, .world-grid, .evo, .xgrid, .walletgrid, .tools { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .brains { grid-template-columns: 1fr 1fr; }
  .modal-card { grid-template-columns: 1fr; grid-template-rows: 220px minmax(0, 1fr); }
  .modal-card .left { min-height: 0; }
  .screen-desk { grid-template-columns: 1fr; grid-template-rows: none; overflow: auto; }
  .win { min-height: 220px; }
  .win.big { grid-row: auto; }
}
@media (max-width: 640px) {
  .topbar { top: 10px; left: 10px; right: 10px; }
  .topbar .hide-sm { display: none; }
  .pill { height: 32px; padding: 0 11px; font-size: 13px; }
  .pill.icon { width: 32px; }
  .hud-feed { display: none; }
  .steps, .facts, .legend { grid-template-columns: 1fr; }
  .tools .card:last-child .toollist { grid-template-columns: 1fr; }
  .brainpick { grid-template-columns: repeat(2, 1fr); }
  .side { top: auto; left: 10px; right: 10px; bottom: 10px; width: auto; height: 72svh; transform: translateY(calc(100% + 30px)); }
  .wcard { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
